From 49b6e9dbc228829889dad863dc8954a4ce3fcd42 Mon Sep 17 00:00:00 2001 From: fireblocks_dx_team Date: Wed, 10 Sep 2025 10:09:39 +0000 Subject: [PATCH] Generated SDK #8841 --- .openapi-generator/FILES | 1260 +- README.md | 570 +- api/openapi.yaml | 64776 ++++------------ build.gradle | 2 +- docs/AbaPaymentInfo.md | 24 - docs/AbiFunction.md | 10 +- docs/AccessType.md | 37 - docs/AccountAccess.md | 23 - docs/AccountBase.md | 14 - docs/AccountBasedAccessProvider.md | 19 - docs/AccountConfig.md | 27 - docs/AccountHolderDetails.md | 18 - docs/AccountIdentifier.md | 17 - docs/AccountProviderID.md | 14 - docs/AccountReference.md | 37 - docs/AccountType2.md | 47 - docs/AchPaymentInfo.md | 46 - docs/AdapterProcessingResult.md | 14 - docs/AddAbiRequestDto.md | 16 - docs/AddAssetToExternalWalletRequest.md | 36 +- ...> AddAssetToExternalWalletRequestOneOf.md} | 5 +- docs/AddAssetToExternalWalletRequestOneOf1.md | 13 + ...ternalWalletRequestOneOf1AdditionalInfo.md | 46 + ...lWalletRequestOneOf1AdditionalInfoOneOf.md | 23 + ...WalletRequestOneOf1AdditionalInfoOneOf1.md | 23 + ...WalletRequestOneOf1AdditionalInfoOneOf2.md | 14 + docs/AddCosignerRequest.md | 15 - docs/AddCosignerResponse.md | 16 - docs/AddExchangeAccountRequest.md | 17 - docs/AddExchangeAccountResponse.md | 15 - ...AdditionalInfo.md => AdditionalInfoDto.md} | 3 +- docs/AdditionalInfoRequest.md | 14 - docs/AdditionalInfoRequestAdditionalInfo.md | 111 - docs/AddressNotAvailableError.md | 14 - docs/AmlRegistrationResultFullPayload.md | 16 - docs/AmlVerdictManualRequest.md | 23 - docs/AmlVerdictManualResponse.md | 14 - ...d => AmountAggregationTimePeriodMethod.md} | 2 +- docs/AmountOverTimeConfig.md | 26 - docs/AmountOverTimeConfigRange.md | 15 - docs/AmountRange.md | 16 - docs/ApiKey.md | 3 +- docs/ApproversConfig.md | 26 - docs/ApproversConfigApprovalGroupsInner.md | 15 - docs/Asset.md | 20 - docs/AssetBadRequestErrorResponse.md | 2 +- docs/AssetClass.md | 19 - docs/AssetConfig.md | 16 - docs/AssetConflictErrorResponse.md | 2 +- docs/AssetDetailsMetadata.md | 20 - docs/AssetDetailsOnchain.md | 17 - docs/AssetDoesNotExistHttpError.md | 15 + docs/AssetFeature.md | 11 - docs/AssetForbiddenErrorResponse.md | 2 +- docs/AssetInternalServerErrorResponse.md | 2 +- docs/AssetMedia.md | 24 - docs/AssetMediaAttributes.md | 14 - docs/AssetMetadataRequest.md | 13 - docs/AssetNotFoundErrorResponse.md | 2 +- docs/AssetNote.md | 16 - docs/AssetNoteRequest.md | 13 - docs/AssetPriceForbiddenErrorResponse.md | 14 - docs/AssetPriceNotFoundErrorResponse.md | 14 - docs/AssetPriceResponse.md | 26 - docs/AssetResponse.md | 4 +- ...etMetadata.md => AssetResponseMetadata.md} | 2 +- ...ssetOnchain.md => AssetResponseOnchain.md} | 4 +- docs/AssetScope.md | 13 - docs/AssetTypesConfigInner.md | 28 - docs/AuditLogData.md | 4 +- docs/AuditLogsApi.md | 84 + docs/BaseProvider.md | 16 - docs/BlockchainExplorer.md | 16 - docs/BlockchainMedia.md | 23 - docs/BlockchainMetadata.md | 16 - docs/BlockchainNotFoundErrorResponse.md | 14 - docs/BlockchainOnchain.md | 25 - docs/BlockchainResponse.md | 18 - docs/BlockchainTransfer.md | 23 - docs/BlockchainsAssetsApi.md | 563 +- docs/BpsFee.md | 22 - docs/BusinessIdentification.md | 26 - docs/CallbackHandler.md | 15 - docs/CallbackHandlerRequest.md | 15 - docs/Capability.md | 15 - docs/ChainDescriptor.md | 21 - ...nfoResponse.md => ChainInfoResponseDto.md} | 4 +- docs/ChannelDvnConfigWithConfirmations.md | 14 - docs/CollectionBurnRequestDto.md | 15 - docs/CollectionBurnResponseDto.md | 13 - docs/CollectionDeployRequestDto.md | 19 - docs/CollectionLinkDto.md | 26 - docs/CollectionMintRequestDto.md | 18 - docs/CollectionMintResponseDto.md | 13 - docs/CollectionOwnershipResponse.md | 15 - docs/CollectionTokenMetadataAttributeDto.md | 15 - docs/CollectionTokenMetadataDto.md | 18 - docs/CollectionType.md | 13 - docs/CommittedQuoteType.md | 22 - docs/ComplianceApi.md | 269 +- docs/ComplianceResult.md | 49 + docs/ComplianceResultFullPayload.md | 18 - docs/ComplianceResultStatusesEnum.md | 55 - docs/ComplianceResults.md | 18 - docs/ComplianceScreeningResultFullPayload.md | 30 - docs/ConnectedAccount.md | 19 - docs/ConnectedAccountApprovalStatus.md | 19 - docs/ConnectedAccountAssetType.md | 13 - docs/ConnectedAccountBalances.md | 19 - docs/ConnectedAccountBalancesResponse.md | 15 - docs/ConnectedAccountCapability.md | 15 - docs/ConnectedAccountManifest.md | 14 - docs/ConnectedAccountRateResponse.md | 16 - docs/ConnectedAccountTotalBalance.md | 15 - docs/ConnectedAccountTradingPair.md | 16 - ...onnectedAccountTradingPairSupportedType.md | 15 - docs/ConnectedAccountTradingPairsResponse.md | 15 - docs/ConnectedAccountsBetaApi.md | 444 - docs/ConnectedAccountsResponse.md | 15 - docs/ConnectedSingleAccount.md | 13 - docs/ConnectedSingleAccountResponse.md | 20 - docs/ContractAbiResponseDto.md | 2 +- docs/ContractAbiResponseDtoAbiInner.md | 37 - docs/ContractDataDecodeDataType.md | 15 - docs/ContractDataDecodeError.md | 14 - docs/ContractDataDecodeRequest.md | 15 - docs/ContractDataDecodeRequestData.md | 39 - docs/ContractDataDecodeResponseParams.md | 15 - docs/ContractDataDecodedResponse.md | 14 - docs/ContractDataLogDataParam.md | 14 - docs/ContractDeployRequest.md | 13 - docs/ContractDoc.md | 2 +- docs/ContractInteractionsApi.md | 207 +- docs/ContractMethodConfig.md | 25 - docs/ContractMethodPattern.md | 37 - docs/ContractTemplateDto.md | 2 +- docs/ContractUploadRequest.md | 14 +- docs/ContractWithAbiDto.md | 19 - docs/Cosigner.md | 14 - docs/CosignersBetaApi.md | 440 +- docs/CreateInternalTransferRequest.md | 8 +- docs/CreateMultichainTokenRequest.md | 30 - docs/CreateMultipleAccountsRequest.md | 7 +- ...CreateMultipleDepositAddressesJobStatus.md | 15 - docs/CreateMultipleDepositAddressesRequest.md | 18 - docs/CreateMultipleVaultAccountsJobStatus.md | 15 - docs/CreateOrderRequest.md | 18 - docs/CreateQuote.md | 30 - docs/CreateQuoteScopeInner.md | 37 - docs/CreateSigningKeyDto.md | 1 - docs/CreateSigningKeyDtoProofOfOwnership.md | 15 - docs/CreateTagRequest.md | 14 - docs/CreateTokenRequestDto.md | 13 - docs/CreateTokenRequestDtoCreateParams.md | 9 - docs/CreateVaultAccountRequest.md | 11 - docs/CreateWebhookRequest.md | 16 - docs/DVPSettlement.md | 24 - docs/{Delegation.md => DelegationDto.md} | 12 +- ...tionSummary.md => DelegationSummaryDto.md} | 2 +- docs/DeployLayerZeroAdaptersRequest.md | 29 - docs/DeployableAddressResponse.md | 14 - docs/DeployedContractNotFoundError.md | 14 - docs/DeployedContractResponseDto.md | 4 - docs/DeployedContractsApi.md | 186 +- docs/DerivationPathConfig.md | 15 - docs/DesignatedSignersConfig.md | 26 - docs/DestinationConfig.md | 40 - docs/DestinationTransferPeerPath.md | 1 - docs/DestinationTransferPeerPathResponse.md | 3 +- docs/DirectAccess.md | 22 - docs/DirectAccessProvider.md | 19 - docs/DvnConfig.md | 15 - docs/DvnConfigWithConfirmations.md | 16 - docs/EVMTokenCreateParamsDto.md | 2 +- docs/EmbeddedWallet.md | 14 - docs/EmbeddedWalletAccount.md | 14 - docs/EmbeddedWalletAddressDetails.md | 49 - docs/EmbeddedWalletAlgoritm.md | 23 - docs/EmbeddedWalletAssetBalance.md | 21 - docs/EmbeddedWalletAssetResponse.md | 38 - docs/EmbeddedWalletAssetRewardInfo.md | 13 - docs/EmbeddedWalletDevice.md | 15 - docs/EmbeddedWalletDeviceKeySetupResponse.md | 16 - ...tDeviceKeySetupResponseSetupStatusInner.md | 15 - docs/EmbeddedWalletLatestBackupKey.md | 26 - docs/EmbeddedWalletLatestBackupResponse.md | 15 - ...mbeddedWalletPaginatedAddressesResponse.md | 14 - docs/EmbeddedWalletPaginatedAssetsResponse.md | 14 - .../EmbeddedWalletPaginatedWalletsResponse.md | 14 - docs/EmbeddedWalletSetUpStatus.md | 23 - docs/EmbeddedWalletsApi.md | 1426 - docs/ErrorCodes.md | 25 - docs/EstimatedFeeDetails.md | 16 - docs/EstimatedTransactionFeeResponse.md | 1 - docs/ExchangeAccountsApi.md | 166 - docs/ExchangeAsset.md | 5 - docs/ExchangeType.md | 72 +- docs/ExecuteActionRequest.md | 46 + docs/ExecuteActionResponse.md | 37 + docs/ExecutionRequestBaseDetails.md | 27 - docs/ExecutionRequestDetails.md | 48 - docs/ExecutionResponseBaseDetails.md | 27 - docs/ExecutionResponseDetails.md | 46 - docs/ExecutionStep.md | 18 - docs/ExecutionStepDetails.md | 14 - docs/ExecutionStepError.md | 23 - docs/ExecutionStepStatusEnum.md | 19 - docs/ExecutionStepType.md | 19 - docs/ExternalAccount.md | 21 - docs/Fee.md | 34 - docs/FeeBreakdown.md | 37 - docs/FeeBreakdownOneOf.md | 17 - docs/FeeBreakdownOneOf1.md | 16 - docs/FeeInfo.md | 14 - docs/FeeLevel.md | 15 - docs/FetchAbiRequestDto.md | 14 - docs/FiatTransfer.md | 23 - docs/FixedFee.md | 22 - docs/GasslessStandardConfigurations.md | 14 - ...tionsGaslessStandardConfigurationsValue.md | 14 - docs/GetAuditLogsResponseDTO.md | 15 + docs/GetDeployableAddressRequest.md | 17 - ...ngeAccountsCredentialsPublicKeyResponse.md | 14 - docs/GetLayerZeroDvnConfigResponse.md | 14 - docs/GetLayerZeroPeersResponse.md | 15 - docs/GetLinkedCollectionsPaginatedResponse.md | 14 - docs/GetMpcKeysResponse.md | 14 - docs/GetOrdersResponse.md | 15 - docs/GetTransactionOperation.md | 4 - docs/IbanPaymentInfo.md | 24 - docs/Identification.md | 37 - docs/IdlType.md | 45 - docs/IndicativeQuoteType.md | 21 - docs/InitiatorConfig.md | 19 - docs/InitiatorConfigPattern.md | 37 - docs/InternalReference.md | 14 - docs/InternalTransferResponse.md | 1 - docs/InternalWalletsApi.md | 112 +- docs/InvalidParamaterValueError.md | 14 - docs/JobManagementApi.md | 4 +- docs/KeyLinkBetaApi.md | 16 +- docs/KeysBetaApi.md | 172 - docs/LayerZeroAdapterCreateParams.md | 16 - docs/LbtPaymentInfo.md | 37 - docs/LeanAbiFunction.md | 13 - ...LegacyAmountAggregationTimePeriodMethod.md | 13 - docs/LegacyDraftResponse.md | 17 - .../LegacyDraftReviewAndValidationResponse.md | 15 - docs/LegacyPolicyAndValidationResponse.md | 15 - docs/LegacyPolicyCheckResult.md | 15 - docs/LegacyPolicyMetadata.md | 17 - docs/LegacyPolicyResponse.md | 15 - docs/LegacyPolicyRule.md | 107 - docs/LegacyPolicyRuleCheckResult.md | 25 - docs/LegacyPolicyRuleError.md | 33 - docs/LegacyPolicyRules.md | 13 - docs/LegacyPolicyStatus.md | 23 - docs/LegacyPolicyValidation.md | 15 - docs/LegacyPublishDraftRequest.md | 13 - docs/LegacyPublishResult.md | 17 - docs/LegacySrcOrDestAttributesInner.md | 46 - docs/LimitExecutionRequestDetails.md | 38 - docs/LimitExecutionResponseDetails.md | 38 - docs/ListAssetsResponse.md | 14 - docs/ListBlockchainsResponse.md | 14 - docs/Manifest.md | 23 - docs/MarketExecutionRequestDetails.md | 36 - docs/MarketExecutionResponseDetails.md | 36 - docs/MarketRequoteRequestDetails.md | 21 - docs/MergeStakeAccountsRequest.md | 17 - docs/MergeStakeAccountsResponse.md | 13 - docs/MomoPaymentInfo.md | 49 - docs/MpcKey.md | 17 - docs/MultichainDeploymentMetadata.md | 19 - docs/NetworkConnectionsApi.md | 98 +- docs/NetworkIdResponse.md | 4 +- docs/NewAddress.md | 15 - docs/NftsApi.md | 28 +- docs/Notification.md | 18 - docs/NotificationAttempt.md | 25 - docs/NotificationAttemptsPaginatedResponse.md | 14 - docs/NotificationPaginatedResponse.md | 15 - docs/NotificationStatus.md | 17 - docs/NotificationWithData.md | 19 - docs/OneTimeAddressReference.md | 23 - docs/OrderDetails.md | 28 - docs/OrderStatus.md | 21 - docs/OrderSummary.md | 32 - docs/PaginatedAssetsResponse.md | 15 - docs/PairApiKeyRequest.md | 13 - docs/PairApiKeyResponse.md | 14 - docs/ParticipantRelationshipType.md | 15 - docs/ParticipantsIdentification.md | 15 - docs/PaymentInstructions.md | 31 - docs/PeerAdapterInfo.md | 15 - docs/PeerType.md | 19 - docs/PersonalIdentification.md | 26 - docs/PixPaymentInfo.md | 50 - docs/PlatformAccount.md | 24 - docs/Players.md | 23 - docs/PolicyEditorBetaApi.md | 82 +- docs/PolicyEditorV2BetaApi.md | 348 - docs/PolicyMetadata.md | 7 +- docs/PolicyOperator.md | 13 - docs/PolicyRule.md | 121 +- ...olicyRuleAmount.md => PolicyRuleAmount.md} | 18 +- ...tion.md => PolicyRuleAmountAggregation.md} | 8 +- ...ps.md => PolicyRuleAuthorizationGroups.md} | 4 +- ...licyRuleAuthorizationGroupsGroupsInner.md} | 2 +- ...ners.md => PolicyRuleDesignatedSigners.md} | 2 +- ...egacyPolicyRuleDst.md => PolicyRuleDst.md} | 4 +- ...uleOperators.md => PolicyRuleOperators.md} | 2 +- ...ning.md => PolicyRuleRawMessageSigning.md} | 4 +- ...icyRuleRawMessageSigningDerivationPath.md} | 2 +- ...egacyPolicyRuleSrc.md => PolicyRuleSrc.md} | 4 +- ...entificationFullName.md => PolicyRules.md} | 5 +- ...stSubType.md => PolicySrcOrDestSubType.md} | 2 +- ...rcOrDestType.md => PolicySrcOrDestType.md} | 2 +- docs/PolicyType.md | 49 - docs/PostOrderSettlement.md | 21 - docs/PostalAddress.md | 19 - docs/PrefundedSettlement.md | 22 - docs/ProgramCallConfig.md | 23 - docs/Provider.md | 20 - docs/ProviderDto.md | 18 + docs/ProviderID.md | 13 - docs/ProvidersListResponse.md | 15 - docs/PublicKeyInformation.md | 16 +- docs/PublishDraftRequest.md | 4 +- docs/Quote.md | 42 - docs/QuoteExecutionRequestDetails.md | 22 - docs/QuoteExecutionResponseDetails.md | 38 - ...QuoteExecutionWithRequoteRequestDetails.md | 23 - ...onWithRequoteRequestDetailsAllOfReQuote.md | 37 - ...uoteExecutionWithRequoteResponseDetails.md | 39 - ...nWithRequoteResponseDetailsAllOfReQuote.md | 37 - docs/QuotesResponse.md | 13 - docs/ReadCallFunctionDto.md | 2 +- docs/ReadCallFunctionDtoAbiFunction.md | 37 - docs/RegisterNewAssetRequest.md | 2 +- docs/ReissueMultichainTokenRequest.md | 27 - docs/RelatedRequest.md | 24 - ...ransaction.md => RelatedTransactionDto.md} | 2 +- docs/RemoveLayerZeroAdapterFailedResult.md | 13 - docs/RemoveLayerZeroAdaptersRequest.md | 14 - docs/RemoveLayerZeroAdaptersResponse.md | 14 - docs/RemoveLayerZeroPeersRequest.md | 16 - docs/RemoveLayerZeroPeersResponse.md | 13 - docs/RescanTransaction.md | 14 - ...endFailedNotificationsJobStatusResponse.md | 27 - docs/ResendFailedNotificationsRequest.md | 14 - docs/ResendFailedNotificationsResponse.md | 13 - .../ResendNotificationsByResourceIdRequest.md | 14 - docs/RetryRequoteRequestDetails.md | 23 - docs/SOLAccount.md | 17 - docs/SOLAccountWithValue.md | 16 - docs/ScreeningMetadataConfig.md | 81 - ...> ScreeningUpdateConfigurationsRequest.md} | 2 +- docs/SearchNetworkIdsResponse.md | 14 - docs/SepaPaymentInfo.md | 43 - docs/SetAssetPriceRequest.md | 14 - docs/SetLayerZeroDvnConfigRequest.md | 17 - docs/SetLayerZeroDvnConfigResponse.md | 13 - docs/SetLayerZeroPeersRequest.md | 16 - docs/SetLayerZeroPeersResponse.md | 13 - docs/Settlement.md | 48 - docs/SettlementSourceAccount.md | 37 - docs/SmartTransferApi.md | 267 +- docs/SmartTransferApproveTerm.md | 28 - docs/SmartTransferCoinStatistic.md | 15 - docs/SmartTransferCreateTicket.md | 1 - docs/SmartTransferFundDvpTicket.md | 25 - docs/SmartTransferStatistic.md | 17 - docs/SmartTransferStatisticInflow.md | 15 - docs/SmartTransferStatisticOutflow.md | 15 - docs/SmartTransferTicket.md | 19 +- docs/SmartTransferTicketTerm.md | 1 - docs/SolParameter.md | 15 - docs/SolParameterWithValue.md | 15 - docs/SolanaBlockchainData.md | 15 - docs/SolanaBlockchainDataDto.md | 13 + docs/SolanaConfig.md | 25 - docs/SolanaInstruction.md | 16 - docs/SolanaInstructionWithValue.md | 16 - docs/SolanaSimpleCreateParams.md | 15 - docs/SourceTransferPeerPath.md | 1 - docs/SourceTransferPeerPathResponse.md | 3 +- docs/SpeiAdvancedPaymentInfo.md | 38 - docs/SpeiBasicPaymentInfo.md | 15 - docs/SplitRequest.md | 17 - docs/SplitResponse.md | 13 - docs/SrcOrDestAttributesInner.md | 46 + docs/{StakeRequest.md => StakeRequestDto.md} | 6 +- .../{StakeResponse.md => StakeResponseDto.md} | 2 +- docs/StakingApi.md | 1190 - docs/StakingBetaApi.md | 747 + docs/StakingProvider.md | 17 - docs/Status.md | 36 - docs/Tag.md | 15 - docs/TagsApi.md | 434 - docs/TagsPagedResponse.md | 14 - docs/TimeInForce.md | 11 - docs/TimePeriodConfig.md | 17 - docs/TokenInfoNotFoundErrorResponse.md | 14 - docs/TokenLinkDto.md | 4 +- ...kenLinkNotMultichainCompatibleHttpError.md | 14 - docs/TokenLinkRequestDto.md | 4 +- docs/TokenOwnershipResponse.md | 15 - docs/TokenResponse.md | 15 - docs/TokenizationApi.md | 1695 +- docs/TradingBetaApi.md | 459 - docs/TradingErrorResponse.md | 13 - docs/TradingErrorResponseError.md | 29 - docs/TradingProvider.md | 37 - docs/TransactionOperation.md | 6 - docs/TransactionReceiptResponse.md | 26 - docs/TransactionRequest.md | 7 +- docs/TransactionRequestDestination.md | 2 - docs/TransactionResponse.md | 4 +- docs/TransactionsApi.md | 86 - docs/TransferPeerPathType.md | 4 - docs/TransferRail.md | 33 - docs/TransferReceipt.md | 37 - docs/TravelRuleAddress.md | 8 +- ...{TravelRuleApi.md => TravelRuleBetaApi.md} | 221 +- docs/TravelRuleCreateTransactionRequest.md | 46 +- docs/TravelRuleDateAndPlaceOfBirth.md | 15 - docs/TravelRuleGeographicAddress.md | 28 - docs/TravelRuleGetAllVASPsResponse.md | 4 +- docs/TravelRuleLegalPerson.md | 18 - docs/TravelRuleLegalPersonNameIdentifier.md | 14 - docs/TravelRuleNationalIdentification.md | 17 - docs/TravelRuleNaturalNameIdentifier.md | 15 - docs/TravelRuleNaturalPerson.md | 19 - docs/TravelRuleNaturalPersonNameIdentifier.md | 15 - docs/TravelRuleOwnershipProof.md | 10 +- docs/TravelRulePerson.md | 14 - docs/TravelRulePiiIVMS.md | 13 +- docs/TravelRulePolicyRuleResponse.md | 2 +- docs/TravelRuleTransactionBlockchainInfo.md | 7 +- docs/TravelRuleVASP.md | 90 +- docs/TravelRuleValidateDateAndPlaceOfBirth.md | 15 - ...ravelRuleValidateFullTransactionRequest.md | 51 +- docs/TravelRuleValidateGeographicAddress.md | 38 - docs/TravelRuleValidateLegalPerson.md | 18 - ...elRuleValidateLegalPersonNameIdentifier.md | 24 - ...ravelRuleValidateNationalIdentification.md | 28 - ...TravelRuleValidateNaturalNameIdentifier.md | 27 - docs/TravelRuleValidateNaturalPerson.md | 19 - ...RuleValidateNaturalPersonNameIdentifier.md | 15 - docs/TravelRuleValidatePerson.md | 14 - docs/TravelRuleValidatePiiIVMS.md | 16 - docs/TravelRuleValidateTransactionRequest.md | 5 +- docs/TravelRuleValidateTransactionResponse.md | 27 +- docs/TravelRuleVaspForVault.md | 13 - docs/TxLog.md | 21 - docs/UnstakeRequest.md | 17 - ...RewardsRequest.md => UnstakeRequestDto.md} | 6 +- docs/UpdateAssetUserMetadataRequest.md | 13 - docs/UpdateCallbackHandlerRequest.md | 13 - docs/UpdateCallbackHandlerResponse.md | 14 - docs/UpdateDraftRequest.md | 15 - docs/UpdateTagRequest.md | 14 - docs/UpdateWebhookRequest.md | 16 - docs/UsWirePaymentInfo.md | 44 - docs/ValidateLayerZeroChannelResponse.md | 14 - docs/ValidatedTransactionsForRescan.md | 15 - docs/{Validator.md => ValidatorDto.md} | 3 +- docs/VaultAccount.md | 1 - docs/VaultAccountsTagAttachmentsRequest.md | 14 - docs/VaultAsset.md | 2 +- docs/VaultWalletAddress.md | 2 - docs/VaultsApi.md | 430 +- docs/VerdictConfig.md | 34 - docs/Version.md | 13 - docs/Web3ConnectionsApi.md | 24 +- docs/Webhook.md | 29 - docs/WebhookEvent.md | 57 - docs/WebhookPaginatedResponse.md | 14 - docs/WebhooksV2Api.md | 1065 - ...thdrawRequest.md => WithdrawRequestDto.md} | 4 +- docs/WriteCallFunctionDto.md | 4 +- docs/WriteCallFunctionDtoAbiFunction.md | 37 - pom.xml | 2 +- .../com/fireblocks/sdk/Configuration.java | 2 +- .../java/com/fireblocks/sdk/Fireblocks.java | 76 +- .../com/fireblocks/sdk/api/AuditLogsApi.java | 79 + .../sdk/api/BlockchainsAssetsApi.java | 576 +- .../com/fireblocks/sdk/api/ComplianceApi.java | 273 +- .../sdk/api/ConnectedAccountsBetaApi.java | 518 - .../sdk/api/ContractInteractionsApi.java | 227 +- .../fireblocks/sdk/api/CosignersBetaApi.java | 421 +- .../sdk/api/DeployedContractsApi.java | 183 +- .../sdk/api/EmbeddedWalletsApi.java | 1498 - .../sdk/api/ExchangeAccountsApi.java | 153 - .../sdk/api/InternalWalletsApi.java | 160 +- .../fireblocks/sdk/api/JobManagementApi.java | 8 +- .../fireblocks/sdk/api/KeyLinkBetaApi.java | 53 +- .../com/fireblocks/sdk/api/KeysBetaApi.java | 204 - .../sdk/api/NetworkConnectionsApi.java | 128 - .../java/com/fireblocks/sdk/api/NftsApi.java | 43 +- .../sdk/api/PolicyEditorBetaApi.java | 155 +- .../sdk/api/PolicyEditorV2BetaApi.java | 412 - .../fireblocks/sdk/api/SmartTransferApi.java | 258 +- .../{StakingApi.java => StakingBetaApi.java} | 654 +- .../java/com/fireblocks/sdk/api/TagsApi.java | 447 - .../fireblocks/sdk/api/TokenizationApi.java | 1700 +- .../fireblocks/sdk/api/TradingBetaApi.java | 542 - .../fireblocks/sdk/api/TransactionsApi.java | 87 - ...velRuleApi.java => TravelRuleBetaApi.java} | 304 +- .../com/fireblocks/sdk/api/VaultsApi.java | 411 +- .../sdk/api/Web3ConnectionsApi.java | 68 +- .../com/fireblocks/sdk/api/WebhooksV2Api.java | 1124 - .../com/fireblocks/sdk/model/AbiFunction.java | 33 +- .../com/fireblocks/sdk/model/AccessType.java | 323 - .../fireblocks/sdk/model/AccountAccess.java | 260 - .../com/fireblocks/sdk/model/AccountBase.java | 184 - .../sdk/model/AccountBasedAccessProvider.java | 409 - .../fireblocks/sdk/model/AccountConfig.java | 384 - .../sdk/model/AccountHolderDetails.java | 343 - .../sdk/model/AccountIdentifier.java | 263 - .../sdk/model/AccountProviderID.java | 189 - .../sdk/model/AccountReference.java | 337 - .../fireblocks/sdk/model/AccountType2.java | 98 - .../fireblocks/sdk/model/AchPaymentInfo.java | 557 - .../sdk/model/AdapterProcessingResult.java | 192 - .../sdk/model/AddAbiRequestDto.java | 292 - .../AddAssetToExternalWalletRequest.java | 144 +- ...AddAssetToExternalWalletRequestOneOf.java} | 30 +- ...ddAssetToExternalWalletRequestOneOf1.java} | 36 +- ...rnalWalletRequestOneOf1AdditionalInfo.java | 532 + ...lletRequestOneOf1AdditionalInfoOneOf.java} | 140 +- ...letRequestOneOf1AdditionalInfoOneOf1.java} | 141 +- ...letRequestOneOf1AdditionalInfoOneOf2.java} | 41 +- .../sdk/model/AddCosignerRequest.java | 230 - .../sdk/model/AddCosignerResponse.java | 275 - .../sdk/model/AddExchangeAccountRequest.java | 309 - .../sdk/model/AddExchangeAccountResponse.java | 218 - ...tionalInfo.java => AdditionalInfoDto.java} | 35 +- .../AdditionalInfoRequestAdditionalInfo.java | 924 - .../sdk/model/AddressNotAvailableError.java | 190 - .../AmlRegistrationResultFullPayload.java | 222 - .../sdk/model/AmlVerdictManualRequest.java | 224 - .../sdk/model/AmlVerdictManualResponse.java | 189 - ...=> AmountAggregationTimePeriodMethod.java} | 9 +- .../sdk/model/AmountOverTimeConfig.java | 257 - .../sdk/model/AmountOverTimeConfigRange.java | 187 - .../com/fireblocks/sdk/model/AmountRange.java | 230 - .../java/com/fireblocks/sdk/model/ApiKey.java | 62 +- .../sdk/model/ApiKeysPaginatedResponse.java | 2 +- .../fireblocks/sdk/model/ApproversConfig.java | 333 - .../ApproversConfigApprovalGroupsInner.java | 261 - .../java/com/fireblocks/sdk/model/Asset.java | 429 - .../model/AssetBadRequestErrorResponse.java | 11 +- .../com/fireblocks/sdk/model/AssetClass.java | 70 - .../com/fireblocks/sdk/model/AssetConfig.java | 251 - .../sdk/model/AssetConflictErrorResponse.java | 11 +- .../sdk/model/AssetDetailsMetadata.java | 467 - .../sdk/model/AssetDetailsOnchain.java | 326 - ...1.java => AssetDoesNotExistHttpError.java} | 128 +- .../fireblocks/sdk/model/AssetFeature.java | 62 - .../model/AssetForbiddenErrorResponse.java | 11 +- .../AssetInternalServerErrorResponse.java | 11 +- .../com/fireblocks/sdk/model/AssetMedia.java | 257 - .../sdk/model/AssetMediaAttributes.java | 139 - .../sdk/model/AssetMetadataRequest.java | 133 - .../sdk/model/AssetNotFoundErrorResponse.java | 11 +- .../com/fireblocks/sdk/model/AssetNote.java | 274 - .../sdk/model/AssetNoteRequest.java | 139 - .../AssetPriceForbiddenErrorResponse.java | 191 - .../AssetPriceNotFoundErrorResponse.java | 191 - .../sdk/model/AssetPriceResponse.java | 348 - .../fireblocks/sdk/model/AssetResponse.java | 22 +- ...tadata.java => AssetResponseMetadata.java} | 27 +- ...Onchain.java => AssetResponseOnchain.java} | 58 +- .../com/fireblocks/sdk/model/AssetScope.java | 64 - .../sdk/model/AssetTypesConfigInner.java | 252 - .../fireblocks/sdk/model/AuditLogData.java | 17 +- .../sdk/model/AuthorizationGroups.java | 2 +- .../sdk/model/AuthorizationInfo.java | 2 +- .../fireblocks/sdk/model/BaseProvider.java | 268 - .../sdk/model/BlockchainExplorer.java | 263 - .../fireblocks/sdk/model/BlockchainMedia.java | 220 - .../sdk/model/BlockchainMetadata.java | 285 - .../BlockchainNotFoundErrorResponse.java | 191 - .../sdk/model/BlockchainOnchain.java | 304 - .../sdk/model/BlockchainResponse.java | 343 - .../sdk/model/BlockchainTransfer.java | 258 - .../java/com/fireblocks/sdk/model/BpsFee.java | 220 - .../sdk/model/BusinessIdentification.java | 409 - .../fireblocks/sdk/model/CallbackHandler.java | 228 - .../sdk/model/CallbackHandlerRequest.java | 226 - .../com/fireblocks/sdk/model/Capability.java | 66 - .../fireblocks/sdk/model/ChainDescriptor.java | 72 - ...esponse.java => ChainInfoResponseDto.java} | 59 +- .../ChannelDvnConfigWithConfirmations.java | 174 - .../sdk/model/CollectionBurnRequestDto.java | 231 - .../sdk/model/CollectionBurnResponseDto.java | 146 - .../sdk/model/CollectionDeployRequestDto.java | 397 - .../sdk/model/CollectionLinkDto.java | 342 - .../sdk/model/CollectionMintRequestDto.java | 344 - .../model/CollectionOwnershipResponse.java | 32 +- .../CollectionTokenMetadataAttributeDto.java | 232 - .../sdk/model/CollectionTokenMetadataDto.java | 374 - .../fireblocks/sdk/model/CollectionType.java | 64 - .../sdk/model/CommittedQuoteType.java | 223 - .../sdk/model/ComplianceResult.java | 463 + .../model/ComplianceResultFullPayload.java | 316 - .../model/ComplianceResultStatusesEnum.java | 106 - .../sdk/model/ComplianceResults.java | 311 - .../ComplianceScreeningResultFullPayload.java | 349 - .../sdk/model/ConnectedAccount.java | 387 - .../model/ConnectedAccountApprovalStatus.java | 70 - .../sdk/model/ConnectedAccountAssetType.java | 64 - .../sdk/model/ConnectedAccountBalances.java | 397 - .../ConnectedAccountBalancesResponse.java | 253 - .../sdk/model/ConnectedAccountCapability.java | 66 - .../sdk/model/ConnectedAccountManifest.java | 239 - .../model/ConnectedAccountRateResponse.java | 275 - .../model/ConnectedAccountTotalBalance.java | 246 - .../model/ConnectedAccountTradingPair.java | 298 - ...nectedAccountTradingPairSupportedType.java | 67 - .../ConnectedAccountTradingPairsResponse.java | 252 - .../sdk/model/ConnectedAccountsResponse.java | 250 - .../sdk/model/ConnectedSingleAccount.java | 157 - .../model/ConnectedSingleAccountResponse.java | 448 - .../sdk/model/ContractAbiResponseDto.java | 18 +- .../model/ContractAbiResponseDtoAbiInner.java | 328 - .../sdk/model/ContractAttributes.java | 4 +- .../sdk/model/ContractDataDecodeDataType.java | 66 - .../sdk/model/ContractDataDecodeError.java | 190 - .../sdk/model/ContractDataDecodeRequest.java | 249 - .../model/ContractDataDecodeRequestData.java | 337 - .../ContractDataDecodeResponseParams.java | 257 - .../model/ContractDataDecodedResponse.java | 219 - .../sdk/model/ContractDataLogDataParam.java | 205 - .../sdk/model/ContractDeployRequest.java | 169 +- .../com/fireblocks/sdk/model/ContractDoc.java | 13 +- .../sdk/model/ContractMethodConfig.java | 280 - .../sdk/model/ContractMethodPattern.java | 325 - .../sdk/model/ContractTemplateDto.java | 36 +- .../sdk/model/ContractUploadRequest.java | 129 +- .../sdk/model/ContractWithAbiDto.java | 414 - .../sdk/model/ConversionOperationFailure.java | 2 +- .../model/ConversionValidationFailure.java | 2 +- .../com/fireblocks/sdk/model/Cosigner.java | 119 +- .../sdk/model/CosignersPaginatedResponse.java | 2 +- .../model/CreateInternalTransferRequest.java | 63 +- .../model/CreateMultichainTokenRequest.java | 487 - .../model/CreateMultipleAccountsRequest.java | 215 +- ...eateMultipleDepositAddressesJobStatus.java | 254 - ...CreateMultipleDepositAddressesRequest.java | 395 - .../CreateMultipleVaultAccountsJobStatus.java | 253 - .../sdk/model/CreateNcwConnectionRequest.java | 2 +- .../sdk/model/CreateNetworkIdRequest.java | 4 +- .../sdk/model/CreateOrderRequest.java | 359 - .../sdk/model/CreatePayoutRequest.java | 2 +- .../com/fireblocks/sdk/model/CreateQuote.java | 533 - .../sdk/model/CreateQuoteScopeInner.java | 321 - .../sdk/model/CreateSigningKeyDto.java | 43 +- .../CreateSigningKeyDtoProofOfOwnership.java | 192 - .../sdk/model/CreateTagRequest.java | 187 - .../sdk/model/CreateTokenRequestDto.java | 172 +- .../CreateTokenRequestDtoCreateParams.java | 89 +- .../sdk/model/CreateUserGroupResponse.java | 2 +- .../model/CreateValidationKeyResponseDto.java | 2 +- .../CreateVaultAccountConnectionRequest.java | 2 +- .../sdk/model/CreateVaultAccountRequest.java | 128 +- .../sdk/model/CreateWebhookRequest.java | 287 - .../fireblocks/sdk/model/DVPSettlement.java | 262 - .../{Delegation.java => DelegationDto.java} | 278 +- ...Summary.java => DelegationSummaryDto.java} | 58 +- .../model/DeployLayerZeroAdaptersRequest.java | 460 - .../sdk/model/DeployableAddressResponse.java | 146 - .../model/DeployedContractNotFoundError.java | 191 - .../model/DeployedContractResponseDto.java | 171 +- .../DeployedContractsPaginatedResponse.java | 4 +- .../sdk/model/DerivationPathConfig.java | 207 - .../sdk/model/DesignatedSignersConfig.java | 292 - .../sdk/model/DestinationConfig.java | 464 - .../model/DestinationTransferPeerPath.java | 46 +- .../DestinationTransferPeerPathResponse.java | 61 +- .../fireblocks/sdk/model/DirectAccess.java | 218 - .../sdk/model/DirectAccessProvider.java | 395 - .../DisbursementOperationConfigParams.java | 4 +- .../DisbursementOperationExecutionOutput.java | 4 +- ...erationExecutionParamsExecutionParams.java | 4 +- .../sdk/model/DisbursementOperationInput.java | 4 +- .../DisbursementOperationPreviewOutput.java | 3 +- .../model/DisbursementValidationFailure.java | 2 +- .../fireblocks/sdk/model/DraftResponse.java | 2 +- .../com/fireblocks/sdk/model/DvnConfig.java | 270 - .../sdk/model/DvnConfigWithConfirmations.java | 317 - .../sdk/model/EVMTokenCreateParamsDto.java | 83 +- .../fireblocks/sdk/model/EmbeddedWallet.java | 186 - .../sdk/model/EmbeddedWalletAccount.java | 189 - .../model/EmbeddedWalletAddressDetails.java | 850 - .../sdk/model/EmbeddedWalletAlgoritm.java | 181 - .../sdk/model/EmbeddedWalletAssetBalance.java | 476 - .../model/EmbeddedWalletAssetResponse.java | 858 - .../model/EmbeddedWalletAssetRewardInfo.java | 149 - .../sdk/model/EmbeddedWalletDevice.java | 232 - .../EmbeddedWalletDeviceKeySetupResponse.java | 304 - ...eviceKeySetupResponseSetupStatusInner.java | 240 - .../model/EmbeddedWalletLatestBackupKey.java | 310 - .../EmbeddedWalletLatestBackupResponse.java | 261 - ...eddedWalletPaginatedAddressesResponse.java | 214 - ...EmbeddedWalletPaginatedAssetsResponse.java | 213 - ...mbeddedWalletPaginatedWalletsResponse.java | 212 - .../sdk/model/EmbeddedWalletSetUpStatus.java | 180 - .../com/fireblocks/sdk/model/ErrorCodes.java | 76 - .../sdk/model/EstimatedFeeDetails.java | 203 - .../EstimatedTransactionFeeResponse.java | 41 +- .../fireblocks/sdk/model/ExchangeAccount.java | 6 +- .../sdk/model/ExchangeAccountsPaged.java | 2 +- .../fireblocks/sdk/model/ExchangeAsset.java | 211 +- ...xchangeSettlementTransactionsResponse.java | 6 +- .../sdk/model/ExchangeTradingAccount.java | 2 +- .../fireblocks/sdk/model/ExchangeType.java | 74 +- ...tlement.java => ExecuteActionRequest.java} | 229 +- ...attern.java => ExecuteActionResponse.java} | 171 +- .../model/ExecutionRequestBaseDetails.java | 388 - .../sdk/model/ExecutionRequestDetails.java | 447 - .../model/ExecutionResponseBaseDetails.java | 390 - .../sdk/model/ExecutionResponseDetails.java | 450 - .../fireblocks/sdk/model/ExecutionStep.java | 341 - .../sdk/model/ExecutionStepDetails.java | 182 - .../sdk/model/ExecutionStepError.java | 74 - .../sdk/model/ExecutionStepStatusEnum.java | 70 - .../sdk/model/ExecutionStepType.java | 70 - .../fireblocks/sdk/model/ExternalAccount.java | 178 - .../sdk/model/ExternalWalletAsset.java | 4 +- .../java/com/fireblocks/sdk/model/Fee.java | 368 - .../fireblocks/sdk/model/FeeBreakdown.java | 318 - .../sdk/model/FeeBreakdownOneOf.java | 258 - .../com/fireblocks/sdk/model/FeeInfo.java | 244 +- .../com/fireblocks/sdk/model/FeeLevel.java | 69 - .../sdk/model/FetchAbiRequestDto.java | 190 - .../com/fireblocks/sdk/model/FiatAccount.java | 2 +- .../fireblocks/sdk/model/FiatTransfer.java | 258 - .../com/fireblocks/sdk/model/FixedFee.java | 219 - .../com/fireblocks/sdk/model/FunctionDoc.java | 4 +- .../model/GasslessStandardConfigurations.java | 180 - ...onsGaslessStandardConfigurationsValue.java | 217 - .../sdk/model/GetAPIUsersResponse.java | 2 +- .../sdk/model/GetAuditLogsResponse.java | 2 +- ...onse.java => GetAuditLogsResponseDTO.java} | 146 +- .../sdk/model/GetConnectionsResponse.java | 2 +- .../sdk/model/GetConsoleUsersResponse.java | 2 +- .../model/GetDeployableAddressRequest.java | 300 - ...eAccountsCredentialsPublicKeyResponse.java | 195 - .../model/GetLayerZeroDvnConfigResponse.java | 231 - .../sdk/model/GetLayerZeroPeersResponse.java | 262 - ...GetLinkedCollectionsPaginatedResponse.java | 205 - .../sdk/model/GetMpcKeysResponse.java | 212 - .../fireblocks/sdk/model/GetNFTsResponse.java | 2 +- .../sdk/model/GetOrdersResponse.java | 251 - .../sdk/model/GetOwnershipTokensResponse.java | 2 +- .../sdk/model/GetSigningKeyResponseDto.java | 2 +- .../sdk/model/GetTransactionOperation.java | 12 +- .../model/GetValidationKeyResponseDto.java | 2 +- .../fireblocks/sdk/model/Identification.java | 336 - .../com/fireblocks/sdk/model/IdlType.java | 96 - .../sdk/model/IndicativeQuoteType.java | 178 - .../fireblocks/sdk/model/InitiatorConfig.java | 419 - .../sdk/model/InternalReference.java | 189 - .../sdk/model/InternalTransferResponse.java | 45 +- .../sdk/model/InvalidParamaterValueError.java | 190 - .../java/com/fireblocks/sdk/model/Job.java | 2 +- .../model/LayerZeroAdapterCreateParams.java | 284 - .../fireblocks/sdk/model/LbtPaymentInfo.java | 522 - .../fireblocks/sdk/model/LeanAbiFunction.java | 150 +- .../sdk/model/LegacyDraftResponse.java | 291 - ...egacyDraftReviewAndValidationResponse.java | 185 - .../LegacyPolicyAndValidationResponse.java | 183 - .../sdk/model/LegacyPolicyCheckResult.java | 217 - .../sdk/model/LegacyPolicyMetadata.java | 258 - .../sdk/model/LegacyPolicyResponse.java | 209 - .../sdk/model/LegacyPolicyRule.java | 1610 - .../model/LegacyPolicyRuleCheckResult.java | 290 - .../sdk/model/LegacyPolicyRuleError.java | 334 - .../sdk/model/LegacyPolicyStatus.java | 78 - .../sdk/model/LegacyPolicyValidation.java | 186 - .../sdk/model/LegacyPublishDraftRequest.java | 139 - .../sdk/model/LegacyPublishResult.java | 288 - .../model/LimitExecutionRequestDetails.java | 554 - .../model/LimitExecutionResponseDetails.java | 554 - .../sdk/model/ListAssetsResponse.java | 209 - .../sdk/model/ListBlockchainsResponse.java | 213 - .../model/ListOwnedCollectionsResponse.java | 2 +- .../sdk/model/ListOwnedTokensResponse.java | 2 +- .../com/fireblocks/sdk/model/Manifest.java | 256 - .../model/MarketExecutionRequestDetails.java | 462 - .../model/MarketExecutionResponseDetails.java | 464 - .../model/MarketRequoteRequestDetails.java | 182 - .../sdk/model/MergeStakeAccountsRequest.java | 309 - .../sdk/model/MergeStakeAccountsResponse.java | 145 - .../sdk/model/ModifySigningKeyDto.java | 2 +- .../fireblocks/sdk/model/MomoPaymentInfo.java | 610 - .../java/com/fireblocks/sdk/model/MpcKey.java | 339 - .../model/MultichainDeploymentMetadata.java | 365 - .../sdk/model/NetworkConnection.java | 2 +- .../sdk/model/NetworkConnectionResponse.java | 2 +- .../sdk/model/NetworkIdResponse.java | 171 +- .../com/fireblocks/sdk/model/NewAddress.java | 230 - .../fireblocks/sdk/model/Notification.java | 351 - .../sdk/model/NotificationAttempt.java | 302 - ...NotificationAttemptsPaginatedResponse.java | 213 - .../model/NotificationPaginatedResponse.java | 252 - .../sdk/model/NotificationStatus.java | 68 - .../sdk/model/NotificationWithData.java | 390 - .../sdk/model/OneTimeAddressReference.java | 260 - .../sdk/model/OperationExecutionFailure.java | 2 +- .../fireblocks/sdk/model/OrderDetails.java | 835 - .../com/fireblocks/sdk/model/OrderStatus.java | 72 - .../fireblocks/sdk/model/OrderSummary.java | 586 - .../sdk/model/PaginatedAddressResponse.java | 2 +- .../model/PaginatedAssetWalletResponse.java | 2 +- .../sdk/model/PairApiKeyRequest.java | 135 - .../sdk/model/PairApiKeyResponse.java | 182 - .../com/fireblocks/sdk/model/Parameter.java | 2 +- .../sdk/model/ParameterWithValue.java | 2 +- .../model/ParticipantRelationshipType.java | 66 - .../sdk/model/ParticipantsIdentification.java | 171 - .../sdk/model/PaymentInstructions.java | 274 - .../sdk/model/PayoutInstructionResponse.java | 2 +- .../fireblocks/sdk/model/PayoutResponse.java | 4 +- .../fireblocks/sdk/model/PeerAdapterInfo.java | 236 - .../com/fireblocks/sdk/model/PeerType.java | 70 - .../sdk/model/PersonalIdentification.java | 403 - .../model/PersonalIdentificationFullName.java | 190 - .../fireblocks/sdk/model/PixPaymentInfo.java | 598 - .../fireblocks/sdk/model/PlatformAccount.java | 222 - .../com/fireblocks/sdk/model/Players.java | 217 - .../sdk/model/PolicyCheckResult.java | 2 +- .../fireblocks/sdk/model/PolicyMetadata.java | 59 +- .../fireblocks/sdk/model/PolicyOperator.java | 64 - .../fireblocks/sdk/model/PolicyResponse.java | 2 +- .../com/fireblocks/sdk/model/PolicyRule.java | 1528 +- ...yRuleAmount.java => PolicyRuleAmount.java} | 57 +- ....java => PolicyRuleAmountAggregation.java} | 53 +- ...ava => PolicyRuleAuthorizationGroups.java} | 46 +- ...cyRuleAuthorizationGroupsGroupsInner.java} | 46 +- .../sdk/model/PolicyRuleCheckResult.java | 2 +- ....java => PolicyRuleDesignatedSigners.java} | 32 +- ...yPolicyRuleDst.java => PolicyRuleDst.java} | 29 +- ...perators.java => PolicyRuleOperators.java} | 47 +- ....java => PolicyRuleRawMessageSigning.java} | 37 +- ...yRuleRawMessageSigningDerivationPath.java} | 27 +- ...yPolicyRuleSrc.java => PolicyRuleSrc.java} | 29 +- ...egacyPolicyRules.java => PolicyRules.java} | 26 +- ...bType.java => PolicySrcOrDestSubType.java} | 8 +- ...DestType.java => PolicySrcOrDestType.java} | 8 +- .../com/fireblocks/sdk/model/PolicyType.java | 100 - .../sdk/model/PostOrderSettlement.java | 178 - .../fireblocks/sdk/model/PostalAddress.java | 396 - .../sdk/model/PrefundedSettlement.java | 223 - .../sdk/model/ProgramCallConfig.java | 188 - .../model/{Provider.java => ProviderDto.java} | 178 +- .../com/fireblocks/sdk/model/ProviderID.java | 146 - .../sdk/model/ProvidersListResponse.java | 251 - .../sdk/model/PublicKeyInformation.java | 86 +- .../sdk/model/PublishDraftRequest.java | 93 +- .../fireblocks/sdk/model/PublishResult.java | 2 +- .../java/com/fireblocks/sdk/model/Quote.java | 777 - .../model/QuoteExecutionRequestDetails.java | 222 - .../model/QuoteExecutionResponseDetails.java | 553 - ...oteExecutionWithRequoteRequestDetails.java | 263 - ...WithRequoteRequestDetailsAllOfReQuote.java | 366 - ...teExecutionWithRequoteResponseDetails.java | 605 - ...ithRequoteResponseDetailsAllOfReQuote.java | 366 - .../fireblocks/sdk/model/QuotesResponse.java | 161 - .../fireblocks/sdk/model/ReadAbiFunction.java | 4 +- .../sdk/model/ReadCallFunctionDto.java | 43 +- .../model/ReadCallFunctionDtoAbiFunction.java | 337 - .../sdk/model/RegisterNewAssetRequest.java | 7 +- .../model/ReissueMultichainTokenRequest.java | 363 - .../fireblocks/sdk/model/RelatedRequest.java | 301 - ...action.java => RelatedTransactionDto.java} | 26 +- .../RemoveLayerZeroAdapterFailedResult.java | 152 - .../model/RemoveLayerZeroAdaptersRequest.java | 219 - .../RemoveLayerZeroAdaptersResponse.java | 236 - .../model/RemoveLayerZeroPeersRequest.java | 320 - .../model/RemoveLayerZeroPeersResponse.java | 168 - .../sdk/model/RescanTransaction.java | 180 - ...dFailedNotificationsJobStatusResponse.java | 316 - .../ResendFailedNotificationsRequest.java | 207 - .../ResendFailedNotificationsResponse.java | 141 - ...esendNotificationsByResourceIdRequest.java | 219 - .../sdk/model/RetryRequoteRequestDetails.java | 268 - .../com/fireblocks/sdk/model/SOLAccount.java | 265 - .../sdk/model/SOLAccountWithValue.java | 268 - .../sdk/model/ScreeningMetadataConfig.java | 790 - .../ScreeningOperationExecutionOutput.java | 2 +- ...ScreeningUpdateConfigurationsRequest.java} | 27 +- .../sdk/model/ScreeningValidationFailure.java | 2 +- .../model/ScreeningVerdictMatchedRule.java | 2 +- .../sdk/model/SearchNetworkIdsResponse.java | 204 - .../fireblocks/sdk/model/SepaPaymentInfo.java | 765 - .../com/fireblocks/sdk/model/SessionDTO.java | 2 +- .../sdk/model/SetAssetPriceRequest.java | 190 - .../SetConfirmationsThresholdResponse.java | 2 +- .../model/SetLayerZeroDvnConfigRequest.java | 331 - .../model/SetLayerZeroDvnConfigResponse.java | 163 - .../sdk/model/SetLayerZeroPeersRequest.java | 320 - .../sdk/model/SetLayerZeroPeersResponse.java | 167 - .../SetNetworkIdRoutingPolicyRequest.java | 4 +- .../sdk/model/SetRoutingPolicyRequest.java | 2 +- .../sdk/model/SettlementSourceAccount.java | 332 - .../fireblocks/sdk/model/SignedMessage.java | 2 +- .../sdk/model/SmartTransferApproveTerm.java | 383 - .../sdk/model/SmartTransferCoinStatistic.java | 180 - .../sdk/model/SmartTransferCreateTicket.java | 8 +- .../sdk/model/SmartTransferFundDvpTicket.java | 256 - .../sdk/model/SmartTransferSetUserGroups.java | 2 +- .../sdk/model/SmartTransferStatistic.java | 276 - .../model/SmartTransferStatisticInflow.java | 206 - .../model/SmartTransferStatisticOutflow.java | 206 - .../sdk/model/SmartTransferTicket.java | 144 +- .../SmartTransferTicketFilteredResponse.java | 2 +- .../sdk/model/SmartTransferTicketTerm.java | 41 - .../fireblocks/sdk/model/SolParameter.java | 186 - .../sdk/model/SolParameterWithValue.java | 230 - .../sdk/model/SolanaBlockchainData.java | 212 - ...eDto.java => SolanaBlockchainDataDto.java} | 64 +- .../fireblocks/sdk/model/SolanaConfig.java | 231 - .../sdk/model/SolanaInstruction.java | 336 - .../sdk/model/SolanaInstructionWithValue.java | 339 - .../sdk/model/SolanaSimpleCreateParams.java | 230 - .../sdk/model/SourceTransferPeerPath.java | 45 +- .../model/SourceTransferPeerPathResponse.java | 61 +- .../sdk/model/SpeiAdvancedPaymentInfo.java | 560 - .../fireblocks/sdk/model/SplitRequest.java | 305 - .../fireblocks/sdk/model/SplitResponse.java | 143 - ...ner.java => SrcOrDestAttributesInner.java} | 135 +- ...StakeRequest.java => StakeRequestDto.java} | 70 +- ...akeResponse.java => StakeResponseDto.java} | 20 +- .../fireblocks/sdk/model/StakingProvider.java | 68 - .../java/com/fireblocks/sdk/model/Status.java | 260 - .../java/com/fireblocks/sdk/model/Tag.java | 223 - .../sdk/model/TagsPagedResponse.java | 209 - .../sdk/model/TemplatesPaginatedResponse.java | 2 +- .../com/fireblocks/sdk/model/TimeInForce.java | 62 - .../sdk/model/TimePeriodConfig.java | 274 - .../sdk/model/TimePeriodMatchType.java | 64 - .../model/TokenInfoNotFoundErrorResponse.java | 191 - .../fireblocks/sdk/model/TokenLinkDto.java | 5 +- ...nLinkNotMultichainCompatibleHttpError.java | 193 - .../sdk/model/TokenLinkRequestDto.java | 101 +- .../sdk/model/TokenOwnershipResponse.java | 34 +- .../fireblocks/sdk/model/TokenResponse.java | 34 +- .../sdk/model/TokensPaginatedResponse.java | 2 +- .../sdk/model/TradingErrorResponse.java | 141 - .../sdk/model/TradingErrorResponseError.java | 272 - .../fireblocks/sdk/model/TradingProvider.java | 328 - .../sdk/model/TransactionOperation.java | 24 +- .../sdk/model/TransactionReceiptResponse.java | 728 - .../sdk/model/TransactionRequest.java | 162 +- .../model/TransactionRequestDestination.java | 91 +- .../sdk/model/TransactionResponse.java | 63 +- ...actionResponseContractCallDecodedData.java | 2 +- .../sdk/model/TransferPeerPathType.java | 6 +- .../fireblocks/sdk/model/TransferRail.java | 94 - .../fireblocks/sdk/model/TransferReceipt.java | 327 - .../sdk/model/TransferValidationFailure.java | 2 +- .../sdk/model/TravelRuleAddress.java | 61 +- .../TravelRuleCreateTransactionRequest.java | 481 +- .../model/TravelRuleDateAndPlaceOfBirth.java | 183 - .../model/TravelRuleGeographicAddress.java | 779 - .../model/TravelRuleGetAllVASPsResponse.java | 140 +- .../sdk/model/TravelRuleLegalPerson.java | 386 - .../TravelRuleLegalPersonNameIdentifier.java | 193 - .../TravelRuleNationalIdentification.java | 284 - .../TravelRuleNaturalNameIdentifier.java | 236 - .../sdk/model/TravelRuleNaturalPerson.java | 457 - ...TravelRuleNaturalPersonNameIdentifier.java | 312 - .../sdk/model/TravelRuleOwnershipProof.java | 221 +- .../sdk/model/TravelRulePerson.java | 172 - .../sdk/model/TravelRulePiiIVMS.java | 442 +- .../model/TravelRulePolicyRuleResponse.java | 2 +- .../TravelRuleTransactionBlockchainInfo.java | 8 +- .../fireblocks/sdk/model/TravelRuleVASP.java | 485 +- ...TravelRuleValidateDateAndPlaceOfBirth.java | 184 - ...velRuleValidateFullTransactionRequest.java | 754 +- .../TravelRuleValidateGeographicAddress.java | 828 - .../model/TravelRuleValidateLegalPerson.java | 395 - ...RuleValidateLegalPersonNameIdentifier.java | 239 - ...velRuleValidateNationalIdentification.java | 327 - ...avelRuleValidateNaturalNameIdentifier.java | 292 - .../TravelRuleValidateNaturalPerson.java | 469 - ...leValidateNaturalPersonNameIdentifier.java | 317 - .../sdk/model/TravelRuleValidatePerson.java | 173 - .../sdk/model/TravelRuleValidatePiiIVMS.java | 294 - .../TravelRuleValidateTransactionRequest.java | 54 +- ...TravelRuleValidateTransactionResponse.java | 105 +- .../sdk/model/TravelRuleVaspForVault.java | 139 - .../java/com/fireblocks/sdk/model/TxLog.java | 503 - .../fireblocks/sdk/model/UnmanagedWallet.java | 2 +- .../fireblocks/sdk/model/UnstakeRequest.java | 304 - ...rdsRequest.java => UnstakeRequestDto.java} | 49 +- .../model/UpdateAssetUserMetadataRequest.java | 135 - .../model/UpdateCallbackHandlerRequest.java | 136 - .../model/UpdateCallbackHandlerResponse.java | 185 - .../sdk/model/UpdateDraftRequest.java | 231 - .../sdk/model/UpdateTagRequest.java | 180 - .../sdk/model/UpdateWebhookRequest.java | 277 - .../sdk/model/UsWirePaymentInfo.java | 826 - .../sdk/model/UserGroupCreateRequest.java | 2 +- .../sdk/model/UserGroupCreateResponse.java | 2 +- .../sdk/model/UserGroupResponse.java | 2 +- .../sdk/model/UserGroupUpdateRequest.java | 2 +- .../ValidateLayerZeroChannelResponse.java | 207 - .../model/ValidatedTransactionsForRescan.java | 240 - .../{Validator.java => ValidatorDto.java} | 67 +- .../fireblocks/sdk/model/VaultAccount.java | 68 +- .../sdk/model/VaultAccountsPagedResponse.java | 2 +- .../VaultAccountsTagAttachmentsRequest.java | 229 - .../com/fireblocks/sdk/model/VaultAsset.java | 9 +- .../sdk/model/VaultWalletAddress.java | 6 +- .../fireblocks/sdk/model/VerdictConfig.java | 273 - .../com/fireblocks/sdk/model/Version.java | 145 - .../com/fireblocks/sdk/model/Webhook.java | 446 - .../fireblocks/sdk/model/WebhookEvent.java | 109 - .../sdk/model/WebhookPaginatedResponse.java | 210 - ...awRequest.java => WithdrawRequestDto.java} | 47 +- .../sdk/model/WriteAbiFunction.java | 4 +- .../sdk/model/WriteCallFunctionDto.java | 131 +- .../WriteCallFunctionDtoAbiFunction.java | 337 - .../com/fireblocks/sdk/FireblocksTest.java | 72 +- .../fireblocks/sdk/api/AuditLogsApiTest.java | 15 + .../sdk/api/BlockchainsAssetsApiTest.java | 137 +- .../fireblocks/sdk/api/ComplianceApiTest.java | 58 +- .../sdk/api/ConnectedAccountsBetaApiTest.java | 116 - .../sdk/api/ContractInteractionsApiTest.java | 50 +- .../sdk/api/CosignersBetaApiTest.java | 89 +- .../sdk/api/DeployedContractsApiTest.java | 39 +- .../sdk/api/EmbeddedWalletsApiTest.java | 314 - .../sdk/api/ExchangeAccountsApiTest.java | 31 - .../sdk/api/InternalWalletsApiTest.java | 87 +- .../sdk/api/JobManagementApiTest.java | 6 +- .../sdk/api/KeyLinkBetaApiTest.java | 18 +- .../fireblocks/sdk/api/KeysBetaApiTest.java | 58 - .../sdk/api/NetworkConnectionsApiTest.java | 33 - .../com/fireblocks/sdk/api/NftsApiTest.java | 17 +- .../sdk/api/PolicyEditorBetaApiTest.java | 87 +- .../sdk/api/PolicyEditorV2BetaApiTest.java | 97 - .../sdk/api/SmartTransferApiTest.java | 51 - .../fireblocks/sdk/api/StakingApiTest.java | 256 - .../sdk/api/StakingBetaApiTest.java | 145 + .../com/fireblocks/sdk/api/TagsApiTest.java | 109 - .../sdk/api/TokenizationApiTest.java | 316 +- .../sdk/api/TradingBetaApiTest.java | 144 - .../sdk/api/TransactionsApiTest.java | 19 - .../fireblocks/sdk/api/TravelRuleApiTest.java | 133 - .../sdk/api/TravelRuleBetaApiTest.java | 135 + .../com/fireblocks/sdk/api/VaultsApiTest.java | 91 +- .../sdk/api/Web3ConnectionsApiTest.java | 13 +- .../fireblocks/sdk/api/WebhooksV2ApiTest.java | 252 - .../fireblocks/sdk/model/AccessTypeTest.java | 45 - .../sdk/model/AccountAccessTest.java | 45 - .../fireblocks/sdk/model/AccountBaseTest.java | 39 - .../model/AccountBasedAccessProviderTest.java | 69 - .../sdk/model/AccountConfigTest.java | 57 - .../sdk/model/AccountHolderDetailsTest.java | 63 - .../sdk/model/AccountIdentifierTest.java | 51 - .../sdk/model/AccountProviderIDTest.java | 39 - .../sdk/model/AccountReferenceTest.java | 51 - .../sdk/model/AchPaymentInfoTest.java | 75 - .../model/AdapterProcessingResultTest.java | 39 - .../sdk/model/AddAbiRequestDtoTest.java | 51 - ...equestOneOf1AdditionalInfoOneOf1Test.java} | 13 +- ...equestOneOf1AdditionalInfoOneOf2Test.java} | 13 +- ...RequestOneOf1AdditionalInfoOneOfTest.java} | 13 +- ...WalletRequestOneOf1AdditionalInfoTest.java | 124 + ...setToExternalWalletRequestOneOf1Test.java} | 13 +- ...ssetToExternalWalletRequestOneOfTest.java} | 19 +- .../sdk/model/AddCosignerRequestTest.java | 45 - .../sdk/model/AddCosignerResponseTest.java | 51 - .../model/AddExchangeAccountRequestTest.java | 57 - .../model/AddExchangeAccountResponseTest.java | 45 - ...foTest.java => AdditionalInfoDtoTest.java} | 12 +- ...ditionalInfoRequestAdditionalInfoTest.java | 304 - .../model/AddressNotAvailableErrorTest.java | 39 - .../AmlRegistrationResultFullPayloadTest.java | 45 - .../model/AmlVerdictManualRequestTest.java | 39 - .../model/AmlVerdictManualResponseTest.java | 39 - ...mountAggregationTimePeriodMethodTest.java} | 10 +- .../model/AmountOverTimeConfigRangeTest.java | 39 - .../sdk/model/AmountOverTimeConfigTest.java | 45 - .../fireblocks/sdk/model/AmountRangeTest.java | 45 - .../com/fireblocks/sdk/model/ApiKeyTest.java | 6 - ...pproversConfigApprovalGroupsInnerTest.java | 46 - .../sdk/model/ApproversConfigTest.java | 51 - .../fireblocks/sdk/model/AssetConfigTest.java | 45 - .../sdk/model/AssetDetailsMetadataTest.java | 75 - .../sdk/model/AssetDetailsOnchainTest.java | 57 - ...va => AssetDoesNotExistHttpErrorTest.java} | 24 +- .../sdk/model/AssetMediaAttributesTest.java | 33 - .../fireblocks/sdk/model/AssetMediaTest.java | 45 - .../sdk/model/AssetMetadataRequestTest.java | 33 - .../sdk/model/AssetNoteRequestTest.java | 33 - .../fireblocks/sdk/model/AssetNoteTest.java | 51 - .../AssetPriceForbiddenErrorResponseTest.java | 39 - .../AssetPriceNotFoundErrorResponseTest.java | 39 - .../sdk/model/AssetPriceResponseTest.java | 57 - ...st.java => AssetResponseMetadataTest.java} | 12 +- ...est.java => AssetResponseOnchainTest.java} | 12 +- .../com/fireblocks/sdk/model/AssetTest.java | 75 - .../sdk/model/BaseProviderTest.java | 51 - .../sdk/model/BasicAddressRequestTest.java | 39 - .../sdk/model/BlockchainExplorerTest.java | 51 - .../sdk/model/BlockchainMediaTest.java | 39 - .../sdk/model/BlockchainMetadataTest.java | 51 - .../BlockchainNotFoundErrorResponseTest.java | 39 - .../sdk/model/BlockchainOnchainTest.java | 51 - .../sdk/model/BlockchainResponseTest.java | 63 - .../sdk/model/BlockchainTransferTest.java | 45 - .../com/fireblocks/sdk/model/BpsFeeTest.java | 39 - .../sdk/model/BusinessIdentificationTest.java | 63 - .../sdk/model/CallbackHandlerRequestTest.java | 45 - .../sdk/model/CallbackHandlerTest.java | 45 - .../fireblocks/sdk/model/CapabilityTest.java | 25 - .../sdk/model/ChainDescriptorTest.java | 25 - ...est.java => ChainInfoResponseDtoTest.java} | 12 +- ...ChannelDvnConfigWithConfirmationsTest.java | 39 - .../model/CollectionBurnRequestDtoTest.java | 45 - .../model/CollectionBurnResponseDtoTest.java | 33 - .../model/CollectionDeployRequestDtoTest.java | 69 - .../sdk/model/CollectionLinkDtoTest.java | 57 - .../model/CollectionMintRequestDtoTest.java | 63 - .../model/CollectionMintResponseDtoTest.java | 33 - ...llectionTokenMetadataAttributeDtoTest.java | 46 - .../model/CollectionTokenMetadataDtoTest.java | 63 - .../sdk/model/CollectionTypeTest.java | 25 - .../sdk/model/CommittedQuoteTypeTest.java | 39 - .../ComplianceResultFullPayloadTest.java | 57 - .../ComplianceResultStatusesEnumTest.java | 25 - ...ltsTest.java => ComplianceResultTest.java} | 12 +- ...plianceScreeningResultFullPayloadTest.java | 58 - .../ConnectedAccountApprovalStatusTest.java | 25 - .../model/ConnectedAccountAssetTypeTest.java | 25 - .../ConnectedAccountBalancesResponseTest.java | 45 - .../model/ConnectedAccountBalancesTest.java | 69 - .../model/ConnectedAccountCapabilityTest.java | 25 - .../model/ConnectedAccountManifestTest.java | 39 - .../ConnectedAccountRateResponseTest.java | 51 - .../sdk/model/ConnectedAccountTest.java | 69 - .../ConnectedAccountTotalBalanceTest.java | 45 - ...edAccountTradingPairSupportedTypeTest.java | 25 - .../ConnectedAccountTradingPairTest.java | 51 - ...nectedAccountTradingPairsResponseTest.java | 46 - .../model/ConnectedAccountsResponseTest.java | 45 - .../ConnectedSingleAccountResponseTest.java | 75 - .../sdk/model/ConnectedSingleAccountTest.java | 33 - .../ContractAbiResponseDtoAbiInnerTest.java | 81 - .../model/ContractDataDecodeDataTypeTest.java | 25 - .../model/ContractDataDecodeErrorTest.java | 39 - .../ContractDataDecodeRequestDataTest.java | 39 - .../model/ContractDataDecodeRequestTest.java | 45 - .../ContractDataDecodeResponseParamsTest.java | 45 - .../ContractDataDecodedResponseTest.java | 39 - .../model/ContractDataLogDataParamTest.java | 39 - .../sdk/model/ContractDeployRequestTest.java | 18 - .../sdk/model/ContractMethodConfigTest.java | 45 - .../sdk/model/ContractMethodPatternTest.java | 45 - .../sdk/model/ContractUploadRequestTest.java | 6 - .../sdk/model/ContractWithAbiDtoTest.java | 69 - .../fireblocks/sdk/model/CosignerTest.java | 12 - .../CreateMultichainTokenRequestTest.java | 75 - .../CreateMultipleAccountsRequestTest.java | 24 +- ...MultipleDepositAddressesJobStatusTest.java | 46 - ...teMultipleDepositAddressesRequestTest.java | 64 - ...ateMultipleVaultAccountsJobStatusTest.java | 46 - .../sdk/model/CreateOrderRequestTest.java | 63 - .../sdk/model/CreateQuoteScopeInnerTest.java | 39 - .../fireblocks/sdk/model/CreateQuoteTest.java | 81 - ...eateSigningKeyDtoProofOfOwnershipTest.java | 40 - .../sdk/model/CreateSigningKeyDtoTest.java | 6 - .../sdk/model/CreateTagRequestTest.java | 39 - ...CreateTokenRequestDtoCreateParamsTest.java | 12 +- .../sdk/model/CreateTokenRequestDtoTest.java | 18 - .../model/CreateVaultAccountRequestTest.java | 12 - .../sdk/model/CreateWebhookRequestTest.java | 51 - .../sdk/model/DVPSettlementTest.java | 45 - ...gationTest.java => DelegationDtoTest.java} | 24 +- ...est.java => DelegationSummaryDtoTest.java} | 12 +- .../DeployLayerZeroAdaptersRequestTest.java | 69 - .../model/DeployableAddressResponseTest.java | 33 - .../DeployedContractNotFoundErrorTest.java | 39 - .../DeployedContractResponseDtoTest.java | 24 - .../model/DesignatedSignersConfigTest.java | 45 - .../sdk/model/DestinationConfigTest.java | 63 - ...stinationTransferPeerPathResponseTest.java | 6 - .../DestinationTransferPeerPathTest.java | 6 - .../sdk/model/DirectAccessProviderTest.java | 69 - .../sdk/model/DirectAccessTest.java | 39 - .../fireblocks/sdk/model/DvnConfigTest.java | 45 - .../model/DvnConfigWithConfirmationsTest.java | 51 - .../model/EVMTokenCreateParamsDtoTest.java | 6 +- .../sdk/model/EmbeddedWalletAccountTest.java | 39 - .../EmbeddedWalletAddressDetailsTest.java | 123 - .../sdk/model/EmbeddedWalletAlgoritmTest.java | 33 - .../model/EmbeddedWalletAssetBalanceTest.java | 81 - .../EmbeddedWalletAssetResponseTest.java | 129 - .../EmbeddedWalletAssetRewardInfoTest.java | 33 - ...eKeySetupResponseSetupStatusInnerTest.java | 46 - ...eddedWalletDeviceKeySetupResponseTest.java | 52 - .../sdk/model/EmbeddedWalletDeviceTest.java | 45 - .../EmbeddedWalletLatestBackupKeyTest.java | 51 - ...mbeddedWalletLatestBackupResponseTest.java | 46 - ...dWalletPaginatedAddressesResponseTest.java | 40 - ...ddedWalletPaginatedAssetsResponseTest.java | 40 - ...dedWalletPaginatedWalletsResponseTest.java | 40 - .../model/EmbeddedWalletSetUpStatusTest.java | 33 - .../sdk/model/EmbeddedWalletTest.java | 39 - .../fireblocks/sdk/model/ErrorCodesTest.java | 25 - .../sdk/model/EstimatedFeeDetailsTest.java | 45 - .../EstimatedTransactionFeeResponseTest.java | 6 - .../sdk/model/ExchangeAssetTest.java | 30 - ...est.java => ExecuteActionRequestTest.java} | 48 +- ...st.java => ExecuteActionResponseTest.java} | 12 +- .../ExecutionRequestBaseDetailsTest.java | 63 - .../model/ExecutionRequestDetailsTest.java | 93 - .../ExecutionResponseBaseDetailsTest.java | 63 - .../model/ExecutionResponseDetailsTest.java | 99 - .../sdk/model/ExecutionStepDetailsTest.java | 39 - .../sdk/model/ExecutionStepErrorTest.java | 25 - .../model/ExecutionStepStatusEnumTest.java | 25 - .../sdk/model/ExecutionStepTest.java | 63 - .../sdk/model/ExecutionStepTypeTest.java | 25 - .../sdk/model/ExternalAccountTest.java | 33 - .../sdk/model/FeeBreakdownOneOf1Test.java | 45 - .../sdk/model/FeeBreakdownOneOfTest.java | 51 - .../sdk/model/FeeBreakdownTest.java | 51 - .../com/fireblocks/sdk/model/FeeInfoTest.java | 30 - .../fireblocks/sdk/model/FeeLevelTest.java | 25 - .../com/fireblocks/sdk/model/FeeTest.java | 51 - .../sdk/model/FetchAbiRequestDtoTest.java | 39 - .../sdk/model/FiatTransferTest.java | 45 - .../fireblocks/sdk/model/FixedFeeTest.java | 39 - ...aslessStandardConfigurationsValueTest.java | 40 - .../GasslessStandardConfigurationsTest.java | 33 - ....java => GetAuditLogsResponseDTOTest.java} | 30 +- .../GetDeployableAddressRequestTest.java | 51 - ...ountsCredentialsPublicKeyResponseTest.java | 40 - .../GetLayerZeroDvnConfigResponseTest.java | 39 - .../model/GetLayerZeroPeersResponseTest.java | 45 - ...inkedCollectionsPaginatedResponseTest.java | 40 - .../sdk/model/GetMpcKeysResponseTest.java | 39 - .../sdk/model/GetOrdersResponseTest.java | 45 - .../sdk/model/IdentificationTest.java | 75 - .../com/fireblocks/sdk/model/IdlTypeTest.java | 25 - .../sdk/model/IndicativeQuoteTypeTest.java | 33 - .../sdk/model/InitiatorConfigPatternTest.java | 63 - .../sdk/model/InitiatorConfigTest.java | 63 - .../sdk/model/InternalReferenceTest.java | 39 - .../model/InternalTransferResponseTest.java | 6 - .../model/InvalidParamaterValueErrorTest.java | 39 - .../LayerZeroAdapterCreateParamsTest.java | 51 - .../sdk/model/LbtPaymentInfoTest.java | 75 - .../sdk/model/LeanAbiFunctionTest.java | 12 - ...AmountAggregationTimePeriodMethodTest.java | 25 - .../sdk/model/LegacyDraftResponseTest.java | 51 - ...yDraftReviewAndValidationResponseTest.java | 40 - ...LegacyPolicyAndValidationResponseTest.java | 39 - .../model/LegacyPolicyCheckResultTest.java | 39 - .../sdk/model/LegacyPolicyMetadataTest.java | 51 - .../sdk/model/LegacyPolicyResponseTest.java | 39 - .../sdk/model/LegacyPolicyRuleAmountTest.java | 27 - .../LegacyPolicyRuleCheckResultTest.java | 45 - .../sdk/model/LegacyPolicyRuleErrorTest.java | 51 - ...leRawMessageSigningDerivationPathTest.java | 34 - .../sdk/model/LegacyPolicyRuleTest.java | 201 - .../LegacyPolicySrcOrDestSubTypeTest.java | 25 - .../model/LegacyPolicySrcOrDestTypeTest.java | 25 - .../sdk/model/LegacyPolicyStatusTest.java | 25 - .../sdk/model/LegacyPolicyValidationTest.java | 39 - .../model/LegacyPublishDraftRequestTest.java | 33 - .../sdk/model/LegacyPublishResultTest.java | 51 - .../LegacySrcOrDestAttributesInnerTest.java | 27 - .../LimitExecutionRequestDetailsTest.java | 81 - .../LimitExecutionResponseDetailsTest.java | 81 - .../sdk/model/ListAssetsResponseTest.java | 39 - .../model/ListBlockchainsResponseTest.java | 39 - .../fireblocks/sdk/model/ManifestTest.java | 39 - .../MarketExecutionRequestDetailsTest.java | 69 - .../MarketExecutionResponseDetailsTest.java | 69 - .../MarketRequoteRequestDetailsTest.java | 33 - .../model/MergeStakeAccountsRequestTest.java | 57 - .../model/MergeStakeAccountsResponseTest.java | 33 - .../sdk/model/MomoPaymentInfoTest.java | 81 - .../com/fireblocks/sdk/model/MpcKeyTest.java | 57 - .../MultichainDeploymentMetadataTest.java | 63 - .../sdk/model/NetworkIdResponseTest.java | 24 +- .../fireblocks/sdk/model/NewAddressTest.java | 45 - .../sdk/model/NotificationAttemptTest.java | 51 - ...ficationAttemptsPaginatedResponseTest.java | 40 - .../NotificationPaginatedResponseTest.java | 45 - .../sdk/model/NotificationStatusTest.java | 25 - .../sdk/model/NotificationTest.java | 63 - .../sdk/model/NotificationWithDataTest.java | 69 - .../sdk/model/OrderDetailsTest.java | 123 - .../fireblocks/sdk/model/OrderStatusTest.java | 25 - .../sdk/model/OrderSummaryTest.java | 93 - .../sdk/model/PairApiKeyRequestTest.java | 33 - .../sdk/model/PairApiKeyResponseTest.java | 39 - .../ParticipantRelationshipTypeTest.java | 25 - .../model/ParticipantsIdentificationTest.java | 39 - .../sdk/model/PaymentInstructionsTest.java | 45 - .../sdk/model/PeerAdapterInfoTest.java | 45 - .../fireblocks/sdk/model/PeerTypeTest.java | 25 - .../PersonalIdentificationFullNameTest.java | 39 - .../sdk/model/PersonalIdentificationTest.java | 63 - .../sdk/model/PixPaymentInfoTest.java | 81 - .../sdk/model/PlatformAccountTest.java | 39 - .../com/fireblocks/sdk/model/PlayersTest.java | 39 - .../sdk/model/PolicyMetadataTest.java | 6 - .../sdk/model/PolicyOperatorTest.java | 25 - ...a => PolicyRuleAmountAggregationTest.java} | 12 +- ...ureTest.java => PolicyRuleAmountTest.java} | 12 +- ...leAuthorizationGroupsGroupsInnerTest.java} | 14 +- ...=> PolicyRuleAuthorizationGroupsTest.java} | 13 +- ...a => PolicyRuleDesignatedSignersTest.java} | 12 +- ...uleDstTest.java => PolicyRuleDstTest.java} | 12 +- ...Test.java => PolicyRuleOperatorsTest.java} | 12 +- ...eRawMessageSigningDerivationPathTest.java} | 19 +- ...a => PolicyRuleRawMessageSigningTest.java} | 12 +- ...uleSrcTest.java => PolicyRuleSrcTest.java} | 12 +- .../fireblocks/sdk/model/PolicyRuleTest.java | 168 +- ...icyRulesTest.java => PolicyRulesTest.java} | 12 +- ...t.java => PolicySrcOrDestSubTypeTest.java} | 10 +- ...Test.java => PolicySrcOrDestTypeTest.java} | 10 +- .../fireblocks/sdk/model/PolicyTypeTest.java | 25 - .../sdk/model/PostOrderSettlementTest.java | 33 - .../sdk/model/PostalAddressTest.java | 69 - .../sdk/model/PrefundedSettlementTest.java | 39 - .../sdk/model/ProgramCallConfigTest.java | 33 - ...ProviderTest.java => ProviderDtoTest.java} | 24 +- .../fireblocks/sdk/model/ProviderIDTest.java | 33 - .../sdk/model/ProvidersListResponseTest.java | 45 - .../sdk/model/PublishDraftRequestTest.java | 6 - .../QuoteExecutionRequestDetailsTest.java | 39 - .../QuoteExecutionResponseDetailsTest.java | 81 - ...RequoteRequestDetailsAllOfReQuoteTest.java | 46 - ...xecutionWithRequoteRequestDetailsTest.java | 46 - ...equoteResponseDetailsAllOfReQuoteTest.java | 46 - ...ecutionWithRequoteResponseDetailsTest.java | 88 - .../com/fireblocks/sdk/model/QuoteTest.java | 105 - .../sdk/model/QuotesResponseTest.java | 33 - .../ReadCallFunctionDtoAbiFunctionTest.java | 81 - .../ReissueMultichainTokenRequestTest.java | 57 - .../sdk/model/RelatedRequestTest.java | 51 - ...st.java => RelatedTransactionDtoTest.java} | 12 +- ...emoveLayerZeroAdapterFailedResultTest.java | 34 - .../RemoveLayerZeroAdaptersRequestTest.java | 39 - .../RemoveLayerZeroAdaptersResponseTest.java | 39 - .../RemoveLayerZeroPeersRequestTest.java | 51 - .../RemoveLayerZeroPeersResponseTest.java | 33 - .../sdk/model/RescanTransactionTest.java | 39 - ...ledNotificationsJobStatusResponseTest.java | 52 - .../ResendFailedNotificationsRequestTest.java | 39 - ...ResendFailedNotificationsResponseTest.java | 33 - ...dNotificationsByResourceIdRequestTest.java | 40 - .../model/RetryRequoteRequestDetailsTest.java | 45 - .../fireblocks/sdk/model/SOLAccountTest.java | 51 - .../sdk/model/SOLAccountWithValueTest.java | 51 - .../model/ScreeningMetadataConfigTest.java | 93 - ...eningUpdateConfigurationsRequestTest.java} | 13 +- .../model/SearchNetworkIdsResponseTest.java | 39 - .../sdk/model/SepaPaymentInfoTest.java | 111 - .../sdk/model/SetAssetPriceRequestTest.java | 39 - .../SetLayerZeroDvnConfigRequestTest.java | 57 - .../SetLayerZeroDvnConfigResponseTest.java | 33 - .../model/SetLayerZeroPeersRequestTest.java | 51 - .../model/SetLayerZeroPeersResponseTest.java | 33 - .../model/SettlementSourceAccountTest.java | 39 - .../fireblocks/sdk/model/SettlementTest.java | 45 - .../model/SmartTransferApproveTermTest.java | 63 - .../model/SmartTransferCoinStatisticTest.java | 39 - .../model/SmartTransferFundDvpTicketTest.java | 45 - .../SmartTransferStatisticInflowTest.java | 39 - .../SmartTransferStatisticOutflowTest.java | 39 - .../sdk/model/SmartTransferStatisticTest.java | 51 - .../model/SmartTransferTicketTermTest.java | 6 - .../sdk/model/SmartTransferTicketTest.java | 12 - .../sdk/model/SolParameterTest.java | 39 - .../sdk/model/SolParameterWithValueTest.java | 45 - ....java => SolanaBlockchainDataDtoTest.java} | 18 +- .../sdk/model/SolanaConfigTest.java | 39 - .../sdk/model/SolanaInstructionTest.java | 51 - .../model/SolanaInstructionWithValueTest.java | 51 - .../model/SolanaSimpleCreateParamsTest.java | 45 - .../SourceTransferPeerPathResponseTest.java | 6 - .../sdk/model/SourceTransferPeerPathTest.java | 6 - .../model/SpeiAdvancedPaymentInfoTest.java | 81 - .../sdk/model/SplitRequestTest.java | 57 - ...java => SrcOrDestAttributesInnerTest.java} | 12 +- ...uestTest.java => StakeRequestDtoTest.java} | 12 +- ...nseTest.java => StakeResponseDtoTest.java} | 12 +- .../sdk/model/StakingProviderTest.java | 25 - .../com/fireblocks/sdk/model/StatusTest.java | 39 - .../com/fireblocks/sdk/model/TagTest.java | 45 - .../sdk/model/TagsPagedResponseTest.java | 39 - .../fireblocks/sdk/model/TimeInForceTest.java | 25 - .../sdk/model/TimePeriodConfigTest.java | 51 - .../sdk/model/TimePeriodMatchTypeTest.java | 25 - .../TokenInfoNotFoundErrorResponseTest.java | 39 - ...kNotMultichainCompatibleHttpErrorTest.java | 40 - .../sdk/model/TokenLinkRequestDtoTest.java | 12 - .../sdk/model/TradingErrorResponseTest.java | 33 - .../sdk/model/TradingProviderTest.java | 87 - .../model/TransactionReceiptResponseTest.java | 111 - .../TransactionRequestDestinationTest.java | 12 - .../sdk/model/TransactionRequestTest.java | 18 - .../sdk/model/TransactionResponseTest.java | 6 +- .../sdk/model/TransferRailTest.java | 25 - .../sdk/model/TransferReceiptTest.java | 51 - ...ravelRuleCreateTransactionRequestTest.java | 54 +- .../TravelRuleDateAndPlaceOfBirthTest.java | 39 - .../TravelRuleGeographicAddressTest.java | 123 - .../TravelRuleGetAllVASPsResponseTest.java | 18 +- ...avelRuleLegalPersonNameIdentifierTest.java | 40 - .../sdk/model/TravelRuleLegalPersonTest.java | 63 - .../TravelRuleNationalIdentificationTest.java | 51 - .../TravelRuleNaturalNameIdentifierTest.java | 45 - ...elRuleNaturalPersonNameIdentifierTest.java | 46 - .../model/TravelRuleNaturalPersonTest.java | 69 - .../model/TravelRuleOwnershipProofTest.java | 30 - .../sdk/model/TravelRulePersonTest.java | 39 - .../sdk/model/TravelRulePiiIVMSTest.java | 54 +- ...elRuleValidateDateAndPlaceOfBirthTest.java | 40 - ...uleValidateFullTransactionRequestTest.java | 90 +- ...avelRuleValidateGeographicAddressTest.java | 124 - ...ValidateLegalPersonNameIdentifierTest.java | 40 - .../TravelRuleValidateLegalPersonTest.java | 63 - ...uleValidateNationalIdentificationTest.java | 52 - ...RuleValidateNaturalNameIdentifierTest.java | 46 - ...lidateNaturalPersonNameIdentifierTest.java | 46 - .../TravelRuleValidateNaturalPersonTest.java | 69 - .../model/TravelRuleValidatePersonTest.java | 39 - .../model/TravelRuleValidatePiiIVMSTest.java | 45 - ...velRuleValidateTransactionRequestTest.java | 6 - .../sdk/model/TravelRuleVaspForVaultTest.java | 33 - .../com/fireblocks/sdk/model/TxLogTest.java | 81 - ...stTest.java => UnstakeRequestDtoTest.java} | 12 +- .../UpdateAssetUserMetadataRequestTest.java | 33 - .../UpdateCallbackHandlerRequestTest.java | 33 - .../UpdateCallbackHandlerResponseTest.java | 39 - .../sdk/model/UpdateDraftRequestTest.java | 39 - .../sdk/model/UpdateTagRequestTest.java | 39 - .../sdk/model/UpdateWebhookRequestTest.java | 51 - .../sdk/model/UsWirePaymentInfoTest.java | 117 - .../ValidateLayerZeroChannelResponseTest.java | 39 - .../ValidatedTransactionsForRescanTest.java | 45 - ...lidatorTest.java => ValidatorDtoTest.java} | 18 +- .../sdk/model/VaultAccountTest.java | 6 - ...aultAccountsTagAttachmentsRequestTest.java | 40 - .../sdk/model/VerdictConfigTest.java | 45 - .../com/fireblocks/sdk/model/VersionTest.java | 33 - .../sdk/model/WebhookEventTest.java | 25 - .../model/WebhookPaginatedResponseTest.java | 39 - .../com/fireblocks/sdk/model/WebhookTest.java | 69 - ...tTest.java => WithdrawRequestDtoTest.java} | 12 +- .../WriteCallFunctionDtoAbiFunctionTest.java | 81 - .../sdk/model/WriteCallFunctionDtoTest.java | 12 - 1465 files changed, 24965 insertions(+), 197312 deletions(-) delete mode 100644 docs/AbaPaymentInfo.md delete mode 100644 docs/AccessType.md delete mode 100644 docs/AccountAccess.md delete mode 100644 docs/AccountBase.md delete mode 100644 docs/AccountBasedAccessProvider.md delete mode 100644 docs/AccountConfig.md delete mode 100644 docs/AccountHolderDetails.md delete mode 100644 docs/AccountIdentifier.md delete mode 100644 docs/AccountProviderID.md delete mode 100644 docs/AccountReference.md delete mode 100644 docs/AccountType2.md delete mode 100644 docs/AchPaymentInfo.md delete mode 100644 docs/AdapterProcessingResult.md delete mode 100644 docs/AddAbiRequestDto.md rename docs/{BasicAddressRequest.md => AddAssetToExternalWalletRequestOneOf.md} (77%) create mode 100644 docs/AddAssetToExternalWalletRequestOneOf1.md create mode 100644 docs/AddAssetToExternalWalletRequestOneOf1AdditionalInfo.md create mode 100644 docs/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf.md create mode 100644 docs/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1.md create mode 100644 docs/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2.md delete mode 100644 docs/AddCosignerRequest.md delete mode 100644 docs/AddCosignerResponse.md delete mode 100644 docs/AddExchangeAccountRequest.md delete mode 100644 docs/AddExchangeAccountResponse.md rename docs/{AdditionalInfo.md => AdditionalInfoDto.md} (81%) delete mode 100644 docs/AdditionalInfoRequest.md delete mode 100644 docs/AdditionalInfoRequestAdditionalInfo.md delete mode 100644 docs/AddressNotAvailableError.md delete mode 100644 docs/AmlRegistrationResultFullPayload.md delete mode 100644 docs/AmlVerdictManualRequest.md delete mode 100644 docs/AmlVerdictManualResponse.md rename docs/{TimePeriodMatchType.md => AmountAggregationTimePeriodMethod.md} (77%) delete mode 100644 docs/AmountOverTimeConfig.md delete mode 100644 docs/AmountOverTimeConfigRange.md delete mode 100644 docs/AmountRange.md delete mode 100644 docs/ApproversConfig.md delete mode 100644 docs/ApproversConfigApprovalGroupsInner.md delete mode 100644 docs/Asset.md delete mode 100644 docs/AssetClass.md delete mode 100644 docs/AssetConfig.md delete mode 100644 docs/AssetDetailsMetadata.md delete mode 100644 docs/AssetDetailsOnchain.md create mode 100644 docs/AssetDoesNotExistHttpError.md delete mode 100644 docs/AssetFeature.md delete mode 100644 docs/AssetMedia.md delete mode 100644 docs/AssetMediaAttributes.md delete mode 100644 docs/AssetMetadataRequest.md delete mode 100644 docs/AssetNote.md delete mode 100644 docs/AssetNoteRequest.md delete mode 100644 docs/AssetPriceForbiddenErrorResponse.md delete mode 100644 docs/AssetPriceNotFoundErrorResponse.md delete mode 100644 docs/AssetPriceResponse.md rename docs/{AssetMetadata.md => AssetResponseMetadata.md} (93%) rename docs/{AssetOnchain.md => AssetResponseOnchain.md} (80%) delete mode 100644 docs/AssetScope.md delete mode 100644 docs/AssetTypesConfigInner.md delete mode 100644 docs/BaseProvider.md delete mode 100644 docs/BlockchainExplorer.md delete mode 100644 docs/BlockchainMedia.md delete mode 100644 docs/BlockchainMetadata.md delete mode 100644 docs/BlockchainNotFoundErrorResponse.md delete mode 100644 docs/BlockchainOnchain.md delete mode 100644 docs/BlockchainResponse.md delete mode 100644 docs/BlockchainTransfer.md delete mode 100644 docs/BpsFee.md delete mode 100644 docs/BusinessIdentification.md delete mode 100644 docs/CallbackHandler.md delete mode 100644 docs/CallbackHandlerRequest.md delete mode 100644 docs/Capability.md delete mode 100644 docs/ChainDescriptor.md rename docs/{ChainInfoResponse.md => ChainInfoResponseDto.md} (73%) delete mode 100644 docs/ChannelDvnConfigWithConfirmations.md delete mode 100644 docs/CollectionBurnRequestDto.md delete mode 100644 docs/CollectionBurnResponseDto.md delete mode 100644 docs/CollectionDeployRequestDto.md delete mode 100644 docs/CollectionLinkDto.md delete mode 100644 docs/CollectionMintRequestDto.md delete mode 100644 docs/CollectionMintResponseDto.md delete mode 100644 docs/CollectionTokenMetadataAttributeDto.md delete mode 100644 docs/CollectionTokenMetadataDto.md delete mode 100644 docs/CollectionType.md delete mode 100644 docs/CommittedQuoteType.md create mode 100644 docs/ComplianceResult.md delete mode 100644 docs/ComplianceResultFullPayload.md delete mode 100644 docs/ComplianceResultStatusesEnum.md delete mode 100644 docs/ComplianceResults.md delete mode 100644 docs/ComplianceScreeningResultFullPayload.md delete mode 100644 docs/ConnectedAccount.md delete mode 100644 docs/ConnectedAccountApprovalStatus.md delete mode 100644 docs/ConnectedAccountAssetType.md delete mode 100644 docs/ConnectedAccountBalances.md delete mode 100644 docs/ConnectedAccountBalancesResponse.md delete mode 100644 docs/ConnectedAccountCapability.md delete mode 100644 docs/ConnectedAccountManifest.md delete mode 100644 docs/ConnectedAccountRateResponse.md delete mode 100644 docs/ConnectedAccountTotalBalance.md delete mode 100644 docs/ConnectedAccountTradingPair.md delete mode 100644 docs/ConnectedAccountTradingPairSupportedType.md delete mode 100644 docs/ConnectedAccountTradingPairsResponse.md delete mode 100644 docs/ConnectedAccountsBetaApi.md delete mode 100644 docs/ConnectedAccountsResponse.md delete mode 100644 docs/ConnectedSingleAccount.md delete mode 100644 docs/ConnectedSingleAccountResponse.md delete mode 100644 docs/ContractAbiResponseDtoAbiInner.md delete mode 100644 docs/ContractDataDecodeDataType.md delete mode 100644 docs/ContractDataDecodeError.md delete mode 100644 docs/ContractDataDecodeRequest.md delete mode 100644 docs/ContractDataDecodeRequestData.md delete mode 100644 docs/ContractDataDecodeResponseParams.md delete mode 100644 docs/ContractDataDecodedResponse.md delete mode 100644 docs/ContractDataLogDataParam.md delete mode 100644 docs/ContractMethodConfig.md delete mode 100644 docs/ContractMethodPattern.md delete mode 100644 docs/ContractWithAbiDto.md delete mode 100644 docs/CreateMultichainTokenRequest.md delete mode 100644 docs/CreateMultipleDepositAddressesJobStatus.md delete mode 100644 docs/CreateMultipleDepositAddressesRequest.md delete mode 100644 docs/CreateMultipleVaultAccountsJobStatus.md delete mode 100644 docs/CreateOrderRequest.md delete mode 100644 docs/CreateQuote.md delete mode 100644 docs/CreateQuoteScopeInner.md delete mode 100644 docs/CreateSigningKeyDtoProofOfOwnership.md delete mode 100644 docs/CreateTagRequest.md delete mode 100644 docs/CreateWebhookRequest.md delete mode 100644 docs/DVPSettlement.md rename docs/{Delegation.md => DelegationDto.md} (53%) rename docs/{DelegationSummary.md => DelegationSummaryDto.md} (97%) delete mode 100644 docs/DeployLayerZeroAdaptersRequest.md delete mode 100644 docs/DeployableAddressResponse.md delete mode 100644 docs/DeployedContractNotFoundError.md delete mode 100644 docs/DerivationPathConfig.md delete mode 100644 docs/DesignatedSignersConfig.md delete mode 100644 docs/DestinationConfig.md delete mode 100644 docs/DirectAccess.md delete mode 100644 docs/DirectAccessProvider.md delete mode 100644 docs/DvnConfig.md delete mode 100644 docs/DvnConfigWithConfirmations.md delete mode 100644 docs/EmbeddedWallet.md delete mode 100644 docs/EmbeddedWalletAccount.md delete mode 100644 docs/EmbeddedWalletAddressDetails.md delete mode 100644 docs/EmbeddedWalletAlgoritm.md delete mode 100644 docs/EmbeddedWalletAssetBalance.md delete mode 100644 docs/EmbeddedWalletAssetResponse.md delete mode 100644 docs/EmbeddedWalletAssetRewardInfo.md delete mode 100644 docs/EmbeddedWalletDevice.md delete mode 100644 docs/EmbeddedWalletDeviceKeySetupResponse.md delete mode 100644 docs/EmbeddedWalletDeviceKeySetupResponseSetupStatusInner.md delete mode 100644 docs/EmbeddedWalletLatestBackupKey.md delete mode 100644 docs/EmbeddedWalletLatestBackupResponse.md delete mode 100644 docs/EmbeddedWalletPaginatedAddressesResponse.md delete mode 100644 docs/EmbeddedWalletPaginatedAssetsResponse.md delete mode 100644 docs/EmbeddedWalletPaginatedWalletsResponse.md delete mode 100644 docs/EmbeddedWalletSetUpStatus.md delete mode 100644 docs/EmbeddedWalletsApi.md delete mode 100644 docs/ErrorCodes.md delete mode 100644 docs/EstimatedFeeDetails.md create mode 100644 docs/ExecuteActionRequest.md create mode 100644 docs/ExecuteActionResponse.md delete mode 100644 docs/ExecutionRequestBaseDetails.md delete mode 100644 docs/ExecutionRequestDetails.md delete mode 100644 docs/ExecutionResponseBaseDetails.md delete mode 100644 docs/ExecutionResponseDetails.md delete mode 100644 docs/ExecutionStep.md delete mode 100644 docs/ExecutionStepDetails.md delete mode 100644 docs/ExecutionStepError.md delete mode 100644 docs/ExecutionStepStatusEnum.md delete mode 100644 docs/ExecutionStepType.md delete mode 100644 docs/ExternalAccount.md delete mode 100644 docs/Fee.md delete mode 100644 docs/FeeBreakdown.md delete mode 100644 docs/FeeBreakdownOneOf.md delete mode 100644 docs/FeeBreakdownOneOf1.md delete mode 100644 docs/FeeLevel.md delete mode 100644 docs/FetchAbiRequestDto.md delete mode 100644 docs/FiatTransfer.md delete mode 100644 docs/FixedFee.md delete mode 100644 docs/GasslessStandardConfigurations.md delete mode 100644 docs/GasslessStandardConfigurationsGaslessStandardConfigurationsValue.md create mode 100644 docs/GetAuditLogsResponseDTO.md delete mode 100644 docs/GetDeployableAddressRequest.md delete mode 100644 docs/GetExchangeAccountsCredentialsPublicKeyResponse.md delete mode 100644 docs/GetLayerZeroDvnConfigResponse.md delete mode 100644 docs/GetLayerZeroPeersResponse.md delete mode 100644 docs/GetLinkedCollectionsPaginatedResponse.md delete mode 100644 docs/GetMpcKeysResponse.md delete mode 100644 docs/GetOrdersResponse.md delete mode 100644 docs/IbanPaymentInfo.md delete mode 100644 docs/Identification.md delete mode 100644 docs/IdlType.md delete mode 100644 docs/IndicativeQuoteType.md delete mode 100644 docs/InitiatorConfig.md delete mode 100644 docs/InitiatorConfigPattern.md delete mode 100644 docs/InternalReference.md delete mode 100644 docs/InvalidParamaterValueError.md delete mode 100644 docs/KeysBetaApi.md delete mode 100644 docs/LayerZeroAdapterCreateParams.md delete mode 100644 docs/LbtPaymentInfo.md delete mode 100644 docs/LegacyAmountAggregationTimePeriodMethod.md delete mode 100644 docs/LegacyDraftResponse.md delete mode 100644 docs/LegacyDraftReviewAndValidationResponse.md delete mode 100644 docs/LegacyPolicyAndValidationResponse.md delete mode 100644 docs/LegacyPolicyCheckResult.md delete mode 100644 docs/LegacyPolicyMetadata.md delete mode 100644 docs/LegacyPolicyResponse.md delete mode 100644 docs/LegacyPolicyRule.md delete mode 100644 docs/LegacyPolicyRuleCheckResult.md delete mode 100644 docs/LegacyPolicyRuleError.md delete mode 100644 docs/LegacyPolicyRules.md delete mode 100644 docs/LegacyPolicyStatus.md delete mode 100644 docs/LegacyPolicyValidation.md delete mode 100644 docs/LegacyPublishDraftRequest.md delete mode 100644 docs/LegacyPublishResult.md delete mode 100644 docs/LegacySrcOrDestAttributesInner.md delete mode 100644 docs/LimitExecutionRequestDetails.md delete mode 100644 docs/LimitExecutionResponseDetails.md delete mode 100644 docs/ListAssetsResponse.md delete mode 100644 docs/ListBlockchainsResponse.md delete mode 100644 docs/Manifest.md delete mode 100644 docs/MarketExecutionRequestDetails.md delete mode 100644 docs/MarketExecutionResponseDetails.md delete mode 100644 docs/MarketRequoteRequestDetails.md delete mode 100644 docs/MergeStakeAccountsRequest.md delete mode 100644 docs/MergeStakeAccountsResponse.md delete mode 100644 docs/MomoPaymentInfo.md delete mode 100644 docs/MpcKey.md delete mode 100644 docs/MultichainDeploymentMetadata.md delete mode 100644 docs/NewAddress.md delete mode 100644 docs/Notification.md delete mode 100644 docs/NotificationAttempt.md delete mode 100644 docs/NotificationAttemptsPaginatedResponse.md delete mode 100644 docs/NotificationPaginatedResponse.md delete mode 100644 docs/NotificationStatus.md delete mode 100644 docs/NotificationWithData.md delete mode 100644 docs/OneTimeAddressReference.md delete mode 100644 docs/OrderDetails.md delete mode 100644 docs/OrderStatus.md delete mode 100644 docs/OrderSummary.md delete mode 100644 docs/PaginatedAssetsResponse.md delete mode 100644 docs/PairApiKeyRequest.md delete mode 100644 docs/PairApiKeyResponse.md delete mode 100644 docs/ParticipantRelationshipType.md delete mode 100644 docs/ParticipantsIdentification.md delete mode 100644 docs/PaymentInstructions.md delete mode 100644 docs/PeerAdapterInfo.md delete mode 100644 docs/PeerType.md delete mode 100644 docs/PersonalIdentification.md delete mode 100644 docs/PixPaymentInfo.md delete mode 100644 docs/PlatformAccount.md delete mode 100644 docs/Players.md delete mode 100644 docs/PolicyEditorV2BetaApi.md delete mode 100644 docs/PolicyOperator.md rename docs/{LegacyPolicyRuleAmount.md => PolicyRuleAmount.md} (51%) rename docs/{LegacyPolicyRuleAmountAggregation.md => PolicyRuleAmountAggregation.md} (53%) rename docs/{LegacyPolicyRuleAuthorizationGroups.md => PolicyRuleAuthorizationGroups.md} (73%) rename docs/{LegacyPolicyRuleAuthorizationGroupsGroupsInner.md => PolicyRuleAuthorizationGroupsGroupsInner.md} (89%) rename docs/{LegacyPolicyRuleDesignatedSigners.md => PolicyRuleDesignatedSigners.md} (90%) rename docs/{LegacyPolicyRuleDst.md => PolicyRuleDst.md} (56%) rename docs/{LegacyPolicyRuleOperators.md => PolicyRuleOperators.md} (96%) rename docs/{LegacyPolicyRuleRawMessageSigning.md => PolicyRuleRawMessageSigning.md} (52%) rename docs/{LegacyPolicyRuleRawMessageSigningDerivationPath.md => PolicyRuleRawMessageSigningDerivationPath.md} (78%) rename docs/{LegacyPolicyRuleSrc.md => PolicyRuleSrc.md} (57%) rename docs/{PersonalIdentificationFullName.md => PolicyRules.md} (70%) rename docs/{LegacyPolicySrcOrDestSubType.md => PolicySrcOrDestSubType.md} (86%) rename docs/{LegacyPolicySrcOrDestType.md => PolicySrcOrDestType.md} (92%) delete mode 100644 docs/PolicyType.md delete mode 100644 docs/PostOrderSettlement.md delete mode 100644 docs/PostalAddress.md delete mode 100644 docs/PrefundedSettlement.md delete mode 100644 docs/ProgramCallConfig.md delete mode 100644 docs/Provider.md create mode 100644 docs/ProviderDto.md delete mode 100644 docs/ProviderID.md delete mode 100644 docs/ProvidersListResponse.md delete mode 100644 docs/Quote.md delete mode 100644 docs/QuoteExecutionRequestDetails.md delete mode 100644 docs/QuoteExecutionResponseDetails.md delete mode 100644 docs/QuoteExecutionWithRequoteRequestDetails.md delete mode 100644 docs/QuoteExecutionWithRequoteRequestDetailsAllOfReQuote.md delete mode 100644 docs/QuoteExecutionWithRequoteResponseDetails.md delete mode 100644 docs/QuoteExecutionWithRequoteResponseDetailsAllOfReQuote.md delete mode 100644 docs/QuotesResponse.md delete mode 100644 docs/ReadCallFunctionDtoAbiFunction.md delete mode 100644 docs/ReissueMultichainTokenRequest.md delete mode 100644 docs/RelatedRequest.md rename docs/{RelatedTransaction.md => RelatedTransactionDto.md} (91%) delete mode 100644 docs/RemoveLayerZeroAdapterFailedResult.md delete mode 100644 docs/RemoveLayerZeroAdaptersRequest.md delete mode 100644 docs/RemoveLayerZeroAdaptersResponse.md delete mode 100644 docs/RemoveLayerZeroPeersRequest.md delete mode 100644 docs/RemoveLayerZeroPeersResponse.md delete mode 100644 docs/RescanTransaction.md delete mode 100644 docs/ResendFailedNotificationsJobStatusResponse.md delete mode 100644 docs/ResendFailedNotificationsRequest.md delete mode 100644 docs/ResendFailedNotificationsResponse.md delete mode 100644 docs/ResendNotificationsByResourceIdRequest.md delete mode 100644 docs/RetryRequoteRequestDetails.md delete mode 100644 docs/SOLAccount.md delete mode 100644 docs/SOLAccountWithValue.md delete mode 100644 docs/ScreeningMetadataConfig.md rename docs/{ScreeningUpdateConfigurations.md => ScreeningUpdateConfigurationsRequest.md} (90%) delete mode 100644 docs/SearchNetworkIdsResponse.md delete mode 100644 docs/SepaPaymentInfo.md delete mode 100644 docs/SetAssetPriceRequest.md delete mode 100644 docs/SetLayerZeroDvnConfigRequest.md delete mode 100644 docs/SetLayerZeroDvnConfigResponse.md delete mode 100644 docs/SetLayerZeroPeersRequest.md delete mode 100644 docs/SetLayerZeroPeersResponse.md delete mode 100644 docs/Settlement.md delete mode 100644 docs/SettlementSourceAccount.md delete mode 100644 docs/SmartTransferApproveTerm.md delete mode 100644 docs/SmartTransferCoinStatistic.md delete mode 100644 docs/SmartTransferFundDvpTicket.md delete mode 100644 docs/SmartTransferStatistic.md delete mode 100644 docs/SmartTransferStatisticInflow.md delete mode 100644 docs/SmartTransferStatisticOutflow.md delete mode 100644 docs/SolParameter.md delete mode 100644 docs/SolParameterWithValue.md delete mode 100644 docs/SolanaBlockchainData.md create mode 100644 docs/SolanaBlockchainDataDto.md delete mode 100644 docs/SolanaConfig.md delete mode 100644 docs/SolanaInstruction.md delete mode 100644 docs/SolanaInstructionWithValue.md delete mode 100644 docs/SolanaSimpleCreateParams.md delete mode 100644 docs/SpeiAdvancedPaymentInfo.md delete mode 100644 docs/SpeiBasicPaymentInfo.md delete mode 100644 docs/SplitRequest.md delete mode 100644 docs/SplitResponse.md create mode 100644 docs/SrcOrDestAttributesInner.md rename docs/{StakeRequest.md => StakeRequestDto.md} (67%) rename docs/{StakeResponse.md => StakeResponseDto.md} (91%) delete mode 100644 docs/StakingApi.md create mode 100644 docs/StakingBetaApi.md delete mode 100644 docs/StakingProvider.md delete mode 100644 docs/Status.md delete mode 100644 docs/Tag.md delete mode 100644 docs/TagsApi.md delete mode 100644 docs/TagsPagedResponse.md delete mode 100644 docs/TimeInForce.md delete mode 100644 docs/TimePeriodConfig.md delete mode 100644 docs/TokenInfoNotFoundErrorResponse.md delete mode 100644 docs/TokenLinkNotMultichainCompatibleHttpError.md delete mode 100644 docs/TradingBetaApi.md delete mode 100644 docs/TradingErrorResponse.md delete mode 100644 docs/TradingErrorResponseError.md delete mode 100644 docs/TradingProvider.md delete mode 100644 docs/TransactionReceiptResponse.md delete mode 100644 docs/TransferRail.md delete mode 100644 docs/TransferReceipt.md rename docs/{TravelRuleApi.md => TravelRuleBetaApi.md} (60%) delete mode 100644 docs/TravelRuleDateAndPlaceOfBirth.md delete mode 100644 docs/TravelRuleGeographicAddress.md delete mode 100644 docs/TravelRuleLegalPerson.md delete mode 100644 docs/TravelRuleLegalPersonNameIdentifier.md delete mode 100644 docs/TravelRuleNationalIdentification.md delete mode 100644 docs/TravelRuleNaturalNameIdentifier.md delete mode 100644 docs/TravelRuleNaturalPerson.md delete mode 100644 docs/TravelRuleNaturalPersonNameIdentifier.md delete mode 100644 docs/TravelRulePerson.md delete mode 100644 docs/TravelRuleValidateDateAndPlaceOfBirth.md delete mode 100644 docs/TravelRuleValidateGeographicAddress.md delete mode 100644 docs/TravelRuleValidateLegalPerson.md delete mode 100644 docs/TravelRuleValidateLegalPersonNameIdentifier.md delete mode 100644 docs/TravelRuleValidateNationalIdentification.md delete mode 100644 docs/TravelRuleValidateNaturalNameIdentifier.md delete mode 100644 docs/TravelRuleValidateNaturalPerson.md delete mode 100644 docs/TravelRuleValidateNaturalPersonNameIdentifier.md delete mode 100644 docs/TravelRuleValidatePerson.md delete mode 100644 docs/TravelRuleValidatePiiIVMS.md delete mode 100644 docs/TravelRuleVaspForVault.md delete mode 100644 docs/TxLog.md delete mode 100644 docs/UnstakeRequest.md rename docs/{ClaimRewardsRequest.md => UnstakeRequestDto.md} (60%) delete mode 100644 docs/UpdateAssetUserMetadataRequest.md delete mode 100644 docs/UpdateCallbackHandlerRequest.md delete mode 100644 docs/UpdateCallbackHandlerResponse.md delete mode 100644 docs/UpdateDraftRequest.md delete mode 100644 docs/UpdateTagRequest.md delete mode 100644 docs/UpdateWebhookRequest.md delete mode 100644 docs/UsWirePaymentInfo.md delete mode 100644 docs/ValidateLayerZeroChannelResponse.md delete mode 100644 docs/ValidatedTransactionsForRescan.md rename docs/{Validator.md => ValidatorDto.md} (76%) delete mode 100644 docs/VaultAccountsTagAttachmentsRequest.md delete mode 100644 docs/VerdictConfig.md delete mode 100644 docs/Version.md delete mode 100644 docs/Webhook.md delete mode 100644 docs/WebhookEvent.md delete mode 100644 docs/WebhookPaginatedResponse.md delete mode 100644 docs/WebhooksV2Api.md rename docs/{WithdrawRequest.md => WithdrawRequestDto.md} (69%) delete mode 100644 docs/WriteCallFunctionDtoAbiFunction.md delete mode 100644 src/main/java/com/fireblocks/sdk/api/ConnectedAccountsBetaApi.java delete mode 100644 src/main/java/com/fireblocks/sdk/api/EmbeddedWalletsApi.java delete mode 100644 src/main/java/com/fireblocks/sdk/api/KeysBetaApi.java delete mode 100644 src/main/java/com/fireblocks/sdk/api/PolicyEditorV2BetaApi.java rename src/main/java/com/fireblocks/sdk/api/{StakingApi.java => StakingBetaApi.java} (55%) delete mode 100644 src/main/java/com/fireblocks/sdk/api/TagsApi.java delete mode 100644 src/main/java/com/fireblocks/sdk/api/TradingBetaApi.java rename src/main/java/com/fireblocks/sdk/api/{TravelRuleApi.java => TravelRuleBetaApi.java} (73%) delete mode 100644 src/main/java/com/fireblocks/sdk/api/WebhooksV2Api.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/AccessType.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/AccountAccess.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/AccountBase.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/AccountBasedAccessProvider.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/AccountConfig.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/AccountHolderDetails.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/AccountIdentifier.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/AccountProviderID.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/AccountReference.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/AccountType2.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/AchPaymentInfo.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/AdapterProcessingResult.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/AddAbiRequestDto.java rename src/main/java/com/fireblocks/sdk/model/{BasicAddressRequest.java => AddAssetToExternalWalletRequestOneOf.java} (82%) rename src/main/java/com/fireblocks/sdk/model/{AdditionalInfoRequest.java => AddAssetToExternalWalletRequestOneOf1.java} (72%) create mode 100644 src/main/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOf1AdditionalInfo.java rename src/main/java/com/fireblocks/sdk/model/{IbanPaymentInfo.java => AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf.java} (78%) rename src/main/java/com/fireblocks/sdk/model/{AbaPaymentInfo.java => AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1.java} (77%) rename src/main/java/com/fireblocks/sdk/model/{SpeiBasicPaymentInfo.java => AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2.java} (76%) delete mode 100644 src/main/java/com/fireblocks/sdk/model/AddCosignerRequest.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/AddCosignerResponse.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/AddExchangeAccountRequest.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/AddExchangeAccountResponse.java rename src/main/java/com/fireblocks/sdk/model/{AdditionalInfo.java => AdditionalInfoDto.java} (90%) delete mode 100644 src/main/java/com/fireblocks/sdk/model/AdditionalInfoRequestAdditionalInfo.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/AddressNotAvailableError.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/AmlRegistrationResultFullPayload.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/AmlVerdictManualRequest.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/AmlVerdictManualResponse.java rename src/main/java/com/fireblocks/sdk/model/{LegacyAmountAggregationTimePeriodMethod.java => AmountAggregationTimePeriodMethod.java} (82%) delete mode 100644 src/main/java/com/fireblocks/sdk/model/AmountOverTimeConfig.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/AmountOverTimeConfigRange.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/AmountRange.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/ApproversConfig.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/ApproversConfigApprovalGroupsInner.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/Asset.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/AssetClass.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/AssetConfig.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/AssetDetailsMetadata.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/AssetDetailsOnchain.java rename src/main/java/com/fireblocks/sdk/model/{FeeBreakdownOneOf1.java => AssetDoesNotExistHttpError.java} (54%) delete mode 100644 src/main/java/com/fireblocks/sdk/model/AssetFeature.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/AssetMedia.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/AssetMediaAttributes.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/AssetMetadataRequest.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/AssetNote.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/AssetNoteRequest.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/AssetPriceForbiddenErrorResponse.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/AssetPriceNotFoundErrorResponse.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/AssetPriceResponse.java rename src/main/java/com/fireblocks/sdk/model/{AssetMetadata.java => AssetResponseMetadata.java} (88%) rename src/main/java/com/fireblocks/sdk/model/{AssetOnchain.java => AssetResponseOnchain.java} (81%) delete mode 100644 src/main/java/com/fireblocks/sdk/model/AssetScope.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/AssetTypesConfigInner.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/BaseProvider.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/BlockchainExplorer.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/BlockchainMedia.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/BlockchainMetadata.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/BlockchainNotFoundErrorResponse.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/BlockchainOnchain.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/BlockchainResponse.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/BlockchainTransfer.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/BpsFee.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/BusinessIdentification.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/CallbackHandler.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/CallbackHandlerRequest.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/Capability.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/ChainDescriptor.java rename src/main/java/com/fireblocks/sdk/model/{ChainInfoResponse.java => ChainInfoResponseDto.java} (85%) delete mode 100644 src/main/java/com/fireblocks/sdk/model/ChannelDvnConfigWithConfirmations.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/CollectionBurnRequestDto.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/CollectionBurnResponseDto.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/CollectionDeployRequestDto.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/CollectionLinkDto.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/CollectionMintRequestDto.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/CollectionTokenMetadataAttributeDto.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/CollectionTokenMetadataDto.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/CollectionType.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/CommittedQuoteType.java create mode 100644 src/main/java/com/fireblocks/sdk/model/ComplianceResult.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/ComplianceResultFullPayload.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/ComplianceResultStatusesEnum.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/ComplianceResults.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/ComplianceScreeningResultFullPayload.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/ConnectedAccount.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/ConnectedAccountApprovalStatus.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/ConnectedAccountAssetType.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/ConnectedAccountBalances.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/ConnectedAccountBalancesResponse.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/ConnectedAccountCapability.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/ConnectedAccountManifest.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/ConnectedAccountRateResponse.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/ConnectedAccountTotalBalance.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/ConnectedAccountTradingPair.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/ConnectedAccountTradingPairSupportedType.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/ConnectedAccountTradingPairsResponse.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/ConnectedAccountsResponse.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/ConnectedSingleAccount.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/ConnectedSingleAccountResponse.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/ContractAbiResponseDtoAbiInner.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/ContractDataDecodeDataType.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/ContractDataDecodeError.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/ContractDataDecodeRequest.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/ContractDataDecodeRequestData.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/ContractDataDecodeResponseParams.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/ContractDataDecodedResponse.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/ContractDataLogDataParam.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/ContractMethodConfig.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/ContractMethodPattern.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/ContractWithAbiDto.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/CreateMultichainTokenRequest.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/CreateMultipleDepositAddressesJobStatus.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/CreateMultipleDepositAddressesRequest.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/CreateMultipleVaultAccountsJobStatus.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/CreateOrderRequest.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/CreateQuote.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/CreateQuoteScopeInner.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/CreateSigningKeyDtoProofOfOwnership.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/CreateTagRequest.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/CreateWebhookRequest.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/DVPSettlement.java rename src/main/java/com/fireblocks/sdk/model/{Delegation.java => DelegationDto.java} (73%) rename src/main/java/com/fireblocks/sdk/model/{DelegationSummary.java => DelegationSummaryDto.java} (90%) delete mode 100644 src/main/java/com/fireblocks/sdk/model/DeployLayerZeroAdaptersRequest.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/DeployableAddressResponse.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/DeployedContractNotFoundError.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/DerivationPathConfig.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/DesignatedSignersConfig.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/DestinationConfig.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/DirectAccess.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/DirectAccessProvider.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/DvnConfig.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/DvnConfigWithConfirmations.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/EmbeddedWallet.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/EmbeddedWalletAccount.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/EmbeddedWalletAddressDetails.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/EmbeddedWalletAlgoritm.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/EmbeddedWalletAssetBalance.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/EmbeddedWalletAssetResponse.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/EmbeddedWalletAssetRewardInfo.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/EmbeddedWalletDevice.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/EmbeddedWalletDeviceKeySetupResponse.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/EmbeddedWalletDeviceKeySetupResponseSetupStatusInner.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/EmbeddedWalletLatestBackupKey.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/EmbeddedWalletLatestBackupResponse.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/EmbeddedWalletPaginatedAddressesResponse.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/EmbeddedWalletPaginatedAssetsResponse.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/EmbeddedWalletPaginatedWalletsResponse.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/EmbeddedWalletSetUpStatus.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/ErrorCodes.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/EstimatedFeeDetails.java rename src/main/java/com/fireblocks/sdk/model/{Settlement.java => ExecuteActionRequest.java} (55%) rename src/main/java/com/fireblocks/sdk/model/{InitiatorConfigPattern.java => ExecuteActionResponse.java} (62%) delete mode 100644 src/main/java/com/fireblocks/sdk/model/ExecutionRequestBaseDetails.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/ExecutionRequestDetails.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/ExecutionResponseBaseDetails.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/ExecutionResponseDetails.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/ExecutionStep.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/ExecutionStepDetails.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/ExecutionStepError.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/ExecutionStepStatusEnum.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/ExecutionStepType.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/ExternalAccount.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/Fee.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/FeeBreakdown.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/FeeBreakdownOneOf.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/FeeLevel.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/FetchAbiRequestDto.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/FiatTransfer.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/FixedFee.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/GasslessStandardConfigurations.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/GasslessStandardConfigurationsGaslessStandardConfigurationsValue.java rename src/main/java/com/fireblocks/sdk/model/{PaginatedAssetsResponse.java => GetAuditLogsResponseDTO.java} (61%) delete mode 100644 src/main/java/com/fireblocks/sdk/model/GetDeployableAddressRequest.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/GetExchangeAccountsCredentialsPublicKeyResponse.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/GetLayerZeroDvnConfigResponse.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/GetLayerZeroPeersResponse.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/GetLinkedCollectionsPaginatedResponse.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/GetMpcKeysResponse.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/GetOrdersResponse.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/Identification.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/IdlType.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/IndicativeQuoteType.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/InitiatorConfig.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/InternalReference.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/InvalidParamaterValueError.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/LayerZeroAdapterCreateParams.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/LbtPaymentInfo.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/LegacyDraftResponse.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/LegacyDraftReviewAndValidationResponse.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/LegacyPolicyAndValidationResponse.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/LegacyPolicyCheckResult.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/LegacyPolicyMetadata.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/LegacyPolicyResponse.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/LegacyPolicyRule.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleCheckResult.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleError.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/LegacyPolicyStatus.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/LegacyPolicyValidation.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/LegacyPublishDraftRequest.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/LegacyPublishResult.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/LimitExecutionRequestDetails.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/LimitExecutionResponseDetails.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/ListAssetsResponse.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/ListBlockchainsResponse.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/Manifest.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/MarketExecutionRequestDetails.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/MarketExecutionResponseDetails.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/MarketRequoteRequestDetails.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/MergeStakeAccountsRequest.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/MergeStakeAccountsResponse.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/MomoPaymentInfo.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/MpcKey.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/MultichainDeploymentMetadata.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/NewAddress.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/Notification.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/NotificationAttempt.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/NotificationAttemptsPaginatedResponse.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/NotificationPaginatedResponse.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/NotificationStatus.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/NotificationWithData.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/OneTimeAddressReference.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/OrderDetails.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/OrderStatus.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/OrderSummary.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/PairApiKeyRequest.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/PairApiKeyResponse.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/ParticipantRelationshipType.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/ParticipantsIdentification.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/PaymentInstructions.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/PeerAdapterInfo.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/PeerType.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/PersonalIdentification.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/PersonalIdentificationFullName.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/PixPaymentInfo.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/PlatformAccount.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/Players.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/PolicyOperator.java rename src/main/java/com/fireblocks/sdk/model/{LegacyPolicyRuleAmount.java => PolicyRuleAmount.java} (77%) rename src/main/java/com/fireblocks/sdk/model/{LegacyPolicyRuleAmountAggregation.java => PolicyRuleAmountAggregation.java} (74%) rename src/main/java/com/fireblocks/sdk/model/{LegacyPolicyRuleAuthorizationGroups.java => PolicyRuleAuthorizationGroups.java} (83%) rename src/main/java/com/fireblocks/sdk/model/{LegacyPolicyRuleAuthorizationGroupsGroupsInner.java => PolicyRuleAuthorizationGroupsGroupsInner.java} (81%) rename src/main/java/com/fireblocks/sdk/model/{LegacyPolicyRuleDesignatedSigners.java => PolicyRuleDesignatedSigners.java} (84%) rename src/main/java/com/fireblocks/sdk/model/{LegacyPolicyRuleDst.java => PolicyRuleDst.java} (81%) rename src/main/java/com/fireblocks/sdk/model/{LegacyPolicyRuleOperators.java => PolicyRuleOperators.java} (85%) rename src/main/java/com/fireblocks/sdk/model/{LegacyPolicyRuleRawMessageSigning.java => PolicyRuleRawMessageSigning.java} (77%) rename src/main/java/com/fireblocks/sdk/model/{LegacyPolicyRuleRawMessageSigningDerivationPath.java => PolicyRuleRawMessageSigningDerivationPath.java} (81%) rename src/main/java/com/fireblocks/sdk/model/{LegacyPolicyRuleSrc.java => PolicyRuleSrc.java} (82%) rename src/main/java/com/fireblocks/sdk/model/{LegacyPolicyRules.java => PolicyRules.java} (84%) rename src/main/java/com/fireblocks/sdk/model/{LegacyPolicySrcOrDestSubType.java => PolicySrcOrDestSubType.java} (88%) rename src/main/java/com/fireblocks/sdk/model/{LegacyPolicySrcOrDestType.java => PolicySrcOrDestType.java} (89%) delete mode 100644 src/main/java/com/fireblocks/sdk/model/PolicyType.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/PostOrderSettlement.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/PostalAddress.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/PrefundedSettlement.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/ProgramCallConfig.java rename src/main/java/com/fireblocks/sdk/model/{Provider.java => ProviderDto.java} (67%) delete mode 100644 src/main/java/com/fireblocks/sdk/model/ProviderID.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/ProvidersListResponse.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/Quote.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/QuoteExecutionRequestDetails.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/QuoteExecutionResponseDetails.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/QuoteExecutionWithRequoteRequestDetails.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/QuoteExecutionWithRequoteRequestDetailsAllOfReQuote.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/QuoteExecutionWithRequoteResponseDetails.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/QuoteExecutionWithRequoteResponseDetailsAllOfReQuote.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/QuotesResponse.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/ReadCallFunctionDtoAbiFunction.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/ReissueMultichainTokenRequest.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/RelatedRequest.java rename src/main/java/com/fireblocks/sdk/model/{RelatedTransaction.java => RelatedTransactionDto.java} (87%) delete mode 100644 src/main/java/com/fireblocks/sdk/model/RemoveLayerZeroAdapterFailedResult.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/RemoveLayerZeroAdaptersRequest.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/RemoveLayerZeroAdaptersResponse.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/RemoveLayerZeroPeersRequest.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/RemoveLayerZeroPeersResponse.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/RescanTransaction.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/ResendFailedNotificationsJobStatusResponse.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/ResendFailedNotificationsRequest.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/ResendFailedNotificationsResponse.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/ResendNotificationsByResourceIdRequest.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/RetryRequoteRequestDetails.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/SOLAccount.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/SOLAccountWithValue.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/ScreeningMetadataConfig.java rename src/main/java/com/fireblocks/sdk/model/{ScreeningUpdateConfigurations.java => ScreeningUpdateConfigurationsRequest.java} (86%) delete mode 100644 src/main/java/com/fireblocks/sdk/model/SearchNetworkIdsResponse.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/SepaPaymentInfo.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/SetAssetPriceRequest.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/SetLayerZeroDvnConfigRequest.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/SetLayerZeroDvnConfigResponse.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/SetLayerZeroPeersRequest.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/SetLayerZeroPeersResponse.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/SettlementSourceAccount.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/SmartTransferApproveTerm.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/SmartTransferCoinStatistic.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/SmartTransferFundDvpTicket.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/SmartTransferStatistic.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/SmartTransferStatisticInflow.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/SmartTransferStatisticOutflow.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/SolParameter.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/SolParameterWithValue.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/SolanaBlockchainData.java rename src/main/java/com/fireblocks/sdk/model/{CollectionMintResponseDto.java => SolanaBlockchainDataDto.java} (59%) delete mode 100644 src/main/java/com/fireblocks/sdk/model/SolanaConfig.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/SolanaInstruction.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/SolanaInstructionWithValue.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/SolanaSimpleCreateParams.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/SpeiAdvancedPaymentInfo.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/SplitRequest.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/SplitResponse.java rename src/main/java/com/fireblocks/sdk/model/{LegacySrcOrDestAttributesInner.java => SrcOrDestAttributesInner.java} (54%) rename src/main/java/com/fireblocks/sdk/model/{StakeRequest.java => StakeRequestDto.java} (82%) rename src/main/java/com/fireblocks/sdk/model/{StakeResponse.java => StakeResponseDto.java} (86%) delete mode 100644 src/main/java/com/fireblocks/sdk/model/StakingProvider.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/Status.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/Tag.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/TagsPagedResponse.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/TimeInForce.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/TimePeriodConfig.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/TimePeriodMatchType.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/TokenInfoNotFoundErrorResponse.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/TokenLinkNotMultichainCompatibleHttpError.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/TradingErrorResponse.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/TradingErrorResponseError.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/TradingProvider.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/TransactionReceiptResponse.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/TransferRail.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/TransferReceipt.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/TravelRuleDateAndPlaceOfBirth.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/TravelRuleGeographicAddress.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/TravelRuleLegalPerson.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/TravelRuleLegalPersonNameIdentifier.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/TravelRuleNationalIdentification.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/TravelRuleNaturalNameIdentifier.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/TravelRuleNaturalPerson.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/TravelRuleNaturalPersonNameIdentifier.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/TravelRulePerson.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/TravelRuleValidateDateAndPlaceOfBirth.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/TravelRuleValidateGeographicAddress.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/TravelRuleValidateLegalPerson.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/TravelRuleValidateLegalPersonNameIdentifier.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/TravelRuleValidateNationalIdentification.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/TravelRuleValidateNaturalNameIdentifier.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/TravelRuleValidateNaturalPerson.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/TravelRuleValidateNaturalPersonNameIdentifier.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/TravelRuleValidatePerson.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/TravelRuleValidatePiiIVMS.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/TravelRuleVaspForVault.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/TxLog.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/UnstakeRequest.java rename src/main/java/com/fireblocks/sdk/model/{ClaimRewardsRequest.java => UnstakeRequestDto.java} (82%) delete mode 100644 src/main/java/com/fireblocks/sdk/model/UpdateAssetUserMetadataRequest.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/UpdateCallbackHandlerRequest.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/UpdateCallbackHandlerResponse.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/UpdateDraftRequest.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/UpdateTagRequest.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/UpdateWebhookRequest.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/UsWirePaymentInfo.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/ValidateLayerZeroChannelResponse.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/ValidatedTransactionsForRescan.java rename src/main/java/com/fireblocks/sdk/model/{Validator.java => ValidatorDto.java} (72%) delete mode 100644 src/main/java/com/fireblocks/sdk/model/VaultAccountsTagAttachmentsRequest.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/VerdictConfig.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/Version.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/Webhook.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/WebhookEvent.java delete mode 100644 src/main/java/com/fireblocks/sdk/model/WebhookPaginatedResponse.java rename src/main/java/com/fireblocks/sdk/model/{WithdrawRequest.java => WithdrawRequestDto.java} (82%) delete mode 100644 src/main/java/com/fireblocks/sdk/model/WriteCallFunctionDtoAbiFunction.java delete mode 100644 src/test/java/com/fireblocks/sdk/api/ConnectedAccountsBetaApiTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/api/EmbeddedWalletsApiTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/api/KeysBetaApiTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/api/PolicyEditorV2BetaApiTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/api/StakingApiTest.java create mode 100644 src/test/java/com/fireblocks/sdk/api/StakingBetaApiTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/api/TagsApiTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/api/TradingBetaApiTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/api/TravelRuleApiTest.java create mode 100644 src/test/java/com/fireblocks/sdk/api/TravelRuleBetaApiTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/api/WebhooksV2ApiTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/AccessTypeTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/AccountAccessTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/AccountBaseTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/AccountBasedAccessProviderTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/AccountConfigTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/AccountHolderDetailsTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/AccountIdentifierTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/AccountProviderIDTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/AccountReferenceTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/AchPaymentInfoTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/AdapterProcessingResultTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/AddAbiRequestDtoTest.java rename src/test/java/com/fireblocks/sdk/model/{AbaPaymentInfoTest.java => AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1Test.java} (79%) rename src/test/java/com/fireblocks/sdk/model/{SpeiBasicPaymentInfoTest.java => AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2Test.java} (56%) rename src/test/java/com/fireblocks/sdk/model/{IbanPaymentInfoTest.java => AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOfTest.java} (78%) create mode 100644 src/test/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOf1AdditionalInfoTest.java rename src/test/java/com/fireblocks/sdk/model/{AdditionalInfoRequestTest.java => AddAssetToExternalWalletRequestOneOf1Test.java} (59%) rename src/test/java/com/fireblocks/sdk/model/{OneTimeAddressReferenceTest.java => AddAssetToExternalWalletRequestOneOfTest.java} (62%) delete mode 100644 src/test/java/com/fireblocks/sdk/model/AddCosignerRequestTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/AddCosignerResponseTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/AddExchangeAccountRequestTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/AddExchangeAccountResponseTest.java rename src/test/java/com/fireblocks/sdk/model/{AdditionalInfoTest.java => AdditionalInfoDtoTest.java} (77%) delete mode 100644 src/test/java/com/fireblocks/sdk/model/AdditionalInfoRequestAdditionalInfoTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/AddressNotAvailableErrorTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/AmlRegistrationResultFullPayloadTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/AmlVerdictManualRequestTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/AmlVerdictManualResponseTest.java rename src/test/java/com/fireblocks/sdk/model/{AssetClassTest.java => AmountAggregationTimePeriodMethodTest.java} (63%) delete mode 100644 src/test/java/com/fireblocks/sdk/model/AmountOverTimeConfigRangeTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/AmountOverTimeConfigTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/AmountRangeTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/ApproversConfigApprovalGroupsInnerTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/ApproversConfigTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/AssetConfigTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/AssetDetailsMetadataTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/AssetDetailsOnchainTest.java rename src/test/java/com/fireblocks/sdk/model/{TradingErrorResponseErrorTest.java => AssetDoesNotExistHttpErrorTest.java} (54%) delete mode 100644 src/test/java/com/fireblocks/sdk/model/AssetMediaAttributesTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/AssetMediaTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/AssetMetadataRequestTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/AssetNoteRequestTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/AssetNoteTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/AssetPriceForbiddenErrorResponseTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/AssetPriceNotFoundErrorResponseTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/AssetPriceResponseTest.java rename src/test/java/com/fireblocks/sdk/model/{AssetMetadataTest.java => AssetResponseMetadataTest.java} (70%) rename src/test/java/com/fireblocks/sdk/model/{AssetOnchainTest.java => AssetResponseOnchainTest.java} (78%) delete mode 100644 src/test/java/com/fireblocks/sdk/model/AssetTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/BaseProviderTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/BasicAddressRequestTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/BlockchainExplorerTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/BlockchainMediaTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/BlockchainMetadataTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/BlockchainNotFoundErrorResponseTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/BlockchainOnchainTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/BlockchainResponseTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/BlockchainTransferTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/BpsFeeTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/BusinessIdentificationTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/CallbackHandlerRequestTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/CallbackHandlerTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/CapabilityTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/ChainDescriptorTest.java rename src/test/java/com/fireblocks/sdk/model/{ChainInfoResponseTest.java => ChainInfoResponseDtoTest.java} (80%) delete mode 100644 src/test/java/com/fireblocks/sdk/model/ChannelDvnConfigWithConfirmationsTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/CollectionBurnRequestDtoTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/CollectionBurnResponseDtoTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/CollectionDeployRequestDtoTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/CollectionLinkDtoTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/CollectionMintRequestDtoTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/CollectionMintResponseDtoTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/CollectionTokenMetadataAttributeDtoTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/CollectionTokenMetadataDtoTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/CollectionTypeTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/CommittedQuoteTypeTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/ComplianceResultFullPayloadTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/ComplianceResultStatusesEnumTest.java rename src/test/java/com/fireblocks/sdk/model/{ComplianceResultsTest.java => ComplianceResultTest.java} (79%) delete mode 100644 src/test/java/com/fireblocks/sdk/model/ComplianceScreeningResultFullPayloadTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/ConnectedAccountApprovalStatusTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/ConnectedAccountAssetTypeTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/ConnectedAccountBalancesResponseTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/ConnectedAccountBalancesTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/ConnectedAccountCapabilityTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/ConnectedAccountManifestTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/ConnectedAccountRateResponseTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/ConnectedAccountTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/ConnectedAccountTotalBalanceTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/ConnectedAccountTradingPairSupportedTypeTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/ConnectedAccountTradingPairTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/ConnectedAccountTradingPairsResponseTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/ConnectedAccountsResponseTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/ConnectedSingleAccountResponseTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/ConnectedSingleAccountTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/ContractAbiResponseDtoAbiInnerTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/ContractDataDecodeDataTypeTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/ContractDataDecodeErrorTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/ContractDataDecodeRequestDataTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/ContractDataDecodeRequestTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/ContractDataDecodeResponseParamsTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/ContractDataDecodedResponseTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/ContractDataLogDataParamTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/ContractMethodConfigTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/ContractMethodPatternTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/ContractWithAbiDtoTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/CreateMultichainTokenRequestTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/CreateMultipleDepositAddressesJobStatusTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/CreateMultipleDepositAddressesRequestTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/CreateMultipleVaultAccountsJobStatusTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/CreateOrderRequestTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/CreateQuoteScopeInnerTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/CreateQuoteTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/CreateSigningKeyDtoProofOfOwnershipTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/CreateTagRequestTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/CreateWebhookRequestTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/DVPSettlementTest.java rename src/test/java/com/fireblocks/sdk/model/{DelegationTest.java => DelegationDtoTest.java} (84%) rename src/test/java/com/fireblocks/sdk/model/{DelegationSummaryTest.java => DelegationSummaryDtoTest.java} (77%) delete mode 100644 src/test/java/com/fireblocks/sdk/model/DeployLayerZeroAdaptersRequestTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/DeployableAddressResponseTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/DeployedContractNotFoundErrorTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/DesignatedSignersConfigTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/DestinationConfigTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/DirectAccessProviderTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/DirectAccessTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/DvnConfigTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/DvnConfigWithConfirmationsTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/EmbeddedWalletAccountTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/EmbeddedWalletAddressDetailsTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/EmbeddedWalletAlgoritmTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/EmbeddedWalletAssetBalanceTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/EmbeddedWalletAssetResponseTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/EmbeddedWalletAssetRewardInfoTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/EmbeddedWalletDeviceKeySetupResponseSetupStatusInnerTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/EmbeddedWalletDeviceKeySetupResponseTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/EmbeddedWalletDeviceTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/EmbeddedWalletLatestBackupKeyTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/EmbeddedWalletLatestBackupResponseTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/EmbeddedWalletPaginatedAddressesResponseTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/EmbeddedWalletPaginatedAssetsResponseTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/EmbeddedWalletPaginatedWalletsResponseTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/EmbeddedWalletSetUpStatusTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/EmbeddedWalletTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/ErrorCodesTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/EstimatedFeeDetailsTest.java rename src/test/java/com/fireblocks/sdk/model/{UnstakeRequestTest.java => ExecuteActionRequestTest.java} (58%) rename src/test/java/com/fireblocks/sdk/model/{SplitResponseTest.java => ExecuteActionResponseTest.java} (66%) delete mode 100644 src/test/java/com/fireblocks/sdk/model/ExecutionRequestBaseDetailsTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/ExecutionRequestDetailsTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/ExecutionResponseBaseDetailsTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/ExecutionResponseDetailsTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/ExecutionStepDetailsTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/ExecutionStepErrorTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/ExecutionStepStatusEnumTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/ExecutionStepTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/ExecutionStepTypeTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/ExternalAccountTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/FeeBreakdownOneOf1Test.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/FeeBreakdownOneOfTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/FeeBreakdownTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/FeeLevelTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/FeeTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/FetchAbiRequestDtoTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/FiatTransferTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/FixedFeeTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/GasslessStandardConfigurationsGaslessStandardConfigurationsValueTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/GasslessStandardConfigurationsTest.java rename src/test/java/com/fireblocks/sdk/model/{PaginatedAssetsResponseTest.java => GetAuditLogsResponseDTOTest.java} (64%) delete mode 100644 src/test/java/com/fireblocks/sdk/model/GetDeployableAddressRequestTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/GetExchangeAccountsCredentialsPublicKeyResponseTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/GetLayerZeroDvnConfigResponseTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/GetLayerZeroPeersResponseTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/GetLinkedCollectionsPaginatedResponseTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/GetMpcKeysResponseTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/GetOrdersResponseTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/IdentificationTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/IdlTypeTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/IndicativeQuoteTypeTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/InitiatorConfigPatternTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/InitiatorConfigTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/InternalReferenceTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/InvalidParamaterValueErrorTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/LayerZeroAdapterCreateParamsTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/LbtPaymentInfoTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/LegacyAmountAggregationTimePeriodMethodTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/LegacyDraftResponseTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/LegacyDraftReviewAndValidationResponseTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/LegacyPolicyAndValidationResponseTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/LegacyPolicyCheckResultTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/LegacyPolicyMetadataTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/LegacyPolicyResponseTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleAmountTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleCheckResultTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleErrorTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleRawMessageSigningDerivationPathTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/LegacyPolicySrcOrDestSubTypeTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/LegacyPolicySrcOrDestTypeTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/LegacyPolicyStatusTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/LegacyPolicyValidationTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/LegacyPublishDraftRequestTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/LegacyPublishResultTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/LegacySrcOrDestAttributesInnerTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/LimitExecutionRequestDetailsTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/LimitExecutionResponseDetailsTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/ListAssetsResponseTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/ListBlockchainsResponseTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/ManifestTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/MarketExecutionRequestDetailsTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/MarketExecutionResponseDetailsTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/MarketRequoteRequestDetailsTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/MergeStakeAccountsRequestTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/MergeStakeAccountsResponseTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/MomoPaymentInfoTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/MpcKeyTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/MultichainDeploymentMetadataTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/NewAddressTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/NotificationAttemptTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/NotificationAttemptsPaginatedResponseTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/NotificationPaginatedResponseTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/NotificationStatusTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/NotificationTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/NotificationWithDataTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/OrderDetailsTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/OrderStatusTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/OrderSummaryTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/PairApiKeyRequestTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/PairApiKeyResponseTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/ParticipantRelationshipTypeTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/ParticipantsIdentificationTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/PaymentInstructionsTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/PeerAdapterInfoTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/PeerTypeTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/PersonalIdentificationFullNameTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/PersonalIdentificationTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/PixPaymentInfoTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/PlatformAccountTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/PlayersTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/PolicyOperatorTest.java rename src/test/java/com/fireblocks/sdk/model/{LegacyPolicyRuleAmountAggregationTest.java => PolicyRuleAmountAggregationTest.java} (70%) rename src/test/java/com/fireblocks/sdk/model/{AssetFeatureTest.java => PolicyRuleAmountTest.java} (65%) rename src/test/java/com/fireblocks/sdk/model/{LegacyPolicyRuleAuthorizationGroupsGroupsInnerTest.java => PolicyRuleAuthorizationGroupsGroupsInnerTest.java} (62%) rename src/test/java/com/fireblocks/sdk/model/{LegacyPolicyRuleAuthorizationGroupsTest.java => PolicyRuleAuthorizationGroupsTest.java} (68%) rename src/test/java/com/fireblocks/sdk/model/{LegacyPolicyRuleDesignatedSignersTest.java => PolicyRuleDesignatedSignersTest.java} (65%) rename src/test/java/com/fireblocks/sdk/model/{LegacyPolicyRuleDstTest.java => PolicyRuleDstTest.java} (67%) rename src/test/java/com/fireblocks/sdk/model/{LegacyPolicyRuleOperatorsTest.java => PolicyRuleOperatorsTest.java} (74%) rename src/test/java/com/fireblocks/sdk/model/{DerivationPathConfigTest.java => PolicyRuleRawMessageSigningDerivationPathTest.java} (56%) rename src/test/java/com/fireblocks/sdk/model/{LegacyPolicyRuleRawMessageSigningTest.java => PolicyRuleRawMessageSigningTest.java} (66%) rename src/test/java/com/fireblocks/sdk/model/{LegacyPolicyRuleSrcTest.java => PolicyRuleSrcTest.java} (67%) rename src/test/java/com/fireblocks/sdk/model/{LegacyPolicyRulesTest.java => PolicyRulesTest.java} (69%) rename src/test/java/com/fireblocks/sdk/model/{AccountType2Test.java => PolicySrcOrDestSubTypeTest.java} (68%) rename src/test/java/com/fireblocks/sdk/model/{AssetScopeTest.java => PolicySrcOrDestTypeTest.java} (70%) delete mode 100644 src/test/java/com/fireblocks/sdk/model/PolicyTypeTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/PostOrderSettlementTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/PostalAddressTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/PrefundedSettlementTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/ProgramCallConfigTest.java rename src/test/java/com/fireblocks/sdk/model/{ProviderTest.java => ProviderDtoTest.java} (73%) delete mode 100644 src/test/java/com/fireblocks/sdk/model/ProviderIDTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/ProvidersListResponseTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/QuoteExecutionRequestDetailsTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/QuoteExecutionResponseDetailsTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/QuoteExecutionWithRequoteRequestDetailsAllOfReQuoteTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/QuoteExecutionWithRequoteRequestDetailsTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/QuoteExecutionWithRequoteResponseDetailsAllOfReQuoteTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/QuoteExecutionWithRequoteResponseDetailsTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/QuoteTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/QuotesResponseTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/ReadCallFunctionDtoAbiFunctionTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/ReissueMultichainTokenRequestTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/RelatedRequestTest.java rename src/test/java/com/fireblocks/sdk/model/{RelatedTransactionTest.java => RelatedTransactionDtoTest.java} (70%) delete mode 100644 src/test/java/com/fireblocks/sdk/model/RemoveLayerZeroAdapterFailedResultTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/RemoveLayerZeroAdaptersRequestTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/RemoveLayerZeroAdaptersResponseTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/RemoveLayerZeroPeersRequestTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/RemoveLayerZeroPeersResponseTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/RescanTransactionTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/ResendFailedNotificationsJobStatusResponseTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/ResendFailedNotificationsRequestTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/ResendFailedNotificationsResponseTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/ResendNotificationsByResourceIdRequestTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/RetryRequoteRequestDetailsTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/SOLAccountTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/SOLAccountWithValueTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/ScreeningMetadataConfigTest.java rename src/test/java/com/fireblocks/sdk/model/{ScreeningUpdateConfigurationsTest.java => ScreeningUpdateConfigurationsRequestTest.java} (64%) delete mode 100644 src/test/java/com/fireblocks/sdk/model/SearchNetworkIdsResponseTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/SepaPaymentInfoTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/SetAssetPriceRequestTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/SetLayerZeroDvnConfigRequestTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/SetLayerZeroDvnConfigResponseTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/SetLayerZeroPeersRequestTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/SetLayerZeroPeersResponseTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/SettlementSourceAccountTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/SettlementTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/SmartTransferApproveTermTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/SmartTransferCoinStatisticTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/SmartTransferFundDvpTicketTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/SmartTransferStatisticInflowTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/SmartTransferStatisticOutflowTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/SmartTransferStatisticTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/SolParameterTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/SolParameterWithValueTest.java rename src/test/java/com/fireblocks/sdk/model/{SolanaBlockchainDataTest.java => SolanaBlockchainDataDtoTest.java} (56%) delete mode 100644 src/test/java/com/fireblocks/sdk/model/SolanaConfigTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/SolanaInstructionTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/SolanaInstructionWithValueTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/SolanaSimpleCreateParamsTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/SpeiAdvancedPaymentInfoTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/SplitRequestTest.java rename src/test/java/com/fireblocks/sdk/model/{AssetTypesConfigInnerTest.java => SrcOrDestAttributesInnerTest.java} (60%) rename src/test/java/com/fireblocks/sdk/model/{StakeRequestTest.java => StakeRequestDtoTest.java} (82%) rename src/test/java/com/fireblocks/sdk/model/{StakeResponseTest.java => StakeResponseDtoTest.java} (69%) delete mode 100644 src/test/java/com/fireblocks/sdk/model/StakingProviderTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/StatusTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/TagTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/TagsPagedResponseTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/TimeInForceTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/TimePeriodConfigTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/TimePeriodMatchTypeTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/TokenInfoNotFoundErrorResponseTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/TokenLinkNotMultichainCompatibleHttpErrorTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/TradingErrorResponseTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/TradingProviderTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/TransactionReceiptResponseTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/TransferRailTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/TransferReceiptTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/TravelRuleDateAndPlaceOfBirthTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/TravelRuleGeographicAddressTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/TravelRuleLegalPersonNameIdentifierTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/TravelRuleLegalPersonTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/TravelRuleNationalIdentificationTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/TravelRuleNaturalNameIdentifierTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/TravelRuleNaturalPersonNameIdentifierTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/TravelRuleNaturalPersonTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/TravelRulePersonTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/TravelRuleValidateDateAndPlaceOfBirthTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/TravelRuleValidateGeographicAddressTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/TravelRuleValidateLegalPersonNameIdentifierTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/TravelRuleValidateLegalPersonTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/TravelRuleValidateNationalIdentificationTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/TravelRuleValidateNaturalNameIdentifierTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/TravelRuleValidateNaturalPersonNameIdentifierTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/TravelRuleValidateNaturalPersonTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/TravelRuleValidatePersonTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/TravelRuleValidatePiiIVMSTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/TravelRuleVaspForVaultTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/TxLogTest.java rename src/test/java/com/fireblocks/sdk/model/{WithdrawRequestTest.java => UnstakeRequestDtoTest.java} (77%) delete mode 100644 src/test/java/com/fireblocks/sdk/model/UpdateAssetUserMetadataRequestTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/UpdateCallbackHandlerRequestTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/UpdateCallbackHandlerResponseTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/UpdateDraftRequestTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/UpdateTagRequestTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/UpdateWebhookRequestTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/UsWirePaymentInfoTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/ValidateLayerZeroChannelResponseTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/ValidatedTransactionsForRescanTest.java rename src/test/java/com/fireblocks/sdk/model/{ValidatorTest.java => ValidatorDtoTest.java} (69%) delete mode 100644 src/test/java/com/fireblocks/sdk/model/VaultAccountsTagAttachmentsRequestTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/VerdictConfigTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/VersionTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/WebhookEventTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/WebhookPaginatedResponseTest.java delete mode 100644 src/test/java/com/fireblocks/sdk/model/WebhookTest.java rename src/test/java/com/fireblocks/sdk/model/{ClaimRewardsRequestTest.java => WithdrawRequestDtoTest.java} (76%) delete mode 100644 src/test/java/com/fireblocks/sdk/model/WriteCallFunctionDtoAbiFunctionTest.java diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 850c86bd..c8c41712 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -9,77 +9,40 @@ api/openapi.yaml build.gradle build.sbt docs/APIUser.md -docs/AbaPaymentInfo.md docs/AbiFunction.md -docs/AccessType.md docs/Account.md -docs/AccountAccess.md -docs/AccountBase.md -docs/AccountBasedAccessProvider.md -docs/AccountConfig.md -docs/AccountHolderDetails.md -docs/AccountIdentifier.md -docs/AccountProviderID.md -docs/AccountReference.md docs/AccountType.md -docs/AccountType2.md -docs/AchPaymentInfo.md -docs/AdapterProcessingResult.md -docs/AddAbiRequestDto.md docs/AddAssetToExternalWalletRequest.md +docs/AddAssetToExternalWalletRequestOneOf.md +docs/AddAssetToExternalWalletRequestOneOf1.md +docs/AddAssetToExternalWalletRequestOneOf1AdditionalInfo.md +docs/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf.md +docs/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1.md +docs/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2.md docs/AddCollateralRequestBody.md docs/AddContractAssetRequest.md -docs/AddCosignerRequest.md -docs/AddCosignerResponse.md -docs/AddExchangeAccountRequest.md -docs/AddExchangeAccountResponse.md -docs/AdditionalInfo.md -docs/AdditionalInfoRequest.md -docs/AdditionalInfoRequestAdditionalInfo.md -docs/AddressNotAvailableError.md +docs/AdditionalInfoDto.md docs/AmlRegistrationResult.md -docs/AmlRegistrationResultFullPayload.md docs/AmlScreeningResult.md -docs/AmlVerdictManualRequest.md -docs/AmlVerdictManualResponse.md +docs/AmountAggregationTimePeriodMethod.md docs/AmountAndChainDescriptor.md docs/AmountInfo.md -docs/AmountOverTimeConfig.md -docs/AmountOverTimeConfigRange.md -docs/AmountRange.md docs/ApiKey.md docs/ApiKeysPaginatedResponse.md docs/ApiUserApi.md -docs/ApproversConfig.md -docs/ApproversConfigApprovalGroupsInner.md -docs/Asset.md docs/AssetAlreadyExistHttpError.md docs/AssetAmount.md docs/AssetBadRequestErrorResponse.md -docs/AssetClass.md -docs/AssetConfig.md docs/AssetConflictErrorResponse.md -docs/AssetDetailsMetadata.md -docs/AssetDetailsOnchain.md -docs/AssetFeature.md +docs/AssetDoesNotExistHttpError.md docs/AssetForbiddenErrorResponse.md docs/AssetInternalServerErrorResponse.md -docs/AssetMedia.md -docs/AssetMediaAttributes.md -docs/AssetMetadata.md docs/AssetMetadataDto.md -docs/AssetMetadataRequest.md docs/AssetNotFoundErrorResponse.md -docs/AssetNote.md -docs/AssetNoteRequest.md -docs/AssetOnchain.md -docs/AssetPriceForbiddenErrorResponse.md -docs/AssetPriceNotFoundErrorResponse.md -docs/AssetPriceResponse.md docs/AssetResponse.md -docs/AssetScope.md +docs/AssetResponseMetadata.md +docs/AssetResponseOnchain.md docs/AssetTypeResponse.md -docs/AssetTypesConfigInner.md docs/AssetWallet.md docs/AssetsApi.md docs/AuditLogData.md @@ -87,46 +50,16 @@ docs/AuditLogsApi.md docs/AuditorData.md docs/AuthorizationGroups.md docs/AuthorizationInfo.md -docs/BaseProvider.md -docs/BasicAddressRequest.md docs/BlockInfo.md -docs/BlockchainExplorer.md -docs/BlockchainMedia.md -docs/BlockchainMetadata.md -docs/BlockchainNotFoundErrorResponse.md -docs/BlockchainOnchain.md -docs/BlockchainResponse.md -docs/BlockchainTransfer.md docs/BlockchainsAssetsApi.md -docs/BpsFee.md -docs/BusinessIdentification.md -docs/CallbackHandler.md -docs/CallbackHandlerRequest.md docs/CancelTransactionResponse.md -docs/Capability.md -docs/ChainDescriptor.md -docs/ChainInfoResponse.md -docs/ChannelDvnConfigWithConfirmations.md -docs/ClaimRewardsRequest.md -docs/CollectionBurnRequestDto.md -docs/CollectionBurnResponseDto.md -docs/CollectionDeployRequestDto.md -docs/CollectionLinkDto.md +docs/ChainInfoResponseDto.md docs/CollectionMetadataDto.md -docs/CollectionMintRequestDto.md -docs/CollectionMintResponseDto.md docs/CollectionOwnershipResponse.md -docs/CollectionTokenMetadataAttributeDto.md -docs/CollectionTokenMetadataDto.md -docs/CollectionType.md -docs/CommittedQuoteType.md docs/ComplianceApi.md -docs/ComplianceResultFullPayload.md -docs/ComplianceResultStatusesEnum.md -docs/ComplianceResults.md +docs/ComplianceResult.md docs/ComplianceScreeningConfigurationApi.md docs/ComplianceScreeningResult.md -docs/ComplianceScreeningResultFullPayload.md docs/ConfigChangeRequestStatus.md docs/ConfigConversionOperationSnapshot.md docs/ConfigDisbursementOperationSnapshot.md @@ -134,45 +67,18 @@ docs/ConfigOperation.md docs/ConfigOperationSnapshot.md docs/ConfigOperationStatus.md docs/ConfigTransferOperationSnapshot.md -docs/ConnectedAccount.md -docs/ConnectedAccountApprovalStatus.md -docs/ConnectedAccountAssetType.md -docs/ConnectedAccountBalances.md -docs/ConnectedAccountBalancesResponse.md -docs/ConnectedAccountCapability.md -docs/ConnectedAccountManifest.md -docs/ConnectedAccountRateResponse.md -docs/ConnectedAccountTotalBalance.md -docs/ConnectedAccountTradingPair.md -docs/ConnectedAccountTradingPairSupportedType.md -docs/ConnectedAccountTradingPairsResponse.md -docs/ConnectedAccountsBetaApi.md -docs/ConnectedAccountsResponse.md -docs/ConnectedSingleAccount.md -docs/ConnectedSingleAccountResponse.md docs/ConsoleUser.md docs/ConsoleUserApi.md docs/ContractAbiResponseDto.md -docs/ContractAbiResponseDtoAbiInner.md docs/ContractAttributes.md -docs/ContractDataDecodeDataType.md -docs/ContractDataDecodeError.md -docs/ContractDataDecodeRequest.md -docs/ContractDataDecodeRequestData.md -docs/ContractDataDecodeResponseParams.md -docs/ContractDataDecodedResponse.md -docs/ContractDataLogDataParam.md docs/ContractDeployRequest.md docs/ContractDeployResponse.md docs/ContractDoc.md docs/ContractInteractionsApi.md docs/ContractMetadataDto.md -docs/ContractMethodConfig.md -docs/ContractMethodPattern.md docs/ContractTemplateDto.md docs/ContractTemplatesApi.md docs/ContractUploadRequest.md -docs/ContractWithAbiDto.md docs/ContractsApi.md docs/ConversionConfigOperation.md docs/ConversionOperationConfigParams.md @@ -204,20 +110,11 @@ docs/CreateConversionConfigOperationRequest.md docs/CreateDisbursementConfigOperationRequest.md docs/CreateInternalTransferRequest.md docs/CreateInternalWalletAssetRequest.md -docs/CreateMultichainTokenRequest.md docs/CreateMultipleAccountsRequest.md -docs/CreateMultipleDepositAddressesJobStatus.md -docs/CreateMultipleDepositAddressesRequest.md -docs/CreateMultipleVaultAccountsJobStatus.md docs/CreateNcwConnectionRequest.md docs/CreateNetworkIdRequest.md -docs/CreateOrderRequest.md docs/CreatePayoutRequest.md -docs/CreateQuote.md -docs/CreateQuoteScopeInner.md docs/CreateSigningKeyDto.md -docs/CreateSigningKeyDtoProofOfOwnership.md -docs/CreateTagRequest.md docs/CreateTokenRequestDto.md docs/CreateTokenRequestDtoCreateParams.md docs/CreateTransactionResponse.md @@ -229,30 +126,20 @@ docs/CreateVaultAccountConnectionRequest.md docs/CreateVaultAccountRequest.md docs/CreateVaultAssetResponse.md docs/CreateWalletRequest.md -docs/CreateWebhookRequest.md docs/CreateWorkflowExecutionRequestParamsInner.md docs/CustomRoutingDest.md -docs/DVPSettlement.md docs/DefaultNetworkRoutingDest.md -docs/Delegation.md -docs/DelegationSummary.md +docs/DelegationDto.md +docs/DelegationSummaryDto.md docs/DeleteNetworkConnectionResponse.md docs/DeleteNetworkIdResponse.md -docs/DeployLayerZeroAdaptersRequest.md -docs/DeployableAddressResponse.md -docs/DeployedContractNotFoundError.md docs/DeployedContractResponseDto.md docs/DeployedContractsApi.md docs/DeployedContractsPaginatedResponse.md docs/DepositFundsFromLinkedDDAResponse.md -docs/DerivationPathConfig.md -docs/DesignatedSignersConfig.md docs/Destination.md -docs/DestinationConfig.md docs/DestinationTransferPeerPath.md docs/DestinationTransferPeerPathResponse.md -docs/DirectAccess.md -docs/DirectAccessProvider.md docs/DisbursementAmountInstruction.md docs/DisbursementConfigOperation.md docs/DisbursementInstruction.md @@ -274,32 +161,11 @@ docs/DraftResponse.md docs/DraftReviewAndValidationResponse.md docs/DropTransactionRequest.md docs/DropTransactionResponse.md -docs/DvnConfig.md -docs/DvnConfigWithConfirmations.md docs/EVMTokenCreateParamsDto.md docs/EditGasStationConfigurationResponse.md -docs/EmbeddedWallet.md -docs/EmbeddedWalletAccount.md -docs/EmbeddedWalletAddressDetails.md -docs/EmbeddedWalletAlgoritm.md -docs/EmbeddedWalletAssetBalance.md -docs/EmbeddedWalletAssetResponse.md -docs/EmbeddedWalletAssetRewardInfo.md -docs/EmbeddedWalletDevice.md -docs/EmbeddedWalletDeviceKeySetupResponse.md -docs/EmbeddedWalletDeviceKeySetupResponseSetupStatusInner.md -docs/EmbeddedWalletLatestBackupKey.md -docs/EmbeddedWalletLatestBackupResponse.md -docs/EmbeddedWalletPaginatedAddressesResponse.md -docs/EmbeddedWalletPaginatedAssetsResponse.md -docs/EmbeddedWalletPaginatedWalletsResponse.md -docs/EmbeddedWalletSetUpStatus.md -docs/EmbeddedWalletsApi.md -docs/ErrorCodes.md docs/ErrorResponse.md docs/ErrorResponseError.md docs/ErrorSchema.md -docs/EstimatedFeeDetails.md docs/EstimatedNetworkFeeResponse.md docs/EstimatedTransactionFeeResponse.md docs/ExchangeAccount.md @@ -310,36 +176,20 @@ docs/ExchangeAsset.md docs/ExchangeSettlementTransactionsResponse.md docs/ExchangeTradingAccount.md docs/ExchangeType.md +docs/ExecuteActionRequest.md +docs/ExecuteActionResponse.md docs/ExecutionConversionOperation.md docs/ExecutionDisbursementOperation.md docs/ExecutionOperationStatus.md -docs/ExecutionRequestBaseDetails.md -docs/ExecutionRequestDetails.md -docs/ExecutionResponseBaseDetails.md -docs/ExecutionResponseDetails.md docs/ExecutionScreeningOperation.md -docs/ExecutionStep.md -docs/ExecutionStepDetails.md -docs/ExecutionStepError.md -docs/ExecutionStepStatusEnum.md -docs/ExecutionStepType.md docs/ExecutionTransferOperation.md -docs/ExternalAccount.md docs/ExternalWalletAsset.md docs/ExternalWalletsApi.md -docs/Fee.md -docs/FeeBreakdown.md -docs/FeeBreakdownOneOf.md -docs/FeeBreakdownOneOf1.md docs/FeeInfo.md -docs/FeeLevel.md -docs/FetchAbiRequestDto.md docs/FiatAccount.md docs/FiatAccountType.md docs/FiatAccountsApi.md docs/FiatAsset.md -docs/FiatTransfer.md -docs/FixedFee.md docs/FreezeTransactionResponse.md docs/FunctionDoc.md docs/Funds.md @@ -347,22 +197,14 @@ docs/GasStationConfiguration.md docs/GasStationConfigurationResponse.md docs/GasStationPropertiesResponse.md docs/GasStationsApi.md -docs/GasslessStandardConfigurations.md -docs/GasslessStandardConfigurationsGaslessStandardConfigurationsValue.md docs/GetAPIUsersResponse.md docs/GetAuditLogsResponse.md +docs/GetAuditLogsResponseDTO.md docs/GetConnectionsResponse.md docs/GetConsoleUsersResponse.md -docs/GetDeployableAddressRequest.md -docs/GetExchangeAccountsCredentialsPublicKeyResponse.md docs/GetFilterParameter.md -docs/GetLayerZeroDvnConfigResponse.md -docs/GetLayerZeroPeersResponse.md -docs/GetLinkedCollectionsPaginatedResponse.md docs/GetMaxSpendableAmountResponse.md -docs/GetMpcKeysResponse.md docs/GetNFTsResponse.md -docs/GetOrdersResponse.md docs/GetOtaStatusResponse.md docs/GetOwnershipTokensResponse.md docs/GetSigningKeyResponseDto.md @@ -371,74 +213,22 @@ docs/GetValidationKeyResponseDto.md docs/GetWhitelistIpAddressesResponse.md docs/GetWorkspaceStatusResponse.md docs/HttpContractDoesNotExistError.md -docs/IbanPaymentInfo.md -docs/Identification.md -docs/IdlType.md -docs/IndicativeQuoteType.md -docs/InitiatorConfig.md -docs/InitiatorConfigPattern.md docs/InstructionAmount.md -docs/InternalReference.md docs/InternalTransferResponse.md docs/InternalWalletsApi.md -docs/InvalidParamaterValueError.md docs/Job.md docs/JobCreated.md docs/JobManagementApi.md docs/KeyLinkBetaApi.md -docs/KeysBetaApi.md -docs/LayerZeroAdapterCreateParams.md -docs/LbtPaymentInfo.md docs/LeanAbiFunction.md docs/LeanContractDto.md docs/LeanDeployedContractResponseDto.md -docs/LegacyAmountAggregationTimePeriodMethod.md -docs/LegacyDraftResponse.md -docs/LegacyDraftReviewAndValidationResponse.md -docs/LegacyPolicyAndValidationResponse.md -docs/LegacyPolicyCheckResult.md -docs/LegacyPolicyMetadata.md -docs/LegacyPolicyResponse.md -docs/LegacyPolicyRule.md -docs/LegacyPolicyRuleAmount.md -docs/LegacyPolicyRuleAmountAggregation.md -docs/LegacyPolicyRuleAuthorizationGroups.md -docs/LegacyPolicyRuleAuthorizationGroupsGroupsInner.md -docs/LegacyPolicyRuleCheckResult.md -docs/LegacyPolicyRuleDesignatedSigners.md -docs/LegacyPolicyRuleDst.md -docs/LegacyPolicyRuleError.md -docs/LegacyPolicyRuleOperators.md -docs/LegacyPolicyRuleRawMessageSigning.md -docs/LegacyPolicyRuleRawMessageSigningDerivationPath.md -docs/LegacyPolicyRuleSrc.md -docs/LegacyPolicyRules.md -docs/LegacyPolicySrcOrDestSubType.md -docs/LegacyPolicySrcOrDestType.md -docs/LegacyPolicyStatus.md -docs/LegacyPolicyValidation.md -docs/LegacyPublishDraftRequest.md -docs/LegacyPublishResult.md -docs/LegacySrcOrDestAttributesInner.md -docs/LimitExecutionRequestDetails.md -docs/LimitExecutionResponseDetails.md -docs/ListAssetsResponse.md -docs/ListBlockchainsResponse.md docs/ListOwnedCollectionsResponse.md docs/ListOwnedTokensResponse.md -docs/Manifest.md -docs/MarketExecutionRequestDetails.md -docs/MarketExecutionResponseDetails.md -docs/MarketRequoteRequestDetails.md docs/MediaEntityResponse.md -docs/MergeStakeAccountsRequest.md -docs/MergeStakeAccountsResponse.md docs/ModifySigningKeyAgentIdDto.md docs/ModifySigningKeyDto.md docs/ModifyValidationKeyDto.md -docs/MomoPaymentInfo.md -docs/MpcKey.md -docs/MultichainDeploymentMetadata.md docs/NetworkChannel.md docs/NetworkConnection.md docs/NetworkConnectionResponse.md @@ -450,44 +240,27 @@ docs/NetworkId.md docs/NetworkIdResponse.md docs/NetworkIdRoutingPolicyValue.md docs/NetworkRecord.md -docs/NewAddress.md docs/NftsApi.md docs/NoneNetworkRoutingDest.md docs/NotFoundException.md -docs/Notification.md -docs/NotificationAttempt.md -docs/NotificationAttemptsPaginatedResponse.md -docs/NotificationPaginatedResponse.md -docs/NotificationStatus.md -docs/NotificationWithData.md docs/OffExchangesApi.md docs/OneTimeAddress.md docs/OneTimeAddressAccount.md -docs/OneTimeAddressReference.md docs/OperationExecutionFailure.md -docs/OrderDetails.md -docs/OrderStatus.md -docs/OrderSummary.md docs/OtaBetaApi.md docs/PaginatedAddressResponse.md docs/PaginatedAddressResponsePaging.md docs/PaginatedAssetWalletResponse.md docs/PaginatedAssetWalletResponsePaging.md -docs/PaginatedAssetsResponse.md docs/Paging.md -docs/PairApiKeyRequest.md -docs/PairApiKeyResponse.md docs/Parameter.md docs/ParameterWithValue.md -docs/ParticipantRelationshipType.md -docs/ParticipantsIdentification.md docs/PayeeAccount.md docs/PayeeAccountResponse.md docs/PayeeAccountType.md docs/PaymentAccount.md docs/PaymentAccountResponse.md docs/PaymentAccountType.md -docs/PaymentInstructions.md docs/PaymentsPayoutApi.md docs/PayoutInitMethod.md docs/PayoutInstruction.md @@ -496,104 +269,69 @@ docs/PayoutInstructionState.md docs/PayoutResponse.md docs/PayoutState.md docs/PayoutStatus.md -docs/PeerAdapterInfo.md -docs/PeerType.md -docs/PersonalIdentification.md -docs/PersonalIdentificationFullName.md -docs/PixPaymentInfo.md -docs/PlatformAccount.md -docs/Players.md docs/PolicyAndValidationResponse.md docs/PolicyCheckResult.md docs/PolicyEditorBetaApi.md -docs/PolicyEditorV2BetaApi.md docs/PolicyMetadata.md -docs/PolicyOperator.md docs/PolicyResponse.md docs/PolicyRule.md +docs/PolicyRuleAmount.md +docs/PolicyRuleAmountAggregation.md +docs/PolicyRuleAuthorizationGroups.md +docs/PolicyRuleAuthorizationGroupsGroupsInner.md docs/PolicyRuleCheckResult.md +docs/PolicyRuleDesignatedSigners.md +docs/PolicyRuleDst.md docs/PolicyRuleError.md +docs/PolicyRuleOperators.md +docs/PolicyRuleRawMessageSigning.md +docs/PolicyRuleRawMessageSigningDerivationPath.md +docs/PolicyRuleSrc.md +docs/PolicyRules.md +docs/PolicySrcOrDestSubType.md +docs/PolicySrcOrDestType.md docs/PolicyStatus.md -docs/PolicyType.md docs/PolicyValidation.md -docs/PostOrderSettlement.md -docs/PostalAddress.md docs/PreScreening.md -docs/PrefundedSettlement.md -docs/ProgramCallConfig.md -docs/Provider.md -docs/ProviderID.md -docs/ProvidersListResponse.md +docs/ProviderDto.md docs/PublicKeyInformation.md docs/PublishDraftRequest.md docs/PublishResult.md -docs/Quote.md -docs/QuoteExecutionRequestDetails.md -docs/QuoteExecutionResponseDetails.md -docs/QuoteExecutionWithRequoteRequestDetails.md -docs/QuoteExecutionWithRequoteRequestDetailsAllOfReQuote.md -docs/QuoteExecutionWithRequoteResponseDetails.md -docs/QuoteExecutionWithRequoteResponseDetailsAllOfReQuote.md -docs/QuotesResponse.md docs/ReadAbiFunction.md docs/ReadCallFunctionDto.md -docs/ReadCallFunctionDtoAbiFunction.md docs/RedeemFundsToLinkedDDAResponse.md docs/RegisterNewAssetRequest.md -docs/ReissueMultichainTokenRequest.md -docs/RelatedRequest.md -docs/RelatedTransaction.md +docs/RelatedTransactionDto.md docs/RemoveCollateralRequestBody.md -docs/RemoveLayerZeroAdapterFailedResult.md -docs/RemoveLayerZeroAdaptersRequest.md -docs/RemoveLayerZeroAdaptersResponse.md -docs/RemoveLayerZeroPeersRequest.md -docs/RemoveLayerZeroPeersResponse.md docs/RenameCosigner.md docs/RenameVaultAccountResponse.md -docs/RescanTransaction.md -docs/ResendFailedNotificationsJobStatusResponse.md -docs/ResendFailedNotificationsRequest.md -docs/ResendFailedNotificationsResponse.md -docs/ResendNotificationsByResourceIdRequest.md docs/ResendTransactionWebhooksRequest.md docs/ResendWebhooksByTransactionIdResponse.md docs/ResendWebhooksResponse.md docs/ResetDeviceApi.md docs/RespondToConnectionRequest.md -docs/RetryRequoteRequestDetails.md docs/RewardInfo.md docs/RewardsInfo.md -docs/SOLAccount.md -docs/SOLAccountWithValue.md docs/ScreeningConfigurationsRequest.md -docs/ScreeningMetadataConfig.md docs/ScreeningOperationExecution.md docs/ScreeningOperationExecutionOutput.md docs/ScreeningOperationFailure.md docs/ScreeningOperationType.md docs/ScreeningPolicyResponse.md docs/ScreeningProviderRulesConfigurationResponse.md -docs/ScreeningUpdateConfigurations.md +docs/ScreeningUpdateConfigurationsRequest.md docs/ScreeningValidationFailure.md docs/ScreeningVerdict.md docs/ScreeningVerdictMatchedRule.md -docs/SearchNetworkIdsResponse.md -docs/SepaPaymentInfo.md docs/SessionDTO.md docs/SessionMetadata.md docs/SetAdminQuorumThresholdRequest.md docs/SetAdminQuorumThresholdResponse.md -docs/SetAssetPriceRequest.md docs/SetAutoFuelRequest.md docs/SetConfirmationsThresholdRequest.md docs/SetConfirmationsThresholdResponse.md docs/SetCustomerRefIdForAddressRequest.md docs/SetCustomerRefIdRequest.md -docs/SetLayerZeroDvnConfigRequest.md -docs/SetLayerZeroDvnConfigResponse.md -docs/SetLayerZeroPeersRequest.md -docs/SetLayerZeroPeersResponse.md docs/SetNetworkIdDiscoverabilityRequest.md docs/SetNetworkIdNameRequest.md docs/SetNetworkIdResponse.md @@ -603,30 +341,22 @@ docs/SetOtaStatusResponse.md docs/SetOtaStatusResponseOneOf.md docs/SetRoutingPolicyRequest.md docs/SetRoutingPolicyResponse.md -docs/Settlement.md docs/SettlementRequestBody.md docs/SettlementResponse.md -docs/SettlementSourceAccount.md docs/SignedMessage.md docs/SignedMessageSignature.md docs/SigningKeyDto.md docs/SmartTransferApi.md -docs/SmartTransferApproveTerm.md docs/SmartTransferBadRequestResponse.md -docs/SmartTransferCoinStatistic.md docs/SmartTransferCreateTicket.md docs/SmartTransferCreateTicketTerm.md docs/SmartTransferForbiddenResponse.md -docs/SmartTransferFundDvpTicket.md docs/SmartTransferFundTerm.md docs/SmartTransferManuallyFundTerm.md docs/SmartTransferNotFoundResponse.md docs/SmartTransferSetTicketExpiration.md docs/SmartTransferSetTicketExternalId.md docs/SmartTransferSetUserGroups.md -docs/SmartTransferStatistic.md -docs/SmartTransferStatisticInflow.md -docs/SmartTransferStatisticOutflow.md docs/SmartTransferSubmitTicket.md docs/SmartTransferTicket.md docs/SmartTransferTicketFilteredResponse.md @@ -636,45 +366,26 @@ docs/SmartTransferTicketTermResponse.md docs/SmartTransferUpdateTicketTerm.md docs/SmartTransferUserGroups.md docs/SmartTransferUserGroupsResponse.md -docs/SolParameter.md -docs/SolParameterWithValue.md -docs/SolanaBlockchainData.md -docs/SolanaConfig.md -docs/SolanaInstruction.md -docs/SolanaInstructionWithValue.md -docs/SolanaSimpleCreateParams.md +docs/SolanaBlockchainDataDto.md docs/SourceTransferPeerPath.md docs/SourceTransferPeerPathResponse.md docs/SpamOwnershipResponse.md docs/SpamTokenResponse.md -docs/SpeiAdvancedPaymentInfo.md -docs/SpeiBasicPaymentInfo.md -docs/SplitRequest.md -docs/SplitResponse.md -docs/StakeRequest.md -docs/StakeResponse.md -docs/StakingApi.md -docs/StakingProvider.md -docs/Status.md +docs/SrcOrDestAttributesInner.md +docs/StakeRequestDto.md +docs/StakeResponseDto.md +docs/StakingBetaApi.md docs/StellarRippleCreateParamsDto.md docs/SystemMessageInfo.md -docs/Tag.md -docs/TagsApi.md -docs/TagsPagedResponse.md docs/Task.md docs/TemplatesPaginatedResponse.md docs/ThirdPartyRouting.md -docs/TimeInForce.md -docs/TimePeriodConfig.md -docs/TimePeriodMatchType.md docs/ToCollateralTransaction.md docs/ToExchangeTransaction.md docs/TokenCollectionResponse.md -docs/TokenInfoNotFoundErrorResponse.md docs/TokenLinkDto.md docs/TokenLinkDtoTokenMetadata.md docs/TokenLinkExistsHttpError.md -docs/TokenLinkNotMultichainCompatibleHttpError.md docs/TokenLinkRequestDto.md docs/TokenOwnershipResponse.md docs/TokenOwnershipSpamUpdatePayload.md @@ -683,14 +394,9 @@ docs/TokenResponse.md docs/TokenizationApi.md docs/TokensPaginatedResponse.md docs/TradingAccountType.md -docs/TradingBetaApi.md -docs/TradingErrorResponse.md -docs/TradingErrorResponseError.md -docs/TradingProvider.md docs/Transaction.md docs/TransactionFee.md docs/TransactionOperation.md -docs/TransactionReceiptResponse.md docs/TransactionRequest.md docs/TransactionRequestAmount.md docs/TransactionRequestDestination.md @@ -717,60 +423,30 @@ docs/TransferOperationPreviewOutput.md docs/TransferOperationType.md docs/TransferPeerPathSubType.md docs/TransferPeerPathType.md -docs/TransferRail.md -docs/TransferReceipt.md docs/TransferValidationFailure.md docs/TravelRuleAddress.md -docs/TravelRuleApi.md +docs/TravelRuleBetaApi.md docs/TravelRuleCreateTransactionRequest.md -docs/TravelRuleDateAndPlaceOfBirth.md -docs/TravelRuleGeographicAddress.md docs/TravelRuleGetAllVASPsResponse.md docs/TravelRuleIssuer.md docs/TravelRuleIssuers.md -docs/TravelRuleLegalPerson.md -docs/TravelRuleLegalPersonNameIdentifier.md -docs/TravelRuleNationalIdentification.md -docs/TravelRuleNaturalNameIdentifier.md -docs/TravelRuleNaturalPerson.md -docs/TravelRuleNaturalPersonNameIdentifier.md docs/TravelRuleOwnershipProof.md -docs/TravelRulePerson.md docs/TravelRulePiiIVMS.md docs/TravelRulePolicyRuleResponse.md docs/TravelRuleTransactionBlockchainInfo.md docs/TravelRuleUpdateVASPDetails.md docs/TravelRuleVASP.md -docs/TravelRuleValidateDateAndPlaceOfBirth.md docs/TravelRuleValidateFullTransactionRequest.md -docs/TravelRuleValidateGeographicAddress.md -docs/TravelRuleValidateLegalPerson.md -docs/TravelRuleValidateLegalPersonNameIdentifier.md -docs/TravelRuleValidateNationalIdentification.md -docs/TravelRuleValidateNaturalNameIdentifier.md -docs/TravelRuleValidateNaturalPerson.md -docs/TravelRuleValidateNaturalPersonNameIdentifier.md -docs/TravelRuleValidatePerson.md -docs/TravelRuleValidatePiiIVMS.md docs/TravelRuleValidateTransactionRequest.md docs/TravelRuleValidateTransactionResponse.md -docs/TravelRuleVaspForVault.md -docs/TxLog.md docs/UnfreezeTransactionResponse.md docs/UnmanagedWallet.md docs/UnspentInput.md docs/UnspentInputsResponse.md -docs/UnstakeRequest.md -docs/UpdateAssetUserMetadataRequest.md -docs/UpdateCallbackHandlerRequest.md -docs/UpdateCallbackHandlerResponse.md -docs/UpdateDraftRequest.md -docs/UpdateTagRequest.md +docs/UnstakeRequestDto.md docs/UpdateTokenOwnershipStatusDto.md docs/UpdateVaultAccountAssetAddressRequest.md docs/UpdateVaultAccountRequest.md -docs/UpdateWebhookRequest.md -docs/UsWirePaymentInfo.md docs/UserGroupCreateRequest.md docs/UserGroupCreateResponse.md docs/UserGroupResponse.md @@ -782,38 +458,28 @@ docs/UserStatus.md docs/UserType.md docs/UsersApi.md docs/ValidateAddressResponse.md -docs/ValidateLayerZeroChannelResponse.md -docs/ValidatedTransactionsForRescan.md docs/ValidationKeyDto.md -docs/Validator.md +docs/ValidatorDto.md docs/VaultAccount.md docs/VaultAccountsPagedResponse.md docs/VaultAccountsPagedResponsePaging.md -docs/VaultAccountsTagAttachmentsRequest.md docs/VaultActionStatus.md docs/VaultAsset.md docs/VaultWalletAddress.md docs/VaultsApi.md docs/VendorDto.md -docs/VerdictConfig.md -docs/Version.md docs/WalletAsset.md docs/WalletAssetAdditionalInfo.md docs/Web3ConnectionsApi.md -docs/Webhook.md -docs/WebhookEvent.md -docs/WebhookPaginatedResponse.md docs/WebhooksApi.md -docs/WebhooksV2Api.md docs/WhitelistIpAddressesApi.md -docs/WithdrawRequest.md +docs/WithdrawRequestDto.md docs/WorkflowConfigStatus.md docs/WorkflowConfigurationId.md docs/WorkflowExecutionOperation.md docs/WorkspaceStatusBetaApi.md docs/WriteAbiFunction.md docs/WriteCallFunctionDto.md -docs/WriteCallFunctionDtoAbiFunction.md docs/WriteCallFunctionResponseDto.md git_push.sh gradle.properties @@ -849,14 +515,12 @@ src/main/java/com/fireblocks/sdk/api/AuditLogsApi.java src/main/java/com/fireblocks/sdk/api/BlockchainsAssetsApi.java src/main/java/com/fireblocks/sdk/api/ComplianceApi.java src/main/java/com/fireblocks/sdk/api/ComplianceScreeningConfigurationApi.java -src/main/java/com/fireblocks/sdk/api/ConnectedAccountsBetaApi.java src/main/java/com/fireblocks/sdk/api/ConsoleUserApi.java src/main/java/com/fireblocks/sdk/api/ContractInteractionsApi.java src/main/java/com/fireblocks/sdk/api/ContractTemplatesApi.java src/main/java/com/fireblocks/sdk/api/ContractsApi.java src/main/java/com/fireblocks/sdk/api/CosignersBetaApi.java src/main/java/com/fireblocks/sdk/api/DeployedContractsApi.java -src/main/java/com/fireblocks/sdk/api/EmbeddedWalletsApi.java src/main/java/com/fireblocks/sdk/api/ExchangeAccountsApi.java src/main/java/com/fireblocks/sdk/api/ExternalWalletsApi.java src/main/java/com/fireblocks/sdk/api/FiatAccountsApi.java @@ -864,144 +528,72 @@ src/main/java/com/fireblocks/sdk/api/GasStationsApi.java src/main/java/com/fireblocks/sdk/api/InternalWalletsApi.java src/main/java/com/fireblocks/sdk/api/JobManagementApi.java src/main/java/com/fireblocks/sdk/api/KeyLinkBetaApi.java -src/main/java/com/fireblocks/sdk/api/KeysBetaApi.java src/main/java/com/fireblocks/sdk/api/NetworkConnectionsApi.java src/main/java/com/fireblocks/sdk/api/NftsApi.java src/main/java/com/fireblocks/sdk/api/OffExchangesApi.java src/main/java/com/fireblocks/sdk/api/OtaBetaApi.java src/main/java/com/fireblocks/sdk/api/PaymentsPayoutApi.java src/main/java/com/fireblocks/sdk/api/PolicyEditorBetaApi.java -src/main/java/com/fireblocks/sdk/api/PolicyEditorV2BetaApi.java src/main/java/com/fireblocks/sdk/api/ResetDeviceApi.java src/main/java/com/fireblocks/sdk/api/SmartTransferApi.java -src/main/java/com/fireblocks/sdk/api/StakingApi.java -src/main/java/com/fireblocks/sdk/api/TagsApi.java +src/main/java/com/fireblocks/sdk/api/StakingBetaApi.java src/main/java/com/fireblocks/sdk/api/TokenizationApi.java -src/main/java/com/fireblocks/sdk/api/TradingBetaApi.java src/main/java/com/fireblocks/sdk/api/TransactionsApi.java -src/main/java/com/fireblocks/sdk/api/TravelRuleApi.java +src/main/java/com/fireblocks/sdk/api/TravelRuleBetaApi.java src/main/java/com/fireblocks/sdk/api/UserGroupsBetaApi.java src/main/java/com/fireblocks/sdk/api/UsersApi.java src/main/java/com/fireblocks/sdk/api/VaultsApi.java src/main/java/com/fireblocks/sdk/api/Web3ConnectionsApi.java src/main/java/com/fireblocks/sdk/api/WebhooksApi.java -src/main/java/com/fireblocks/sdk/api/WebhooksV2Api.java src/main/java/com/fireblocks/sdk/api/WhitelistIpAddressesApi.java src/main/java/com/fireblocks/sdk/api/WorkspaceStatusBetaApi.java src/main/java/com/fireblocks/sdk/model/APIUser.java -src/main/java/com/fireblocks/sdk/model/AbaPaymentInfo.java src/main/java/com/fireblocks/sdk/model/AbiFunction.java src/main/java/com/fireblocks/sdk/model/AbstractOpenApiSchema.java -src/main/java/com/fireblocks/sdk/model/AccessType.java src/main/java/com/fireblocks/sdk/model/Account.java -src/main/java/com/fireblocks/sdk/model/AccountAccess.java -src/main/java/com/fireblocks/sdk/model/AccountBase.java -src/main/java/com/fireblocks/sdk/model/AccountBasedAccessProvider.java -src/main/java/com/fireblocks/sdk/model/AccountConfig.java -src/main/java/com/fireblocks/sdk/model/AccountHolderDetails.java -src/main/java/com/fireblocks/sdk/model/AccountIdentifier.java -src/main/java/com/fireblocks/sdk/model/AccountProviderID.java -src/main/java/com/fireblocks/sdk/model/AccountReference.java src/main/java/com/fireblocks/sdk/model/AccountType.java -src/main/java/com/fireblocks/sdk/model/AccountType2.java -src/main/java/com/fireblocks/sdk/model/AchPaymentInfo.java -src/main/java/com/fireblocks/sdk/model/AdapterProcessingResult.java -src/main/java/com/fireblocks/sdk/model/AddAbiRequestDto.java src/main/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequest.java +src/main/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOf.java +src/main/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOf1.java +src/main/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOf1AdditionalInfo.java +src/main/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf.java +src/main/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1.java +src/main/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2.java src/main/java/com/fireblocks/sdk/model/AddCollateralRequestBody.java src/main/java/com/fireblocks/sdk/model/AddContractAssetRequest.java -src/main/java/com/fireblocks/sdk/model/AddCosignerRequest.java -src/main/java/com/fireblocks/sdk/model/AddCosignerResponse.java -src/main/java/com/fireblocks/sdk/model/AddExchangeAccountRequest.java -src/main/java/com/fireblocks/sdk/model/AddExchangeAccountResponse.java -src/main/java/com/fireblocks/sdk/model/AdditionalInfo.java -src/main/java/com/fireblocks/sdk/model/AdditionalInfoRequest.java -src/main/java/com/fireblocks/sdk/model/AdditionalInfoRequestAdditionalInfo.java -src/main/java/com/fireblocks/sdk/model/AddressNotAvailableError.java +src/main/java/com/fireblocks/sdk/model/AdditionalInfoDto.java src/main/java/com/fireblocks/sdk/model/AmlRegistrationResult.java -src/main/java/com/fireblocks/sdk/model/AmlRegistrationResultFullPayload.java src/main/java/com/fireblocks/sdk/model/AmlScreeningResult.java -src/main/java/com/fireblocks/sdk/model/AmlVerdictManualRequest.java -src/main/java/com/fireblocks/sdk/model/AmlVerdictManualResponse.java +src/main/java/com/fireblocks/sdk/model/AmountAggregationTimePeriodMethod.java src/main/java/com/fireblocks/sdk/model/AmountAndChainDescriptor.java src/main/java/com/fireblocks/sdk/model/AmountInfo.java -src/main/java/com/fireblocks/sdk/model/AmountOverTimeConfig.java -src/main/java/com/fireblocks/sdk/model/AmountOverTimeConfigRange.java -src/main/java/com/fireblocks/sdk/model/AmountRange.java src/main/java/com/fireblocks/sdk/model/ApiKey.java src/main/java/com/fireblocks/sdk/model/ApiKeysPaginatedResponse.java -src/main/java/com/fireblocks/sdk/model/ApproversConfig.java -src/main/java/com/fireblocks/sdk/model/ApproversConfigApprovalGroupsInner.java -src/main/java/com/fireblocks/sdk/model/Asset.java src/main/java/com/fireblocks/sdk/model/AssetAlreadyExistHttpError.java src/main/java/com/fireblocks/sdk/model/AssetAmount.java src/main/java/com/fireblocks/sdk/model/AssetBadRequestErrorResponse.java -src/main/java/com/fireblocks/sdk/model/AssetClass.java -src/main/java/com/fireblocks/sdk/model/AssetConfig.java src/main/java/com/fireblocks/sdk/model/AssetConflictErrorResponse.java -src/main/java/com/fireblocks/sdk/model/AssetDetailsMetadata.java -src/main/java/com/fireblocks/sdk/model/AssetDetailsOnchain.java -src/main/java/com/fireblocks/sdk/model/AssetFeature.java +src/main/java/com/fireblocks/sdk/model/AssetDoesNotExistHttpError.java src/main/java/com/fireblocks/sdk/model/AssetForbiddenErrorResponse.java src/main/java/com/fireblocks/sdk/model/AssetInternalServerErrorResponse.java -src/main/java/com/fireblocks/sdk/model/AssetMedia.java -src/main/java/com/fireblocks/sdk/model/AssetMediaAttributes.java -src/main/java/com/fireblocks/sdk/model/AssetMetadata.java src/main/java/com/fireblocks/sdk/model/AssetMetadataDto.java -src/main/java/com/fireblocks/sdk/model/AssetMetadataRequest.java src/main/java/com/fireblocks/sdk/model/AssetNotFoundErrorResponse.java -src/main/java/com/fireblocks/sdk/model/AssetNote.java -src/main/java/com/fireblocks/sdk/model/AssetNoteRequest.java -src/main/java/com/fireblocks/sdk/model/AssetOnchain.java -src/main/java/com/fireblocks/sdk/model/AssetPriceForbiddenErrorResponse.java -src/main/java/com/fireblocks/sdk/model/AssetPriceNotFoundErrorResponse.java -src/main/java/com/fireblocks/sdk/model/AssetPriceResponse.java src/main/java/com/fireblocks/sdk/model/AssetResponse.java -src/main/java/com/fireblocks/sdk/model/AssetScope.java +src/main/java/com/fireblocks/sdk/model/AssetResponseMetadata.java +src/main/java/com/fireblocks/sdk/model/AssetResponseOnchain.java src/main/java/com/fireblocks/sdk/model/AssetTypeResponse.java -src/main/java/com/fireblocks/sdk/model/AssetTypesConfigInner.java src/main/java/com/fireblocks/sdk/model/AssetWallet.java src/main/java/com/fireblocks/sdk/model/AuditLogData.java src/main/java/com/fireblocks/sdk/model/AuditorData.java src/main/java/com/fireblocks/sdk/model/AuthorizationGroups.java src/main/java/com/fireblocks/sdk/model/AuthorizationInfo.java -src/main/java/com/fireblocks/sdk/model/BaseProvider.java -src/main/java/com/fireblocks/sdk/model/BasicAddressRequest.java src/main/java/com/fireblocks/sdk/model/BlockInfo.java -src/main/java/com/fireblocks/sdk/model/BlockchainExplorer.java -src/main/java/com/fireblocks/sdk/model/BlockchainMedia.java -src/main/java/com/fireblocks/sdk/model/BlockchainMetadata.java -src/main/java/com/fireblocks/sdk/model/BlockchainNotFoundErrorResponse.java -src/main/java/com/fireblocks/sdk/model/BlockchainOnchain.java -src/main/java/com/fireblocks/sdk/model/BlockchainResponse.java -src/main/java/com/fireblocks/sdk/model/BlockchainTransfer.java -src/main/java/com/fireblocks/sdk/model/BpsFee.java -src/main/java/com/fireblocks/sdk/model/BusinessIdentification.java -src/main/java/com/fireblocks/sdk/model/CallbackHandler.java -src/main/java/com/fireblocks/sdk/model/CallbackHandlerRequest.java src/main/java/com/fireblocks/sdk/model/CancelTransactionResponse.java -src/main/java/com/fireblocks/sdk/model/Capability.java -src/main/java/com/fireblocks/sdk/model/ChainDescriptor.java -src/main/java/com/fireblocks/sdk/model/ChainInfoResponse.java -src/main/java/com/fireblocks/sdk/model/ChannelDvnConfigWithConfirmations.java -src/main/java/com/fireblocks/sdk/model/ClaimRewardsRequest.java -src/main/java/com/fireblocks/sdk/model/CollectionBurnRequestDto.java -src/main/java/com/fireblocks/sdk/model/CollectionBurnResponseDto.java -src/main/java/com/fireblocks/sdk/model/CollectionDeployRequestDto.java -src/main/java/com/fireblocks/sdk/model/CollectionLinkDto.java +src/main/java/com/fireblocks/sdk/model/ChainInfoResponseDto.java src/main/java/com/fireblocks/sdk/model/CollectionMetadataDto.java -src/main/java/com/fireblocks/sdk/model/CollectionMintRequestDto.java -src/main/java/com/fireblocks/sdk/model/CollectionMintResponseDto.java src/main/java/com/fireblocks/sdk/model/CollectionOwnershipResponse.java -src/main/java/com/fireblocks/sdk/model/CollectionTokenMetadataAttributeDto.java -src/main/java/com/fireblocks/sdk/model/CollectionTokenMetadataDto.java -src/main/java/com/fireblocks/sdk/model/CollectionType.java -src/main/java/com/fireblocks/sdk/model/CommittedQuoteType.java -src/main/java/com/fireblocks/sdk/model/ComplianceResultFullPayload.java -src/main/java/com/fireblocks/sdk/model/ComplianceResultStatusesEnum.java -src/main/java/com/fireblocks/sdk/model/ComplianceResults.java +src/main/java/com/fireblocks/sdk/model/ComplianceResult.java src/main/java/com/fireblocks/sdk/model/ComplianceScreeningResult.java -src/main/java/com/fireblocks/sdk/model/ComplianceScreeningResultFullPayload.java src/main/java/com/fireblocks/sdk/model/ConfigChangeRequestStatus.java src/main/java/com/fireblocks/sdk/model/ConfigConversionOperationSnapshot.java src/main/java/com/fireblocks/sdk/model/ConfigDisbursementOperationSnapshot.java @@ -1009,41 +601,15 @@ src/main/java/com/fireblocks/sdk/model/ConfigOperation.java src/main/java/com/fireblocks/sdk/model/ConfigOperationSnapshot.java src/main/java/com/fireblocks/sdk/model/ConfigOperationStatus.java src/main/java/com/fireblocks/sdk/model/ConfigTransferOperationSnapshot.java -src/main/java/com/fireblocks/sdk/model/ConnectedAccount.java -src/main/java/com/fireblocks/sdk/model/ConnectedAccountApprovalStatus.java -src/main/java/com/fireblocks/sdk/model/ConnectedAccountAssetType.java -src/main/java/com/fireblocks/sdk/model/ConnectedAccountBalances.java -src/main/java/com/fireblocks/sdk/model/ConnectedAccountBalancesResponse.java -src/main/java/com/fireblocks/sdk/model/ConnectedAccountCapability.java -src/main/java/com/fireblocks/sdk/model/ConnectedAccountManifest.java -src/main/java/com/fireblocks/sdk/model/ConnectedAccountRateResponse.java -src/main/java/com/fireblocks/sdk/model/ConnectedAccountTotalBalance.java -src/main/java/com/fireblocks/sdk/model/ConnectedAccountTradingPair.java -src/main/java/com/fireblocks/sdk/model/ConnectedAccountTradingPairSupportedType.java -src/main/java/com/fireblocks/sdk/model/ConnectedAccountTradingPairsResponse.java -src/main/java/com/fireblocks/sdk/model/ConnectedAccountsResponse.java -src/main/java/com/fireblocks/sdk/model/ConnectedSingleAccount.java -src/main/java/com/fireblocks/sdk/model/ConnectedSingleAccountResponse.java src/main/java/com/fireblocks/sdk/model/ConsoleUser.java src/main/java/com/fireblocks/sdk/model/ContractAbiResponseDto.java -src/main/java/com/fireblocks/sdk/model/ContractAbiResponseDtoAbiInner.java src/main/java/com/fireblocks/sdk/model/ContractAttributes.java -src/main/java/com/fireblocks/sdk/model/ContractDataDecodeDataType.java -src/main/java/com/fireblocks/sdk/model/ContractDataDecodeError.java -src/main/java/com/fireblocks/sdk/model/ContractDataDecodeRequest.java -src/main/java/com/fireblocks/sdk/model/ContractDataDecodeRequestData.java -src/main/java/com/fireblocks/sdk/model/ContractDataDecodeResponseParams.java -src/main/java/com/fireblocks/sdk/model/ContractDataDecodedResponse.java -src/main/java/com/fireblocks/sdk/model/ContractDataLogDataParam.java src/main/java/com/fireblocks/sdk/model/ContractDeployRequest.java src/main/java/com/fireblocks/sdk/model/ContractDeployResponse.java src/main/java/com/fireblocks/sdk/model/ContractDoc.java src/main/java/com/fireblocks/sdk/model/ContractMetadataDto.java -src/main/java/com/fireblocks/sdk/model/ContractMethodConfig.java -src/main/java/com/fireblocks/sdk/model/ContractMethodPattern.java src/main/java/com/fireblocks/sdk/model/ContractTemplateDto.java src/main/java/com/fireblocks/sdk/model/ContractUploadRequest.java -src/main/java/com/fireblocks/sdk/model/ContractWithAbiDto.java src/main/java/com/fireblocks/sdk/model/ConversionConfigOperation.java src/main/java/com/fireblocks/sdk/model/ConversionOperationConfigParams.java src/main/java/com/fireblocks/sdk/model/ConversionOperationExecution.java @@ -1073,20 +639,11 @@ src/main/java/com/fireblocks/sdk/model/CreateConversionConfigOperationRequest.ja src/main/java/com/fireblocks/sdk/model/CreateDisbursementConfigOperationRequest.java src/main/java/com/fireblocks/sdk/model/CreateInternalTransferRequest.java src/main/java/com/fireblocks/sdk/model/CreateInternalWalletAssetRequest.java -src/main/java/com/fireblocks/sdk/model/CreateMultichainTokenRequest.java src/main/java/com/fireblocks/sdk/model/CreateMultipleAccountsRequest.java -src/main/java/com/fireblocks/sdk/model/CreateMultipleDepositAddressesJobStatus.java -src/main/java/com/fireblocks/sdk/model/CreateMultipleDepositAddressesRequest.java -src/main/java/com/fireblocks/sdk/model/CreateMultipleVaultAccountsJobStatus.java src/main/java/com/fireblocks/sdk/model/CreateNcwConnectionRequest.java src/main/java/com/fireblocks/sdk/model/CreateNetworkIdRequest.java -src/main/java/com/fireblocks/sdk/model/CreateOrderRequest.java src/main/java/com/fireblocks/sdk/model/CreatePayoutRequest.java -src/main/java/com/fireblocks/sdk/model/CreateQuote.java -src/main/java/com/fireblocks/sdk/model/CreateQuoteScopeInner.java src/main/java/com/fireblocks/sdk/model/CreateSigningKeyDto.java -src/main/java/com/fireblocks/sdk/model/CreateSigningKeyDtoProofOfOwnership.java -src/main/java/com/fireblocks/sdk/model/CreateTagRequest.java src/main/java/com/fireblocks/sdk/model/CreateTokenRequestDto.java src/main/java/com/fireblocks/sdk/model/CreateTokenRequestDtoCreateParams.java src/main/java/com/fireblocks/sdk/model/CreateTransactionResponse.java @@ -1098,29 +655,19 @@ src/main/java/com/fireblocks/sdk/model/CreateVaultAccountConnectionRequest.java src/main/java/com/fireblocks/sdk/model/CreateVaultAccountRequest.java src/main/java/com/fireblocks/sdk/model/CreateVaultAssetResponse.java src/main/java/com/fireblocks/sdk/model/CreateWalletRequest.java -src/main/java/com/fireblocks/sdk/model/CreateWebhookRequest.java src/main/java/com/fireblocks/sdk/model/CreateWorkflowExecutionRequestParamsInner.java src/main/java/com/fireblocks/sdk/model/CustomRoutingDest.java -src/main/java/com/fireblocks/sdk/model/DVPSettlement.java src/main/java/com/fireblocks/sdk/model/DefaultNetworkRoutingDest.java -src/main/java/com/fireblocks/sdk/model/Delegation.java -src/main/java/com/fireblocks/sdk/model/DelegationSummary.java +src/main/java/com/fireblocks/sdk/model/DelegationDto.java +src/main/java/com/fireblocks/sdk/model/DelegationSummaryDto.java src/main/java/com/fireblocks/sdk/model/DeleteNetworkConnectionResponse.java src/main/java/com/fireblocks/sdk/model/DeleteNetworkIdResponse.java -src/main/java/com/fireblocks/sdk/model/DeployLayerZeroAdaptersRequest.java -src/main/java/com/fireblocks/sdk/model/DeployableAddressResponse.java -src/main/java/com/fireblocks/sdk/model/DeployedContractNotFoundError.java src/main/java/com/fireblocks/sdk/model/DeployedContractResponseDto.java src/main/java/com/fireblocks/sdk/model/DeployedContractsPaginatedResponse.java src/main/java/com/fireblocks/sdk/model/DepositFundsFromLinkedDDAResponse.java -src/main/java/com/fireblocks/sdk/model/DerivationPathConfig.java -src/main/java/com/fireblocks/sdk/model/DesignatedSignersConfig.java src/main/java/com/fireblocks/sdk/model/Destination.java -src/main/java/com/fireblocks/sdk/model/DestinationConfig.java src/main/java/com/fireblocks/sdk/model/DestinationTransferPeerPath.java src/main/java/com/fireblocks/sdk/model/DestinationTransferPeerPathResponse.java -src/main/java/com/fireblocks/sdk/model/DirectAccess.java -src/main/java/com/fireblocks/sdk/model/DirectAccessProvider.java src/main/java/com/fireblocks/sdk/model/DisbursementAmountInstruction.java src/main/java/com/fireblocks/sdk/model/DisbursementConfigOperation.java src/main/java/com/fireblocks/sdk/model/DisbursementInstruction.java @@ -1142,31 +689,11 @@ src/main/java/com/fireblocks/sdk/model/DraftResponse.java src/main/java/com/fireblocks/sdk/model/DraftReviewAndValidationResponse.java src/main/java/com/fireblocks/sdk/model/DropTransactionRequest.java src/main/java/com/fireblocks/sdk/model/DropTransactionResponse.java -src/main/java/com/fireblocks/sdk/model/DvnConfig.java -src/main/java/com/fireblocks/sdk/model/DvnConfigWithConfirmations.java src/main/java/com/fireblocks/sdk/model/EVMTokenCreateParamsDto.java src/main/java/com/fireblocks/sdk/model/EditGasStationConfigurationResponse.java -src/main/java/com/fireblocks/sdk/model/EmbeddedWallet.java -src/main/java/com/fireblocks/sdk/model/EmbeddedWalletAccount.java -src/main/java/com/fireblocks/sdk/model/EmbeddedWalletAddressDetails.java -src/main/java/com/fireblocks/sdk/model/EmbeddedWalletAlgoritm.java -src/main/java/com/fireblocks/sdk/model/EmbeddedWalletAssetBalance.java -src/main/java/com/fireblocks/sdk/model/EmbeddedWalletAssetResponse.java -src/main/java/com/fireblocks/sdk/model/EmbeddedWalletAssetRewardInfo.java -src/main/java/com/fireblocks/sdk/model/EmbeddedWalletDevice.java -src/main/java/com/fireblocks/sdk/model/EmbeddedWalletDeviceKeySetupResponse.java -src/main/java/com/fireblocks/sdk/model/EmbeddedWalletDeviceKeySetupResponseSetupStatusInner.java -src/main/java/com/fireblocks/sdk/model/EmbeddedWalletLatestBackupKey.java -src/main/java/com/fireblocks/sdk/model/EmbeddedWalletLatestBackupResponse.java -src/main/java/com/fireblocks/sdk/model/EmbeddedWalletPaginatedAddressesResponse.java -src/main/java/com/fireblocks/sdk/model/EmbeddedWalletPaginatedAssetsResponse.java -src/main/java/com/fireblocks/sdk/model/EmbeddedWalletPaginatedWalletsResponse.java -src/main/java/com/fireblocks/sdk/model/EmbeddedWalletSetUpStatus.java -src/main/java/com/fireblocks/sdk/model/ErrorCodes.java src/main/java/com/fireblocks/sdk/model/ErrorResponse.java src/main/java/com/fireblocks/sdk/model/ErrorResponseError.java src/main/java/com/fireblocks/sdk/model/ErrorSchema.java -src/main/java/com/fireblocks/sdk/model/EstimatedFeeDetails.java src/main/java/com/fireblocks/sdk/model/EstimatedNetworkFeeResponse.java src/main/java/com/fireblocks/sdk/model/EstimatedTransactionFeeResponse.java src/main/java/com/fireblocks/sdk/model/ExchangeAccount.java @@ -1176,56 +703,32 @@ src/main/java/com/fireblocks/sdk/model/ExchangeAsset.java src/main/java/com/fireblocks/sdk/model/ExchangeSettlementTransactionsResponse.java src/main/java/com/fireblocks/sdk/model/ExchangeTradingAccount.java src/main/java/com/fireblocks/sdk/model/ExchangeType.java +src/main/java/com/fireblocks/sdk/model/ExecuteActionRequest.java +src/main/java/com/fireblocks/sdk/model/ExecuteActionResponse.java src/main/java/com/fireblocks/sdk/model/ExecutionConversionOperation.java src/main/java/com/fireblocks/sdk/model/ExecutionDisbursementOperation.java src/main/java/com/fireblocks/sdk/model/ExecutionOperationStatus.java -src/main/java/com/fireblocks/sdk/model/ExecutionRequestBaseDetails.java -src/main/java/com/fireblocks/sdk/model/ExecutionRequestDetails.java -src/main/java/com/fireblocks/sdk/model/ExecutionResponseBaseDetails.java -src/main/java/com/fireblocks/sdk/model/ExecutionResponseDetails.java src/main/java/com/fireblocks/sdk/model/ExecutionScreeningOperation.java -src/main/java/com/fireblocks/sdk/model/ExecutionStep.java -src/main/java/com/fireblocks/sdk/model/ExecutionStepDetails.java -src/main/java/com/fireblocks/sdk/model/ExecutionStepError.java -src/main/java/com/fireblocks/sdk/model/ExecutionStepStatusEnum.java -src/main/java/com/fireblocks/sdk/model/ExecutionStepType.java src/main/java/com/fireblocks/sdk/model/ExecutionTransferOperation.java -src/main/java/com/fireblocks/sdk/model/ExternalAccount.java src/main/java/com/fireblocks/sdk/model/ExternalWalletAsset.java -src/main/java/com/fireblocks/sdk/model/Fee.java -src/main/java/com/fireblocks/sdk/model/FeeBreakdown.java -src/main/java/com/fireblocks/sdk/model/FeeBreakdownOneOf.java -src/main/java/com/fireblocks/sdk/model/FeeBreakdownOneOf1.java src/main/java/com/fireblocks/sdk/model/FeeInfo.java -src/main/java/com/fireblocks/sdk/model/FeeLevel.java -src/main/java/com/fireblocks/sdk/model/FetchAbiRequestDto.java src/main/java/com/fireblocks/sdk/model/FiatAccount.java src/main/java/com/fireblocks/sdk/model/FiatAccountType.java src/main/java/com/fireblocks/sdk/model/FiatAsset.java -src/main/java/com/fireblocks/sdk/model/FiatTransfer.java -src/main/java/com/fireblocks/sdk/model/FixedFee.java src/main/java/com/fireblocks/sdk/model/FreezeTransactionResponse.java src/main/java/com/fireblocks/sdk/model/FunctionDoc.java src/main/java/com/fireblocks/sdk/model/Funds.java src/main/java/com/fireblocks/sdk/model/GasStationConfiguration.java src/main/java/com/fireblocks/sdk/model/GasStationConfigurationResponse.java src/main/java/com/fireblocks/sdk/model/GasStationPropertiesResponse.java -src/main/java/com/fireblocks/sdk/model/GasslessStandardConfigurations.java -src/main/java/com/fireblocks/sdk/model/GasslessStandardConfigurationsGaslessStandardConfigurationsValue.java src/main/java/com/fireblocks/sdk/model/GetAPIUsersResponse.java src/main/java/com/fireblocks/sdk/model/GetAuditLogsResponse.java +src/main/java/com/fireblocks/sdk/model/GetAuditLogsResponseDTO.java src/main/java/com/fireblocks/sdk/model/GetConnectionsResponse.java src/main/java/com/fireblocks/sdk/model/GetConsoleUsersResponse.java -src/main/java/com/fireblocks/sdk/model/GetDeployableAddressRequest.java -src/main/java/com/fireblocks/sdk/model/GetExchangeAccountsCredentialsPublicKeyResponse.java src/main/java/com/fireblocks/sdk/model/GetFilterParameter.java -src/main/java/com/fireblocks/sdk/model/GetLayerZeroDvnConfigResponse.java -src/main/java/com/fireblocks/sdk/model/GetLayerZeroPeersResponse.java -src/main/java/com/fireblocks/sdk/model/GetLinkedCollectionsPaginatedResponse.java src/main/java/com/fireblocks/sdk/model/GetMaxSpendableAmountResponse.java -src/main/java/com/fireblocks/sdk/model/GetMpcKeysResponse.java src/main/java/com/fireblocks/sdk/model/GetNFTsResponse.java -src/main/java/com/fireblocks/sdk/model/GetOrdersResponse.java src/main/java/com/fireblocks/sdk/model/GetOtaStatusResponse.java src/main/java/com/fireblocks/sdk/model/GetOwnershipTokensResponse.java src/main/java/com/fireblocks/sdk/model/GetSigningKeyResponseDto.java @@ -1234,70 +737,19 @@ src/main/java/com/fireblocks/sdk/model/GetValidationKeyResponseDto.java src/main/java/com/fireblocks/sdk/model/GetWhitelistIpAddressesResponse.java src/main/java/com/fireblocks/sdk/model/GetWorkspaceStatusResponse.java src/main/java/com/fireblocks/sdk/model/HttpContractDoesNotExistError.java -src/main/java/com/fireblocks/sdk/model/IbanPaymentInfo.java -src/main/java/com/fireblocks/sdk/model/Identification.java -src/main/java/com/fireblocks/sdk/model/IdlType.java -src/main/java/com/fireblocks/sdk/model/IndicativeQuoteType.java -src/main/java/com/fireblocks/sdk/model/InitiatorConfig.java -src/main/java/com/fireblocks/sdk/model/InitiatorConfigPattern.java src/main/java/com/fireblocks/sdk/model/InstructionAmount.java -src/main/java/com/fireblocks/sdk/model/InternalReference.java src/main/java/com/fireblocks/sdk/model/InternalTransferResponse.java -src/main/java/com/fireblocks/sdk/model/InvalidParamaterValueError.java src/main/java/com/fireblocks/sdk/model/Job.java src/main/java/com/fireblocks/sdk/model/JobCreated.java -src/main/java/com/fireblocks/sdk/model/LayerZeroAdapterCreateParams.java -src/main/java/com/fireblocks/sdk/model/LbtPaymentInfo.java src/main/java/com/fireblocks/sdk/model/LeanAbiFunction.java src/main/java/com/fireblocks/sdk/model/LeanContractDto.java src/main/java/com/fireblocks/sdk/model/LeanDeployedContractResponseDto.java -src/main/java/com/fireblocks/sdk/model/LegacyAmountAggregationTimePeriodMethod.java -src/main/java/com/fireblocks/sdk/model/LegacyDraftResponse.java -src/main/java/com/fireblocks/sdk/model/LegacyDraftReviewAndValidationResponse.java -src/main/java/com/fireblocks/sdk/model/LegacyPolicyAndValidationResponse.java -src/main/java/com/fireblocks/sdk/model/LegacyPolicyCheckResult.java -src/main/java/com/fireblocks/sdk/model/LegacyPolicyMetadata.java -src/main/java/com/fireblocks/sdk/model/LegacyPolicyResponse.java -src/main/java/com/fireblocks/sdk/model/LegacyPolicyRule.java -src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleAmount.java -src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleAmountAggregation.java -src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleAuthorizationGroups.java -src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleAuthorizationGroupsGroupsInner.java -src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleCheckResult.java -src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleDesignatedSigners.java -src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleDst.java -src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleError.java -src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleOperators.java -src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleRawMessageSigning.java -src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleRawMessageSigningDerivationPath.java -src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleSrc.java -src/main/java/com/fireblocks/sdk/model/LegacyPolicyRules.java -src/main/java/com/fireblocks/sdk/model/LegacyPolicySrcOrDestSubType.java -src/main/java/com/fireblocks/sdk/model/LegacyPolicySrcOrDestType.java -src/main/java/com/fireblocks/sdk/model/LegacyPolicyStatus.java -src/main/java/com/fireblocks/sdk/model/LegacyPolicyValidation.java -src/main/java/com/fireblocks/sdk/model/LegacyPublishDraftRequest.java -src/main/java/com/fireblocks/sdk/model/LegacyPublishResult.java -src/main/java/com/fireblocks/sdk/model/LegacySrcOrDestAttributesInner.java -src/main/java/com/fireblocks/sdk/model/LimitExecutionRequestDetails.java -src/main/java/com/fireblocks/sdk/model/LimitExecutionResponseDetails.java -src/main/java/com/fireblocks/sdk/model/ListAssetsResponse.java -src/main/java/com/fireblocks/sdk/model/ListBlockchainsResponse.java src/main/java/com/fireblocks/sdk/model/ListOwnedCollectionsResponse.java src/main/java/com/fireblocks/sdk/model/ListOwnedTokensResponse.java -src/main/java/com/fireblocks/sdk/model/Manifest.java -src/main/java/com/fireblocks/sdk/model/MarketExecutionRequestDetails.java -src/main/java/com/fireblocks/sdk/model/MarketExecutionResponseDetails.java -src/main/java/com/fireblocks/sdk/model/MarketRequoteRequestDetails.java src/main/java/com/fireblocks/sdk/model/MediaEntityResponse.java -src/main/java/com/fireblocks/sdk/model/MergeStakeAccountsRequest.java -src/main/java/com/fireblocks/sdk/model/MergeStakeAccountsResponse.java src/main/java/com/fireblocks/sdk/model/ModifySigningKeyAgentIdDto.java src/main/java/com/fireblocks/sdk/model/ModifySigningKeyDto.java src/main/java/com/fireblocks/sdk/model/ModifyValidationKeyDto.java -src/main/java/com/fireblocks/sdk/model/MomoPaymentInfo.java -src/main/java/com/fireblocks/sdk/model/MpcKey.java -src/main/java/com/fireblocks/sdk/model/MultichainDeploymentMetadata.java src/main/java/com/fireblocks/sdk/model/NetworkChannel.java src/main/java/com/fireblocks/sdk/model/NetworkConnection.java src/main/java/com/fireblocks/sdk/model/NetworkConnectionResponse.java @@ -1308,41 +760,24 @@ src/main/java/com/fireblocks/sdk/model/NetworkId.java src/main/java/com/fireblocks/sdk/model/NetworkIdResponse.java src/main/java/com/fireblocks/sdk/model/NetworkIdRoutingPolicyValue.java src/main/java/com/fireblocks/sdk/model/NetworkRecord.java -src/main/java/com/fireblocks/sdk/model/NewAddress.java src/main/java/com/fireblocks/sdk/model/NoneNetworkRoutingDest.java src/main/java/com/fireblocks/sdk/model/NotFoundException.java -src/main/java/com/fireblocks/sdk/model/Notification.java -src/main/java/com/fireblocks/sdk/model/NotificationAttempt.java -src/main/java/com/fireblocks/sdk/model/NotificationAttemptsPaginatedResponse.java -src/main/java/com/fireblocks/sdk/model/NotificationPaginatedResponse.java -src/main/java/com/fireblocks/sdk/model/NotificationStatus.java -src/main/java/com/fireblocks/sdk/model/NotificationWithData.java src/main/java/com/fireblocks/sdk/model/OneTimeAddress.java src/main/java/com/fireblocks/sdk/model/OneTimeAddressAccount.java -src/main/java/com/fireblocks/sdk/model/OneTimeAddressReference.java src/main/java/com/fireblocks/sdk/model/OperationExecutionFailure.java -src/main/java/com/fireblocks/sdk/model/OrderDetails.java -src/main/java/com/fireblocks/sdk/model/OrderStatus.java -src/main/java/com/fireblocks/sdk/model/OrderSummary.java src/main/java/com/fireblocks/sdk/model/PaginatedAddressResponse.java src/main/java/com/fireblocks/sdk/model/PaginatedAddressResponsePaging.java src/main/java/com/fireblocks/sdk/model/PaginatedAssetWalletResponse.java src/main/java/com/fireblocks/sdk/model/PaginatedAssetWalletResponsePaging.java -src/main/java/com/fireblocks/sdk/model/PaginatedAssetsResponse.java src/main/java/com/fireblocks/sdk/model/Paging.java -src/main/java/com/fireblocks/sdk/model/PairApiKeyRequest.java -src/main/java/com/fireblocks/sdk/model/PairApiKeyResponse.java src/main/java/com/fireblocks/sdk/model/Parameter.java src/main/java/com/fireblocks/sdk/model/ParameterWithValue.java -src/main/java/com/fireblocks/sdk/model/ParticipantRelationshipType.java -src/main/java/com/fireblocks/sdk/model/ParticipantsIdentification.java src/main/java/com/fireblocks/sdk/model/PayeeAccount.java src/main/java/com/fireblocks/sdk/model/PayeeAccountResponse.java src/main/java/com/fireblocks/sdk/model/PayeeAccountType.java src/main/java/com/fireblocks/sdk/model/PaymentAccount.java src/main/java/com/fireblocks/sdk/model/PaymentAccountResponse.java src/main/java/com/fireblocks/sdk/model/PaymentAccountType.java -src/main/java/com/fireblocks/sdk/model/PaymentInstructions.java src/main/java/com/fireblocks/sdk/model/PayoutInitMethod.java src/main/java/com/fireblocks/sdk/model/PayoutInstruction.java src/main/java/com/fireblocks/sdk/model/PayoutInstructionResponse.java @@ -1350,101 +785,67 @@ src/main/java/com/fireblocks/sdk/model/PayoutInstructionState.java src/main/java/com/fireblocks/sdk/model/PayoutResponse.java src/main/java/com/fireblocks/sdk/model/PayoutState.java src/main/java/com/fireblocks/sdk/model/PayoutStatus.java -src/main/java/com/fireblocks/sdk/model/PeerAdapterInfo.java -src/main/java/com/fireblocks/sdk/model/PeerType.java -src/main/java/com/fireblocks/sdk/model/PersonalIdentification.java -src/main/java/com/fireblocks/sdk/model/PersonalIdentificationFullName.java -src/main/java/com/fireblocks/sdk/model/PixPaymentInfo.java -src/main/java/com/fireblocks/sdk/model/PlatformAccount.java -src/main/java/com/fireblocks/sdk/model/Players.java src/main/java/com/fireblocks/sdk/model/PolicyAndValidationResponse.java src/main/java/com/fireblocks/sdk/model/PolicyCheckResult.java src/main/java/com/fireblocks/sdk/model/PolicyMetadata.java -src/main/java/com/fireblocks/sdk/model/PolicyOperator.java src/main/java/com/fireblocks/sdk/model/PolicyResponse.java src/main/java/com/fireblocks/sdk/model/PolicyRule.java +src/main/java/com/fireblocks/sdk/model/PolicyRuleAmount.java +src/main/java/com/fireblocks/sdk/model/PolicyRuleAmountAggregation.java +src/main/java/com/fireblocks/sdk/model/PolicyRuleAuthorizationGroups.java +src/main/java/com/fireblocks/sdk/model/PolicyRuleAuthorizationGroupsGroupsInner.java src/main/java/com/fireblocks/sdk/model/PolicyRuleCheckResult.java +src/main/java/com/fireblocks/sdk/model/PolicyRuleDesignatedSigners.java +src/main/java/com/fireblocks/sdk/model/PolicyRuleDst.java src/main/java/com/fireblocks/sdk/model/PolicyRuleError.java +src/main/java/com/fireblocks/sdk/model/PolicyRuleOperators.java +src/main/java/com/fireblocks/sdk/model/PolicyRuleRawMessageSigning.java +src/main/java/com/fireblocks/sdk/model/PolicyRuleRawMessageSigningDerivationPath.java +src/main/java/com/fireblocks/sdk/model/PolicyRuleSrc.java +src/main/java/com/fireblocks/sdk/model/PolicyRules.java +src/main/java/com/fireblocks/sdk/model/PolicySrcOrDestSubType.java +src/main/java/com/fireblocks/sdk/model/PolicySrcOrDestType.java src/main/java/com/fireblocks/sdk/model/PolicyStatus.java -src/main/java/com/fireblocks/sdk/model/PolicyType.java src/main/java/com/fireblocks/sdk/model/PolicyValidation.java -src/main/java/com/fireblocks/sdk/model/PostOrderSettlement.java -src/main/java/com/fireblocks/sdk/model/PostalAddress.java src/main/java/com/fireblocks/sdk/model/PreScreening.java -src/main/java/com/fireblocks/sdk/model/PrefundedSettlement.java -src/main/java/com/fireblocks/sdk/model/ProgramCallConfig.java -src/main/java/com/fireblocks/sdk/model/Provider.java -src/main/java/com/fireblocks/sdk/model/ProviderID.java -src/main/java/com/fireblocks/sdk/model/ProvidersListResponse.java +src/main/java/com/fireblocks/sdk/model/ProviderDto.java src/main/java/com/fireblocks/sdk/model/PublicKeyInformation.java src/main/java/com/fireblocks/sdk/model/PublishDraftRequest.java src/main/java/com/fireblocks/sdk/model/PublishResult.java -src/main/java/com/fireblocks/sdk/model/Quote.java -src/main/java/com/fireblocks/sdk/model/QuoteExecutionRequestDetails.java -src/main/java/com/fireblocks/sdk/model/QuoteExecutionResponseDetails.java -src/main/java/com/fireblocks/sdk/model/QuoteExecutionWithRequoteRequestDetails.java -src/main/java/com/fireblocks/sdk/model/QuoteExecutionWithRequoteRequestDetailsAllOfReQuote.java -src/main/java/com/fireblocks/sdk/model/QuoteExecutionWithRequoteResponseDetails.java -src/main/java/com/fireblocks/sdk/model/QuoteExecutionWithRequoteResponseDetailsAllOfReQuote.java -src/main/java/com/fireblocks/sdk/model/QuotesResponse.java src/main/java/com/fireblocks/sdk/model/ReadAbiFunction.java src/main/java/com/fireblocks/sdk/model/ReadCallFunctionDto.java -src/main/java/com/fireblocks/sdk/model/ReadCallFunctionDtoAbiFunction.java src/main/java/com/fireblocks/sdk/model/RedeemFundsToLinkedDDAResponse.java src/main/java/com/fireblocks/sdk/model/RegisterNewAssetRequest.java -src/main/java/com/fireblocks/sdk/model/ReissueMultichainTokenRequest.java -src/main/java/com/fireblocks/sdk/model/RelatedRequest.java -src/main/java/com/fireblocks/sdk/model/RelatedTransaction.java +src/main/java/com/fireblocks/sdk/model/RelatedTransactionDto.java src/main/java/com/fireblocks/sdk/model/RemoveCollateralRequestBody.java -src/main/java/com/fireblocks/sdk/model/RemoveLayerZeroAdapterFailedResult.java -src/main/java/com/fireblocks/sdk/model/RemoveLayerZeroAdaptersRequest.java -src/main/java/com/fireblocks/sdk/model/RemoveLayerZeroAdaptersResponse.java -src/main/java/com/fireblocks/sdk/model/RemoveLayerZeroPeersRequest.java -src/main/java/com/fireblocks/sdk/model/RemoveLayerZeroPeersResponse.java src/main/java/com/fireblocks/sdk/model/RenameCosigner.java src/main/java/com/fireblocks/sdk/model/RenameVaultAccountResponse.java -src/main/java/com/fireblocks/sdk/model/RescanTransaction.java -src/main/java/com/fireblocks/sdk/model/ResendFailedNotificationsJobStatusResponse.java -src/main/java/com/fireblocks/sdk/model/ResendFailedNotificationsRequest.java -src/main/java/com/fireblocks/sdk/model/ResendFailedNotificationsResponse.java -src/main/java/com/fireblocks/sdk/model/ResendNotificationsByResourceIdRequest.java src/main/java/com/fireblocks/sdk/model/ResendTransactionWebhooksRequest.java src/main/java/com/fireblocks/sdk/model/ResendWebhooksByTransactionIdResponse.java src/main/java/com/fireblocks/sdk/model/ResendWebhooksResponse.java src/main/java/com/fireblocks/sdk/model/RespondToConnectionRequest.java -src/main/java/com/fireblocks/sdk/model/RetryRequoteRequestDetails.java src/main/java/com/fireblocks/sdk/model/RewardInfo.java src/main/java/com/fireblocks/sdk/model/RewardsInfo.java -src/main/java/com/fireblocks/sdk/model/SOLAccount.java -src/main/java/com/fireblocks/sdk/model/SOLAccountWithValue.java src/main/java/com/fireblocks/sdk/model/ScreeningConfigurationsRequest.java -src/main/java/com/fireblocks/sdk/model/ScreeningMetadataConfig.java src/main/java/com/fireblocks/sdk/model/ScreeningOperationExecution.java src/main/java/com/fireblocks/sdk/model/ScreeningOperationExecutionOutput.java src/main/java/com/fireblocks/sdk/model/ScreeningOperationFailure.java src/main/java/com/fireblocks/sdk/model/ScreeningOperationType.java src/main/java/com/fireblocks/sdk/model/ScreeningPolicyResponse.java src/main/java/com/fireblocks/sdk/model/ScreeningProviderRulesConfigurationResponse.java -src/main/java/com/fireblocks/sdk/model/ScreeningUpdateConfigurations.java +src/main/java/com/fireblocks/sdk/model/ScreeningUpdateConfigurationsRequest.java src/main/java/com/fireblocks/sdk/model/ScreeningValidationFailure.java src/main/java/com/fireblocks/sdk/model/ScreeningVerdict.java src/main/java/com/fireblocks/sdk/model/ScreeningVerdictMatchedRule.java -src/main/java/com/fireblocks/sdk/model/SearchNetworkIdsResponse.java -src/main/java/com/fireblocks/sdk/model/SepaPaymentInfo.java src/main/java/com/fireblocks/sdk/model/SessionDTO.java src/main/java/com/fireblocks/sdk/model/SessionMetadata.java src/main/java/com/fireblocks/sdk/model/SetAdminQuorumThresholdRequest.java src/main/java/com/fireblocks/sdk/model/SetAdminQuorumThresholdResponse.java -src/main/java/com/fireblocks/sdk/model/SetAssetPriceRequest.java src/main/java/com/fireblocks/sdk/model/SetAutoFuelRequest.java src/main/java/com/fireblocks/sdk/model/SetConfirmationsThresholdRequest.java src/main/java/com/fireblocks/sdk/model/SetConfirmationsThresholdResponse.java src/main/java/com/fireblocks/sdk/model/SetCustomerRefIdForAddressRequest.java src/main/java/com/fireblocks/sdk/model/SetCustomerRefIdRequest.java -src/main/java/com/fireblocks/sdk/model/SetLayerZeroDvnConfigRequest.java -src/main/java/com/fireblocks/sdk/model/SetLayerZeroDvnConfigResponse.java -src/main/java/com/fireblocks/sdk/model/SetLayerZeroPeersRequest.java -src/main/java/com/fireblocks/sdk/model/SetLayerZeroPeersResponse.java src/main/java/com/fireblocks/sdk/model/SetNetworkIdDiscoverabilityRequest.java src/main/java/com/fireblocks/sdk/model/SetNetworkIdNameRequest.java src/main/java/com/fireblocks/sdk/model/SetNetworkIdResponse.java @@ -1454,29 +855,21 @@ src/main/java/com/fireblocks/sdk/model/SetOtaStatusResponse.java src/main/java/com/fireblocks/sdk/model/SetOtaStatusResponseOneOf.java src/main/java/com/fireblocks/sdk/model/SetRoutingPolicyRequest.java src/main/java/com/fireblocks/sdk/model/SetRoutingPolicyResponse.java -src/main/java/com/fireblocks/sdk/model/Settlement.java src/main/java/com/fireblocks/sdk/model/SettlementRequestBody.java src/main/java/com/fireblocks/sdk/model/SettlementResponse.java -src/main/java/com/fireblocks/sdk/model/SettlementSourceAccount.java src/main/java/com/fireblocks/sdk/model/SignedMessage.java src/main/java/com/fireblocks/sdk/model/SignedMessageSignature.java src/main/java/com/fireblocks/sdk/model/SigningKeyDto.java -src/main/java/com/fireblocks/sdk/model/SmartTransferApproveTerm.java src/main/java/com/fireblocks/sdk/model/SmartTransferBadRequestResponse.java -src/main/java/com/fireblocks/sdk/model/SmartTransferCoinStatistic.java src/main/java/com/fireblocks/sdk/model/SmartTransferCreateTicket.java src/main/java/com/fireblocks/sdk/model/SmartTransferCreateTicketTerm.java src/main/java/com/fireblocks/sdk/model/SmartTransferForbiddenResponse.java -src/main/java/com/fireblocks/sdk/model/SmartTransferFundDvpTicket.java src/main/java/com/fireblocks/sdk/model/SmartTransferFundTerm.java src/main/java/com/fireblocks/sdk/model/SmartTransferManuallyFundTerm.java src/main/java/com/fireblocks/sdk/model/SmartTransferNotFoundResponse.java src/main/java/com/fireblocks/sdk/model/SmartTransferSetTicketExpiration.java src/main/java/com/fireblocks/sdk/model/SmartTransferSetTicketExternalId.java src/main/java/com/fireblocks/sdk/model/SmartTransferSetUserGroups.java -src/main/java/com/fireblocks/sdk/model/SmartTransferStatistic.java -src/main/java/com/fireblocks/sdk/model/SmartTransferStatisticInflow.java -src/main/java/com/fireblocks/sdk/model/SmartTransferStatisticOutflow.java src/main/java/com/fireblocks/sdk/model/SmartTransferSubmitTicket.java src/main/java/com/fireblocks/sdk/model/SmartTransferTicket.java src/main/java/com/fireblocks/sdk/model/SmartTransferTicketFilteredResponse.java @@ -1486,43 +879,25 @@ src/main/java/com/fireblocks/sdk/model/SmartTransferTicketTermResponse.java src/main/java/com/fireblocks/sdk/model/SmartTransferUpdateTicketTerm.java src/main/java/com/fireblocks/sdk/model/SmartTransferUserGroups.java src/main/java/com/fireblocks/sdk/model/SmartTransferUserGroupsResponse.java -src/main/java/com/fireblocks/sdk/model/SolParameter.java -src/main/java/com/fireblocks/sdk/model/SolParameterWithValue.java -src/main/java/com/fireblocks/sdk/model/SolanaBlockchainData.java -src/main/java/com/fireblocks/sdk/model/SolanaConfig.java -src/main/java/com/fireblocks/sdk/model/SolanaInstruction.java -src/main/java/com/fireblocks/sdk/model/SolanaInstructionWithValue.java -src/main/java/com/fireblocks/sdk/model/SolanaSimpleCreateParams.java +src/main/java/com/fireblocks/sdk/model/SolanaBlockchainDataDto.java src/main/java/com/fireblocks/sdk/model/SourceTransferPeerPath.java src/main/java/com/fireblocks/sdk/model/SourceTransferPeerPathResponse.java src/main/java/com/fireblocks/sdk/model/SpamOwnershipResponse.java src/main/java/com/fireblocks/sdk/model/SpamTokenResponse.java -src/main/java/com/fireblocks/sdk/model/SpeiAdvancedPaymentInfo.java -src/main/java/com/fireblocks/sdk/model/SpeiBasicPaymentInfo.java -src/main/java/com/fireblocks/sdk/model/SplitRequest.java -src/main/java/com/fireblocks/sdk/model/SplitResponse.java -src/main/java/com/fireblocks/sdk/model/StakeRequest.java -src/main/java/com/fireblocks/sdk/model/StakeResponse.java -src/main/java/com/fireblocks/sdk/model/StakingProvider.java -src/main/java/com/fireblocks/sdk/model/Status.java +src/main/java/com/fireblocks/sdk/model/SrcOrDestAttributesInner.java +src/main/java/com/fireblocks/sdk/model/StakeRequestDto.java +src/main/java/com/fireblocks/sdk/model/StakeResponseDto.java src/main/java/com/fireblocks/sdk/model/StellarRippleCreateParamsDto.java src/main/java/com/fireblocks/sdk/model/SystemMessageInfo.java -src/main/java/com/fireblocks/sdk/model/Tag.java -src/main/java/com/fireblocks/sdk/model/TagsPagedResponse.java src/main/java/com/fireblocks/sdk/model/Task.java src/main/java/com/fireblocks/sdk/model/TemplatesPaginatedResponse.java src/main/java/com/fireblocks/sdk/model/ThirdPartyRouting.java -src/main/java/com/fireblocks/sdk/model/TimeInForce.java -src/main/java/com/fireblocks/sdk/model/TimePeriodConfig.java -src/main/java/com/fireblocks/sdk/model/TimePeriodMatchType.java src/main/java/com/fireblocks/sdk/model/ToCollateralTransaction.java src/main/java/com/fireblocks/sdk/model/ToExchangeTransaction.java src/main/java/com/fireblocks/sdk/model/TokenCollectionResponse.java -src/main/java/com/fireblocks/sdk/model/TokenInfoNotFoundErrorResponse.java src/main/java/com/fireblocks/sdk/model/TokenLinkDto.java src/main/java/com/fireblocks/sdk/model/TokenLinkDtoTokenMetadata.java src/main/java/com/fireblocks/sdk/model/TokenLinkExistsHttpError.java -src/main/java/com/fireblocks/sdk/model/TokenLinkNotMultichainCompatibleHttpError.java src/main/java/com/fireblocks/sdk/model/TokenLinkRequestDto.java src/main/java/com/fireblocks/sdk/model/TokenOwnershipResponse.java src/main/java/com/fireblocks/sdk/model/TokenOwnershipSpamUpdatePayload.java @@ -1530,13 +905,9 @@ src/main/java/com/fireblocks/sdk/model/TokenOwnershipStatusUpdatePayload.java src/main/java/com/fireblocks/sdk/model/TokenResponse.java src/main/java/com/fireblocks/sdk/model/TokensPaginatedResponse.java src/main/java/com/fireblocks/sdk/model/TradingAccountType.java -src/main/java/com/fireblocks/sdk/model/TradingErrorResponse.java -src/main/java/com/fireblocks/sdk/model/TradingErrorResponseError.java -src/main/java/com/fireblocks/sdk/model/TradingProvider.java src/main/java/com/fireblocks/sdk/model/Transaction.java src/main/java/com/fireblocks/sdk/model/TransactionFee.java src/main/java/com/fireblocks/sdk/model/TransactionOperation.java -src/main/java/com/fireblocks/sdk/model/TransactionReceiptResponse.java src/main/java/com/fireblocks/sdk/model/TransactionRequest.java src/main/java/com/fireblocks/sdk/model/TransactionRequestAmount.java src/main/java/com/fireblocks/sdk/model/TransactionRequestDestination.java @@ -1562,59 +933,29 @@ src/main/java/com/fireblocks/sdk/model/TransferOperationPreviewOutput.java src/main/java/com/fireblocks/sdk/model/TransferOperationType.java src/main/java/com/fireblocks/sdk/model/TransferPeerPathSubType.java src/main/java/com/fireblocks/sdk/model/TransferPeerPathType.java -src/main/java/com/fireblocks/sdk/model/TransferRail.java -src/main/java/com/fireblocks/sdk/model/TransferReceipt.java src/main/java/com/fireblocks/sdk/model/TransferValidationFailure.java src/main/java/com/fireblocks/sdk/model/TravelRuleAddress.java src/main/java/com/fireblocks/sdk/model/TravelRuleCreateTransactionRequest.java -src/main/java/com/fireblocks/sdk/model/TravelRuleDateAndPlaceOfBirth.java -src/main/java/com/fireblocks/sdk/model/TravelRuleGeographicAddress.java src/main/java/com/fireblocks/sdk/model/TravelRuleGetAllVASPsResponse.java src/main/java/com/fireblocks/sdk/model/TravelRuleIssuer.java src/main/java/com/fireblocks/sdk/model/TravelRuleIssuers.java -src/main/java/com/fireblocks/sdk/model/TravelRuleLegalPerson.java -src/main/java/com/fireblocks/sdk/model/TravelRuleLegalPersonNameIdentifier.java -src/main/java/com/fireblocks/sdk/model/TravelRuleNationalIdentification.java -src/main/java/com/fireblocks/sdk/model/TravelRuleNaturalNameIdentifier.java -src/main/java/com/fireblocks/sdk/model/TravelRuleNaturalPerson.java -src/main/java/com/fireblocks/sdk/model/TravelRuleNaturalPersonNameIdentifier.java src/main/java/com/fireblocks/sdk/model/TravelRuleOwnershipProof.java -src/main/java/com/fireblocks/sdk/model/TravelRulePerson.java src/main/java/com/fireblocks/sdk/model/TravelRulePiiIVMS.java src/main/java/com/fireblocks/sdk/model/TravelRulePolicyRuleResponse.java src/main/java/com/fireblocks/sdk/model/TravelRuleTransactionBlockchainInfo.java src/main/java/com/fireblocks/sdk/model/TravelRuleUpdateVASPDetails.java src/main/java/com/fireblocks/sdk/model/TravelRuleVASP.java -src/main/java/com/fireblocks/sdk/model/TravelRuleValidateDateAndPlaceOfBirth.java src/main/java/com/fireblocks/sdk/model/TravelRuleValidateFullTransactionRequest.java -src/main/java/com/fireblocks/sdk/model/TravelRuleValidateGeographicAddress.java -src/main/java/com/fireblocks/sdk/model/TravelRuleValidateLegalPerson.java -src/main/java/com/fireblocks/sdk/model/TravelRuleValidateLegalPersonNameIdentifier.java -src/main/java/com/fireblocks/sdk/model/TravelRuleValidateNationalIdentification.java -src/main/java/com/fireblocks/sdk/model/TravelRuleValidateNaturalNameIdentifier.java -src/main/java/com/fireblocks/sdk/model/TravelRuleValidateNaturalPerson.java -src/main/java/com/fireblocks/sdk/model/TravelRuleValidateNaturalPersonNameIdentifier.java -src/main/java/com/fireblocks/sdk/model/TravelRuleValidatePerson.java -src/main/java/com/fireblocks/sdk/model/TravelRuleValidatePiiIVMS.java src/main/java/com/fireblocks/sdk/model/TravelRuleValidateTransactionRequest.java src/main/java/com/fireblocks/sdk/model/TravelRuleValidateTransactionResponse.java -src/main/java/com/fireblocks/sdk/model/TravelRuleVaspForVault.java -src/main/java/com/fireblocks/sdk/model/TxLog.java src/main/java/com/fireblocks/sdk/model/UnfreezeTransactionResponse.java src/main/java/com/fireblocks/sdk/model/UnmanagedWallet.java src/main/java/com/fireblocks/sdk/model/UnspentInput.java src/main/java/com/fireblocks/sdk/model/UnspentInputsResponse.java -src/main/java/com/fireblocks/sdk/model/UnstakeRequest.java -src/main/java/com/fireblocks/sdk/model/UpdateAssetUserMetadataRequest.java -src/main/java/com/fireblocks/sdk/model/UpdateCallbackHandlerRequest.java -src/main/java/com/fireblocks/sdk/model/UpdateCallbackHandlerResponse.java -src/main/java/com/fireblocks/sdk/model/UpdateDraftRequest.java -src/main/java/com/fireblocks/sdk/model/UpdateTagRequest.java +src/main/java/com/fireblocks/sdk/model/UnstakeRequestDto.java src/main/java/com/fireblocks/sdk/model/UpdateTokenOwnershipStatusDto.java src/main/java/com/fireblocks/sdk/model/UpdateVaultAccountAssetAddressRequest.java src/main/java/com/fireblocks/sdk/model/UpdateVaultAccountRequest.java -src/main/java/com/fireblocks/sdk/model/UpdateWebhookRequest.java -src/main/java/com/fireblocks/sdk/model/UsWirePaymentInfo.java src/main/java/com/fireblocks/sdk/model/UserGroupCreateRequest.java src/main/java/com/fireblocks/sdk/model/UserGroupCreateResponse.java src/main/java/com/fireblocks/sdk/model/UserGroupResponse.java @@ -1624,32 +965,23 @@ src/main/java/com/fireblocks/sdk/model/UserRole.java src/main/java/com/fireblocks/sdk/model/UserStatus.java src/main/java/com/fireblocks/sdk/model/UserType.java src/main/java/com/fireblocks/sdk/model/ValidateAddressResponse.java -src/main/java/com/fireblocks/sdk/model/ValidateLayerZeroChannelResponse.java -src/main/java/com/fireblocks/sdk/model/ValidatedTransactionsForRescan.java src/main/java/com/fireblocks/sdk/model/ValidationKeyDto.java -src/main/java/com/fireblocks/sdk/model/Validator.java +src/main/java/com/fireblocks/sdk/model/ValidatorDto.java src/main/java/com/fireblocks/sdk/model/VaultAccount.java src/main/java/com/fireblocks/sdk/model/VaultAccountsPagedResponse.java src/main/java/com/fireblocks/sdk/model/VaultAccountsPagedResponsePaging.java -src/main/java/com/fireblocks/sdk/model/VaultAccountsTagAttachmentsRequest.java src/main/java/com/fireblocks/sdk/model/VaultActionStatus.java src/main/java/com/fireblocks/sdk/model/VaultAsset.java src/main/java/com/fireblocks/sdk/model/VaultWalletAddress.java src/main/java/com/fireblocks/sdk/model/VendorDto.java -src/main/java/com/fireblocks/sdk/model/VerdictConfig.java -src/main/java/com/fireblocks/sdk/model/Version.java src/main/java/com/fireblocks/sdk/model/WalletAsset.java src/main/java/com/fireblocks/sdk/model/WalletAssetAdditionalInfo.java -src/main/java/com/fireblocks/sdk/model/Webhook.java -src/main/java/com/fireblocks/sdk/model/WebhookEvent.java -src/main/java/com/fireblocks/sdk/model/WebhookPaginatedResponse.java -src/main/java/com/fireblocks/sdk/model/WithdrawRequest.java +src/main/java/com/fireblocks/sdk/model/WithdrawRequestDto.java src/main/java/com/fireblocks/sdk/model/WorkflowConfigStatus.java src/main/java/com/fireblocks/sdk/model/WorkflowConfigurationId.java src/main/java/com/fireblocks/sdk/model/WorkflowExecutionOperation.java src/main/java/com/fireblocks/sdk/model/WriteAbiFunction.java src/main/java/com/fireblocks/sdk/model/WriteCallFunctionDto.java -src/main/java/com/fireblocks/sdk/model/WriteCallFunctionDtoAbiFunction.java src/main/java/com/fireblocks/sdk/model/WriteCallFunctionResponseDto.java src/test/java/com/fireblocks/sdk/AdditionalOptionsTest.java src/test/java/com/fireblocks/sdk/BasePathTest.java @@ -1664,14 +996,12 @@ src/test/java/com/fireblocks/sdk/api/AuditLogsApiTest.java src/test/java/com/fireblocks/sdk/api/BlockchainsAssetsApiTest.java src/test/java/com/fireblocks/sdk/api/ComplianceApiTest.java src/test/java/com/fireblocks/sdk/api/ComplianceScreeningConfigurationApiTest.java -src/test/java/com/fireblocks/sdk/api/ConnectedAccountsBetaApiTest.java src/test/java/com/fireblocks/sdk/api/ConsoleUserApiTest.java src/test/java/com/fireblocks/sdk/api/ContractInteractionsApiTest.java src/test/java/com/fireblocks/sdk/api/ContractTemplatesApiTest.java src/test/java/com/fireblocks/sdk/api/ContractsApiTest.java src/test/java/com/fireblocks/sdk/api/CosignersBetaApiTest.java src/test/java/com/fireblocks/sdk/api/DeployedContractsApiTest.java -src/test/java/com/fireblocks/sdk/api/EmbeddedWalletsApiTest.java src/test/java/com/fireblocks/sdk/api/ExchangeAccountsApiTest.java src/test/java/com/fireblocks/sdk/api/ExternalWalletsApiTest.java src/test/java/com/fireblocks/sdk/api/FiatAccountsApiTest.java @@ -1679,142 +1009,70 @@ src/test/java/com/fireblocks/sdk/api/GasStationsApiTest.java src/test/java/com/fireblocks/sdk/api/InternalWalletsApiTest.java src/test/java/com/fireblocks/sdk/api/JobManagementApiTest.java src/test/java/com/fireblocks/sdk/api/KeyLinkBetaApiTest.java -src/test/java/com/fireblocks/sdk/api/KeysBetaApiTest.java src/test/java/com/fireblocks/sdk/api/NetworkConnectionsApiTest.java src/test/java/com/fireblocks/sdk/api/NftsApiTest.java src/test/java/com/fireblocks/sdk/api/OffExchangesApiTest.java src/test/java/com/fireblocks/sdk/api/OtaBetaApiTest.java src/test/java/com/fireblocks/sdk/api/PaymentsPayoutApiTest.java src/test/java/com/fireblocks/sdk/api/PolicyEditorBetaApiTest.java -src/test/java/com/fireblocks/sdk/api/PolicyEditorV2BetaApiTest.java src/test/java/com/fireblocks/sdk/api/ResetDeviceApiTest.java src/test/java/com/fireblocks/sdk/api/SmartTransferApiTest.java -src/test/java/com/fireblocks/sdk/api/StakingApiTest.java -src/test/java/com/fireblocks/sdk/api/TagsApiTest.java +src/test/java/com/fireblocks/sdk/api/StakingBetaApiTest.java src/test/java/com/fireblocks/sdk/api/TokenizationApiTest.java -src/test/java/com/fireblocks/sdk/api/TradingBetaApiTest.java src/test/java/com/fireblocks/sdk/api/TransactionsApiTest.java -src/test/java/com/fireblocks/sdk/api/TravelRuleApiTest.java +src/test/java/com/fireblocks/sdk/api/TravelRuleBetaApiTest.java src/test/java/com/fireblocks/sdk/api/UserGroupsBetaApiTest.java src/test/java/com/fireblocks/sdk/api/UsersApiTest.java src/test/java/com/fireblocks/sdk/api/VaultsApiTest.java src/test/java/com/fireblocks/sdk/api/Web3ConnectionsApiTest.java src/test/java/com/fireblocks/sdk/api/WebhooksApiTest.java -src/test/java/com/fireblocks/sdk/api/WebhooksV2ApiTest.java src/test/java/com/fireblocks/sdk/api/WhitelistIpAddressesApiTest.java src/test/java/com/fireblocks/sdk/api/WorkspaceStatusBetaApiTest.java src/test/java/com/fireblocks/sdk/model/APIUserTest.java -src/test/java/com/fireblocks/sdk/model/AbaPaymentInfoTest.java src/test/java/com/fireblocks/sdk/model/AbiFunctionTest.java -src/test/java/com/fireblocks/sdk/model/AccessTypeTest.java -src/test/java/com/fireblocks/sdk/model/AccountAccessTest.java -src/test/java/com/fireblocks/sdk/model/AccountBaseTest.java -src/test/java/com/fireblocks/sdk/model/AccountBasedAccessProviderTest.java -src/test/java/com/fireblocks/sdk/model/AccountConfigTest.java -src/test/java/com/fireblocks/sdk/model/AccountHolderDetailsTest.java -src/test/java/com/fireblocks/sdk/model/AccountIdentifierTest.java -src/test/java/com/fireblocks/sdk/model/AccountProviderIDTest.java -src/test/java/com/fireblocks/sdk/model/AccountReferenceTest.java src/test/java/com/fireblocks/sdk/model/AccountTest.java -src/test/java/com/fireblocks/sdk/model/AccountType2Test.java src/test/java/com/fireblocks/sdk/model/AccountTypeTest.java -src/test/java/com/fireblocks/sdk/model/AchPaymentInfoTest.java -src/test/java/com/fireblocks/sdk/model/AdapterProcessingResultTest.java -src/test/java/com/fireblocks/sdk/model/AddAbiRequestDtoTest.java +src/test/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1Test.java +src/test/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2Test.java +src/test/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOfTest.java +src/test/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOf1AdditionalInfoTest.java +src/test/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOf1Test.java +src/test/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOfTest.java src/test/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestTest.java src/test/java/com/fireblocks/sdk/model/AddCollateralRequestBodyTest.java src/test/java/com/fireblocks/sdk/model/AddContractAssetRequestTest.java -src/test/java/com/fireblocks/sdk/model/AddCosignerRequestTest.java -src/test/java/com/fireblocks/sdk/model/AddCosignerResponseTest.java -src/test/java/com/fireblocks/sdk/model/AddExchangeAccountRequestTest.java -src/test/java/com/fireblocks/sdk/model/AddExchangeAccountResponseTest.java -src/test/java/com/fireblocks/sdk/model/AdditionalInfoRequestAdditionalInfoTest.java -src/test/java/com/fireblocks/sdk/model/AdditionalInfoRequestTest.java -src/test/java/com/fireblocks/sdk/model/AdditionalInfoTest.java -src/test/java/com/fireblocks/sdk/model/AddressNotAvailableErrorTest.java -src/test/java/com/fireblocks/sdk/model/AmlRegistrationResultFullPayloadTest.java +src/test/java/com/fireblocks/sdk/model/AdditionalInfoDtoTest.java src/test/java/com/fireblocks/sdk/model/AmlRegistrationResultTest.java src/test/java/com/fireblocks/sdk/model/AmlScreeningResultTest.java -src/test/java/com/fireblocks/sdk/model/AmlVerdictManualRequestTest.java -src/test/java/com/fireblocks/sdk/model/AmlVerdictManualResponseTest.java +src/test/java/com/fireblocks/sdk/model/AmountAggregationTimePeriodMethodTest.java src/test/java/com/fireblocks/sdk/model/AmountAndChainDescriptorTest.java src/test/java/com/fireblocks/sdk/model/AmountInfoTest.java -src/test/java/com/fireblocks/sdk/model/AmountOverTimeConfigRangeTest.java -src/test/java/com/fireblocks/sdk/model/AmountOverTimeConfigTest.java -src/test/java/com/fireblocks/sdk/model/AmountRangeTest.java src/test/java/com/fireblocks/sdk/model/ApiKeyTest.java src/test/java/com/fireblocks/sdk/model/ApiKeysPaginatedResponseTest.java -src/test/java/com/fireblocks/sdk/model/ApproversConfigApprovalGroupsInnerTest.java -src/test/java/com/fireblocks/sdk/model/ApproversConfigTest.java src/test/java/com/fireblocks/sdk/model/AssetAlreadyExistHttpErrorTest.java src/test/java/com/fireblocks/sdk/model/AssetAmountTest.java src/test/java/com/fireblocks/sdk/model/AssetBadRequestErrorResponseTest.java -src/test/java/com/fireblocks/sdk/model/AssetClassTest.java -src/test/java/com/fireblocks/sdk/model/AssetConfigTest.java src/test/java/com/fireblocks/sdk/model/AssetConflictErrorResponseTest.java -src/test/java/com/fireblocks/sdk/model/AssetDetailsMetadataTest.java -src/test/java/com/fireblocks/sdk/model/AssetDetailsOnchainTest.java -src/test/java/com/fireblocks/sdk/model/AssetFeatureTest.java +src/test/java/com/fireblocks/sdk/model/AssetDoesNotExistHttpErrorTest.java src/test/java/com/fireblocks/sdk/model/AssetForbiddenErrorResponseTest.java src/test/java/com/fireblocks/sdk/model/AssetInternalServerErrorResponseTest.java -src/test/java/com/fireblocks/sdk/model/AssetMediaAttributesTest.java -src/test/java/com/fireblocks/sdk/model/AssetMediaTest.java src/test/java/com/fireblocks/sdk/model/AssetMetadataDtoTest.java -src/test/java/com/fireblocks/sdk/model/AssetMetadataRequestTest.java -src/test/java/com/fireblocks/sdk/model/AssetMetadataTest.java src/test/java/com/fireblocks/sdk/model/AssetNotFoundErrorResponseTest.java -src/test/java/com/fireblocks/sdk/model/AssetNoteRequestTest.java -src/test/java/com/fireblocks/sdk/model/AssetNoteTest.java -src/test/java/com/fireblocks/sdk/model/AssetOnchainTest.java -src/test/java/com/fireblocks/sdk/model/AssetPriceForbiddenErrorResponseTest.java -src/test/java/com/fireblocks/sdk/model/AssetPriceNotFoundErrorResponseTest.java -src/test/java/com/fireblocks/sdk/model/AssetPriceResponseTest.java +src/test/java/com/fireblocks/sdk/model/AssetResponseMetadataTest.java +src/test/java/com/fireblocks/sdk/model/AssetResponseOnchainTest.java src/test/java/com/fireblocks/sdk/model/AssetResponseTest.java -src/test/java/com/fireblocks/sdk/model/AssetScopeTest.java -src/test/java/com/fireblocks/sdk/model/AssetTest.java src/test/java/com/fireblocks/sdk/model/AssetTypeResponseTest.java -src/test/java/com/fireblocks/sdk/model/AssetTypesConfigInnerTest.java src/test/java/com/fireblocks/sdk/model/AssetWalletTest.java src/test/java/com/fireblocks/sdk/model/AuditLogDataTest.java src/test/java/com/fireblocks/sdk/model/AuditorDataTest.java src/test/java/com/fireblocks/sdk/model/AuthorizationGroupsTest.java src/test/java/com/fireblocks/sdk/model/AuthorizationInfoTest.java -src/test/java/com/fireblocks/sdk/model/BaseProviderTest.java -src/test/java/com/fireblocks/sdk/model/BasicAddressRequestTest.java src/test/java/com/fireblocks/sdk/model/BlockInfoTest.java -src/test/java/com/fireblocks/sdk/model/BlockchainExplorerTest.java -src/test/java/com/fireblocks/sdk/model/BlockchainMediaTest.java -src/test/java/com/fireblocks/sdk/model/BlockchainMetadataTest.java -src/test/java/com/fireblocks/sdk/model/BlockchainNotFoundErrorResponseTest.java -src/test/java/com/fireblocks/sdk/model/BlockchainOnchainTest.java -src/test/java/com/fireblocks/sdk/model/BlockchainResponseTest.java -src/test/java/com/fireblocks/sdk/model/BlockchainTransferTest.java -src/test/java/com/fireblocks/sdk/model/BpsFeeTest.java -src/test/java/com/fireblocks/sdk/model/BusinessIdentificationTest.java -src/test/java/com/fireblocks/sdk/model/CallbackHandlerRequestTest.java -src/test/java/com/fireblocks/sdk/model/CallbackHandlerTest.java src/test/java/com/fireblocks/sdk/model/CancelTransactionResponseTest.java -src/test/java/com/fireblocks/sdk/model/CapabilityTest.java -src/test/java/com/fireblocks/sdk/model/ChainDescriptorTest.java -src/test/java/com/fireblocks/sdk/model/ChainInfoResponseTest.java -src/test/java/com/fireblocks/sdk/model/ChannelDvnConfigWithConfirmationsTest.java -src/test/java/com/fireblocks/sdk/model/ClaimRewardsRequestTest.java -src/test/java/com/fireblocks/sdk/model/CollectionBurnRequestDtoTest.java -src/test/java/com/fireblocks/sdk/model/CollectionBurnResponseDtoTest.java -src/test/java/com/fireblocks/sdk/model/CollectionDeployRequestDtoTest.java -src/test/java/com/fireblocks/sdk/model/CollectionLinkDtoTest.java +src/test/java/com/fireblocks/sdk/model/ChainInfoResponseDtoTest.java src/test/java/com/fireblocks/sdk/model/CollectionMetadataDtoTest.java -src/test/java/com/fireblocks/sdk/model/CollectionMintRequestDtoTest.java -src/test/java/com/fireblocks/sdk/model/CollectionMintResponseDtoTest.java src/test/java/com/fireblocks/sdk/model/CollectionOwnershipResponseTest.java -src/test/java/com/fireblocks/sdk/model/CollectionTokenMetadataAttributeDtoTest.java -src/test/java/com/fireblocks/sdk/model/CollectionTokenMetadataDtoTest.java -src/test/java/com/fireblocks/sdk/model/CollectionTypeTest.java -src/test/java/com/fireblocks/sdk/model/CommittedQuoteTypeTest.java -src/test/java/com/fireblocks/sdk/model/ComplianceResultFullPayloadTest.java -src/test/java/com/fireblocks/sdk/model/ComplianceResultStatusesEnumTest.java -src/test/java/com/fireblocks/sdk/model/ComplianceResultsTest.java -src/test/java/com/fireblocks/sdk/model/ComplianceScreeningResultFullPayloadTest.java +src/test/java/com/fireblocks/sdk/model/ComplianceResultTest.java src/test/java/com/fireblocks/sdk/model/ComplianceScreeningResultTest.java src/test/java/com/fireblocks/sdk/model/ConfigChangeRequestStatusTest.java src/test/java/com/fireblocks/sdk/model/ConfigConversionOperationSnapshotTest.java @@ -1823,41 +1081,15 @@ src/test/java/com/fireblocks/sdk/model/ConfigOperationSnapshotTest.java src/test/java/com/fireblocks/sdk/model/ConfigOperationStatusTest.java src/test/java/com/fireblocks/sdk/model/ConfigOperationTest.java src/test/java/com/fireblocks/sdk/model/ConfigTransferOperationSnapshotTest.java -src/test/java/com/fireblocks/sdk/model/ConnectedAccountApprovalStatusTest.java -src/test/java/com/fireblocks/sdk/model/ConnectedAccountAssetTypeTest.java -src/test/java/com/fireblocks/sdk/model/ConnectedAccountBalancesResponseTest.java -src/test/java/com/fireblocks/sdk/model/ConnectedAccountBalancesTest.java -src/test/java/com/fireblocks/sdk/model/ConnectedAccountCapabilityTest.java -src/test/java/com/fireblocks/sdk/model/ConnectedAccountManifestTest.java -src/test/java/com/fireblocks/sdk/model/ConnectedAccountRateResponseTest.java -src/test/java/com/fireblocks/sdk/model/ConnectedAccountTest.java -src/test/java/com/fireblocks/sdk/model/ConnectedAccountTotalBalanceTest.java -src/test/java/com/fireblocks/sdk/model/ConnectedAccountTradingPairSupportedTypeTest.java -src/test/java/com/fireblocks/sdk/model/ConnectedAccountTradingPairTest.java -src/test/java/com/fireblocks/sdk/model/ConnectedAccountTradingPairsResponseTest.java -src/test/java/com/fireblocks/sdk/model/ConnectedAccountsResponseTest.java -src/test/java/com/fireblocks/sdk/model/ConnectedSingleAccountResponseTest.java -src/test/java/com/fireblocks/sdk/model/ConnectedSingleAccountTest.java src/test/java/com/fireblocks/sdk/model/ConsoleUserTest.java -src/test/java/com/fireblocks/sdk/model/ContractAbiResponseDtoAbiInnerTest.java src/test/java/com/fireblocks/sdk/model/ContractAbiResponseDtoTest.java src/test/java/com/fireblocks/sdk/model/ContractAttributesTest.java -src/test/java/com/fireblocks/sdk/model/ContractDataDecodeDataTypeTest.java -src/test/java/com/fireblocks/sdk/model/ContractDataDecodeErrorTest.java -src/test/java/com/fireblocks/sdk/model/ContractDataDecodeRequestDataTest.java -src/test/java/com/fireblocks/sdk/model/ContractDataDecodeRequestTest.java -src/test/java/com/fireblocks/sdk/model/ContractDataDecodeResponseParamsTest.java -src/test/java/com/fireblocks/sdk/model/ContractDataDecodedResponseTest.java -src/test/java/com/fireblocks/sdk/model/ContractDataLogDataParamTest.java src/test/java/com/fireblocks/sdk/model/ContractDeployRequestTest.java src/test/java/com/fireblocks/sdk/model/ContractDeployResponseTest.java src/test/java/com/fireblocks/sdk/model/ContractDocTest.java src/test/java/com/fireblocks/sdk/model/ContractMetadataDtoTest.java -src/test/java/com/fireblocks/sdk/model/ContractMethodConfigTest.java -src/test/java/com/fireblocks/sdk/model/ContractMethodPatternTest.java src/test/java/com/fireblocks/sdk/model/ContractTemplateDtoTest.java src/test/java/com/fireblocks/sdk/model/ContractUploadRequestTest.java -src/test/java/com/fireblocks/sdk/model/ContractWithAbiDtoTest.java src/test/java/com/fireblocks/sdk/model/ConversionConfigOperationTest.java src/test/java/com/fireblocks/sdk/model/ConversionOperationConfigParamsTest.java src/test/java/com/fireblocks/sdk/model/ConversionOperationExecutionOutputTest.java @@ -1887,20 +1119,11 @@ src/test/java/com/fireblocks/sdk/model/CreateConversionConfigOperationRequestTes src/test/java/com/fireblocks/sdk/model/CreateDisbursementConfigOperationRequestTest.java src/test/java/com/fireblocks/sdk/model/CreateInternalTransferRequestTest.java src/test/java/com/fireblocks/sdk/model/CreateInternalWalletAssetRequestTest.java -src/test/java/com/fireblocks/sdk/model/CreateMultichainTokenRequestTest.java src/test/java/com/fireblocks/sdk/model/CreateMultipleAccountsRequestTest.java -src/test/java/com/fireblocks/sdk/model/CreateMultipleDepositAddressesJobStatusTest.java -src/test/java/com/fireblocks/sdk/model/CreateMultipleDepositAddressesRequestTest.java -src/test/java/com/fireblocks/sdk/model/CreateMultipleVaultAccountsJobStatusTest.java src/test/java/com/fireblocks/sdk/model/CreateNcwConnectionRequestTest.java src/test/java/com/fireblocks/sdk/model/CreateNetworkIdRequestTest.java -src/test/java/com/fireblocks/sdk/model/CreateOrderRequestTest.java src/test/java/com/fireblocks/sdk/model/CreatePayoutRequestTest.java -src/test/java/com/fireblocks/sdk/model/CreateQuoteScopeInnerTest.java -src/test/java/com/fireblocks/sdk/model/CreateQuoteTest.java -src/test/java/com/fireblocks/sdk/model/CreateSigningKeyDtoProofOfOwnershipTest.java src/test/java/com/fireblocks/sdk/model/CreateSigningKeyDtoTest.java -src/test/java/com/fireblocks/sdk/model/CreateTagRequestTest.java src/test/java/com/fireblocks/sdk/model/CreateTokenRequestDtoCreateParamsTest.java src/test/java/com/fireblocks/sdk/model/CreateTokenRequestDtoTest.java src/test/java/com/fireblocks/sdk/model/CreateTransactionResponseTest.java @@ -1912,29 +1135,19 @@ src/test/java/com/fireblocks/sdk/model/CreateVaultAccountConnectionRequestTest.j src/test/java/com/fireblocks/sdk/model/CreateVaultAccountRequestTest.java src/test/java/com/fireblocks/sdk/model/CreateVaultAssetResponseTest.java src/test/java/com/fireblocks/sdk/model/CreateWalletRequestTest.java -src/test/java/com/fireblocks/sdk/model/CreateWebhookRequestTest.java src/test/java/com/fireblocks/sdk/model/CreateWorkflowExecutionRequestParamsInnerTest.java src/test/java/com/fireblocks/sdk/model/CustomRoutingDestTest.java -src/test/java/com/fireblocks/sdk/model/DVPSettlementTest.java src/test/java/com/fireblocks/sdk/model/DefaultNetworkRoutingDestTest.java -src/test/java/com/fireblocks/sdk/model/DelegationSummaryTest.java -src/test/java/com/fireblocks/sdk/model/DelegationTest.java +src/test/java/com/fireblocks/sdk/model/DelegationDtoTest.java +src/test/java/com/fireblocks/sdk/model/DelegationSummaryDtoTest.java src/test/java/com/fireblocks/sdk/model/DeleteNetworkConnectionResponseTest.java src/test/java/com/fireblocks/sdk/model/DeleteNetworkIdResponseTest.java -src/test/java/com/fireblocks/sdk/model/DeployLayerZeroAdaptersRequestTest.java -src/test/java/com/fireblocks/sdk/model/DeployableAddressResponseTest.java -src/test/java/com/fireblocks/sdk/model/DeployedContractNotFoundErrorTest.java src/test/java/com/fireblocks/sdk/model/DeployedContractResponseDtoTest.java src/test/java/com/fireblocks/sdk/model/DeployedContractsPaginatedResponseTest.java src/test/java/com/fireblocks/sdk/model/DepositFundsFromLinkedDDAResponseTest.java -src/test/java/com/fireblocks/sdk/model/DerivationPathConfigTest.java -src/test/java/com/fireblocks/sdk/model/DesignatedSignersConfigTest.java -src/test/java/com/fireblocks/sdk/model/DestinationConfigTest.java src/test/java/com/fireblocks/sdk/model/DestinationTest.java src/test/java/com/fireblocks/sdk/model/DestinationTransferPeerPathResponseTest.java src/test/java/com/fireblocks/sdk/model/DestinationTransferPeerPathTest.java -src/test/java/com/fireblocks/sdk/model/DirectAccessProviderTest.java -src/test/java/com/fireblocks/sdk/model/DirectAccessTest.java src/test/java/com/fireblocks/sdk/model/DisbursementAmountInstructionTest.java src/test/java/com/fireblocks/sdk/model/DisbursementConfigOperationTest.java src/test/java/com/fireblocks/sdk/model/DisbursementInstructionOutputTest.java @@ -1956,31 +1169,11 @@ src/test/java/com/fireblocks/sdk/model/DraftResponseTest.java src/test/java/com/fireblocks/sdk/model/DraftReviewAndValidationResponseTest.java src/test/java/com/fireblocks/sdk/model/DropTransactionRequestTest.java src/test/java/com/fireblocks/sdk/model/DropTransactionResponseTest.java -src/test/java/com/fireblocks/sdk/model/DvnConfigTest.java -src/test/java/com/fireblocks/sdk/model/DvnConfigWithConfirmationsTest.java src/test/java/com/fireblocks/sdk/model/EVMTokenCreateParamsDtoTest.java src/test/java/com/fireblocks/sdk/model/EditGasStationConfigurationResponseTest.java -src/test/java/com/fireblocks/sdk/model/EmbeddedWalletAccountTest.java -src/test/java/com/fireblocks/sdk/model/EmbeddedWalletAddressDetailsTest.java -src/test/java/com/fireblocks/sdk/model/EmbeddedWalletAlgoritmTest.java -src/test/java/com/fireblocks/sdk/model/EmbeddedWalletAssetBalanceTest.java -src/test/java/com/fireblocks/sdk/model/EmbeddedWalletAssetResponseTest.java -src/test/java/com/fireblocks/sdk/model/EmbeddedWalletAssetRewardInfoTest.java -src/test/java/com/fireblocks/sdk/model/EmbeddedWalletDeviceKeySetupResponseSetupStatusInnerTest.java -src/test/java/com/fireblocks/sdk/model/EmbeddedWalletDeviceKeySetupResponseTest.java -src/test/java/com/fireblocks/sdk/model/EmbeddedWalletDeviceTest.java -src/test/java/com/fireblocks/sdk/model/EmbeddedWalletLatestBackupKeyTest.java -src/test/java/com/fireblocks/sdk/model/EmbeddedWalletLatestBackupResponseTest.java -src/test/java/com/fireblocks/sdk/model/EmbeddedWalletPaginatedAddressesResponseTest.java -src/test/java/com/fireblocks/sdk/model/EmbeddedWalletPaginatedAssetsResponseTest.java -src/test/java/com/fireblocks/sdk/model/EmbeddedWalletPaginatedWalletsResponseTest.java -src/test/java/com/fireblocks/sdk/model/EmbeddedWalletSetUpStatusTest.java -src/test/java/com/fireblocks/sdk/model/EmbeddedWalletTest.java -src/test/java/com/fireblocks/sdk/model/ErrorCodesTest.java src/test/java/com/fireblocks/sdk/model/ErrorResponseErrorTest.java src/test/java/com/fireblocks/sdk/model/ErrorResponseTest.java src/test/java/com/fireblocks/sdk/model/ErrorSchemaTest.java -src/test/java/com/fireblocks/sdk/model/EstimatedFeeDetailsTest.java src/test/java/com/fireblocks/sdk/model/EstimatedNetworkFeeResponseTest.java src/test/java/com/fireblocks/sdk/model/EstimatedTransactionFeeResponseTest.java src/test/java/com/fireblocks/sdk/model/ExchangeAccountTest.java @@ -1990,56 +1183,32 @@ src/test/java/com/fireblocks/sdk/model/ExchangeAssetTest.java src/test/java/com/fireblocks/sdk/model/ExchangeSettlementTransactionsResponseTest.java src/test/java/com/fireblocks/sdk/model/ExchangeTradingAccountTest.java src/test/java/com/fireblocks/sdk/model/ExchangeTypeTest.java +src/test/java/com/fireblocks/sdk/model/ExecuteActionRequestTest.java +src/test/java/com/fireblocks/sdk/model/ExecuteActionResponseTest.java src/test/java/com/fireblocks/sdk/model/ExecutionConversionOperationTest.java src/test/java/com/fireblocks/sdk/model/ExecutionDisbursementOperationTest.java src/test/java/com/fireblocks/sdk/model/ExecutionOperationStatusTest.java -src/test/java/com/fireblocks/sdk/model/ExecutionRequestBaseDetailsTest.java -src/test/java/com/fireblocks/sdk/model/ExecutionRequestDetailsTest.java -src/test/java/com/fireblocks/sdk/model/ExecutionResponseBaseDetailsTest.java -src/test/java/com/fireblocks/sdk/model/ExecutionResponseDetailsTest.java src/test/java/com/fireblocks/sdk/model/ExecutionScreeningOperationTest.java -src/test/java/com/fireblocks/sdk/model/ExecutionStepDetailsTest.java -src/test/java/com/fireblocks/sdk/model/ExecutionStepErrorTest.java -src/test/java/com/fireblocks/sdk/model/ExecutionStepStatusEnumTest.java -src/test/java/com/fireblocks/sdk/model/ExecutionStepTest.java -src/test/java/com/fireblocks/sdk/model/ExecutionStepTypeTest.java src/test/java/com/fireblocks/sdk/model/ExecutionTransferOperationTest.java -src/test/java/com/fireblocks/sdk/model/ExternalAccountTest.java src/test/java/com/fireblocks/sdk/model/ExternalWalletAssetTest.java -src/test/java/com/fireblocks/sdk/model/FeeBreakdownOneOf1Test.java -src/test/java/com/fireblocks/sdk/model/FeeBreakdownOneOfTest.java -src/test/java/com/fireblocks/sdk/model/FeeBreakdownTest.java src/test/java/com/fireblocks/sdk/model/FeeInfoTest.java -src/test/java/com/fireblocks/sdk/model/FeeLevelTest.java -src/test/java/com/fireblocks/sdk/model/FeeTest.java -src/test/java/com/fireblocks/sdk/model/FetchAbiRequestDtoTest.java src/test/java/com/fireblocks/sdk/model/FiatAccountTest.java src/test/java/com/fireblocks/sdk/model/FiatAccountTypeTest.java src/test/java/com/fireblocks/sdk/model/FiatAssetTest.java -src/test/java/com/fireblocks/sdk/model/FiatTransferTest.java -src/test/java/com/fireblocks/sdk/model/FixedFeeTest.java src/test/java/com/fireblocks/sdk/model/FreezeTransactionResponseTest.java src/test/java/com/fireblocks/sdk/model/FunctionDocTest.java src/test/java/com/fireblocks/sdk/model/FundsTest.java src/test/java/com/fireblocks/sdk/model/GasStationConfigurationResponseTest.java src/test/java/com/fireblocks/sdk/model/GasStationConfigurationTest.java src/test/java/com/fireblocks/sdk/model/GasStationPropertiesResponseTest.java -src/test/java/com/fireblocks/sdk/model/GasslessStandardConfigurationsGaslessStandardConfigurationsValueTest.java -src/test/java/com/fireblocks/sdk/model/GasslessStandardConfigurationsTest.java src/test/java/com/fireblocks/sdk/model/GetAPIUsersResponseTest.java +src/test/java/com/fireblocks/sdk/model/GetAuditLogsResponseDTOTest.java src/test/java/com/fireblocks/sdk/model/GetAuditLogsResponseTest.java src/test/java/com/fireblocks/sdk/model/GetConnectionsResponseTest.java src/test/java/com/fireblocks/sdk/model/GetConsoleUsersResponseTest.java -src/test/java/com/fireblocks/sdk/model/GetDeployableAddressRequestTest.java -src/test/java/com/fireblocks/sdk/model/GetExchangeAccountsCredentialsPublicKeyResponseTest.java src/test/java/com/fireblocks/sdk/model/GetFilterParameterTest.java -src/test/java/com/fireblocks/sdk/model/GetLayerZeroDvnConfigResponseTest.java -src/test/java/com/fireblocks/sdk/model/GetLayerZeroPeersResponseTest.java -src/test/java/com/fireblocks/sdk/model/GetLinkedCollectionsPaginatedResponseTest.java src/test/java/com/fireblocks/sdk/model/GetMaxSpendableAmountResponseTest.java -src/test/java/com/fireblocks/sdk/model/GetMpcKeysResponseTest.java src/test/java/com/fireblocks/sdk/model/GetNFTsResponseTest.java -src/test/java/com/fireblocks/sdk/model/GetOrdersResponseTest.java src/test/java/com/fireblocks/sdk/model/GetOtaStatusResponseTest.java src/test/java/com/fireblocks/sdk/model/GetOwnershipTokensResponseTest.java src/test/java/com/fireblocks/sdk/model/GetSigningKeyResponseDtoTest.java @@ -2048,70 +1217,19 @@ src/test/java/com/fireblocks/sdk/model/GetValidationKeyResponseDtoTest.java src/test/java/com/fireblocks/sdk/model/GetWhitelistIpAddressesResponseTest.java src/test/java/com/fireblocks/sdk/model/GetWorkspaceStatusResponseTest.java src/test/java/com/fireblocks/sdk/model/HttpContractDoesNotExistErrorTest.java -src/test/java/com/fireblocks/sdk/model/IbanPaymentInfoTest.java -src/test/java/com/fireblocks/sdk/model/IdentificationTest.java -src/test/java/com/fireblocks/sdk/model/IdlTypeTest.java -src/test/java/com/fireblocks/sdk/model/IndicativeQuoteTypeTest.java -src/test/java/com/fireblocks/sdk/model/InitiatorConfigPatternTest.java -src/test/java/com/fireblocks/sdk/model/InitiatorConfigTest.java src/test/java/com/fireblocks/sdk/model/InstructionAmountTest.java -src/test/java/com/fireblocks/sdk/model/InternalReferenceTest.java src/test/java/com/fireblocks/sdk/model/InternalTransferResponseTest.java -src/test/java/com/fireblocks/sdk/model/InvalidParamaterValueErrorTest.java src/test/java/com/fireblocks/sdk/model/JobCreatedTest.java src/test/java/com/fireblocks/sdk/model/JobTest.java -src/test/java/com/fireblocks/sdk/model/LayerZeroAdapterCreateParamsTest.java -src/test/java/com/fireblocks/sdk/model/LbtPaymentInfoTest.java src/test/java/com/fireblocks/sdk/model/LeanAbiFunctionTest.java src/test/java/com/fireblocks/sdk/model/LeanContractDtoTest.java src/test/java/com/fireblocks/sdk/model/LeanDeployedContractResponseDtoTest.java -src/test/java/com/fireblocks/sdk/model/LegacyAmountAggregationTimePeriodMethodTest.java -src/test/java/com/fireblocks/sdk/model/LegacyDraftResponseTest.java -src/test/java/com/fireblocks/sdk/model/LegacyDraftReviewAndValidationResponseTest.java -src/test/java/com/fireblocks/sdk/model/LegacyPolicyAndValidationResponseTest.java -src/test/java/com/fireblocks/sdk/model/LegacyPolicyCheckResultTest.java -src/test/java/com/fireblocks/sdk/model/LegacyPolicyMetadataTest.java -src/test/java/com/fireblocks/sdk/model/LegacyPolicyResponseTest.java -src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleAmountAggregationTest.java -src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleAmountTest.java -src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleAuthorizationGroupsGroupsInnerTest.java -src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleAuthorizationGroupsTest.java -src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleCheckResultTest.java -src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleDesignatedSignersTest.java -src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleDstTest.java -src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleErrorTest.java -src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleOperatorsTest.java -src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleRawMessageSigningDerivationPathTest.java -src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleRawMessageSigningTest.java -src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleSrcTest.java -src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleTest.java -src/test/java/com/fireblocks/sdk/model/LegacyPolicyRulesTest.java -src/test/java/com/fireblocks/sdk/model/LegacyPolicySrcOrDestSubTypeTest.java -src/test/java/com/fireblocks/sdk/model/LegacyPolicySrcOrDestTypeTest.java -src/test/java/com/fireblocks/sdk/model/LegacyPolicyStatusTest.java -src/test/java/com/fireblocks/sdk/model/LegacyPolicyValidationTest.java -src/test/java/com/fireblocks/sdk/model/LegacyPublishDraftRequestTest.java -src/test/java/com/fireblocks/sdk/model/LegacyPublishResultTest.java -src/test/java/com/fireblocks/sdk/model/LegacySrcOrDestAttributesInnerTest.java -src/test/java/com/fireblocks/sdk/model/LimitExecutionRequestDetailsTest.java -src/test/java/com/fireblocks/sdk/model/LimitExecutionResponseDetailsTest.java -src/test/java/com/fireblocks/sdk/model/ListAssetsResponseTest.java -src/test/java/com/fireblocks/sdk/model/ListBlockchainsResponseTest.java src/test/java/com/fireblocks/sdk/model/ListOwnedCollectionsResponseTest.java src/test/java/com/fireblocks/sdk/model/ListOwnedTokensResponseTest.java -src/test/java/com/fireblocks/sdk/model/ManifestTest.java -src/test/java/com/fireblocks/sdk/model/MarketExecutionRequestDetailsTest.java -src/test/java/com/fireblocks/sdk/model/MarketExecutionResponseDetailsTest.java -src/test/java/com/fireblocks/sdk/model/MarketRequoteRequestDetailsTest.java src/test/java/com/fireblocks/sdk/model/MediaEntityResponseTest.java -src/test/java/com/fireblocks/sdk/model/MergeStakeAccountsRequestTest.java -src/test/java/com/fireblocks/sdk/model/MergeStakeAccountsResponseTest.java src/test/java/com/fireblocks/sdk/model/ModifySigningKeyAgentIdDtoTest.java src/test/java/com/fireblocks/sdk/model/ModifySigningKeyDtoTest.java src/test/java/com/fireblocks/sdk/model/ModifyValidationKeyDtoTest.java -src/test/java/com/fireblocks/sdk/model/MomoPaymentInfoTest.java -src/test/java/com/fireblocks/sdk/model/MpcKeyTest.java -src/test/java/com/fireblocks/sdk/model/MultichainDeploymentMetadataTest.java src/test/java/com/fireblocks/sdk/model/NetworkChannelTest.java src/test/java/com/fireblocks/sdk/model/NetworkConnectionResponseTest.java src/test/java/com/fireblocks/sdk/model/NetworkConnectionRoutingPolicyValueTest.java @@ -2122,41 +1240,24 @@ src/test/java/com/fireblocks/sdk/model/NetworkIdResponseTest.java src/test/java/com/fireblocks/sdk/model/NetworkIdRoutingPolicyValueTest.java src/test/java/com/fireblocks/sdk/model/NetworkIdTest.java src/test/java/com/fireblocks/sdk/model/NetworkRecordTest.java -src/test/java/com/fireblocks/sdk/model/NewAddressTest.java src/test/java/com/fireblocks/sdk/model/NoneNetworkRoutingDestTest.java src/test/java/com/fireblocks/sdk/model/NotFoundExceptionTest.java -src/test/java/com/fireblocks/sdk/model/NotificationAttemptTest.java -src/test/java/com/fireblocks/sdk/model/NotificationAttemptsPaginatedResponseTest.java -src/test/java/com/fireblocks/sdk/model/NotificationPaginatedResponseTest.java -src/test/java/com/fireblocks/sdk/model/NotificationStatusTest.java -src/test/java/com/fireblocks/sdk/model/NotificationTest.java -src/test/java/com/fireblocks/sdk/model/NotificationWithDataTest.java src/test/java/com/fireblocks/sdk/model/OneTimeAddressAccountTest.java -src/test/java/com/fireblocks/sdk/model/OneTimeAddressReferenceTest.java src/test/java/com/fireblocks/sdk/model/OneTimeAddressTest.java src/test/java/com/fireblocks/sdk/model/OperationExecutionFailureTest.java -src/test/java/com/fireblocks/sdk/model/OrderDetailsTest.java -src/test/java/com/fireblocks/sdk/model/OrderStatusTest.java -src/test/java/com/fireblocks/sdk/model/OrderSummaryTest.java src/test/java/com/fireblocks/sdk/model/PaginatedAddressResponsePagingTest.java src/test/java/com/fireblocks/sdk/model/PaginatedAddressResponseTest.java src/test/java/com/fireblocks/sdk/model/PaginatedAssetWalletResponsePagingTest.java src/test/java/com/fireblocks/sdk/model/PaginatedAssetWalletResponseTest.java -src/test/java/com/fireblocks/sdk/model/PaginatedAssetsResponseTest.java src/test/java/com/fireblocks/sdk/model/PagingTest.java -src/test/java/com/fireblocks/sdk/model/PairApiKeyRequestTest.java -src/test/java/com/fireblocks/sdk/model/PairApiKeyResponseTest.java src/test/java/com/fireblocks/sdk/model/ParameterTest.java src/test/java/com/fireblocks/sdk/model/ParameterWithValueTest.java -src/test/java/com/fireblocks/sdk/model/ParticipantRelationshipTypeTest.java -src/test/java/com/fireblocks/sdk/model/ParticipantsIdentificationTest.java src/test/java/com/fireblocks/sdk/model/PayeeAccountResponseTest.java src/test/java/com/fireblocks/sdk/model/PayeeAccountTest.java src/test/java/com/fireblocks/sdk/model/PayeeAccountTypeTest.java src/test/java/com/fireblocks/sdk/model/PaymentAccountResponseTest.java src/test/java/com/fireblocks/sdk/model/PaymentAccountTest.java src/test/java/com/fireblocks/sdk/model/PaymentAccountTypeTest.java -src/test/java/com/fireblocks/sdk/model/PaymentInstructionsTest.java src/test/java/com/fireblocks/sdk/model/PayoutInitMethodTest.java src/test/java/com/fireblocks/sdk/model/PayoutInstructionResponseTest.java src/test/java/com/fireblocks/sdk/model/PayoutInstructionStateTest.java @@ -2164,101 +1265,67 @@ src/test/java/com/fireblocks/sdk/model/PayoutInstructionTest.java src/test/java/com/fireblocks/sdk/model/PayoutResponseTest.java src/test/java/com/fireblocks/sdk/model/PayoutStateTest.java src/test/java/com/fireblocks/sdk/model/PayoutStatusTest.java -src/test/java/com/fireblocks/sdk/model/PeerAdapterInfoTest.java -src/test/java/com/fireblocks/sdk/model/PeerTypeTest.java -src/test/java/com/fireblocks/sdk/model/PersonalIdentificationFullNameTest.java -src/test/java/com/fireblocks/sdk/model/PersonalIdentificationTest.java -src/test/java/com/fireblocks/sdk/model/PixPaymentInfoTest.java -src/test/java/com/fireblocks/sdk/model/PlatformAccountTest.java -src/test/java/com/fireblocks/sdk/model/PlayersTest.java src/test/java/com/fireblocks/sdk/model/PolicyAndValidationResponseTest.java src/test/java/com/fireblocks/sdk/model/PolicyCheckResultTest.java src/test/java/com/fireblocks/sdk/model/PolicyMetadataTest.java -src/test/java/com/fireblocks/sdk/model/PolicyOperatorTest.java src/test/java/com/fireblocks/sdk/model/PolicyResponseTest.java +src/test/java/com/fireblocks/sdk/model/PolicyRuleAmountAggregationTest.java +src/test/java/com/fireblocks/sdk/model/PolicyRuleAmountTest.java +src/test/java/com/fireblocks/sdk/model/PolicyRuleAuthorizationGroupsGroupsInnerTest.java +src/test/java/com/fireblocks/sdk/model/PolicyRuleAuthorizationGroupsTest.java src/test/java/com/fireblocks/sdk/model/PolicyRuleCheckResultTest.java +src/test/java/com/fireblocks/sdk/model/PolicyRuleDesignatedSignersTest.java +src/test/java/com/fireblocks/sdk/model/PolicyRuleDstTest.java src/test/java/com/fireblocks/sdk/model/PolicyRuleErrorTest.java +src/test/java/com/fireblocks/sdk/model/PolicyRuleOperatorsTest.java +src/test/java/com/fireblocks/sdk/model/PolicyRuleRawMessageSigningDerivationPathTest.java +src/test/java/com/fireblocks/sdk/model/PolicyRuleRawMessageSigningTest.java +src/test/java/com/fireblocks/sdk/model/PolicyRuleSrcTest.java src/test/java/com/fireblocks/sdk/model/PolicyRuleTest.java +src/test/java/com/fireblocks/sdk/model/PolicyRulesTest.java +src/test/java/com/fireblocks/sdk/model/PolicySrcOrDestSubTypeTest.java +src/test/java/com/fireblocks/sdk/model/PolicySrcOrDestTypeTest.java src/test/java/com/fireblocks/sdk/model/PolicyStatusTest.java -src/test/java/com/fireblocks/sdk/model/PolicyTypeTest.java src/test/java/com/fireblocks/sdk/model/PolicyValidationTest.java -src/test/java/com/fireblocks/sdk/model/PostOrderSettlementTest.java -src/test/java/com/fireblocks/sdk/model/PostalAddressTest.java src/test/java/com/fireblocks/sdk/model/PreScreeningTest.java -src/test/java/com/fireblocks/sdk/model/PrefundedSettlementTest.java -src/test/java/com/fireblocks/sdk/model/ProgramCallConfigTest.java -src/test/java/com/fireblocks/sdk/model/ProviderIDTest.java -src/test/java/com/fireblocks/sdk/model/ProviderTest.java -src/test/java/com/fireblocks/sdk/model/ProvidersListResponseTest.java +src/test/java/com/fireblocks/sdk/model/ProviderDtoTest.java src/test/java/com/fireblocks/sdk/model/PublicKeyInformationTest.java src/test/java/com/fireblocks/sdk/model/PublishDraftRequestTest.java src/test/java/com/fireblocks/sdk/model/PublishResultTest.java -src/test/java/com/fireblocks/sdk/model/QuoteExecutionRequestDetailsTest.java -src/test/java/com/fireblocks/sdk/model/QuoteExecutionResponseDetailsTest.java -src/test/java/com/fireblocks/sdk/model/QuoteExecutionWithRequoteRequestDetailsAllOfReQuoteTest.java -src/test/java/com/fireblocks/sdk/model/QuoteExecutionWithRequoteRequestDetailsTest.java -src/test/java/com/fireblocks/sdk/model/QuoteExecutionWithRequoteResponseDetailsAllOfReQuoteTest.java -src/test/java/com/fireblocks/sdk/model/QuoteExecutionWithRequoteResponseDetailsTest.java -src/test/java/com/fireblocks/sdk/model/QuoteTest.java -src/test/java/com/fireblocks/sdk/model/QuotesResponseTest.java src/test/java/com/fireblocks/sdk/model/ReadAbiFunctionTest.java -src/test/java/com/fireblocks/sdk/model/ReadCallFunctionDtoAbiFunctionTest.java src/test/java/com/fireblocks/sdk/model/ReadCallFunctionDtoTest.java src/test/java/com/fireblocks/sdk/model/RedeemFundsToLinkedDDAResponseTest.java src/test/java/com/fireblocks/sdk/model/RegisterNewAssetRequestTest.java -src/test/java/com/fireblocks/sdk/model/ReissueMultichainTokenRequestTest.java -src/test/java/com/fireblocks/sdk/model/RelatedRequestTest.java -src/test/java/com/fireblocks/sdk/model/RelatedTransactionTest.java +src/test/java/com/fireblocks/sdk/model/RelatedTransactionDtoTest.java src/test/java/com/fireblocks/sdk/model/RemoveCollateralRequestBodyTest.java -src/test/java/com/fireblocks/sdk/model/RemoveLayerZeroAdapterFailedResultTest.java -src/test/java/com/fireblocks/sdk/model/RemoveLayerZeroAdaptersRequestTest.java -src/test/java/com/fireblocks/sdk/model/RemoveLayerZeroAdaptersResponseTest.java -src/test/java/com/fireblocks/sdk/model/RemoveLayerZeroPeersRequestTest.java -src/test/java/com/fireblocks/sdk/model/RemoveLayerZeroPeersResponseTest.java src/test/java/com/fireblocks/sdk/model/RenameCosignerTest.java src/test/java/com/fireblocks/sdk/model/RenameVaultAccountResponseTest.java -src/test/java/com/fireblocks/sdk/model/RescanTransactionTest.java -src/test/java/com/fireblocks/sdk/model/ResendFailedNotificationsJobStatusResponseTest.java -src/test/java/com/fireblocks/sdk/model/ResendFailedNotificationsRequestTest.java -src/test/java/com/fireblocks/sdk/model/ResendFailedNotificationsResponseTest.java -src/test/java/com/fireblocks/sdk/model/ResendNotificationsByResourceIdRequestTest.java src/test/java/com/fireblocks/sdk/model/ResendTransactionWebhooksRequestTest.java src/test/java/com/fireblocks/sdk/model/ResendWebhooksByTransactionIdResponseTest.java src/test/java/com/fireblocks/sdk/model/ResendWebhooksResponseTest.java src/test/java/com/fireblocks/sdk/model/RespondToConnectionRequestTest.java -src/test/java/com/fireblocks/sdk/model/RetryRequoteRequestDetailsTest.java src/test/java/com/fireblocks/sdk/model/RewardInfoTest.java src/test/java/com/fireblocks/sdk/model/RewardsInfoTest.java -src/test/java/com/fireblocks/sdk/model/SOLAccountTest.java -src/test/java/com/fireblocks/sdk/model/SOLAccountWithValueTest.java src/test/java/com/fireblocks/sdk/model/ScreeningConfigurationsRequestTest.java -src/test/java/com/fireblocks/sdk/model/ScreeningMetadataConfigTest.java src/test/java/com/fireblocks/sdk/model/ScreeningOperationExecutionOutputTest.java src/test/java/com/fireblocks/sdk/model/ScreeningOperationExecutionTest.java src/test/java/com/fireblocks/sdk/model/ScreeningOperationFailureTest.java src/test/java/com/fireblocks/sdk/model/ScreeningOperationTypeTest.java src/test/java/com/fireblocks/sdk/model/ScreeningPolicyResponseTest.java src/test/java/com/fireblocks/sdk/model/ScreeningProviderRulesConfigurationResponseTest.java -src/test/java/com/fireblocks/sdk/model/ScreeningUpdateConfigurationsTest.java +src/test/java/com/fireblocks/sdk/model/ScreeningUpdateConfigurationsRequestTest.java src/test/java/com/fireblocks/sdk/model/ScreeningValidationFailureTest.java src/test/java/com/fireblocks/sdk/model/ScreeningVerdictMatchedRuleTest.java src/test/java/com/fireblocks/sdk/model/ScreeningVerdictTest.java -src/test/java/com/fireblocks/sdk/model/SearchNetworkIdsResponseTest.java -src/test/java/com/fireblocks/sdk/model/SepaPaymentInfoTest.java src/test/java/com/fireblocks/sdk/model/SessionDTOTest.java src/test/java/com/fireblocks/sdk/model/SessionMetadataTest.java src/test/java/com/fireblocks/sdk/model/SetAdminQuorumThresholdRequestTest.java src/test/java/com/fireblocks/sdk/model/SetAdminQuorumThresholdResponseTest.java -src/test/java/com/fireblocks/sdk/model/SetAssetPriceRequestTest.java src/test/java/com/fireblocks/sdk/model/SetAutoFuelRequestTest.java src/test/java/com/fireblocks/sdk/model/SetConfirmationsThresholdRequestTest.java src/test/java/com/fireblocks/sdk/model/SetConfirmationsThresholdResponseTest.java src/test/java/com/fireblocks/sdk/model/SetCustomerRefIdForAddressRequestTest.java src/test/java/com/fireblocks/sdk/model/SetCustomerRefIdRequestTest.java -src/test/java/com/fireblocks/sdk/model/SetLayerZeroDvnConfigRequestTest.java -src/test/java/com/fireblocks/sdk/model/SetLayerZeroDvnConfigResponseTest.java -src/test/java/com/fireblocks/sdk/model/SetLayerZeroPeersRequestTest.java -src/test/java/com/fireblocks/sdk/model/SetLayerZeroPeersResponseTest.java src/test/java/com/fireblocks/sdk/model/SetNetworkIdDiscoverabilityRequestTest.java src/test/java/com/fireblocks/sdk/model/SetNetworkIdNameRequestTest.java src/test/java/com/fireblocks/sdk/model/SetNetworkIdResponseTest.java @@ -2270,27 +1337,19 @@ src/test/java/com/fireblocks/sdk/model/SetRoutingPolicyRequestTest.java src/test/java/com/fireblocks/sdk/model/SetRoutingPolicyResponseTest.java src/test/java/com/fireblocks/sdk/model/SettlementRequestBodyTest.java src/test/java/com/fireblocks/sdk/model/SettlementResponseTest.java -src/test/java/com/fireblocks/sdk/model/SettlementSourceAccountTest.java -src/test/java/com/fireblocks/sdk/model/SettlementTest.java src/test/java/com/fireblocks/sdk/model/SignedMessageSignatureTest.java src/test/java/com/fireblocks/sdk/model/SignedMessageTest.java src/test/java/com/fireblocks/sdk/model/SigningKeyDtoTest.java -src/test/java/com/fireblocks/sdk/model/SmartTransferApproveTermTest.java src/test/java/com/fireblocks/sdk/model/SmartTransferBadRequestResponseTest.java -src/test/java/com/fireblocks/sdk/model/SmartTransferCoinStatisticTest.java src/test/java/com/fireblocks/sdk/model/SmartTransferCreateTicketTermTest.java src/test/java/com/fireblocks/sdk/model/SmartTransferCreateTicketTest.java src/test/java/com/fireblocks/sdk/model/SmartTransferForbiddenResponseTest.java -src/test/java/com/fireblocks/sdk/model/SmartTransferFundDvpTicketTest.java src/test/java/com/fireblocks/sdk/model/SmartTransferFundTermTest.java src/test/java/com/fireblocks/sdk/model/SmartTransferManuallyFundTermTest.java src/test/java/com/fireblocks/sdk/model/SmartTransferNotFoundResponseTest.java src/test/java/com/fireblocks/sdk/model/SmartTransferSetTicketExpirationTest.java src/test/java/com/fireblocks/sdk/model/SmartTransferSetTicketExternalIdTest.java src/test/java/com/fireblocks/sdk/model/SmartTransferSetUserGroupsTest.java -src/test/java/com/fireblocks/sdk/model/SmartTransferStatisticInflowTest.java -src/test/java/com/fireblocks/sdk/model/SmartTransferStatisticOutflowTest.java -src/test/java/com/fireblocks/sdk/model/SmartTransferStatisticTest.java src/test/java/com/fireblocks/sdk/model/SmartTransferSubmitTicketTest.java src/test/java/com/fireblocks/sdk/model/SmartTransferTicketFilteredResponseTest.java src/test/java/com/fireblocks/sdk/model/SmartTransferTicketResponseTest.java @@ -2300,43 +1359,25 @@ src/test/java/com/fireblocks/sdk/model/SmartTransferTicketTest.java src/test/java/com/fireblocks/sdk/model/SmartTransferUpdateTicketTermTest.java src/test/java/com/fireblocks/sdk/model/SmartTransferUserGroupsResponseTest.java src/test/java/com/fireblocks/sdk/model/SmartTransferUserGroupsTest.java -src/test/java/com/fireblocks/sdk/model/SolParameterTest.java -src/test/java/com/fireblocks/sdk/model/SolParameterWithValueTest.java -src/test/java/com/fireblocks/sdk/model/SolanaBlockchainDataTest.java -src/test/java/com/fireblocks/sdk/model/SolanaConfigTest.java -src/test/java/com/fireblocks/sdk/model/SolanaInstructionTest.java -src/test/java/com/fireblocks/sdk/model/SolanaInstructionWithValueTest.java -src/test/java/com/fireblocks/sdk/model/SolanaSimpleCreateParamsTest.java +src/test/java/com/fireblocks/sdk/model/SolanaBlockchainDataDtoTest.java src/test/java/com/fireblocks/sdk/model/SourceTransferPeerPathResponseTest.java src/test/java/com/fireblocks/sdk/model/SourceTransferPeerPathTest.java src/test/java/com/fireblocks/sdk/model/SpamOwnershipResponseTest.java src/test/java/com/fireblocks/sdk/model/SpamTokenResponseTest.java -src/test/java/com/fireblocks/sdk/model/SpeiAdvancedPaymentInfoTest.java -src/test/java/com/fireblocks/sdk/model/SpeiBasicPaymentInfoTest.java -src/test/java/com/fireblocks/sdk/model/SplitRequestTest.java -src/test/java/com/fireblocks/sdk/model/SplitResponseTest.java -src/test/java/com/fireblocks/sdk/model/StakeRequestTest.java -src/test/java/com/fireblocks/sdk/model/StakeResponseTest.java -src/test/java/com/fireblocks/sdk/model/StakingProviderTest.java -src/test/java/com/fireblocks/sdk/model/StatusTest.java +src/test/java/com/fireblocks/sdk/model/SrcOrDestAttributesInnerTest.java +src/test/java/com/fireblocks/sdk/model/StakeRequestDtoTest.java +src/test/java/com/fireblocks/sdk/model/StakeResponseDtoTest.java src/test/java/com/fireblocks/sdk/model/StellarRippleCreateParamsDtoTest.java src/test/java/com/fireblocks/sdk/model/SystemMessageInfoTest.java -src/test/java/com/fireblocks/sdk/model/TagTest.java -src/test/java/com/fireblocks/sdk/model/TagsPagedResponseTest.java src/test/java/com/fireblocks/sdk/model/TaskTest.java src/test/java/com/fireblocks/sdk/model/TemplatesPaginatedResponseTest.java src/test/java/com/fireblocks/sdk/model/ThirdPartyRoutingTest.java -src/test/java/com/fireblocks/sdk/model/TimeInForceTest.java -src/test/java/com/fireblocks/sdk/model/TimePeriodConfigTest.java -src/test/java/com/fireblocks/sdk/model/TimePeriodMatchTypeTest.java src/test/java/com/fireblocks/sdk/model/ToCollateralTransactionTest.java src/test/java/com/fireblocks/sdk/model/ToExchangeTransactionTest.java src/test/java/com/fireblocks/sdk/model/TokenCollectionResponseTest.java -src/test/java/com/fireblocks/sdk/model/TokenInfoNotFoundErrorResponseTest.java src/test/java/com/fireblocks/sdk/model/TokenLinkDtoTest.java src/test/java/com/fireblocks/sdk/model/TokenLinkDtoTokenMetadataTest.java src/test/java/com/fireblocks/sdk/model/TokenLinkExistsHttpErrorTest.java -src/test/java/com/fireblocks/sdk/model/TokenLinkNotMultichainCompatibleHttpErrorTest.java src/test/java/com/fireblocks/sdk/model/TokenLinkRequestDtoTest.java src/test/java/com/fireblocks/sdk/model/TokenOwnershipResponseTest.java src/test/java/com/fireblocks/sdk/model/TokenOwnershipSpamUpdatePayloadTest.java @@ -2344,12 +1385,8 @@ src/test/java/com/fireblocks/sdk/model/TokenOwnershipStatusUpdatePayloadTest.jav src/test/java/com/fireblocks/sdk/model/TokenResponseTest.java src/test/java/com/fireblocks/sdk/model/TokensPaginatedResponseTest.java src/test/java/com/fireblocks/sdk/model/TradingAccountTypeTest.java -src/test/java/com/fireblocks/sdk/model/TradingErrorResponseErrorTest.java -src/test/java/com/fireblocks/sdk/model/TradingErrorResponseTest.java -src/test/java/com/fireblocks/sdk/model/TradingProviderTest.java src/test/java/com/fireblocks/sdk/model/TransactionFeeTest.java src/test/java/com/fireblocks/sdk/model/TransactionOperationTest.java -src/test/java/com/fireblocks/sdk/model/TransactionReceiptResponseTest.java src/test/java/com/fireblocks/sdk/model/TransactionRequestAmountTest.java src/test/java/com/fireblocks/sdk/model/TransactionRequestDestinationTest.java src/test/java/com/fireblocks/sdk/model/TransactionRequestFeeTest.java @@ -2376,59 +1413,29 @@ src/test/java/com/fireblocks/sdk/model/TransferOperationPreviewTest.java src/test/java/com/fireblocks/sdk/model/TransferOperationTypeTest.java src/test/java/com/fireblocks/sdk/model/TransferPeerPathSubTypeTest.java src/test/java/com/fireblocks/sdk/model/TransferPeerPathTypeTest.java -src/test/java/com/fireblocks/sdk/model/TransferRailTest.java -src/test/java/com/fireblocks/sdk/model/TransferReceiptTest.java src/test/java/com/fireblocks/sdk/model/TransferValidationFailureTest.java src/test/java/com/fireblocks/sdk/model/TravelRuleAddressTest.java src/test/java/com/fireblocks/sdk/model/TravelRuleCreateTransactionRequestTest.java -src/test/java/com/fireblocks/sdk/model/TravelRuleDateAndPlaceOfBirthTest.java -src/test/java/com/fireblocks/sdk/model/TravelRuleGeographicAddressTest.java src/test/java/com/fireblocks/sdk/model/TravelRuleGetAllVASPsResponseTest.java src/test/java/com/fireblocks/sdk/model/TravelRuleIssuerTest.java src/test/java/com/fireblocks/sdk/model/TravelRuleIssuersTest.java -src/test/java/com/fireblocks/sdk/model/TravelRuleLegalPersonNameIdentifierTest.java -src/test/java/com/fireblocks/sdk/model/TravelRuleLegalPersonTest.java -src/test/java/com/fireblocks/sdk/model/TravelRuleNationalIdentificationTest.java -src/test/java/com/fireblocks/sdk/model/TravelRuleNaturalNameIdentifierTest.java -src/test/java/com/fireblocks/sdk/model/TravelRuleNaturalPersonNameIdentifierTest.java -src/test/java/com/fireblocks/sdk/model/TravelRuleNaturalPersonTest.java src/test/java/com/fireblocks/sdk/model/TravelRuleOwnershipProofTest.java -src/test/java/com/fireblocks/sdk/model/TravelRulePersonTest.java src/test/java/com/fireblocks/sdk/model/TravelRulePiiIVMSTest.java src/test/java/com/fireblocks/sdk/model/TravelRulePolicyRuleResponseTest.java src/test/java/com/fireblocks/sdk/model/TravelRuleTransactionBlockchainInfoTest.java src/test/java/com/fireblocks/sdk/model/TravelRuleUpdateVASPDetailsTest.java src/test/java/com/fireblocks/sdk/model/TravelRuleVASPTest.java -src/test/java/com/fireblocks/sdk/model/TravelRuleValidateDateAndPlaceOfBirthTest.java src/test/java/com/fireblocks/sdk/model/TravelRuleValidateFullTransactionRequestTest.java -src/test/java/com/fireblocks/sdk/model/TravelRuleValidateGeographicAddressTest.java -src/test/java/com/fireblocks/sdk/model/TravelRuleValidateLegalPersonNameIdentifierTest.java -src/test/java/com/fireblocks/sdk/model/TravelRuleValidateLegalPersonTest.java -src/test/java/com/fireblocks/sdk/model/TravelRuleValidateNationalIdentificationTest.java -src/test/java/com/fireblocks/sdk/model/TravelRuleValidateNaturalNameIdentifierTest.java -src/test/java/com/fireblocks/sdk/model/TravelRuleValidateNaturalPersonNameIdentifierTest.java -src/test/java/com/fireblocks/sdk/model/TravelRuleValidateNaturalPersonTest.java -src/test/java/com/fireblocks/sdk/model/TravelRuleValidatePersonTest.java -src/test/java/com/fireblocks/sdk/model/TravelRuleValidatePiiIVMSTest.java src/test/java/com/fireblocks/sdk/model/TravelRuleValidateTransactionRequestTest.java src/test/java/com/fireblocks/sdk/model/TravelRuleValidateTransactionResponseTest.java -src/test/java/com/fireblocks/sdk/model/TravelRuleVaspForVaultTest.java -src/test/java/com/fireblocks/sdk/model/TxLogTest.java src/test/java/com/fireblocks/sdk/model/UnfreezeTransactionResponseTest.java src/test/java/com/fireblocks/sdk/model/UnmanagedWalletTest.java src/test/java/com/fireblocks/sdk/model/UnspentInputTest.java src/test/java/com/fireblocks/sdk/model/UnspentInputsResponseTest.java -src/test/java/com/fireblocks/sdk/model/UnstakeRequestTest.java -src/test/java/com/fireblocks/sdk/model/UpdateAssetUserMetadataRequestTest.java -src/test/java/com/fireblocks/sdk/model/UpdateCallbackHandlerRequestTest.java -src/test/java/com/fireblocks/sdk/model/UpdateCallbackHandlerResponseTest.java -src/test/java/com/fireblocks/sdk/model/UpdateDraftRequestTest.java -src/test/java/com/fireblocks/sdk/model/UpdateTagRequestTest.java +src/test/java/com/fireblocks/sdk/model/UnstakeRequestDtoTest.java src/test/java/com/fireblocks/sdk/model/UpdateTokenOwnershipStatusDtoTest.java src/test/java/com/fireblocks/sdk/model/UpdateVaultAccountAssetAddressRequestTest.java src/test/java/com/fireblocks/sdk/model/UpdateVaultAccountRequestTest.java -src/test/java/com/fireblocks/sdk/model/UpdateWebhookRequestTest.java -src/test/java/com/fireblocks/sdk/model/UsWirePaymentInfoTest.java src/test/java/com/fireblocks/sdk/model/UserGroupCreateRequestTest.java src/test/java/com/fireblocks/sdk/model/UserGroupCreateResponseTest.java src/test/java/com/fireblocks/sdk/model/UserGroupResponseTest.java @@ -2438,30 +1445,21 @@ src/test/java/com/fireblocks/sdk/model/UserRoleTest.java src/test/java/com/fireblocks/sdk/model/UserStatusTest.java src/test/java/com/fireblocks/sdk/model/UserTypeTest.java src/test/java/com/fireblocks/sdk/model/ValidateAddressResponseTest.java -src/test/java/com/fireblocks/sdk/model/ValidateLayerZeroChannelResponseTest.java -src/test/java/com/fireblocks/sdk/model/ValidatedTransactionsForRescanTest.java src/test/java/com/fireblocks/sdk/model/ValidationKeyDtoTest.java -src/test/java/com/fireblocks/sdk/model/ValidatorTest.java +src/test/java/com/fireblocks/sdk/model/ValidatorDtoTest.java src/test/java/com/fireblocks/sdk/model/VaultAccountTest.java src/test/java/com/fireblocks/sdk/model/VaultAccountsPagedResponsePagingTest.java src/test/java/com/fireblocks/sdk/model/VaultAccountsPagedResponseTest.java -src/test/java/com/fireblocks/sdk/model/VaultAccountsTagAttachmentsRequestTest.java src/test/java/com/fireblocks/sdk/model/VaultActionStatusTest.java src/test/java/com/fireblocks/sdk/model/VaultAssetTest.java src/test/java/com/fireblocks/sdk/model/VaultWalletAddressTest.java src/test/java/com/fireblocks/sdk/model/VendorDtoTest.java -src/test/java/com/fireblocks/sdk/model/VerdictConfigTest.java -src/test/java/com/fireblocks/sdk/model/VersionTest.java src/test/java/com/fireblocks/sdk/model/WalletAssetAdditionalInfoTest.java src/test/java/com/fireblocks/sdk/model/WalletAssetTest.java -src/test/java/com/fireblocks/sdk/model/WebhookEventTest.java -src/test/java/com/fireblocks/sdk/model/WebhookPaginatedResponseTest.java -src/test/java/com/fireblocks/sdk/model/WebhookTest.java -src/test/java/com/fireblocks/sdk/model/WithdrawRequestTest.java +src/test/java/com/fireblocks/sdk/model/WithdrawRequestDtoTest.java src/test/java/com/fireblocks/sdk/model/WorkflowConfigStatusTest.java src/test/java/com/fireblocks/sdk/model/WorkflowConfigurationIdTest.java src/test/java/com/fireblocks/sdk/model/WorkflowExecutionOperationTest.java src/test/java/com/fireblocks/sdk/model/WriteAbiFunctionTest.java -src/test/java/com/fireblocks/sdk/model/WriteCallFunctionDtoAbiFunctionTest.java src/test/java/com/fireblocks/sdk/model/WriteCallFunctionDtoTest.java src/test/java/com/fireblocks/sdk/model/WriteCallFunctionResponseDtoTest.java diff --git a/README.md b/README.md index fc603e7b..b5530f59 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ Add this dependency to your project's POM: com.fireblocks.sdk fireblocks-sdk - 12.1.0 + 0.0.0 compile ``` @@ -42,7 +42,7 @@ Add this dependency to your project's POM: Add this dependency to your project's build file: ```groovy -compile "com.fireblocks.sdk:fireblocks-sdk:12.1.0" +compile "com.fireblocks.sdk:fireblocks-sdk:0.0.0" ``` ### Others @@ -55,7 +55,7 @@ mvn clean package Then manually install the following JARs: -- `target/fireblocks-sdk-12.1.0.jar` +- `target/fireblocks-sdk-0.0.0.jar` - `target/lib/*.jar` @@ -145,38 +145,23 @@ Class | Method | HTTP request | Description *ApiUserApi* | [**getApiUsers**](docs/ApiUserApi.md#getApiUsers) | **GET** /management/api_users | Get Api users *AssetsApi* | [**createAssetsBulk**](docs/AssetsApi.md#createAssetsBulk) | **POST** /vault/assets/bulk | Bulk creation of wallets *AuditLogsApi* | [**getAuditLogs**](docs/AuditLogsApi.md#getAuditLogs) | **GET** /management/audit_logs | Get audit logs -*BlockchainsAssetsApi* | [**getAsset**](docs/BlockchainsAssetsApi.md#getAsset) | **GET** /assets/{id} | Get an asset -*BlockchainsAssetsApi* | [**getBlockchain**](docs/BlockchainsAssetsApi.md#getBlockchain) | **GET** /blockchains/{id} | Get an blockchain -*BlockchainsAssetsApi* | [**getSupportedAssets**](docs/BlockchainsAssetsApi.md#getSupportedAssets) | **GET** /supported_assets | List all asset types supported by Fireblocks - legacy endpoint -*BlockchainsAssetsApi* | [**listAssets**](docs/BlockchainsAssetsApi.md#listAssets) | **GET** /assets | List assets -*BlockchainsAssetsApi* | [**listBlockchains**](docs/BlockchainsAssetsApi.md#listBlockchains) | **GET** /blockchains | List blockchains +*AuditLogsApi* | [**getAudits**](docs/AuditLogsApi.md#getAudits) | **GET** /audits | Get audit logs +*BlockchainsAssetsApi* | [**getSupportedAssets**](docs/BlockchainsAssetsApi.md#getSupportedAssets) | **GET** /supported_assets | List all asset types supported by Fireblocks *BlockchainsAssetsApi* | [**registerNewAsset**](docs/BlockchainsAssetsApi.md#registerNewAsset) | **POST** /assets | Register an asset -*BlockchainsAssetsApi* | [**setAssetPrice**](docs/BlockchainsAssetsApi.md#setAssetPrice) | **POST** /assets/prices/{id} | Set asset price -*BlockchainsAssetsApi* | [**updateAssetUserMetadata**](docs/BlockchainsAssetsApi.md#updateAssetUserMetadata) | **PATCH** /assets/{id} | Update the user’s metadata for an asset *ComplianceApi* | [**getAmlPostScreeningPolicy**](docs/ComplianceApi.md#getAmlPostScreeningPolicy) | **GET** /screening/aml/post_screening_policy | AML - View Post-Screening Policy *ComplianceApi* | [**getAmlScreeningPolicy**](docs/ComplianceApi.md#getAmlScreeningPolicy) | **GET** /screening/aml/screening_policy | AML - View Screening Policy *ComplianceApi* | [**getPostScreeningPolicy**](docs/ComplianceApi.md#getPostScreeningPolicy) | **GET** /screening/travel_rule/post_screening_policy | Travel Rule - View Post-Screening Policy -*ComplianceApi* | [**getScreeningFullDetails**](docs/ComplianceApi.md#getScreeningFullDetails) | **GET** /screening/transaction/{txId} | Provides all the compliance details for the given screened transaction. *ComplianceApi* | [**getScreeningPolicy**](docs/ComplianceApi.md#getScreeningPolicy) | **GET** /screening/travel_rule/screening_policy | Travel Rule - View Screening Policy -*ComplianceApi* | [**retryRejectedTransactionBypassScreeningChecks**](docs/ComplianceApi.md#retryRejectedTransactionBypassScreeningChecks) | **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 -*ComplianceApi* | [**setAmlVerdict**](docs/ComplianceApi.md#setAmlVerdict) | **POST** /screening/aml/verdict/manual | Set AML Verdict for Manual Screening Verdict. *ComplianceApi* | [**updateAmlScreeningConfiguration**](docs/ComplianceApi.md#updateAmlScreeningConfiguration) | **PUT** /screening/aml/policy_configuration | Update AML Configuration *ComplianceApi* | [**updateScreeningConfiguration**](docs/ComplianceApi.md#updateScreeningConfiguration) | **PUT** /screening/configurations | Tenant - Screening Configuration *ComplianceApi* | [**updateTravelRuleConfig**](docs/ComplianceApi.md#updateTravelRuleConfig) | **PUT** /screening/travel_rule/policy_configuration | Update Travel Rule Configuration *ComplianceScreeningConfigurationApi* | [**getAmlScreeningConfiguration**](docs/ComplianceScreeningConfigurationApi.md#getAmlScreeningConfiguration) | **GET** /screening/aml/policy_configuration | Get AML Screening Policy Configuration *ComplianceScreeningConfigurationApi* | [**getScreeningConfiguration**](docs/ComplianceScreeningConfigurationApi.md#getScreeningConfiguration) | **GET** /screening/travel_rule/policy_configuration | Get Travel Rule Screening Policy Configuration -*ConnectedAccountsBetaApi* | [**getConnectedAccount**](docs/ConnectedAccountsBetaApi.md#getConnectedAccount) | **GET** /connected_accounts/{accountId} | Get connected account -*ConnectedAccountsBetaApi* | [**getConnectedAccountBalances**](docs/ConnectedAccountsBetaApi.md#getConnectedAccountBalances) | **GET** /connected_accounts/{accountId}/balances | Get balances for an account -*ConnectedAccountsBetaApi* | [**getConnectedAccountRates**](docs/ConnectedAccountsBetaApi.md#getConnectedAccountRates) | **GET** /connected_accounts/{accountId}/rates | Get exchange rates for an account -*ConnectedAccountsBetaApi* | [**getConnectedAccountTradingPairs**](docs/ConnectedAccountsBetaApi.md#getConnectedAccountTradingPairs) | **GET** /connected_accounts/{accountId}/manifest/capabilities/trading/pairs | Get supported trading pairs for an account -*ConnectedAccountsBetaApi* | [**getConnectedAccounts**](docs/ConnectedAccountsBetaApi.md#getConnectedAccounts) | **GET** /connected_accounts | Get connected accounts *ConsoleUserApi* | [**createConsoleUser**](docs/ConsoleUserApi.md#createConsoleUser) | **POST** /management/users | Create console user *ConsoleUserApi* | [**getConsoleUsers**](docs/ConsoleUserApi.md#getConsoleUsers) | **GET** /management/users | Get console users -*ContractInteractionsApi* | [**decodeContractData**](docs/ContractInteractionsApi.md#decodeContractData) | **POST** /contract_interactions/base_asset_id/{baseAssetId}/contract_address/{contractAddress}/decode | Decode a function call data, error, or event log -*ContractInteractionsApi* | [**getDeployedContractAbi**](docs/ContractInteractionsApi.md#getDeployedContractAbi) | **GET** /contract_interactions/base_asset_id/{baseAssetId}/contract_address/{contractAddress}/functions | Return deployed contract's ABI -*ContractInteractionsApi* | [**getTransactionReceipt**](docs/ContractInteractionsApi.md#getTransactionReceipt) | **GET** /contract_interactions/base_asset_id/{baseAssetId}/tx_hash/{txHash}/receipt | Get transaction receipt -*ContractInteractionsApi* | [**readCallFunction**](docs/ContractInteractionsApi.md#readCallFunction) | **POST** /contract_interactions/base_asset_id/{baseAssetId}/contract_address/{contractAddress}/functions/read | Call a read function on a deployed contract -*ContractInteractionsApi* | [**writeCallFunction**](docs/ContractInteractionsApi.md#writeCallFunction) | **POST** /contract_interactions/base_asset_id/{baseAssetId}/contract_address/{contractAddress}/functions/write | Call a write function on a deployed contract +*ContractInteractionsApi* | [**getDeployedContractAbi**](docs/ContractInteractionsApi.md#getDeployedContractAbi) | **GET** /contract_interactions/base_asset_id/{assetId}/contract_address/{contractAddress}/functions | Return deployed contract's ABI +*ContractInteractionsApi* | [**readCallFunction**](docs/ContractInteractionsApi.md#readCallFunction) | **POST** /contract_interactions/base_asset_id/{assetId}/contract_address/{contractAddress}/functions/read | Call a read function on a deployed contract +*ContractInteractionsApi* | [**writeCallFunction**](docs/ContractInteractionsApi.md#writeCallFunction) | **POST** /contract_interactions/base_asset_id/{assetId}/contract_address/{contractAddress}/functions/write | Call a write function on a deployed contract *ContractTemplatesApi* | [**deleteContractTemplateById**](docs/ContractTemplatesApi.md#deleteContractTemplateById) | **DELETE** /tokenization/templates/{contractTemplateId} | Delete a contract template by id *ContractTemplatesApi* | [**deployContract**](docs/ContractTemplatesApi.md#deployContract) | **POST** /tokenization/templates/{contractTemplateId}/deploy | Deploy contract *ContractTemplatesApi* | [**getConstructorByContractTemplateId**](docs/ContractTemplatesApi.md#getConstructorByContractTemplateId) | **GET** /tokenization/templates/{contractTemplateId}/constructor | Return contract template's constructor @@ -191,42 +176,17 @@ Class | Method | HTTP request | Description *ContractsApi* | [**getContract**](docs/ContractsApi.md#getContract) | **GET** /contracts/{contractId} | Find a specific contract *ContractsApi* | [**getContractAsset**](docs/ContractsApi.md#getContractAsset) | **GET** /contracts/{contractId}/{assetId} | Find a contract asset *ContractsApi* | [**getContracts**](docs/ContractsApi.md#getContracts) | **GET** /contracts | List contracts -*CosignersBetaApi* | [**addCosigner**](docs/CosignersBetaApi.md#addCosigner) | **POST** /cosigners | Add cosigner *CosignersBetaApi* | [**getApiKey**](docs/CosignersBetaApi.md#getApiKey) | **GET** /cosigners/{cosignerId}/api_keys/{apiKeyId} | Get API key *CosignersBetaApi* | [**getApiKeys**](docs/CosignersBetaApi.md#getApiKeys) | **GET** /cosigners/{cosignerId}/api_keys | Get all API keys *CosignersBetaApi* | [**getCosigner**](docs/CosignersBetaApi.md#getCosigner) | **GET** /cosigners/{cosignerId} | Get cosigner *CosignersBetaApi* | [**getCosigners**](docs/CosignersBetaApi.md#getCosigners) | **GET** /cosigners | Get all cosigners -*CosignersBetaApi* | [**getRequestStatus**](docs/CosignersBetaApi.md#getRequestStatus) | **GET** /cosigners/{cosignerId}/api_keys/{apiKeyId}/{requestId} | Get request status -*CosignersBetaApi* | [**pairApiKey**](docs/CosignersBetaApi.md#pairApiKey) | **PUT** /cosigners/{cosignerId}/api_keys/{apiKeyId} | Pair API key *CosignersBetaApi* | [**renameCosigner**](docs/CosignersBetaApi.md#renameCosigner) | **PATCH** /cosigners/{cosignerId} | Rename cosigner -*CosignersBetaApi* | [**unpairApiKey**](docs/CosignersBetaApi.md#unpairApiKey) | **DELETE** /cosigners/{cosignerId}/api_keys/{apiKeyId} | Unpair API key -*CosignersBetaApi* | [**updateCallbackHandler**](docs/CosignersBetaApi.md#updateCallbackHandler) | **PATCH** /cosigners/{cosignerId}/api_keys/{apiKeyId} | Update API key callback handler -*DeployedContractsApi* | [**addContractABI**](docs/DeployedContractsApi.md#addContractABI) | **POST** /tokenization/contracts/abi | Save contract ABI -*DeployedContractsApi* | [**fetchContractAbi**](docs/DeployedContractsApi.md#fetchContractAbi) | **POST** /tokenization/contracts/fetch_abi | Fetch the contract ABI *DeployedContractsApi* | [**getDeployedContractByAddress**](docs/DeployedContractsApi.md#getDeployedContractByAddress) | **GET** /tokenization/contracts/{assetId}/{contractAddress} | Return deployed contract data *DeployedContractsApi* | [**getDeployedContractById**](docs/DeployedContractsApi.md#getDeployedContractById) | **GET** /tokenization/contracts/{id} | Return deployed contract data by id *DeployedContractsApi* | [**getDeployedContracts**](docs/DeployedContractsApi.md#getDeployedContracts) | **GET** /tokenization/contracts | List deployed contracts data -*EmbeddedWalletsApi* | [**addEmbeddedWalletAsset**](docs/EmbeddedWalletsApi.md#addEmbeddedWalletAsset) | **POST** /ncw/wallets/{walletId}/accounts/{accountId}/assets/{assetId} | Add asset to account -*EmbeddedWalletsApi* | [**createEmbeddedWallet**](docs/EmbeddedWalletsApi.md#createEmbeddedWallet) | **POST** /ncw/wallets | Create a new wallet -*EmbeddedWalletsApi* | [**createEmbeddedWalletAccount**](docs/EmbeddedWalletsApi.md#createEmbeddedWalletAccount) | **POST** /ncw/wallets/{walletId}/accounts | Create a new account -*EmbeddedWalletsApi* | [**getEmbeddedWallet**](docs/EmbeddedWalletsApi.md#getEmbeddedWallet) | **GET** /ncw/wallets/{walletId} | Get a wallet -*EmbeddedWalletsApi* | [**getEmbeddedWalletAccount**](docs/EmbeddedWalletsApi.md#getEmbeddedWalletAccount) | **GET** /ncw/wallets/{walletId}/accounts/{accountId} | Get a account -*EmbeddedWalletsApi* | [**getEmbeddedWalletAddresses**](docs/EmbeddedWalletsApi.md#getEmbeddedWalletAddresses) | **GET** /ncw/wallets/{walletId}/accounts/{accountId}/assets/{assetId}/addresses | Retrieve asset addresses -*EmbeddedWalletsApi* | [**getEmbeddedWalletAsset**](docs/EmbeddedWalletsApi.md#getEmbeddedWalletAsset) | **GET** /ncw/wallets/{walletId}/accounts/{accountId}/assets/{assetId} | Retrieve asset -*EmbeddedWalletsApi* | [**getEmbeddedWalletAssetBalance**](docs/EmbeddedWalletsApi.md#getEmbeddedWalletAssetBalance) | **GET** /ncw/wallets/{walletId}/accounts/{accountId}/assets/{assetId}/balance | Retrieve asset balance -*EmbeddedWalletsApi* | [**getEmbeddedWalletDevice**](docs/EmbeddedWalletsApi.md#getEmbeddedWalletDevice) | **GET** /ncw/wallets/{walletId}/devices/{deviceId} | Get Embedded Wallet Device -*EmbeddedWalletsApi* | [**getEmbeddedWalletDeviceSetupState**](docs/EmbeddedWalletsApi.md#getEmbeddedWalletDeviceSetupState) | **GET** /ncw/wallets/{walletId}/devices/{deviceId}/setup_status | Get device key setup state -*EmbeddedWalletsApi* | [**getEmbeddedWalletLatestBackup**](docs/EmbeddedWalletsApi.md#getEmbeddedWalletLatestBackup) | **GET** /ncw/wallets/{walletId}/backup/latest | Get wallet Latest Backup details -*EmbeddedWalletsApi* | [**getEmbeddedWalletPublicKeyInfoForAddress**](docs/EmbeddedWalletsApi.md#getEmbeddedWalletPublicKeyInfoForAddress) | **GET** /ncw/wallets/{walletId}/accounts/{accountId}/assets/{assetId}/{change}/{addressIndex}/public_key_info | Get the public key of an asset -*EmbeddedWalletsApi* | [**getEmbeddedWalletSupportedAssets**](docs/EmbeddedWalletsApi.md#getEmbeddedWalletSupportedAssets) | **GET** /ncw/wallets/supported_assets | Retrieve supported assets -*EmbeddedWalletsApi* | [**getEmbeddedWallets**](docs/EmbeddedWalletsApi.md#getEmbeddedWallets) | **GET** /ncw/wallets | List wallets -*EmbeddedWalletsApi* | [**getPublicKeyInfoNcw**](docs/EmbeddedWalletsApi.md#getPublicKeyInfoNcw) | **GET** /ncw/wallets/{walletId}/public_key_info | Get the public key for a derivation path -*EmbeddedWalletsApi* | [**refreshEmbeddedWalletAssetBalance**](docs/EmbeddedWalletsApi.md#refreshEmbeddedWalletAssetBalance) | **PUT** /ncw/wallets/{walletId}/accounts/{accountId}/assets/{assetId}/balance | Refresh asset balance -*ExchangeAccountsApi* | [**addExchangeAccount**](docs/ExchangeAccountsApi.md#addExchangeAccount) | **POST** /exchange_accounts | Add an exchange account *ExchangeAccountsApi* | [**convertAssets**](docs/ExchangeAccountsApi.md#convertAssets) | **POST** /exchange_accounts/{exchangeAccountId}/convert | Convert exchange account funds from the source asset to the destination asset. *ExchangeAccountsApi* | [**getExchangeAccount**](docs/ExchangeAccountsApi.md#getExchangeAccount) | **GET** /exchange_accounts/{exchangeAccountId} | Find a specific exchange account *ExchangeAccountsApi* | [**getExchangeAccountAsset**](docs/ExchangeAccountsApi.md#getExchangeAccountAsset) | **GET** /exchange_accounts/{exchangeAccountId}/{assetId} | Find an asset for an exchange account -*ExchangeAccountsApi* | [**getExchangeAccountsCredentialsPublicKey**](docs/ExchangeAccountsApi.md#getExchangeAccountsCredentialsPublicKey) | **GET** /exchange_accounts/credentials_public_key | Get public key to encrypt exchange credentials *ExchangeAccountsApi* | [**getPagedExchangeAccounts**](docs/ExchangeAccountsApi.md#getPagedExchangeAccounts) | **GET** /exchange_accounts/paged | Pagination list exchange accounts *ExchangeAccountsApi* | [**internalTransfer**](docs/ExchangeAccountsApi.md#internalTransfer) | **POST** /exchange_accounts/{exchangeAccountId}/internal_transfer | Internal transfer for exchange accounts *ExternalWalletsApi* | [**addAssetToExternalWallet**](docs/ExternalWalletsApi.md#addAssetToExternalWallet) | **POST** /external_wallets/{walletId}/{assetId} | Add an asset to an external wallet. @@ -248,10 +208,9 @@ Class | Method | HTTP request | Description *InternalWalletsApi* | [**createInternalWallet**](docs/InternalWalletsApi.md#createInternalWallet) | **POST** /internal_wallets | Create an internal wallet *InternalWalletsApi* | [**createInternalWalletAsset**](docs/InternalWalletsApi.md#createInternalWalletAsset) | **POST** /internal_wallets/{walletId}/{assetId} | Add an asset to an internal wallet *InternalWalletsApi* | [**deleteInternalWallet**](docs/InternalWalletsApi.md#deleteInternalWallet) | **DELETE** /internal_wallets/{walletId} | Delete an internal wallet -*InternalWalletsApi* | [**deleteInternalWalletAsset**](docs/InternalWalletsApi.md#deleteInternalWalletAsset) | **DELETE** /internal_wallets/{walletId}/{assetId} | Delete a whitelisted address -*InternalWalletsApi* | [**getInternalWallet**](docs/InternalWalletsApi.md#getInternalWallet) | **GET** /internal_wallets/{walletId} | Get an asset from an internal wallet +*InternalWalletsApi* | [**deleteInternalWalletAsset**](docs/InternalWalletsApi.md#deleteInternalWalletAsset) | **DELETE** /internal_wallets/{walletId}/{assetId} | Delete a whitelisted address from an internal wallet +*InternalWalletsApi* | [**getInternalWallet**](docs/InternalWalletsApi.md#getInternalWallet) | **GET** /internal_wallets/{walletId} | Get assets for internal wallet *InternalWalletsApi* | [**getInternalWalletAsset**](docs/InternalWalletsApi.md#getInternalWalletAsset) | **GET** /internal_wallets/{walletId}/{assetId} | Get an asset from an internal wallet -*InternalWalletsApi* | [**getInternalWalletAssetsPaginated**](docs/InternalWalletsApi.md#getInternalWalletAssetsPaginated) | **GET** /internal_wallets/{walletId}/assets | List assets in an internal wallet (Paginated) *InternalWalletsApi* | [**getInternalWallets**](docs/InternalWalletsApi.md#getInternalWallets) | **GET** /internal_wallets | List internal wallets *InternalWalletsApi* | [**setCustomerRefIdForInternalWallet**](docs/InternalWalletsApi.md#setCustomerRefIdForInternalWallet) | **POST** /internal_wallets/{walletId}/set_customer_ref_id | Set an AML/KYT customer reference ID for an internal wallet *JobManagementApi* | [**cancelJob**](docs/JobManagementApi.md#cancelJob) | **POST** /batch/{jobId}/cancel | Cancel a running job @@ -269,8 +228,6 @@ Class | Method | HTTP request | Description *KeyLinkBetaApi* | [**getValidationKeysList**](docs/KeyLinkBetaApi.md#getValidationKeysList) | **GET** /key_link/validation_keys | Get list of registered validation keys *KeyLinkBetaApi* | [**setAgentId**](docs/KeyLinkBetaApi.md#setAgentId) | **PATCH** /key_link/signing_keys/{keyId}/agent_user_id | Set agent user id that can sign with the signing key identified by the Fireblocks provided `keyId` *KeyLinkBetaApi* | [**updateSigningKey**](docs/KeyLinkBetaApi.md#updateSigningKey) | **PATCH** /key_link/signing_keys/{keyId} | Modify the signing by Fireblocks provided `keyId` -*KeysBetaApi* | [**getMpcKeysList**](docs/KeysBetaApi.md#getMpcKeysList) | **GET** /keys/mpc/list | Get list of mpc keys -*KeysBetaApi* | [**getMpcKeysListByUser**](docs/KeysBetaApi.md#getMpcKeysListByUser) | **GET** /keys/mpc/list/{userId} | Get list of mpc keys by `userId` *NetworkConnectionsApi* | [**checkThirdPartyRouting**](docs/NetworkConnectionsApi.md#checkThirdPartyRouting) | **GET** /network_connections/{connectionId}/is_third_party_routing/{assetType} | Retrieve third-party network routing validation by asset type. *NetworkConnectionsApi* | [**createNetworkConnection**](docs/NetworkConnectionsApi.md#createNetworkConnection) | **POST** /network_connections | Creates a new network connection *NetworkConnectionsApi* | [**createNetworkId**](docs/NetworkConnectionsApi.md#createNetworkId) | **POST** /network_ids | Creates a new Network ID @@ -281,7 +238,6 @@ Class | Method | HTTP request | Description *NetworkConnectionsApi* | [**getNetworkId**](docs/NetworkConnectionsApi.md#getNetworkId) | **GET** /network_ids/{networkId} | Returns specific network ID. *NetworkConnectionsApi* | [**getNetworkIds**](docs/NetworkConnectionsApi.md#getNetworkIds) | **GET** /network_ids | Returns all network IDs, both local IDs and discoverable remote IDs *NetworkConnectionsApi* | [**getRoutingPolicyAssetGroups**](docs/NetworkConnectionsApi.md#getRoutingPolicyAssetGroups) | **GET** /network_ids/routing_policy_asset_groups | Returns all enabled routing policy asset groups -*NetworkConnectionsApi* | [**searchNetworkIds**](docs/NetworkConnectionsApi.md#searchNetworkIds) | **GET** /network_ids/search | Search network IDs, both local IDs and discoverable remote IDs *NetworkConnectionsApi* | [**setNetworkIdDiscoverability**](docs/NetworkConnectionsApi.md#setNetworkIdDiscoverability) | **PATCH** /network_ids/{networkId}/set_discoverability | Update network ID's discoverability. *NetworkConnectionsApi* | [**setNetworkIdName**](docs/NetworkConnectionsApi.md#setNetworkIdName) | **PATCH** /network_ids/{networkId}/set_name | Update network ID's name. *NetworkConnectionsApi* | [**setNetworkIdRoutingPolicy**](docs/NetworkConnectionsApi.md#setNetworkIdRoutingPolicy) | **PATCH** /network_ids/{networkId}/set_routing_policy | Update network id routing policy. @@ -306,26 +262,19 @@ Class | Method | HTTP request | Description *PaymentsPayoutApi* | [**createPayout**](docs/PaymentsPayoutApi.md#createPayout) | **POST** /payments/payout | Create a payout instruction set *PaymentsPayoutApi* | [**executePayoutAction**](docs/PaymentsPayoutApi.md#executePayoutAction) | **POST** /payments/payout/{payoutId}/actions/execute | Execute a payout instruction set *PaymentsPayoutApi* | [**getPayout**](docs/PaymentsPayoutApi.md#getPayout) | **GET** /payments/payout/{payoutId} | Get the status of a payout instruction set -*PolicyEditorBetaApi* | [**getActivePolicyLegacy**](docs/PolicyEditorBetaApi.md#getActivePolicyLegacy) | **GET** /tap/active_policy | Get the active policy and its validation -*PolicyEditorBetaApi* | [**getDraftLegacy**](docs/PolicyEditorBetaApi.md#getDraftLegacy) | **GET** /tap/draft | Get the active draft -*PolicyEditorBetaApi* | [**publishDraftLegacy**](docs/PolicyEditorBetaApi.md#publishDraftLegacy) | **POST** /tap/draft | Send publish request for a certain draft id +*PolicyEditorBetaApi* | [**getActivePolicy**](docs/PolicyEditorBetaApi.md#getActivePolicy) | **GET** /tap/active_policy | Get the active policy and its validation +*PolicyEditorBetaApi* | [**getDraft**](docs/PolicyEditorBetaApi.md#getDraft) | **GET** /tap/draft | Get the active draft +*PolicyEditorBetaApi* | [**publishDraft**](docs/PolicyEditorBetaApi.md#publishDraft) | **POST** /tap/draft | Send publish request for a certain draft id *PolicyEditorBetaApi* | [**publishPolicyRules**](docs/PolicyEditorBetaApi.md#publishPolicyRules) | **POST** /tap/publish | Send publish request for a set of policy rules -*PolicyEditorBetaApi* | [**updateDraftLegacy**](docs/PolicyEditorBetaApi.md#updateDraftLegacy) | **PUT** /tap/draft | Update the draft with a new set of rules -*PolicyEditorV2BetaApi* | [**getActivePolicy**](docs/PolicyEditorV2BetaApi.md#getActivePolicy) | **GET** /policy/active_policy | Get the active policy and its validation by policy type -*PolicyEditorV2BetaApi* | [**getDraft**](docs/PolicyEditorV2BetaApi.md#getDraft) | **GET** /policy/draft | Get the active draft by policy type -*PolicyEditorV2BetaApi* | [**publishDraft**](docs/PolicyEditorV2BetaApi.md#publishDraft) | **POST** /policy/draft | Send publish request for a certain draft id -*PolicyEditorV2BetaApi* | [**updateDraft**](docs/PolicyEditorV2BetaApi.md#updateDraft) | **PUT** /policy/draft | Update the draft with a new set of rules by policy types +*PolicyEditorBetaApi* | [**updateDraft**](docs/PolicyEditorBetaApi.md#updateDraft) | **PUT** /tap/draft | Update the draft with a new set of rules *ResetDeviceApi* | [**resetDevice**](docs/ResetDeviceApi.md#resetDevice) | **POST** /management/users/{id}/reset_device | Resets device -*SmartTransferApi* | [**approveDvPTicketTerm**](docs/SmartTransferApi.md#approveDvPTicketTerm) | **PUT** /smart_transfers/{ticketId}/terms/{termId}/dvp/approve | Define funding source and give approve to contract to transfer asset *SmartTransferApi* | [**cancelTicket**](docs/SmartTransferApi.md#cancelTicket) | **PUT** /smart-transfers/{ticketId}/cancel | Cancel Ticket *SmartTransferApi* | [**createTicket**](docs/SmartTransferApi.md#createTicket) | **POST** /smart-transfers | Create Ticket *SmartTransferApi* | [**createTicketTerm**](docs/SmartTransferApi.md#createTicketTerm) | **POST** /smart-transfers/{ticketId}/terms | Create leg (term) *SmartTransferApi* | [**findTicketById**](docs/SmartTransferApi.md#findTicketById) | **GET** /smart-transfers/{ticketId} | Search Tickets by ID *SmartTransferApi* | [**findTicketTermById**](docs/SmartTransferApi.md#findTicketTermById) | **GET** /smart-transfers/{ticketId}/terms/{termId} | Search ticket by leg (term) ID *SmartTransferApi* | [**fulfillTicket**](docs/SmartTransferApi.md#fulfillTicket) | **PUT** /smart-transfers/{ticketId}/fulfill | Fund ticket manually -*SmartTransferApi* | [**fundDvpTicket**](docs/SmartTransferApi.md#fundDvpTicket) | **PUT** /smart_transfers/{ticketId}/dvp/fund | Fund dvp ticket *SmartTransferApi* | [**fundTicketTerm**](docs/SmartTransferApi.md#fundTicketTerm) | **PUT** /smart-transfers/{ticketId}/terms/{termId}/fund | Define funding source -*SmartTransferApi* | [**getSmartTransferStatistic**](docs/SmartTransferApi.md#getSmartTransferStatistic) | **GET** /smart_transfers/statistic | Get smart transfers statistic *SmartTransferApi* | [**getSmartTransferUserGroups**](docs/SmartTransferApi.md#getSmartTransferUserGroups) | **GET** /smart-transfers/settings/user-groups | Get user group *SmartTransferApi* | [**manuallyFundTicketTerm**](docs/SmartTransferApi.md#manuallyFundTicketTerm) | **PUT** /smart-transfers/{ticketId}/terms/{termId}/manually-fund | Manually add term transaction *SmartTransferApi* | [**removeTicketTerm**](docs/SmartTransferApi.md#removeTicketTerm) | **DELETE** /smart-transfers/{ticketId}/terms/{termId} | Delete ticket leg (term) @@ -335,53 +284,20 @@ Class | Method | HTTP request | Description *SmartTransferApi* | [**setUserGroups**](docs/SmartTransferApi.md#setUserGroups) | **POST** /smart-transfers/settings/user-groups | Set user group *SmartTransferApi* | [**submitTicket**](docs/SmartTransferApi.md#submitTicket) | **PUT** /smart-transfers/{ticketId}/submit | Submit ticket *SmartTransferApi* | [**updateTicketTerm**](docs/SmartTransferApi.md#updateTicketTerm) | **PUT** /smart-transfers/{ticketId}/terms/{termId} | Update ticket leg (term) -*StakingApi* | [**approveTermsOfServiceByProviderId**](docs/StakingApi.md#approveTermsOfServiceByProviderId) | **POST** /staking/providers/{providerId}/approveTermsOfService | Approve staking terms of service -*StakingApi* | [**claimRewards**](docs/StakingApi.md#claimRewards) | **POST** /staking/chains/{chainDescriptor}/claim_rewards | Execute a Claim Rewards operation -*StakingApi* | [**getAllDelegations**](docs/StakingApi.md#getAllDelegations) | **GET** /staking/positions | List staking positions details -*StakingApi* | [**getChainInfo**](docs/StakingApi.md#getChainInfo) | **GET** /staking/chains/{chainDescriptor}/chainInfo | Get chain-specific staking summary -*StakingApi* | [**getChains**](docs/StakingApi.md#getChains) | **GET** /staking/chains | List staking supported chains -*StakingApi* | [**getDelegationById**](docs/StakingApi.md#getDelegationById) | **GET** /staking/positions/{id} | Get staking position details -*StakingApi* | [**getProviders**](docs/StakingApi.md#getProviders) | **GET** /staking/providers | List staking providers details -*StakingApi* | [**getSummary**](docs/StakingApi.md#getSummary) | **GET** /staking/positions/summary | Get staking summary details -*StakingApi* | [**getSummaryByVault**](docs/StakingApi.md#getSummaryByVault) | **GET** /staking/positions/summary/vaults | Get staking summary details by vault -*StakingApi* | [**mergeStakeAccounts**](docs/StakingApi.md#mergeStakeAccounts) | **POST** /staking/chains/{chainDescriptor}/merge | Merge Solana on stake accounts -*StakingApi* | [**split**](docs/StakingApi.md#split) | **POST** /staking/chains/{chainDescriptor}/split | Execute a Split operation on SOL/SOL_TEST stake account -*StakingApi* | [**stake**](docs/StakingApi.md#stake) | **POST** /staking/chains/{chainDescriptor}/stake | Initiate Stake Operation -*StakingApi* | [**unstake**](docs/StakingApi.md#unstake) | **POST** /staking/chains/{chainDescriptor}/unstake | Execute an Unstake operation -*StakingApi* | [**withdraw**](docs/StakingApi.md#withdraw) | **POST** /staking/chains/{chainDescriptor}/withdraw | Execute a Withdraw operation -*TagsApi* | [**createTag**](docs/TagsApi.md#createTag) | **POST** /tags | Create a tag -*TagsApi* | [**deleteTag**](docs/TagsApi.md#deleteTag) | **DELETE** /tags/{tagId} | Delete a tag -*TagsApi* | [**getTag**](docs/TagsApi.md#getTag) | **GET** /tags/{tagId} | Get a tag -*TagsApi* | [**getTags**](docs/TagsApi.md#getTags) | **GET** /tags | Get list of tags -*TagsApi* | [**updateTag**](docs/TagsApi.md#updateTag) | **PATCH** /tags/{tagId} | Update a tag -*TokenizationApi* | [**burnCollectionToken**](docs/TokenizationApi.md#burnCollectionToken) | **POST** /tokenization/collections/{id}/tokens/burn | Burn tokens -*TokenizationApi* | [**createNewCollection**](docs/TokenizationApi.md#createNewCollection) | **POST** /tokenization/collections | Create a new collection -*TokenizationApi* | [**deactivateAndUnlinkAdapters**](docs/TokenizationApi.md#deactivateAndUnlinkAdapters) | **DELETE** /tokenization/multichain/bridge/layerzero | Remove LayerZero adapters -*TokenizationApi* | [**deployAndLinkAdapters**](docs/TokenizationApi.md#deployAndLinkAdapters) | **POST** /tokenization/multichain/bridge/layerzero | Deploy LayerZero adapters -*TokenizationApi* | [**fetchCollectionTokenDetails**](docs/TokenizationApi.md#fetchCollectionTokenDetails) | **GET** /tokenization/collections/{id}/tokens/{tokenId} | Get collection token details -*TokenizationApi* | [**getCollectionById**](docs/TokenizationApi.md#getCollectionById) | **GET** /tokenization/collections/{id} | Get a collection by id -*TokenizationApi* | [**getDeployableAddress**](docs/TokenizationApi.md#getDeployableAddress) | **POST** /tokenization/multichain/deterministic_address | Get deterministic address for contract deployment -*TokenizationApi* | [**getLayerZeroDvnConfig**](docs/TokenizationApi.md#getLayerZeroDvnConfig) | **GET** /tokenization/multichain/bridge/layerzero/config/{adapterTokenLinkId}/dvns | Get LayerZero DVN configuration -*TokenizationApi* | [**getLayerZeroPeers**](docs/TokenizationApi.md#getLayerZeroPeers) | **GET** /tokenization/multichain/bridge/layerzero/config/{adapterTokenLinkId}/peers | Get LayerZero peers -*TokenizationApi* | [**getLinkedCollections**](docs/TokenizationApi.md#getLinkedCollections) | **GET** /tokenization/collections | Get collections +*StakingBetaApi* | [**approveTermsOfServiceByProviderId**](docs/StakingBetaApi.md#approveTermsOfServiceByProviderId) | **POST** /staking/providers/{providerId}/approveTermsOfService | +*StakingBetaApi* | [**executeAction**](docs/StakingBetaApi.md#executeAction) | **POST** /staking/chains/{chainDescriptor}/{actionId} | +*StakingBetaApi* | [**getAllDelegations**](docs/StakingBetaApi.md#getAllDelegations) | **GET** /staking/positions | +*StakingBetaApi* | [**getChainInfo**](docs/StakingBetaApi.md#getChainInfo) | **GET** /staking/chains/{chainDescriptor}/chainInfo | +*StakingBetaApi* | [**getChains**](docs/StakingBetaApi.md#getChains) | **GET** /staking/chains | +*StakingBetaApi* | [**getDelegationById**](docs/StakingBetaApi.md#getDelegationById) | **GET** /staking/positions/{id} | +*StakingBetaApi* | [**getProviders**](docs/StakingBetaApi.md#getProviders) | **GET** /staking/providers | +*StakingBetaApi* | [**getSummary**](docs/StakingBetaApi.md#getSummary) | **GET** /staking/positions/summary | +*StakingBetaApi* | [**getSummaryByVault**](docs/StakingBetaApi.md#getSummaryByVault) | **GET** /staking/positions/summary/vaults | *TokenizationApi* | [**getLinkedToken**](docs/TokenizationApi.md#getLinkedToken) | **GET** /tokenization/tokens/{id} | Return a linked token *TokenizationApi* | [**getLinkedTokens**](docs/TokenizationApi.md#getLinkedTokens) | **GET** /tokenization/tokens | List all linked tokens *TokenizationApi* | [**issueNewToken**](docs/TokenizationApi.md#issueNewToken) | **POST** /tokenization/tokens | Issue a new token -*TokenizationApi* | [**issueTokenMultiChain**](docs/TokenizationApi.md#issueTokenMultiChain) | **POST** /tokenization/multichain/tokens | Issue a token on one or more blockchains -*TokenizationApi* | [**link**](docs/TokenizationApi.md#link) | **POST** /tokenization/tokens/link | Link a contract -*TokenizationApi* | [**mintCollectionToken**](docs/TokenizationApi.md#mintCollectionToken) | **POST** /tokenization/collections/{id}/tokens/mint | Mint tokens -*TokenizationApi* | [**reIssueTokenMultiChain**](docs/TokenizationApi.md#reIssueTokenMultiChain) | **POST** /tokenization/multichain/reissue/token/{tokenLinkId} | Reissue a multichain token -*TokenizationApi* | [**removeLayerZeroPeers**](docs/TokenizationApi.md#removeLayerZeroPeers) | **DELETE** /tokenization/multichain/bridge/layerzero/config/peers | Remove LayerZero peers -*TokenizationApi* | [**setLayerZeroDvnConfig**](docs/TokenizationApi.md#setLayerZeroDvnConfig) | **POST** /tokenization/multichain/bridge/layerzero/config/dvns | Set LayerZero DVN configuration -*TokenizationApi* | [**setLayerZeroPeers**](docs/TokenizationApi.md#setLayerZeroPeers) | **POST** /tokenization/multichain/bridge/layerzero/config/peers | Set LayerZero peers +*TokenizationApi* | [**link**](docs/TokenizationApi.md#link) | **POST** /tokenization/tokens/link | Link a token *TokenizationApi* | [**unlink**](docs/TokenizationApi.md#unlink) | **DELETE** /tokenization/tokens/{id} | Unlink a token -*TokenizationApi* | [**unlinkCollection**](docs/TokenizationApi.md#unlinkCollection) | **DELETE** /tokenization/collections/{id} | Delete a collection link -*TokenizationApi* | [**validateLayerZeroChannelConfig**](docs/TokenizationApi.md#validateLayerZeroChannelConfig) | **GET** /tokenization/multichain/bridge/layerzero/validate | Validate LayerZero channel configuration -*TradingBetaApi* | [**createOrder**](docs/TradingBetaApi.md#createOrder) | **POST** /trading/orders | Create an order -*TradingBetaApi* | [**createQuote**](docs/TradingBetaApi.md#createQuote) | **POST** /trading/quotes | Create a quote -*TradingBetaApi* | [**getOrder**](docs/TradingBetaApi.md#getOrder) | **GET** /trading/orders/{orderId} | Get order details -*TradingBetaApi* | [**getOrders**](docs/TradingBetaApi.md#getOrders) | **GET** /trading/orders | Get orders -*TradingBetaApi* | [**getTradingProviders**](docs/TradingBetaApi.md#getTradingProviders) | **GET** /trading/providers | Get providers *TransactionsApi* | [**cancelTransaction**](docs/TransactionsApi.md#cancelTransaction) | **POST** /transactions/{txId}/cancel | Cancel a transaction *TransactionsApi* | [**createTransaction**](docs/TransactionsApi.md#createTransaction) | **POST** /transactions | Create a new transaction *TransactionsApi* | [**dropTransaction**](docs/TransactionsApi.md#dropTransaction) | **POST** /transactions/{txId}/drop | Drop ETH transaction by ID @@ -391,17 +307,15 @@ Class | Method | HTTP request | Description *TransactionsApi* | [**getTransaction**](docs/TransactionsApi.md#getTransaction) | **GET** /transactions/{txId} | Find a specific transaction by Fireblocks transaction ID *TransactionsApi* | [**getTransactionByExternalId**](docs/TransactionsApi.md#getTransactionByExternalId) | **GET** /transactions/external_tx_id/{externalTxId} | Find a specific transaction by external transaction ID *TransactionsApi* | [**getTransactions**](docs/TransactionsApi.md#getTransactions) | **GET** /transactions | List transaction history -*TransactionsApi* | [**rescanTransactionsBeta**](docs/TransactionsApi.md#rescanTransactionsBeta) | **POST** /transactions/rescan | rescan array of transactions *TransactionsApi* | [**setConfirmationThresholdByTransactionHash**](docs/TransactionsApi.md#setConfirmationThresholdByTransactionHash) | **POST** /txHash/{txHash}/set_confirmation_threshold | Set confirmation threshold by transaction hash *TransactionsApi* | [**setTransactionConfirmationThreshold**](docs/TransactionsApi.md#setTransactionConfirmationThreshold) | **POST** /transactions/{txId}/set_confirmation_threshold | Set confirmation threshold by transaction ID *TransactionsApi* | [**unfreezeTransaction**](docs/TransactionsApi.md#unfreezeTransaction) | **POST** /transactions/{txId}/unfreeze | Unfreeze a transaction *TransactionsApi* | [**validateAddress**](docs/TransactionsApi.md#validateAddress) | **GET** /transactions/validate_address/{assetId}/{address} | Validate destination address -*TravelRuleApi* | [**getVASPByDID**](docs/TravelRuleApi.md#getVASPByDID) | **GET** /screening/travel_rule/vasp/{did} | Get VASP details -*TravelRuleApi* | [**getVASPs**](docs/TravelRuleApi.md#getVASPs) | **GET** /screening/travel_rule/vasp | Get All VASPs -*TravelRuleApi* | [**getVaspForVault**](docs/TravelRuleApi.md#getVaspForVault) | **GET** /screening/travel_rule/vault/{vaultAccountId}/vasp | Get assigned VASP to vault -*TravelRuleApi* | [**setVaspForVault**](docs/TravelRuleApi.md#setVaspForVault) | **POST** /screening/travel_rule/vault/{vaultAccountId}/vasp | Assign VASP to vault -*TravelRuleApi* | [**updateVasp**](docs/TravelRuleApi.md#updateVasp) | **PUT** /screening/travel_rule/vasp/update | Add jsonDidKey to VASP details -*TravelRuleApi* | [**validateFullTravelRuleTransaction**](docs/TravelRuleApi.md#validateFullTravelRuleTransaction) | **POST** /screening/travel_rule/transaction/validate/full | Validate Full Travel Rule Transaction +*TravelRuleBetaApi* | [**getVASPByDID**](docs/TravelRuleBetaApi.md#getVASPByDID) | **GET** /screening/travel_rule/vasp/{did} | Get VASP details +*TravelRuleBetaApi* | [**getVASPs**](docs/TravelRuleBetaApi.md#getVASPs) | **GET** /screening/travel_rule/vasp | Get All VASPs +*TravelRuleBetaApi* | [**updateVasp**](docs/TravelRuleBetaApi.md#updateVasp) | **PUT** /screening/travel_rule/vasp/update | Add jsonDidKey to VASP details +*TravelRuleBetaApi* | [**validateFullTravelRuleTransaction**](docs/TravelRuleBetaApi.md#validateFullTravelRuleTransaction) | **POST** /screening/travel_rule/transaction/validate/full | Validate Full Travel Rule Transaction +*TravelRuleBetaApi* | [**validateTravelRuleTransaction**](docs/TravelRuleBetaApi.md#validateTravelRuleTransaction) | **POST** /screening/travel_rule/transaction/validate | Validate Travel Rule Transaction *UserGroupsBetaApi* | [**createUserGroup**](docs/UserGroupsBetaApi.md#createUserGroup) | **POST** /management/user_groups | Create user group *UserGroupsBetaApi* | [**deleteUserGroup**](docs/UserGroupsBetaApi.md#deleteUserGroup) | **DELETE** /management/user_groups/{groupId} | Delete user group *UserGroupsBetaApi* | [**getUserGroup**](docs/UserGroupsBetaApi.md#getUserGroup) | **GET** /management/user_groups/{groupId} | Get user group @@ -409,17 +323,12 @@ Class | Method | HTTP request | Description *UserGroupsBetaApi* | [**updateUserGroup**](docs/UserGroupsBetaApi.md#updateUserGroup) | **PUT** /management/user_groups/{groupId} | Update user group *UsersApi* | [**getUsers**](docs/UsersApi.md#getUsers) | **GET** /users | List users *VaultsApi* | [**activateAssetForVaultAccount**](docs/VaultsApi.md#activateAssetForVaultAccount) | **POST** /vault/accounts/{vaultAccountId}/{assetId}/activate | Activate a wallet in a vault account -*VaultsApi* | [**attachTagsToVaultAccounts**](docs/VaultsApi.md#attachTagsToVaultAccounts) | **POST** /vault/accounts/attached_tags/attach | Attach tags to a vault accounts *VaultsApi* | [**createLegacyAddress**](docs/VaultsApi.md#createLegacyAddress) | **POST** /vault/accounts/{vaultAccountId}/{assetId}/addresses/{addressId}/create_legacy | Convert a segwit address to legacy format *VaultsApi* | [**createMultipleAccounts**](docs/VaultsApi.md#createMultipleAccounts) | **POST** /vault/accounts/bulk | Bulk creation of new vault accounts -*VaultsApi* | [**createMultipleDepositAddresses**](docs/VaultsApi.md#createMultipleDepositAddresses) | **POST** /vault/accounts/addresses/bulk | Bulk creation of new deposit addresses *VaultsApi* | [**createVaultAccount**](docs/VaultsApi.md#createVaultAccount) | **POST** /vault/accounts | Create a new vault account *VaultsApi* | [**createVaultAccountAsset**](docs/VaultsApi.md#createVaultAccountAsset) | **POST** /vault/accounts/{vaultAccountId}/{assetId} | Create a new wallet *VaultsApi* | [**createVaultAccountAssetAddress**](docs/VaultsApi.md#createVaultAccountAssetAddress) | **POST** /vault/accounts/{vaultAccountId}/{assetId}/addresses | Create new asset deposit address -*VaultsApi* | [**detachTagsFromVaultAccounts**](docs/VaultsApi.md#detachTagsFromVaultAccounts) | **POST** /vault/accounts/attached_tags/detach | Detach tags from a vault accounts *VaultsApi* | [**getAssetWallets**](docs/VaultsApi.md#getAssetWallets) | **GET** /vault/asset_wallets | List asset wallets (Paginated) -*VaultsApi* | [**getCreateMultipleDepositAddressesJobStatus**](docs/VaultsApi.md#getCreateMultipleDepositAddressesJobStatus) | **GET** /vault/accounts/addresses/bulk/{jobId} | Get job status of bulk creation of new deposit addresses -*VaultsApi* | [**getCreateMultipleVaultAccountsJobStatus**](docs/VaultsApi.md#getCreateMultipleVaultAccountsJobStatus) | **GET** /vault/accounts/bulk/{jobId} | Get job status of bulk creation of new vault accounts *VaultsApi* | [**getMaxSpendableAmount**](docs/VaultsApi.md#getMaxSpendableAmount) | **GET** /vault/accounts/{vaultAccountId}/{assetId}/max_spendable_amount | Get the maximum spendable amount in a single transaction. *VaultsApi* | [**getPagedVaultAccounts**](docs/VaultsApi.md#getPagedVaultAccounts) | **GET** /vault/accounts_paged | List vault accounts (Paginated) *VaultsApi* | [**getPublicKeyInfo**](docs/VaultsApi.md#getPublicKeyInfo) | **GET** /vault/public_key_info | Get the public key information @@ -444,18 +353,6 @@ Class | Method | HTTP request | Description *Web3ConnectionsApi* | [**submit**](docs/Web3ConnectionsApi.md#submit) | **PUT** /connections/wc/{id} | Respond to a pending Web3 connection request. *WebhooksApi* | [**resendTransactionWebhooks**](docs/WebhooksApi.md#resendTransactionWebhooks) | **POST** /webhooks/resend/{txId} | Resend failed webhooks for a transaction by ID *WebhooksApi* | [**resendWebhooks**](docs/WebhooksApi.md#resendWebhooks) | **POST** /webhooks/resend | Resend failed webhooks -*WebhooksV2Api* | [**createWebhook**](docs/WebhooksV2Api.md#createWebhook) | **POST** /webhooks | Create new webhook -*WebhooksV2Api* | [**deleteWebhook**](docs/WebhooksV2Api.md#deleteWebhook) | **DELETE** /webhooks/{webhookId} | Delete webhook -*WebhooksV2Api* | [**getNotification**](docs/WebhooksV2Api.md#getNotification) | **GET** /webhooks/{webhookId}/notifications/{notificationId} | Get notification by id -*WebhooksV2Api* | [**getNotificationAttempts**](docs/WebhooksV2Api.md#getNotificationAttempts) | **GET** /webhooks/{webhookId}/notifications/{notificationId}/attempts | Get notification attempts -*WebhooksV2Api* | [**getNotifications**](docs/WebhooksV2Api.md#getNotifications) | **GET** /webhooks/{webhookId}/notifications | Get all notifications by webhook id -*WebhooksV2Api* | [**getResendJobStatus**](docs/WebhooksV2Api.md#getResendJobStatus) | **GET** /webhooks/{webhookId}/notifications/resend_failed/jobs/{jobId} | Get resend job status -*WebhooksV2Api* | [**getWebhook**](docs/WebhooksV2Api.md#getWebhook) | **GET** /webhooks/{webhookId} | Get webhook by id -*WebhooksV2Api* | [**getWebhooks**](docs/WebhooksV2Api.md#getWebhooks) | **GET** /webhooks | Get all webhooks -*WebhooksV2Api* | [**resendFailedNotifications**](docs/WebhooksV2Api.md#resendFailedNotifications) | **POST** /webhooks/{webhookId}/notifications/resend_failed | Resend failed notifications -*WebhooksV2Api* | [**resendNotificationById**](docs/WebhooksV2Api.md#resendNotificationById) | **POST** /webhooks/{webhookId}/notifications/{notificationId}/resend | Resend notification by id -*WebhooksV2Api* | [**resendNotificationsByResourceId**](docs/WebhooksV2Api.md#resendNotificationsByResourceId) | **POST** /webhooks/{webhookId}/notifications/resend_by_resource | Resend notifications by resource Id -*WebhooksV2Api* | [**updateWebhook**](docs/WebhooksV2Api.md#updateWebhook) | **PATCH** /webhooks/{webhookId} | Update webhook *WhitelistIpAddressesApi* | [**getWhitelistIpAddresses**](docs/WhitelistIpAddressesApi.md#getWhitelistIpAddresses) | **GET** /management/api_users/{userId}/whitelist_ip_addresses | Gets whitelisted ip addresses *WorkspaceStatusBetaApi* | [**getWorkspaceStatus**](docs/WorkspaceStatusBetaApi.md#getWorkspaceStatus) | **GET** /management/workspace_status | Returns current workspace status @@ -463,118 +360,51 @@ Class | Method | HTTP request | Description ## Documentation for Models - [APIUser](docs/APIUser.md) - - [AbaPaymentInfo](docs/AbaPaymentInfo.md) - [AbiFunction](docs/AbiFunction.md) - - [AccessType](docs/AccessType.md) - [Account](docs/Account.md) - - [AccountAccess](docs/AccountAccess.md) - - [AccountBase](docs/AccountBase.md) - - [AccountBasedAccessProvider](docs/AccountBasedAccessProvider.md) - - [AccountConfig](docs/AccountConfig.md) - - [AccountHolderDetails](docs/AccountHolderDetails.md) - - [AccountIdentifier](docs/AccountIdentifier.md) - - [AccountProviderID](docs/AccountProviderID.md) - - [AccountReference](docs/AccountReference.md) - [AccountType](docs/AccountType.md) - - [AccountType2](docs/AccountType2.md) - - [AchPaymentInfo](docs/AchPaymentInfo.md) - - [AdapterProcessingResult](docs/AdapterProcessingResult.md) - - [AddAbiRequestDto](docs/AddAbiRequestDto.md) - [AddAssetToExternalWalletRequest](docs/AddAssetToExternalWalletRequest.md) + - [AddAssetToExternalWalletRequestOneOf](docs/AddAssetToExternalWalletRequestOneOf.md) + - [AddAssetToExternalWalletRequestOneOf1](docs/AddAssetToExternalWalletRequestOneOf1.md) + - [AddAssetToExternalWalletRequestOneOf1AdditionalInfo](docs/AddAssetToExternalWalletRequestOneOf1AdditionalInfo.md) + - [AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf](docs/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf.md) + - [AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1](docs/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1.md) + - [AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2](docs/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2.md) - [AddCollateralRequestBody](docs/AddCollateralRequestBody.md) - [AddContractAssetRequest](docs/AddContractAssetRequest.md) - - [AddCosignerRequest](docs/AddCosignerRequest.md) - - [AddCosignerResponse](docs/AddCosignerResponse.md) - - [AddExchangeAccountRequest](docs/AddExchangeAccountRequest.md) - - [AddExchangeAccountResponse](docs/AddExchangeAccountResponse.md) - - [AdditionalInfo](docs/AdditionalInfo.md) - - [AdditionalInfoRequest](docs/AdditionalInfoRequest.md) - - [AdditionalInfoRequestAdditionalInfo](docs/AdditionalInfoRequestAdditionalInfo.md) - - [AddressNotAvailableError](docs/AddressNotAvailableError.md) + - [AdditionalInfoDto](docs/AdditionalInfoDto.md) - [AmlRegistrationResult](docs/AmlRegistrationResult.md) - - [AmlRegistrationResultFullPayload](docs/AmlRegistrationResultFullPayload.md) - [AmlScreeningResult](docs/AmlScreeningResult.md) - - [AmlVerdictManualRequest](docs/AmlVerdictManualRequest.md) - - [AmlVerdictManualResponse](docs/AmlVerdictManualResponse.md) + - [AmountAggregationTimePeriodMethod](docs/AmountAggregationTimePeriodMethod.md) - [AmountAndChainDescriptor](docs/AmountAndChainDescriptor.md) - [AmountInfo](docs/AmountInfo.md) - - [AmountOverTimeConfig](docs/AmountOverTimeConfig.md) - - [AmountOverTimeConfigRange](docs/AmountOverTimeConfigRange.md) - - [AmountRange](docs/AmountRange.md) - [ApiKey](docs/ApiKey.md) - [ApiKeysPaginatedResponse](docs/ApiKeysPaginatedResponse.md) - - [ApproversConfig](docs/ApproversConfig.md) - - [ApproversConfigApprovalGroupsInner](docs/ApproversConfigApprovalGroupsInner.md) - - [Asset](docs/Asset.md) - [AssetAlreadyExistHttpError](docs/AssetAlreadyExistHttpError.md) - [AssetAmount](docs/AssetAmount.md) - [AssetBadRequestErrorResponse](docs/AssetBadRequestErrorResponse.md) - - [AssetClass](docs/AssetClass.md) - - [AssetConfig](docs/AssetConfig.md) - [AssetConflictErrorResponse](docs/AssetConflictErrorResponse.md) - - [AssetDetailsMetadata](docs/AssetDetailsMetadata.md) - - [AssetDetailsOnchain](docs/AssetDetailsOnchain.md) - - [AssetFeature](docs/AssetFeature.md) + - [AssetDoesNotExistHttpError](docs/AssetDoesNotExistHttpError.md) - [AssetForbiddenErrorResponse](docs/AssetForbiddenErrorResponse.md) - [AssetInternalServerErrorResponse](docs/AssetInternalServerErrorResponse.md) - - [AssetMedia](docs/AssetMedia.md) - - [AssetMediaAttributes](docs/AssetMediaAttributes.md) - - [AssetMetadata](docs/AssetMetadata.md) - [AssetMetadataDto](docs/AssetMetadataDto.md) - - [AssetMetadataRequest](docs/AssetMetadataRequest.md) - [AssetNotFoundErrorResponse](docs/AssetNotFoundErrorResponse.md) - - [AssetNote](docs/AssetNote.md) - - [AssetNoteRequest](docs/AssetNoteRequest.md) - - [AssetOnchain](docs/AssetOnchain.md) - - [AssetPriceForbiddenErrorResponse](docs/AssetPriceForbiddenErrorResponse.md) - - [AssetPriceNotFoundErrorResponse](docs/AssetPriceNotFoundErrorResponse.md) - - [AssetPriceResponse](docs/AssetPriceResponse.md) - [AssetResponse](docs/AssetResponse.md) - - [AssetScope](docs/AssetScope.md) + - [AssetResponseMetadata](docs/AssetResponseMetadata.md) + - [AssetResponseOnchain](docs/AssetResponseOnchain.md) - [AssetTypeResponse](docs/AssetTypeResponse.md) - - [AssetTypesConfigInner](docs/AssetTypesConfigInner.md) - [AssetWallet](docs/AssetWallet.md) - [AuditLogData](docs/AuditLogData.md) - [AuditorData](docs/AuditorData.md) - [AuthorizationGroups](docs/AuthorizationGroups.md) - [AuthorizationInfo](docs/AuthorizationInfo.md) - - [BaseProvider](docs/BaseProvider.md) - - [BasicAddressRequest](docs/BasicAddressRequest.md) - [BlockInfo](docs/BlockInfo.md) - - [BlockchainExplorer](docs/BlockchainExplorer.md) - - [BlockchainMedia](docs/BlockchainMedia.md) - - [BlockchainMetadata](docs/BlockchainMetadata.md) - - [BlockchainNotFoundErrorResponse](docs/BlockchainNotFoundErrorResponse.md) - - [BlockchainOnchain](docs/BlockchainOnchain.md) - - [BlockchainResponse](docs/BlockchainResponse.md) - - [BlockchainTransfer](docs/BlockchainTransfer.md) - - [BpsFee](docs/BpsFee.md) - - [BusinessIdentification](docs/BusinessIdentification.md) - - [CallbackHandler](docs/CallbackHandler.md) - - [CallbackHandlerRequest](docs/CallbackHandlerRequest.md) - [CancelTransactionResponse](docs/CancelTransactionResponse.md) - - [Capability](docs/Capability.md) - - [ChainDescriptor](docs/ChainDescriptor.md) - - [ChainInfoResponse](docs/ChainInfoResponse.md) - - [ChannelDvnConfigWithConfirmations](docs/ChannelDvnConfigWithConfirmations.md) - - [ClaimRewardsRequest](docs/ClaimRewardsRequest.md) - - [CollectionBurnRequestDto](docs/CollectionBurnRequestDto.md) - - [CollectionBurnResponseDto](docs/CollectionBurnResponseDto.md) - - [CollectionDeployRequestDto](docs/CollectionDeployRequestDto.md) - - [CollectionLinkDto](docs/CollectionLinkDto.md) + - [ChainInfoResponseDto](docs/ChainInfoResponseDto.md) - [CollectionMetadataDto](docs/CollectionMetadataDto.md) - - [CollectionMintRequestDto](docs/CollectionMintRequestDto.md) - - [CollectionMintResponseDto](docs/CollectionMintResponseDto.md) - [CollectionOwnershipResponse](docs/CollectionOwnershipResponse.md) - - [CollectionTokenMetadataAttributeDto](docs/CollectionTokenMetadataAttributeDto.md) - - [CollectionTokenMetadataDto](docs/CollectionTokenMetadataDto.md) - - [CollectionType](docs/CollectionType.md) - - [CommittedQuoteType](docs/CommittedQuoteType.md) - - [ComplianceResultFullPayload](docs/ComplianceResultFullPayload.md) - - [ComplianceResultStatusesEnum](docs/ComplianceResultStatusesEnum.md) - - [ComplianceResults](docs/ComplianceResults.md) + - [ComplianceResult](docs/ComplianceResult.md) - [ComplianceScreeningResult](docs/ComplianceScreeningResult.md) - - [ComplianceScreeningResultFullPayload](docs/ComplianceScreeningResultFullPayload.md) - [ConfigChangeRequestStatus](docs/ConfigChangeRequestStatus.md) - [ConfigConversionOperationSnapshot](docs/ConfigConversionOperationSnapshot.md) - [ConfigDisbursementOperationSnapshot](docs/ConfigDisbursementOperationSnapshot.md) @@ -582,41 +412,15 @@ Class | Method | HTTP request | Description - [ConfigOperationSnapshot](docs/ConfigOperationSnapshot.md) - [ConfigOperationStatus](docs/ConfigOperationStatus.md) - [ConfigTransferOperationSnapshot](docs/ConfigTransferOperationSnapshot.md) - - [ConnectedAccount](docs/ConnectedAccount.md) - - [ConnectedAccountApprovalStatus](docs/ConnectedAccountApprovalStatus.md) - - [ConnectedAccountAssetType](docs/ConnectedAccountAssetType.md) - - [ConnectedAccountBalances](docs/ConnectedAccountBalances.md) - - [ConnectedAccountBalancesResponse](docs/ConnectedAccountBalancesResponse.md) - - [ConnectedAccountCapability](docs/ConnectedAccountCapability.md) - - [ConnectedAccountManifest](docs/ConnectedAccountManifest.md) - - [ConnectedAccountRateResponse](docs/ConnectedAccountRateResponse.md) - - [ConnectedAccountTotalBalance](docs/ConnectedAccountTotalBalance.md) - - [ConnectedAccountTradingPair](docs/ConnectedAccountTradingPair.md) - - [ConnectedAccountTradingPairSupportedType](docs/ConnectedAccountTradingPairSupportedType.md) - - [ConnectedAccountTradingPairsResponse](docs/ConnectedAccountTradingPairsResponse.md) - - [ConnectedAccountsResponse](docs/ConnectedAccountsResponse.md) - - [ConnectedSingleAccount](docs/ConnectedSingleAccount.md) - - [ConnectedSingleAccountResponse](docs/ConnectedSingleAccountResponse.md) - [ConsoleUser](docs/ConsoleUser.md) - [ContractAbiResponseDto](docs/ContractAbiResponseDto.md) - - [ContractAbiResponseDtoAbiInner](docs/ContractAbiResponseDtoAbiInner.md) - [ContractAttributes](docs/ContractAttributes.md) - - [ContractDataDecodeDataType](docs/ContractDataDecodeDataType.md) - - [ContractDataDecodeError](docs/ContractDataDecodeError.md) - - [ContractDataDecodeRequest](docs/ContractDataDecodeRequest.md) - - [ContractDataDecodeRequestData](docs/ContractDataDecodeRequestData.md) - - [ContractDataDecodeResponseParams](docs/ContractDataDecodeResponseParams.md) - - [ContractDataDecodedResponse](docs/ContractDataDecodedResponse.md) - - [ContractDataLogDataParam](docs/ContractDataLogDataParam.md) - [ContractDeployRequest](docs/ContractDeployRequest.md) - [ContractDeployResponse](docs/ContractDeployResponse.md) - [ContractDoc](docs/ContractDoc.md) - [ContractMetadataDto](docs/ContractMetadataDto.md) - - [ContractMethodConfig](docs/ContractMethodConfig.md) - - [ContractMethodPattern](docs/ContractMethodPattern.md) - [ContractTemplateDto](docs/ContractTemplateDto.md) - [ContractUploadRequest](docs/ContractUploadRequest.md) - - [ContractWithAbiDto](docs/ContractWithAbiDto.md) - [ConversionConfigOperation](docs/ConversionConfigOperation.md) - [ConversionOperationConfigParams](docs/ConversionOperationConfigParams.md) - [ConversionOperationExecution](docs/ConversionOperationExecution.md) @@ -646,20 +450,11 @@ Class | Method | HTTP request | Description - [CreateDisbursementConfigOperationRequest](docs/CreateDisbursementConfigOperationRequest.md) - [CreateInternalTransferRequest](docs/CreateInternalTransferRequest.md) - [CreateInternalWalletAssetRequest](docs/CreateInternalWalletAssetRequest.md) - - [CreateMultichainTokenRequest](docs/CreateMultichainTokenRequest.md) - [CreateMultipleAccountsRequest](docs/CreateMultipleAccountsRequest.md) - - [CreateMultipleDepositAddressesJobStatus](docs/CreateMultipleDepositAddressesJobStatus.md) - - [CreateMultipleDepositAddressesRequest](docs/CreateMultipleDepositAddressesRequest.md) - - [CreateMultipleVaultAccountsJobStatus](docs/CreateMultipleVaultAccountsJobStatus.md) - [CreateNcwConnectionRequest](docs/CreateNcwConnectionRequest.md) - [CreateNetworkIdRequest](docs/CreateNetworkIdRequest.md) - - [CreateOrderRequest](docs/CreateOrderRequest.md) - [CreatePayoutRequest](docs/CreatePayoutRequest.md) - - [CreateQuote](docs/CreateQuote.md) - - [CreateQuoteScopeInner](docs/CreateQuoteScopeInner.md) - [CreateSigningKeyDto](docs/CreateSigningKeyDto.md) - - [CreateSigningKeyDtoProofOfOwnership](docs/CreateSigningKeyDtoProofOfOwnership.md) - - [CreateTagRequest](docs/CreateTagRequest.md) - [CreateTokenRequestDto](docs/CreateTokenRequestDto.md) - [CreateTokenRequestDtoCreateParams](docs/CreateTokenRequestDtoCreateParams.md) - [CreateTransactionResponse](docs/CreateTransactionResponse.md) @@ -671,29 +466,19 @@ Class | Method | HTTP request | Description - [CreateVaultAccountRequest](docs/CreateVaultAccountRequest.md) - [CreateVaultAssetResponse](docs/CreateVaultAssetResponse.md) - [CreateWalletRequest](docs/CreateWalletRequest.md) - - [CreateWebhookRequest](docs/CreateWebhookRequest.md) - [CreateWorkflowExecutionRequestParamsInner](docs/CreateWorkflowExecutionRequestParamsInner.md) - [CustomRoutingDest](docs/CustomRoutingDest.md) - - [DVPSettlement](docs/DVPSettlement.md) - [DefaultNetworkRoutingDest](docs/DefaultNetworkRoutingDest.md) - - [Delegation](docs/Delegation.md) - - [DelegationSummary](docs/DelegationSummary.md) + - [DelegationDto](docs/DelegationDto.md) + - [DelegationSummaryDto](docs/DelegationSummaryDto.md) - [DeleteNetworkConnectionResponse](docs/DeleteNetworkConnectionResponse.md) - [DeleteNetworkIdResponse](docs/DeleteNetworkIdResponse.md) - - [DeployLayerZeroAdaptersRequest](docs/DeployLayerZeroAdaptersRequest.md) - - [DeployableAddressResponse](docs/DeployableAddressResponse.md) - - [DeployedContractNotFoundError](docs/DeployedContractNotFoundError.md) - [DeployedContractResponseDto](docs/DeployedContractResponseDto.md) - [DeployedContractsPaginatedResponse](docs/DeployedContractsPaginatedResponse.md) - [DepositFundsFromLinkedDDAResponse](docs/DepositFundsFromLinkedDDAResponse.md) - - [DerivationPathConfig](docs/DerivationPathConfig.md) - - [DesignatedSignersConfig](docs/DesignatedSignersConfig.md) - [Destination](docs/Destination.md) - - [DestinationConfig](docs/DestinationConfig.md) - [DestinationTransferPeerPath](docs/DestinationTransferPeerPath.md) - [DestinationTransferPeerPathResponse](docs/DestinationTransferPeerPathResponse.md) - - [DirectAccess](docs/DirectAccess.md) - - [DirectAccessProvider](docs/DirectAccessProvider.md) - [DisbursementAmountInstruction](docs/DisbursementAmountInstruction.md) - [DisbursementConfigOperation](docs/DisbursementConfigOperation.md) - [DisbursementInstruction](docs/DisbursementInstruction.md) @@ -715,31 +500,11 @@ Class | Method | HTTP request | Description - [DraftReviewAndValidationResponse](docs/DraftReviewAndValidationResponse.md) - [DropTransactionRequest](docs/DropTransactionRequest.md) - [DropTransactionResponse](docs/DropTransactionResponse.md) - - [DvnConfig](docs/DvnConfig.md) - - [DvnConfigWithConfirmations](docs/DvnConfigWithConfirmations.md) - [EVMTokenCreateParamsDto](docs/EVMTokenCreateParamsDto.md) - [EditGasStationConfigurationResponse](docs/EditGasStationConfigurationResponse.md) - - [EmbeddedWallet](docs/EmbeddedWallet.md) - - [EmbeddedWalletAccount](docs/EmbeddedWalletAccount.md) - - [EmbeddedWalletAddressDetails](docs/EmbeddedWalletAddressDetails.md) - - [EmbeddedWalletAlgoritm](docs/EmbeddedWalletAlgoritm.md) - - [EmbeddedWalletAssetBalance](docs/EmbeddedWalletAssetBalance.md) - - [EmbeddedWalletAssetResponse](docs/EmbeddedWalletAssetResponse.md) - - [EmbeddedWalletAssetRewardInfo](docs/EmbeddedWalletAssetRewardInfo.md) - - [EmbeddedWalletDevice](docs/EmbeddedWalletDevice.md) - - [EmbeddedWalletDeviceKeySetupResponse](docs/EmbeddedWalletDeviceKeySetupResponse.md) - - [EmbeddedWalletDeviceKeySetupResponseSetupStatusInner](docs/EmbeddedWalletDeviceKeySetupResponseSetupStatusInner.md) - - [EmbeddedWalletLatestBackupKey](docs/EmbeddedWalletLatestBackupKey.md) - - [EmbeddedWalletLatestBackupResponse](docs/EmbeddedWalletLatestBackupResponse.md) - - [EmbeddedWalletPaginatedAddressesResponse](docs/EmbeddedWalletPaginatedAddressesResponse.md) - - [EmbeddedWalletPaginatedAssetsResponse](docs/EmbeddedWalletPaginatedAssetsResponse.md) - - [EmbeddedWalletPaginatedWalletsResponse](docs/EmbeddedWalletPaginatedWalletsResponse.md) - - [EmbeddedWalletSetUpStatus](docs/EmbeddedWalletSetUpStatus.md) - - [ErrorCodes](docs/ErrorCodes.md) - [ErrorResponse](docs/ErrorResponse.md) - [ErrorResponseError](docs/ErrorResponseError.md) - [ErrorSchema](docs/ErrorSchema.md) - - [EstimatedFeeDetails](docs/EstimatedFeeDetails.md) - [EstimatedNetworkFeeResponse](docs/EstimatedNetworkFeeResponse.md) - [EstimatedTransactionFeeResponse](docs/EstimatedTransactionFeeResponse.md) - [ExchangeAccount](docs/ExchangeAccount.md) @@ -749,56 +514,32 @@ Class | Method | HTTP request | Description - [ExchangeSettlementTransactionsResponse](docs/ExchangeSettlementTransactionsResponse.md) - [ExchangeTradingAccount](docs/ExchangeTradingAccount.md) - [ExchangeType](docs/ExchangeType.md) + - [ExecuteActionRequest](docs/ExecuteActionRequest.md) + - [ExecuteActionResponse](docs/ExecuteActionResponse.md) - [ExecutionConversionOperation](docs/ExecutionConversionOperation.md) - [ExecutionDisbursementOperation](docs/ExecutionDisbursementOperation.md) - [ExecutionOperationStatus](docs/ExecutionOperationStatus.md) - - [ExecutionRequestBaseDetails](docs/ExecutionRequestBaseDetails.md) - - [ExecutionRequestDetails](docs/ExecutionRequestDetails.md) - - [ExecutionResponseBaseDetails](docs/ExecutionResponseBaseDetails.md) - - [ExecutionResponseDetails](docs/ExecutionResponseDetails.md) - [ExecutionScreeningOperation](docs/ExecutionScreeningOperation.md) - - [ExecutionStep](docs/ExecutionStep.md) - - [ExecutionStepDetails](docs/ExecutionStepDetails.md) - - [ExecutionStepError](docs/ExecutionStepError.md) - - [ExecutionStepStatusEnum](docs/ExecutionStepStatusEnum.md) - - [ExecutionStepType](docs/ExecutionStepType.md) - [ExecutionTransferOperation](docs/ExecutionTransferOperation.md) - - [ExternalAccount](docs/ExternalAccount.md) - [ExternalWalletAsset](docs/ExternalWalletAsset.md) - - [Fee](docs/Fee.md) - - [FeeBreakdown](docs/FeeBreakdown.md) - - [FeeBreakdownOneOf](docs/FeeBreakdownOneOf.md) - - [FeeBreakdownOneOf1](docs/FeeBreakdownOneOf1.md) - [FeeInfo](docs/FeeInfo.md) - - [FeeLevel](docs/FeeLevel.md) - - [FetchAbiRequestDto](docs/FetchAbiRequestDto.md) - [FiatAccount](docs/FiatAccount.md) - [FiatAccountType](docs/FiatAccountType.md) - [FiatAsset](docs/FiatAsset.md) - - [FiatTransfer](docs/FiatTransfer.md) - - [FixedFee](docs/FixedFee.md) - [FreezeTransactionResponse](docs/FreezeTransactionResponse.md) - [FunctionDoc](docs/FunctionDoc.md) - [Funds](docs/Funds.md) - [GasStationConfiguration](docs/GasStationConfiguration.md) - [GasStationConfigurationResponse](docs/GasStationConfigurationResponse.md) - [GasStationPropertiesResponse](docs/GasStationPropertiesResponse.md) - - [GasslessStandardConfigurations](docs/GasslessStandardConfigurations.md) - - [GasslessStandardConfigurationsGaslessStandardConfigurationsValue](docs/GasslessStandardConfigurationsGaslessStandardConfigurationsValue.md) - [GetAPIUsersResponse](docs/GetAPIUsersResponse.md) - [GetAuditLogsResponse](docs/GetAuditLogsResponse.md) + - [GetAuditLogsResponseDTO](docs/GetAuditLogsResponseDTO.md) - [GetConnectionsResponse](docs/GetConnectionsResponse.md) - [GetConsoleUsersResponse](docs/GetConsoleUsersResponse.md) - - [GetDeployableAddressRequest](docs/GetDeployableAddressRequest.md) - - [GetExchangeAccountsCredentialsPublicKeyResponse](docs/GetExchangeAccountsCredentialsPublicKeyResponse.md) - [GetFilterParameter](docs/GetFilterParameter.md) - - [GetLayerZeroDvnConfigResponse](docs/GetLayerZeroDvnConfigResponse.md) - - [GetLayerZeroPeersResponse](docs/GetLayerZeroPeersResponse.md) - - [GetLinkedCollectionsPaginatedResponse](docs/GetLinkedCollectionsPaginatedResponse.md) - [GetMaxSpendableAmountResponse](docs/GetMaxSpendableAmountResponse.md) - - [GetMpcKeysResponse](docs/GetMpcKeysResponse.md) - [GetNFTsResponse](docs/GetNFTsResponse.md) - - [GetOrdersResponse](docs/GetOrdersResponse.md) - [GetOtaStatusResponse](docs/GetOtaStatusResponse.md) - [GetOwnershipTokensResponse](docs/GetOwnershipTokensResponse.md) - [GetSigningKeyResponseDto](docs/GetSigningKeyResponseDto.md) @@ -807,70 +548,19 @@ Class | Method | HTTP request | Description - [GetWhitelistIpAddressesResponse](docs/GetWhitelistIpAddressesResponse.md) - [GetWorkspaceStatusResponse](docs/GetWorkspaceStatusResponse.md) - [HttpContractDoesNotExistError](docs/HttpContractDoesNotExistError.md) - - [IbanPaymentInfo](docs/IbanPaymentInfo.md) - - [Identification](docs/Identification.md) - - [IdlType](docs/IdlType.md) - - [IndicativeQuoteType](docs/IndicativeQuoteType.md) - - [InitiatorConfig](docs/InitiatorConfig.md) - - [InitiatorConfigPattern](docs/InitiatorConfigPattern.md) - [InstructionAmount](docs/InstructionAmount.md) - - [InternalReference](docs/InternalReference.md) - [InternalTransferResponse](docs/InternalTransferResponse.md) - - [InvalidParamaterValueError](docs/InvalidParamaterValueError.md) - [Job](docs/Job.md) - [JobCreated](docs/JobCreated.md) - - [LayerZeroAdapterCreateParams](docs/LayerZeroAdapterCreateParams.md) - - [LbtPaymentInfo](docs/LbtPaymentInfo.md) - [LeanAbiFunction](docs/LeanAbiFunction.md) - [LeanContractDto](docs/LeanContractDto.md) - [LeanDeployedContractResponseDto](docs/LeanDeployedContractResponseDto.md) - - [LegacyAmountAggregationTimePeriodMethod](docs/LegacyAmountAggregationTimePeriodMethod.md) - - [LegacyDraftResponse](docs/LegacyDraftResponse.md) - - [LegacyDraftReviewAndValidationResponse](docs/LegacyDraftReviewAndValidationResponse.md) - - [LegacyPolicyAndValidationResponse](docs/LegacyPolicyAndValidationResponse.md) - - [LegacyPolicyCheckResult](docs/LegacyPolicyCheckResult.md) - - [LegacyPolicyMetadata](docs/LegacyPolicyMetadata.md) - - [LegacyPolicyResponse](docs/LegacyPolicyResponse.md) - - [LegacyPolicyRule](docs/LegacyPolicyRule.md) - - [LegacyPolicyRuleAmount](docs/LegacyPolicyRuleAmount.md) - - [LegacyPolicyRuleAmountAggregation](docs/LegacyPolicyRuleAmountAggregation.md) - - [LegacyPolicyRuleAuthorizationGroups](docs/LegacyPolicyRuleAuthorizationGroups.md) - - [LegacyPolicyRuleAuthorizationGroupsGroupsInner](docs/LegacyPolicyRuleAuthorizationGroupsGroupsInner.md) - - [LegacyPolicyRuleCheckResult](docs/LegacyPolicyRuleCheckResult.md) - - [LegacyPolicyRuleDesignatedSigners](docs/LegacyPolicyRuleDesignatedSigners.md) - - [LegacyPolicyRuleDst](docs/LegacyPolicyRuleDst.md) - - [LegacyPolicyRuleError](docs/LegacyPolicyRuleError.md) - - [LegacyPolicyRuleOperators](docs/LegacyPolicyRuleOperators.md) - - [LegacyPolicyRuleRawMessageSigning](docs/LegacyPolicyRuleRawMessageSigning.md) - - [LegacyPolicyRuleRawMessageSigningDerivationPath](docs/LegacyPolicyRuleRawMessageSigningDerivationPath.md) - - [LegacyPolicyRuleSrc](docs/LegacyPolicyRuleSrc.md) - - [LegacyPolicyRules](docs/LegacyPolicyRules.md) - - [LegacyPolicySrcOrDestSubType](docs/LegacyPolicySrcOrDestSubType.md) - - [LegacyPolicySrcOrDestType](docs/LegacyPolicySrcOrDestType.md) - - [LegacyPolicyStatus](docs/LegacyPolicyStatus.md) - - [LegacyPolicyValidation](docs/LegacyPolicyValidation.md) - - [LegacyPublishDraftRequest](docs/LegacyPublishDraftRequest.md) - - [LegacyPublishResult](docs/LegacyPublishResult.md) - - [LegacySrcOrDestAttributesInner](docs/LegacySrcOrDestAttributesInner.md) - - [LimitExecutionRequestDetails](docs/LimitExecutionRequestDetails.md) - - [LimitExecutionResponseDetails](docs/LimitExecutionResponseDetails.md) - - [ListAssetsResponse](docs/ListAssetsResponse.md) - - [ListBlockchainsResponse](docs/ListBlockchainsResponse.md) - [ListOwnedCollectionsResponse](docs/ListOwnedCollectionsResponse.md) - [ListOwnedTokensResponse](docs/ListOwnedTokensResponse.md) - - [Manifest](docs/Manifest.md) - - [MarketExecutionRequestDetails](docs/MarketExecutionRequestDetails.md) - - [MarketExecutionResponseDetails](docs/MarketExecutionResponseDetails.md) - - [MarketRequoteRequestDetails](docs/MarketRequoteRequestDetails.md) - [MediaEntityResponse](docs/MediaEntityResponse.md) - - [MergeStakeAccountsRequest](docs/MergeStakeAccountsRequest.md) - - [MergeStakeAccountsResponse](docs/MergeStakeAccountsResponse.md) - [ModifySigningKeyAgentIdDto](docs/ModifySigningKeyAgentIdDto.md) - [ModifySigningKeyDto](docs/ModifySigningKeyDto.md) - [ModifyValidationKeyDto](docs/ModifyValidationKeyDto.md) - - [MomoPaymentInfo](docs/MomoPaymentInfo.md) - - [MpcKey](docs/MpcKey.md) - - [MultichainDeploymentMetadata](docs/MultichainDeploymentMetadata.md) - [NetworkChannel](docs/NetworkChannel.md) - [NetworkConnection](docs/NetworkConnection.md) - [NetworkConnectionResponse](docs/NetworkConnectionResponse.md) @@ -881,41 +571,24 @@ Class | Method | HTTP request | Description - [NetworkIdResponse](docs/NetworkIdResponse.md) - [NetworkIdRoutingPolicyValue](docs/NetworkIdRoutingPolicyValue.md) - [NetworkRecord](docs/NetworkRecord.md) - - [NewAddress](docs/NewAddress.md) - [NoneNetworkRoutingDest](docs/NoneNetworkRoutingDest.md) - [NotFoundException](docs/NotFoundException.md) - - [Notification](docs/Notification.md) - - [NotificationAttempt](docs/NotificationAttempt.md) - - [NotificationAttemptsPaginatedResponse](docs/NotificationAttemptsPaginatedResponse.md) - - [NotificationPaginatedResponse](docs/NotificationPaginatedResponse.md) - - [NotificationStatus](docs/NotificationStatus.md) - - [NotificationWithData](docs/NotificationWithData.md) - [OneTimeAddress](docs/OneTimeAddress.md) - [OneTimeAddressAccount](docs/OneTimeAddressAccount.md) - - [OneTimeAddressReference](docs/OneTimeAddressReference.md) - [OperationExecutionFailure](docs/OperationExecutionFailure.md) - - [OrderDetails](docs/OrderDetails.md) - - [OrderStatus](docs/OrderStatus.md) - - [OrderSummary](docs/OrderSummary.md) - [PaginatedAddressResponse](docs/PaginatedAddressResponse.md) - [PaginatedAddressResponsePaging](docs/PaginatedAddressResponsePaging.md) - [PaginatedAssetWalletResponse](docs/PaginatedAssetWalletResponse.md) - [PaginatedAssetWalletResponsePaging](docs/PaginatedAssetWalletResponsePaging.md) - - [PaginatedAssetsResponse](docs/PaginatedAssetsResponse.md) - [Paging](docs/Paging.md) - - [PairApiKeyRequest](docs/PairApiKeyRequest.md) - - [PairApiKeyResponse](docs/PairApiKeyResponse.md) - [Parameter](docs/Parameter.md) - [ParameterWithValue](docs/ParameterWithValue.md) - - [ParticipantRelationshipType](docs/ParticipantRelationshipType.md) - - [ParticipantsIdentification](docs/ParticipantsIdentification.md) - [PayeeAccount](docs/PayeeAccount.md) - [PayeeAccountResponse](docs/PayeeAccountResponse.md) - [PayeeAccountType](docs/PayeeAccountType.md) - [PaymentAccount](docs/PaymentAccount.md) - [PaymentAccountResponse](docs/PaymentAccountResponse.md) - [PaymentAccountType](docs/PaymentAccountType.md) - - [PaymentInstructions](docs/PaymentInstructions.md) - [PayoutInitMethod](docs/PayoutInitMethod.md) - [PayoutInstruction](docs/PayoutInstruction.md) - [PayoutInstructionResponse](docs/PayoutInstructionResponse.md) @@ -923,101 +596,67 @@ Class | Method | HTTP request | Description - [PayoutResponse](docs/PayoutResponse.md) - [PayoutState](docs/PayoutState.md) - [PayoutStatus](docs/PayoutStatus.md) - - [PeerAdapterInfo](docs/PeerAdapterInfo.md) - - [PeerType](docs/PeerType.md) - - [PersonalIdentification](docs/PersonalIdentification.md) - - [PersonalIdentificationFullName](docs/PersonalIdentificationFullName.md) - - [PixPaymentInfo](docs/PixPaymentInfo.md) - - [PlatformAccount](docs/PlatformAccount.md) - - [Players](docs/Players.md) - [PolicyAndValidationResponse](docs/PolicyAndValidationResponse.md) - [PolicyCheckResult](docs/PolicyCheckResult.md) - [PolicyMetadata](docs/PolicyMetadata.md) - - [PolicyOperator](docs/PolicyOperator.md) - [PolicyResponse](docs/PolicyResponse.md) - [PolicyRule](docs/PolicyRule.md) + - [PolicyRuleAmount](docs/PolicyRuleAmount.md) + - [PolicyRuleAmountAggregation](docs/PolicyRuleAmountAggregation.md) + - [PolicyRuleAuthorizationGroups](docs/PolicyRuleAuthorizationGroups.md) + - [PolicyRuleAuthorizationGroupsGroupsInner](docs/PolicyRuleAuthorizationGroupsGroupsInner.md) - [PolicyRuleCheckResult](docs/PolicyRuleCheckResult.md) + - [PolicyRuleDesignatedSigners](docs/PolicyRuleDesignatedSigners.md) + - [PolicyRuleDst](docs/PolicyRuleDst.md) - [PolicyRuleError](docs/PolicyRuleError.md) + - [PolicyRuleOperators](docs/PolicyRuleOperators.md) + - [PolicyRuleRawMessageSigning](docs/PolicyRuleRawMessageSigning.md) + - [PolicyRuleRawMessageSigningDerivationPath](docs/PolicyRuleRawMessageSigningDerivationPath.md) + - [PolicyRuleSrc](docs/PolicyRuleSrc.md) + - [PolicyRules](docs/PolicyRules.md) + - [PolicySrcOrDestSubType](docs/PolicySrcOrDestSubType.md) + - [PolicySrcOrDestType](docs/PolicySrcOrDestType.md) - [PolicyStatus](docs/PolicyStatus.md) - - [PolicyType](docs/PolicyType.md) - [PolicyValidation](docs/PolicyValidation.md) - - [PostOrderSettlement](docs/PostOrderSettlement.md) - - [PostalAddress](docs/PostalAddress.md) - [PreScreening](docs/PreScreening.md) - - [PrefundedSettlement](docs/PrefundedSettlement.md) - - [ProgramCallConfig](docs/ProgramCallConfig.md) - - [Provider](docs/Provider.md) - - [ProviderID](docs/ProviderID.md) - - [ProvidersListResponse](docs/ProvidersListResponse.md) + - [ProviderDto](docs/ProviderDto.md) - [PublicKeyInformation](docs/PublicKeyInformation.md) - [PublishDraftRequest](docs/PublishDraftRequest.md) - [PublishResult](docs/PublishResult.md) - - [Quote](docs/Quote.md) - - [QuoteExecutionRequestDetails](docs/QuoteExecutionRequestDetails.md) - - [QuoteExecutionResponseDetails](docs/QuoteExecutionResponseDetails.md) - - [QuoteExecutionWithRequoteRequestDetails](docs/QuoteExecutionWithRequoteRequestDetails.md) - - [QuoteExecutionWithRequoteRequestDetailsAllOfReQuote](docs/QuoteExecutionWithRequoteRequestDetailsAllOfReQuote.md) - - [QuoteExecutionWithRequoteResponseDetails](docs/QuoteExecutionWithRequoteResponseDetails.md) - - [QuoteExecutionWithRequoteResponseDetailsAllOfReQuote](docs/QuoteExecutionWithRequoteResponseDetailsAllOfReQuote.md) - - [QuotesResponse](docs/QuotesResponse.md) - [ReadAbiFunction](docs/ReadAbiFunction.md) - [ReadCallFunctionDto](docs/ReadCallFunctionDto.md) - - [ReadCallFunctionDtoAbiFunction](docs/ReadCallFunctionDtoAbiFunction.md) - [RedeemFundsToLinkedDDAResponse](docs/RedeemFundsToLinkedDDAResponse.md) - [RegisterNewAssetRequest](docs/RegisterNewAssetRequest.md) - - [ReissueMultichainTokenRequest](docs/ReissueMultichainTokenRequest.md) - - [RelatedRequest](docs/RelatedRequest.md) - - [RelatedTransaction](docs/RelatedTransaction.md) + - [RelatedTransactionDto](docs/RelatedTransactionDto.md) - [RemoveCollateralRequestBody](docs/RemoveCollateralRequestBody.md) - - [RemoveLayerZeroAdapterFailedResult](docs/RemoveLayerZeroAdapterFailedResult.md) - - [RemoveLayerZeroAdaptersRequest](docs/RemoveLayerZeroAdaptersRequest.md) - - [RemoveLayerZeroAdaptersResponse](docs/RemoveLayerZeroAdaptersResponse.md) - - [RemoveLayerZeroPeersRequest](docs/RemoveLayerZeroPeersRequest.md) - - [RemoveLayerZeroPeersResponse](docs/RemoveLayerZeroPeersResponse.md) - [RenameCosigner](docs/RenameCosigner.md) - [RenameVaultAccountResponse](docs/RenameVaultAccountResponse.md) - - [RescanTransaction](docs/RescanTransaction.md) - - [ResendFailedNotificationsJobStatusResponse](docs/ResendFailedNotificationsJobStatusResponse.md) - - [ResendFailedNotificationsRequest](docs/ResendFailedNotificationsRequest.md) - - [ResendFailedNotificationsResponse](docs/ResendFailedNotificationsResponse.md) - - [ResendNotificationsByResourceIdRequest](docs/ResendNotificationsByResourceIdRequest.md) - [ResendTransactionWebhooksRequest](docs/ResendTransactionWebhooksRequest.md) - [ResendWebhooksByTransactionIdResponse](docs/ResendWebhooksByTransactionIdResponse.md) - [ResendWebhooksResponse](docs/ResendWebhooksResponse.md) - [RespondToConnectionRequest](docs/RespondToConnectionRequest.md) - - [RetryRequoteRequestDetails](docs/RetryRequoteRequestDetails.md) - [RewardInfo](docs/RewardInfo.md) - [RewardsInfo](docs/RewardsInfo.md) - - [SOLAccount](docs/SOLAccount.md) - - [SOLAccountWithValue](docs/SOLAccountWithValue.md) - [ScreeningConfigurationsRequest](docs/ScreeningConfigurationsRequest.md) - - [ScreeningMetadataConfig](docs/ScreeningMetadataConfig.md) - [ScreeningOperationExecution](docs/ScreeningOperationExecution.md) - [ScreeningOperationExecutionOutput](docs/ScreeningOperationExecutionOutput.md) - [ScreeningOperationFailure](docs/ScreeningOperationFailure.md) - [ScreeningOperationType](docs/ScreeningOperationType.md) - [ScreeningPolicyResponse](docs/ScreeningPolicyResponse.md) - [ScreeningProviderRulesConfigurationResponse](docs/ScreeningProviderRulesConfigurationResponse.md) - - [ScreeningUpdateConfigurations](docs/ScreeningUpdateConfigurations.md) + - [ScreeningUpdateConfigurationsRequest](docs/ScreeningUpdateConfigurationsRequest.md) - [ScreeningValidationFailure](docs/ScreeningValidationFailure.md) - [ScreeningVerdict](docs/ScreeningVerdict.md) - [ScreeningVerdictMatchedRule](docs/ScreeningVerdictMatchedRule.md) - - [SearchNetworkIdsResponse](docs/SearchNetworkIdsResponse.md) - - [SepaPaymentInfo](docs/SepaPaymentInfo.md) - [SessionDTO](docs/SessionDTO.md) - [SessionMetadata](docs/SessionMetadata.md) - [SetAdminQuorumThresholdRequest](docs/SetAdminQuorumThresholdRequest.md) - [SetAdminQuorumThresholdResponse](docs/SetAdminQuorumThresholdResponse.md) - - [SetAssetPriceRequest](docs/SetAssetPriceRequest.md) - [SetAutoFuelRequest](docs/SetAutoFuelRequest.md) - [SetConfirmationsThresholdRequest](docs/SetConfirmationsThresholdRequest.md) - [SetConfirmationsThresholdResponse](docs/SetConfirmationsThresholdResponse.md) - [SetCustomerRefIdForAddressRequest](docs/SetCustomerRefIdForAddressRequest.md) - [SetCustomerRefIdRequest](docs/SetCustomerRefIdRequest.md) - - [SetLayerZeroDvnConfigRequest](docs/SetLayerZeroDvnConfigRequest.md) - - [SetLayerZeroDvnConfigResponse](docs/SetLayerZeroDvnConfigResponse.md) - - [SetLayerZeroPeersRequest](docs/SetLayerZeroPeersRequest.md) - - [SetLayerZeroPeersResponse](docs/SetLayerZeroPeersResponse.md) - [SetNetworkIdDiscoverabilityRequest](docs/SetNetworkIdDiscoverabilityRequest.md) - [SetNetworkIdNameRequest](docs/SetNetworkIdNameRequest.md) - [SetNetworkIdResponse](docs/SetNetworkIdResponse.md) @@ -1027,29 +666,21 @@ Class | Method | HTTP request | Description - [SetOtaStatusResponseOneOf](docs/SetOtaStatusResponseOneOf.md) - [SetRoutingPolicyRequest](docs/SetRoutingPolicyRequest.md) - [SetRoutingPolicyResponse](docs/SetRoutingPolicyResponse.md) - - [Settlement](docs/Settlement.md) - [SettlementRequestBody](docs/SettlementRequestBody.md) - [SettlementResponse](docs/SettlementResponse.md) - - [SettlementSourceAccount](docs/SettlementSourceAccount.md) - [SignedMessage](docs/SignedMessage.md) - [SignedMessageSignature](docs/SignedMessageSignature.md) - [SigningKeyDto](docs/SigningKeyDto.md) - - [SmartTransferApproveTerm](docs/SmartTransferApproveTerm.md) - [SmartTransferBadRequestResponse](docs/SmartTransferBadRequestResponse.md) - - [SmartTransferCoinStatistic](docs/SmartTransferCoinStatistic.md) - [SmartTransferCreateTicket](docs/SmartTransferCreateTicket.md) - [SmartTransferCreateTicketTerm](docs/SmartTransferCreateTicketTerm.md) - [SmartTransferForbiddenResponse](docs/SmartTransferForbiddenResponse.md) - - [SmartTransferFundDvpTicket](docs/SmartTransferFundDvpTicket.md) - [SmartTransferFundTerm](docs/SmartTransferFundTerm.md) - [SmartTransferManuallyFundTerm](docs/SmartTransferManuallyFundTerm.md) - [SmartTransferNotFoundResponse](docs/SmartTransferNotFoundResponse.md) - [SmartTransferSetTicketExpiration](docs/SmartTransferSetTicketExpiration.md) - [SmartTransferSetTicketExternalId](docs/SmartTransferSetTicketExternalId.md) - [SmartTransferSetUserGroups](docs/SmartTransferSetUserGroups.md) - - [SmartTransferStatistic](docs/SmartTransferStatistic.md) - - [SmartTransferStatisticInflow](docs/SmartTransferStatisticInflow.md) - - [SmartTransferStatisticOutflow](docs/SmartTransferStatisticOutflow.md) - [SmartTransferSubmitTicket](docs/SmartTransferSubmitTicket.md) - [SmartTransferTicket](docs/SmartTransferTicket.md) - [SmartTransferTicketFilteredResponse](docs/SmartTransferTicketFilteredResponse.md) @@ -1059,43 +690,25 @@ Class | Method | HTTP request | Description - [SmartTransferUpdateTicketTerm](docs/SmartTransferUpdateTicketTerm.md) - [SmartTransferUserGroups](docs/SmartTransferUserGroups.md) - [SmartTransferUserGroupsResponse](docs/SmartTransferUserGroupsResponse.md) - - [SolParameter](docs/SolParameter.md) - - [SolParameterWithValue](docs/SolParameterWithValue.md) - - [SolanaBlockchainData](docs/SolanaBlockchainData.md) - - [SolanaConfig](docs/SolanaConfig.md) - - [SolanaInstruction](docs/SolanaInstruction.md) - - [SolanaInstructionWithValue](docs/SolanaInstructionWithValue.md) - - [SolanaSimpleCreateParams](docs/SolanaSimpleCreateParams.md) + - [SolanaBlockchainDataDto](docs/SolanaBlockchainDataDto.md) - [SourceTransferPeerPath](docs/SourceTransferPeerPath.md) - [SourceTransferPeerPathResponse](docs/SourceTransferPeerPathResponse.md) - [SpamOwnershipResponse](docs/SpamOwnershipResponse.md) - [SpamTokenResponse](docs/SpamTokenResponse.md) - - [SpeiAdvancedPaymentInfo](docs/SpeiAdvancedPaymentInfo.md) - - [SpeiBasicPaymentInfo](docs/SpeiBasicPaymentInfo.md) - - [SplitRequest](docs/SplitRequest.md) - - [SplitResponse](docs/SplitResponse.md) - - [StakeRequest](docs/StakeRequest.md) - - [StakeResponse](docs/StakeResponse.md) - - [StakingProvider](docs/StakingProvider.md) - - [Status](docs/Status.md) + - [SrcOrDestAttributesInner](docs/SrcOrDestAttributesInner.md) + - [StakeRequestDto](docs/StakeRequestDto.md) + - [StakeResponseDto](docs/StakeResponseDto.md) - [StellarRippleCreateParamsDto](docs/StellarRippleCreateParamsDto.md) - [SystemMessageInfo](docs/SystemMessageInfo.md) - - [Tag](docs/Tag.md) - - [TagsPagedResponse](docs/TagsPagedResponse.md) - [Task](docs/Task.md) - [TemplatesPaginatedResponse](docs/TemplatesPaginatedResponse.md) - [ThirdPartyRouting](docs/ThirdPartyRouting.md) - - [TimeInForce](docs/TimeInForce.md) - - [TimePeriodConfig](docs/TimePeriodConfig.md) - - [TimePeriodMatchType](docs/TimePeriodMatchType.md) - [ToCollateralTransaction](docs/ToCollateralTransaction.md) - [ToExchangeTransaction](docs/ToExchangeTransaction.md) - [TokenCollectionResponse](docs/TokenCollectionResponse.md) - - [TokenInfoNotFoundErrorResponse](docs/TokenInfoNotFoundErrorResponse.md) - [TokenLinkDto](docs/TokenLinkDto.md) - [TokenLinkDtoTokenMetadata](docs/TokenLinkDtoTokenMetadata.md) - [TokenLinkExistsHttpError](docs/TokenLinkExistsHttpError.md) - - [TokenLinkNotMultichainCompatibleHttpError](docs/TokenLinkNotMultichainCompatibleHttpError.md) - [TokenLinkRequestDto](docs/TokenLinkRequestDto.md) - [TokenOwnershipResponse](docs/TokenOwnershipResponse.md) - [TokenOwnershipSpamUpdatePayload](docs/TokenOwnershipSpamUpdatePayload.md) @@ -1103,13 +716,9 @@ Class | Method | HTTP request | Description - [TokenResponse](docs/TokenResponse.md) - [TokensPaginatedResponse](docs/TokensPaginatedResponse.md) - [TradingAccountType](docs/TradingAccountType.md) - - [TradingErrorResponse](docs/TradingErrorResponse.md) - - [TradingErrorResponseError](docs/TradingErrorResponseError.md) - - [TradingProvider](docs/TradingProvider.md) - [Transaction](docs/Transaction.md) - [TransactionFee](docs/TransactionFee.md) - [TransactionOperation](docs/TransactionOperation.md) - - [TransactionReceiptResponse](docs/TransactionReceiptResponse.md) - [TransactionRequest](docs/TransactionRequest.md) - [TransactionRequestAmount](docs/TransactionRequestAmount.md) - [TransactionRequestDestination](docs/TransactionRequestDestination.md) @@ -1135,59 +744,29 @@ Class | Method | HTTP request | Description - [TransferOperationType](docs/TransferOperationType.md) - [TransferPeerPathSubType](docs/TransferPeerPathSubType.md) - [TransferPeerPathType](docs/TransferPeerPathType.md) - - [TransferRail](docs/TransferRail.md) - - [TransferReceipt](docs/TransferReceipt.md) - [TransferValidationFailure](docs/TransferValidationFailure.md) - [TravelRuleAddress](docs/TravelRuleAddress.md) - [TravelRuleCreateTransactionRequest](docs/TravelRuleCreateTransactionRequest.md) - - [TravelRuleDateAndPlaceOfBirth](docs/TravelRuleDateAndPlaceOfBirth.md) - - [TravelRuleGeographicAddress](docs/TravelRuleGeographicAddress.md) - [TravelRuleGetAllVASPsResponse](docs/TravelRuleGetAllVASPsResponse.md) - [TravelRuleIssuer](docs/TravelRuleIssuer.md) - [TravelRuleIssuers](docs/TravelRuleIssuers.md) - - [TravelRuleLegalPerson](docs/TravelRuleLegalPerson.md) - - [TravelRuleLegalPersonNameIdentifier](docs/TravelRuleLegalPersonNameIdentifier.md) - - [TravelRuleNationalIdentification](docs/TravelRuleNationalIdentification.md) - - [TravelRuleNaturalNameIdentifier](docs/TravelRuleNaturalNameIdentifier.md) - - [TravelRuleNaturalPerson](docs/TravelRuleNaturalPerson.md) - - [TravelRuleNaturalPersonNameIdentifier](docs/TravelRuleNaturalPersonNameIdentifier.md) - [TravelRuleOwnershipProof](docs/TravelRuleOwnershipProof.md) - - [TravelRulePerson](docs/TravelRulePerson.md) - [TravelRulePiiIVMS](docs/TravelRulePiiIVMS.md) - [TravelRulePolicyRuleResponse](docs/TravelRulePolicyRuleResponse.md) - [TravelRuleTransactionBlockchainInfo](docs/TravelRuleTransactionBlockchainInfo.md) - [TravelRuleUpdateVASPDetails](docs/TravelRuleUpdateVASPDetails.md) - [TravelRuleVASP](docs/TravelRuleVASP.md) - - [TravelRuleValidateDateAndPlaceOfBirth](docs/TravelRuleValidateDateAndPlaceOfBirth.md) - [TravelRuleValidateFullTransactionRequest](docs/TravelRuleValidateFullTransactionRequest.md) - - [TravelRuleValidateGeographicAddress](docs/TravelRuleValidateGeographicAddress.md) - - [TravelRuleValidateLegalPerson](docs/TravelRuleValidateLegalPerson.md) - - [TravelRuleValidateLegalPersonNameIdentifier](docs/TravelRuleValidateLegalPersonNameIdentifier.md) - - [TravelRuleValidateNationalIdentification](docs/TravelRuleValidateNationalIdentification.md) - - [TravelRuleValidateNaturalNameIdentifier](docs/TravelRuleValidateNaturalNameIdentifier.md) - - [TravelRuleValidateNaturalPerson](docs/TravelRuleValidateNaturalPerson.md) - - [TravelRuleValidateNaturalPersonNameIdentifier](docs/TravelRuleValidateNaturalPersonNameIdentifier.md) - - [TravelRuleValidatePerson](docs/TravelRuleValidatePerson.md) - - [TravelRuleValidatePiiIVMS](docs/TravelRuleValidatePiiIVMS.md) - [TravelRuleValidateTransactionRequest](docs/TravelRuleValidateTransactionRequest.md) - [TravelRuleValidateTransactionResponse](docs/TravelRuleValidateTransactionResponse.md) - - [TravelRuleVaspForVault](docs/TravelRuleVaspForVault.md) - - [TxLog](docs/TxLog.md) - [UnfreezeTransactionResponse](docs/UnfreezeTransactionResponse.md) - [UnmanagedWallet](docs/UnmanagedWallet.md) - [UnspentInput](docs/UnspentInput.md) - [UnspentInputsResponse](docs/UnspentInputsResponse.md) - - [UnstakeRequest](docs/UnstakeRequest.md) - - [UpdateAssetUserMetadataRequest](docs/UpdateAssetUserMetadataRequest.md) - - [UpdateCallbackHandlerRequest](docs/UpdateCallbackHandlerRequest.md) - - [UpdateCallbackHandlerResponse](docs/UpdateCallbackHandlerResponse.md) - - [UpdateDraftRequest](docs/UpdateDraftRequest.md) - - [UpdateTagRequest](docs/UpdateTagRequest.md) + - [UnstakeRequestDto](docs/UnstakeRequestDto.md) - [UpdateTokenOwnershipStatusDto](docs/UpdateTokenOwnershipStatusDto.md) - [UpdateVaultAccountAssetAddressRequest](docs/UpdateVaultAccountAssetAddressRequest.md) - [UpdateVaultAccountRequest](docs/UpdateVaultAccountRequest.md) - - [UpdateWebhookRequest](docs/UpdateWebhookRequest.md) - - [UsWirePaymentInfo](docs/UsWirePaymentInfo.md) - [UserGroupCreateRequest](docs/UserGroupCreateRequest.md) - [UserGroupCreateResponse](docs/UserGroupCreateResponse.md) - [UserGroupResponse](docs/UserGroupResponse.md) @@ -1197,32 +776,23 @@ Class | Method | HTTP request | Description - [UserStatus](docs/UserStatus.md) - [UserType](docs/UserType.md) - [ValidateAddressResponse](docs/ValidateAddressResponse.md) - - [ValidateLayerZeroChannelResponse](docs/ValidateLayerZeroChannelResponse.md) - - [ValidatedTransactionsForRescan](docs/ValidatedTransactionsForRescan.md) - [ValidationKeyDto](docs/ValidationKeyDto.md) - - [Validator](docs/Validator.md) + - [ValidatorDto](docs/ValidatorDto.md) - [VaultAccount](docs/VaultAccount.md) - [VaultAccountsPagedResponse](docs/VaultAccountsPagedResponse.md) - [VaultAccountsPagedResponsePaging](docs/VaultAccountsPagedResponsePaging.md) - - [VaultAccountsTagAttachmentsRequest](docs/VaultAccountsTagAttachmentsRequest.md) - [VaultActionStatus](docs/VaultActionStatus.md) - [VaultAsset](docs/VaultAsset.md) - [VaultWalletAddress](docs/VaultWalletAddress.md) - [VendorDto](docs/VendorDto.md) - - [VerdictConfig](docs/VerdictConfig.md) - - [Version](docs/Version.md) - [WalletAsset](docs/WalletAsset.md) - [WalletAssetAdditionalInfo](docs/WalletAssetAdditionalInfo.md) - - [Webhook](docs/Webhook.md) - - [WebhookEvent](docs/WebhookEvent.md) - - [WebhookPaginatedResponse](docs/WebhookPaginatedResponse.md) - - [WithdrawRequest](docs/WithdrawRequest.md) + - [WithdrawRequestDto](docs/WithdrawRequestDto.md) - [WorkflowConfigStatus](docs/WorkflowConfigStatus.md) - [WorkflowConfigurationId](docs/WorkflowConfigurationId.md) - [WorkflowExecutionOperation](docs/WorkflowExecutionOperation.md) - [WriteAbiFunction](docs/WriteAbiFunction.md) - [WriteCallFunctionDto](docs/WriteCallFunctionDto.md) - - [WriteCallFunctionDtoAbiFunction](docs/WriteCallFunctionDtoAbiFunction.md) - [WriteCallFunctionResponseDto](docs/WriteCallFunctionResponseDto.md) diff --git a/api/openapi.yaml b/api/openapi.yaml index b5a1ac9e..eadd7bb5 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -57,12 +57,11 @@ paths: tags: - Vaults x-internal: true - x-rate-limit-category: query x-readme: code-samples: - language: python code: vault_accounts = fireblocks.get_vault_accounts() - name: Fireblocks SDK Python example (Legacy) + name: Fireblocks SDK Python example - language: javascript code: const vaultAccounts = await fireblocks.getVaultAccounts(); name: Fireblocks SDK Javascript example @@ -104,13 +103,12 @@ paths: summary: Create a new vault account tags: - Vaults - x-rate-limit-category: write x-readme: code-samples: - language: python code: "vaultAccount = fireblocks.create_vault_account(name, hiddenOnUI,\ \ customer_ref_id, auto_fueling)" - name: Fireblocks SDK Python example (Legacy) + name: Fireblocks SDK Python example - language: javascript code: "const vaultAccount = await fireblocks.createVaultAccount(name, hiddenOnUI,\ \ customerRefId, autoFueling);" @@ -122,19 +120,59 @@ paths: code: "CompletableFuture> response = fireblocks.vaults().createVaultAccount(createVaultAccountRequest,\ \ idempotencyKey);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.vaults.create_vault_account(create_vault_account_request,\ - \ idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.vaults.createVaultAccount(vaultsApiCreateVaultAccountRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.vaults().createVaultAccount(createVaultAccountRequest,\ - \ idempotencyKey);" - - lang: Python - source: "response = fireblocks.vaults.create_vault_account(create_vault_account_request,\ - \ idempotency_key);" + x-content-type: application/json + x-accepts: + - application/json + /vault/accounts/bulk: + post: + description: | + Create multiple vault accounts by running an async job.
+ **Note**: + - These endpoints are currently in beta and might be subject to changes. + - We limit accounts to 10k per operation and 200k per customer during beta testing. + operationId: createMultipleAccounts + parameters: + - description: "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." + explode: false + in: header + name: Idempotency-Key + required: false + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateMultipleAccountsRequest" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/JobCreated" + description: A JobCreated object + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" + default: + $ref: "#/components/responses/Error" + summary: Bulk creation of new vault accounts + tags: + - Vaults + x-readme: + code-samples: + - language: typescript + code: "const response: Promise> = fireblocks.vaults.createMultipleAccounts(vaultsApiCreateMultipleAccountsRequest);" + name: Fireblocks SDK TypeScript example + - language: java + code: "CompletableFuture> response = fireblocks.vaults().createMultipleAccounts(createMultipleAccountsRequest,\ + \ idempotencyKey);" + name: Fireblocks SDK Java example x-content-type: application/json x-accepts: - application/json @@ -210,18 +248,6 @@ paths: minimum: 1 type: number style: form - - description: List of tag IDs to filter vault accounts. - explode: true - in: query - name: tagIds - required: false - schema: - items: - format: uuid - type: string - maxItems: 100 - type: array - style: form responses: "200": content: @@ -235,12 +261,11 @@ paths: summary: List vault accounts (Paginated) tags: - Vaults - x-rate-limit-category: query x-readme: code-samples: - language: python code: vault_accounts = fireblocks.get_vault_accounts_with_page_info(filters) - name: Fireblocks SDK Python example (Legacy) + name: Fireblocks SDK Python example - language: javascript code: const vaultAccounts = await fireblocks.getVaultAccountsWithPageInfo(filters); name: Fireblocks SDK Javascript example @@ -251,25 +276,8 @@ paths: - language: java code: "CompletableFuture> response\ \ = fireblocks.vaults().getPagedVaultAccounts(namePrefix, nameSuffix,\ - \ minAmountThreshold, assetId, orderBy, before, after, limit, tagIds);" + \ minAmountThreshold, assetId, orderBy, before, after, limit);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.vaults.get_paged_vault_accounts(name_prefix,\ - \ name_suffix, min_amount_threshold, asset_id, order_by, before, after,\ - \ limit, tag_ids);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.vaults.getPagedVaultAccounts(vaultsApiGetPagedVaultAccountsRequest);" - - lang: Java - source: "CompletableFuture> response\ - \ = fireblocks.vaults().getPagedVaultAccounts(namePrefix, nameSuffix, minAmountThreshold,\ - \ assetId, orderBy, before, after, limit, tagIds);" - - lang: Python - source: "response = fireblocks.vaults.get_paged_vault_accounts(name_prefix,\ - \ name_suffix, min_amount_threshold, asset_id, order_by, before, after,\ - \ limit, tag_ids);" x-accepts: - application/json /vault/accounts/{vaultAccountId}: @@ -302,12 +310,11 @@ paths: summary: Find a vault account by ID tags: - Vaults - x-rate-limit-category: read x-readme: code-samples: - language: python code: vault_account = fireblocks.get_vault_account(vault_account_id) - name: Fireblocks SDK Python example (Legacy) + name: Fireblocks SDK Python example - language: javascript code: const vaultAccount = await fireblocks.getVaultAccount(vault_account_id); name: Fireblocks SDK Javascript example @@ -317,16 +324,6 @@ paths: - language: java code: CompletableFuture> response = fireblocks.vaults().getVaultAccount(vaultAccountId); name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.vaults.get_vault_account(vault_account_id); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.vaults.getVaultAccount(vaultsApiGetVaultAccountRequest);" - - lang: Java - source: CompletableFuture> response = fireblocks.vaults().getVaultAccount(vaultAccountId); - - lang: Python - source: response = fireblocks.vaults.get_vault_account(vault_account_id); x-accepts: - application/json put: @@ -375,13 +372,12 @@ paths: summary: Rename a vault account tags: - Vaults - x-rate-limit-category: write x-readme: code-samples: - language: python code: "vaultAccount = fireblocks.update_vault_account(vault_account_id,\ \ name)" - name: Fireblocks SDK Python example (Legacy) + name: Fireblocks SDK Python example - language: javascript code: "const vaultAccount = await fireblocks.updateVaultAccount(vautlAccountId,\ \ name);" @@ -395,21 +391,6 @@ paths: \ = fireblocks.vaults().updateVaultAccount(updateVaultAccountRequest,\ \ vaultAccountId, idempotencyKey);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.vaults.update_vault_account(update_vault_account_request,\ - \ vault_account_id, idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.vaults.updateVaultAccount(vaultsApiUpdateVaultAccountRequest);" - - lang: Java - source: "CompletableFuture> response\ - \ = fireblocks.vaults().updateVaultAccount(updateVaultAccountRequest, vaultAccountId,\ - \ idempotencyKey);" - - lang: Python - source: "response = fireblocks.vaults.update_vault_account(update_vault_account_request,\ - \ vault_account_id, idempotency_key);" x-content-type: application/json x-accepts: - application/json @@ -492,12 +473,11 @@ paths: summary: List asset wallets (Paginated) tags: - Vaults - x-rate-limit-category: query x-readme: code-samples: - language: python code: vault_accounts = fireblocks.get_asset_wallets(filters) - name: Fireblocks SDK Python example (Legacy) + name: Fireblocks SDK Python example - language: javascript code: const vaultAccounts = await fireblocks.getAssetWallets(filters); name: Fireblocks SDK Javascript example @@ -510,21 +490,6 @@ paths: \ = fireblocks.vaults().getAssetWallets(totalAmountLargerThan, assetId,\ \ orderBy, before, after, limit);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.vaults.get_asset_wallets(total_amount_larger_than,\ - \ asset_id, order_by, before, after, limit);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.vaults.getAssetWallets(vaultsApiGetAssetWalletsRequest);" - - lang: Java - source: "CompletableFuture> response\ - \ = fireblocks.vaults().getAssetWallets(totalAmountLargerThan, assetId,\ - \ orderBy, before, after, limit);" - - lang: Python - source: "response = fireblocks.vaults.get_asset_wallets(total_amount_larger_than,\ - \ asset_id, order_by, before, after, limit);" x-accepts: - application/json /vault/accounts/{vaultAccountId}/hide: @@ -568,12 +533,11 @@ paths: summary: Hide a vault account in the console tags: - Vaults - x-rate-limit-category: write x-readme: code-samples: - language: python code: vaultAsset = fireblocks.hide_vault_account(vault_account_id) - name: Fireblocks SDK Python example (Legacy) + name: Fireblocks SDK Python example - language: javascript code: const vaultAsset = await fireblocks.hideVaultAccount(vaultAccountId); name: Fireblocks SDK Javascript example @@ -585,20 +549,6 @@ paths: code: "CompletableFuture> response = fireblocks.vaults().hideVaultAccount(vaultAccountId,\ \ idempotencyKey);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.vaults.hide_vault_account(vault_account_id,\ - \ idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> =\ - \ fireblocks.vaults.hideVaultAccount(vaultsApiHideVaultAccountRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.vaults().hideVaultAccount(vaultAccountId,\ - \ idempotencyKey);" - - lang: Python - source: "response = fireblocks.vaults.hide_vault_account(vault_account_id,\ - \ idempotency_key);" x-accepts: - application/json /vault/accounts/{vaultAccountId}/unhide: @@ -642,12 +592,11 @@ paths: summary: Unhide a vault account in the console tags: - Vaults - x-rate-limit-category: write x-readme: code-samples: - language: python code: vaultAsset = fireblocks.unhide_vault_account(vault_account_id) - name: Fireblocks SDK Python example (Legacy) + name: Fireblocks SDK Python example - language: javascript code: const vaultAsset = await fireblocks.unhideVaultAccount(vaultAccountId); name: Fireblocks SDK Javascript example @@ -659,20 +608,6 @@ paths: code: "CompletableFuture> response = fireblocks.vaults().unhideVaultAccount(vaultAccountId,\ \ idempotencyKey);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.vaults.unhide_vault_account(vault_account_id,\ - \ idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> =\ - \ fireblocks.vaults.unhideVaultAccount(vaultsApiUnhideVaultAccountRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.vaults().unhideVaultAccount(vaultAccountId,\ - \ idempotencyKey);" - - lang: Python - source: "response = fireblocks.vaults.unhide_vault_account(vault_account_id,\ - \ idempotency_key);" x-accepts: - application/json /vault/accounts/{vaultAccountId}/{assetId}/activate: @@ -726,7 +661,6 @@ paths: summary: Activate a wallet in a vault account tags: - Vaults - x-rate-limit-category: write x-readme: code-samples: - language: typescript @@ -738,21 +672,6 @@ paths: \ = fireblocks.vaults().activateAssetForVaultAccount(vaultAccountId, assetId,\ \ idempotencyKey);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.vaults.activate_asset_for_vault_account(vault_account_id,\ - \ asset_id, idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.vaults.activateAssetForVaultAccount(vaultsApiActivateAssetForVaultAccountRequest);" - - lang: Java - source: "CompletableFuture> response\ - \ = fireblocks.vaults().activateAssetForVaultAccount(vaultAccountId, assetId,\ - \ idempotencyKey);" - - lang: Python - source: "response = fireblocks.vaults.activate_asset_for_vault_account(vault_account_id,\ - \ asset_id, idempotency_key);" x-accepts: - application/json /vault/accounts/{vaultAccountId}/set_customer_ref_id: @@ -802,13 +721,12 @@ paths: summary: Set an AML/KYT customer reference ID for a vault account tags: - Vaults - x-rate-limit-category: write x-readme: code-samples: - language: python code: "vaultAsset = fireblocks.set_vault_account_customer_ref_id(vault_account_id,\ \ customer_ref_id)" - name: Fireblocks SDK Python example (Legacy) + name: Fireblocks SDK Python example - language: javascript code: "const vaultAsset = await fireblocks.setCustomerRefIdForVaultAccount(vaultAccountId,\ \ customerRefId);" @@ -821,20 +739,6 @@ paths: code: "CompletableFuture> response = fireblocks.vaults().setVaultAccountCustomerRefId(setCustomerRefIdRequest,\ \ vaultAccountId, idempotencyKey);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.vaults.set_vault_account_customer_ref_id(set_customer_ref_id_request,\ - \ vault_account_id, idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> =\ - \ fireblocks.vaults.setVaultAccountCustomerRefId(vaultsApiSetVaultAccountCustomerRefIdRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.vaults().setVaultAccountCustomerRefId(setCustomerRefIdRequest,\ - \ vaultAccountId, idempotencyKey);" - - lang: Python - source: "response = fireblocks.vaults.set_vault_account_customer_ref_id(set_customer_ref_id_request,\ - \ vault_account_id, idempotency_key);" x-content-type: application/json x-accepts: - application/json @@ -886,7 +790,6 @@ paths: summary: Turn autofueling on or off tags: - Vaults - x-rate-limit-category: write x-readme: code-samples: - language: typescript @@ -897,20 +800,6 @@ paths: code: "CompletableFuture> response = fireblocks.vaults().setVaultAccountAutoFuel(setAutoFuelRequest,\ \ vaultAccountId, idempotencyKey);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.vaults.set_vault_account_auto_fuel(set_auto_fuel_request,\ - \ vault_account_id, idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> =\ - \ fireblocks.vaults.setVaultAccountAutoFuel(vaultsApiSetVaultAccountAutoFuelRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.vaults().setVaultAccountAutoFuel(setAutoFuelRequest,\ - \ vaultAccountId, idempotencyKey);" - - lang: Python - source: "response = fireblocks.vaults.set_vault_account_auto_fuel(set_auto_fuel_request,\ - \ vault_account_id, idempotency_key);" x-content-type: application/json x-accepts: - application/json @@ -950,13 +839,12 @@ paths: summary: Get the asset balance for a vault account tags: - Vaults - x-rate-limit-category: read x-readme: code-samples: - language: python code: "vaultAsset = fireblocks.get_vault_account_asset(vault_account_id,\ \ asset_id)" - name: Fireblocks SDK Python example (Legacy) + name: Fireblocks SDK Python example - language: javascript code: "const vaultAsset = await fireblocks.getVaultAccountAsset(vaultAccountId,\ \ assetId);" @@ -968,19 +856,6 @@ paths: code: "CompletableFuture> response = fireblocks.vaults().getVaultAccountAsset(vaultAccountId,\ \ assetId);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.vaults.get_vault_account_asset(vault_account_id,\ - \ asset_id);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.vaults.getVaultAccountAsset(vaultsApiGetVaultAccountAssetRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.vaults().getVaultAccountAsset(vaultAccountId,\ - \ assetId);" - - lang: Python - source: "response = fireblocks.vaults.get_vault_account_asset(vault_account_id,\ - \ asset_id);" x-accepts: - application/json post: @@ -1039,12 +914,11 @@ paths: summary: Create a new wallet tags: - Vaults - x-rate-limit-category: write x-readme: code-samples: - language: python code: "vaultAsset = fireblocks.create_vault_asset(vault_account_id, asset_id)" - name: Fireblocks SDK Python example (Legacy) + name: Fireblocks SDK Python example - language: javascript code: "const vaultAsset = await fireblocks.createVaultAsset(vaultAccountId,\ \ assetId);" @@ -1058,21 +932,6 @@ paths: \ = fireblocks.vaults().createVaultAccountAsset(vaultAccountId, assetId,\ \ createAssetsRequest, idempotencyKey);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.vaults.create_vault_account_asset(vault_account_id,\ - \ asset_id, create_assets_request, idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.vaults.createVaultAccountAsset(vaultsApiCreateVaultAccountAssetRequest);" - - lang: Java - source: "CompletableFuture> response\ - \ = fireblocks.vaults().createVaultAccountAsset(vaultAccountId, assetId,\ - \ createAssetsRequest, idempotencyKey);" - - lang: Python - source: "response = fireblocks.vaults.create_vault_account_asset(vault_account_id,\ - \ asset_id, create_assets_request, idempotency_key);" x-content-type: application/json x-accepts: - application/json @@ -1126,13 +985,12 @@ paths: summary: Refresh asset balance data tags: - Vaults - x-rate-limit-category: async x-readme: code-samples: - language: python code: "vaultAsset = fireblocks.refresh_vault_asset_balance(vault_account_id,\ \ asset_id)" - name: Fireblocks SDK Python example (Legacy) + name: Fireblocks SDK Python example - language: javascript code: "const vaultAsset = await fireblocks.refreshVaultAssetBalance(vaultAccountId,\ \ assetId);" @@ -1144,19 +1002,6 @@ paths: code: "CompletableFuture> response = fireblocks.vaults().updateVaultAccountAssetBalance(vaultAccountId,\ \ assetId, idempotencyKey);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.vaults.update_vault_account_asset_balance(vault_account_id,\ - \ asset_id, idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.vaults.updateVaultAccountAssetBalance(vaultsApiUpdateVaultAccountAssetBalanceRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.vaults().updateVaultAccountAssetBalance(vaultAccountId,\ - \ assetId, idempotencyKey);" - - lang: Python - source: "response = fireblocks.vaults.update_vault_account_asset_balance(vault_account_id,\ - \ asset_id, idempotency_key);" x-accepts: - application/json /vault/accounts/{vaultAccountId}/{assetId}/addresses: @@ -1205,13 +1050,12 @@ paths: tags: - Vaults x-internal: true - x-rate-limit-category: query x-readme: code-samples: - language: python code: "depositAddresses = fireblocks.get_deposit_addresses(vault_account_id,\ \ asset_id)" - name: Fireblocks SDK Python example (Legacy) + name: Fireblocks SDK Python example - language: javascript code: "const depositAddresses = await fireblocks.getDepositAddresses(vaultAccountId,\ \ assetId);" @@ -1273,13 +1117,12 @@ paths: summary: Create new asset deposit address tags: - Vaults - x-rate-limit-category: write x-readme: code-samples: - language: python code: "address = fireblocks.generate_new_address(vault_account_id, asset_id,\ \ description, customer_ref_id)" - name: Fireblocks SDK Python example (Legacy) + name: Fireblocks SDK Python example - language: javascript code: "const address = await fireblocks.generateNewAddress(vaultAccountId,\ \ assetId, description, customerRefId);" @@ -1293,21 +1136,6 @@ paths: \ fireblocks.vaults().createVaultAccountAssetAddress(vaultAccountId, assetId,\ \ createAddressRequest, idempotencyKey);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.vaults.create_vault_account_asset_address(vault_account_id,\ - \ asset_id, create_address_request, idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.vaults.createVaultAccountAssetAddress(vaultsApiCreateVaultAccountAssetAddressRequest);" - - lang: Java - source: "CompletableFuture> response =\ - \ fireblocks.vaults().createVaultAccountAssetAddress(vaultAccountId, assetId,\ - \ createAddressRequest, idempotencyKey);" - - lang: Python - source: "response = fireblocks.vaults.create_vault_account_asset_address(vault_account_id,\ - \ asset_id, create_address_request, idempotency_key);" x-content-type: application/json x-accepts: - application/json @@ -1372,13 +1200,12 @@ paths: summary: List addresses (Paginated) tags: - Vaults - x-rate-limit-category: query x-readme: code-samples: - language: python code: "addresses = vault_accounts = fireblocks.get_paginated_addresses(\"\ 0\",\"ETH_TEST3\")" - name: Fireblocks SDK Python example (Legacy) + name: Fireblocks SDK Python example - language: javascript code: "const addresses = await fireblocks.getPaginatedAddresses(\"0\",\"\ ETH_TEST3\");" @@ -1392,21 +1219,6 @@ paths: \ = fireblocks.vaults().getVaultAccountAssetAddressesPaginated(vaultAccountId,\ \ assetId, limit, before, after);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.vaults.get_vault_account_asset_addresses_paginated(vault_account_id,\ - \ asset_id, limit, before, after);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.vaults.getVaultAccountAssetAddressesPaginated(vaultsApiGetVaultAccountAssetAddressesPaginatedRequest);" - - lang: Java - source: "CompletableFuture> response\ - \ = fireblocks.vaults().getVaultAccountAssetAddressesPaginated(vaultAccountId,\ - \ assetId, limit, before, after);" - - lang: Python - source: "response = fireblocks.vaults.get_vault_account_asset_addresses_paginated(vault_account_id,\ - \ asset_id, limit, before, after);" x-accepts: - application/json /vault/accounts/{vaultAccountId}/{assetId}/max_spendable_amount: @@ -1462,13 +1274,12 @@ paths: summary: Get the maximum spendable amount in a single transaction. tags: - Vaults - x-rate-limit-category: read x-readme: code-samples: - language: python code: "address = fireblocks.set_address_description(vault_account_id, asset_id,\ \ address, tag, description)" - name: Fireblocks SDK Python example (Legacy) + name: Fireblocks SDK Python example - language: javascript code: "const address = await fireblocks.setAddressDescription(vaultAccountId,\ \ assetId, address, tag, description);" @@ -1482,20 +1293,6 @@ paths: \ = fireblocks.vaults().getMaxSpendableAmount(vaultAccountId, assetId,\ \ manualSignging);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.vaults.get_max_spendable_amount(vault_account_id,\ - \ asset_id, manual_signging);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.vaults.getMaxSpendableAmount(vaultsApiGetMaxSpendableAmountRequest);" - - lang: Java - source: "CompletableFuture> response\ - \ = fireblocks.vaults().getMaxSpendableAmount(vaultAccountId, assetId, manualSignging);" - - lang: Python - source: "response = fireblocks.vaults.get_max_spendable_amount(vault_account_id,\ - \ asset_id, manual_signging);" x-accepts: - application/json /vault/accounts/{vaultAccountId}/{assetId}/addresses/{addressId}: @@ -1564,13 +1361,12 @@ paths: summary: Update address description tags: - Vaults - x-rate-limit-category: write x-readme: code-samples: - language: python code: "address = fireblocks.set_address_description(vault_account_id, asset_id,\ \ address, tag, description)" - name: Fireblocks SDK Python example (Legacy) + name: Fireblocks SDK Python example - language: javascript code: "const address = await fireblocks.setAddressDescription(vaultAccountId,\ \ assetId, address, tag, description);" @@ -1583,20 +1379,6 @@ paths: code: "CompletableFuture> response = fireblocks.vaults().updateVaultAccountAssetAddress(vaultAccountId,\ \ assetId, addressId, updateVaultAccountAssetAddressRequest, idempotencyKey);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.vaults.update_vault_account_asset_address(vault_account_id,\ - \ asset_id, address_id, update_vault_account_asset_address_request, idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> =\ - \ fireblocks.vaults.updateVaultAccountAssetAddress(vaultsApiUpdateVaultAccountAssetAddressRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.vaults().updateVaultAccountAssetAddress(vaultAccountId,\ - \ assetId, addressId, updateVaultAccountAssetAddressRequest, idempotencyKey);" - - lang: Python - source: "response = fireblocks.vaults.update_vault_account_asset_address(vault_account_id,\ - \ asset_id, address_id, update_vault_account_asset_address_request, idempotency_key);" x-content-type: application/json x-accepts: - application/json @@ -1665,13 +1447,12 @@ paths: summary: Assign AML customer reference ID tags: - Vaults - x-rate-limit-category: write x-readme: code-samples: - language: python code: "vaultAsset = fireblocks.set_customer_ref_id_for_address(vault_account_id,\ \ asset_id, address_id, customer_ref_id)" - name: Fireblocks SDK Python example (Legacy) + name: Fireblocks SDK Python example - language: javascript code: "const vaultAsset = await fireblocks.setCustomerRefIdForAddress(vaultAccountId,\ \ assetId, addressId, customerRefId);" @@ -1684,20 +1465,6 @@ paths: code: "CompletableFuture> response = fireblocks.vaults().setCustomerRefIdForAddress(setCustomerRefIdForAddressRequest,\ \ vaultAccountId, assetId, addressId, idempotencyKey);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.vaults.set_customer_ref_id_for_address(set_customer_ref_id_for_address_request,\ - \ vault_account_id, asset_id, address_id, idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> =\ - \ fireblocks.vaults.setCustomerRefIdForAddress(vaultsApiSetCustomerRefIdForAddressRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.vaults().setCustomerRefIdForAddress(setCustomerRefIdForAddressRequest,\ - \ vaultAccountId, assetId, addressId, idempotencyKey);" - - lang: Python - source: "response = fireblocks.vaults.set_customer_ref_id_for_address(set_customer_ref_id_for_address_request,\ - \ vault_account_id, asset_id, address_id, idempotency_key);" x-content-type: application/json x-accepts: - application/json @@ -1759,7 +1526,6 @@ paths: summary: Convert a segwit address to legacy format tags: - Vaults - x-rate-limit-category: write x-readme: code-samples: - language: typescript @@ -1771,21 +1537,6 @@ paths: \ fireblocks.vaults().createLegacyAddress(vaultAccountId, assetId, addressId,\ \ idempotencyKey);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.vaults.create_legacy_address(vault_account_id,\ - \ asset_id, address_id, idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.vaults.createLegacyAddress(vaultsApiCreateLegacyAddressRequest);" - - lang: Java - source: "CompletableFuture> response =\ - \ fireblocks.vaults().createLegacyAddress(vaultAccountId, assetId, addressId,\ - \ idempotencyKey);" - - lang: Python - source: "response = fireblocks.vaults.create_legacy_address(vault_account_id,\ - \ asset_id, address_id, idempotency_key);" x-accepts: - application/json /vault/accounts/{vaultAccountId}/{assetId}/unspent_inputs: @@ -1827,12 +1578,11 @@ paths: summary: Get UTXO unspent inputs information tags: - Vaults - x-rate-limit-category: read x-readme: code-samples: - language: python code: "vaultAsset = fireblocks.get_unspent_inputs(vault_account_id, asset_id)" - name: Fireblocks SDK Python example (Legacy) + name: Fireblocks SDK Python example - language: javascript code: "const vaultAsset = await fireblocks.getUnspentInputs(vaultAccountId,\ \ assetId);" @@ -1845,217 +1595,211 @@ paths: code: "CompletableFuture>> response\ \ = fireblocks.vaults().getUnspentInputs(vaultAccountId, assetId);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.vaults.get_unspent_inputs(vault_account_id,\ - \ asset_id);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.vaults.getUnspentInputs(vaultsApiGetUnspentInputsRequest);" - - lang: Java - source: "CompletableFuture>> response\ - \ = fireblocks.vaults().getUnspentInputs(vaultAccountId, assetId);" - - lang: Python - source: "response = fireblocks.vaults.get_unspent_inputs(vault_account_id,\ - \ asset_id);" x-accepts: - application/json - /vault/accounts/bulk: - post: - description: | - Create multiple vault accounts by running an async job.
- **Note**: - - These endpoints are currently in beta and might be subject to changes. - - We limit accounts to 10k per operation and 200k per customer during beta testing. - Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor. - operationId: createMultipleAccounts + /vault/public_key_info: + get: + description: Gets the public key information based on derivation path and signing + algorithm. + operationId: getPublicKeyInfo parameters: - - description: "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." - explode: false - in: header - name: Idempotency-Key - required: false + - explode: true + in: query + name: derivationPath + required: true schema: type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/CreateMultipleAccountsRequest" + style: form + - explode: true + in: query + name: algorithm required: true + schema: + type: string + style: form + - explode: true + in: query + name: compressed + required: false + schema: + type: boolean + style: form responses: "200": content: application/json: schema: - $ref: "#/components/schemas/JobCreated" - description: A JobCreated object + $ref: "#/components/schemas/PublicKeyInformation" + description: Public key information headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: Bulk creation of new vault accounts + summary: Get the public key information tags: - Vaults - x-rate-limit-category: write x-readme: code-samples: + - language: python + code: "pubKey = fireblocks.get_public_key_info(algorithm, derivation_path,\ + \ compressed)" + name: Fireblocks SDK Python example + - language: javascript + code: | + const PublicKeyInfoArgs = { algorithm: 'MPC_ECDSA_SECP256K1', derivationPath: '[44,0,0,0,0]' } const pubKey = await fireblocks.getPublicKeyInfo(PublicKeyInfoArgs); + name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise> = fireblocks.vaults.createMultipleAccounts(vaultsApiCreateMultipleAccountsRequest);" + code: "const response: Promise>\ + \ = fireblocks.vaults.getPublicKeyInfo(vaultsApiGetPublicKeyInfoRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response = fireblocks.vaults().createMultipleAccounts(createMultipleAccountsRequest,\ - \ idempotencyKey);" + code: "CompletableFuture> response = fireblocks.vaults().getPublicKeyInfo(derivationPath,\ + \ algorithm, compressed);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.vaults.create_multiple_accounts(create_multiple_accounts_request,\ - \ idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.vaults.createMultipleAccounts(vaultsApiCreateMultipleAccountsRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.vaults().createMultipleAccounts(createMultipleAccountsRequest,\ - \ idempotencyKey);" - - lang: Python - source: "response = fireblocks.vaults.create_multiple_accounts(create_multiple_accounts_request,\ - \ idempotency_key);" - x-content-type: application/json x-accepts: - application/json - /vault/accounts/bulk/{jobId}: + /vault/accounts/{vaultAccountId}/{assetId}/{change}/{addressIndex}/public_key_info: get: - description: | - Returns the status of bulk creation of new vault accounts job and the result or error - Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. - operationId: getCreateMultipleVaultAccountsJobStatus + description: Gets the public key information for the vault account. + operationId: getPublicKeyInfoForAddress parameters: - - description: The ID of the job to create addresses - example: 019681b4-107d-7243-942d-4c3c30e36fae - explode: false + - explode: false in: path - name: jobId + name: vaultAccountId + required: true + schema: + format: numeric + type: string + x-fb-entity: vault_account + style: simple + - explode: false + in: path + name: assetId required: true schema: type: string + x-fb-entity: asset + style: simple + - explode: false + in: path + name: change + required: true + schema: + type: number + style: simple + - explode: false + in: path + name: addressIndex + required: true + schema: + type: number style: simple + - explode: true + in: query + name: compressed + required: false + schema: + type: boolean + style: form responses: "200": content: application/json: schema: - $ref: "#/components/schemas/CreateMultipleVaultAccountsJobStatus" - description: A Job with status + $ref: "#/components/schemas/PublicKeyInformation" + description: Public Key Information headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: Get job status of bulk creation of new vault accounts + summary: Get the public key for a vault account tags: - Vaults - x-rate-limit-category: async x-readme: code-samples: + - language: python + code: "pubKey = fireblocks.get_public_key_info_for_vault_account(asset_id,\ + \ vault_account_id, change, address_index, compressed)" + name: Fireblocks SDK Python example + - language: javascript + code: | + const PublicKeyInfoArgs = { assetId: 'ETH', vaultAccountId: 0, change: 0, addressIndex: 0, compressed: true } const pubKey = await fireblocks.getPublicKeyInfoForVaultAccount(PublicKeyInfoArgs); + name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise>\ - \ = fireblocks.vaults.getCreateMultipleVaultAccountsJobStatus(vaultsApiGetCreateMultipleVaultAccountsJobStatusRequest);" + code: "const response: Promise>\ + \ = fireblocks.vaults.getPublicKeyInfoForAddress(vaultsApiGetPublicKeyInfoForAddressRequest);" name: Fireblocks SDK TypeScript example - language: java - code: CompletableFuture> - response = fireblocks.vaults().getCreateMultipleVaultAccountsJobStatus(jobId); + code: "CompletableFuture> response = fireblocks.vaults().getPublicKeyInfoForAddress(vaultAccountId,\ + \ assetId, change, addressIndex, compressed);" name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.vaults.get_create_multiple_vault_accounts_job_status(job_id); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.vaults.getCreateMultipleVaultAccountsJobStatus(vaultsApiGetCreateMultipleVaultAccountsJobStatusRequest);" - - lang: Java - source: CompletableFuture> - response = fireblocks.vaults().getCreateMultipleVaultAccountsJobStatus(jobId); - - lang: Python - source: response = fireblocks.vaults.get_create_multiple_vault_accounts_job_status(job_id); x-accepts: - application/json - /vault/accounts/addresses/bulk: - post: - description: | - Create multiple deposit address by running an async job.
- **Note**: - - We limit accounts to 10k per operation. - Endpoint Permission: Admin, Non-Signing Admin. - operationId: createMultipleDepositAddresses + /vault/assets: + get: + description: Gets the assets amount summary for all accounts or filtered accounts. + operationId: getVaultAssets parameters: - - description: "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." - explode: false - in: header - name: Idempotency-Key + - explode: true + in: query + name: accountNamePrefix required: false schema: type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/CreateMultipleDepositAddressesRequest" - required: true + style: form + - explode: true + in: query + name: accountNameSuffix + required: false + schema: + type: string + style: form responses: "200": content: application/json: schema: - $ref: "#/components/schemas/JobCreated" - description: A JobCreated object + $ref: "#/components/schemas/GetVaultAssetsResponse" + description: Amount by asset headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: Bulk creation of new deposit addresses + summary: Get asset balance for chosen assets tags: - Vaults - x-rate-limit-category: async x-readme: code-samples: + - language: python + code: "assets_balance = fireblocks.get_vault_assets_balance(accout_name_prefix,\ + \ account_name_suffix)" + name: Fireblocks SDK Python example + - language: javascript + code: "const assetsBalance = await fireblocks.getVaultAssetsBalance(accountNamePrefix,\ + \ accountNameSuffix);" + name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise> = fireblocks.vaults.createMultipleDepositAddresses(vaultsApiCreateMultipleDepositAddressesRequest);" + code: "const response: Promise>\ + \ = fireblocks.vaults.getVaultAssets(vaultsApiGetVaultAssetsRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response = fireblocks.vaults().createMultipleDepositAddresses(createMultipleDepositAddressesRequest,\ - \ idempotencyKey);" + code: "CompletableFuture>> response = fireblocks.vaults().getVaultAssets(accountNamePrefix,\ + \ accountNameSuffix);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.vaults.create_multiple_deposit_addresses(create_multiple_deposit_addresses_request,\ - \ idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.vaults.createMultipleDepositAddresses(vaultsApiCreateMultipleDepositAddressesRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.vaults().createMultipleDepositAddresses(createMultipleDepositAddressesRequest,\ - \ idempotencyKey);" - - lang: Python - source: "response = fireblocks.vaults.create_multiple_deposit_addresses(create_multiple_deposit_addresses_request,\ - \ idempotency_key);" - x-content-type: application/json x-accepts: - application/json - /vault/accounts/attached_tags/attach: + /vault/assets/bulk: post: - description: Attach one or more tags to the requested vault accounts. - operationId: attachTagsToVaultAccounts + description: | + Create multiple wallets for a given vault account by running an async job.
+ **Note**: + - These endpoints are currently in beta and might be subject to changes. + - We limit accounts to 10k per operation and 200k per customer during beta testing. + - Currently, we are only supporting EVM wallets. + operationId: createAssetsBulk parameters: - description: "A unique identifier for the request. If the request is sent\ \ multiple times with the same idempotency key, the server will return the\ @@ -2072,399 +1816,328 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/VaultAccountsTagAttachmentsRequest" + $ref: "#/components/schemas/CreateAssetsBulkRequest" required: true responses: - "204": - description: Tags were attached successfully - summary: Attach tags to a vault accounts + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/JobCreated" + description: A JobCreated object + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" + default: + $ref: "#/components/responses/Error" + summary: Bulk creation of wallets tags: - - Vaults - x-rate-limit-category: write + - Assets x-readme: code-samples: - language: typescript - code: "const response: Promise> = fireblocks.vaults.attachTagsToVaultAccounts(vaultsApiAttachTagsToVaultAccountsRequest);" + code: "const response: Promise> = fireblocks.assets.createAssetsBulk(assetsApiCreateAssetsBulkRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response = fireblocks.vaults().attachTagsToVaultAccounts(vaultAccountsTagAttachmentsRequest,\ + code: "CompletableFuture> response = fireblocks.assets().createAssetsBulk(createAssetsBulkRequest,\ \ idempotencyKey);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.vaults.attach_tags_to_vault_accounts(vault_accounts_tag_attachments_request,\ - \ idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.vaults.attachTagsToVaultAccounts(vaultsApiAttachTagsToVaultAccountsRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.vaults().attachTagsToVaultAccounts(vaultAccountsTagAttachmentsRequest,\ - \ idempotencyKey);" - - lang: Python - source: "response = fireblocks.vaults.attach_tags_to_vault_accounts(vault_accounts_tag_attachments_request,\ - \ idempotency_key);" x-content-type: application/json x-accepts: - application/json - /vault/accounts/attached_tags/detach: - post: - description: Detach one or more tags from the requested vault account. - operationId: detachTagsFromVaultAccounts + /vault/assets/{assetId}: + get: + description: Gets the vault balance summary for an asset. + operationId: getVaultBalanceByAsset parameters: - - description: "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." - explode: false - in: header - name: Idempotency-Key - required: false + - explode: false + in: path + name: assetId + required: true schema: type: string + x-fb-entity: asset style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/VaultAccountsTagAttachmentsRequest" - required: true responses: - "204": - description: Tags were detached successfully - summary: Detach tags from a vault accounts + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/VaultAsset" + description: Vault amount by asset + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" + default: + $ref: "#/components/responses/Error" + summary: Get vault balance by asset tags: - Vaults - x-rate-limit-category: write x-readme: code-samples: + - language: python + code: assets_balance = fireblocks.get_vault_balance_by_asset(asset_id) + name: Fireblocks SDK Python example + - language: javascript + code: const assetsBalance = await fireblocks.getVaultBalanceByAsset(assetId); + name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise> = fireblocks.vaults.detachTagsFromVaultAccounts(vaultsApiDetachTagsFromVaultAccountsRequest);" + code: "const response: Promise> = fireblocks.vaults.getVaultBalanceByAsset(vaultsApiGetVaultBalanceByAssetRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response = fireblocks.vaults().detachTagsFromVaultAccounts(vaultAccountsTagAttachmentsRequest,\ - \ idempotencyKey);" + code: CompletableFuture> response = fireblocks.vaults().getVaultBalanceByAsset(assetId); name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.vaults.detach_tags_from_vault_accounts(vault_accounts_tag_attachments_request,\ - \ idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.vaults.detachTagsFromVaultAccounts(vaultsApiDetachTagsFromVaultAccountsRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.vaults().detachTagsFromVaultAccounts(vaultAccountsTagAttachmentsRequest,\ - \ idempotencyKey);" - - lang: Python - source: "response = fireblocks.vaults.detach_tags_from_vault_accounts(vault_accounts_tag_attachments_request,\ - \ idempotency_key);" - x-content-type: application/json x-accepts: - application/json - /vault/accounts/addresses/bulk/{jobId}: - get: - description: | - Returns the status of bulk creation of new deposit addresses job and the result or error - Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. - operationId: getCreateMultipleDepositAddressesJobStatus + /workspace/freeze: + post: + description: "Freezes a Workspace so that ALL operations by ANY user are blocked.\n\ + \nYou should only perform this action when the workspace faces imminent risk,\ + \ such as when you have a security breach.\n\nTo unfreeze a workspace, the\ + \ workspace Owner must submit a request to Fireblocks Support.\n\n**NOTE:**\ + \ \n- This operation can only be performed by the workspace Owner\n- Your\ + \ workspace continues to receive incoming transfers during this time.\n" + operationId: freezeWorkspace parameters: - - description: The ID of the job to create addresses - example: 019681b4-107d-7243-942d-4c3c30e36fae + - description: "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." explode: false - in: path - name: jobId - required: true + in: header + name: Idempotency-Key + required: false schema: type: string style: simple + responses: + "204": + description: indicates that the workspace is now frozen + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" + default: + $ref: "#/components/responses/Error" + summary: Freeze Workspace + tags: + - Workspace + x-internal: true + x-accepts: + - application/json + /exchange_accounts: + get: + deprecated: true + description: Deprecated (use new 'paged' endpoint) - Returns all exchange accounts. + operationId: getExchangeAccounts responses: "200": content: application/json: schema: - $ref: "#/components/schemas/CreateMultipleDepositAddressesJobStatus" - description: A Job with status + $ref: "#/components/schemas/GetExchangeAccountsResponse" + description: An ExchangeAccount object headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: Get job status of bulk creation of new deposit addresses + summary: List exchange accounts tags: - - Vaults - x-rate-limit-category: read + - Exchange accounts + x-internal: true x-readme: code-samples: - - language: typescript - code: "const response: Promise>\ - \ = fireblocks.vaults.getCreateMultipleDepositAddressesJobStatus(vaultsApiGetCreateMultipleDepositAddressesJobStatusRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: CompletableFuture> - response = fireblocks.vaults().getCreateMultipleDepositAddressesJobStatus(jobId); - name: Fireblocks SDK Java example - language: python - code: response = fireblocks.vaults.get_create_multiple_deposit_addresses_job_status(job_id); + code: exchangeAccounts = fireblocks.get_exchange_accounts() name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.vaults.getCreateMultipleDepositAddressesJobStatus(vaultsApiGetCreateMultipleDepositAddressesJobStatusRequest);" - - lang: Java - source: CompletableFuture> - response = fireblocks.vaults().getCreateMultipleDepositAddressesJobStatus(jobId); - - lang: Python - source: response = fireblocks.vaults.get_create_multiple_deposit_addresses_job_status(job_id); + - language: javascript + code: const exchangeAccounts = await fireblocks.getExchangeAccounts(); + name: Fireblocks SDK Javascript example x-accepts: - application/json - /vault/public_key_info: + /exchange_accounts/paged: get: - description: Gets the public key information based on derivation path and signing - algorithm. - operationId: getPublicKeyInfo + description: Returns a page include exchange accounts. + operationId: getPagedExchangeAccounts parameters: - explode: true in: query - name: derivationPath - required: true + name: before + required: false schema: type: string style: form - explode: true in: query - name: algorithm - required: true + name: after + required: false schema: type: string style: form - - explode: true + - description: number of exchanges per page + explode: true in: query - name: compressed - required: false + name: limit + required: true schema: - type: boolean + default: 3 + maximum: 5 + minimum: 1 + type: number style: form responses: "200": content: application/json: schema: - $ref: "#/components/schemas/PublicKeyInformation" - description: Public key information + $ref: "#/components/schemas/GetPagedExchangeAccountsResponse" + description: An ExchangeAccount object headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: Get the public key information + summary: Pagination list exchange accounts tags: - - Vaults - x-rate-limit-category: read + - Exchange accounts x-readme: code-samples: - - language: python - code: "pubKey = fireblocks.get_public_key_info(algorithm, derivation_path,\ - \ compressed)" - name: Fireblocks SDK Python example (Legacy) - language: javascript - code: | - const PublicKeyInfoArgs = { algorithm: 'MPC_ECDSA_SECP256K1', derivationPath: '[44,0,0,0,0]' } const pubKey = await fireblocks.getPublicKeyInfo(PublicKeyInfoArgs); + code: const exchangeAccounts = await fireblocks.getExchangeAccountsPaged(); name: Fireblocks SDK Javascript example + - language: python + code: exchangeAccounts = fireblocks.get_exchange_accounts_paged() + name: Fireblocks SDK Python example - language: typescript - code: "const response: Promise>\ - \ = fireblocks.vaults.getPublicKeyInfo(vaultsApiGetPublicKeyInfoRequest);" + code: "const response: Promise>\ + \ = fireblocks.exchangeAccounts.getPagedExchangeAccounts(exchangeAccountsApiGetPagedExchangeAccountsRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response = fireblocks.vaults().getPublicKeyInfo(derivationPath,\ - \ algorithm, compressed);" + code: "CompletableFuture>> response\ + \ = fireblocks.exchangeAccounts().getPagedExchangeAccounts(limit, before,\ + \ after);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.vaults.get_public_key_info(derivation_path,\ - \ algorithm, compressed);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.vaults.getPublicKeyInfo(vaultsApiGetPublicKeyInfoRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.vaults().getPublicKeyInfo(derivationPath,\ - \ algorithm, compressed);" - - lang: Python - source: "response = fireblocks.vaults.get_public_key_info(derivation_path,\ - \ algorithm, compressed);" x-accepts: - application/json - /vault/accounts/{vaultAccountId}/{assetId}/{change}/{addressIndex}/public_key_info: + /exchange_accounts/{exchangeAccountId}: get: - description: Gets the public key information for the vault account. - operationId: getPublicKeyInfoForAddress + description: Returns an exchange account by ID. + operationId: getExchangeAccount parameters: - - explode: false - in: path - name: vaultAccountId - required: true - schema: - format: numeric - type: string - x-fb-entity: vault_account - style: simple - - explode: false + - description: The ID of the exchange account to return + explode: false in: path - name: assetId + name: exchangeAccountId required: true schema: type: string - x-fb-entity: asset style: simple - - explode: false - in: path - name: change - required: true - schema: - type: number - style: simple - - explode: false - in: path - name: addressIndex - required: true - schema: - type: number - style: simple - - explode: true - in: query - name: compressed - required: false - schema: - type: boolean - style: form responses: "200": content: application/json: schema: - $ref: "#/components/schemas/PublicKeyInformation" - description: Public Key Information + $ref: "#/components/schemas/ExchangeAccount" + description: An ExchangeAccount object headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: Get the public key for a vault account + summary: Find a specific exchange account tags: - - Vaults - x-rate-limit-category: read + - Exchange accounts x-readme: code-samples: - language: python - code: "pubKey = fireblocks.get_public_key_info_for_vault_account(asset_id,\ - \ vault_account_id, change, address_index, compressed)" - name: Fireblocks SDK Python example (Legacy) + code: exchangeAccount = fireblocks.get_exchange_account(exchangeAccountId) + name: Fireblocks SDK Python example - language: javascript - code: | - const PublicKeyInfoArgs = { assetId: 'ETH', vaultAccountId: 0, change: 0, addressIndex: 0, compressed: true } const pubKey = await fireblocks.getPublicKeyInfoForVaultAccount(PublicKeyInfoArgs); + code: const exchnageAccount = await fireblocks.get_exchange_account(exchangeAccountId); name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise>\ - \ = fireblocks.vaults.getPublicKeyInfoForAddress(vaultsApiGetPublicKeyInfoForAddressRequest);" + code: "const response: Promise> = fireblocks.exchangeAccounts.getExchangeAccount(exchangeAccountsApiGetExchangeAccountRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response = fireblocks.vaults().getPublicKeyInfoForAddress(vaultAccountId,\ - \ assetId, change, addressIndex, compressed);" + code: CompletableFuture> response = fireblocks.exchangeAccounts().getExchangeAccount(exchangeAccountId); name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.vaults.get_public_key_info_for_address(vault_account_id,\ - \ asset_id, change, address_index, compressed);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.vaults.getPublicKeyInfoForAddress(vaultsApiGetPublicKeyInfoForAddressRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.vaults().getPublicKeyInfoForAddress(vaultAccountId,\ - \ assetId, change, addressIndex, compressed);" - - lang: Python - source: "response = fireblocks.vaults.get_public_key_info_for_address(vault_account_id,\ - \ asset_id, change, address_index, compressed);" x-accepts: - application/json - /vault/assets: - get: - description: Gets the assets amount summary for all accounts or filtered accounts. - operationId: getVaultAssets + /exchange_accounts/{exchangeAccountId}/internal_transfer: + post: + description: Transfers funds between trading accounts under the same exchange + account. + operationId: internalTransfer parameters: - - explode: true - in: query - name: accountNamePrefix - required: false + - description: The ID of the exchange account to return + explode: false + in: path + name: exchangeAccountId + required: true schema: type: string - style: form - - explode: true - in: query - name: accountNameSuffix + style: simple + - description: "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." + explode: false + in: header + name: Idempotency-Key required: false schema: type: string - style: form + style: simple + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateInternalTransferRequest" responses: - "200": + "201": content: application/json: schema: - $ref: "#/components/schemas/GetVaultAssetsResponse" - description: Amount by asset + $ref: "#/components/schemas/InternalTransferResponse" + description: Transfer succeeded headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: Get asset balance for chosen assets + summary: Internal transfer for exchange accounts tags: - - Vaults - x-rate-limit-category: read + - Exchange accounts x-readme: code-samples: - - language: python - code: "assets_balance = fireblocks.get_vault_assets_balance(accout_name_prefix,\ - \ account_name_suffix)" - name: Fireblocks SDK Python example (Legacy) - - language: javascript - code: "const assetsBalance = await fireblocks.getVaultAssetsBalance(accountNamePrefix,\ - \ accountNameSuffix);" - name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise>\ - \ = fireblocks.vaults.getVaultAssets(vaultsApiGetVaultAssetsRequest);" + code: "const response: Promise>\ + \ = fireblocks.exchangeAccounts.internalTransfer(exchangeAccountsApiInternalTransferRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture>> response = fireblocks.vaults().getVaultAssets(accountNamePrefix,\ - \ accountNameSuffix);" + code: "CompletableFuture> response\ + \ = fireblocks.exchangeAccounts().internalTransfer(exchangeAccountId,\ + \ createInternalTransferRequest, idempotencyKey);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.vaults.get_vault_assets(account_name_prefix,\ - \ account_name_suffix);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.vaults.getVaultAssets(vaultsApiGetVaultAssetsRequest);" - - lang: Java - source: "CompletableFuture>> response = fireblocks.vaults().getVaultAssets(accountNamePrefix,\ - \ accountNameSuffix);" - - lang: Python - source: "response = fireblocks.vaults.get_vault_assets(account_name_prefix,\ - \ account_name_suffix);" + x-content-type: application/json x-accepts: - application/json - /vault/assets/bulk: + /exchange_accounts/{exchangeAccountId}/convert: post: - description: | - Create multiple wallets for a given vault account by running an async job.
- **Note**: - - These endpoints are currently in beta and might be subject to changes. - - We limit accounts to 10k per operation and 200k per customer during beta testing. - - Currently, we are only supporting EVM wallets. - operationId: createAssetsBulk + description: "Convert exchange account funds from the source asset to the destination\ + \ asset. Coinbase (USD to USDC, USDC to USD) and Bitso (MXN to USD) are supported\ + \ conversions." + operationId: convertAssets parameters: + - description: "The ID of the exchange account. Please make sure the exchange\ + \ supports conversions. To find the ID of your exchange account, use GET/exchange_accounts." + explode: false + in: path + name: exchangeAccountId + required: true + schema: + type: string + style: simple - description: "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\ @@ -2480,289 +2153,185 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/CreateAssetsBulkRequest" - required: true + $ref: "#/components/schemas/ConvertAssetsRequest" responses: "200": content: application/json: schema: - $ref: "#/components/schemas/JobCreated" - description: A JobCreated object + $ref: "#/components/schemas/ConvertAssetsResponse" + description: Conversion successful headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: Bulk creation of wallets + summary: Convert exchange account funds from the source asset to the destination + asset. tags: - - Assets - x-rate-limit-category: write + - Exchange accounts x-readme: code-samples: - language: typescript - code: "const response: Promise> = fireblocks.assets.createAssetsBulk(assetsApiCreateAssetsBulkRequest);" + code: "const response: Promise>\ + \ = fireblocks.exchangeAccounts.convertAssets(exchangeAccountsApiConvertAssetsRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response = fireblocks.assets().createAssetsBulk(createAssetsBulkRequest,\ + code: "CompletableFuture> response =\ + \ fireblocks.exchangeAccounts().convertAssets(exchangeAccountId, convertAssetsRequest,\ \ idempotencyKey);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.assets.create_assets_bulk(create_assets_bulk_request,\ - \ idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.assets.createAssetsBulk(assetsApiCreateAssetsBulkRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.assets().createAssetsBulk(createAssetsBulkRequest,\ - \ idempotencyKey);" - - lang: Python - source: "response = fireblocks.assets.create_assets_bulk(create_assets_bulk_request,\ - \ idempotency_key);" x-content-type: application/json x-accepts: - application/json - /vault/assets/{assetId}: + /exchange_accounts/{exchangeAccountId}/{assetId}: get: - description: Gets the vault balance summary for an asset. - operationId: getVaultBalanceByAsset + description: Returns an asset for an exchange account. + operationId: getExchangeAccountAsset parameters: - - explode: false + - description: The ID of the exchange account to return + explode: false + in: path + name: exchangeAccountId + required: true + schema: + type: string + style: simple + - description: The ID of the asset to return + explode: false in: path name: assetId required: true schema: type: string - x-fb-entity: asset style: simple responses: "200": content: application/json: schema: - $ref: "#/components/schemas/VaultAsset" - description: Vault amount by asset + $ref: "#/components/schemas/ExchangeAsset" + description: An ExchangeAccountAsset object headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: Get vault balance by asset + summary: Find an asset for an exchange account tags: - - Vaults - x-rate-limit-category: read + - Exchange accounts x-readme: code-samples: - language: python - code: assets_balance = fireblocks.get_vault_balance_by_asset(asset_id) - name: Fireblocks SDK Python example (Legacy) + code: "exchangeAsset = fireblocks.get_exchange_account_asset(exchangeAccountId,\ + \ assetId)" + name: Fireblocks SDK Python example - language: javascript - code: const assetsBalance = await fireblocks.getVaultBalanceByAsset(assetId); + code: "const exchangeAsset = await fireblocks.getExchangeAsset(exchangeAccountId,\ + \ assetId);" name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise> = fireblocks.vaults.getVaultBalanceByAsset(vaultsApiGetVaultBalanceByAssetRequest);" + code: "const response: Promise> = fireblocks.exchangeAccounts.getExchangeAccountAsset(exchangeAccountsApiGetExchangeAccountAssetRequest);" name: Fireblocks SDK TypeScript example - language: java - code: CompletableFuture> response = fireblocks.vaults().getVaultBalanceByAsset(assetId); + code: "CompletableFuture> response = fireblocks.exchangeAccounts().getExchangeAccountAsset(exchangeAccountId,\ + \ assetId);" name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.vaults.get_vault_balance_by_asset(asset_id); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.vaults.getVaultBalanceByAsset(vaultsApiGetVaultBalanceByAssetRequest);" - - lang: Java - source: CompletableFuture> response = fireblocks.vaults().getVaultBalanceByAsset(assetId); - - lang: Python - source: response = fireblocks.vaults.get_vault_balance_by_asset(asset_id); x-accepts: - application/json - /ncw/wallets/supported_assets: + /fiat_accounts: get: - description: Get all the available supported assets for the Non-Custodial Wallet - operationId: GetEmbeddedWalletSupportedAssets - parameters: - - description: Next page cursor to fetch - example: MjAyMy0xMi0xMyAyMDozNjowOC4zMDI=:MTEwMA== - explode: true - in: query - name: pageCursor - required: false - schema: - type: string - style: form - - description: Items per page - example: 500 - explode: true - in: query - name: pageSize - required: false - schema: - default: 200 - maximum: 400 - type: number - style: form - - description: Only base assets - example: true - explode: true - in: query - name: onlyBaseAssets - required: false - schema: - type: boolean - style: form + description: Returns all fiat accounts. + operationId: getFiatAccounts responses: "200": content: application/json: schema: - $ref: "#/components/schemas/EmbeddedWalletPaginatedAssetsResponse" - description: Successful response + $ref: "#/components/schemas/GetFiatAccountsResponse" + description: A fiat account object headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: Retrieve supported assets + summary: List fiat accounts tags: - - Embedded Wallets - x-rate-limit-category: query + - Fiat accounts x-readme: code-samples: + - language: python + code: transactions = fireblocks.get_fiat_accounts() + name: Fireblocks SDK Python example + - language: javascript + code: const transactions = await fireblocks.getFiatAccounts(); + name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise>\ - \ = fireblocks.embeddedWallets.getEmbeddedWalletSupportedAssets(embeddedWalletsApiGetEmbeddedWalletSupportedAssetsRequest);" + code: "const response: Promise>\ + \ = fireblocks.fiatAccounts.getFiatAccounts();" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture>\ - \ response = fireblocks.embeddedWallets().getEmbeddedWalletSupportedAssets(pageCursor,\ - \ pageSize, onlyBaseAssets);" + code: CompletableFuture>> response = fireblocks.fiatAccounts().getFiatAccounts(); name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.embedded_wallets.get_embedded_wallet_supported_assets(page_cursor,\ - \ page_size, only_base_assets);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.embeddedWallets.getEmbeddedWalletSupportedAssets(embeddedWalletsApiGetEmbeddedWalletSupportedAssetsRequest);" - - lang: Java - source: "CompletableFuture>\ - \ response = fireblocks.embeddedWallets().getEmbeddedWalletSupportedAssets(pageCursor,\ - \ pageSize, onlyBaseAssets);" - - lang: Python - source: "response = fireblocks.embedded_wallets.get_embedded_wallet_supported_assets(page_cursor,\ - \ page_size, only_base_assets);" x-accepts: - application/json - /ncw/wallets: + /fiat_accounts/{accountId}: get: - description: Get all Non Custodial Wallets - operationId: GetEmbeddedWallets + description: Returns a fiat account by ID. + operationId: getFiatAccount parameters: - - description: Next page cursor to fetch - example: MjAyMy0xMi0xMyAyMDozNjowOC4zMDI=:MTEwMA== - explode: true - in: query - name: pageCursor - required: false + - description: The ID of the fiat account to return + explode: false + in: path + name: accountId + required: true schema: type: string - style: form - - description: Items per page - example: 500 - explode: true - in: query - name: pageSize - required: false - schema: - default: 200 - maximum: 400 - type: number - style: form - - description: Field(s) to use for sorting - example: createdAt - explode: true - in: query - name: sort - required: false - schema: - default: createdAt - enum: - - createdAt - type: string - style: form - - description: Is the order ascending or descending - example: ASC - explode: true - in: query - name: order - required: false - schema: - default: ASC - enum: - - ASC - - DESC - type: string - style: form - - description: Enabled Wallets - example: true - explode: true - in: query - name: enabled - required: false - schema: - type: boolean - style: form + style: simple responses: "200": content: application/json: schema: - $ref: "#/components/schemas/EmbeddedWalletPaginatedWalletsResponse" - description: Successful response + $ref: "#/components/schemas/FiatAccount" + description: A fiat account object headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: List wallets + summary: Find a specific fiat account tags: - - Embedded Wallets - x-rate-limit-category: query + - Fiat accounts x-readme: code-samples: + - language: python + code: transactions = fireblocks.get_fiat_account_by_id(account_id) + name: Fireblocks SDK Python example + - language: javascript + code: const transactions = await fireblocks.getFiatAccountById(accountId); + name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise>\ - \ = fireblocks.embeddedWallets.getEmbeddedWallets(embeddedWalletsApiGetEmbeddedWalletsRequest);" + code: "const response: Promise> = fireblocks.fiatAccounts.getFiatAccount(fiatAccountsApiGetFiatAccountRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture>\ - \ response = fireblocks.embeddedWallets().getEmbeddedWallets(pageCursor,\ - \ pageSize, sort, order, enabled);" + code: CompletableFuture> response = fireblocks.fiatAccounts().getFiatAccount(accountId); name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.embedded_wallets.get_embedded_wallets(page_cursor,\ - \ page_size, sort, order, enabled);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.embeddedWallets.getEmbeddedWallets(embeddedWalletsApiGetEmbeddedWalletsRequest);" - - lang: Java - source: "CompletableFuture>\ - \ response = fireblocks.embeddedWallets().getEmbeddedWallets(pageCursor,\ - \ pageSize, sort, order, enabled);" - - lang: Python - source: "response = fireblocks.embedded_wallets.get_embedded_wallets(page_cursor,\ - \ page_size, sort, order, enabled);" x-accepts: - application/json + /fiat_accounts/{accountId}/redeem_to_linked_dda: post: - description: Create new Non Custodial Wallet - operationId: CreateEmbeddedWallet + description: Redeems funds to the linked DDA. + operationId: redeemFundsToLinkedDDA parameters: + - description: The ID of the fiat account to use + explode: false + in: path + name: accountId + required: true + schema: + type: string + style: simple - description: "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\ @@ -2774,174 +2343,188 @@ paths: schema: type: string style: simple + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/Funds" responses: "201": content: application/json: schema: - $ref: "#/components/schemas/EmbeddedWallet" - description: Wallet created successfully + $ref: "#/components/schemas/RedeemFundsToLinkedDDAResponse" + description: Transfer succeeded headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: Create a new wallet + summary: Redeem funds to DDA tags: - - Embedded Wallets - x-rate-limit-category: write + - Fiat accounts x-readme: code-samples: + - language: python + code: "transactions = fireblocks.redeem_to_linked_dda(account_id, amount)" + name: Fireblocks SDK Python example + - language: javascript + code: "const transactions = await fireblocks.redeemToLinkedDDA(accountId,\ + \ amount);" + name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise> = fireblocks.embeddedWallets.createEmbeddedWallet(embeddedWalletsApiCreateEmbeddedWalletRequest);" + code: "const response: Promise>\ + \ = fireblocks.fiatAccounts.redeemFundsToLinkedDDA(fiatAccountsApiRedeemFundsToLinkedDDARequest);" name: Fireblocks SDK TypeScript example - language: java - code: CompletableFuture> response = fireblocks.embeddedWallets().createEmbeddedWallet(idempotencyKey); + code: "CompletableFuture> response\ + \ = fireblocks.fiatAccounts().redeemFundsToLinkedDDA(accountId, funds,\ + \ idempotencyKey);" name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.embedded_wallets.create_embedded_wallet(idempotency_key); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.embeddedWallets.createEmbeddedWallet(embeddedWalletsApiCreateEmbeddedWalletRequest);" - - lang: Java - source: CompletableFuture> response = fireblocks.embeddedWallets().createEmbeddedWallet(idempotencyKey); - - lang: Python - source: response = fireblocks.embedded_wallets.create_embedded_wallet(idempotency_key); + x-content-type: application/json x-accepts: - application/json - /ncw/wallets/{walletId}: - get: - description: Get a wallet - operationId: GetEmbeddedWallet + /fiat_accounts/{accountId}/deposit_from_linked_dda: + post: + description: Deposits funds from the linked DDA. + operationId: depositFundsFromLinkedDDA parameters: - - description: Wallet Id + - description: The ID of the fiat account to use explode: false in: path - name: walletId + name: accountId required: true schema: - example: 550e8400-e29b-41d4-a716-446655440000 type: string style: simple + - description: "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." + explode: false + in: header + name: Idempotency-Key + required: false + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/Funds" responses: - "200": + "201": content: application/json: schema: - $ref: "#/components/schemas/EmbeddedWallet" - description: Successful response + $ref: "#/components/schemas/DepositFundsFromLinkedDDAResponse" + description: Transfer succeeded headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: Get a wallet + summary: Deposit funds from DDA tags: - - Embedded Wallets - x-rate-limit-category: read + - Fiat accounts x-readme: code-samples: + - language: python + code: "transactions = fireblocks.deposit_from_linked_dda(account_id, amount)" + name: Fireblocks SDK Python example + - language: javascript + code: "const transactions = await fireblocks.depositFromLinkedDDA(accountId,\ + \ amount);" + name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise> = fireblocks.embeddedWallets.getEmbeddedWallet(embeddedWalletsApiGetEmbeddedWalletRequest);" + code: "const response: Promise>\ + \ = fireblocks.fiatAccounts.depositFundsFromLinkedDDA(fiatAccountsApiDepositFundsFromLinkedDDARequest);" name: Fireblocks SDK TypeScript example - language: java - code: CompletableFuture> response = fireblocks.embeddedWallets().getEmbeddedWallet(walletId); + code: "CompletableFuture>\ + \ response = fireblocks.fiatAccounts().depositFundsFromLinkedDDA(accountId,\ + \ funds, idempotencyKey);" name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.embedded_wallets.get_embedded_wallet(wallet_id); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.embeddedWallets.getEmbeddedWallet(embeddedWalletsApiGetEmbeddedWalletRequest);" - - lang: Java - source: CompletableFuture> response = fireblocks.embeddedWallets().getEmbeddedWallet(walletId); - - lang: Python - source: response = fireblocks.embedded_wallets.get_embedded_wallet(wallet_id); + x-content-type: application/json x-accepts: - application/json - /ncw/wallets/{walletId}/accounts/{accountId}/assets/{assetId}: + /network_connections: get: - description: "Get asset under a specific account, under a specific Non Custodial\ - \ Wallet" - operationId: GetEmbeddedWalletAsset - parameters: - - description: Wallet Id - example: 550e8400-e29b-41d4-a716-446655440000 - explode: false - in: path - name: walletId - required: true - schema: - type: string - style: simple - - description: The ID of the account - example: "0" - explode: false - in: path - name: accountId - required: true - schema: - type: string - style: simple - - description: The ID of the asset - example: BTC - explode: false - in: path - name: assetId - required: true - schema: - type: string - x-fb-entity: asset - style: simple + description: | + Returns all network connections. + + **Note:** This API call is subject to Flexible Routing Schemes. + + Your routing policy defines how your transactions are routed. + You can choose 1 of the 3 different schemes mentioned below for each asset type: + - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. + - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. + - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as "Profile Routing" + + Default Workspace Presets: + - Network Profile Crypto → **Custom** + - Network Profile FIAT → **None** + - Network Connection Crypto → **Default** + - Network Connection FIAT → **Default** + + - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). + operationId: getNetworkConnections responses: "200": content: application/json: schema: - $ref: "#/components/schemas/EmbeddedWalletAssetResponse" - description: Successful response + $ref: "#/components/schemas/GetNetworkConnectionsResponse" + description: A list of network connections headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: Retrieve asset + summary: List network connections tags: - - Embedded Wallets - x-rate-limit-category: read + - Network connections x-readme: code-samples: + - language: python + code: network_connections = fireblocks.get_network_connections() + name: Fireblocks SDK Python example + - language: javascript + code: const networkConnections = await fireblocks.getNetworkConnections(); + name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise>\ - \ = fireblocks.embeddedWallets.getEmbeddedWalletAsset(embeddedWalletsApiGetEmbeddedWalletAssetRequest);" + code: "const response: Promise>\ + \ = fireblocks.networkConnections.getNetworkConnections();" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response\ - \ = fireblocks.embeddedWallets().getEmbeddedWalletAsset(walletId, accountId,\ - \ assetId);" + code: CompletableFuture>> response + = fireblocks.networkConnections().getNetworkConnections(); name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.embedded_wallets.get_embedded_wallet_asset(wallet_id,\ - \ account_id, asset_id);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.embeddedWallets.getEmbeddedWalletAsset(embeddedWalletsApiGetEmbeddedWalletAssetRequest);" - - lang: Java - source: "CompletableFuture> response\ - \ = fireblocks.embeddedWallets().getEmbeddedWalletAsset(walletId, accountId,\ - \ assetId);" - - lang: Python - source: "response = fireblocks.embedded_wallets.get_embedded_wallet_asset(wallet_id,\ - \ account_id, asset_id);" x-accepts: - application/json post: - description: "Get the addresses of a specific asset, under a specific account,\ - \ under a specific Non Custodial Wallet" - operationId: AddEmbeddedWalletAsset + description: | + Initiates a new network connection. + + **Note:** This API call is subject to Flexible Routing Schemes. + + Your routing policy defines how your transactions are routed. + You can choose 1 of the 3 different schemes mentioned below for each asset type: + - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. + - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. + - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as "Profile Routing" + + Default Workspace Presets: + - Network Profile Crypto → **Custom** + - Network Profile FIAT → **None** + - Network Connection Crypto → **Default** + - Network Connection FIAT → **Default** + + Supported asset groups for routing police can be found at `/network_ids/routing_policy_asset_groups` + + - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). + operationId: createNetworkConnection parameters: - description: "A unique identifier for the request. If the request is sent\ \ multiple times with the same idempotency key, the server will return the\ @@ -2954,638 +2537,448 @@ paths: schema: type: string style: simple - - description: Wallet Id - example: 550e8400-e29b-41d4-a716-446655440000 - explode: false - in: path - name: walletId - required: true - schema: - type: string - style: simple - - description: The ID of the account - example: "0" - explode: false - in: path - name: accountId - required: true - schema: - type: string - x-fb-entity: asset - style: simple - - description: The ID of the asset - example: BTC - explode: false - in: path - name: assetId - required: true - schema: - type: string - style: simple + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/NetworkConnection" responses: "201": content: application/json: schema: - $ref: "#/components/schemas/EmbeddedWalletAddressDetails" - description: Created + $ref: "#/components/schemas/NetworkConnectionResponse" + description: A Network Connection object + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: Add asset to account + summary: Creates a new network connection tags: - - Embedded Wallets - x-rate-limit-category: write + - Network connections x-readme: code-samples: - language: typescript - code: "const response: Promise>\ - \ = fireblocks.embeddedWallets.addEmbeddedWalletAsset(embeddedWalletsApiAddEmbeddedWalletAssetRequest);" + code: "const response: Promise>\ + \ = fireblocks.networkConnections.createNetworkConnection(networkConnectionsApiCreateNetworkConnectionRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response\ - \ = fireblocks.embeddedWallets().addEmbeddedWalletAsset(walletId, accountId,\ - \ assetId, idempotencyKey);" + code: "CompletableFuture> response\ + \ = fireblocks.networkConnections().createNetworkConnection(networkConnection,\ + \ idempotencyKey);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.embedded_wallets.add_embedded_wallet_asset(wallet_id,\ - \ account_id, asset_id, idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.embeddedWallets.addEmbeddedWalletAsset(embeddedWalletsApiAddEmbeddedWalletAssetRequest);" - - lang: Java - source: "CompletableFuture> response\ - \ = fireblocks.embeddedWallets().addEmbeddedWalletAsset(walletId, accountId,\ - \ assetId, idempotencyKey);" - - lang: Python - source: "response = fireblocks.embedded_wallets.add_embedded_wallet_asset(wallet_id,\ - \ account_id, asset_id, idempotency_key);" + x-content-type: application/json x-accepts: - application/json - /ncw/wallets/{walletId}/accounts/{accountId}/assets/{assetId}/balance: - get: - description: "Get balance for specific asset, under a specific account" - operationId: GetEmbeddedWalletAssetBalance - parameters: - - description: Wallet Id - example: 550e8400-e29b-41d4-a716-446655440000 - explode: false - in: path - name: walletId - required: true - schema: - type: string - style: simple - - description: The ID of the account - example: "0" - explode: false - in: path - name: accountId - required: true - schema: - type: string - style: simple - - description: The ID of the asset - example: BTC + /network_connections/{connectionId}/set_routing_policy: + patch: + description: | + Updates an existing network connection's routing policy. + + **Note:** This API call is subject to Flexible Routing Schemes. + + Your routing policy defines how your transactions are routed. + You can choose 1 of the 3 different schemes mentioned below for each asset type: + - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. + - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. + - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as "Profile Routing" + + Default Workspace Presets: + - Network Profile Crypto → **Custom** + - Network Profile FIAT → **None** + - Network Connection Crypto → **Default** + - Network Connection FIAT → **Default** + + Supported asset groups for routing police can be found at `/network_ids/routing_policy_asset_groups` + + - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). + operationId: setRoutingPolicy + parameters: + - description: The ID of the network connection explode: false in: path - name: assetId + name: connectionId required: true schema: type: string - x-fb-entity: asset style: simple + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/SetRoutingPolicyRequest" responses: "200": content: application/json: schema: - $ref: "#/components/schemas/EmbeddedWalletAssetBalance" - description: Successful response + $ref: "#/components/schemas/SetRoutingPolicyResponse" + description: Network ID + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: Retrieve asset balance + summary: Update network connection routing policy. tags: - - Embedded Wallets - x-rate-limit-category: read + - Network connections x-readme: code-samples: - language: typescript - code: "const response: Promise>\ - \ = fireblocks.embeddedWallets.getEmbeddedWalletAssetBalance(embeddedWalletsApiGetEmbeddedWalletAssetBalanceRequest);" + code: "const response: Promise>\ + \ = fireblocks.networkConnections.setRoutingPolicy(networkConnectionsApiSetRoutingPolicyRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response\ - \ = fireblocks.embeddedWallets().getEmbeddedWalletAssetBalance(walletId,\ - \ accountId, assetId);" + code: "CompletableFuture> response\ + \ = fireblocks.networkConnections().setRoutingPolicy(connectionId, setRoutingPolicyRequest);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.embedded_wallets.get_embedded_wallet_asset_balance(wallet_id,\ - \ account_id, asset_id);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.embeddedWallets.getEmbeddedWalletAssetBalance(embeddedWalletsApiGetEmbeddedWalletAssetBalanceRequest);" - - lang: Java - source: "CompletableFuture> response\ - \ = fireblocks.embeddedWallets().getEmbeddedWalletAssetBalance(walletId,\ - \ accountId, assetId);" - - lang: Python - source: "response = fireblocks.embedded_wallets.get_embedded_wallet_asset_balance(wallet_id,\ - \ account_id, asset_id);" + x-content-type: application/json x-accepts: - application/json - put: - description: Refresh the balance of an asset in a specific account - operationId: RefreshEmbeddedWalletAssetBalance + /network_connections/{connectionId}/is_third_party_routing/{assetType}: + get: + description: The Fireblocks Network allows for flexibility around incoming deposits. + A receiver can receive network deposits to locations other than Fireblocks. + This endpoint validates whether future transactions are routed to the displayed + recipient or to a 3rd party. + operationId: checkThirdPartyRouting parameters: - - description: "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." - explode: false - in: header - name: Idempotency-Key - required: false - schema: - type: string - style: simple - - description: Wallet Id - example: 550e8400-e29b-41d4-a716-446655440000 - explode: false - in: path - name: walletId - required: true - schema: - type: string - style: simple - - description: The ID of the account - example: "0" + - description: The ID of the network connection explode: false in: path - name: accountId + name: connectionId required: true schema: type: string style: simple - - description: The ID of the asset - example: BTC + - description: The destination asset type explode: false in: path - name: assetId + name: assetType required: true schema: type: string - x-fb-entity: asset style: simple responses: "200": content: application/json: schema: - $ref: "#/components/schemas/EmbeddedWalletAssetBalance" - description: Successful response + $ref: "#/components/schemas/ThirdPartyRouting" + description: result for the validation headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: Refresh asset balance + summary: Retrieve third-party network routing validation by asset type. tags: - - Embedded Wallets - x-rate-limit-category: write + - Network connections x-readme: code-samples: - language: typescript - code: "const response: Promise>\ - \ = fireblocks.embeddedWallets.refreshEmbeddedWalletAssetBalance(embeddedWalletsApiRefreshEmbeddedWalletAssetBalanceRequest);" + code: "const response: Promise> =\ + \ fireblocks.networkConnections.checkThirdPartyRouting(networkConnectionsApiCheckThirdPartyRoutingRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response\ - \ = fireblocks.embeddedWallets().refreshEmbeddedWalletAssetBalance(walletId,\ - \ accountId, assetId, idempotencyKey);" + code: "CompletableFuture> response = fireblocks.networkConnections().checkThirdPartyRouting(connectionId,\ + \ assetType);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.embedded_wallets.refresh_embedded_wallet_asset_balance(wallet_id,\ - \ account_id, asset_id, idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.embeddedWallets.refreshEmbeddedWalletAssetBalance(embeddedWalletsApiRefreshEmbeddedWalletAssetBalanceRequest);" - - lang: Java - source: "CompletableFuture> response\ - \ = fireblocks.embeddedWallets().refreshEmbeddedWalletAssetBalance(walletId,\ - \ accountId, assetId, idempotencyKey);" - - lang: Python - source: "response = fireblocks.embedded_wallets.refresh_embedded_wallet_asset_balance(wallet_id,\ - \ account_id, asset_id, idempotency_key);" x-accepts: - application/json - /ncw/wallets/{walletId}/accounts/{accountId}/assets/{assetId}/addresses: - get: - description: "Get the addresses of a specific asset, under a specific account,\ - \ under a specific Non Custodial Wallet" - operationId: GetEmbeddedWalletAddresses + /network_connections/{connectionId}: + delete: + description: | + Deletes an existing network connection specified by its connection ID. + + **Note:** This API call is subject to Flexible Routing Schemes. + + Your routing policy defines how your transactions are routed. + You can choose 1 of the 3 different schemes mentioned below for each asset type: + - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. + - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. + - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as "Profile Routing" + + Default Workspace Presets: + - Network Profile Crypto → **Custom** + - Network Profile FIAT → **None** + - Network Connection Crypto → **Default** + - Network Connection FIAT → **Default** + + - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). + operationId: deleteNetworkConnection parameters: - - description: Wallet Id - example: 550e8400-e29b-41d4-a716-446655440000 - explode: false - in: path - name: walletId - required: true - schema: - type: string - style: simple - - description: The ID of the account - example: "0" - explode: false - in: path - name: accountId - required: true - schema: - type: string - style: simple - - description: The ID of the asset - example: BTC + - description: The ID of the network connection to delete explode: false in: path - name: assetId + name: connectionId required: true schema: type: string style: simple - - description: Cursor to the next page - example: MjAyMy0xMi0xMyAyMDozNjowOC4zMDI=:MTEwMA== - explode: true - in: query - name: pageCursor - required: false - schema: - type: string - style: form - - description: Items per page - example: 10 - explode: true - in: query - name: pageSize - required: false - schema: - maximum: 100 - minimum: 1 - type: number - style: form - - description: Sort by address - example: address - explode: true - in: query - name: sort - required: false - schema: - default: createdAt - enum: - - address - - createdAt - type: string - style: form - - description: Is the order ascending or descending - example: ASC - explode: true - in: query - name: order - required: false - schema: - default: ASC - enum: - - DESC - - ASC - type: string - style: form - - description: Enabled - example: true - explode: true - in: query - name: enabled - required: false - schema: - type: boolean - style: form responses: "200": content: application/json: schema: - $ref: "#/components/schemas/EmbeddedWalletPaginatedAddressesResponse" - description: Successful response + $ref: "#/components/schemas/DeleteNetworkConnectionResponse" + description: Network ID + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: Retrieve asset addresses + summary: Deletes a network connection by ID tags: - - Embedded Wallets - x-rate-limit-category: query + - Network connections x-readme: code-samples: - language: typescript - code: "const response: Promise>\ - \ = fireblocks.embeddedWallets.getEmbeddedWalletAddresses(embeddedWalletsApiGetEmbeddedWalletAddressesRequest);" + code: "const response: Promise>\ + \ = fireblocks.networkConnections.deleteNetworkConnection(networkConnectionsApiDeleteNetworkConnectionRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture>\ - \ response = fireblocks.embeddedWallets().getEmbeddedWalletAddresses(walletId,\ - \ accountId, assetId, pageCursor, pageSize, sort, order, enabled);" + code: CompletableFuture> response + = fireblocks.networkConnections().deleteNetworkConnection(connectionId); name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.embedded_wallets.get_embedded_wallet_addresses(wallet_id,\ - \ account_id, asset_id, page_cursor, page_size, sort, order, enabled);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.embeddedWallets.getEmbeddedWalletAddresses(embeddedWalletsApiGetEmbeddedWalletAddressesRequest);" - - lang: Java - source: "CompletableFuture>\ - \ response = fireblocks.embeddedWallets().getEmbeddedWalletAddresses(walletId,\ - \ accountId, assetId, pageCursor, pageSize, sort, order, enabled);" - - lang: Python - source: "response = fireblocks.embedded_wallets.get_embedded_wallet_addresses(wallet_id,\ - \ account_id, asset_id, page_cursor, page_size, sort, order, enabled);" x-accepts: - application/json - /ncw/wallets/{walletId}/accounts: - post: - description: Create a new account under a specific Non Custodial Wallet - operationId: CreateEmbeddedWalletAccount + get: + description: | + Gets a network connection by ID. + + **Note:** This API call is subject to Flexible Routing Schemes. + + Your routing policy defines how your transactions are routed. + You can choose 1 of the 3 different schemes mentioned below for each asset type: + - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. + - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. + - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as "Profile Routing" + + Default Workspace Presets: + - Network Profile Crypto → **Custom** + - Network Profile FIAT → **None** + - Network Connection Crypto → **Default** + - Network Connection FIAT → **Default** + + - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). + operationId: getNetwork parameters: - - description: "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." - explode: false - in: header - name: Idempotency-Key - required: false - schema: - type: string - style: simple - - description: Wallet Id - example: 550e8400-e29b-41d4-a716-446655440000 + - description: The ID of the connection explode: false in: path - name: walletId + name: connectionId required: true schema: - example: 550e8400-e29b-41d4-a716-446655440000 type: string style: simple responses: - "201": + "200": content: application/json: schema: - $ref: "#/components/schemas/EmbeddedWalletAccount" - description: Account Created + $ref: "#/components/schemas/NetworkConnectionResponse" + description: A network connection headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: Create a new account + summary: Get a network connection tags: - - Embedded Wallets - x-rate-limit-category: write + - Network connections x-readme: code-samples: + - language: python + code: network_connection = fireblocks.get_network_connection_by_id(connectionId) + name: Fireblocks SDK Python example + - language: javascript + code: const network_connection = await fireblocks.getNetworkConnection(connectionId); + name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise>\ - \ = fireblocks.embeddedWallets.createEmbeddedWalletAccount(embeddedWalletsApiCreateEmbeddedWalletAccountRequest);" + code: "const response: Promise>\ + \ = fireblocks.networkConnections.getNetwork(networkConnectionsApiGetNetworkRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response =\ - \ fireblocks.embeddedWallets().createEmbeddedWalletAccount(walletId, idempotencyKey);" + code: CompletableFuture> response + = fireblocks.networkConnections().getNetwork(connectionId); name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.embedded_wallets.create_embedded_wallet_account(wallet_id,\ - \ idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.embeddedWallets.createEmbeddedWalletAccount(embeddedWalletsApiCreateEmbeddedWalletAccountRequest);" - - lang: Java - source: "CompletableFuture> response =\ - \ fireblocks.embeddedWallets().createEmbeddedWalletAccount(walletId, idempotencyKey);" - - lang: Python - source: "response = fireblocks.embedded_wallets.create_embedded_wallet_account(wallet_id,\ - \ idempotency_key);" x-accepts: - application/json - /ncw/wallets/{walletId}/accounts/{accountId}: + /network_ids: get: - description: Get a specific account under a specific Non Custodial Wallet - operationId: GetEmbeddedWalletAccount - parameters: - - description: WalletId - example: 550e8400-e29b-41d4-a716-446655440000 - explode: false - in: path - name: walletId - required: true - schema: - type: string - style: simple - - description: The ID of the account - example: "0" - explode: false - in: path - name: accountId - required: true - schema: - type: string - style: simple + description: | + Retrieves a list of all local and discoverable remote network IDs. + + **Note:** This API call is subject to Flexible Routing Schemes. + + Your routing policy defines how your transactions are routed. + You can choose 1 of the 3 different schemes mentioned below for each asset type: + - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. + - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. + - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as "Profile Routing" + + Default Workspace Presets: + - Network Profile Crypto → **Custom** + - Network Profile FIAT → **None** + - Network Connection Crypto → **Default** + - Network Connection FIAT → **Default** + + - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). + operationId: getNetworkIds responses: "200": content: application/json: schema: - $ref: "#/components/schemas/EmbeddedWalletAccount" - description: Successful response + $ref: "#/components/schemas/GetNetworkIdsResponse" + description: A list of network IDs headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: Get a account + summary: "Returns all network IDs, both local IDs and discoverable remote IDs" tags: - - Embedded Wallets - x-rate-limit-category: read + - Network connections x-readme: code-samples: - language: typescript - code: "const response: Promise>\ - \ = fireblocks.embeddedWallets.getEmbeddedWalletAccount(embeddedWalletsApiGetEmbeddedWalletAccountRequest);" + code: "const response: Promise>\ + \ = fireblocks.networkConnections.getNetworkIds();" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response =\ - \ fireblocks.embeddedWallets().getEmbeddedWalletAccount(walletId, accountId);" + code: CompletableFuture>> response = fireblocks.networkConnections().getNetworkIds(); name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.embedded_wallets.get_embedded_wallet_account(wallet_id,\ - \ account_id);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.embeddedWallets.getEmbeddedWalletAccount(embeddedWalletsApiGetEmbeddedWalletAccountRequest);" - - lang: Java - source: "CompletableFuture> response =\ - \ fireblocks.embeddedWallets().getEmbeddedWalletAccount(walletId, accountId);" - - lang: Python - source: "response = fireblocks.embedded_wallets.get_embedded_wallet_account(wallet_id,\ - \ account_id);" x-accepts: - application/json - /ncw/wallets/{walletId}/backup/latest: - get: - description: "Get wallet Latest Backup details, including the deviceId, and\ - \ backup time" - operationId: GetEmbeddedWalletLatestBackup + post: + description: | + Creates a new Network ID. + + **Note:** This API call is subject to Flexible Routing Schemes. + + Your routing policy defines how your transactions are routed. + You can choose 1 of the 3 different schemes mentioned below for each asset type: + - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. + - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. + - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as "Profile Routing" + + Default Workspace Presets: + - Network Profile Crypto → **Custom** + - Network Profile FIAT → **None** + - Network Connection Crypto → **Default** + - Network Connection FIAT → **Default** + + Supported asset groups for routing police can be found at `/network_ids/routing_policy_asset_groups` + + - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). + operationId: createNetworkId parameters: - - description: Wallet Id - example: 550e8400-e29b-41d4-a716-446655440000 + - description: "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." explode: false - in: path - name: walletId - required: true + in: header + name: Idempotency-Key + required: false schema: type: string style: simple + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateNetworkIdRequest" responses: - "200": + "201": content: application/json: schema: - $ref: "#/components/schemas/EmbeddedWalletLatestBackupResponse" - description: Successful response + $ref: "#/components/schemas/NetworkIdResponse" + description: Returns the new network ID in your workspace headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: Get wallet Latest Backup details + summary: Creates a new Network ID tags: - - Embedded Wallets - x-rate-limit-category: read + - Network connections x-readme: code-samples: - language: typescript - code: "const response: Promise>\ - \ = fireblocks.embeddedWallets.getEmbeddedWalletLatestBackup(embeddedWalletsApiGetEmbeddedWalletLatestBackupRequest);" + code: "const response: Promise> =\ + \ fireblocks.networkConnections.createNetworkId(networkConnectionsApiCreateNetworkIdRequest);" name: Fireblocks SDK TypeScript example - language: java - code: CompletableFuture> - response = fireblocks.embeddedWallets().getEmbeddedWalletLatestBackup(walletId); + code: "CompletableFuture> response = fireblocks.networkConnections().createNetworkId(createNetworkIdRequest,\ + \ idempotencyKey);" name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.embedded_wallets.get_embedded_wallet_latest_backup(wallet_id); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.embeddedWallets.getEmbeddedWalletLatestBackup(embeddedWalletsApiGetEmbeddedWalletLatestBackupRequest);" - - lang: Java - source: CompletableFuture> - response = fireblocks.embeddedWallets().getEmbeddedWalletLatestBackup(walletId); - - lang: Python - source: response = fireblocks.embedded_wallets.get_embedded_wallet_latest_backup(wallet_id); + x-content-type: application/json x-accepts: - application/json - /ncw/wallets/{walletId}/devices/{deviceId}: + /network_ids/routing_policy_asset_groups: get: - description: Get specific device for a specific s Wallet - operationId: GetEmbeddedWalletDevice - parameters: - - description: Wallet Id - example: 550e8400-e29b-41d4-a716-446655440000 - explode: false - in: path - name: walletId - required: true - schema: - type: string - style: simple - - description: Device Id - example: 9ee1bff0-6dba-4f0c-9b75-03fe90e66fa3 - explode: false - in: path - name: deviceId - required: true - schema: - type: string - style: simple + description: | + Retrieves a list of all enabled routing policy asset groups. + Your routing policy defines how your transactions are routed. + You can use one or more enabled routing policy asset groups to describe connection or network id routing policy. + operationId: getRoutingPolicyAssetGroups responses: "200": content: application/json: schema: - $ref: "#/components/schemas/EmbeddedWalletDevice" - description: Successful response + $ref: "#/components/schemas/GetRoutingPolicyAssetGroupsResponse" + description: A list of enabled routing policy asset groups headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: Get Embedded Wallet Device + summary: Returns all enabled routing policy asset groups tags: - - Embedded Wallets - x-rate-limit-category: read + - Network connections x-readme: code-samples: - language: typescript - code: "const response: Promise>\ - \ = fireblocks.embeddedWallets.getEmbeddedWalletDevice(embeddedWalletsApiGetEmbeddedWalletDeviceRequest);" + code: "const response: Promise>\ + \ = fireblocks.networkConnections.getRoutingPolicyAssetGroups();" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response = fireblocks.embeddedWallets().getEmbeddedWalletDevice(walletId,\ - \ deviceId);" + code: CompletableFuture>> response = fireblocks.networkConnections().getRoutingPolicyAssetGroups(); name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.embedded_wallets.get_embedded_wallet_device(wallet_id,\ - \ device_id);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.embeddedWallets.getEmbeddedWalletDevice(embeddedWalletsApiGetEmbeddedWalletDeviceRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.embeddedWallets().getEmbeddedWalletDevice(walletId,\ - \ deviceId);" - - lang: Python - source: "response = fireblocks.embedded_wallets.get_embedded_wallet_device(wallet_id,\ - \ device_id);" x-accepts: - application/json - /ncw/wallets/{walletId}/devices/{deviceId}/setup_status: - get: - description: Get the state of the specific device setup key under a specific - Non Custodial Wallet - operationId: GetEmbeddedWalletDeviceSetupState + /network_ids/{networkId}: + delete: + description: | + Deletes a network by its ID. + + **Note:** This API call is subject to Flexible Routing Schemes. + + Your routing policy defines how your transactions are routed. + You can choose 1 of the 3 different schemes mentioned below for each asset type: + - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. + - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. + - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as "Profile Routing" + + Default Workspace Presets: + - Network Profile Crypto → **Custom** + - Network Profile FIAT → **None** + - Network Connection Crypto → **Default** + - Network Connection FIAT → **Default** + + - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). + operationId: deleteNetworkId parameters: - - description: Wallet Id - example: 550e8400-e29b-41d4-a716-446655440000 - explode: false - in: path - name: walletId - required: true - schema: - type: string - style: simple - - description: Device Id - example: 9ee1bff0-6dba-4f0c-9b75-03fe90e66fa3 + - description: The ID of the network explode: false in: path - name: deviceId + name: networkId required: true schema: type: string @@ -3595,449 +2988,309 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/EmbeddedWalletDeviceKeySetupResponse" - description: Successful response - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" + $ref: "#/components/schemas/DeleteNetworkIdResponse" + description: Network ID default: $ref: "#/components/responses/Error" - summary: Get device key setup state + summary: Deletes specific network ID. tags: - - Embedded Wallets - x-rate-limit-category: read + - Network connections x-readme: code-samples: - language: typescript - code: "const response: Promise>\ - \ = fireblocks.embeddedWallets.getEmbeddedWalletDeviceSetupState(embeddedWalletsApiGetEmbeddedWalletDeviceSetupStateRequest);" + code: "const response: Promise>\ + \ = fireblocks.networkConnections.deleteNetworkId(networkConnectionsApiDeleteNetworkIdRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture>\ - \ response = fireblocks.embeddedWallets().getEmbeddedWalletDeviceSetupState(walletId,\ - \ deviceId);" + code: CompletableFuture> response = + fireblocks.networkConnections().deleteNetworkId(networkId); name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.embedded_wallets.get_embedded_wallet_device_setup_state(wallet_id,\ - \ device_id);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.embeddedWallets.getEmbeddedWalletDeviceSetupState(embeddedWalletsApiGetEmbeddedWalletDeviceSetupStateRequest);" - - lang: Java - source: "CompletableFuture>\ - \ response = fireblocks.embeddedWallets().getEmbeddedWalletDeviceSetupState(walletId,\ - \ deviceId);" - - lang: Python - source: "response = fireblocks.embedded_wallets.get_embedded_wallet_device_setup_state(wallet_id,\ - \ device_id);" x-accepts: - application/json - /ncw/wallets/{walletId}/public_key_info: get: - description: Gets the public key information based on derivation path and signing - algorithm within a Non-Custodial Wallet - operationId: getPublicKeyInfoNcw + description: | + Retrieves a network by its ID. + + **Note:** This API call is subject to Flexible Routing Schemes. + + Your routing policy defines how your transactions are routed. + You can choose 1 of the 3 different schemes mentioned below for each asset type: + - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. + - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. + - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as "Profile Routing" + + Default Workspace Presets: + - Network Profile Crypto → **Custom** + - Network Profile FIAT → **None** + - Network Connection Crypto → **Default** + - Network Connection FIAT → **Default** + + - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). + operationId: getNetworkId parameters: - - description: Unique ID of the End-User wallet to the API request. Required - for end-user wallet operations. - explode: false - in: header - name: X-End-User-Wallet-Id - required: true - schema: - format: uuid - type: string - style: simple - - description: The ID of the Non-Custodial wallet + - description: The ID of the network explode: false in: path - name: walletId + name: networkId required: true schema: - example: 550e8400-e29b-41d4-a716-446655440000 type: string style: simple - - description: "An array of integers (passed as JSON stringified array) representing\ - \ the full BIP44 derivation path of the requested public key. \nThe first\ - \ element must always be 44.\n" - example: - - 44 - - 0 - - 0 - - 0 - - 0 - explode: true - in: query - name: derivationPath - required: true - schema: - type: string - style: form - - description: Elliptic Curve - explode: true - in: query - name: algorithm - required: true - schema: - enum: - - MPC_ECDSA_SECP256K1 - - MPC_ECDSA_SECP256R1 - - MPC_EDDSA_ED25519 - example: MPC_EDDSA_ED25519 - type: string - style: form - - description: Compressed/Uncompressed public key format - explode: true - in: query - name: compressed - required: false - schema: - example: true - type: boolean - style: form responses: "200": content: application/json: schema: - $ref: "#/components/schemas/PublicKeyInformation" - description: Public key information + $ref: "#/components/schemas/NetworkIdResponse" + description: Network ID headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: Get the public key for a derivation path + summary: Returns specific network ID. tags: - - Embedded Wallets - x-rate-limit-category: read + - Network connections x-readme: code-samples: - - language: javascript - code: "const publicKeyInfoArgs = { \n algorithm: 'MPC_ECDSA_SECP256K1',\n\ - \ derivationPath: [44, 0, 0, 0, 0],\n compressed: true\n};\nconst pubKey\ - \ = await fireblocks.NCW.getPublicKeyInfo(walletId, publicKeyInfoArgs);\n" - name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise>\ - \ = fireblocks.embeddedWallets.getPublicKeyInfoNcw(embeddedWalletsApiGetPublicKeyInfoNcwRequest);" + code: "const response: Promise> =\ + \ fireblocks.networkConnections.getNetworkId(networkConnectionsApiGetNetworkIdRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response = fireblocks.embeddedWallets().getPublicKeyInfoNcw(walletId,\ - \ derivationPath, algorithm, xEndUserWalletId, compressed);" + code: CompletableFuture> response = fireblocks.networkConnections().getNetworkId(networkId); name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.embedded_wallets.get_public_key_info_ncw(wallet_id,\ - \ derivation_path, algorithm, x_end_user_wallet_id, compressed);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.embeddedWallets.getPublicKeyInfoNcw(embeddedWalletsApiGetPublicKeyInfoNcwRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.embeddedWallets().getPublicKeyInfoNcw(walletId,\ - \ derivationPath, algorithm, xEndUserWalletId, compressed);" - - lang: Python - source: "response = fireblocks.embedded_wallets.get_public_key_info_ncw(wallet_id,\ - \ derivation_path, algorithm, x_end_user_wallet_id, compressed);" x-accepts: - application/json - /ncw/wallets/{walletId}/accounts/{accountId}/assets/{assetId}/{change}/{addressIndex}/public_key_info: - get: - description: Gets the public key of an asset associated with a specific account - within a Non-Custodial Wallet - operationId: GetEmbeddedWalletPublicKeyInfoForAddress - parameters: - - description: Unique ID of the End-User wallet to the API request. Required - for end-user wallet operations. - explode: false - in: header - name: X-End-User-Wallet-Id - required: true - schema: - format: uuid - type: string - style: simple - - description: The ID of the Non-Custodial wallet - explode: false - in: path - name: walletId - required: true - schema: - example: 550e8400-e29b-41d4-a716-446655440000 - type: string - style: simple - - description: The ID of the account - explode: false - in: path - name: accountId - required: true - schema: - example: "0" - format: numeric - type: string - style: simple - - description: The ID of the asset + /network_ids/{networkId}/set_routing_policy: + patch: + description: | + Updates the routing policy of a specified network ID. + + **Note:** This API call is subject to Flexible Routing Schemes. + + Your routing policy defines how your transactions are routed. + You can choose 1 of the 3 different schemes mentioned below for each asset type: + - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. + - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. + - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as "Profile Routing" + + Default Workspace Presets: + - Network Profile Crypto → **Custom** + - Network Profile FIAT → **None** + - Network Connection Crypto → **Default** + - Network Connection FIAT → **Default** + + Supported asset groups for routing police can be found at `/network_ids/routing_policy_asset_groups` + + - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). + operationId: setNetworkIdRoutingPolicy + parameters: + - description: The ID of the network explode: false in: path - name: assetId + name: networkId required: true schema: - example: BTC type: string - x-fb-entity: asset - style: simple - - description: BIP44 derivation path - change value - explode: false - in: path - name: change - required: true - schema: - example: 0 - type: number - style: simple - - description: BIP44 derivation path - index value - explode: false - in: path - name: addressIndex - required: true - schema: - example: 0 - type: number style: simple - - description: Compressed/Uncompressed public key format - explode: true - in: query - name: compressed - required: false - schema: - example: true - type: boolean - style: form + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/SetNetworkIdRoutingPolicyRequest" responses: "200": content: application/json: schema: - $ref: "#/components/schemas/PublicKeyInformation" - description: Public Key Information + $ref: "#/components/schemas/SetNetworkIdResponse" + description: Network ID headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: Get the public key of an asset + summary: Update network id routing policy. tags: - - Embedded Wallets - x-rate-limit-category: read + - Network connections x-readme: code-samples: - - language: javascript - code: "const publicKeyInfoByAccountAssetArgs = {\n assetId: 'ETH',\n accountId:\ - \ 0,\n change: 0,\n addressIndex: 0,\n compressed: true\n}; \ - \ \nconst pubKey = await fireblocks.NCW.getPublicKeyInfoByAccountAsset(walletId,\ - \ publicKeyInfoByAccountAssetArgs);\n" - name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise>\ - \ = fireblocks.embeddedWallets.getEmbeddedWalletPublicKeyInfoForAddress(embeddedWalletsApiGetEmbeddedWalletPublicKeyInfoForAddressRequest);" + code: "const response: Promise>\ + \ = fireblocks.networkConnections.setNetworkIdRoutingPolicy(networkConnectionsApiSetNetworkIdRoutingPolicyRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response = fireblocks.embeddedWallets().getEmbeddedWalletPublicKeyInfoForAddress(walletId,\ - \ accountId, assetId, change, addressIndex, xEndUserWalletId, compressed);" + code: "CompletableFuture> response = fireblocks.networkConnections().setNetworkIdRoutingPolicy(networkId,\ + \ setNetworkIdRoutingPolicyRequest);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.embedded_wallets.get_embedded_wallet_public_key_info_for_address(wallet_id,\ - \ account_id, asset_id, change, address_index, x_end_user_wallet_id, compressed);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.embeddedWallets.getEmbeddedWalletPublicKeyInfoForAddress(embeddedWalletsApiGetEmbeddedWalletPublicKeyInfoForAddressRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.embeddedWallets().getEmbeddedWalletPublicKeyInfoForAddress(walletId,\ - \ accountId, assetId, change, addressIndex, xEndUserWalletId, compressed);" - - lang: Python - source: "response = fireblocks.embedded_wallets.get_embedded_wallet_public_key_info_for_address(wallet_id,\ - \ account_id, asset_id, change, address_index, x_end_user_wallet_id, compressed);" + x-content-type: application/json x-accepts: - application/json - /ncw/{walletId}/accounts/{accountId}/{assetId}/{change}/{addressIndex}/public_key_info: - get: - description: Gets the public key of an asset associated with a specific account - within a Non-Custodial Wallet - operationId: getPublicKeyInfoForAddressNcw + /network_ids/{networkId}/set_discoverability: + patch: + description: | + Update whether or not the network ID is discoverable by others. + + **Note:** This API call is subject to Flexible Routing Schemes. + + Your routing policy defines how your transactions are routed. + You can choose 1 of the 3 different schemes mentioned below for each asset type: + - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. + - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. + - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as "Profile Routing" + + Default Workspace Presets: + - Network Profile Crypto → **Custom** + - Network Profile FIAT → **None** + - Network Connection Crypto → **Default** + - Network Connection FIAT → **Default** + + - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). + operationId: setNetworkIdDiscoverability parameters: - - description: Unique ID of the End-User wallet to the API request. Required - for end-user wallet operations. - explode: false - in: header - name: X-End-User-Wallet-Id - required: true - schema: - format: uuid - type: string - style: simple - - description: The ID of the Non-Custodial wallet - explode: false - in: path - name: walletId - required: true - schema: - example: 550e8400-e29b-41d4-a716-446655440000 - type: string - style: simple - - description: The ID of the account - explode: false - in: path - name: accountId - required: true - schema: - example: "0" - format: numeric - type: string - style: simple - - description: The ID of the asset + - description: The ID of the network explode: false in: path - name: assetId + name: networkId required: true schema: - example: BTC type: string - x-fb-entity: asset - style: simple - - description: BIP44 derivation path - change value - explode: false - in: path - name: change - required: true - schema: - example: 0 - type: number style: simple - - description: BIP44 derivation path - index value - explode: false - in: path - name: addressIndex + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/SetNetworkIdDiscoverabilityRequest" required: true - schema: - example: 0 - type: number - style: simple - - description: Compressed/Uncompressed public key format - explode: true - in: query - name: compressed - required: false - schema: - example: true - type: boolean - style: form responses: "200": content: application/json: schema: - $ref: "#/components/schemas/PublicKeyInformation" - description: Public Key Information + $ref: "#/components/schemas/SetNetworkIdResponse" + description: Network ID headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: Get the public key of an asset + summary: Update network ID's discoverability. tags: - - Embedded Wallets - x-internal: true - x-rate-limit-category: read + - Network connections x-readme: code-samples: - - language: python - code: "pubKey = fireblocks.NCW.get_public_key_info_by_account_asset(wallet_id,\ - \ asset_id, account_id, change, address_index, compressed)" - name: Fireblocks SDK Python example - - language: javascript - code: "const publicKeyInfoByAccountAssetArgs = {\n assetId: 'ETH',\n accountId:\ - \ 0,\n change: 0,\n addressIndex: 0,\n compressed: true\n}; \ - \ \nconst pubKey = await fireblocks.NCW.getPublicKeyInfoByAccountAsset(walletId,\ - \ publicKeyInfoByAccountAssetArgs);\n" - name: Fireblocks SDK Javascript example + - language: typescript + code: "const response: Promise>\ + \ = fireblocks.networkConnections.setNetworkIdDiscoverability(networkConnectionsApiSetNetworkIdDiscoverabilityRequest);" + name: Fireblocks SDK TypeScript example + - language: java + code: "CompletableFuture> response = fireblocks.networkConnections().setNetworkIdDiscoverability(setNetworkIdDiscoverabilityRequest,\ + \ networkId);" + name: Fireblocks SDK Java example + x-content-type: application/json x-accepts: - application/json - /workspace/freeze: - post: - description: "Freezes a Workspace so that ALL operations by ANY user are blocked.\n\ - \nYou should only perform this action when the workspace faces imminent risk,\ - \ such as when you have a security breach.\n\nTo unfreeze a workspace, the\ - \ workspace Owner must submit a request to Fireblocks Support.\n\n**NOTE:**\ - \ \n- This operation can only be performed by the workspace Owner\n- Your\ - \ workspace continues to receive incoming transfers during this time.\n" - operationId: freezeWorkspace + /network_ids/{networkId}/set_name: + patch: + description: | + Updates name of a specified network ID. + + **Note:** This API call is subject to Flexible Routing Schemes. + + Your routing policy defines how your transactions are routed. + You can choose 1 of the 3 different schemes mentioned below for each asset type: + - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. + - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. + - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as "Profile Routing" + + Default Workspace Presets: + - Network Profile Crypto → **Custom** + - Network Profile FIAT → **None** + - Network Connection Crypto → **Default** + - Network Connection FIAT → **Default** + + - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). + operationId: setNetworkIdName parameters: - - description: "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." + - description: The ID of the network explode: false - in: header - name: Idempotency-Key - required: false + in: path + name: networkId + required: true schema: type: string style: simple - responses: - "204": - description: indicates that the workspace is now frozen - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: Freeze Workspace - tags: - - Workspace - x-internal: true - x-rate-limit-category: write - x-accepts: - - application/json - /exchange_accounts: - get: - deprecated: true - description: Deprecated (use new 'paged' endpoint) - Returns all exchange accounts. - operationId: getExchangeAccounts + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/SetNetworkIdNameRequest" + required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/GetExchangeAccountsResponse" - description: An ExchangeAccount object + $ref: "#/components/schemas/SetNetworkIdResponse" + description: Network ID headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: List exchange accounts + summary: Update network ID's name. tags: - - Exchange accounts - x-internal: true - x-rate-limit-category: query + - Network connections x-readme: code-samples: - - language: python - code: exchangeAccounts = fireblocks.get_exchange_accounts() - name: Fireblocks SDK Python example (Legacy) - - language: javascript - code: const exchangeAccounts = await fireblocks.getExchangeAccounts(); - name: Fireblocks SDK Javascript example + - language: typescript + code: "const response: Promise>\ + \ = fireblocks.networkConnections.setNetworkIdName(networkConnectionsApiSetNetworkIdNameRequest);" + name: Fireblocks SDK TypeScript example + - language: java + code: "CompletableFuture> response = fireblocks.networkConnections().setNetworkIdName(setNetworkIdNameRequest,\ + \ networkId);" + name: Fireblocks SDK Java example + x-content-type: application/json + x-accepts: + - application/json + /internal_wallets: + get: + description: | + Gets a list of internal wallets. + + **Note**: BTC-based assets belonging to whitelisted addresses cannot be retrieved between 00:00 UTC and 00:01 UTC daily due to third-party provider, Blockchair, being unavailable for this 60 second period. Please wait until the next minute to retrieve BTC-based assets. + operationId: getInternalWallets + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/GetInternalWalletsResponse" + description: A list of internal wallets + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" + default: + $ref: "#/components/responses/Error" + summary: List internal wallets + tags: + - Internal wallets + x-readme: + code-samples: + - language: typescript + code: "const response: Promise>\ + \ = fireblocks.internalWallets.getInternalWallets();" + name: Fireblocks SDK TypeScript example + - language: java + code: CompletableFuture>> response = fireblocks.internalWallets().getInternalWallets(); + name: Fireblocks SDK Java example x-accepts: - application/json post: - description: Add an exchange account to exchanges. - operationId: addExchangeAccount + description: Creates a new internal wallet with the requested name. + operationId: createInternalWallet parameters: - description: "A unique identifier for the request. If the request is sent\ \ multiple times with the same idempotency key, the server will return the\ @@ -4054,142 +3307,89 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/AddExchangeAccountRequest" - required: true + $ref: "#/components/schemas/CreateWalletRequest" responses: - "201": + "200": content: application/json: schema: - $ref: "#/components/schemas/AddExchangeAccountResponse" - description: An Exchange Account identifier object + $ref: "#/components/schemas/UnmanagedWallet" + description: A new wallet object headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: Add an exchange account + summary: Create an internal wallet tags: - - Exchange accounts - x-rate-limit-category: write + - Internal wallets x-readme: code-samples: + - language: python + code: "internalWallet = fireblocks.create_internal_wallet(name, customer_ref_id)" + name: Fireblocks SDK Python example + - language: javascript + code: "const internalWallet = await fireblocks.createInternalWallet(name,\ + \ customerRefId);" + name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise>\ - \ = fireblocks.exchangeAccounts.addExchangeAccount(exchangeAccountsApiAddExchangeAccountRequest);" + code: "const response: Promise> = fireblocks.internalWallets.createInternalWallet(internalWalletsApiCreateInternalWalletRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response\ - \ = fireblocks.exchangeAccounts().addExchangeAccount(addExchangeAccountRequest,\ + code: "CompletableFuture> response = fireblocks.internalWallets().createInternalWallet(createWalletRequest,\ \ idempotencyKey);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.exchange_accounts.add_exchange_account(add_exchange_account_request,\ - \ idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.exchangeAccounts.addExchangeAccount(exchangeAccountsApiAddExchangeAccountRequest);" - - lang: Java - source: "CompletableFuture> response\ - \ = fireblocks.exchangeAccounts().addExchangeAccount(addExchangeAccountRequest,\ - \ idempotencyKey);" - - lang: Python - source: "response = fireblocks.exchange_accounts.add_exchange_account(add_exchange_account_request,\ - \ idempotency_key);" x-content-type: application/json x-accepts: - application/json - /exchange_accounts/paged: - get: - description: Returns a page include exchange accounts. - operationId: getPagedExchangeAccounts + /internal_wallets/{walletId}: + delete: + description: Deletes an internal wallet by ID. + operationId: deleteInternalWallet parameters: - - explode: true - in: query - name: before - required: false - schema: - type: string - style: form - - explode: true - in: query - name: after - required: false - schema: - type: string - style: form - - description: number of exchanges per page - explode: true - in: query - name: limit + - description: The ID of the wallet to delete + explode: false + in: path + name: walletId required: true schema: - default: 3 - maximum: 5 - minimum: 1 - type: number - style: form + type: string + style: simple responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/GetPagedExchangeAccountsResponse" - description: An ExchangeAccount object + "201": + description: OK headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: Pagination list exchange accounts + summary: Delete an internal wallet tags: - - Exchange accounts - x-rate-limit-category: query + - Internal wallets x-readme: code-samples: + - language: python + code: result = firebocks.delete_internal_wallet(walletId) + name: Fireblocks SDK Python example - language: javascript - code: const exchangeAccounts = await fireblocks.getExchangeAccountsPaged(); + code: const result = await fireblocks.deleteInternalWallet(walletId); name: Fireblocks SDK Javascript example - - language: python - code: exchangeAccounts = fireblocks.get_exchange_accounts_paged() - name: Fireblocks SDK Python example (Legacy) - language: typescript - code: "const response: Promise>\ - \ = fireblocks.exchangeAccounts.getPagedExchangeAccounts(exchangeAccountsApiGetPagedExchangeAccountsRequest);" + code: "const response: Promise> = fireblocks.internalWallets.deleteInternalWallet(internalWalletsApiDeleteInternalWalletRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture>> response\ - \ = fireblocks.exchangeAccounts().getPagedExchangeAccounts(limit, before,\ - \ after);" + code: CompletableFuture> response = fireblocks.internalWallets().deleteInternalWallet(walletId); name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.exchange_accounts.get_paged_exchange_accounts(limit,\ - \ before, after);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.exchangeAccounts.getPagedExchangeAccounts(exchangeAccountsApiGetPagedExchangeAccountsRequest);" - - lang: Java - source: "CompletableFuture>> response\ - \ = fireblocks.exchangeAccounts().getPagedExchangeAccounts(limit, before,\ - \ after);" - - lang: Python - source: "response = fireblocks.exchange_accounts.get_paged_exchange_accounts(limit,\ - \ before, after);" x-accepts: - application/json - /exchange_accounts/{exchangeAccountId}: get: - description: Returns an exchange account by ID. - operationId: getExchangeAccount + description: Returns all assets in an internal wallet by ID. + operationId: getInternalWallet parameters: - - description: The ID of the exchange account to return + - description: The ID of the wallet to return explode: false in: path - name: exchangeAccountId + name: walletId required: true schema: type: string @@ -4199,53 +3399,42 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/ExchangeAccount" - description: An ExchangeAccount object + $ref: "#/components/schemas/UnmanagedWallet" + description: A Wallet object headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: Find a specific exchange account + summary: Get assets for internal wallet tags: - - Exchange accounts - x-rate-limit-category: query + - Internal wallets x-readme: code-samples: - language: python - code: exchangeAccount = fireblocks.get_exchange_account(exchangeAccountId) - name: Fireblocks SDK Python example (Legacy) + code: internalWallet = fireblocks.get_internal_wallet(walletId) + name: Fireblocks SDK Python example - language: javascript - code: const exchnageAccount = await fireblocks.get_exchange_account(exchangeAccountId); + code: const result = await fireblocks.getInternalWallet(walletId); name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise> = fireblocks.exchangeAccounts.getExchangeAccount(exchangeAccountsApiGetExchangeAccountRequest);" + code: "const response: Promise> = fireblocks.internalWallets.getInternalWallet(internalWalletsApiGetInternalWalletRequest);" name: Fireblocks SDK TypeScript example - language: java - code: CompletableFuture> response = fireblocks.exchangeAccounts().getExchangeAccount(exchangeAccountId); + code: CompletableFuture> response = fireblocks.internalWallets().getInternalWallet(walletId); name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.exchange_accounts.get_exchange_account(exchange_account_id); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.exchangeAccounts.getExchangeAccount(exchangeAccountsApiGetExchangeAccountRequest);" - - lang: Java - source: CompletableFuture> response = fireblocks.exchangeAccounts().getExchangeAccount(exchangeAccountId); - - lang: Python - source: response = fireblocks.exchange_accounts.get_exchange_account(exchange_account_id); x-accepts: - application/json - /exchange_accounts/{exchangeAccountId}/internal_transfer: + /internal_wallets/{walletId}/set_customer_ref_id: post: - description: Transfers funds between trading accounts under the same exchange - account. - operationId: internalTransfer + description: Sets an AML/KYT customer reference ID for the specific internal + wallet. + operationId: setCustomerRefIdForInternalWallet parameters: - - description: The ID of the exchange account to return + - description: The wallet ID explode: false in: path - name: exchangeAccountId + name: walletId required: true schema: type: string @@ -4265,139 +3454,98 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/CreateInternalTransferRequest" + $ref: "#/components/schemas/SetCustomerRefIdRequest" + required: true responses: "201": - content: - application/json: - schema: - $ref: "#/components/schemas/InternalTransferResponse" - description: Transfer succeeded + description: OK headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: Internal transfer for exchange accounts + summary: Set an AML/KYT customer reference ID for an internal wallet tags: - - Exchange accounts - x-rate-limit-category: high_compute + - Internal wallets x-readme: code-samples: + - language: python + code: "result = firebocks.set_customer_ref_id_for_internal_wallet(wallet_id,\ + \ customer_ref_id)" + name: Fireblocks SDK Python example + - language: javascript + code: "const result = await fireblocks.setCustomerRefIdForInternalWallet(walletId,\ + \ customerRefId);" + name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise>\ - \ = fireblocks.exchangeAccounts.internalTransfer(exchangeAccountsApiInternalTransferRequest);" + code: "const response: Promise> = fireblocks.internalWallets.setCustomerRefIdForInternalWallet(internalWalletsApiSetCustomerRefIdForInternalWalletRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response\ - \ = fireblocks.exchangeAccounts().internalTransfer(exchangeAccountId,\ - \ createInternalTransferRequest, idempotencyKey);" + code: "CompletableFuture> response = fireblocks.internalWallets().setCustomerRefIdForInternalWallet(setCustomerRefIdRequest,\ + \ walletId, idempotencyKey);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.exchange_accounts.internal_transfer(exchange_account_id,\ - \ create_internal_transfer_request, idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.exchangeAccounts.internalTransfer(exchangeAccountsApiInternalTransferRequest);" - - lang: Java - source: "CompletableFuture> response\ - \ = fireblocks.exchangeAccounts().internalTransfer(exchangeAccountId, createInternalTransferRequest,\ - \ idempotencyKey);" - - lang: Python - source: "response = fireblocks.exchange_accounts.internal_transfer(exchange_account_id,\ - \ create_internal_transfer_request, idempotency_key);" x-content-type: application/json x-accepts: - application/json - /exchange_accounts/{exchangeAccountId}/convert: - post: - description: "Convert exchange account funds from the source asset to the destination\ - \ asset. Coinbase (USD to USDC, USDC to USD) and Bitso (MXN to USD) are supported\ - \ conversions." - operationId: convertAssets + /internal_wallets/{walletId}/{assetId}: + delete: + description: Deletes a whitelisted address (for an asset) from an internal wallet. + operationId: deleteInternalWalletAsset parameters: - - description: "The ID of the exchange account. Please make sure the exchange\ - \ supports conversions. To find the ID of your exchange account, use GET/exchange_accounts." + - description: The ID of the wallet explode: false in: path - name: exchangeAccountId + name: walletId required: true schema: type: string style: simple - - description: "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." + - description: The ID of the asset to delete explode: false - in: header - name: Idempotency-Key - required: false + in: path + name: assetId + required: true schema: type: string + x-fb-entity: asset style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/ConvertAssetsRequest" responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ConvertAssetsResponse" - description: Conversion successful + "201": + description: OK headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: Convert exchange account funds from the source asset to the destination - asset. + summary: Delete a whitelisted address from an internal wallet tags: - - Exchange accounts - x-rate-limit-category: write + - Internal wallets x-readme: code-samples: + - language: python + code: "result = fireblocks.delete_internal_wallet_asset(walletId, assetId)" + name: Fireblocks SDK Python example + - language: javascript + code: "const result = await fireblocks.deleteInternalWalletAsset(walletId,\ + \ assetId);" + name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise>\ - \ = fireblocks.exchangeAccounts.convertAssets(exchangeAccountsApiConvertAssetsRequest);" + code: "const response: Promise> = fireblocks.internalWallets.deleteInternalWalletAsset(internalWalletsApiDeleteInternalWalletAssetRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response =\ - \ fireblocks.exchangeAccounts().convertAssets(exchangeAccountId, convertAssetsRequest,\ - \ idempotencyKey);" + code: "CompletableFuture> response = fireblocks.internalWallets().deleteInternalWalletAsset(walletId,\ + \ assetId);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.exchange_accounts.convert_assets(exchange_account_id,\ - \ convert_assets_request, idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.exchangeAccounts.convertAssets(exchangeAccountsApiConvertAssetsRequest);" - - lang: Java - source: "CompletableFuture> response =\ - \ fireblocks.exchangeAccounts().convertAssets(exchangeAccountId, convertAssetsRequest,\ - \ idempotencyKey);" - - lang: Python - source: "response = fireblocks.exchange_accounts.convert_assets(exchange_account_id,\ - \ convert_assets_request, idempotency_key);" - x-content-type: application/json x-accepts: - application/json - /exchange_accounts/{exchangeAccountId}/{assetId}: get: - description: Returns an asset for an exchange account. - operationId: getExchangeAccountAsset + description: Returns information for an asset in an internal wallet. + operationId: getInternalWalletAsset parameters: - - description: The ID of the exchange account to return + - description: The ID of the wallet explode: false in: path - name: exchangeAccountId + name: walletId required: true schema: type: string @@ -4409,215 +3557,206 @@ paths: required: true schema: type: string + x-fb-entity: asset style: simple responses: "200": content: application/json: schema: - $ref: "#/components/schemas/ExchangeAsset" - description: An ExchangeAccountAsset object + $ref: "#/components/schemas/WalletAsset" + description: A Wallet Asset object headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: Find an asset for an exchange account + summary: Get an asset from an internal wallet tags: - - Exchange accounts - x-rate-limit-category: query + - Internal wallets x-readme: code-samples: - language: python - code: "exchangeAsset = fireblocks.get_exchange_account_asset(exchangeAccountId,\ + code: "internalWalletAsset = fireblocks.get_internal_wallet_asset(walletId,\ \ assetId)" - name: Fireblocks SDK Python example (Legacy) + name: Fireblocks SDK Python example - language: javascript - code: "const exchangeAsset = await fireblocks.getExchangeAsset(exchangeAccountId,\ + code: "const internalWalletAsset = fireblocks.getInternalWalletAsset(walletId,\ \ assetId);" name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise> = fireblocks.exchangeAccounts.getExchangeAccountAsset(exchangeAccountsApiGetExchangeAccountAssetRequest);" + code: "const response: Promise> = fireblocks.internalWallets.getInternalWalletAsset(internalWalletsApiGetInternalWalletAssetRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response = fireblocks.exchangeAccounts().getExchangeAccountAsset(exchangeAccountId,\ + code: "CompletableFuture> response = fireblocks.internalWallets().getInternalWalletAsset(walletId,\ \ assetId);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.exchange_accounts.get_exchange_account_asset(exchange_account_id,\ - \ asset_id);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.exchangeAccounts.getExchangeAccountAsset(exchangeAccountsApiGetExchangeAccountAssetRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.exchangeAccounts().getExchangeAccountAsset(exchangeAccountId,\ - \ assetId);" - - lang: Python - source: "response = fireblocks.exchange_accounts.get_exchange_account_asset(exchange_account_id,\ - \ asset_id);" x-accepts: - application/json - /exchange_accounts/credentials_public_key: - get: - description: Return public key - operationId: getExchangeAccountsCredentialsPublicKey + post: + description: Adds an asset to an existing internal wallet. + operationId: createInternalWalletAsset + parameters: + - description: The ID of the wallet + explode: false + in: path + name: walletId + required: true + schema: + type: string + style: simple + - description: The ID of the asset to add + explode: false + in: path + name: assetId + required: true + schema: + type: string + x-fb-entity: asset + style: simple + - description: "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." + explode: false + in: header + name: Idempotency-Key + required: false + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateInternalWalletAssetRequest" responses: "200": content: application/json: schema: - $ref: "#/components/schemas/GetExchangeAccountsCredentialsPublicKeyResponse" - description: public key as string + $ref: "#/components/schemas/WalletAsset" + description: A Wallet Asset object headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: Get public key to encrypt exchange credentials + summary: Add an asset to an internal wallet tags: - - Exchange accounts - x-rate-limit-category: read + - Internal wallets x-readme: code-samples: - - language: typescript - code: "const response: Promise>\ - \ = fireblocks.exchangeAccounts.getExchangeAccountsCredentialsPublicKey();" - name: Fireblocks SDK TypeScript example - - language: java - code: CompletableFuture> - response = fireblocks.exchangeAccounts().getExchangeAccountsCredentialsPublicKey(); - name: Fireblocks SDK Java example - language: python - code: response = fireblocks.exchange_accounts.get_exchange_accounts_credentials_public_key(); + code: "internalWalletAsset = fireblocks.create_internal_wallet_asset(walletId,\ + \ assetId, address, tag)" name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.exchangeAccounts.getExchangeAccountsCredentialsPublicKey();" - - lang: Java - source: CompletableFuture> - response = fireblocks.exchangeAccounts().getExchangeAccountsCredentialsPublicKey(); - - lang: Python - source: response = fireblocks.exchange_accounts.get_exchange_accounts_credentials_public_key(); - x-accepts: - - application/json - /fiat_accounts: - get: - description: Returns all fiat accounts. - operationId: getFiatAccounts - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/GetFiatAccountsResponse" - description: A fiat account object - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: List fiat accounts - tags: - - Fiat accounts - x-rate-limit-category: query - x-readme: - code-samples: - - language: python - code: transactions = fireblocks.get_fiat_accounts() - name: Fireblocks SDK Python example (Legacy) - language: javascript - code: const transactions = await fireblocks.getFiatAccounts(); + code: "const internalWalletAsset = await fireblocks.createInternalWalletAsset(walletContainerId,\ + \ assetId, address, tag);" name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise>\ - \ = fireblocks.fiatAccounts.getFiatAccounts();" + code: "const response: Promise> = fireblocks.internalWallets.createInternalWalletAsset(internalWalletsApiCreateInternalWalletAssetRequest);" name: Fireblocks SDK TypeScript example - language: java - code: CompletableFuture>> response = fireblocks.fiatAccounts().getFiatAccounts(); + code: "CompletableFuture> response = fireblocks.internalWallets().createInternalWalletAsset(walletId,\ + \ assetId, createInternalWalletAssetRequest, idempotencyKey);" name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.fiat_accounts.get_fiat_accounts(); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.fiatAccounts.getFiatAccounts();" - - lang: Java - source: CompletableFuture>> response = fireblocks.fiatAccounts().getFiatAccounts(); - - lang: Python - source: response = fireblocks.fiat_accounts.get_fiat_accounts(); + x-content-type: application/json x-accepts: - application/json - /fiat_accounts/{accountId}: + /key_link/signing_keys: get: - description: Returns a fiat account by ID. - operationId: getFiatAccount + description: "Returns the list of signing keys in the workspace\nPlease note\ + \ that this endpoint is available only for Key Link enabled workspaces.\n\ + **Note:** \nThis endpoint is currently in beta and might be subject to changes.\n\ + If you want to participate and learn more about the Fireblocks Key Link, please\ + \ contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com." + operationId: getSigningKeysList parameters: - - description: The ID of the fiat account to return - explode: false - in: path - name: accountId - required: true + - description: Cursor to the next page + example: MjAyMy0xMi0xMyAyMDozNjowOC4zMDI=:MTEwMA== + explode: true + in: query + name: pageCursor + required: false schema: type: string - style: simple + style: form + - description: Amount of results to return in the next page + explode: true + in: query + name: pageSize + required: false + schema: + default: 10 + maximum: 50 + minimum: 1 + type: number + style: form + - description: Field(s) to use for sorting + explode: true + in: query + name: sortBy + required: false + schema: + default: createdAt + enum: + - createdAt + type: string + style: form + - description: Is the order ascending or descending + explode: true + in: query + name: order + required: false + schema: + default: ASC + enum: + - ASC + - DESC + type: string + style: form responses: "200": content: application/json: schema: - $ref: "#/components/schemas/FiatAccount" - description: A fiat account object + $ref: "#/components/schemas/GetSigningKeyResponseDto" + description: List of signing keys and a data that allows requesting the + next page if applicable headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: Find a specific fiat account + summary: Get list of signing keys tags: - - Fiat accounts - x-rate-limit-category: query + - Key Link (Beta) x-readme: code-samples: - - language: python - code: transactions = fireblocks.get_fiat_account_by_id(account_id) - name: Fireblocks SDK Python example (Legacy) - - language: javascript - code: const transactions = await fireblocks.getFiatAccountById(accountId); - name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise> = fireblocks.fiatAccounts.getFiatAccount(fiatAccountsApiGetFiatAccountRequest);" + code: "const response: Promise>\ + \ = fireblocks.keyLinkBeta.getSigningKeysList(keyLinkBetaApiGetSigningKeysListRequest);" name: Fireblocks SDK TypeScript example - language: java - code: CompletableFuture> response = fireblocks.fiatAccounts().getFiatAccount(accountId); + code: "CompletableFuture> response\ + \ = fireblocks.keyLinkBeta().getSigningKeysList(pageCursor, pageSize,\ + \ sortBy, order);" name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.fiat_accounts.get_fiat_account(account_id); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.fiatAccounts.getFiatAccount(fiatAccountsApiGetFiatAccountRequest);" - - lang: Java - source: CompletableFuture> response = fireblocks.fiatAccounts().getFiatAccount(accountId); - - lang: Python - source: response = fireblocks.fiat_accounts.get_fiat_account(account_id); x-accepts: - application/json - /fiat_accounts/{accountId}/redeem_to_linked_dda: post: - description: Redeems funds to the linked DDA. - operationId: redeemFundsToLinkedDDA + description: "Adds a new signing key to the workspace. The added key will be\ + \ linked to the specific Fireblocks agent user ID. The same user will receive\ + \ the proof of ownership message to be signed, and upon successful proof,\ + \ the key will become enabled.\nPlease note that this endpoint is available\ + \ only for Key Link enabled workspaces.\n**Note:** \nThis endpoint is currently\ + \ in beta and might be subject to changes.\nIf you want to participate and\ + \ learn more about the Fireblocks Key Link, please contact your Fireblocks\ + \ Customer Success Manager or send an email to CSM@fireblocks.com." + operationId: createSigningKey parameters: - - description: The ID of the fiat account to use - explode: false - in: path - name: accountId - required: true - schema: - type: string - style: simple - description: "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\ @@ -4633,309 +3772,230 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/Funds" + $ref: "#/components/schemas/CreateSigningKeyDto" + required: true responses: "201": content: application/json: schema: - $ref: "#/components/schemas/RedeemFundsToLinkedDDAResponse" - description: Transfer succeeded + $ref: "#/components/schemas/SigningKeyDto" + description: Newly created signing key headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: Redeem funds to DDA + summary: Add a new signing key tags: - - Fiat accounts - x-rate-limit-category: write + - Key Link (Beta) x-readme: code-samples: - - language: python - code: "transactions = fireblocks.redeem_to_linked_dda(account_id, amount)" - name: Fireblocks SDK Python example (Legacy) - - language: javascript - code: "const transactions = await fireblocks.redeemToLinkedDDA(accountId,\ - \ amount);" - name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise>\ - \ = fireblocks.fiatAccounts.redeemFundsToLinkedDDA(fiatAccountsApiRedeemFundsToLinkedDDARequest);" + code: "const response: Promise> = fireblocks.keyLinkBeta.createSigningKey(keyLinkBetaApiCreateSigningKeyRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response\ - \ = fireblocks.fiatAccounts().redeemFundsToLinkedDDA(accountId, funds,\ + code: "CompletableFuture> response = fireblocks.keyLinkBeta().createSigningKey(createSigningKeyDto,\ \ idempotencyKey);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.fiat_accounts.redeem_funds_to_linked_d_d_a(account_id,\ - \ funds, idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.fiatAccounts.redeemFundsToLinkedDDA(fiatAccountsApiRedeemFundsToLinkedDDARequest);" - - lang: Java - source: "CompletableFuture> response\ - \ = fireblocks.fiatAccounts().redeemFundsToLinkedDDA(accountId, funds, idempotencyKey);" - - lang: Python - source: "response = fireblocks.fiat_accounts.redeem_funds_to_linked_d_d_a(account_id,\ - \ funds, idempotency_key);" x-content-type: application/json x-accepts: - application/json - /fiat_accounts/{accountId}/deposit_from_linked_dda: - post: - description: Deposits funds from the linked DDA. - operationId: depositFundsFromLinkedDDA - parameters: - - description: The ID of the fiat account to use - explode: false - in: path - name: accountId - required: true - schema: - type: string - style: simple - - description: "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." + /key_link/signing_keys/{keyId}: + get: + description: "Returns a signing key if it exists, identified by the specified\ + \ Fireblocks provided `keyId`.\nPlease note that this endpoint is available\ + \ only for Key Link enabled workspaces.\n**Note:** \nThis endpoint is currently\ + \ in beta and might be subject to changes.\nIf you want to participate and\ + \ learn more about the Fireblocks Key Link, please contact your Fireblocks\ + \ Customer Success Manager or send an email to CSM@fireblocks.com." + operationId: getSigningKey + parameters: + - description: The unique identifier for the signing key provided by Fireblocks explode: false - in: header - name: Idempotency-Key - required: false + in: path + name: keyId + required: true schema: + example: 46a92767-5f93-4a46-9eed-f012196bb4fc type: string style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/Funds" responses: - "201": + "200": content: application/json: schema: - $ref: "#/components/schemas/DepositFundsFromLinkedDDAResponse" - description: Transfer succeeded + $ref: "#/components/schemas/SigningKeyDto" + description: Requested signing key data headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: Deposit funds from DDA + summary: Get a signing key by `keyId` tags: - - Fiat accounts - x-rate-limit-category: write + - Key Link (Beta) x-readme: code-samples: - - language: python - code: "transactions = fireblocks.deposit_from_linked_dda(account_id, amount)" - name: Fireblocks SDK Python example (Legacy) - - language: javascript - code: "const transactions = await fireblocks.depositFromLinkedDDA(accountId,\ - \ amount);" - name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise>\ - \ = fireblocks.fiatAccounts.depositFundsFromLinkedDDA(fiatAccountsApiDepositFundsFromLinkedDDARequest);" + code: "const response: Promise> = fireblocks.keyLinkBeta.getSigningKey(keyLinkBetaApiGetSigningKeyRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture>\ - \ response = fireblocks.fiatAccounts().depositFundsFromLinkedDDA(accountId,\ - \ funds, idempotencyKey);" + code: CompletableFuture> response = fireblocks.keyLinkBeta().getSigningKey(keyId); name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.fiat_accounts.deposit_funds_from_linked_d_d_a(account_id,\ - \ funds, idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.fiatAccounts.depositFundsFromLinkedDDA(fiatAccountsApiDepositFundsFromLinkedDDARequest);" - - lang: Java - source: "CompletableFuture>\ - \ response = fireblocks.fiatAccounts().depositFundsFromLinkedDDA(accountId,\ - \ funds, idempotencyKey);" - - lang: Python - source: "response = fireblocks.fiat_accounts.deposit_funds_from_linked_d_d_a(account_id,\ - \ funds, idempotency_key);" - x-content-type: application/json x-accepts: - application/json - /connected_accounts: - get: - description: | - Returns all connected accounts
- **Note**: - - This endpoint is currently in beta and might be subject to changes. - operationId: getConnectedAccounts + patch: + description: "Allows assigning the signing key to a vault account, if it hasn't\ + \ been assigned to any other vault accounts yet.\nPlease note that this endpoint\ + \ is available only for Key Link enabled workspaces.\n**Note:** \nThis endpoint\ + \ is currently in beta and might be subject to changes.\nIf you want to participate\ + \ and learn more about the Fireblocks Key Link, please contact your Fireblocks\ + \ Customer Success Manager or send an email to CSM@fireblocks.com." + operationId: updateSigningKey parameters: - - description: Whether to include only main accounts in the response. - explode: true - in: query - name: mainAccounts - required: false - schema: - default: false - type: boolean - style: form - - description: Page size for pagination. - explode: true - in: query - name: pageSize - required: false - schema: - maximum: 100 - minimum: 1 - type: integer - style: form - - description: Page cursor for pagination. - explode: true - in: query - name: pageCursor - required: false + - description: The unique identifier for the signing key provided by Fireblocks + explode: false + in: path + name: keyId + required: true schema: + example: 46a92767-5f93-4a46-9eed-f012196bb4fc type: string - style: form + style: simple + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/ModifySigningKeyDto" + required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/ConnectedAccountsResponse" - description: Get accounts response + $ref: "#/components/schemas/SigningKeyDto" + description: Modified signing key data headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: Get connected accounts + summary: Modify the signing by Fireblocks provided `keyId` tags: - - Connected Accounts (Beta) - x-rate-limit-category: query + - Key Link (Beta) x-readme: code-samples: - language: typescript - code: "const response: Promise>\ - \ = fireblocks.connectedAccountsBeta.getConnectedAccounts(connectedAccountsBetaApiGetConnectedAccountsRequest);" + code: "const response: Promise> = fireblocks.keyLinkBeta.updateSigningKey(keyLinkBetaApiUpdateSigningKeyRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response\ - \ = fireblocks.connectedAccountsBeta().getConnectedAccounts(mainAccounts,\ - \ pageSize, pageCursor);" + code: "CompletableFuture> response = fireblocks.keyLinkBeta().updateSigningKey(modifySigningKeyDto,\ + \ keyId);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.connected_accounts_beta.get_connected_accounts(main_accounts,\ - \ page_size, page_cursor);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.connectedAccountsBeta.getConnectedAccounts(connectedAccountsBetaApiGetConnectedAccountsRequest);" - - lang: Java - source: "CompletableFuture> response\ - \ = fireblocks.connectedAccountsBeta().getConnectedAccounts(mainAccounts,\ - \ pageSize, pageCursor);" - - lang: Python - source: "response = fireblocks.connected_accounts_beta.get_connected_accounts(main_accounts,\ - \ page_size, page_cursor);" + x-content-type: application/json x-accepts: - application/json - /connected_accounts/{accountId}: - get: - description: | - Retrieve detailed information about a specific connected account by ID.
- **Note**: - - This endpoint is currently in beta and might be subject to changes. - operationId: getConnectedAccount + /key_link/signing_keys/{keyId}/agent_user_id: + patch: + description: "Can modify existing signing key id if the key is not enabled.\ + \ The change done in background and will be visible once applied. If key is\ + \ already enabled (after proof of ownership) the user cannot be changed.\n\ + Please note that this endpoint is available only for Key Link enabled workspaces.\n\ + **Note:** \nThis endpoint is currently in beta and might be subject to changes.\n\ + If you want to participate and learn more about the Fireblocks Key Link, please\ + \ contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com." + operationId: setAgentId parameters: - - description: The ID of the account to fetch. + - description: The unique identifier for the signing key provided by Fireblocks explode: false in: path - name: accountId + name: keyId required: true schema: - minLength: 1 + example: 46a92767-5f93-4a46-9eed-f012196bb4fc type: string style: simple + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/ModifySigningKeyAgentIdDto" + required: true responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ConnectedSingleAccountResponse" - description: Account response + "204": + description: Agent user id modification process has started in background. headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: Get connected account + summary: Set agent user id that can sign with the signing key identified by + the Fireblocks provided `keyId` tags: - - Connected Accounts (Beta) - x-rate-limit-category: read + - Key Link (Beta) x-readme: code-samples: - language: typescript - code: "const response: Promise>\ - \ = fireblocks.connectedAccountsBeta.getConnectedAccount(connectedAccountsBetaApiGetConnectedAccountRequest);" + code: "const response: Promise> = fireblocks.keyLinkBeta.setAgentId(keyLinkBetaApiSetAgentIdRequest);" name: Fireblocks SDK TypeScript example - language: java - code: CompletableFuture> response - = fireblocks.connectedAccountsBeta().getConnectedAccount(accountId); + code: "CompletableFuture> response = fireblocks.keyLinkBeta().setAgentId(modifySigningKeyAgentIdDto,\ + \ keyId);" name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.connected_accounts_beta.get_connected_account(account_id); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.connectedAccountsBeta.getConnectedAccount(connectedAccountsBetaApiGetConnectedAccountRequest);" - - lang: Java - source: CompletableFuture> response - = fireblocks.connectedAccountsBeta().getConnectedAccount(accountId); - - lang: Python - source: response = fireblocks.connected_accounts_beta.get_connected_account(account_id); + x-content-type: application/json x-accepts: - application/json - /connected_accounts/{accountId}/balances: + /key_link/validation_keys: get: - description: | - Retrieve current asset balances for a specific connected account as a flat list (one row per assetId, balanceType) -
- **Note**: - - This endpoint is currently in beta and might be subject to changes. - operationId: getConnectedAccountBalances + description: "Returns the list of validation keys in the workspace\nPlease note\ + \ that this endpoint is available only for Key Link enabled workspaces.\n\ + **Note:** \nThis endpoint is currently in beta and might be subject to changes.\n\ + If you want to participate and learn more about the Fireblocks Key Link, please\ + \ contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com." + operationId: getValidationKeysList parameters: - - description: The ID of the account to fetch balances for. - explode: false - in: path - name: accountId - required: true + - description: Cursor to the next page + example: MjAyMy0xMi0xMyAyMDozNjowOC4zMDI=:MTEwMA== + explode: true + in: query + name: pageCursor + required: false schema: - minLength: 1 type: string - style: simple - - description: Page size for pagination. + style: form + - description: Amount of results to return in the next page explode: true in: query name: pageSize required: false schema: - maximum: 1000 + default: 10 + maximum: 50 minimum: 1 - type: integer + type: number + style: form + - description: Field(s) to use for sorting + explode: true + in: query + name: sortBy + required: false + schema: + default: createdAt + enum: + - createdAt + type: string style: form - - description: Page cursor for pagination. + - description: Is the order ascending or descending explode: true in: query - name: pageCursor + name: order required: false schema: + default: ASC + enum: + - ASC + - DESC type: string style: form responses: @@ -4943,287 +4003,218 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/ConnectedAccountBalancesResponse" - description: Account balances response + $ref: "#/components/schemas/GetValidationKeyResponseDto" + description: Validation keys list along with data required to request the + next page if applicable headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: Get balances for an account + summary: Get list of registered validation keys tags: - - Connected Accounts (Beta) - x-rate-limit-category: query + - Key Link (Beta) x-readme: code-samples: - language: typescript - code: "const response: Promise>\ - \ = fireblocks.connectedAccountsBeta.getConnectedAccountBalances(connectedAccountsBetaApiGetConnectedAccountBalancesRequest);" + code: "const response: Promise>\ + \ = fireblocks.keyLinkBeta.getValidationKeysList(keyLinkBetaApiGetValidationKeysListRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture>\ - \ response = fireblocks.connectedAccountsBeta().getConnectedAccountBalances(accountId,\ - \ pageSize, pageCursor);" + code: "CompletableFuture> response\ + \ = fireblocks.keyLinkBeta().getValidationKeysList(pageCursor, pageSize,\ + \ sortBy, order);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.connected_accounts_beta.get_connected_account_balances(account_id,\ - \ page_size, page_cursor);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.connectedAccountsBeta.getConnectedAccountBalances(connectedAccountsBetaApiGetConnectedAccountBalancesRequest);" - - lang: Java - source: "CompletableFuture>\ - \ response = fireblocks.connectedAccountsBeta().getConnectedAccountBalances(accountId,\ - \ pageSize, pageCursor);" - - lang: Python - source: "response = fireblocks.connected_accounts_beta.get_connected_account_balances(account_id,\ - \ page_size, page_cursor);" x-accepts: - application/json - /connected_accounts/{accountId}/rates: - get: - description: Retrieve current exchange rates for converting between specific - assets in a connected account. - operationId: getConnectedAccountRates + post: + description: "Adds a new validation key used to validate signing keys. The new\ + \ validation key will undergo an approval process by the workspace quorum.\n\ + Please note that this endpoint is available only for Key Link enabled workspaces.\n\ + **Note:** \nThis endpoint is currently in beta and might be subject to changes.\n\ + If you want to participate and learn more about the Fireblocks Key Link, please\ + \ contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com." + operationId: createValidationKey parameters: - - description: The ID of the account to fetch rates for. + - description: "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." explode: false - in: path - name: accountId - required: true + in: header + name: Idempotency-Key + required: false schema: - minLength: 1 type: string style: simple - - description: The ID of the asset to fetch rates for. - explode: true - in: query - name: baseAssetId - required: true - schema: - minLength: 1 - type: string - style: form - - description: The ID of the asset to get the rates nominally. - explode: true - in: query - name: quoteAssetId + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateValidationKeyDto" required: true - schema: - minLength: 1 - type: string - style: form responses: - "200": + "201": content: application/json: schema: - $ref: "#/components/schemas/ConnectedAccountRateResponse" - description: Rates response + $ref: "#/components/schemas/CreateValidationKeyResponseDto" + description: The validation key that was added and is pending approval. headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: Get exchange rates for an account + summary: Add a new validation key tags: - - Connected Accounts (Beta) - x-rate-limit-category: read + - Key Link (Beta) x-readme: code-samples: - language: typescript - code: "const response: Promise>\ - \ = fireblocks.connectedAccountsBeta.getConnectedAccountRates(connectedAccountsBetaApiGetConnectedAccountRatesRequest);" + code: "const response: Promise>\ + \ = fireblocks.keyLinkBeta.createValidationKey(keyLinkBetaApiCreateValidationKeyRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response\ - \ = fireblocks.connectedAccountsBeta().getConnectedAccountRates(accountId,\ - \ baseAssetId, quoteAssetId);" + code: "CompletableFuture> response\ + \ = fireblocks.keyLinkBeta().createValidationKey(createValidationKeyDto,\ + \ idempotencyKey);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.connected_accounts_beta.get_connected_account_rates(account_id,\ - \ base_asset_id, quote_asset_id);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.connectedAccountsBeta.getConnectedAccountRates(connectedAccountsBetaApiGetConnectedAccountRatesRequest);" - - lang: Java - source: "CompletableFuture> response\ - \ = fireblocks.connectedAccountsBeta().getConnectedAccountRates(accountId,\ - \ baseAssetId, quoteAssetId);" - - lang: Python - source: "response = fireblocks.connected_accounts_beta.get_connected_account_rates(account_id,\ - \ base_asset_id, quote_asset_id);" + x-content-type: application/json x-accepts: - application/json - /connected_accounts/{accountId}/manifest/capabilities/trading/pairs: + /key_link/validation_keys/{keyId}: get: - description: "Retrieve all asset trading pairs supported by a specific connected\ - \ account, including the pair type (quote, market, onOffRamp)." - operationId: getConnectedAccountTradingPairs + description: "Returns a validation key if it exists, identified by the specified\ + \ `keyId`.\nPlease note that this endpoint is available only for Key Link\ + \ enabled workspaces.\n**Note:** \nThis endpoint is currently in beta and\ + \ might be subject to changes.\nIf you want to participate and learn more\ + \ about the Fireblocks Key Link, please contact your Fireblocks Customer Success\ + \ Manager or send an email to CSM@fireblocks.com." + operationId: getValidationKey parameters: - - description: The ID of the account to fetch supported pairs for. - explode: false + - explode: false in: path - name: accountId + name: keyId required: true schema: - minLength: 1 type: string style: simple - - description: Page size for pagination. - explode: true - in: query - name: pageSize - required: false - schema: - default: 100 - maximum: 100 - minimum: 1 - type: integer - style: form - - description: Page cursor for pagination. - explode: true - in: query - name: pageCursor - required: false + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ValidationKeyDto" + description: The requested validation key data + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" + default: + $ref: "#/components/responses/Error" + summary: Get a validation key by `keyId` + tags: + - Key Link (Beta) + x-readme: + code-samples: + - language: typescript + code: "const response: Promise> = fireblocks.keyLinkBeta.getValidationKey(keyLinkBetaApiGetValidationKeyRequest);" + name: Fireblocks SDK TypeScript example + - language: java + code: CompletableFuture> response = fireblocks.keyLinkBeta().getValidationKey(keyId); + name: Fireblocks SDK Java example + x-accepts: + - application/json + patch: + description: "Allows disabling validation key even if it has not expired yet.\ + \ It is not allowed to enable the validation key back. Another key has to\ + \ be used for future validations.\nPlease note that this endpoint is available\ + \ only for Key Link enabled workspaces.\n**Note:** \nThis endpoint is currently\ + \ in beta and might be subject to changes.\nIf you want to participate and\ + \ learn more about the Fireblocks Key Link, please contact your Fireblocks\ + \ Customer Success Manager or send an email to CSM@fireblocks.com." + operationId: disableValidationKey + parameters: + - description: The unique identifier for the validation key provided by Fireblocks + explode: false + in: path + name: keyId + required: true schema: + example: 46a92767-5f93-4a46-9eed-f012196bb4fc type: string - style: form + style: simple + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/ModifyValidationKeyDto" + required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/ConnectedAccountTradingPairsResponse" - description: Supported pairs response + $ref: "#/components/schemas/ValidationKeyDto" + description: Modified validation key data headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: Get supported trading pairs for an account + summary: Disables a validation key tags: - - Connected Accounts (Beta) - x-rate-limit-category: query + - Key Link (Beta) x-readme: code-samples: - language: typescript - code: "const response: Promise>\ - \ = fireblocks.connectedAccountsBeta.getConnectedAccountTradingPairs(connectedAccountsBetaApiGetConnectedAccountTradingPairsRequest);" + code: "const response: Promise> = fireblocks.keyLinkBeta.disableValidationKey(keyLinkBetaApiDisableValidationKeyRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture>\ - \ response = fireblocks.connectedAccountsBeta().getConnectedAccountTradingPairs(accountId,\ - \ pageSize, pageCursor);" + code: "CompletableFuture> response = fireblocks.keyLinkBeta().disableValidationKey(modifyValidationKeyDto,\ + \ keyId);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.connected_accounts_beta.get_connected_account_trading_pairs(account_id,\ - \ page_size, page_cursor);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.connectedAccountsBeta.getConnectedAccountTradingPairs(connectedAccountsBetaApiGetConnectedAccountTradingPairsRequest);" - - lang: Java - source: "CompletableFuture>\ - \ response = fireblocks.connectedAccountsBeta().getConnectedAccountTradingPairs(accountId,\ - \ pageSize, pageCursor);" - - lang: Python - source: "response = fireblocks.connected_accounts_beta.get_connected_account_trading_pairs(account_id,\ - \ page_size, page_cursor);" + x-content-type: application/json x-accepts: - application/json - /network_connections: + /external_wallets: get: - description: | - Returns all network connections. - **Note:** This API call is subject to Flexible Routing Schemes. - - Your routing policy defines how your transactions are routed. - You can choose 1 of the 3 different schemes mentioned below for each asset type: - - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as "Profile Routing" - - Default Workspace Presets: - - Network Profile Crypto → **Custom** - - Network Profile FIAT → **None** - - Network Connection Crypto → **Default** - - Network Connection FIAT → **Default** - - - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). - operationId: getNetworkConnections + description: Gets a list of external wallets under the workspace. + operationId: getExternalWallets responses: "200": content: application/json: schema: - $ref: "#/components/schemas/GetNetworkConnectionsResponse" - description: A list of network connections + $ref: "#/components/schemas/GetExternalWalletsResponse" + description: A list of external wallets headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: List network connections + summary: List external wallets tags: - - Network connections - x-rate-limit-category: query + - External wallets x-readme: code-samples: - language: python - code: network_connections = fireblocks.get_network_connections() - name: Fireblocks SDK Python example (Legacy) + code: externalWallets = fireblocks.get_external_wallets() + name: Fireblocks SDK Python example - language: javascript - code: const networkConnections = await fireblocks.getNetworkConnections(); + code: const externalWallets = await fireblocks.getExternalWallets(); name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise>\ - \ = fireblocks.networkConnections.getNetworkConnections();" + code: "const response: Promise>\ + \ = fireblocks.externalWallets.getExternalWallets();" name: Fireblocks SDK TypeScript example - language: java - code: CompletableFuture>> response - = fireblocks.networkConnections().getNetworkConnections(); + code: CompletableFuture>> response = fireblocks.externalWallets().getExternalWallets(); name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.network_connections.get_network_connections(); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.networkConnections.getNetworkConnections();" - - lang: Java - source: CompletableFuture>> response - = fireblocks.networkConnections().getNetworkConnections(); - - lang: Python - source: response = fireblocks.network_connections.get_network_connections(); x-accepts: - application/json post: - description: | - Initiates a new network connection. - **Note:** This API call is subject to Flexible Routing Schemes. - - Your routing policy defines how your transactions are routed. - You can choose 1 of the 3 different schemes mentioned below for each asset type: - - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as "Profile Routing" - - Default Workspace Presets: - - Network Profile Crypto → **Custom** - - Network Profile FIAT → **None** - - Network Connection Crypto → **Default** - - Network Connection FIAT → **Default** - - Supported asset groups for routing police can be found at `/network_ids/routing_policy_asset_groups` - - - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). - operationId: createNetworkConnection + description: Creates a new external wallet with the requested name. + operationId: createExternalWallet parameters: - description: "A unique identifier for the request. If the request is sent\ \ multiple times with the same idempotency key, the server will return the\ @@ -5240,152 +4231,89 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/NetworkConnection" + $ref: "#/components/schemas/CreateWalletRequest" responses: - "201": + "200": content: application/json: schema: - $ref: "#/components/schemas/NetworkConnectionResponse" - description: A Network Connection object + $ref: "#/components/schemas/UnmanagedWallet" + description: A Wallet object headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: Creates a new network connection + summary: Create an external wallet tags: - - Network connections - x-rate-limit-category: write + - External wallets x-readme: code-samples: + - language: python + code: "externalWallet = fireblocks.create_external_wallet(name, customer_ref_id)" + name: Fireblocks SDK Python example + - language: javascript + code: "const externalWallet = await fireblocks.createExternalWallet(name,\ + \ customerRefId);" + name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise>\ - \ = fireblocks.networkConnections.createNetworkConnection(networkConnectionsApiCreateNetworkConnectionRequest);" + code: "const response: Promise> = fireblocks.externalWallets.createExternalWallet(externalWalletsApiCreateExternalWalletRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response\ - \ = fireblocks.networkConnections().createNetworkConnection(networkConnection,\ + code: "CompletableFuture> response = fireblocks.externalWallets().createExternalWallet(createWalletRequest,\ \ idempotencyKey);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.network_connections.create_network_connection(network_connection,\ - \ idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.networkConnections.createNetworkConnection(networkConnectionsApiCreateNetworkConnectionRequest);" - - lang: Java - source: "CompletableFuture> response\ - \ = fireblocks.networkConnections().createNetworkConnection(networkConnection,\ - \ idempotencyKey);" - - lang: Python - source: "response = fireblocks.network_connections.create_network_connection(network_connection,\ - \ idempotency_key);" x-content-type: application/json x-accepts: - application/json - /network_connections/{connectionId}/set_routing_policy: - patch: - description: | - Updates an existing network connection's routing policy. - - **Note:** This API call is subject to Flexible Routing Schemes. - - Your routing policy defines how your transactions are routed. - You can choose 1 of the 3 different schemes mentioned below for each asset type: - - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as "Profile Routing" - - Default Workspace Presets: - - Network Profile Crypto → **Custom** - - Network Profile FIAT → **None** - - Network Connection Crypto → **Default** - - Network Connection FIAT → **Default** - - Supported asset groups for routing police can be found at `/network_ids/routing_policy_asset_groups` - - - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). - operationId: setRoutingPolicy + /external_wallets/{walletId}: + delete: + description: Deletes an external wallet by ID. + operationId: deleteExternalWallet parameters: - - description: The ID of the network connection + - description: The ID of the wallet to delete explode: false in: path - name: connectionId + name: walletId required: true schema: type: string style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/SetRoutingPolicyRequest" responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SetRoutingPolicyResponse" - description: Network ID + "201": + description: OK headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: Update network connection routing policy. + summary: Delete an external wallet tags: - - Network connections - x-rate-limit-category: write + - External wallets x-readme: code-samples: + - language: python + code: result = firebocks.delete_external_wallet(walletId) + name: Fireblocks SDK Python example + - language: javascript + code: const result = await fireblocks.deleteExternalWallet(walletId); + name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise>\ - \ = fireblocks.networkConnections.setRoutingPolicy(networkConnectionsApiSetRoutingPolicyRequest);" + code: "const response: Promise> = fireblocks.externalWallets.deleteExternalWallet(externalWalletsApiDeleteExternalWalletRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response\ - \ = fireblocks.networkConnections().setRoutingPolicy(connectionId, setRoutingPolicyRequest);" + code: CompletableFuture> response = fireblocks.externalWallets().deleteExternalWallet(walletId); name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.network_connections.set_routing_policy(connection_id,\ - \ set_routing_policy_request);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.networkConnections.setRoutingPolicy(networkConnectionsApiSetRoutingPolicyRequest);" - - lang: Java - source: "CompletableFuture> response\ - \ = fireblocks.networkConnections().setRoutingPolicy(connectionId, setRoutingPolicyRequest);" - - lang: Python - source: "response = fireblocks.network_connections.set_routing_policy(connection_id,\ - \ set_routing_policy_request);" - x-content-type: application/json x-accepts: - application/json - /network_connections/{connectionId}/is_third_party_routing/{assetType}: get: - description: The Fireblocks Network allows for flexibility around incoming deposits. - A receiver can receive network deposits to locations other than Fireblocks. - This endpoint validates whether future transactions are routed to the displayed - recipient or to a 3rd party. - operationId: checkThirdPartyRouting + description: Returns an external wallet by ID. + operationId: getExternalWallet parameters: - - description: The ID of the network connection + - description: The ID of the wallet to return explode: false in: path - name: connectionId - required: true - schema: - type: string - style: simple - - description: The destination asset type - explode: false - in: path - name: assetType + name: walletId required: true schema: type: string @@ -5395,271 +4323,222 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/ThirdPartyRouting" - description: result for the validation + $ref: "#/components/schemas/UnmanagedWallet" + description: A Wallet object headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: Retrieve third-party network routing validation by asset type. + summary: Find an external wallet tags: - - Network connections - x-rate-limit-category: query + - External wallets x-readme: code-samples: + - language: python + code: externalWallet = fireblocks.get_external_wallet(walletId) + name: Fireblocks SDK Python example + - language: javascript + code: const externalWallet = await fireblocks.getExternalWallet(walletId); + name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise> =\ - \ fireblocks.networkConnections.checkThirdPartyRouting(networkConnectionsApiCheckThirdPartyRoutingRequest);" + code: "const response: Promise> = fireblocks.externalWallets.getExternalWallet(externalWalletsApiGetExternalWalletRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response = fireblocks.networkConnections().checkThirdPartyRouting(connectionId,\ - \ assetType);" + code: CompletableFuture> response = fireblocks.externalWallets().getExternalWallet(walletId); name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.network_connections.check_third_party_routing(connection_id,\ - \ asset_type);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> =\ - \ fireblocks.networkConnections.checkThirdPartyRouting(networkConnectionsApiCheckThirdPartyRoutingRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.networkConnections().checkThirdPartyRouting(connectionId,\ - \ assetType);" - - lang: Python - source: "response = fireblocks.network_connections.check_third_party_routing(connection_id,\ - \ asset_type);" x-accepts: - application/json - /network_connections/{connectionId}: - delete: - description: | - Deletes an existing network connection specified by its connection ID. - - **Note:** This API call is subject to Flexible Routing Schemes. - - Your routing policy defines how your transactions are routed. - You can choose 1 of the 3 different schemes mentioned below for each asset type: - - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as "Profile Routing" - - Default Workspace Presets: - - Network Profile Crypto → **Custom** - - Network Profile FIAT → **None** - - Network Connection Crypto → **Default** - - Network Connection FIAT → **Default** - - - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). - operationId: deleteNetworkConnection + /external_wallets/{walletId}/set_customer_ref_id: + post: + description: Sets an AML/KYT customer reference ID for the specific external + wallet. + operationId: setExternalWalletCustomerRefId parameters: - - description: The ID of the network connection to delete + - description: The wallet ID explode: false in: path - name: connectionId + name: walletId required: true schema: type: string style: simple + - description: "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." + explode: false + in: header + name: Idempotency-Key + required: false + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/SetCustomerRefIdRequest" + required: true responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/DeleteNetworkConnectionResponse" - description: Network ID + "201": + description: OK headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: Deletes a network connection by ID + summary: Set an AML customer reference ID for an external wallet tags: - - Network connections - x-rate-limit-category: write + - External wallets x-readme: code-samples: + - language: python + code: "result = firebocks.set_customer_ref_id_for_external_wallet(wallet_id,\ + \ customer_ref_id)" + name: Fireblocks SDK Python example + - language: javascript + code: "const result = await fireblocks.setCustomerRefIdForExternalWallet(walletId,\ + \ customerRefId);" + name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise>\ - \ = fireblocks.networkConnections.deleteNetworkConnection(networkConnectionsApiDeleteNetworkConnectionRequest);" + code: "const response: Promise> = fireblocks.externalWallets.setExternalWalletCustomerRefId(externalWalletsApiSetExternalWalletCustomerRefIdRequest);" name: Fireblocks SDK TypeScript example - language: java - code: CompletableFuture> response - = fireblocks.networkConnections().deleteNetworkConnection(connectionId); + code: "CompletableFuture> response = fireblocks.externalWallets().setExternalWalletCustomerRefId(setCustomerRefIdRequest,\ + \ walletId, idempotencyKey);" name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.network_connections.delete_network_connection(connection_id); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.networkConnections.deleteNetworkConnection(networkConnectionsApiDeleteNetworkConnectionRequest);" - - lang: Java - source: CompletableFuture> response - = fireblocks.networkConnections().deleteNetworkConnection(connectionId); - - lang: Python - source: response = fireblocks.network_connections.delete_network_connection(connection_id); + x-content-type: application/json x-accepts: - application/json - get: - description: | - Gets a network connection by ID. - - **Note:** This API call is subject to Flexible Routing Schemes. - - Your routing policy defines how your transactions are routed. - You can choose 1 of the 3 different schemes mentioned below for each asset type: - - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as "Profile Routing" - - Default Workspace Presets: - - Network Profile Crypto → **Custom** - - Network Profile FIAT → **None** - - Network Connection Crypto → **Default** - - Network Connection FIAT → **Default** - - - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). - operationId: getNetwork + /external_wallets/{walletId}/{assetId}: + delete: + description: Deletes an external wallet asset by ID. + operationId: removeAssetFromExternalWallet parameters: - - description: The ID of the connection + - description: The ID of the wallet explode: false in: path - name: connectionId + name: walletId + required: true + schema: + type: string + style: simple + - description: The ID of the asset to delete + explode: false + in: path + name: assetId required: true schema: type: string + x-fb-entity: asset style: simple responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/NetworkConnectionResponse" - description: A network connection + "201": + description: OK headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: Get a network connection + summary: Delete an asset from an external wallet tags: - - Network connections - x-rate-limit-category: read + - External wallets x-readme: code-samples: - language: python - code: network_connection = fireblocks.get_network_connection_by_id(connectionId) - name: Fireblocks SDK Python example (Legacy) + code: "result = fireblocks.delete_external_wallet_asset(walletId, assetId)" + name: Fireblocks SDK Python example - language: javascript - code: const network_connection = await fireblocks.getNetworkConnection(connectionId); + code: "const result = await fireblocks.deleteExternalWalletAsset(walletId,\ + \ assetId);" name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise>\ - \ = fireblocks.networkConnections.getNetwork(networkConnectionsApiGetNetworkRequest);" + code: "const response: Promise> = fireblocks.externalWallets.removeAssetFromExternalWallet(externalWalletsApiRemoveAssetFromExternalWalletRequest);" name: Fireblocks SDK TypeScript example - language: java - code: CompletableFuture> response - = fireblocks.networkConnections().getNetwork(connectionId); + code: "CompletableFuture> response = fireblocks.externalWallets().removeAssetFromExternalWallet(walletId,\ + \ assetId);" name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.network_connections.get_network(connection_id); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.networkConnections.getNetwork(networkConnectionsApiGetNetworkRequest);" - - lang: Java - source: CompletableFuture> response - = fireblocks.networkConnections().getNetwork(connectionId); - - lang: Python - source: response = fireblocks.network_connections.get_network(connection_id); x-accepts: - application/json - /network_ids: get: - deprecated: true - description: | - Retrieves a list of all local and discoverable remote network IDs. - - **Note:** This API call is subject to Flexible Routing Schemes. - - Your routing policy defines how your transactions are routed. - You can choose 1 of the 3 different schemes mentioned below for each asset type: - - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as "Profile Routing" - - Default Workspace Presets: - - Network Profile Crypto → **Custom** - - Network Profile FIAT → **None** - - Network Connection Crypto → **Default** - - Network Connection FIAT → **Default** - - - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). - operationId: getNetworkIds + description: Returns an external wallet by wallet ID and asset ID. + operationId: getExternalWalletAsset + parameters: + - description: The ID of the wallet + explode: false + in: path + name: walletId + required: true + schema: + type: string + style: simple + - description: The ID of the asset to return + explode: false + in: path + name: assetId + required: true + schema: + type: string + x-fb-entity: asset + style: simple responses: "200": content: application/json: schema: - $ref: "#/components/schemas/GetNetworkIdsResponse" - description: A list of network IDs + $ref: "#/components/schemas/ExternalWalletAsset" + description: A Wallet Asset object headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: "Returns all network IDs, both local IDs and discoverable remote IDs" + summary: Get an asset from an external wallet tags: - - Network connections - x-rate-limit-category: query + - External wallets x-readme: code-samples: + - language: python + code: "externalWalletAsset = fireblocks.get_external_wallet_asset(walletId,\ + \ assetId)" + name: Fireblocks SDK Python example + - language: javascript + code: "const externalWalletAsset = fireblocks.getExternalWalletAsset(walletId,\ + \ assetId)" + name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise>\ - \ = fireblocks.networkConnections.getNetworkIds();" + code: "const response: Promise>\ + \ = fireblocks.externalWallets.getExternalWalletAsset(externalWalletsApiGetExternalWalletAssetRequest);" name: Fireblocks SDK TypeScript example - language: java - code: CompletableFuture>> response = fireblocks.networkConnections().getNetworkIds(); + code: "CompletableFuture> response = fireblocks.externalWallets().getExternalWalletAsset(walletId,\ + \ assetId);" name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.network_connections.get_network_ids(); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.networkConnections.getNetworkIds();" - - lang: Java - source: CompletableFuture>> response = fireblocks.networkConnections().getNetworkIds(); - - lang: Python - source: response = fireblocks.network_connections.get_network_ids(); x-accepts: - application/json post: - description: | - Creates a new Network ID. - - **Note:** This API call is subject to Flexible Routing Schemes. - - Your routing policy defines how your transactions are routed. - You can choose 1 of the 3 different schemes mentioned below for each asset type: - - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as "Profile Routing" - - Default Workspace Presets: - - Network Profile Crypto → **Custom** - - Network Profile FIAT → **None** - - Network Connection Crypto → **Default** - - Network Connection FIAT → **Default** - - Supported asset groups for routing police can be found at `/network_ids/routing_policy_asset_groups` - - - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). - operationId: createNetworkId + description: Adds an asset to an existing external wallet. + operationId: addAssetToExternalWallet parameters: + - description: The ID of the wallet + explode: false + in: path + name: walletId + required: true + schema: + type: string + style: simple + - description: The ID of the asset to add + explode: false + in: path + name: assetId + required: true + schema: + type: string + x-fb-entity: asset + style: simple - description: "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\ @@ -5675,305 +4554,162 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/CreateNetworkIdRequest" + $ref: "#/components/schemas/AddAssetToExternalWalletRequest" responses: - "201": + "200": content: application/json: schema: - $ref: "#/components/schemas/NetworkIdResponse" - description: Returns the new network ID in your workspace + $ref: "#/components/schemas/ExternalWalletAsset" + description: A Wallet Asset object headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: Creates a new Network ID + summary: Add an asset to an external wallet. tags: - - Network connections - x-rate-limit-category: write + - External wallets x-readme: code-samples: + - language: python + code: "externalWalletAsset = fireblocks.create_external_wallet_asset(walletId,\ + \ assetId, address, tag)" + name: Fireblocks SDK Python example + - language: javascript + code: "const externalWalletAsset = await fireblocks.createExternalWalletAsset(walletContainerId,\ + \ assetId, address, tag);" + name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise> =\ - \ fireblocks.networkConnections.createNetworkId(networkConnectionsApiCreateNetworkIdRequest);" + code: "const response: Promise>\ + \ = fireblocks.externalWallets.addAssetToExternalWallet(externalWalletsApiAddAssetToExternalWalletRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response = fireblocks.networkConnections().createNetworkId(createNetworkIdRequest,\ - \ idempotencyKey);" + code: "CompletableFuture> response = fireblocks.externalWallets().addAssetToExternalWallet(walletId,\ + \ assetId, addAssetToExternalWalletRequest, idempotencyKey);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.network_connections.create_network_id(create_network_id_request,\ - \ idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> =\ - \ fireblocks.networkConnections.createNetworkId(networkConnectionsApiCreateNetworkIdRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.networkConnections().createNetworkId(createNetworkIdRequest,\ - \ idempotencyKey);" - - lang: Python - source: "response = fireblocks.network_connections.create_network_id(create_network_id_request,\ - \ idempotency_key);" x-content-type: application/json x-accepts: - application/json - /network_ids/routing_policy_asset_groups: + /contracts: get: - description: | - Retrieves a list of all enabled routing policy asset groups. - Your routing policy defines how your transactions are routed. - You can use one or more enabled routing policy asset groups to describe connection or network id routing policy. - operationId: getRoutingPolicyAssetGroups + description: Gets a list of contracts. + operationId: getContracts responses: "200": content: application/json: schema: - $ref: "#/components/schemas/GetRoutingPolicyAssetGroupsResponse" - description: A list of enabled routing policy asset groups + $ref: "#/components/schemas/GetContractsResponse" + description: A list of contracts headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: Returns all enabled routing policy asset groups + summary: List contracts tags: - - Network connections - x-rate-limit-category: query + - Contracts x-readme: code-samples: - language: typescript - code: "const response: Promise>\ - \ = fireblocks.networkConnections.getRoutingPolicyAssetGroups();" + code: "const response: Promise>\ + \ = fireblocks.contracts.getContracts();" name: Fireblocks SDK TypeScript example - language: java - code: CompletableFuture>> response = fireblocks.networkConnections().getRoutingPolicyAssetGroups(); + code: CompletableFuture>> response = fireblocks.contracts().getContracts(); name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.network_connections.get_routing_policy_asset_groups(); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.networkConnections.getRoutingPolicyAssetGroups();" - - lang: Java - source: CompletableFuture>> response = fireblocks.networkConnections().getRoutingPolicyAssetGroups(); - - lang: Python - source: response = fireblocks.network_connections.get_routing_policy_asset_groups(); x-accepts: - application/json - /network_ids/search: - get: - description: | - Retrieves a list of all local and discoverable remote network IDs. Can be filtered. - - **Note:** This API call is subject to Flexible Routing Schemes. - - Your routing policy defines how your transactions are routed. - You can choose 1 of the 3 different schemes mentioned below for each asset type: - - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as "Profile Routing" - - Default Workspace Presets: - - Network Profile Crypto → **Custom** - - Network Profile FIAT → **None** - - Network Connection Crypto → **Default** - - Network Connection FIAT → **Default** - - - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). - operationId: searchNetworkIds + post: + description: Creates a new contract. + operationId: createContract parameters: - - description: Search string - displayName networkId. Optional - explode: true - in: query - name: search - required: false - schema: - minLength: 1 - type: string - style: form - - description: "Exclude your networkIds. Optional, default false" - explode: true - in: query - name: excludeSelf - required: false - schema: - type: boolean - style: form - - description: "Include just your networkIds. Optional, default false" - explode: true - in: query - name: onlySelf - required: false - schema: - type: boolean - style: form - - description: "Exclude connected networkIds. Optional, default false" - explode: true - in: query - name: excludeConnected - required: false - schema: - type: boolean - style: form - - description: ID of the record after which to fetch $limit records - explode: true - in: query - name: pageCursor + - description: "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." + explode: false + in: header + name: Idempotency-Key required: false schema: type: string - style: form - - description: "Number of records to fetch. By default, it is 50" - explode: true - in: query - name: pageSize - required: false - schema: - default: 50 - maximum: 50 - minimum: 1 - type: number - style: form + style: simple + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateContractRequest" responses: "200": content: application/json: schema: - $ref: "#/components/schemas/SearchNetworkIdsResponse" - description: A list of network IDs + $ref: "#/components/schemas/UnmanagedWallet" + description: A Wallet object headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: "Search network IDs, both local IDs and discoverable remote IDs" + summary: Create a contract tags: - - Network connections - x-rate-limit-category: query + - Contracts x-readme: code-samples: - language: typescript - code: "const response: Promise>\ - \ = fireblocks.networkConnections.searchNetworkIds(networkConnectionsApiSearchNetworkIdsRequest);" + code: "const response: Promise> = fireblocks.contracts.createContract(contractsApiCreateContractRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response\ - \ = fireblocks.networkConnections().searchNetworkIds(search, excludeSelf,\ - \ onlySelf, excludeConnected, pageCursor, pageSize);" + code: "CompletableFuture> response = fireblocks.contracts().createContract(createContractRequest,\ + \ idempotencyKey);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.network_connections.search_network_ids(search,\ - \ exclude_self, only_self, exclude_connected, page_cursor, page_size);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.networkConnections.searchNetworkIds(networkConnectionsApiSearchNetworkIdsRequest);" - - lang: Java - source: "CompletableFuture> response\ - \ = fireblocks.networkConnections().searchNetworkIds(search, excludeSelf,\ - \ onlySelf, excludeConnected, pageCursor, pageSize);" - - lang: Python - source: "response = fireblocks.network_connections.search_network_ids(search,\ - \ exclude_self, only_self, exclude_connected, page_cursor, page_size);" + x-content-type: application/json x-accepts: - application/json - /network_ids/{networkId}: + /contracts/{contractId}: delete: - description: | - Deletes a network by its ID. - - **Note:** This API call is subject to Flexible Routing Schemes. - - Your routing policy defines how your transactions are routed. - You can choose 1 of the 3 different schemes mentioned below for each asset type: - - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as "Profile Routing" - - Default Workspace Presets: - - Network Profile Crypto → **Custom** - - Network Profile FIAT → **None** - - Network Connection Crypto → **Default** - - Network Connection FIAT → **Default** - - - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). - operationId: deleteNetworkId + description: Deletes a contract by ID. + operationId: deleteContract parameters: - - description: The ID of the network + - description: The ID of the contract to delete explode: false in: path - name: networkId + name: contractId required: true schema: type: string style: simple responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/DeleteNetworkIdResponse" - description: Network ID + "201": + description: OK + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: Deletes specific network ID. + summary: Delete a contract tags: - - Network connections - x-rate-limit-category: write + - Contracts x-readme: code-samples: - language: typescript - code: "const response: Promise>\ - \ = fireblocks.networkConnections.deleteNetworkId(networkConnectionsApiDeleteNetworkIdRequest);" + code: "const response: Promise> = fireblocks.contracts.deleteContract(contractsApiDeleteContractRequest);" name: Fireblocks SDK TypeScript example - language: java - code: CompletableFuture> response = - fireblocks.networkConnections().deleteNetworkId(networkId); + code: CompletableFuture> response = fireblocks.contracts().deleteContract(contractId); name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.network_connections.delete_network_id(network_id); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.networkConnections.deleteNetworkId(networkConnectionsApiDeleteNetworkIdRequest);" - - lang: Java - source: CompletableFuture> response = - fireblocks.networkConnections().deleteNetworkId(networkId); - - lang: Python - source: response = fireblocks.network_connections.delete_network_id(network_id); x-accepts: - application/json get: - description: | - Retrieves a network by its ID. - - **Note:** This API call is subject to Flexible Routing Schemes. - - Your routing policy defines how your transactions are routed. - You can choose 1 of the 3 different schemes mentioned below for each asset type: - - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as "Profile Routing" - - Default Workspace Presets: - - Network Profile Crypto → **Custom** - - Network Profile FIAT → **None** - - Network Connection Crypto → **Default** - - Network Connection FIAT → **Default** - - - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). - operationId: getNetworkId + description: Returns a contract by ID. + operationId: getContract parameters: - - description: The ID of the network + - description: The ID of the contract to return explode: false in: path - name: networkId + name: contractId required: true schema: type: string @@ -5983,225 +4719,147 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/NetworkIdResponse" - description: Network ID + $ref: "#/components/schemas/UnmanagedWallet" + description: A Wallet object headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: Returns specific network ID. + summary: Find a specific contract tags: - - Network connections - x-rate-limit-category: query + - Contracts x-readme: code-samples: - language: typescript - code: "const response: Promise> =\ - \ fireblocks.networkConnections.getNetworkId(networkConnectionsApiGetNetworkIdRequest);" + code: "const response: Promise> = fireblocks.contracts.getContract(contractsApiGetContractRequest);" name: Fireblocks SDK TypeScript example - language: java - code: CompletableFuture> response = fireblocks.networkConnections().getNetworkId(networkId); + code: CompletableFuture> response = fireblocks.contracts().getContract(contractId); name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.network_connections.get_network_id(network_id); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> =\ - \ fireblocks.networkConnections.getNetworkId(networkConnectionsApiGetNetworkIdRequest);" - - lang: Java - source: CompletableFuture> response = fireblocks.networkConnections().getNetworkId(networkId); - - lang: Python - source: response = fireblocks.network_connections.get_network_id(network_id); x-accepts: - application/json - /network_ids/{networkId}/set_routing_policy: - patch: - description: | - Updates the routing policy of a specified network ID. - - **Note:** This API call is subject to Flexible Routing Schemes. - - Your routing policy defines how your transactions are routed. - You can choose 1 of the 3 different schemes mentioned below for each asset type: - - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as "Profile Routing" - - Default Workspace Presets: - - Network Profile Crypto → **Custom** - - Network Profile FIAT → **None** - - Network Connection Crypto → **Default** - - Network Connection FIAT → **Default** - - Supported asset groups for routing police can be found at `/network_ids/routing_policy_asset_groups` - - - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). - operationId: setNetworkIdRoutingPolicy + /contracts/{contractId}/{assetId}: + delete: + description: Deletes a contract asset by ID. + operationId: deleteContractAsset parameters: - - description: The ID of the network + - description: The ID of the contract explode: false in: path - name: networkId + name: contractId required: true schema: type: string style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/SetNetworkIdRoutingPolicyRequest" + - description: The ID of the asset to delete + explode: false + in: path + name: assetId + required: true + schema: + type: string + x-fb-entity: asset + style: simple responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SetNetworkIdResponse" - description: Network ID + "201": + description: OK headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: Update network id routing policy. + summary: Delete a contract asset tags: - - Network connections - x-rate-limit-category: write + - Contracts x-readme: code-samples: - language: typescript - code: "const response: Promise>\ - \ = fireblocks.networkConnections.setNetworkIdRoutingPolicy(networkConnectionsApiSetNetworkIdRoutingPolicyRequest);" + code: "const response: Promise> = fireblocks.contracts.deleteContractAsset(contractsApiDeleteContractAssetRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response = fireblocks.networkConnections().setNetworkIdRoutingPolicy(networkId,\ - \ setNetworkIdRoutingPolicyRequest);" + code: "CompletableFuture> response = fireblocks.contracts().deleteContractAsset(contractId,\ + \ assetId);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.network_connections.set_network_id_routing_policy(network_id,\ - \ set_network_id_routing_policy_request);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.networkConnections.setNetworkIdRoutingPolicy(networkConnectionsApiSetNetworkIdRoutingPolicyRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.networkConnections().setNetworkIdRoutingPolicy(networkId,\ - \ setNetworkIdRoutingPolicyRequest);" - - lang: Python - source: "response = fireblocks.network_connections.set_network_id_routing_policy(network_id,\ - \ set_network_id_routing_policy_request);" - x-content-type: application/json x-accepts: - application/json - /network_ids/{networkId}/set_discoverability: - patch: - description: | - Update whether or not the network ID is discoverable by others. - - **Note:** This API call is subject to Flexible Routing Schemes. - - Your routing policy defines how your transactions are routed. - You can choose 1 of the 3 different schemes mentioned below for each asset type: - - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as "Profile Routing" - - Default Workspace Presets: - - Network Profile Crypto → **Custom** - - Network Profile FIAT → **None** - - Network Connection Crypto → **Default** - - Network Connection FIAT → **Default** - - - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). - operationId: setNetworkIdDiscoverability + get: + description: Returns a contract asset by ID. + operationId: getContractAsset parameters: - - description: The ID of the network + - description: The ID of the contract explode: false in: path - name: networkId + name: contractId required: true schema: type: string style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/SetNetworkIdDiscoverabilityRequest" + - description: The ID of the asset to return + explode: false + in: path + name: assetId required: true + schema: + type: string + x-fb-entity: asset + style: simple responses: "200": content: application/json: schema: - $ref: "#/components/schemas/SetNetworkIdResponse" - description: Network ID + $ref: "#/components/schemas/ExternalWalletAsset" + description: A Wallet Asset object headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: Update network ID's discoverability. + summary: Find a contract asset tags: - - Network connections - x-rate-limit-category: write + - Contracts x-readme: code-samples: - language: typescript - code: "const response: Promise>\ - \ = fireblocks.networkConnections.setNetworkIdDiscoverability(networkConnectionsApiSetNetworkIdDiscoverabilityRequest);" + code: "const response: Promise>\ + \ = fireblocks.contracts.getContractAsset(contractsApiGetContractAssetRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response = fireblocks.networkConnections().setNetworkIdDiscoverability(setNetworkIdDiscoverabilityRequest,\ - \ networkId);" + code: "CompletableFuture> response = fireblocks.contracts().getContractAsset(contractId,\ + \ assetId);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.network_connections.set_network_id_discoverability(set_network_id_discoverability_request,\ - \ network_id);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.networkConnections.setNetworkIdDiscoverability(networkConnectionsApiSetNetworkIdDiscoverabilityRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.networkConnections().setNetworkIdDiscoverability(setNetworkIdDiscoverabilityRequest,\ - \ networkId);" - - lang: Python - source: "response = fireblocks.network_connections.set_network_id_discoverability(set_network_id_discoverability_request,\ - \ network_id);" - x-content-type: application/json x-accepts: - application/json - /network_ids/{networkId}/set_name: - patch: - description: | - Updates name of a specified network ID. - - **Note:** This API call is subject to Flexible Routing Schemes. - - Your routing policy defines how your transactions are routed. - You can choose 1 of the 3 different schemes mentioned below for each asset type: - - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as "Profile Routing" - - Default Workspace Presets: - - Network Profile Crypto → **Custom** - - Network Profile FIAT → **None** - - Network Connection Crypto → **Default** - - Network Connection FIAT → **Default** - - - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). - operationId: setNetworkIdName + post: + description: Adds an asset to an existing contract. + operationId: addContractAsset parameters: - - description: The ID of the network + - description: The ID of the contract explode: false in: path - name: networkId + name: contractId + required: true + schema: + type: string + style: simple + - description: The ID of the asset to add + explode: false + in: path + name: assetId required: true + schema: + type: string + x-fb-entity: asset + style: simple + - description: "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." + explode: false + in: header + name: Idempotency-Key + required: false schema: type: string style: simple @@ -6209,118 +4867,82 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/SetNetworkIdNameRequest" - required: true + $ref: "#/components/schemas/AddContractAssetRequest" responses: "200": content: application/json: schema: - $ref: "#/components/schemas/SetNetworkIdResponse" - description: Network ID + $ref: "#/components/schemas/ExternalWalletAsset" + description: A Wallet Asset object headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: Update network ID's name. + summary: Add an asset to a contract tags: - - Network connections - x-rate-limit-category: write + - Contracts x-readme: code-samples: - language: typescript - code: "const response: Promise>\ - \ = fireblocks.networkConnections.setNetworkIdName(networkConnectionsApiSetNetworkIdNameRequest);" + code: "const response: Promise>\ + \ = fireblocks.contracts.addContractAsset(contractsApiAddContractAssetRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response = fireblocks.networkConnections().setNetworkIdName(setNetworkIdNameRequest,\ - \ networkId);" + code: "CompletableFuture> response = fireblocks.contracts().addContractAsset(contractId,\ + \ assetId, addContractAssetRequest, idempotencyKey);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.network_connections.set_network_id_name(set_network_id_name_request,\ - \ network_id);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.networkConnections.setNetworkIdName(networkConnectionsApiSetNetworkIdNameRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.networkConnections().setNetworkIdName(setNetworkIdNameRequest,\ - \ networkId);" - - lang: Python - source: "response = fireblocks.network_connections.set_network_id_name(set_network_id_name_request,\ - \ network_id);" x-content-type: application/json x-accepts: - application/json - /internal_wallets: + /supported_assets: get: - description: |- - Gets a list of internal wallets. - - **Note**: - - BTC-based assets belonging to whitelisted addresses cannot be - retrieved between 00:00 UTC and 00:01 UTC daily due to third-party - provider, Blockchain, being unavailable for this 60 second period. -
Please wait until the next minute to retrieve BTC-based assets. - - The list of assets returned will NOT include the balances anymore. - - Internal Wallets are whitelisted wallets that belong to you outside of Fireblocks. - - - You can see the balance of the Internal Wallet via Fireblocks - - You cannot initiate transactions from Internal Wallets through Fireblocks - - Learn more about Whitelisted Internal Addresses [here](https://developers.fireblocks.com/docs/whitelist-addresses#internal-wallets) - - Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. - operationId: getInternalWallets + description: Returns all asset types supported by Fireblocks. + operationId: getSupportedAssets responses: "200": content: application/json: schema: - $ref: "#/components/schemas/GetInternalWalletsResponse" - description: A list of internal wallets + $ref: "#/components/schemas/GetSupportedAssetsResponse" + description: A Transaction object headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: List internal wallets + summary: List all asset types supported by Fireblocks tags: - - Internal wallets - x-rate-limit-category: query + - Blockchains & assets x-readme: code-samples: + - language: python + code: supportedAssets = fireblocks.get_supported_assets() + name: Fireblocks SDK Python example + - language: javascript + code: const supportedAssets = await fireblocks.getSupportedAssets(); + name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise>\ - \ = fireblocks.internalWallets.getInternalWallets();" + code: "const response: Promise>\ + \ = fireblocks.blockchainsAssets.getSupportedAssets();" name: Fireblocks SDK TypeScript example - language: java - code: CompletableFuture>> response = fireblocks.internalWallets().getInternalWallets(); + code: CompletableFuture>> response = + fireblocks.blockchainsAssets().getSupportedAssets(); name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.internal_wallets.get_internal_wallets(); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.internalWallets.getInternalWallets();" - - lang: Java - source: CompletableFuture>> response = fireblocks.internalWallets().getInternalWallets(); - - lang: Python - source: response = fireblocks.internal_wallets.get_internal_wallets(); x-accepts: - application/json + /assets: post: - description: |- - Creates a new internal wallet with the requested name. - - Learn more about Whitelisted Internal Addresses [here](https://developers.fireblocks.com/docs/whitelist-addresses#internal-wallets) - - Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor. - operationId: createInternalWallet + description: | + 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 + operationId: registerNewAsset parameters: - description: "A unique identifier for the request. If the request is sent\ \ multiple times with the same idempotency key, the server will return the\ @@ -6337,545 +4959,349 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/CreateWalletRequest" + $ref: "#/components/schemas/RegisterNewAssetRequest" responses: "200": content: application/json: schema: - $ref: "#/components/schemas/UnmanagedWallet" - description: A new wallet object - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: Create an internal wallet - tags: - - Internal wallets - x-rate-limit-category: write - x-readme: - code-samples: - - language: python - code: "internalWallet = fireblocks.create_internal_wallet(name, customer_ref_id)" - name: Fireblocks SDK Python example (Legacy) - - language: javascript - code: "const internalWallet = await fireblocks.createInternalWallet(name,\ - \ customerRefId);" - name: Fireblocks SDK Javascript example - - language: typescript - code: "const response: Promise> = fireblocks.internalWallets.createInternalWallet(internalWalletsApiCreateInternalWalletRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: "CompletableFuture> response = fireblocks.internalWallets().createInternalWallet(createWalletRequest,\ - \ idempotencyKey);" - name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.internal_wallets.create_internal_wallet(create_wallet_request,\ - \ idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.internalWallets.createInternalWallet(internalWalletsApiCreateInternalWalletRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.internalWallets().createInternalWallet(createWalletRequest,\ - \ idempotencyKey);" - - lang: Python - source: "response = fireblocks.internal_wallets.create_internal_wallet(create_wallet_request,\ - \ idempotency_key);" - x-content-type: application/json - x-accepts: - - application/json - /internal_wallets/{walletId}: - delete: - description: |- - Deletes an internal wallet by ID. - Internal Wallets are whitelisted wallets that belong to you outside of Fireblocks. - - - You can see the balance of the Internal Wallet via Fireblocks - - You cannot initiate transactions from Internal Wallets through Fireblocks - - Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor. - operationId: deleteInternalWallet - parameters: - - description: The ID of the wallet to delete - explode: false - in: path - name: walletId - required: true - schema: - type: string - style: simple - responses: - "201": - description: OK - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: Delete an internal wallet - tags: - - Internal wallets - x-rate-limit-category: write - x-readme: - code-samples: - - language: python - code: result = firebocks.delete_internal_wallet(walletId) - name: Fireblocks SDK Python example (Legacy) - - language: javascript - code: const result = await fireblocks.deleteInternalWallet(walletId); - name: Fireblocks SDK Javascript example - - language: typescript - code: "const response: Promise> = fireblocks.internalWallets.deleteInternalWallet(internalWalletsApiDeleteInternalWalletRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: CompletableFuture> response = fireblocks.internalWallets().deleteInternalWallet(walletId); - name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.internal_wallets.delete_internal_wallet(wallet_id); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.internalWallets.deleteInternalWallet(internalWalletsApiDeleteInternalWalletRequest);" - - lang: Java - source: CompletableFuture> response = fireblocks.internalWallets().deleteInternalWallet(walletId); - - lang: Python - source: response = fireblocks.internal_wallets.delete_internal_wallet(wallet_id); - x-accepts: - - application/json - get: - description: |- - Returns information for an asset in an internal wallet. - - This endpoint will be deprecated after 6 months.
As part of the depreciation process this endpoint will no longer return balances, only addresses.
Until it is deprecated, this endpoint will behave the same way. + $ref: "#/components/schemas/AssetResponse" + description: A new asset has been created successfully + "400": + content: + application/json: + schema: + $ref: "#/components/schemas/AssetBadRequestErrorResponse" + description: | + - Listing an asset on the requested blockchain is not supported. Error code: 1000 - Internal Wallets are whitelisted wallets that belong to you outside of Fireblocks. + - The asset address is invalid. Error code: 1003 - - You can see the balance of the Internal Wallet via Fireblocks - - You cannot initiate transactions from Internal Wallets through Fireblocks + - Self serve listing an asset on the requested blockchain is currently not supported, please contact support. Error code: 1004 + "403": + content: + application/json: + schema: + $ref: "#/components/schemas/AssetForbiddenErrorResponse" + description: | + - The asset creation quota reached. Error code: 1005 + "404": + content: + application/json: + schema: + $ref: "#/components/schemas/AssetNotFoundErrorResponse" + description: | + - Invalid address, could not get asset information. Error code 1003 + "409": + content: + application/json: + schema: + $ref: "#/components/schemas/AssetConflictErrorResponse" + description: | + - The asset is already supported globally. Error code: 1001 - Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. - operationId: getInternalWallet - parameters: - - description: The ID of the wallet to return - explode: false - in: path - name: walletId - required: true - schema: - type: string - style: simple - responses: - "200": + - The asset has already been added to this workspace. Error code: 1002 + "500": content: application/json: schema: - $ref: "#/components/schemas/UnmanagedWallet" - description: A Wallet object - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: Get an asset from an internal wallet + $ref: "#/components/schemas/AssetInternalServerErrorResponse" + description: Failed to create asset + summary: Register an asset tags: - - Internal wallets - x-rate-limit-category: query + - Blockchains & assets x-readme: code-samples: - language: python - code: internalWallet = fireblocks.get_internal_wallet(walletId) - name: Fireblocks SDK Python example (Legacy) + code: "supportedAssets = fireblocks.register_new_asset(blockchainId, address,\ + \ symbol)" + name: Fireblocks SDK Python example - language: javascript - code: const result = await fireblocks.getInternalWallet(walletId); + code: "const supportedAssets = await fireblocks.registerNewAsset(blockchainId,\ + \ address, symbol);" name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise> = fireblocks.internalWallets.getInternalWallet(internalWalletsApiGetInternalWalletRequest);" + code: "const response: Promise> = fireblocks.blockchainsAssets.registerNewAsset(blockchainsAssetsApiRegisterNewAssetRequest);" name: Fireblocks SDK TypeScript example - language: java - code: CompletableFuture> response = fireblocks.internalWallets().getInternalWallet(walletId); + code: "CompletableFuture> response = fireblocks.blockchainsAssets().registerNewAsset(registerNewAssetRequest,\ + \ idempotencyKey);" name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.internal_wallets.get_internal_wallet(wallet_id); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.internalWallets.getInternalWallet(internalWalletsApiGetInternalWalletRequest);" - - lang: Java - source: CompletableFuture> response = fireblocks.internalWallets().getInternalWallet(walletId); - - lang: Python - source: response = fireblocks.internal_wallets.get_internal_wallet(wallet_id); + x-content-type: application/json x-accepts: - application/json - /internal_wallets/{walletId}/assets: + /transactions: get: - description: |- - Returns a paginated response of assets in an internal wallet. - - This is a new paginated endpoint that gets all the assets from the wallet container with balances.
This endpoint returns a limited amount of results with a quick response time. - - Internal Wallets are whitelisted wallets that belong to you outside of Fireblocks. - - - You can see the balance of the Internal Wallet via Fireblocks - - You cannot initiate transactions from Internal Wallets through Fireblocks - - Learn more about Whitelisted Internal Addresses [here](https://developers.fireblocks.com/docs/whitelist-addresses#internal-wallets) - - Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. - operationId: getInternalWalletAssetsPaginated + description: Lists the transaction history for your workspace. + operationId: getTransactions parameters: - - description: The ID of the internal wallet to return assets for - explode: false - in: path - name: walletId - required: true + - description: Unix timestamp in milliseconds. Returns only transactions created + before the specified date + explode: true + in: query + name: before + required: false schema: type: string - style: simple - - example: 10 + style: form + - description: Unix timestamp in milliseconds. Returns only transactions created + after the specified date explode: true in: query - name: pageSize + name: after required: false schema: - default: 50 - description: Number of assets to return per page - maximum: 200 - minimum: 1 - type: number + type: string style: form - - explode: true + - description: You can filter by one of the statuses. + explode: true in: query - name: pageCursor + name: status required: false schema: - description: Cursor for pagination type: string style: form - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/PaginatedAssetsResponse" - description: A paginated response of assets for the internal wallet - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: List assets in an internal wallet (Paginated) - tags: - - Internal wallets - x-rate-limit-category: query - x-readme: - code-samples: - - language: python - code: "internalWalletAssets = fireblocks.get_internal_wallet_assets(walletId,\ - \ pageSize, pageCursor)" - name: Fireblocks SDK Python example (Legacy) - - language: javascript - code: "const internalWalletAssets = fireblocks.getInternalWalletAssets(walletId,\ - \ pageSize, pageCursor);" - name: Fireblocks SDK Javascript example - - language: typescript - code: "const response: Promise>\ - \ = fireblocks.internalWallets.getInternalWalletAssetsPaginated(internalWalletsApiGetInternalWalletAssetsPaginatedRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: "CompletableFuture> response\ - \ = fireblocks.internalWallets().getInternalWalletAssetsPaginated(walletId,\ - \ pageSize, pageCursor);" - name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.internal_wallets.get_internal_wallet_assets_paginated(wallet_id,\ - \ page_size, page_cursor);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.internalWallets.getInternalWalletAssetsPaginated(internalWalletsApiGetInternalWalletAssetsPaginatedRequest);" - - lang: Java - source: "CompletableFuture> response\ - \ = fireblocks.internalWallets().getInternalWalletAssetsPaginated(walletId,\ - \ pageSize, pageCursor);" - - lang: Python - source: "response = fireblocks.internal_wallets.get_internal_wallet_assets_paginated(wallet_id,\ - \ page_size, page_cursor);" - x-accepts: - - application/json - /internal_wallets/{walletId}/set_customer_ref_id: - post: - description: |- - Sets an AML/KYT customer reference ID for the specific internal wallet. - - Internal Wallets are whitelisted wallets that belong to you outside of Fireblocks. - - - You can see the balance of the Internal Wallet via Fireblocks - - You cannot initiate transactions from Internal Wallets through Fireblocks - - Learn more about Whitelisted Internal Addresses [here](https://developers.fireblocks.com/docs/whitelist-addresses#internal-wallets) + - description: |- + The field to order the results by - Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor. - operationId: setCustomerRefIdForInternalWallet - parameters: - - description: The wallet ID - explode: false - in: path - name: walletId - required: true + **Note**: Ordering by a field that is not createdAt may result with transactions that receive updates as you request the next or previous pages of results, resulting with missing those transactions. + explode: true + in: query + name: orderBy + required: false schema: + enum: + - createdAt + - lastUpdated type: string - style: simple - - description: "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." - explode: false - in: header - name: Idempotency-Key + style: form + - description: The direction to order the results by + explode: true + in: query + name: sort required: false schema: + enum: + - ASC + - DESC type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/SetCustomerRefIdRequest" - required: true - responses: - "201": - description: OK - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: Set an AML/KYT customer reference ID for an internal wallet - tags: - - Internal wallets - x-rate-limit-category: write - x-readme: - code-samples: - - language: python - code: "result = firebocks.set_customer_ref_id_for_internal_wallet(wallet_id,\ - \ customer_ref_id)" - name: Fireblocks SDK Python example (Legacy) - - language: javascript - code: "const result = await fireblocks.setCustomerRefIdForInternalWallet(walletId,\ - \ customerRefId);" - name: Fireblocks SDK Javascript example - - language: typescript - code: "const response: Promise> = fireblocks.internalWallets.setCustomerRefIdForInternalWallet(internalWalletsApiSetCustomerRefIdForInternalWalletRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: "CompletableFuture> response = fireblocks.internalWallets().setCustomerRefIdForInternalWallet(setCustomerRefIdRequest,\ - \ walletId, idempotencyKey);" - name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.internal_wallets.set_customer_ref_id_for_internal_wallet(set_customer_ref_id_request,\ - \ wallet_id, idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.internalWallets.setCustomerRefIdForInternalWallet(internalWalletsApiSetCustomerRefIdForInternalWalletRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.internalWallets().setCustomerRefIdForInternalWallet(setCustomerRefIdRequest,\ - \ walletId, idempotencyKey);" - - lang: Python - source: "response = fireblocks.internal_wallets.set_customer_ref_id_for_internal_wallet(set_customer_ref_id_request,\ - \ wallet_id, idempotency_key);" - x-content-type: application/json - x-accepts: - - application/json - /internal_wallets/{walletId}/{assetId}: - delete: - description: |- - Deletes a whitelisted address (for an asset) from an internal wallet. - - Internal Wallets are whitelisted wallets that belong to you outside of Fireblocks. - - - You can see the balance of the Internal Wallet via Fireblocks - - You cannot initiate transactions from Internal Wallets through Fireblocks - - Learn more about Whitelisted Internal Addresses [here](https://developers.fireblocks.com/docs/whitelist-addresses#internal-wallets) - - Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor. - operationId: deleteInternalWalletAsset - parameters: - - description: The ID of the wallet - explode: false - in: path - name: walletId - required: true + style: form + - description: "Limits the number of results. If not provided, a limit of 200\ + \ will be used. The maximum allowed limit is 500" + explode: true + in: query + name: limit + required: false + schema: + default: 200 + minimum: 1 + type: integer + style: form + - description: The source type of the transaction + explode: true + in: query + name: sourceType + required: false schema: + enum: + - VAULT_ACCOUNT + - EXCHANGE_ACCOUNT + - INTERNAL_WALLET + - EXTERNAL_WALLET + - CONTRACT + - FIAT_ACCOUNT + - NETWORK_CONNECTION + - COMPOUND + - UNKNOWN + - GAS_STATION + - END_USER_WALLET type: string - style: simple - - description: The ID of the asset to delete - explode: false - in: path - name: assetId - required: true + style: form + - description: The source ID of the transaction + explode: true + in: query + name: sourceId + required: false schema: type: string - x-fb-entity: asset - style: simple + style: form + - description: The destination type of the transaction + explode: true + in: query + name: destType + required: false + schema: + enum: + - VAULT_ACCOUNT + - EXCHANGE_ACCOUNT + - INTERNAL_WALLET + - EXTERNAL_WALLET + - CONTRACT + - FIAT_ACCOUNT + - NETWORK_CONNECTION + - COMPOUND + - ONE_TIME_ADDRESS + - END_USER_WALLET + type: string + style: form + - description: The destination ID of the transaction + explode: true + in: query + name: destId + required: false + schema: + type: string + style: form + - description: "A list of assets to filter by, seperated by commas" + explode: true + in: query + name: assets + required: false + schema: + type: string + style: form + - description: Returns only results with a specified txHash + explode: true + in: query + name: txHash + required: false + schema: + type: string + style: form + - description: Returns only results where the source is a specific end user + wallet + explode: true + in: query + name: sourceWalletId + required: false + schema: + type: string + style: form + - description: Returns only results where the destination is a specific end + user wallet + explode: true + in: query + name: destWalletId + required: false + schema: + type: string + style: form responses: - "201": - description: OK + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/GetTransactionsResponse" + description: A list of transactions headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" + next-page: + $ref: "#/components/headers/next-page" + prev-page: + $ref: "#/components/headers/prev-page" default: $ref: "#/components/responses/Error" - summary: Delete a whitelisted address + summary: List transaction history tags: - - Internal wallets - x-rate-limit-category: write + - Transactions x-readme: code-samples: - language: python - code: "result = fireblocks.delete_internal_wallet_asset(walletId, assetId)" - name: Fireblocks SDK Python example (Legacy) + code: "transactions = fireblocks.get_transactions(status, after)" + name: Fireblocks SDK Python example - language: javascript - code: "const result = await fireblocks.deleteInternalWalletAsset(walletId,\ - \ assetId);" + code: | + const transactions = await fireblocks.getTransactions({ + status: args.status, + after: from }); name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise> = fireblocks.internalWallets.deleteInternalWalletAsset(internalWalletsApiDeleteInternalWalletAssetRequest);" + code: "const response: Promise>\ + \ = fireblocks.transactions.getTransactions(transactionsApiGetTransactionsRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response = fireblocks.internalWallets().deleteInternalWalletAsset(walletId,\ - \ assetId);" + code: "CompletableFuture>> response\ + \ = fireblocks.transactions().getTransactions(before, after, status, orderBy,\ + \ sort, limit, sourceType, sourceId, destType, destId, assets, txHash,\ + \ sourceWalletId, destWalletId);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.internal_wallets.delete_internal_wallet_asset(wallet_id,\ - \ asset_id);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.internalWallets.deleteInternalWalletAsset(internalWalletsApiDeleteInternalWalletAssetRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.internalWallets().deleteInternalWalletAsset(walletId,\ - \ assetId);" - - lang: Python - source: "response = fireblocks.internal_wallets.delete_internal_wallet_asset(wallet_id,\ - \ asset_id);" x-accepts: - application/json - get: - description: |- - Returns information for an asset in an internal wallet. - - Internal Wallets are whitelisted wallets that belong to you outside of Fireblocks. - - - You can see the balance of the Internal Wallet via Fireblocks - - You cannot initiate transactions from Internal Wallets through Fireblocks - - Learn more about Whitelisted Internal Addresses [here](https://developers.fireblocks.com/docs/whitelist-addresses#internal-wallets) - - Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. - operationId: getInternalWalletAsset + post: + description: Creates a new transaction. + operationId: createTransaction parameters: - - description: The ID of the wallet + - description: Unique ID of the End-User wallet to the API request. Required + for end-user wallet operations. explode: false - in: path - name: walletId - required: true + in: header + name: X-End-User-Wallet-Id + required: false schema: + format: uuid type: string style: simple - - description: The ID of the asset to return + - description: "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." explode: false - in: path - name: assetId - required: true + in: header + name: Idempotency-Key + required: false schema: type: string - x-fb-entity: asset style: simple + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/TransactionRequest" responses: "200": content: application/json: schema: - $ref: "#/components/schemas/WalletAsset" - description: A Wallet Asset object + $ref: "#/components/schemas/CreateTransactionResponse" + description: A transaction object headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: Get an asset from an internal wallet + summary: Create a new transaction tags: - - Internal wallets - x-rate-limit-category: read + - Transactions x-readme: code-samples: - language: python - code: "internalWalletAsset = fireblocks.get_internal_wallet_asset(walletId,\ - \ assetId)" - name: Fireblocks SDK Python example (Legacy) + code: | + tx_result = client.create_transaction( asset_id="BTC", amount="50", source=TransferPeerPath(VAULT_ACCOUNT, from_vault_account_id), destination=DestinationTransferPeerPath(VAULT_ACCOUNT, to_vault_account_id) ) + name: Fireblocks SDK Python example - language: javascript - code: "const internalWalletAsset = fireblocks.getInternalWalletAsset(walletId,\ - \ assetId);" + code: | + const payload: TransactionArguments = { assetId: asset, source: { type: sourceType, id: sourceId || 0 }, destination: { type: destinationType, id: String(destinationId) }, amount: String(amount), fee: String(fee), note: "Created by fireblocks SDK" }; const result = await fireblocks.createTransaction(payload); name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise> = fireblocks.internalWallets.getInternalWalletAsset(internalWalletsApiGetInternalWalletAssetRequest);" + code: "const response: Promise>\ + \ = fireblocks.transactions.createTransaction(transactionsApiCreateTransactionRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response = fireblocks.internalWallets().getInternalWalletAsset(walletId,\ - \ assetId);" + code: "CompletableFuture> response\ + \ = fireblocks.transactions().createTransaction(transactionRequest, xEndUserWalletId,\ + \ idempotencyKey);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.internal_wallets.get_internal_wallet_asset(wallet_id,\ - \ asset_id);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.internalWallets.getInternalWalletAsset(internalWalletsApiGetInternalWalletAssetRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.internalWallets().getInternalWalletAsset(walletId,\ - \ assetId);" - - lang: Python - source: "response = fireblocks.internal_wallets.get_internal_wallet_asset(wallet_id,\ - \ asset_id);" + x-content-type: application/json x-accepts: - application/json + /transactions/estimate_fee: post: description: |- - Adds an asset to an existing internal wallet. - - Internal Wallets are whitelisted wallets that belong to you outside of Fireblocks. - - - You can see the balance of the Internal Wallet via Fireblocks - - You cannot initiate transactions from Internal Wallets through Fireblocks - - Learn more about Whitelisted Internal Addresses - [here](https://developers.fireblocks.com/docs/whitelist-addresses#internal-wallets) - - Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor. - operationId: createInternalWalletAsset + Estimates the transaction fee for a transaction request. + * Note: Supports all Fireblocks assets except ZCash (ZEC). + operationId: estimateTransactionFee parameters: - - description: The ID of the wallet - explode: false - in: path - name: walletId - required: true - schema: - type: string - style: simple - - description: The ID of the asset to add - explode: false - in: path - name: assetId - required: true - schema: - type: string - x-fb-entity: asset - style: simple - description: "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\ @@ -6891,572 +5317,368 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/CreateInternalWalletAssetRequest" + $ref: "#/components/schemas/TransactionRequest" responses: "200": content: application/json: schema: - $ref: "#/components/schemas/WalletAsset" - description: A Wallet Asset object + $ref: "#/components/schemas/EstimatedTransactionFeeResponse" + description: Estimated fees response headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: Add an asset to an internal wallet + summary: Estimate transaction fee tags: - - Internal wallets - x-rate-limit-category: write + - Transactions x-readme: code-samples: - language: python - code: "internalWalletAsset = fireblocks.create_internal_wallet_asset(walletId,\ - \ assetId, address, tag)" - name: Fireblocks SDK Python example (Legacy) + code: | + estimated_fee = client.estimate_fee_for_transaction( asset_id="BTC", amount="50", source=TransferPeerPath(VAULT_ACCOUNT, from_vault_account_id), destination=DestinationTransferPeerPath(VAULT_ACCOUNT, to_vault_account_id) ) + name: Fireblocks SDK Python example - language: javascript - code: "const internalWalletAsset = await fireblocks.createInternalWalletAsset(walletContainerId,\ - \ assetId, address, tag);" + code: | + const payload: TransactionArguments = { assetId: asset, source: { type: sourceType, id: sourceId || 0 }, destination: { type: destinationType, id: String(destinationId) }, amount: Number(amount) }; const estimatedFee = await fireblocks.estimateFeeForTransaction(payload); name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise> = fireblocks.internalWallets.createInternalWalletAsset(internalWalletsApiCreateInternalWalletAssetRequest);" + code: "const response: Promise>\ + \ = fireblocks.transactions.estimateTransactionFee(transactionsApiEstimateTransactionFeeRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response = fireblocks.internalWallets().createInternalWalletAsset(walletId,\ - \ assetId, createInternalWalletAssetRequest, idempotencyKey);" + code: "CompletableFuture> response\ + \ = fireblocks.transactions().estimateTransactionFee(transactionRequest,\ + \ idempotencyKey);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.internal_wallets.create_internal_wallet_asset(wallet_id,\ - \ asset_id, create_internal_wallet_asset_request, idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.internalWallets.createInternalWalletAsset(internalWalletsApiCreateInternalWalletAssetRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.internalWallets().createInternalWalletAsset(walletId,\ - \ assetId, createInternalWalletAssetRequest, idempotencyKey);" - - lang: Python - source: "response = fireblocks.internal_wallets.create_internal_wallet_asset(wallet_id,\ - \ asset_id, create_internal_wallet_asset_request, idempotency_key);" x-content-type: application/json x-accepts: - application/json - /key_link/signing_keys: + /transactions/{txId}: get: - description: "Returns the list of signing keys in the workspace\nPlease note\ - \ that this endpoint is available only for Key Link enabled workspaces.\n\ - **Note:** \nThis endpoint is currently in beta and might be subject to changes.\n\ - If you want to participate and learn more about the Fireblocks Key Link, please\ - \ contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com." - operationId: getSigningKeysList + description: Returns a transaction by ID. + operationId: getTransaction parameters: - - description: Cursor to the next page - example: MjAyMy0xMi0xMyAyMDozNjowOC4zMDI=:MTEwMA== - explode: true - in: query - name: pageCursor - required: false - schema: - type: string - style: form - - description: Amount of results to return in the next page - explode: true - in: query - name: pageSize - required: false - schema: - default: 10 - maximum: 50 - minimum: 1 - type: number - style: form - - description: Field(s) to use for sorting - explode: true - in: query - name: sortBy - required: false - schema: - default: createdAt - enum: - - createdAt - type: string - style: form - - description: Is the order ascending or descending - explode: true - in: query - name: order - required: false - schema: - default: ASC - enum: - - ASC - - DESC - type: string - style: form - - description: Return keys assigned to a specific vault - example: 4 - explode: true - in: query - name: vaultAccountId - required: false - schema: - type: number - style: form - - description: Return keys associated with a specific agent user - example: 12fed207-5bdf-4a0c-ab12-fcd2627f75d1 - explode: true - in: query - name: agentUserId - required: false - schema: - type: string - style: form - - description: Return only keys with a specific algorithm - example: ECDSA_SECP256K1 - explode: true - in: query - name: algorithm - required: false + - description: The ID of the transaction to return + example: 00000000-0000-0000-0000-000000000000 + explode: false + in: path + name: txId + required: true schema: - enum: - - ECDSA_SECP256K1 - - EDDSA_ED25519 type: string - style: form - - description: Return keys that have been proof of ownership - explode: true - in: query - name: enabled - required: false - schema: - type: boolean - style: form - - description: Return keys that are proof of ownership but not assigned. Available - filter can be used only when vaultAccountId and enabled filters are not - set - explode: true - in: query - name: available - required: false - schema: - type: boolean - style: form - - description: Return keys that are assigned to a vault account - explode: true - in: query - name: isAssigned - required: false - schema: - nullable: true - type: boolean - style: form + style: simple responses: "200": content: application/json: schema: - $ref: "#/components/schemas/GetSigningKeyResponseDto" - description: List of signing keys and a data that allows requesting the - next page if applicable + $ref: "#/components/schemas/TransactionResponse" + description: An Transaction object headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" + "400": + $ref: "#/components/responses/Error" default: $ref: "#/components/responses/Error" - summary: Get list of signing keys + summary: Find a specific transaction by Fireblocks transaction ID tags: - - Key Link (Beta) - x-rate-limit-category: query + - Transactions x-readme: code-samples: + - language: python + code: tx = fireblocks.get_transaction_by_id(txId) + name: Fireblocks SDK Python example + - language: javascript + code: const tx = await fireblocks.getTransactionById(txId); + name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise>\ - \ = fireblocks.keyLinkBeta.getSigningKeysList(keyLinkBetaApiGetSigningKeysListRequest);" + code: "const response: Promise>\ + \ = fireblocks.transactions.getTransaction(transactionsApiGetTransactionRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response\ - \ = fireblocks.keyLinkBeta().getSigningKeysList(pageCursor, pageSize,\ - \ sortBy, order, vaultAccountId, agentUserId, algorithm, enabled, available,\ - \ isAssigned);" + code: CompletableFuture> response = fireblocks.transactions().getTransaction(txId); name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.key_link_beta.get_signing_keys_list(page_cursor,\ - \ page_size, sort_by, order, vault_account_id, agent_user_id, algorithm,\ - \ enabled, available, is_assigned);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.keyLinkBeta.getSigningKeysList(keyLinkBetaApiGetSigningKeysListRequest);" - - lang: Java - source: "CompletableFuture> response\ - \ = fireblocks.keyLinkBeta().getSigningKeysList(pageCursor, pageSize, sortBy,\ - \ order, vaultAccountId, agentUserId, algorithm, enabled, available, isAssigned);" - - lang: Python - source: "response = fireblocks.key_link_beta.get_signing_keys_list(page_cursor,\ - \ page_size, sort_by, order, vault_account_id, agent_user_id, algorithm,\ - \ enabled, available, is_assigned);" x-accepts: - application/json - post: - description: "Adds a new signing key to the workspace. The added key will be\ - \ linked to the specific Fireblocks agent user ID. The same user will receive\ - \ the proof of ownership message to be signed, and upon successful proof,\ - \ the key will become enabled.\nPlease note that this endpoint is available\ - \ only for Key Link enabled workspaces.\n**Note:** \nThis endpoint is currently\ - \ in beta and might be subject to changes.\nIf you want to participate and\ - \ learn more about the Fireblocks Key Link, please contact your Fireblocks\ - \ Customer Success Manager or send an email to CSM@fireblocks.com." - operationId: createSigningKey + /transactions/external_tx_id/{externalTxId}: + get: + description: Returns transaction by external transaction ID. + operationId: getTransactionByExternalId parameters: - - description: "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." + - description: The external ID of the transaction to return + example: 00000000-0000-0000-0000-000000000000 explode: false - in: header - name: Idempotency-Key - required: false + in: path + name: externalTxId + required: true schema: type: string style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/CreateSigningKeyDto" - required: true responses: - "201": + "200": content: application/json: schema: - $ref: "#/components/schemas/SigningKeyDto" - description: Newly created signing key + $ref: "#/components/schemas/TransactionResponse" + description: An Transaction object headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: Add a new signing key + summary: Find a specific transaction by external transaction ID tags: - - Key Link (Beta) - x-rate-limit-category: write + - Transactions x-readme: code-samples: + - language: python + code: tx = fireblocks.get_transaction_by_external_tx_id(externalTxId) + name: Fireblocks SDK Python example + - language: javascript + code: const tx = await fireblocks.getTransactionByExternalTxId(externalTxId); + name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise> = fireblocks.keyLinkBeta.createSigningKey(keyLinkBetaApiCreateSigningKeyRequest);" + code: "const response: Promise>\ + \ = fireblocks.transactions.getTransactionByExternalId(transactionsApiGetTransactionByExternalIdRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response = fireblocks.keyLinkBeta().createSigningKey(createSigningKeyDto,\ - \ idempotencyKey);" + code: CompletableFuture> response = fireblocks.transactions().getTransactionByExternalId(externalTxId); name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.key_link_beta.create_signing_key(create_signing_key_dto,\ - \ idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.keyLinkBeta.createSigningKey(keyLinkBetaApiCreateSigningKeyRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.keyLinkBeta().createSigningKey(createSigningKeyDto,\ - \ idempotencyKey);" - - lang: Python - source: "response = fireblocks.key_link_beta.create_signing_key(create_signing_key_dto,\ - \ idempotency_key);" - x-content-type: application/json x-accepts: - application/json - /key_link/signing_keys/{keyId}: - get: - description: "Returns a signing key if it exists, identified by the specified\ - \ Fireblocks provided `keyId`.\nPlease note that this endpoint is available\ - \ only for Key Link enabled workspaces.\n**Note:** \nThis endpoint is currently\ - \ in beta and might be subject to changes.\nIf you want to participate and\ - \ learn more about the Fireblocks Key Link, please contact your Fireblocks\ - \ Customer Success Manager or send an email to CSM@fireblocks.com." - operationId: getSigningKey + /transactions/{txId}/set_confirmation_threshold: + post: + description: Overrides the required number of confirmations for transaction + completion by transaction ID. + operationId: setTransactionConfirmationThreshold parameters: - - description: The unique identifier for the signing key provided by Fireblocks + - description: The ID of the transaction explode: false in: path - name: keyId + name: txId required: true schema: - example: 46a92767-5f93-4a46-9eed-f012196bb4fc type: string style: simple + - description: "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." + explode: false + in: header + name: Idempotency-Key + required: false + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/SetConfirmationsThresholdRequest" responses: "200": content: application/json: schema: - $ref: "#/components/schemas/SigningKeyDto" - description: Requested signing key data + $ref: "#/components/schemas/SetConfirmationsThresholdResponse" + description: Set successfully headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: Get a signing key by `keyId` + summary: Set confirmation threshold by transaction ID tags: - - Key Link (Beta) - x-rate-limit-category: query + - Transactions x-readme: code-samples: - - language: typescript - code: "const response: Promise> = fireblocks.keyLinkBeta.getSigningKey(keyLinkBetaApiGetSigningKeyRequest);" + - language: python + code: set_conf_threshold = client.set_confirmation_threshold_by_tx_id(body) + name: Fireblocks SDK Python example + - language: javascript + code: const setConfThreshold = await fireblocks.setConfirmationThresholdByTxId(body); + name: Fireblocks SDK Javascript example + - language: typescript + code: "const response: Promise>\ + \ = fireblocks.transactions.setTransactionConfirmationThreshold(transactionsApiSetTransactionConfirmationThresholdRequest);" name: Fireblocks SDK TypeScript example - language: java - code: CompletableFuture> response = fireblocks.keyLinkBeta().getSigningKey(keyId); + code: "CompletableFuture>\ + \ response = fireblocks.transactions().setTransactionConfirmationThreshold(txId,\ + \ setConfirmationsThresholdRequest, idempotencyKey);" name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.key_link_beta.get_signing_key(key_id); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.keyLinkBeta.getSigningKey(keyLinkBetaApiGetSigningKeyRequest);" - - lang: Java - source: CompletableFuture> response = fireblocks.keyLinkBeta().getSigningKey(keyId); - - lang: Python - source: response = fireblocks.key_link_beta.get_signing_key(key_id); + x-content-type: application/json x-accepts: - application/json - patch: - description: "Allows assigning the signing key to a vault account, if it hasn't\ - \ been assigned to any other vault accounts yet.\nPlease note that this endpoint\ - \ is available only for Key Link enabled workspaces.\n**Note:** \nThis endpoint\ - \ is currently in beta and might be subject to changes.\nIf you want to participate\ - \ and learn more about the Fireblocks Key Link, please contact your Fireblocks\ - \ Customer Success Manager or send an email to CSM@fireblocks.com." - operationId: updateSigningKey + /transactions/{txId}/drop: + post: + description: Drops a stuck ETH transaction and creates a replacement transaction. + operationId: dropTransaction parameters: - - description: The unique identifier for the signing key provided by Fireblocks + - description: The ID of the transaction explode: false in: path - name: keyId + name: txId required: true schema: - example: 46a92767-5f93-4a46-9eed-f012196bb4fc + type: string + style: simple + - description: Unique ID of the End-User wallet to the API request. Required + for end-user wallet operations. + explode: false + in: header + name: X-End-User-Wallet-Id + required: false + schema: + format: uuid + type: string + style: simple + - description: "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." + explode: false + in: header + name: Idempotency-Key + required: false + schema: type: string style: simple requestBody: content: application/json: schema: - $ref: "#/components/schemas/ModifySigningKeyDto" - required: true + $ref: "#/components/schemas/DropTransactionRequest" responses: "200": content: application/json: schema: - $ref: "#/components/schemas/SigningKeyDto" - description: Modified signing key data + $ref: "#/components/schemas/DropTransactionResponse" + description: Operation completed successfully headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: Modify the signing by Fireblocks provided `keyId` + summary: Drop ETH transaction by ID tags: - - Key Link (Beta) - x-rate-limit-category: write + - Transactions x-readme: code-samples: + - language: python + code: "result = fireblocks.drop_transaction(txId, fee_level)" + name: Fireblocks SDK Python example + - language: javascript + code: "const result = await fireblocks.dropTransaction(txId, feeLevel);" + name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise> = fireblocks.keyLinkBeta.updateSigningKey(keyLinkBetaApiUpdateSigningKeyRequest);" + code: "const response: Promise>\ + \ = fireblocks.transactions.dropTransaction(transactionsApiDropTransactionRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response = fireblocks.keyLinkBeta().updateSigningKey(modifySigningKeyDto,\ - \ keyId);" + code: "CompletableFuture> response\ + \ = fireblocks.transactions().dropTransaction(txId, dropTransactionRequest,\ + \ xEndUserWalletId, idempotencyKey);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.key_link_beta.update_signing_key(modify_signing_key_dto,\ - \ key_id);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.keyLinkBeta.updateSigningKey(keyLinkBetaApiUpdateSigningKeyRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.keyLinkBeta().updateSigningKey(modifySigningKeyDto,\ - \ keyId);" - - lang: Python - source: "response = fireblocks.key_link_beta.update_signing_key(modify_signing_key_dto,\ - \ key_id);" x-content-type: application/json x-accepts: - application/json - /key_link/signing_keys/{keyId}/agent_user_id: - patch: - description: "Can modify existing signing key id if the key is not enabled.\ - \ The change done in background and will be visible once applied. If key is\ - \ already enabled (after proof of ownership) the user cannot be changed.\n\ - Please note that this endpoint is available only for Key Link enabled workspaces.\n\ - **Note:** \nThis endpoint is currently in beta and might be subject to changes.\n\ - If you want to participate and learn more about the Fireblocks Key Link, please\ - \ contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com." - operationId: setAgentId + /transactions/{txId}/cancel: + post: + description: Cancels a transaction by ID. + operationId: cancelTransaction parameters: - - description: The unique identifier for the signing key provided by Fireblocks + - description: The ID of the transaction to cancel explode: false in: path - name: keyId + name: txId required: true schema: - example: 46a92767-5f93-4a46-9eed-f012196bb4fc type: string style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/ModifySigningKeyAgentIdDto" - required: true - responses: - "204": - description: Agent user id modification process has started in background. - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: Set agent user id that can sign with the signing key identified by - the Fireblocks provided `keyId` - tags: - - Key Link (Beta) - x-rate-limit-category: write - x-readme: - code-samples: - - language: typescript - code: "const response: Promise> = fireblocks.keyLinkBeta.setAgentId(keyLinkBetaApiSetAgentIdRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: "CompletableFuture> response = fireblocks.keyLinkBeta().setAgentId(modifySigningKeyAgentIdDto,\ - \ keyId);" - name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.key_link_beta.set_agent_id(modify_signing_key_agent_id_dto,\ - \ key_id);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.keyLinkBeta.setAgentId(keyLinkBetaApiSetAgentIdRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.keyLinkBeta().setAgentId(modifySigningKeyAgentIdDto,\ - \ keyId);" - - lang: Python - source: "response = fireblocks.key_link_beta.set_agent_id(modify_signing_key_agent_id_dto,\ - \ key_id);" - x-content-type: application/json - x-accepts: - - application/json - /key_link/validation_keys: - get: - description: "Returns the list of validation keys in the workspace\nPlease note\ - \ that this endpoint is available only for Key Link enabled workspaces.\n\ - **Note:** \nThis endpoint is currently in beta and might be subject to changes.\n\ - If you want to participate and learn more about the Fireblocks Key Link, please\ - \ contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com." - operationId: getValidationKeysList - parameters: - - description: Cursor to the next page - example: MjAyMy0xMi0xMyAyMDozNjowOC4zMDI=:MTEwMA== - explode: true - in: query - name: pageCursor - required: false - schema: - type: string - style: form - - description: Amount of results to return in the next page - explode: true - in: query - name: pageSize - required: false - schema: - default: 10 - maximum: 50 - minimum: 1 - type: number - style: form - - description: Field(s) to use for sorting - explode: true - in: query - name: sortBy + - description: Unique ID of the End-User wallet to the API request. Required + for end-user wallet operations. + explode: false + in: header + name: X-End-User-Wallet-Id required: false schema: - default: createdAt - enum: - - createdAt + format: uuid type: string - style: form - - description: Is the order ascending or descending - explode: true - in: query - name: order + style: simple + - description: "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." + explode: false + in: header + name: Idempotency-Key required: false schema: - default: ASC - enum: - - ASC - - DESC type: string - style: form + style: simple responses: "200": content: application/json: schema: - $ref: "#/components/schemas/GetValidationKeyResponseDto" - description: Validation keys list along with data required to request the - next page if applicable + $ref: "#/components/schemas/CancelTransactionResponse" + description: An Transaction object headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: Get list of registered validation keys + summary: Cancel a transaction tags: - - Key Link (Beta) - x-rate-limit-category: query + - Transactions x-readme: code-samples: + - language: python + code: result = fireblocks.cancel_transaction_by_id(txId) + name: Fireblocks SDK Python example + - language: javascript + code: const result = await fireblocks.cancelTransactionById(txId); + name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise>\ - \ = fireblocks.keyLinkBeta.getValidationKeysList(keyLinkBetaApiGetValidationKeysListRequest);" + code: "const response: Promise>\ + \ = fireblocks.transactions.cancelTransaction(transactionsApiCancelTransactionRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response\ - \ = fireblocks.keyLinkBeta().getValidationKeysList(pageCursor, pageSize,\ - \ sortBy, order);" + code: "CompletableFuture> response\ + \ = fireblocks.transactions().cancelTransaction(txId, xEndUserWalletId,\ + \ idempotencyKey);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.key_link_beta.get_validation_keys_list(page_cursor,\ - \ page_size, sort_by, order);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.keyLinkBeta.getValidationKeysList(keyLinkBetaApiGetValidationKeysListRequest);" - - lang: Java - source: "CompletableFuture> response\ - \ = fireblocks.keyLinkBeta().getValidationKeysList(pageCursor, pageSize,\ - \ sortBy, order);" - - lang: Python - source: "response = fireblocks.key_link_beta.get_validation_keys_list(page_cursor,\ - \ page_size, sort_by, order);" x-accepts: - application/json + /transactions/{txId}/freeze: post: - description: "Adds a new validation key used to validate signing keys. The new\ - \ validation key will undergo an approval process by the workspace quorum.\n\ - Please note that this endpoint is available only for Key Link enabled workspaces.\n\ - **Note:** \nThis endpoint is currently in beta and might be subject to changes.\n\ - If you want to participate and learn more about the Fireblocks Key Link, please\ - \ contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com." - operationId: createValidationKey + description: Freezes a transaction by ID. + operationId: freezeTransaction parameters: + - description: The ID of the transaction to freeze + explode: false + in: path + name: txId + required: true + schema: + type: string + style: simple + - description: Unique ID of the End-User wallet to the API request. Required + for end-user wallet operations. + explode: false + in: header + name: X-End-User-Wallet-Id + required: false + schema: + format: uuid + type: string + style: simple - description: "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\ @@ -7468,330 +5690,291 @@ paths: schema: type: string style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/CreateValidationKeyDto" - required: true responses: - "201": + "200": content: application/json: schema: - $ref: "#/components/schemas/CreateValidationKeyResponseDto" - description: The validation key that was added and is pending approval. + $ref: "#/components/schemas/FreezeTransactionResponse" + description: freeze response headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: Add a new validation key + summary: Freeze a transaction tags: - - Key Link (Beta) - x-rate-limit-category: write + - Transactions x-readme: code-samples: + - language: python + code: result = fireblocks.freeze_transaction_by_id(txId); + name: Fireblocks SDK Python example + - language: javascript + code: const result = await fireblocks.freezeTransactionById(txId); + name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise>\ - \ = fireblocks.keyLinkBeta.createValidationKey(keyLinkBetaApiCreateValidationKeyRequest);" + code: "const response: Promise>\ + \ = fireblocks.transactions.freezeTransaction(transactionsApiFreezeTransactionRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response\ - \ = fireblocks.keyLinkBeta().createValidationKey(createValidationKeyDto,\ + code: "CompletableFuture> response\ + \ = fireblocks.transactions().freezeTransaction(txId, xEndUserWalletId,\ \ idempotencyKey);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.key_link_beta.create_validation_key(create_validation_key_dto,\ - \ idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.keyLinkBeta.createValidationKey(keyLinkBetaApiCreateValidationKeyRequest);" - - lang: Java - source: "CompletableFuture> response\ - \ = fireblocks.keyLinkBeta().createValidationKey(createValidationKeyDto,\ - \ idempotencyKey);" - - lang: Python - source: "response = fireblocks.key_link_beta.create_validation_key(create_validation_key_dto,\ - \ idempotency_key);" - x-content-type: application/json x-accepts: - application/json - /key_link/validation_keys/{keyId}: - get: - description: "Returns a validation key if it exists, identified by the specified\ - \ `keyId`.\nPlease note that this endpoint is available only for Key Link\ - \ enabled workspaces.\n**Note:** \nThis endpoint is currently in beta and\ - \ might be subject to changes.\nIf you want to participate and learn more\ - \ about the Fireblocks Key Link, please contact your Fireblocks Customer Success\ - \ Manager or send an email to CSM@fireblocks.com." - operationId: getValidationKey + /transactions/{txId}/unfreeze: + post: + description: Unfreezes a transaction by ID and makes the transaction available + again. + operationId: unfreezeTransaction parameters: - - explode: false + - description: The ID of the transaction to unfreeze + explode: false in: path - name: keyId + name: txId required: true schema: type: string style: simple + - description: Unique ID of the End-User wallet to the API request. Required + for end-user wallet operations. + explode: false + in: header + name: X-End-User-Wallet-Id + required: false + schema: + format: uuid + type: string + style: simple + - description: "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." + explode: false + in: header + name: Idempotency-Key + required: false + schema: + type: string + style: simple responses: "200": content: application/json: schema: - $ref: "#/components/schemas/ValidationKeyDto" - description: The requested validation key data + $ref: "#/components/schemas/UnfreezeTransactionResponse" + description: Unfreeze response headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: Get a validation key by `keyId` + summary: Unfreeze a transaction tags: - - Key Link (Beta) - x-rate-limit-category: query + - Transactions x-readme: code-samples: + - language: python + code: result = fireblocks.unfreeze_transaction_by_id(txId) + name: Fireblocks SDK Python example + - language: javascript + code: const result = await fireblocks.unfreezeTransactionById(txId); + name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise> = fireblocks.keyLinkBeta.getValidationKey(keyLinkBetaApiGetValidationKeyRequest);" + code: "const response: Promise>\ + \ = fireblocks.transactions.unfreezeTransaction(transactionsApiUnfreezeTransactionRequest);" name: Fireblocks SDK TypeScript example - language: java - code: CompletableFuture> response = fireblocks.keyLinkBeta().getValidationKey(keyId); + code: "CompletableFuture> response\ + \ = fireblocks.transactions().unfreezeTransaction(txId, xEndUserWalletId,\ + \ idempotencyKey);" name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.key_link_beta.get_validation_key(key_id); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.keyLinkBeta.getValidationKey(keyLinkBetaApiGetValidationKeyRequest);" - - lang: Java - source: CompletableFuture> response = fireblocks.keyLinkBeta().getValidationKey(keyId); - - lang: Python - source: response = fireblocks.key_link_beta.get_validation_key(key_id); x-accepts: - application/json - patch: - description: "Allows disabling validation key even if it has not expired yet.\ - \ It is not allowed to enable the validation key back. Another key has to\ - \ be used for future validations.\nPlease note that this endpoint is available\ - \ only for Key Link enabled workspaces.\n**Note:** \nThis endpoint is currently\ - \ in beta and might be subject to changes.\nIf you want to participate and\ - \ learn more about the Fireblocks Key Link, please contact your Fireblocks\ - \ Customer Success Manager or send an email to CSM@fireblocks.com." - operationId: disableValidationKey + /transactions/validate_address/{assetId}/{address}: + get: + description: "Checks if an address is valid (for XRP, DOT, XLM, and EOS)." + operationId: validateAddress parameters: - - description: The unique identifier for the validation key provided by Fireblocks + - description: The asset of the address explode: false in: path - name: keyId + name: assetId required: true schema: - example: 46a92767-5f93-4a46-9eed-f012196bb4fc type: string + x-fb-entity: asset style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/ModifyValidationKeyDto" + - description: The address to validate + explode: false + in: path + name: address required: true + schema: + type: string + style: simple responses: "200": content: application/json: schema: - $ref: "#/components/schemas/ValidationKeyDto" - description: Modified validation key data + $ref: "#/components/schemas/ValidateAddressResponse" + description: An Transaction object headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: Disables a validation key + summary: Validate destination address tags: - - Key Link (Beta) - x-rate-limit-category: write + - Transactions x-readme: code-samples: - - language: typescript - code: "const response: Promise> = fireblocks.keyLinkBeta.disableValidationKey(keyLinkBetaApiDisableValidationKeyRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: "CompletableFuture> response = fireblocks.keyLinkBeta().disableValidationKey(modifyValidationKeyDto,\ - \ keyId);" - name: Fireblocks SDK Java example - language: python - code: "response = fireblocks.key_link_beta.disable_validation_key(modify_validation_key_dto,\ - \ key_id);" + code: "result = fireblocks.(asset_id, address)" name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.keyLinkBeta.disableValidationKey(keyLinkBetaApiDisableValidationKeyRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.keyLinkBeta().disableValidationKey(modifyValidationKeyDto,\ - \ keyId);" - - lang: Python - source: "response = fireblocks.key_link_beta.disable_validation_key(modify_validation_key_dto,\ - \ key_id);" - x-content-type: application/json - x-accepts: - - application/json - /keys/mpc/list: - get: - description: "Returns a list of MPC signing keys of the workspace. For each\ - \ key, the list of players associated with it is attached.\n**Note:** \nThis\ - \ endpoint is currently in beta and might be subject to changes." - operationId: getMpcKeysList - parameters: [] - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/GetMpcKeysResponse" - description: List of mpc keys - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: Get list of mpc keys - tags: - - Keys (Beta) - x-rate-limit-category: query - x-readme: - code-samples: + - language: javascript + code: "const result = await fireblocks.(assetId, address);" + name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise> =\ - \ fireblocks.keysBeta.getMpcKeysList();" + code: "const response: Promise>\ + \ = fireblocks.transactions.validateAddress(transactionsApiValidateAddressRequest);" name: Fireblocks SDK TypeScript example - language: java - code: CompletableFuture> response = fireblocks.keysBeta().getMpcKeysList(); + code: "CompletableFuture> response\ + \ = fireblocks.transactions().validateAddress(assetId, address);" name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.keys_beta.get_mpc_keys_list(); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> =\ - \ fireblocks.keysBeta.getMpcKeysList();" - - lang: Java - source: CompletableFuture> response = fireblocks.keysBeta().getMpcKeysList(); - - lang: Python - source: response = fireblocks.keys_beta.get_mpc_keys_list(); x-accepts: - application/json - /keys/mpc/list/{userId}: - get: - description: |- - Returns a list of MPC signing keys of a specific user. For each key, the list of players associated with it is attached. - **Note:** - This endpoint is currently in beta and might be subject to changes. - operationId: getMpcKeysListByUser + /txHash/{txHash}/set_confirmation_threshold: + post: + description: Overrides the required number of confirmations for transaction + completion by transaction hash. + operationId: setConfirmationThresholdByTransactionHash parameters: - - description: The id for the user - example: 46a92767-5f93-4a46-9eed-f012196bb4fc + - description: The TxHash explode: false in: path - name: userId + name: txHash required: true schema: type: string style: simple + - description: "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." + explode: false + in: header + name: Idempotency-Key + required: false + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/SetConfirmationsThresholdRequest" responses: "200": content: application/json: schema: - $ref: "#/components/schemas/GetMpcKeysResponse" - description: List of mpc keys + $ref: "#/components/schemas/SetConfirmationsThresholdResponse" + description: A list of transactions affected by the change headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: Get list of mpc keys by `userId` + summary: Set confirmation threshold by transaction hash tags: - - Keys (Beta) - x-rate-limit-category: query + - Transactions x-readme: code-samples: + - language: python + code: set_conf_threshold = client.set_confirmation_threshold_by_tx_hash(body) + name: Fireblocks SDK Python example + - language: javascript + code: const setConfThreshold = await fireblocks.setConfirmationThresholdByTxHash(body); + name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise> =\ - \ fireblocks.keysBeta.getMpcKeysListByUser(keysBetaApiGetMpcKeysListByUserRequest);" + code: "const response: Promise>\ + \ = fireblocks.transactions.setConfirmationThresholdByTransactionHash(transactionsApiSetConfirmationThresholdByTransactionHashRequest);" name: Fireblocks SDK TypeScript example - language: java - code: CompletableFuture> response = fireblocks.keysBeta().getMpcKeysListByUser(userId); + code: "CompletableFuture>\ + \ response = fireblocks.transactions().setConfirmationThresholdByTransactionHash(txHash,\ + \ setConfirmationsThresholdRequest, idempotencyKey);" name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.keys_beta.get_mpc_keys_list_by_user(user_id); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> =\ - \ fireblocks.keysBeta.getMpcKeysListByUser(keysBetaApiGetMpcKeysListByUserRequest);" - - lang: Java - source: CompletableFuture> response = fireblocks.keysBeta().getMpcKeysListByUser(userId); - - lang: Python - source: response = fireblocks.keys_beta.get_mpc_keys_list_by_user(user_id); + x-content-type: application/json x-accepts: - application/json - /external_wallets: + /estimate_network_fee: get: - description: Gets a list of external wallets under the workspace. - operationId: getExternalWallets + description: "Gets the estimated required fee for an asset. For UTXO based assets,\ + \ the response will contain the suggested fee per byte, for ETH/ETC based\ + \ assets, the suggested gas price, and for XRP/XLM, the transaction fee." + operationId: estimateNetworkFee + parameters: + - description: The asset for which to estimate the fee + explode: true + in: query + name: assetId + required: true + schema: + type: string + x-fb-entity: asset + style: form responses: "200": content: application/json: schema: - $ref: "#/components/schemas/GetExternalWalletsResponse" - description: A list of external wallets + $ref: "#/components/schemas/EstimatedNetworkFeeResponse" + description: Estimated fees response headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: List external wallets + summary: Estimate the required fee for an asset tags: - - External wallets - x-rate-limit-category: query + - Transactions x-readme: code-samples: - language: python - code: externalWallets = fireblocks.get_external_wallets() - name: Fireblocks SDK Python example (Legacy) + code: fee_result = fireblocks.get_fee_for_asset(asset_id) + name: Fireblocks SDK Python example - language: javascript - code: const externalWallets = await fireblocks.getExternalWallets(); + code: const feeResult = await fireblocks.getFeeForAsset(assetId); name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise>\ - \ = fireblocks.externalWallets.getExternalWallets();" + code: "const response: Promise>\ + \ = fireblocks.transactions.estimateNetworkFee(transactionsApiEstimateNetworkFeeRequest);" name: Fireblocks SDK TypeScript example - language: java - code: CompletableFuture>> response = fireblocks.externalWallets().getExternalWallets(); + code: CompletableFuture> response + = fireblocks.transactions().estimateNetworkFee(assetId); name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.external_wallets.get_external_wallets(); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.externalWallets.getExternalWallets();" - - lang: Java - source: CompletableFuture>> response = fireblocks.externalWallets().getExternalWallets(); - - lang: Python - source: response = fireblocks.external_wallets.get_external_wallets(); x-accepts: - application/json + /payments/payout: post: - description: Creates a new external wallet with the requested name. - operationId: createExternalWallet - parameters: - - description: "A unique identifier for the request. If the request is sent\ - \ multiple times with the same idempotency key, the server will return the\ + description: | + **Note:** The reference content in this section documents the Payments Engine endpoint. The Payments Engine endpoints include APIs available only for customers with Payments Engine enabled on their accounts.
+
These endpoints are currently in beta and might be subject to changes.
+
If you want to learn more about Fireblocks Payments Engine, please contact your Fireblocks Customer Success Manager or email CSM@fireblocks.com.
+
Create a payout instruction set.
+ A payout instruction set is a set of instructions for distributing payments from a single payment account to a list of payee accounts.
+ The instruction set defines:
+
    +
  • the payment account and its account type (vault, exchange, or fiat).
  • +
  • the account type (vault account, exchange account, whitelisted address, network connection, fiat account, or merchant account), the amount, and the asset of payment for each payee account.
  • +
+ operationId: createPayout + parameters: + - description: "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." explode: false @@ -7804,393 +5987,508 @@ paths: requestBody: content: application/json: + example: + paymentAccount: + id: EX_SUB1 + type: EXCHANGE_ACCOUNT + instructionSet: + - payeeAccount: + id: bef85a1c-b605-4b2e-bdb5-2d400f4d0bf3 + type: EXTERNAL_WALLET + amount: + amount: "43" + assetId: USDC + - payeeAccount: + id: 3adc1f92-e791-44a8-9aee-7f31c2108b78 + type: NETWORK_CONNECTION + amount: + amount: "4423" + assetId: USDC schema: - $ref: "#/components/schemas/CreateWalletRequest" + $ref: "#/components/schemas/CreatePayoutRequest" responses: "200": + content: + application/json: + example: + payoutId: 1fe3b61f-7e1f-4a19-aff0-4f0a524d44d7 + paymentAccount: + id: EX_SUB2 + type: EXCHANGE_ACCOUNT + createdAt: 1645365800 + state: REQUESTED + status: REGISTERED + initMethod: API + instructionSet: + - id: 6ea4a016-536b-49af-b1a0-40b343ccf879 + name: payee-wallet-name + payeeAccount: + id: bef85a1c-b605-4b2e-bdb5-2d400f4d0bf3 + type: EXTERNAL_WALLET + amount: + amount: "43" + assetId: USDC + state: NOT_STARTED + transactions: [] + - id: e783a79b-6acc-4d18-885d-ed533cad8eeb + name: payee-by-network + payeeAccount: + id: 3adc1f92-e791-44a8-9aee-7f31c2108b78 + type: NETWORK_CONNECTION + amount: + amount: "4423.23" + assetId: USDC + state: NOT_STARTED + transactions: [] + schema: + $ref: "#/components/schemas/PayoutResponse" + description: The payout instruction set creation succeeded and returns the + generated instruction set with a unique payout IDThe payout ID will be + used for executing the payout and checking the payout status. + "400": content: application/json: schema: - $ref: "#/components/schemas/UnmanagedWallet" - description: A Wallet object - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: Create an external wallet + $ref: "#/components/schemas/ErrorResponse" + description: Bad request + "401": + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + description: Unauthorized. Missing / invalid JWT token in Authorization + header. + "5XX": + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + description: Internal error. + summary: Create a payout instruction set tags: - - External wallets - x-rate-limit-category: write + - Payments - Payout x-readme: code-samples: - - language: python - code: "externalWallet = fireblocks.create_external_wallet(name, customer_ref_id)" - name: Fireblocks SDK Python example (Legacy) - - language: javascript - code: "const externalWallet = await fireblocks.createExternalWallet(name,\ - \ customerRefId);" - name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise> = fireblocks.externalWallets.createExternalWallet(externalWalletsApiCreateExternalWalletRequest);" + code: "const response: Promise> = fireblocks.paymentsPayout.createPayout(paymentsPayoutApiCreatePayoutRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response = fireblocks.externalWallets().createExternalWallet(createWalletRequest,\ + code: "CompletableFuture> response = fireblocks.paymentsPayout().createPayout(createPayoutRequest,\ \ idempotencyKey);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.external_wallets.create_external_wallet(create_wallet_request,\ - \ idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.externalWallets.createExternalWallet(externalWalletsApiCreateExternalWalletRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.externalWallets().createExternalWallet(createWalletRequest,\ - \ idempotencyKey);" - - lang: Python - source: "response = fireblocks.external_wallets.create_external_wallet(create_wallet_request,\ - \ idempotency_key);" x-content-type: application/json x-accepts: - application/json - /external_wallets/{walletId}: - delete: - description: Deletes an external wallet by ID. - operationId: deleteExternalWallet + /payments/payout/{payoutId}/actions/execute: + post: + description: | + **Note:** The reference content in this section documents the Payments Engine endpoint. The Payments Engine endpoints include APIs available only for customers with Payments Engine enabled on their accounts.
+
These endpoints are currently in beta and might be subject to changes.
+
If you want to learn more about Fireblocks Payments Engine, please contact your Fireblocks Customer Success Manager or email CSM@fireblocks.com.
+
Execute a payout instruction set.
+
The instruction set will be verified and executed.
+ Source locking
+ If you are executing a payout instruction set from a payment account with an already active payout the active payout will complete before the new payout instruction set can be executed.
+ You cannot execute the same payout instruction set more than once. + operationId: executePayoutAction parameters: - - description: The ID of the wallet to delete + - description: the payout id received from the creation of the payout instruction + set + example: 1fe3b61f-7e1f-4a19-aff0-4f0a524d44d7 explode: false in: path - name: walletId + name: payoutId required: true schema: type: string style: simple - responses: - "201": - description: OK - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: Delete an external wallet - tags: - - External wallets - x-rate-limit-category: write - x-readme: - code-samples: - - language: python - code: result = firebocks.delete_external_wallet(walletId) - name: Fireblocks SDK Python example (Legacy) - - language: javascript - code: const result = await fireblocks.deleteExternalWallet(walletId); - name: Fireblocks SDK Javascript example - - language: typescript - code: "const response: Promise> = fireblocks.externalWallets.deleteExternalWallet(externalWalletsApiDeleteExternalWalletRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: CompletableFuture> response = fireblocks.externalWallets().deleteExternalWallet(walletId); - name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.external_wallets.delete_external_wallet(wallet_id); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.externalWallets.deleteExternalWallet(externalWalletsApiDeleteExternalWalletRequest);" - - lang: Java - source: CompletableFuture> response = fireblocks.externalWallets().deleteExternalWallet(walletId); - - lang: Python - source: response = fireblocks.external_wallets.delete_external_wallet(wallet_id); - x-accepts: - - application/json - get: - description: Returns an external wallet by ID. - operationId: getExternalWallet - parameters: - - description: The ID of the wallet to return + - description: "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." explode: false - in: path - name: walletId - required: true + in: header + name: Idempotency-Key + required: false schema: type: string style: simple responses: "200": + content: + application/json: + example: + payoutId: 1fe3b61f-7e1f-4a19-aff0-4f0a524d44d7 + schema: + $ref: "#/components/schemas/DispatchPayoutResponse" + description: Executed the payout instruction set + "400": content: application/json: schema: - $ref: "#/components/schemas/UnmanagedWallet" - description: A Wallet object - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: Find an external wallet + $ref: "#/components/schemas/ErrorResponse" + description: Bad request + "401": + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + description: Unauthorized. Missing / invalid JWT token in Authorization + header. + "5XX": + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + description: Internal error. + summary: Execute a payout instruction set tags: - - External wallets - x-rate-limit-category: read + - Payments - Payout x-readme: code-samples: - - language: python - code: externalWallet = fireblocks.get_external_wallet(walletId) - name: Fireblocks SDK Python example (Legacy) - - language: javascript - code: const externalWallet = await fireblocks.getExternalWallet(walletId); - name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise> = fireblocks.externalWallets.getExternalWallet(externalWalletsApiGetExternalWalletRequest);" + code: "const response: Promise>\ + \ = fireblocks.paymentsPayout.executePayoutAction(paymentsPayoutApiExecutePayoutActionRequest);" name: Fireblocks SDK TypeScript example - language: java - code: CompletableFuture> response = fireblocks.externalWallets().getExternalWallet(walletId); + code: "CompletableFuture> response =\ + \ fireblocks.paymentsPayout().executePayoutAction(payoutId, idempotencyKey);" name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.external_wallets.get_external_wallet(wallet_id); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.externalWallets.getExternalWallet(externalWalletsApiGetExternalWalletRequest);" - - lang: Java - source: CompletableFuture> response = fireblocks.externalWallets().getExternalWallet(walletId); - - lang: Python - source: response = fireblocks.external_wallets.get_external_wallet(wallet_id); x-accepts: - application/json - /external_wallets/{walletId}/set_customer_ref_id: - post: - description: Sets an AML/KYT customer reference ID for the specific external - wallet. - operationId: setExternalWalletCustomerRefId + /payments/payout/{payoutId}: + get: + description: | + **Note:** The reference content in this section documents the Payments Engine endpoint. The Payments Engine endpoints include APIs available only for customers with Payments Engine enabled on their accounts.
+
These endpoints are currently in beta and might be subject to changes.
+
If you want to learn more about Fireblocks Payments Engine, please contact your Fireblocks Customer Success Manager or email CSM@fireblocks.com.
+ operationId: getPayout parameters: - - description: The wallet ID + - description: the payout id received from the creation of the payout instruction + set + example: 1fe3b61f-7e1f-4a19-aff0-4f0a524d44d7 explode: false in: path - name: walletId + name: payoutId required: true schema: type: string style: simple - - description: "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." - explode: false - in: header - name: Idempotency-Key - required: false - schema: - type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/SetCustomerRefIdRequest" - required: true responses: - "201": - description: OK - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: Set an AML customer reference ID for an external wallet + "200": + content: + application/json: + example: + payoutId: 1fe3b61f-7e1f-4a19-aff0-4f0a524d44d7 + paymentAccount: + id: EX_SUB3 + type: EXCHANGE_ACCOUNT + createdAt: 1645365800 + state: FINALIZED + status: DONE + initMethod: API + instructionSet: + - id: 6ea4a016-536b-49af-b1a0-40b343ccf879 + name: payee-wallet-name + payeeAccount: + id: bef85a1c-b605-4b2e-bdb5-2d400f4d0bf3 + type: EXTERNAL_WALLET + amount: + amount: "4312" + assetId: USDC + state: COMPLETED + transactions: + - id: 35a4b10c-1f83-4f0b-ba2a-da0e73be2d6e + state: COMPLETED + timestamp: 1645367429 + - id: e783a79b-6acc-4d18-885d-ed533cad8eeb + name: payee-by-network + payeeAccount: + id: 3adc1f92-e791-44a8-9aee-7f31c2108b78 + type: NETWORK_CONNECTION + amount: + amount: "4423.23" + assetId: USDC + state: COMPLETED + transactions: + - id: 4505e7d9-bfc7-41bc-9750-54311fcbbf26 + state: COMPLETED + timestamp: 1645367449 + reportUrl: https://some-url.com/reports/cc5777c1-75a9-4337-aebd-f1f5a40a9391 + schema: + $ref: "#/components/schemas/PayoutResponse" + description: "Returns the current status of the payout instruction set,\ + \ including the status of each payout instruction and the transactions\ + \ created in the process." + "401": + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + description: Unauthorized. Missing / invalid JWT token in Authorization + header. + "404": + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + description: No payout with the given payout ID exists. + "5XX": + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + description: Internal error. + summary: Get the status of a payout instruction set tags: - - External wallets - x-rate-limit-category: write + - Payments - Payout x-readme: code-samples: - - language: python - code: "result = firebocks.set_customer_ref_id_for_external_wallet(wallet_id,\ - \ customer_ref_id)" - name: Fireblocks SDK Python example (Legacy) - - language: javascript - code: "const result = await fireblocks.setCustomerRefIdForExternalWallet(walletId,\ - \ customerRefId);" - name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise> = fireblocks.externalWallets.setExternalWalletCustomerRefId(externalWalletsApiSetExternalWalletCustomerRefIdRequest);" + code: "const response: Promise> = fireblocks.paymentsPayout.getPayout(paymentsPayoutApiGetPayoutRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response = fireblocks.externalWallets().setExternalWalletCustomerRefId(setCustomerRefIdRequest,\ - \ walletId, idempotencyKey);" + code: CompletableFuture> response = fireblocks.paymentsPayout().getPayout(payoutId); name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.external_wallets.set_external_wallet_customer_ref_id(set_customer_ref_id_request,\ - \ wallet_id, idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.externalWallets.setExternalWalletCustomerRefId(externalWalletsApiSetExternalWalletCustomerRefIdRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.externalWallets().setExternalWalletCustomerRefId(setCustomerRefIdRequest,\ - \ walletId, idempotencyKey);" - - lang: Python - source: "response = fireblocks.external_wallets.set_external_wallet_customer_ref_id(set_customer_ref_id_request,\ - \ wallet_id, idempotency_key);" - x-content-type: application/json x-accepts: - application/json - /external_wallets/{walletId}/{assetId}: - delete: - description: Deletes an external wallet asset by ID. - operationId: removeAssetFromExternalWallet + /payments/workflow_config: + post: + description: "Generate a new configuration ID to be used for initiating executions\ + \ in subsequent phases. This configuration should include the operations you\ + \ intend to incorporate into the workflow, such as TRANSFER, CONVERT, and\ + \ DISBURSE, in addition to your pre-screening preferences, which are disabled\ + \ by default." + operationId: createFlowConfiguration parameters: - - description: The ID of the wallet - explode: false - in: path - name: walletId - required: true - schema: - type: string - style: simple - - description: The ID of the asset to delete + - description: "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." explode: false - in: path - name: assetId - required: true + in: header + name: Idempotency-Key + required: false schema: type: string - x-fb-entity: asset style: simple + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateWorkflowConfigurationRequest" responses: - "201": - description: OK - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: Delete an asset from an external wallet + "202": + content: + application/json: + schema: + $ref: "#/components/schemas/WorkflowConfiguration" + description: Configuration is being generated + "401": + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + description: Unauthorized. Missing / invalid JWT token in Authorization + header. + "404": + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + description: Not found + summary: Create payment flow configuration tags: - - External wallets - x-rate-limit-category: write - x-readme: - code-samples: - - language: python - code: "result = fireblocks.delete_external_wallet_asset(walletId, assetId)" - name: Fireblocks SDK Python example (Legacy) - - language: javascript - code: "const result = await fireblocks.deleteExternalWalletAsset(walletId,\ - \ assetId);" - name: Fireblocks SDK Javascript example - - language: typescript - code: "const response: Promise> = fireblocks.externalWallets.removeAssetFromExternalWallet(externalWalletsApiRemoveAssetFromExternalWalletRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: "CompletableFuture> response = fireblocks.externalWallets().removeAssetFromExternalWallet(walletId,\ - \ assetId);" - name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.external_wallets.remove_asset_from_external_wallet(wallet_id,\ - \ asset_id);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.externalWallets.removeAssetFromExternalWallet(externalWalletsApiRemoveAssetFromExternalWalletRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.externalWallets().removeAssetFromExternalWallet(walletId,\ - \ assetId);" - - lang: Python - source: "response = fireblocks.external_wallets.remove_asset_from_external_wallet(wallet_id,\ - \ asset_id);" + - Payments - Flows + x-internal: true + x-content-type: application/json x-accepts: - application/json - get: - description: Returns an external wallet by wallet ID and asset ID. - operationId: getExternalWalletAsset + /payments/workflow_config/{configId}: + delete: + description: Delete a configuration using the specified "configId". + operationId: deleteFlowConfiguration parameters: - - description: The ID of the wallet - explode: false - in: path - name: walletId - required: true - schema: - type: string - style: simple - - description: The ID of the asset to return - explode: false + - explode: false in: path - name: assetId + name: configId required: true schema: type: string - x-fb-entity: asset style: simple responses: "200": content: application/json: schema: - $ref: "#/components/schemas/ExternalWalletAsset" - description: A Wallet Asset object - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: Get an asset from an external wallet + $ref: "#/components/schemas/WorkflowConfigurationId" + description: The specified configuration has been deleted successfully. + "401": + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + description: Unauthorized. Missing / invalid JWT token in Authorization + header. + "404": + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + description: Not found + summary: Delete workflow configuration tags: - - External wallets - x-rate-limit-category: read - x-readme: - code-samples: - - language: python - code: "externalWalletAsset = fireblocks.get_external_wallet_asset(walletId,\ - \ assetId)" - name: Fireblocks SDK Python example (Legacy) - - language: javascript - code: "const externalWalletAsset = fireblocks.getExternalWalletAsset(walletId,\ - \ assetId)" - name: Fireblocks SDK Javascript example - - language: typescript - code: "const response: Promise>\ - \ = fireblocks.externalWallets.getExternalWalletAsset(externalWalletsApiGetExternalWalletAssetRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: "CompletableFuture> response = fireblocks.externalWallets().getExternalWalletAsset(walletId,\ - \ assetId);" - name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.external_wallets.get_external_wallet_asset(wallet_id,\ - \ asset_id);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.externalWallets.getExternalWalletAsset(externalWalletsApiGetExternalWalletAssetRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.externalWallets().getExternalWalletAsset(walletId,\ - \ assetId);" - - lang: Python - source: "response = fireblocks.external_wallets.get_external_wallet_asset(wallet_id,\ - \ asset_id);" + - Payments - Flows + x-internal: true x-accepts: - application/json - post: - description: Adds an asset to an existing external wallet. - operationId: addAssetToExternalWallet + get: + description: Retrieve a previously created workflow configuration using the + specified "configId". + operationId: getFlowConfiguration parameters: - - description: The ID of the wallet - explode: false + - explode: false in: path - name: walletId + name: configId required: true schema: type: string style: simple - - description: The ID of the asset to add + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/WorkflowConfiguration" + description: Returns a workflow configuration + "401": + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + description: Unauthorized. Missing / invalid JWT token in Authorization + header. + "404": + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + description: Not found + summary: Retrieve workflow configuration + tags: + - Payments - Flows + x-internal: true + x-accepts: + - application/json + /payments/workflow_execution: + post: + description: "Validate the \"workflow-config\" previously created by utilizing\ + \ the unique \"configId\". This step requires the mandatory field amount,\ + \ and allows for modifications to other fields defined via the \"workflow-config\"\ + \ endpoint, including pre-screening preferences. A response containing the\ + \ \"workflowExecutionId\" and detailing the validation status will be provided.\ + \ Execution is ready when the \"workflow-execution\" status is READY_FOR_LAUNCH,\ + \ at which point it can be initiated with \"POST /workflow-execution/{workflowExecutionId}/actions/execute\"\ + ." + operationId: createFlowExecution + parameters: + - description: "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." explode: false + in: header + name: Idempotency-Key + required: false + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateWorkflowExecutionRequest" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/WorkflowExecution" + description: Workflow execution entity has been created successfully. + "401": + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + description: Unauthorized. Missing / invalid JWT token in Authorization + header. + "404": + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + description: Not found + summary: Create workflow execution + tags: + - Payments - Flows + x-internal: true + x-content-type: application/json + x-accepts: + - application/json + /payments/workflow_execution/{workflowExecutionId}: + get: + description: Retrieve details of a previously initiated workflow execution by + specifying the "workflowExecutionId" + operationId: getFlowExecution + parameters: + - explode: false in: path - name: assetId + name: workflowExecutionId + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/WorkflowExecution" + description: Returns workflow execution by id with preview info + "401": + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + description: Unauthorized. Missing / invalid JWT token in Authorization + header. + "404": + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + description: Not found + summary: Get workflow execution details + tags: + - Payments - Flows + x-internal: true + x-accepts: + - application/json + /payments/workflow_execution/{workflowExecutionId}/actions/execute: + post: + description: "Launch the execution of a pre-configured workflow, identified\ + \ by \"workflowExecutionId\", once it reaches the READY_FOR_LAUNCH state.\ + \ The workflow undergoes several phases during execution - EXECUTION_IN_PROGRESS\ + \ - Marks the start of the workflow execution. EXECUTION_COMPLETED or EXECUTION_FAILED\ + \ - Indicates the execution has reached a final state." + operationId: launchFlowExecution + parameters: + - explode: false + in: path + name: workflowExecutionId required: true schema: type: string - x-fb-entity: asset style: simple - description: "A unique identifier for the request. If the request is sent\ \ multiple times with the same idempotency key, the server will return the\ @@ -8203,107 +6501,120 @@ paths: schema: type: string style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/AddAssetToExternalWalletRequest" responses: "200": content: application/json: schema: - $ref: "#/components/schemas/ExternalWalletAsset" - description: A Wallet Asset object + $ref: "#/components/schemas/WorkflowExecution" + description: Workflow execution has been executed + "401": + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + description: Unauthorized. Missing / invalid JWT token in Authorization + header. + "404": + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + description: Not found + summary: Execute the payments workflow + tags: + - Payments - Flows + x-internal: true + x-accepts: + - application/json + /gas_station: + get: + description: Returns gas station settings and ETH balance. + operationId: getGasStationInfo + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/GasStationPropertiesResponse" + description: Gas Station properties headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: Add an asset to an external wallet. + summary: Get gas station settings tags: - - External wallets - x-rate-limit-category: write + - Gas stations x-readme: code-samples: - language: python - code: "externalWalletAsset = fireblocks.create_external_wallet_asset(walletId,\ - \ assetId, address, tag)" - name: Fireblocks SDK Python example (Legacy) + code: gas_station_info = fireblocks.get_gas_station_info() + name: Fireblocks SDK Python example - language: javascript - code: "const externalWalletAsset = await fireblocks.createExternalWalletAsset(walletContainerId,\ - \ assetId, address, tag);" + code: const gasStationInfo = await fireblocks.gasStationInfo(); name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise>\ - \ = fireblocks.externalWallets.addAssetToExternalWallet(externalWalletsApiAddAssetToExternalWalletRequest);" + code: "const response: Promise>\ + \ = fireblocks.gasStations.getGasStationInfo();" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response = fireblocks.externalWallets().addAssetToExternalWallet(walletId,\ - \ assetId, addAssetToExternalWalletRequest, idempotencyKey);" + code: CompletableFuture> response + = fireblocks.gasStations().getGasStationInfo(); name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.external_wallets.add_asset_to_external_wallet(wallet_id,\ - \ asset_id, add_asset_to_external_wallet_request, idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.externalWallets.addAssetToExternalWallet(externalWalletsApiAddAssetToExternalWalletRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.externalWallets().addAssetToExternalWallet(walletId,\ - \ assetId, addAssetToExternalWalletRequest, idempotencyKey);" - - lang: Python - source: "response = fireblocks.external_wallets.add_asset_to_external_wallet(wallet_id,\ - \ asset_id, add_asset_to_external_wallet_request, idempotency_key);" - x-content-type: application/json x-accepts: - application/json - /contracts: + /gas_station/{assetId}: get: - description: Gets a list of contracts. - operationId: getContracts + description: Returns gas station settings and balances for a requested asset. + operationId: getGasStationByAssetId + parameters: + - description: The ID of the asset + explode: false + in: path + name: assetId + required: true + schema: + type: string + x-fb-entity: asset + style: simple responses: "200": content: application/json: schema: - $ref: "#/components/schemas/GetContractsResponse" - description: A list of contracts + $ref: "#/components/schemas/GasStationPropertiesResponse" + description: Gas Station properties headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: List contracts + summary: Get gas station settings by asset tags: - - Contracts - x-rate-limit-category: query + - Gas stations x-readme: code-samples: + - language: python + code: gas_station_info = fireblocks.get_gas_station_info(asset_id) + name: Fireblocks SDK Python example + - language: javascript + code: const gasStationInfo = await fireblocks.gasStationInfo(assetId); + name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise>\ - \ = fireblocks.contracts.getContracts();" + code: "const response: Promise>\ + \ = fireblocks.gasStations.getGasStationByAssetId(gasStationsApiGetGasStationByAssetIdRequest);" name: Fireblocks SDK TypeScript example - language: java - code: CompletableFuture>> response = fireblocks.contracts().getContracts(); + code: CompletableFuture> response + = fireblocks.gasStations().getGasStationByAssetId(assetId); name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.contracts.get_contracts(); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.contracts.getContracts();" - - lang: Java - source: CompletableFuture>> response = fireblocks.contracts().getContracts(); - - lang: Python - source: response = fireblocks.contracts.get_contracts(); x-accepts: - application/json - post: - description: Creates a new contract. - operationId: createContract + /gas_station/configuration: + put: + description: Configures gas station settings for ETH. + operationId: updateGasStationConfiguration parameters: - description: "A unique identifier for the request. If the request is sent\ \ multiple times with the same idempotency key, the server will return the\ @@ -8320,280 +6631,294 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/CreateContractRequest" + $ref: "#/components/schemas/GasStationConfiguration" + required: true responses: - "200": + "201": content: application/json: schema: - $ref: "#/components/schemas/UnmanagedWallet" - description: A Wallet object + $ref: "#/components/schemas/EditGasStationConfigurationResponse" + description: OK headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: Create a contract + summary: Edit gas station settings tags: - - Contracts - x-rate-limit-category: write + - Gas stations x-readme: code-samples: - - language: typescript - code: "const response: Promise> = fireblocks.contracts.createContract(contractsApiCreateContractRequest);" - name: Fireblocks SDK TypeScript example + - language: python + code: "gas_station = fireblocks.set_gas_station_configuration(gas_threshold,\ + \ gas_cap, max_gas_price, asset_id)" + name: Fireblocks SDK Python example + - language: javascript + code: "const gasStation = await fireblocks.setGasStationConfiguration(gasThreshold,\ + \ gasCap, maxGasPrice)" + name: Fireblocks SDK Javascript example + - language: typescript + code: "const response: Promise>\ + \ = fireblocks.gasStations.updateGasStationConfiguration(gasStationsApiUpdateGasStationConfigurationRequest);" + name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response = fireblocks.contracts().createContract(createContractRequest,\ + code: "CompletableFuture>\ + \ response = fireblocks.gasStations().updateGasStationConfiguration(gasStationConfiguration,\ \ idempotencyKey);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.contracts.create_contract(create_contract_request,\ - \ idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.contracts.createContract(contractsApiCreateContractRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.contracts().createContract(createContractRequest,\ - \ idempotencyKey);" - - lang: Python - source: "response = fireblocks.contracts.create_contract(create_contract_request,\ - \ idempotency_key);" x-content-type: application/json x-accepts: - application/json - /contracts/{contractId}: - delete: - description: Deletes a contract by ID. - operationId: deleteContract + /gas_station/configuration/{assetId}: + put: + description: Configures gas station settings for a requested asset. + operationId: updateGasStationConfigurationByAssetId parameters: - - description: The ID of the contract to delete + - description: The ID of the asset explode: false in: path - name: contractId + name: assetId required: true + schema: + type: string + x-fb-entity: asset + style: simple + - description: "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." + explode: false + in: header + name: Idempotency-Key + required: false schema: type: string style: simple + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/GasStationConfiguration" + required: true responses: "201": + content: + application/json: + schema: + $ref: "#/components/schemas/EditGasStationConfigurationResponse" description: OK headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: Delete a contract + summary: Edit gas station settings for an asset tags: - - Contracts - x-rate-limit-category: write + - Gas stations x-readme: code-samples: - language: typescript - code: "const response: Promise> = fireblocks.contracts.deleteContract(contractsApiDeleteContractRequest);" + code: "const response: Promise>\ + \ = fireblocks.gasStations.updateGasStationConfigurationByAssetId(gasStationsApiUpdateGasStationConfigurationByAssetIdRequest);" name: Fireblocks SDK TypeScript example - language: java - code: CompletableFuture> response = fireblocks.contracts().deleteContract(contractId); + code: "CompletableFuture>\ + \ response = fireblocks.gasStations().updateGasStationConfigurationByAssetId(gasStationConfiguration,\ + \ assetId, idempotencyKey);" name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.contracts.delete_contract(contract_id); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.contracts.deleteContract(contractsApiDeleteContractRequest);" - - lang: Java - source: CompletableFuture> response = fireblocks.contracts().deleteContract(contractId); - - lang: Python - source: response = fireblocks.contracts.delete_contract(contract_id); + x-content-type: application/json x-accepts: - application/json + /management/user_groups: get: - description: Returns a contract by ID. - operationId: getContract - parameters: - - description: The ID of the contract to return - explode: false - in: path - name: contractId - required: true - schema: - type: string - style: simple + description: | + Get all user groups in your workspace.
+ + **Note**: + - This endpoint is now in Beta, disabled for general availability at this time. + - Please note that this endpoint is available only for API keys with Admin permissions. + operationId: getUserGroups responses: "200": content: application/json: schema: - $ref: "#/components/schemas/UnmanagedWallet" - description: A Wallet object + $ref: "#/components/schemas/UserGroupsResponse" + description: List of the user groups in your workspace headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: Find a specific contract + summary: List user groups tags: - - Contracts - x-rate-limit-category: read + - User groups (Beta) x-readme: code-samples: - language: typescript - code: "const response: Promise> = fireblocks.contracts.getContract(contractsApiGetContractRequest);" + code: "const response: Promise> =\ + \ fireblocks.userGroupsBeta.getUserGroups();" name: Fireblocks SDK TypeScript example - language: java - code: CompletableFuture> response = fireblocks.contracts().getContract(contractId); + code: CompletableFuture>> response = + fireblocks.userGroupsBeta().getUserGroups(); name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.contracts.get_contract(contract_id); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.contracts.getContract(contractsApiGetContractRequest);" - - lang: Java - source: CompletableFuture> response = fireblocks.contracts().getContract(contractId); - - lang: Python - source: response = fireblocks.contracts.get_contract(contract_id); x-accepts: - application/json - /contracts/{contractId}/{assetId}: - delete: - description: Deletes a contract asset by ID. - operationId: deleteContractAsset + post: + description: | + Create a new user group.
+ + **Note**: + - This endpoint is now in Beta, disabled for general availability at this time. + - Please note that this endpoint is available only for API keys with Admin permissions. + operationId: createUserGroup parameters: - - description: The ID of the contract + - description: "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." explode: false - in: path - name: contractId - required: true + in: header + name: Idempotency-Key + required: false schema: type: string style: simple - - description: The ID of the asset to delete - explode: false - in: path - name: assetId + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UserGroupCreateRequest" required: true - schema: - type: string - x-fb-entity: asset - style: simple responses: "201": - description: OK + content: + application/json: + schema: + $ref: "#/components/schemas/CreateUserGroupResponse" + description: User group created and pending approval headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: Delete a contract asset + summary: Create user group tags: - - Contracts - x-rate-limit-category: write + - User groups (Beta) x-readme: code-samples: - language: typescript - code: "const response: Promise> = fireblocks.contracts.deleteContractAsset(contractsApiDeleteContractAssetRequest);" + code: "const response: Promise>\ + \ = fireblocks.userGroupsBeta.createUserGroup(userGroupsBetaApiCreateUserGroupRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response = fireblocks.contracts().deleteContractAsset(contractId,\ - \ assetId);" + code: "CompletableFuture> response\ + \ = fireblocks.userGroupsBeta().createUserGroup(userGroupCreateRequest,\ + \ idempotencyKey);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.contracts.delete_contract_asset(contract_id,\ - \ asset_id);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.contracts.deleteContractAsset(contractsApiDeleteContractAssetRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.contracts().deleteContractAsset(contractId,\ - \ assetId);" - - lang: Python - source: "response = fireblocks.contracts.delete_contract_asset(contract_id,\ - \ asset_id);" + x-content-type: application/json x-accepts: - application/json - get: - description: Returns a contract asset by ID. - operationId: getContractAsset + /management/user_groups/{groupId}: + delete: + description: | + Delete a user group by ID.
+ + **Note**: + - This endpoint is now in Beta, disabled for general availability at this time. + - Please note that this endpoint is available only for API keys with Admin permissions. + operationId: deleteUserGroup parameters: - - description: The ID of the contract + - description: The ID of the user group explode: false in: path - name: contractId + name: groupId required: true schema: type: string style: simple - - description: The ID of the asset to return + responses: + "204": + description: Request to delete user group submitted for approval + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" + default: + $ref: "#/components/responses/Error" + summary: Delete user group + tags: + - User groups (Beta) + x-readme: + code-samples: + - language: typescript + code: "const response: Promise> = fireblocks.userGroupsBeta.deleteUserGroup(userGroupsBetaApiDeleteUserGroupRequest);" + name: Fireblocks SDK TypeScript example + - language: java + code: CompletableFuture> response = fireblocks.userGroupsBeta().deleteUserGroup(groupId); + name: Fireblocks SDK Java example + x-accepts: + - application/json + get: + description: | + Get a user group by ID.
+ + **Note**: + - This endpoint is now in Beta, disabled for general availability at this time. + - Please note that this endpoint is available only for API keys with Admin permissions. + operationId: getUserGroup + parameters: + - description: The ID of the user group explode: false in: path - name: assetId + name: groupId required: true schema: type: string - x-fb-entity: asset style: simple responses: "200": content: application/json: schema: - $ref: "#/components/schemas/ExternalWalletAsset" - description: A Wallet Asset object + $ref: "#/components/schemas/UserGroupResponse" + description: User group headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: Find a contract asset + summary: Get user group tags: - - Contracts - x-rate-limit-category: read + - User groups (Beta) x-readme: code-samples: - language: typescript - code: "const response: Promise>\ - \ = fireblocks.contracts.getContractAsset(contractsApiGetContractAssetRequest);" + code: "const response: Promise> =\ + \ fireblocks.userGroupsBeta.getUserGroup(userGroupsBetaApiGetUserGroupRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response = fireblocks.contracts().getContractAsset(contractId,\ - \ assetId);" + code: CompletableFuture> response = fireblocks.userGroupsBeta().getUserGroup(groupId); name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.contracts.get_contract_asset(contract_id, asset_id);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.contracts.getContractAsset(contractsApiGetContractAssetRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.contracts().getContractAsset(contractId,\ - \ assetId);" - - lang: Python - source: "response = fireblocks.contracts.get_contract_asset(contract_id, asset_id);" x-accepts: - application/json - post: - description: Adds an asset to an existing contract. - operationId: addContractAsset + put: + description: | + Update a user group by ID.
+ + **Note**: + - This endpoint is now in Beta, disabled for general availability at this time. + - Please note that this endpoint is available only for API keys with Admin permissions. + operationId: updateUserGroup parameters: - - description: The ID of the contract - explode: false - in: path - name: contractId - required: true - schema: - type: string - style: simple - - description: The ID of the asset to add + - description: The ID of the user group explode: false in: path - name: assetId + name: groupId required: true schema: type: string - x-fb-entity: asset style: simple - description: "A unique identifier for the request. If the request is sent\ \ multiple times with the same idempotency key, the server will return the\ @@ -8610,267 +6935,173 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/AddContractAssetRequest" + $ref: "#/components/schemas/UserGroupUpdateRequest" + required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/ExternalWalletAsset" - description: A Wallet Asset object + $ref: "#/components/schemas/UserGroupCreateResponse" + description: User group updated and the changes are pending approval headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: Add an asset to a contract + summary: Update user group tags: - - Contracts - x-rate-limit-category: write + - User groups (Beta) x-readme: code-samples: - language: typescript - code: "const response: Promise>\ - \ = fireblocks.contracts.addContractAsset(contractsApiAddContractAssetRequest);" + code: "const response: Promise>\ + \ = fireblocks.userGroupsBeta.updateUserGroup(userGroupsBetaApiUpdateUserGroupRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response = fireblocks.contracts().addContractAsset(contractId,\ - \ assetId, addContractAssetRequest, idempotencyKey);" + code: "CompletableFuture> response\ + \ = fireblocks.userGroupsBeta().updateUserGroup(userGroupUpdateRequest,\ + \ groupId, idempotencyKey);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.contracts.add_contract_asset(contract_id, asset_id,\ - \ add_contract_asset_request, idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.contracts.addContractAsset(contractsApiAddContractAssetRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.contracts().addContractAsset(contractId,\ - \ assetId, addContractAssetRequest, idempotencyKey);" - - lang: Python - source: "response = fireblocks.contracts.add_contract_asset(contract_id, asset_id,\ - \ add_contract_asset_request, idempotency_key);" x-content-type: application/json x-accepts: - application/json - /supported_assets: + /users: get: description: | - Legacy Endpoint – Retrieves all assets supported by Fireblocks in your workspace without extended information.
- **Note**: + List all users for the workspace. - - This endpoint will remain available for the foreseeable future and is not deprecated.
- - The `listAssets` endpoint provides more detailed asset information and improved performance.
- - We recommend transitioning to the `listAssets` endpoint for better results. - operationId: getSupportedAssets + Please note that this endpoint is available only for API keys with Admin permissions. + operationId: getUsers responses: "200": content: application/json: schema: - $ref: "#/components/schemas/GetSupportedAssetsResponse" - description: A Transaction object + $ref: "#/components/schemas/GetUsersResponse" + description: List of users headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: List all asset types supported by Fireblocks - legacy endpoint + summary: List users tags: - - Blockchains & assets - x-rate-limit-category: query + - Users x-readme: code-samples: - language: python - code: supportedAssets = fireblocks.get_supported_assets() - name: Fireblocks SDK Python example (Legacy) + code: users = fireblocks.get_users() + name: Fireblocks SDK Python example - language: javascript - code: const supportedAssets = await fireblocks.getSupportedAssets(); + code: const users = await fireblocks.getUsers(); name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise>\ - \ = fireblocks.blockchainsAssets.getSupportedAssets();" + code: "const response: Promise> = fireblocks.users.getUsers();" name: Fireblocks SDK TypeScript example - language: java - code: CompletableFuture>> response = - fireblocks.blockchainsAssets().getSupportedAssets(); + code: CompletableFuture>> response = fireblocks.users().getUsers(); name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.blockchains_&_assets.get_supported_assets(); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.blockchainsAssets.getSupportedAssets();" - - lang: Java - source: CompletableFuture>> response = - fireblocks.blockchainsAssets().getSupportedAssets(); - - lang: Python - source: response = fireblocks.blockchains_&_assets.get_supported_assets(); x-accepts: - application/json - /assets: + /audits: get: - description: | - Retrieves all assets supported by Fireblocks in your workspace, providing extended information and enhanced performance compared to the legacy `supported_assets` endpoint.
- **Note**: - - - We will continue displaying and supporting the legacy ID (API ID). Since not all Fireblocks services fully support the new Assets UUID, please use only the legacy ID until further notice.
- operationId: listAssets + description: Get all audits + operationId: getAudits parameters: - - description: Blockchain id of the assets - example: 0f672204-a28b-464a-b318-a387abd3d3c7 + - description: The last time period to fetch audit logs explode: true in: query - name: blockchainId + name: timePeriod required: false schema: + enum: + - DAY + - WEEK type: string style: form - - description: Assets class - explode: true - in: query - name: assetClass - required: false - schema: - $ref: "#/components/schemas/AssetClass" - style: form - - description: Assets onchain symbol - example: ETH + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/GetAuditLogsResponseDTO" + description: Audit logs from requested time period + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" + default: + $ref: "#/components/responses/Error" + summary: Get audit logs + tags: + - Audit Logs + x-readme: + code-samples: + - language: typescript + code: "const response: Promise>\ + \ = fireblocks.auditLogs.getAudits(auditLogsApiGetAuditsRequest);" + name: Fireblocks SDK TypeScript example + - language: java + code: CompletableFuture> response = + fireblocks.auditLogs().getAudits(timePeriod); + name: Fireblocks SDK Java example + x-accepts: + - application/json + /management/audit_logs: + get: + description: Get all audits + operationId: getAuditLogs + parameters: + - description: The last time period to fetch audit logs explode: true in: query - name: symbol + name: timePeriod required: false schema: - minLength: 1 + enum: + - DAY + - WEEK type: string style: form - - description: Scope of the assets - explode: true - in: query - name: scope - required: false - schema: - $ref: "#/components/schemas/AssetScope" - style: form - - description: Are assets deprecated - example: false - explode: true - in: query - name: deprecated - required: false - schema: - type: boolean - style: form - - description: A list of asset IDs (max 100) - example: - - 3ed32525-70df-45c8-bae3-e69ab56dc095 - - 3a3b5f06-61e7-44f0-9962-4425b55795ff - - SHANI5_B75VRLGX_MUPA - explode: true - in: query - name: ids - required: false - schema: - items: - type: string - type: array - style: form - - description: Next page cursor to fetch - example: MjAyMy0xMi0xMyAyMDozNjowOC4zMDI=:MTEwMA== + - description: The next id to start fetch audit logs from explode: true in: query - name: pageCursor + name: cursor required: false schema: type: string style: form - - description: Items per page - example: 500 - explode: true - in: query - name: pageSize - required: false - schema: - default: 500 - maximum: 1000 - minimum: 100 - type: number - style: form - - description: "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." - explode: false - in: header - name: Idempotency-Key - required: false - schema: - type: string - style: simple responses: "200": content: application/json: schema: - $ref: "#/components/schemas/ListAssetsResponse" - description: List of assets - "500": - content: - application/json: - schema: - $ref: "#/components/schemas/AssetInternalServerErrorResponse" - description: Error occurred while listing assets + $ref: "#/components/schemas/GetAuditLogsResponse" + description: Audit logs from requested time period + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: List assets + summary: Get audit logs tags: - - Blockchains & assets - x-rate-limit-category: query + - Audit Logs x-readme: code-samples: - - language: python - code: assets = fireblocks.listAssets(filters) - name: Fireblocks SDK Python example (Legacy) - - language: javascript - code: const assets = await fireblocks.listAssets(filters); - name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise> =\ - \ fireblocks.blockchainsAssets.listAssets(blockchainsAssetsApiListAssetsRequest);" + code: "const response: Promise>\ + \ = fireblocks.auditLogs.getAuditLogs(auditLogsApiGetAuditLogsRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response = fireblocks.blockchainsAssets().listAssets(blockchainId,\ - \ assetClass, symbol, scope, deprecated, ids, pageCursor, pageSize, idempotencyKey);" + code: "CompletableFuture> response = fireblocks.auditLogs().getAuditLogs(timePeriod,\ + \ cursor);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.blockchains_&_assets.list_assets(blockchain_id,\ - \ asset_class, symbol, scope, deprecated, ids, page_cursor, page_size,\ - \ idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> =\ - \ fireblocks.blockchainsAssets.listAssets(blockchainsAssetsApiListAssetsRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.blockchainsAssets().listAssets(blockchainId,\ - \ assetClass, symbol, scope, deprecated, ids, pageCursor, pageSize, idempotencyKey);" - - lang: Python - source: "response = fireblocks.blockchains_&_assets.list_assets(blockchain_id,\ - \ asset_class, symbol, scope, deprecated, ids, page_cursor, page_size, idempotency_key);" x-accepts: - application/json + /off_exchange/add: post: - description: | - 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 - operationId: registerNewAsset + description: "add collateral, create deposit request" + operationId: addOffExchange parameters: - description: "A unique identifier for the request. If the request is sent\ \ multiple times with the same idempotency key, the server will return the\ @@ -8887,123 +7118,38 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/RegisterNewAssetRequest" + $ref: "#/components/schemas/AddCollateralRequestBody" responses: "200": content: application/json: schema: - $ref: "#/components/schemas/AssetResponse" - description: A new asset has been created successfully - "400": - content: - application/json: - schema: - $ref: "#/components/schemas/AssetBadRequestErrorResponse" - description: | - - 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 - - - Unable to get expected metadata: decimals | name | symbol. Error code: 1010 - "403": - content: - application/json: - schema: - $ref: "#/components/schemas/AssetForbiddenErrorResponse" - description: | - - 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": - content: - application/json: - schema: - $ref: "#/components/schemas/TokenInfoNotFoundErrorResponse" - description: | - - Invalid address, could not get asset information. Error code 1003 - "409": - content: - application/json: - schema: - $ref: "#/components/schemas/AssetConflictErrorResponse" - description: | - - The asset is already supported globally. Error code: 1001 - - - The asset has already been added to this workspace. Error code: 1002 - "500": - content: - application/json: - schema: - $ref: "#/components/schemas/AssetInternalServerErrorResponse" - description: Failed to create asset + $ref: "#/components/schemas/CreateTransactionResponse" + description: A transaction object default: $ref: "#/components/responses/Error" - summary: Register an asset + summary: add collateral tags: - - Blockchains & assets - x-rate-limit-category: write + - Off exchanges x-readme: code-samples: - - language: python - code: "supportedAssets = fireblocks.register_new_asset(blockchainId, address,\ - \ symbol)" - name: Fireblocks SDK Python example (Legacy) - - language: javascript - code: "const supportedAssets = await fireblocks.registerNewAsset(blockchainId,\ - \ address, symbol);" - name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise> = fireblocks.blockchainsAssets.registerNewAsset(blockchainsAssetsApiRegisterNewAssetRequest);" + code: "const response: Promise>\ + \ = fireblocks.offExchanges.addOffExchange(offExchangesApiAddOffExchangeRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response = fireblocks.blockchainsAssets().registerNewAsset(registerNewAssetRequest,\ + code: "CompletableFuture> response\ + \ = fireblocks.offExchanges().addOffExchange(addCollateralRequestBody,\ \ idempotencyKey);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.blockchains_&_assets.register_new_asset(register_new_asset_request,\ - \ idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.blockchainsAssets.registerNewAsset(blockchainsAssetsApiRegisterNewAssetRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.blockchainsAssets().registerNewAsset(registerNewAssetRequest,\ - \ idempotencyKey);" - - lang: Python - source: "response = fireblocks.blockchains_&_assets.register_new_asset(register_new_asset_request,\ - \ idempotency_key);" x-content-type: application/json x-accepts: - application/json - /assets/{id}: - get: - description: | - Returns an asset by ID or legacyID.
- - **Note**: - - - We will continue displaying and supporting the legacy ID (API ID). Since not all Fireblocks services fully support the new Assets UUID, please use only the legacy ID until further notice. - operationId: getAsset + /off_exchange/remove: + post: + description: "remove collateral, create withdraw request" + operationId: removeOffExchange parameters: - - description: The ID or legacyId of the asset - example: ETH - explode: false - in: path - name: id - required: true - schema: - type: string - x-fb-entity: asset - style: simple - description: "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\ @@ -9015,80 +7161,162 @@ paths: schema: type: string style: simple - responses: - "200": - content: + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/RemoveCollateralRequestBody" + responses: + "200": + content: application/json: schema: - $ref: "#/components/schemas/Asset" - description: Asset with requested identification - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - "404": + $ref: "#/components/schemas/CreateTransactionResponse" + description: A transaction object + default: + $ref: "#/components/responses/Error" + summary: remove collateral + tags: + - Off exchanges + x-readme: + code-samples: + - language: typescript + code: "const response: Promise>\ + \ = fireblocks.offExchanges.removeOffExchange(offExchangesApiRemoveOffExchangeRequest);" + name: Fireblocks SDK TypeScript example + - language: java + code: "CompletableFuture> response\ + \ = fireblocks.offExchanges().removeOffExchange(removeCollateralRequestBody,\ + \ idempotencyKey);" + name: Fireblocks SDK Java example + x-content-type: application/json + x-accepts: + - application/json + /off_exchange/settlements/trader: + post: + description: create settlement for a trader + operationId: settleOffExchangeTrades + parameters: + - description: "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." + explode: false + in: header + name: Idempotency-Key + required: false + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/SettlementRequestBody" + responses: + "201": content: application/json: schema: - $ref: "#/components/schemas/AssetNotFoundErrorResponse" - description: | - - Asset with specified ID or legacy ID is not found. Error code 1504 - "500": + $ref: "#/components/schemas/SettlementResponse" + description: A settlement object + default: + $ref: "#/components/responses/Error" + summary: create settlement for a trader + tags: + - Off exchanges + x-readme: + code-samples: + - language: typescript + code: "const response: Promise> =\ + \ fireblocks.offExchanges.settleOffExchangeTrades(offExchangesApiSettleOffExchangeTradesRequest);" + name: Fireblocks SDK TypeScript example + - language: java + code: "CompletableFuture> response = fireblocks.offExchanges().settleOffExchangeTrades(settlementRequestBody,\ + \ idempotencyKey);" + name: Fireblocks SDK Java example + x-content-type: application/json + x-accepts: + - application/json + /off_exchange/settlements/transactions: + get: + description: get settlements transactions from exchange + operationId: getOffExchangeSettlementTransactions + parameters: + - explode: true + in: query + name: mainExchangeAccountId + required: true + schema: + type: string + style: form + responses: + "200": content: application/json: schema: - $ref: "#/components/schemas/AssetInternalServerErrorResponse" - description: Error occurred while getting an asset + $ref: "#/components/schemas/ExchangeSettlementTransactionsResponse" + description: A settlement transactions default: $ref: "#/components/responses/Error" - summary: Get an asset + summary: get settlements transactions from exchange tags: - - Blockchains & assets - x-rate-limit-category: read + - Off exchanges x-readme: code-samples: - - language: python - code: asset = fireblocks.getAssetById(assetId) - name: Fireblocks SDK Python example (Legacy) - - language: javascript - code: const asset = await fireblocks.getAssetById(assetId); - name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise> = fireblocks.blockchainsAssets.getAsset(blockchainsAssetsApiGetAssetRequest);" + code: "const response: Promise>\ + \ = fireblocks.offExchanges.getOffExchangeSettlementTransactions(offExchangesApiGetOffExchangeSettlementTransactionsRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response = fireblocks.blockchainsAssets().getAsset(id,\ - \ idempotencyKey);" + code: CompletableFuture> response = fireblocks.offExchanges().getOffExchangeSettlementTransactions(mainExchangeAccountId); name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.blockchains_&_assets.get_asset(id, idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.blockchainsAssets.getAsset(blockchainsAssetsApiGetAssetRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.blockchainsAssets().getAsset(id,\ - \ idempotencyKey);" - - lang: Python - source: "response = fireblocks.blockchains_&_assets.get_asset(id, idempotency_key);" x-accepts: - application/json - patch: - description: |- - Update the user’s metadata for an asset. - - Endpoint Permission: Owner, Admin, Non-Signing Admin, NCW Admin, Signer, Editor. - operationId: updateAssetUserMetadata + /off_exchange/collateral_accounts/{mainExchangeAccountId}: + get: + description: Returns a collateral account by mainExchangeAccountId. + operationId: getOffExchangeCollateralAccounts parameters: - - description: The ID or legacyId of the asset - example: ETH + - description: The id of the main exchange account for which the requested collateral + account is associated with explode: false in: path - name: id + name: mainExchangeAccountId required: true schema: type: string - x-fb-entity: asset style: simple + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ExchangeAccount" + description: An ExchangeAccount object + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" + default: + $ref: "#/components/responses/Error" + summary: Find a specific collateral exchange account + tags: + - Off exchanges + x-readme: + code-samples: + - language: typescript + code: "const response: Promise> = fireblocks.offExchanges.getOffExchangeCollateralAccounts(offExchangesApiGetOffExchangeCollateralAccountsRequest);" + name: Fireblocks SDK TypeScript example + - language: java + code: CompletableFuture> response = fireblocks.offExchanges().getOffExchangeCollateralAccounts(mainExchangeAccountId); + name: Fireblocks SDK Java example + x-accepts: + - application/json + /webhooks/resend: + post: + description: Resends all failed webhook notifications. + operationId: resendWebhooks + parameters: - description: "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\ @@ -9100,82 +7328,48 @@ paths: schema: type: string style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/UpdateAssetUserMetadataRequest" responses: "200": content: application/json: schema: - $ref: "#/components/schemas/Asset" - description: Updated asset user metadata + $ref: "#/components/schemas/ResendWebhooksResponse" + description: OK headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" - "404": - content: - application/json: - schema: - $ref: "#/components/schemas/AssetNotFoundErrorResponse" - description: | - - Asset with specified ID or legacy ID is not found. Error code 1504 - "500": - content: - application/json: - schema: - $ref: "#/components/schemas/AssetInternalServerErrorResponse" - description: Error occurred while updating asset user metadata default: $ref: "#/components/responses/Error" - summary: Update the user’s metadata for an asset + summary: Resend failed webhooks tags: - - Blockchains & assets - x-rate-limit-category: write + - Webhooks x-readme: code-samples: - language: python - code: "asset = fireblocks.update_asset_user_metadata(asset_id, update_asset_user_metadata_request)" - name: Fireblocks SDK Python example (Legacy) + code: result = fireblocks.resend_webhooks() + name: Fireblocks SDK Python example - language: javascript - code: "const asset = await fireblocks.updateAssetUserMetadata(assetId, updateAssetUserMetadataRequest);" + code: const result = await fireblocks.resendWebhooks(); name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise> = fireblocks.blockchainsAssets.updateAssetUserMetadata(blockchainsAssetsApiUpdateAssetUserMetadataRequest);" + code: "const response: Promise>\ + \ = fireblocks.webhooks.resendWebhooks(webhooksApiResendWebhooksRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response = fireblocks.blockchainsAssets().updateAssetUserMetadata(id,\ - \ updateAssetUserMetadataRequest, idempotencyKey);" + code: CompletableFuture> response = + fireblocks.webhooks().resendWebhooks(idempotencyKey); name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.blockchains_&_assets.update_asset_user_metadata(id,\ - \ update_asset_user_metadata_request, idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.blockchainsAssets.updateAssetUserMetadata(blockchainsAssetsApiUpdateAssetUserMetadataRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.blockchainsAssets().updateAssetUserMetadata(id,\ - \ updateAssetUserMetadataRequest, idempotencyKey);" - - lang: Python - source: "response = fireblocks.blockchains_&_assets.update_asset_user_metadata(id,\ - \ update_asset_user_metadata_request, idempotency_key);" - x-content-type: application/json x-accepts: - application/json - /assets/prices/{id}: + /webhooks/resend/{txId}: post: - description: | - Set asset price for the given asset id. Returns the asset price response. - operationId: setAssetPrice + description: Resends failed webhook notifications for a transaction by ID. + operationId: resendTransactionWebhooks parameters: - - description: The ID of the asset - example: ETH + - description: The ID of the transaction for webhooks explode: false in: path - name: id + name: txId required: true schema: type: string @@ -9195,200 +7389,255 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/SetAssetPriceRequest" + $ref: "#/components/schemas/ResendTransactionWebhooksRequest" + required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/AssetPriceResponse" - description: Asset price has been set successfully. - "403": - content: - application/json: - schema: - $ref: "#/components/schemas/AssetPriceForbiddenErrorResponse" - description: | - - Tenant is not allowed to set rate. Error code: 1002. - "404": - content: - application/json: - schema: - $ref: "#/components/schemas/AssetPriceNotFoundErrorResponse" - description: | - - Currency not found. Error code 1001 + $ref: "#/components/schemas/ResendWebhooksByTransactionIdResponse" + description: OK + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: Set asset price + summary: Resend failed webhooks for a transaction by ID tags: - - Blockchains & assets - x-rate-limit-category: write + - Webhooks x-readme: code-samples: - language: python - code: "supportedAssets = fireblocks.set_asset_price(id, currency, price)" - name: Fireblocks SDK Python example (Legacy) + code: "result = fireblocks.resend_transaction_webhooks_by_id(txId, resend_created,\ + \ resend_status_updated)" + name: Fireblocks SDK Python example - language: javascript - code: "const supportedAssets = await fireblocks.setAssetPrice(id, currency,\ - \ price);" + code: "const result = await fireblocks.resendTransactionWebhooksById(txId,\ + \ resendCreated, resendStatusUpdated);" name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise> =\ - \ fireblocks.blockchainsAssets.setAssetPrice(blockchainsAssetsApiSetAssetPriceRequest);" + code: "const response: Promise>\ + \ = fireblocks.webhooks.resendTransactionWebhooks(webhooksApiResendTransactionWebhooksRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response = fireblocks.blockchainsAssets().setAssetPrice(id,\ - \ setAssetPriceRequest, idempotencyKey);" + code: "CompletableFuture>\ + \ response = fireblocks.webhooks().resendTransactionWebhooks(resendTransactionWebhooksRequest,\ + \ txId, idempotencyKey);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.blockchains_&_assets.set_asset_price(id, set_asset_price_request,\ - \ idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> =\ - \ fireblocks.blockchainsAssets.setAssetPrice(blockchainsAssetsApiSetAssetPriceRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.blockchainsAssets().setAssetPrice(id,\ - \ setAssetPriceRequest, idempotencyKey);" - - lang: Python - source: "response = fireblocks.blockchains_&_assets.set_asset_price(id, set_asset_price_request,\ - \ idempotency_key);" x-content-type: application/json x-accepts: - application/json - /blockchains: + /tokenization/templates: get: - description: | - Returns all blockchains supported by Fireblocks. - operationId: listBlockchains + description: Return minimal representation of all the contract templates available + for the workspace + operationId: getContractTemplates parameters: - - description: Blockchain protocol - example: SOL + - description: Items per page (max 100) explode: true in: query - name: protocol + name: limit required: false schema: - type: string + default: 100 + maximum: 100 + minimum: 1 + type: number style: form - - description: Is blockchain deprecated - example: false + - description: Paging offset explode: true in: query - name: deprecated + name: offset required: false schema: - type: boolean + default: 0 + minimum: 0 + type: number style: form - - description: Is test blockchain - example: false + - description: Page cursor to get the next page + example: MjAyMy0xMi0xMyAyMDozNjowOC4zMDI=:MTEwMA== explode: true in: query - name: test + name: pageCursor required: false schema: - type: boolean + type: string style: form - - description: A list of blockchain IDs (max 100) - example: - - 3ed32525-70df-45c8-bae3-e69ab56dc095 - - 3a3b5f06-61e7-44f0-9962-4425b55795ff - - MANTRA + - description: "Number of items per page, requesting more then max will return\ + \ max items" + example: 10 explode: true in: query - name: ids + name: pageSize required: false schema: - items: - type: string - type: array + maximum: 100 + minimum: 1 + type: number style: form - - description: Page cursor to fetch - example: MjAyMy0xMi0xMyAyMDozNjowOC4zMDI=:MTEwMA== + - description: "The type of the contract templates you wish to retrieve. Can\ + \ accept one type, more or none" + example: FUNGIBLE_TOKEN explode: true in: query - name: pageCursor + name: type required: false schema: + enum: + - FUNGIBLE_TOKEN + - NON_FUNGIBLE_TOKEN + - TOKEN_UTILITY type: string style: form - - description: Items per page (max 500) - example: 500 - explode: true + - explode: true in: query - name: pageSize + name: initializationPhase required: false schema: - default: 500 - maximum: 500 - minimum: 1 - type: number + enum: + - ON_DEPLOYMENT + - POST_DEPLOYMENT + type: string style: form responses: "200": content: application/json: schema: - $ref: "#/components/schemas/ListBlockchainsResponse" - description: List of supported blockchains - "500": + $ref: "#/components/schemas/TemplatesPaginatedResponse" + description: List of contract templates was returned successfully + default: + $ref: "#/components/responses/Error" + summary: List all contract templates + tags: + - Contract Templates + x-readme: + code-samples: + - language: python + code: contract_templates = fireblocks.get_contract_templates() + name: Fireblocks SDK Python example + - language: javascript + code: const contractTemplates = await fireblocks.getContractTemplates(); + name: Fireblocks SDK Javascript example + - language: typescript + code: "const response: Promise>\ + \ = fireblocks.contractTemplates.getContractTemplates(contractTemplatesApiGetContractTemplatesRequest);" + name: Fireblocks SDK TypeScript example + - language: java + code: "CompletableFuture> response\ + \ = fireblocks.contractTemplates().getContractTemplates(limit, offset,\ + \ pageCursor, pageSize, type, initializationPhase);" + name: Fireblocks SDK Java example + x-accepts: + - application/json + post: + description: Upload a new contract template. This contract template will be + available for the workspace + operationId: uploadContractTemplate + parameters: + - description: "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." + explode: false + in: header + name: Idempotency-Key + required: false + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/ContractUploadRequest" + required: true + responses: + "201": content: application/json: schema: - $ref: "#/components/schemas/AssetInternalServerErrorResponse" - description: Error occurred while listing blockchains + $ref: "#/components/schemas/ContractTemplateDto" + description: Contract was uploaded successfully default: $ref: "#/components/responses/Error" - summary: List blockchains + summary: Upload contract template tags: - - Blockchains & assets - x-rate-limit-category: query + - Contract Templates x-readme: code-samples: - language: python - code: blockchains = fireblocks.listBlockchains(filters) - name: Fireblocks SDK Python example (Legacy) + code: template = fireblocks.upload_contract_template(upload_request) + name: Fireblocks SDK Python example - language: javascript - code: const blockchains = await fireblocks.listBlockchains(filters); + code: const contractTemplate = await fireblocks.uploadContractTemplate(uploadRequest); name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise>\ - \ = fireblocks.blockchainsAssets.listBlockchains(blockchainsAssetsApiListBlockchainsRequest);" + code: "const response: Promise>\ + \ = fireblocks.contractTemplates.uploadContractTemplate(contractTemplatesApiUploadContractTemplateRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response\ - \ = fireblocks.blockchainsAssets().listBlockchains(protocol, deprecated,\ - \ test, ids, pageCursor, pageSize);" + code: "CompletableFuture> response = fireblocks.contractTemplates().uploadContractTemplate(contractUploadRequest,\ + \ idempotencyKey);" name: Fireblocks SDK Java example + x-content-type: application/json + x-accepts: + - application/json + /tokenization/templates/{contractTemplateId}: + delete: + description: "Delete a contract by id. allowed only for private contract templates.\ + \ Notice: it is irreversible!" + operationId: deleteContractTemplateById + parameters: + - description: The Contract Template identifier + example: b70701f4-d7b1-4795-a8ee-b09cdb5b850d + explode: false + in: path + name: contractTemplateId + required: true + schema: + type: string + style: simple + responses: + "204": + description: Contract was deleted successfully + "404": + content: + application/json: + schema: + $ref: "#/components/schemas/HttpContractDoesNotExistError" + description: Could not find contract. + default: + $ref: "#/components/responses/Error" + summary: Delete a contract template by id + tags: + - Contract Templates + x-readme: + code-samples: - language: python - code: "response = fireblocks.blockchains_&_assets.list_blockchains(protocol,\ - \ deprecated, test, ids, page_cursor, page_size);" + code: fireblocks.deleteContractTemplate(contract_id) name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.blockchainsAssets.listBlockchains(blockchainsAssetsApiListBlockchainsRequest);" - - lang: Java - source: "CompletableFuture> response\ - \ = fireblocks.blockchainsAssets().listBlockchains(protocol, deprecated,\ - \ test, ids, pageCursor, pageSize);" - - lang: Python - source: "response = fireblocks.blockchains_&_assets.list_blockchains(protocol,\ - \ deprecated, test, ids, page_cursor, page_size);" + - language: javascript + code: await fireblocks.getContractTemplate(contractId); + name: Fireblocks SDK Javascript example + - language: typescript + code: "const response: Promise> = fireblocks.contractTemplates.deleteContractTemplateById(contractTemplatesApiDeleteContractTemplateByIdRequest);" + name: Fireblocks SDK TypeScript example + - language: java + code: CompletableFuture> response = fireblocks.contractTemplates().deleteContractTemplateById(contractTemplateId); + name: Fireblocks SDK Java example x-accepts: - application/json - /blockchains/{id}: get: - description: | - Returns an blockchain by ID or legacyID. - operationId: getBlockchain + description: Return detailed information about the contract template + operationId: getContractTemplateById parameters: - - description: The ID or legacyId of the blockchain - example: ETH + - description: The Contract Template identifier + example: b70701f4-d7b1-4795-a8ee-b09cdb5b850d explode: false in: path - name: id + name: contractTemplateId required: true schema: type: string @@ -9398,211 +7647,112 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/BlockchainResponse" - description: Blockchain with requested identification - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" + $ref: "#/components/schemas/ContractTemplateDto" + description: Contract template was returned successfully "404": content: application/json: schema: - $ref: "#/components/schemas/BlockchainNotFoundErrorResponse" - description: | - - Blockchain with specified ID or legacy ID is not found. Error code 1505 - "500": - content: - application/json: - schema: - $ref: "#/components/schemas/AssetInternalServerErrorResponse" - description: Error occurred while getting an blockchain + $ref: "#/components/schemas/HttpContractDoesNotExistError" + description: Could not find contract. default: $ref: "#/components/responses/Error" - summary: Get an blockchain + summary: Return contract template by id tags: - - Blockchains & assets - x-rate-limit-category: read + - Contract Templates x-readme: code-samples: - language: python - code: blockchain = fireblocks.getBlockchainById(blockchainId) - name: Fireblocks SDK Python example (Legacy) + code: contract_template = fireblocks.get_contract_template(contract_id) + name: Fireblocks SDK Python example - language: javascript - code: const blockchain = await fireblocks.getBlockchainById(blockchainId); + code: const contractTemplate = await fireblocks.getContractTemplate(contractId); name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise> =\ - \ fireblocks.blockchainsAssets.getBlockchain(blockchainsAssetsApiGetBlockchainRequest);" + code: "const response: Promise>\ + \ = fireblocks.contractTemplates.getContractTemplateById(contractTemplatesApiGetContractTemplateByIdRequest);" name: Fireblocks SDK TypeScript example - language: java - code: CompletableFuture> response = fireblocks.blockchainsAssets().getBlockchain(id); + code: CompletableFuture> response = fireblocks.contractTemplates().getContractTemplateById(contractTemplateId); name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.blockchains_&_assets.get_blockchain(id); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> =\ - \ fireblocks.blockchainsAssets.getBlockchain(blockchainsAssetsApiGetBlockchainRequest);" - - lang: Java - source: CompletableFuture> response = fireblocks.blockchainsAssets().getBlockchain(id); - - lang: Python - source: response = fireblocks.blockchains_&_assets.get_blockchain(id); x-accepts: - application/json - /transactions: + /tokenization/templates/{contractTemplateId}/constructor: get: - description: Lists the transaction history for your workspace. - operationId: getTransactions + description: Return contract template's constructor ABI + operationId: getConstructorByContractTemplateId parameters: - - description: Unix timestamp in milliseconds. Returns only transactions created - before the specified date - explode: true - in: query - name: before - required: false + - description: The Contract Template identifier + example: b70701f4-d7b1-4795-a8ee-b09cdb5b850d + explode: false + in: path + name: contractTemplateId + required: true schema: type: string - style: form - - description: Unix timestamp in milliseconds. Returns only transactions created - after the specified date + style: simple + - description: true if you want to get the abi with its docs explode: true in: query - name: after + name: withDocs required: false schema: - type: string + default: false + type: boolean style: form - - description: You can filter by one of the statuses. - explode: true - in: query - name: status - required: false + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/AbiFunction" + description: Contract template's constructor ABI was returned successfully + "404": + content: + application/json: + schema: + $ref: "#/components/schemas/HttpContractDoesNotExistError" + description: Could not find contract. + default: + $ref: "#/components/responses/Error" + summary: Return contract template's constructor + tags: + - Contract Templates + x-readme: + code-samples: + - language: python + code: contract_constructor_abi = fireblocks.get_contract_template_constructor(contract_id) + name: Fireblocks SDK Python example + - language: javascript + code: const contractConstructorAbi = await fireblocks.getContractTemplateConstructor(contractId); + name: Fireblocks SDK Javascript example + - language: typescript + code: "const response: Promise> = fireblocks.contractTemplates.getConstructorByContractTemplateId(contractTemplatesApiGetConstructorByContractTemplateIdRequest);" + name: Fireblocks SDK TypeScript example + - language: java + code: "CompletableFuture> response = fireblocks.contractTemplates().getConstructorByContractTemplateId(contractTemplateId,\ + \ withDocs);" + name: Fireblocks SDK Java example + x-accepts: + - application/json + /tokenization/templates/{contractTemplateId}/function: + get: + description: Return contract template`s function ABI by signature + operationId: getFunctionAbiByContractTemplateId + parameters: + - description: The Contract Template identifier + example: b70701f4-d7b1-4795-a8ee-b09cdb5b850d + explode: false + in: path + name: contractTemplateId + required: true schema: type: string - style: form - - description: |- - The field to order the results by - - **Note**: Ordering by a field that is not createdAt may result with transactions that receive updates as you request the next or previous pages of results, resulting with missing those transactions. - explode: true + style: simple + - explode: true in: query - name: orderBy - required: false - schema: - enum: - - createdAt - - lastUpdated - type: string - style: form - - description: The direction to order the results by - explode: true - in: query - name: sort - required: false - schema: - enum: - - ASC - - DESC - type: string - style: form - - description: "Limits the number of results. If not provided, a limit of 200\ - \ will be used. The maximum allowed limit is 500" - explode: true - in: query - name: limit - required: false - schema: - default: 200 - minimum: 1 - type: integer - style: form - - description: The source type of the transaction - explode: true - in: query - name: sourceType - required: false - schema: - enum: - - VAULT_ACCOUNT - - EXCHANGE_ACCOUNT - - INTERNAL_WALLET - - EXTERNAL_WALLET - - CONTRACT - - FIAT_ACCOUNT - - NETWORK_CONNECTION - - COMPOUND - - UNKNOWN - - GAS_STATION - - END_USER_WALLET - type: string - style: form - - description: The source ID of the transaction - explode: true - in: query - name: sourceId - required: false - schema: - type: string - style: form - - description: The destination type of the transaction - explode: true - in: query - name: destType - required: false - schema: - enum: - - VAULT_ACCOUNT - - EXCHANGE_ACCOUNT - - INTERNAL_WALLET - - EXTERNAL_WALLET - - CONTRACT - - FIAT_ACCOUNT - - NETWORK_CONNECTION - - COMPOUND - - ONE_TIME_ADDRESS - - END_USER_WALLET - type: string - style: form - - description: The destination ID of the transaction - explode: true - in: query - name: destId - required: false - schema: - type: string - style: form - - description: "A list of assets to filter by, seperated by commas" - explode: true - in: query - name: assets - required: false - schema: - type: string - style: form - - description: Returns only results with a specified txHash - explode: true - in: query - name: txHash - required: false - schema: - type: string - style: form - - description: Returns only results where the source is a specific end user - wallet - explode: true - in: query - name: sourceWalletId - required: false - schema: - type: string - style: form - - description: Returns only results where the destination is a specific end - user wallet - explode: true - in: query - name: destWalletId - required: false + name: functionSignature + required: true schema: type: string style: form @@ -9611,74 +7761,43 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetTransactionsResponse" - description: A list of transactions - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - next-page: - $ref: "#/components/headers/next-page" - prev-page: - $ref: "#/components/headers/prev-page" + $ref: "#/components/schemas/AbiFunction" + description: Contract template`s function ABI was returned successfully + "404": + content: + application/json: + schema: + $ref: "#/components/schemas/HttpContractDoesNotExistError" + description: Could not find contract. default: $ref: "#/components/responses/Error" - summary: List transaction history + summary: Return contract template's function tags: - - Transactions - x-rate-limit-category: query + - Contract Templates x-readme: code-samples: - - language: python - code: "transactions = fireblocks.get_transactions(status, after)" - name: Fireblocks SDK Python example (Legacy) - - language: javascript - code: | - const transactions = await fireblocks.getTransactions({ - status: args.status, - after: from }); - name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise>\ - \ = fireblocks.transactions.getTransactions(transactionsApiGetTransactionsRequest);" + code: "const response: Promise> = fireblocks.contractTemplates.getFunctionAbiByContractTemplateId(contractTemplatesApiGetFunctionAbiByContractTemplateIdRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture>> response\ - \ = fireblocks.transactions().getTransactions(before, after, status, orderBy,\ - \ sort, limit, sourceType, sourceId, destType, destId, assets, txHash,\ - \ sourceWalletId, destWalletId);" + code: "CompletableFuture> response = fireblocks.contractTemplates().getFunctionAbiByContractTemplateId(contractTemplateId,\ + \ functionSignature);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.transactions.get_transactions(before, after,\ - \ status, order_by, sort, limit, source_type, source_id, dest_type, dest_id,\ - \ assets, tx_hash, source_wallet_id, dest_wallet_id);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.transactions.getTransactions(transactionsApiGetTransactionsRequest);" - - lang: Java - source: "CompletableFuture>> response\ - \ = fireblocks.transactions().getTransactions(before, after, status, orderBy,\ - \ sort, limit, sourceType, sourceId, destType, destId, assets, txHash, sourceWalletId,\ - \ destWalletId);" - - lang: Python - source: "response = fireblocks.transactions.get_transactions(before, after,\ - \ status, order_by, sort, limit, source_type, source_id, dest_type, dest_id,\ - \ assets, tx_hash, source_wallet_id, dest_wallet_id);" x-accepts: - application/json + /tokenization/templates/{contractTemplateId}/deploy: post: - description: Creates a new transaction. - operationId: createTransaction + description: "Deploy a new contract by contract template id. If you wish to\ + \ deploy a token (ERC20, ERC721 etc), and create asset please use POST /tokenization" + operationId: deployContract parameters: - - description: Unique ID of the End-User wallet to the API request. Required - for end-user wallet operations. + - description: The Contract Template identifier + example: b70701f4-d7b1-4795-a8ee-b09cdb5b850d explode: false - in: header - name: X-End-User-Wallet-Id - required: false + in: path + name: contractTemplateId + required: true schema: - format: uuid type: string style: simple - description: "A unique identifier for the request. If the request is sent\ @@ -9696,206 +7815,137 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/TransactionRequest" + $ref: "#/components/schemas/ContractDeployRequest" + required: true responses: - "200": + "202": content: application/json: schema: - $ref: "#/components/schemas/CreateTransactionResponse" - description: A transaction object - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" + $ref: "#/components/schemas/ContractDeployResponse" + description: Contract was deployed successfully + "404": + content: + application/json: + schema: + $ref: "#/components/schemas/HttpContractDoesNotExistError" + description: Could not find contract. default: $ref: "#/components/responses/Error" - summary: Create a new transaction + summary: Deploy contract tags: - - Transactions - x-rate-limit-category: async + - Contract Templates x-readme: code-samples: - language: python - code: | - tx_result = client.create_transaction( asset_id="BTC", amount="50", source=TransferPeerPath(VAULT_ACCOUNT, from_vault_account_id), destination=DestinationTransferPeerPath(VAULT_ACCOUNT, to_vault_account_id), external_tx_id="unique-id-123" ) - name: Fireblocks SDK Python example (Legacy) + code: "response = fireblocks.deploy_contract(contract_id, contract_deploy_request)" + name: Fireblocks SDK Python example - language: javascript - code: | - const payload: TransactionArguments = { assetId: asset, source: { type: sourceType, id: sourceId || 0 }, destination: { type: destinationType, id: String(destinationId) }, amount: String(amount), fee: String(fee), note: "Created by fireblocks SDK", externalTxId: "unique-id-123" }; const result = await fireblocks.createTransaction(payload); + code: "const { txId } = await fireblocks.deployContract(contractId, contractDeployRequest);" name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise>\ - \ = fireblocks.transactions.createTransaction(transactionsApiCreateTransactionRequest);" + code: "const response: Promise>\ + \ = fireblocks.contractTemplates.deployContract(contractTemplatesApiDeployContractRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response\ - \ = fireblocks.transactions().createTransaction(transactionRequest, xEndUserWalletId,\ - \ idempotencyKey);" + code: "CompletableFuture> response =\ + \ fireblocks.contractTemplates().deployContract(contractDeployRequest,\ + \ contractTemplateId, idempotencyKey);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.transactions.create_transaction(transaction_request,\ - \ x_end_user_wallet_id, idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.transactions.createTransaction(transactionsApiCreateTransactionRequest);" - - lang: Java - source: "CompletableFuture> response\ - \ = fireblocks.transactions().createTransaction(transactionRequest, xEndUserWalletId,\ - \ idempotencyKey);" - - lang: Python - source: "response = fireblocks.transactions.create_transaction(transaction_request,\ - \ x_end_user_wallet_id, idempotency_key);" x-content-type: application/json x-accepts: - application/json - /transactions/estimate_fee: - post: - description: |- - Estimates the transaction fee for a transaction request. - * Note: Supports all Fireblocks assets except ZCash (ZEC). - operationId: estimateTransactionFee + /tokenization/contracts: + get: + description: Return a filtered lean representation of the deployed contracts + data on all blockchains (paginated) + operationId: getDeployedContracts parameters: - - description: "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." - explode: false - in: header - name: Idempotency-Key + - description: Page cursor to get the next page + example: MjAyMy0xMi0xMyAyMDozNjowOC4zMDI=:MTEwMA== + explode: true + in: query + name: pageCursor required: false schema: type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/TransactionRequest" - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/EstimatedTransactionFeeResponse" - description: Estimated fees response - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: Estimate transaction fee - tags: - - Transactions - x-rate-limit-category: async - x-readme: - code-samples: - - language: python - code: | - estimated_fee = client.estimate_fee_for_transaction( asset_id="BTC", amount="50", source=TransferPeerPath(VAULT_ACCOUNT, from_vault_account_id), destination=DestinationTransferPeerPath(VAULT_ACCOUNT, to_vault_account_id) ) - name: Fireblocks SDK Python example (Legacy) - - language: javascript - code: | - const payload: TransactionArguments = { assetId: asset, source: { type: sourceType, id: sourceId || 0 }, destination: { type: destinationType, id: String(destinationId) }, amount: Number(amount) }; const estimatedFee = await fireblocks.estimateFeeForTransaction(payload); - name: Fireblocks SDK Javascript example - - language: typescript - code: "const response: Promise>\ - \ = fireblocks.transactions.estimateTransactionFee(transactionsApiEstimateTransactionFeeRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: "CompletableFuture> response\ - \ = fireblocks.transactions().estimateTransactionFee(transactionRequest,\ - \ idempotencyKey);" - name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.transactions.estimate_transaction_fee(transaction_request,\ - \ idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.transactions.estimateTransactionFee(transactionsApiEstimateTransactionFeeRequest);" - - lang: Java - source: "CompletableFuture> response\ - \ = fireblocks.transactions().estimateTransactionFee(transactionRequest,\ - \ idempotencyKey);" - - lang: Python - source: "response = fireblocks.transactions.estimate_transaction_fee(transaction_request,\ - \ idempotency_key);" - x-content-type: application/json - x-accepts: - - application/json - /transactions/{txId}: - get: - description: Returns a transaction by ID. - operationId: getTransaction - parameters: - - description: The ID of the transaction to return - example: 00000000-0000-0000-0000-000000000000 - explode: false - in: path - name: txId - required: true + style: form + - description: "Number of items per page, requesting more then max will return\ + \ max items" + example: 10 + explode: true + in: query + name: pageSize + required: false + schema: + maximum: 100 + minimum: 1 + type: number + style: form + - description: The contract's onchain address + example: 0xC2c4e1Db41F0bB97996D0eD0542D2170d146FB66 + explode: true + in: query + name: contractAddress + required: false schema: type: string - style: simple + style: form + - explode: true + in: query + name: assetId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: templateId + required: false + schema: + type: string + style: form responses: "200": content: application/json: schema: - $ref: "#/components/schemas/TransactionResponse" - description: An Transaction object - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - "400": - $ref: "#/components/responses/Error" + $ref: "#/components/schemas/DeployedContractsPaginatedResponse" + description: Deployed contracts fetched successfully default: $ref: "#/components/responses/Error" - summary: Find a specific transaction by Fireblocks transaction ID + summary: List deployed contracts data tags: - - Transactions - x-rate-limit-category: read + - Deployed Contracts x-readme: code-samples: - language: python - code: tx = fireblocks.get_transaction_by_id(txId) - name: Fireblocks SDK Python example (Legacy) + code: deployed_contracts = fireblocks.get_contracts_by_filter(template_id) + name: Fireblocks SDK Python example - language: javascript - code: const tx = await fireblocks.getTransactionById(txId); + code: const deployedContracts = await fireblocks.getContractsByFilter(templateId); name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise>\ - \ = fireblocks.transactions.getTransaction(transactionsApiGetTransactionRequest);" + code: "const response: Promise>\ + \ = fireblocks.deployedContracts.getDeployedContracts(deployedContractsApiGetDeployedContractsRequest);" name: Fireblocks SDK TypeScript example - language: java - code: CompletableFuture> response = fireblocks.transactions().getTransaction(txId); + code: "CompletableFuture>\ + \ response = fireblocks.deployedContracts().getDeployedContracts(pageCursor,\ + \ pageSize, contractAddress, assetId, templateId);" name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.transactions.get_transaction(tx_id); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.transactions.getTransaction(transactionsApiGetTransactionRequest);" - - lang: Java - source: CompletableFuture> response = fireblocks.transactions().getTransaction(txId); - - lang: Python - source: response = fireblocks.transactions.get_transaction(tx_id); x-accepts: - application/json - /transactions/external_tx_id/{externalTxId}: + /tokenization/contracts/{id}: get: - description: Returns transaction by external transaction ID. - operationId: getTransactionByExternalId + description: Return deployed contract data by id + operationId: getDeployedContractById parameters: - - description: The external ID of the transaction to return - example: 00000000-0000-0000-0000-000000000000 + - description: The deployed contract data identifier + example: b70701f4-d7b1-4795-a8ee-b09cdb5b850d explode: false in: path - name: externalTxId + name: id required: true schema: type: string @@ -9905,239 +7955,159 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/TransactionResponse" - description: An Transaction object - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" + $ref: "#/components/schemas/DeployedContractResponseDto" + description: "" default: $ref: "#/components/responses/Error" - summary: Find a specific transaction by external transaction ID + summary: Return deployed contract data by id tags: - - Transactions - x-rate-limit-category: read + - Deployed Contracts x-readme: code-samples: - language: python - code: tx = fireblocks.get_transaction_by_external_tx_id(externalTxId) - name: Fireblocks SDK Python example (Legacy) + code: deployed_contracts = fireblocks.get_contract_by_id(contract_id) + name: Fireblocks SDK Python example - language: javascript - code: const tx = await fireblocks.getTransactionByExternalTxId(externalTxId); + code: const deployedContracts = await fireblocks.getContractById(contractId); name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise>\ - \ = fireblocks.transactions.getTransactionByExternalId(transactionsApiGetTransactionByExternalIdRequest);" + code: "const response: Promise>\ + \ = fireblocks.deployedContracts.getDeployedContractById(deployedContractsApiGetDeployedContractByIdRequest);" name: Fireblocks SDK TypeScript example - language: java - code: CompletableFuture> response = fireblocks.transactions().getTransactionByExternalId(externalTxId); + code: CompletableFuture> response + = fireblocks.deployedContracts().getDeployedContractById(id); name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.transactions.get_transaction_by_external_id(external_tx_id); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.transactions.getTransactionByExternalId(transactionsApiGetTransactionByExternalIdRequest);" - - lang: Java - source: CompletableFuture> response = fireblocks.transactions().getTransactionByExternalId(externalTxId); - - lang: Python - source: response = fireblocks.transactions.get_transaction_by_external_id(external_tx_id); x-accepts: - application/json - /transactions/{txId}/set_confirmation_threshold: - post: - description: Overrides the required number of confirmations for transaction - completion by transaction ID. - operationId: setTransactionConfirmationThreshold + /tokenization/contracts/{assetId}/{contractAddress}: + get: + description: Return deployed contract data by blockchain native asset id and + contract address + operationId: getDeployedContractByAddress parameters: - - description: The ID of the transaction + - description: The contract's onchain address + example: 0xC2c4e1Db41F0bB97996D0eD0542D2170d146FB66 explode: false in: path - name: txId + name: contractAddress required: true schema: type: string style: simple - - description: "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." - explode: false - in: header - name: Idempotency-Key - required: false + - explode: false + in: path + name: assetId + required: true schema: type: string style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/SetConfirmationsThresholdRequest" responses: "200": content: application/json: schema: - $ref: "#/components/schemas/SetConfirmationsThresholdResponse" - description: Set successfully - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" + $ref: "#/components/schemas/DeployedContractResponseDto" + description: "" default: $ref: "#/components/responses/Error" - summary: Set confirmation threshold by transaction ID + summary: Return deployed contract data tags: - - Transactions - x-rate-limit-category: write + - Deployed Contracts x-readme: code-samples: - language: python - code: set_conf_threshold = client.set_confirmation_threshold_by_tx_id(body) - name: Fireblocks SDK Python example (Legacy) + code: "deployed_contract = fireblocks.get_contract_by_address(base_asset_id,\ + \ contract_address)" + name: Fireblocks SDK Python example - language: javascript - code: const setConfThreshold = await fireblocks.setConfirmationThresholdByTxId(body); + code: "const deployedContract = await fireblocks.getContractByAddress(baseAssetId,\ + \ contractAddress);" name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise>\ - \ = fireblocks.transactions.setTransactionConfirmationThreshold(transactionsApiSetTransactionConfirmationThresholdRequest);" + code: "const response: Promise>\ + \ = fireblocks.deployedContracts.getDeployedContractByAddress(deployedContractsApiGetDeployedContractByAddressRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture>\ - \ response = fireblocks.transactions().setTransactionConfirmationThreshold(txId,\ - \ setConfirmationsThresholdRequest, idempotencyKey);" + code: "CompletableFuture> response\ + \ = fireblocks.deployedContracts().getDeployedContractByAddress(contractAddress,\ + \ assetId);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.transactions.set_transaction_confirmation_threshold(tx_id,\ - \ set_confirmations_threshold_request, idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.transactions.setTransactionConfirmationThreshold(transactionsApiSetTransactionConfirmationThresholdRequest);" - - lang: Java - source: "CompletableFuture>\ - \ response = fireblocks.transactions().setTransactionConfirmationThreshold(txId,\ - \ setConfirmationsThresholdRequest, idempotencyKey);" - - lang: Python - source: "response = fireblocks.transactions.set_transaction_confirmation_threshold(tx_id,\ - \ set_confirmations_threshold_request, idempotency_key);" - x-content-type: application/json x-accepts: - application/json - /transactions/{txId}/drop: - post: - description: Drops a stuck ETH transaction and creates a replacement transaction. - operationId: dropTransaction + /tokenization/tokens: + get: + description: Return all linked tokens (paginated) + operationId: getLinkedTokens parameters: - - description: The ID of the transaction - explode: false - in: path - name: txId - required: true - schema: - type: string - style: simple - - description: Unique ID of the End-User wallet to the API request. Required - for end-user wallet operations. - explode: false - in: header - name: X-End-User-Wallet-Id + - description: Page cursor to get the next page + example: MjAyMy0xMi0xMyAyMDozNjowOC4zMDI=:MTEwMA== + explode: true + in: query + name: pageCursor required: false schema: - format: uuid type: string - style: simple - - description: "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." - explode: false - in: header - name: Idempotency-Key + style: form + - description: "Number of items per page, requesting more then max will return\ + \ max items" + example: 10 + explode: true + in: query + name: pageSize required: false schema: - type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/DropTransactionRequest" + maximum: 100 + minimum: 1 + type: number + style: form + - description: A comma separated list of statuses to filter. Default is "COMPLETED" + example: COMPLETED + explode: true + in: query + name: status + required: false + schema: {} + style: form responses: "200": content: application/json: schema: - $ref: "#/components/schemas/DropTransactionResponse" - description: Operation completed successfully - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" + $ref: "#/components/schemas/TokensPaginatedResponse" + description: "" default: $ref: "#/components/responses/Error" - summary: Drop ETH transaction by ID + summary: List all linked tokens tags: - - Transactions - x-rate-limit-category: write + - Tokenization x-readme: code-samples: - language: python - code: "result = fireblocks.drop_transaction(txId, fee_level)" - name: Fireblocks SDK Python example (Legacy) + code: linked_tokens = fireblocks.get_linked_tokens(payload) + name: Fireblocks SDK Python example - language: javascript - code: "const result = await fireblocks.dropTransaction(txId, feeLevel);" + code: const linkedTokens = await fireblocks.getLinkedTokens(payload); name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise>\ - \ = fireblocks.transactions.dropTransaction(transactionsApiDropTransactionRequest);" + code: "const response: Promise>\ + \ = fireblocks.tokenization.getLinkedTokens(tokenizationApiGetLinkedTokensRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response\ - \ = fireblocks.transactions().dropTransaction(txId, dropTransactionRequest,\ - \ xEndUserWalletId, idempotencyKey);" + code: "CompletableFuture> response\ + \ = fireblocks.tokenization().getLinkedTokens(pageCursor, pageSize, status);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.transactions.drop_transaction(tx_id, drop_transaction_request,\ - \ x_end_user_wallet_id, idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.transactions.dropTransaction(transactionsApiDropTransactionRequest);" - - lang: Java - source: "CompletableFuture> response\ - \ = fireblocks.transactions().dropTransaction(txId, dropTransactionRequest,\ - \ xEndUserWalletId, idempotencyKey);" - - lang: Python - source: "response = fireblocks.transactions.drop_transaction(tx_id, drop_transaction_request,\ - \ x_end_user_wallet_id, idempotency_key);" - x-content-type: application/json x-accepts: - application/json - /transactions/{txId}/cancel: post: - description: Cancels a transaction by ID. - operationId: cancelTransaction + description: "Facilitates the creation of a new token, supporting both EVM-based\ + \ and Stellar/Ripple platforms. For EVM, it deploys the corresponding contract\ + \ template to the blockchain and links the token to the workspace. For Stellar/Ripple,\ + \ it links a newly created token directly to the workspace without deploying\ + \ a contract. Returns the token link with status \"PENDING\" until the token\ + \ is deployed or \"SUCCESS\" if no deployment is needed." + operationId: issueNewToken parameters: - - description: The ID of the transaction to cancel - explode: false - in: path - name: txId - required: true - schema: - type: string - style: simple - - description: Unique ID of the End-User wallet to the API request. Required - for end-user wallet operations. - explode: false - in: header - name: X-End-User-Wallet-Id - required: false - schema: - format: uuid - type: string - style: simple - description: "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\ @@ -10149,79 +8119,53 @@ paths: schema: type: string style: simple + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateTokenRequestDto" + required: true responses: - "200": + "201": content: application/json: schema: - $ref: "#/components/schemas/CancelTransactionResponse" - description: An Transaction object - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: Cancel a transaction + $ref: "#/components/schemas/TokenLinkDto" + description: Token was created successfully + "409": + content: + application/json: + schema: + $ref: "#/components/schemas/AssetAlreadyExistHttpError" + description: Asset already exists + summary: Issue a new token tags: - - Transactions - x-rate-limit-category: write + - Tokenization x-readme: code-samples: - language: python - code: result = fireblocks.cancel_transaction_by_id(txId) - name: Fireblocks SDK Python example (Legacy) + code: token = fireblocks.issue_new_token(payload) + name: Fireblocks SDK Python example - language: javascript - code: const result = await fireblocks.cancelTransactionById(txId); + code: const token = await fireblocks.issueNewToken(payload); name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise>\ - \ = fireblocks.transactions.cancelTransaction(transactionsApiCancelTransactionRequest);" + code: "const response: Promise> = fireblocks.tokenization.issueNewToken(tokenizationApiIssueNewTokenRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response\ - \ = fireblocks.transactions().cancelTransaction(txId, xEndUserWalletId,\ + code: "CompletableFuture> response = fireblocks.tokenization().issueNewToken(createTokenRequestDto,\ \ idempotencyKey);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.transactions.cancel_transaction(tx_id, x_end_user_wallet_id,\ - \ idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.transactions.cancelTransaction(transactionsApiCancelTransactionRequest);" - - lang: Java - source: "CompletableFuture> response\ - \ = fireblocks.transactions().cancelTransaction(txId, xEndUserWalletId,\ - \ idempotencyKey);" - - lang: Python - source: "response = fireblocks.transactions.cancel_transaction(tx_id, x_end_user_wallet_id,\ - \ idempotency_key);" + x-content-type: application/json x-accepts: - application/json - /transactions/{txId}/freeze: + /tokenization/tokens/link: post: - description: Freezes a transaction by ID. - operationId: freezeTransaction + description: "Link an already existing token (by assetId, collectionId or contractId\ + \ as refId) to a workspace across EVM, Stellar, or Ripple platforms. The token\ + \ will be linked to the workspace if it does not already exist." + operationId: link parameters: - - description: The ID of the transaction to freeze - explode: false - in: path - name: txId - required: true - schema: - type: string - style: simple - - description: Unique ID of the End-User wallet to the API request. Required - for end-user wallet operations. - explode: false - in: header - name: X-End-User-Wallet-Id - required: false - schema: - format: uuid - type: string - style: simple - description: "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\ @@ -10233,155 +8177,120 @@ paths: schema: type: string style: simple + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/TokenLinkRequestDto" + required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/FreezeTransactionResponse" - description: freeze response - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - summary: Freeze a transaction + $ref: "#/components/schemas/TokenLinkDto" + description: Token linked successfully + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/TokenLinkDto" + description: "" + "404": + content: + application/json: + schema: + $ref: "#/components/schemas/AssetDoesNotExistHttpError" + description: Could not find the underlying token identifier (refId) to link + the token to + "409": + content: + application/json: + schema: + $ref: "#/components/schemas/TokenLinkExistsHttpError" + description: "Token link for {refId} already exists" + default: + $ref: "#/components/responses/Error" + summary: Link a token tags: - - Transactions - x-rate-limit-category: write + - Tokenization x-readme: code-samples: - language: python - code: result = fireblocks.freeze_transaction_by_id(txId); - name: Fireblocks SDK Python example (Legacy) + code: "token = fireblocks.link_token(\"FUNGIBLE_TOKEN\", ref_id)" + name: Fireblocks SDK Python example - language: javascript - code: const result = await fireblocks.freezeTransactionById(txId); + code: "const token = await fireblocks.linkToken(\"FUNGIBLE_TOKEN\", refId);" name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise>\ - \ = fireblocks.transactions.freezeTransaction(transactionsApiFreezeTransactionRequest);" + code: "const response: Promise> = fireblocks.tokenization.link(tokenizationApiLinkRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response\ - \ = fireblocks.transactions().freezeTransaction(txId, xEndUserWalletId,\ + code: "CompletableFuture> response = fireblocks.tokenization().link(tokenLinkRequestDto,\ \ idempotencyKey);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.transactions.freeze_transaction(tx_id, x_end_user_wallet_id,\ - \ idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.transactions.freezeTransaction(transactionsApiFreezeTransactionRequest);" - - lang: Java - source: "CompletableFuture> response\ - \ = fireblocks.transactions().freezeTransaction(txId, xEndUserWalletId,\ - \ idempotencyKey);" - - lang: Python - source: "response = fireblocks.transactions.freeze_transaction(tx_id, x_end_user_wallet_id,\ - \ idempotency_key);" + x-content-type: application/json x-accepts: - application/json - /transactions/{txId}/unfreeze: - post: - description: Unfreezes a transaction by ID and makes the transaction available - again. - operationId: unfreezeTransaction + /tokenization/tokens/{id}: + delete: + description: "Unlink a token. The token will be unlinked from the workspace.\ + \ The token will not be deleted on chain nor the refId, only the link to the\ + \ workspace will be removed." + operationId: unlink parameters: - - description: The ID of the transaction to unfreeze + - description: The token link id + example: fbfbfbfb-fbfb-fbfb-fbfb-fbfbfbfbfbfb explode: false in: path - name: txId + name: id required: true schema: type: string style: simple - - description: Unique ID of the End-User wallet to the API request. Required - for end-user wallet operations. - explode: false - in: header - name: X-End-User-Wallet-Id - required: false - schema: - format: uuid - type: string - style: simple - - description: "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." - explode: false - in: header - name: Idempotency-Key - required: false - schema: - type: string - style: simple responses: "200": + content: {} + description: Token unlinked successfully + "204": + content: {} + description: "" + "404": content: application/json: schema: - $ref: "#/components/schemas/UnfreezeTransactionResponse" - description: Unfreeze response - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - summary: Unfreeze a transaction + $ref: "#/components/schemas/NotFoundException" + description: Link did not exist + default: + $ref: "#/components/responses/Error" + summary: Unlink a token tags: - - Transactions - x-rate-limit-category: write + - Tokenization x-readme: code-samples: - language: python - code: result = fireblocks.unfreeze_transaction_by_id(txId) - name: Fireblocks SDK Python example (Legacy) + code: token = fireblocks.unlink_token(token_id) + name: Fireblocks SDK Python example - language: javascript - code: const result = await fireblocks.unfreezeTransactionById(txId); + code: const token = await fireblocks.unlinkToken(tokenId); name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise>\ - \ = fireblocks.transactions.unfreezeTransaction(transactionsApiUnfreezeTransactionRequest);" + code: "const response: Promise> = fireblocks.tokenization.unlink(tokenizationApiUnlinkRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response\ - \ = fireblocks.transactions().unfreezeTransaction(txId, xEndUserWalletId,\ - \ idempotencyKey);" + code: CompletableFuture> response = fireblocks.tokenization().unlink(id); name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.transactions.unfreeze_transaction(tx_id, x_end_user_wallet_id,\ - \ idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.transactions.unfreezeTransaction(transactionsApiUnfreezeTransactionRequest);" - - lang: Java - source: "CompletableFuture> response\ - \ = fireblocks.transactions().unfreezeTransaction(txId, xEndUserWalletId,\ - \ idempotencyKey);" - - lang: Python - source: "response = fireblocks.transactions.unfreeze_transaction(tx_id, x_end_user_wallet_id,\ - \ idempotency_key);" x-accepts: - application/json - /transactions/validate_address/{assetId}/{address}: get: - description: "Checks if an address is valid (for XRP, DOT, XLM, and EOS)." - operationId: validateAddress + description: "Return a linked token, with its status and metadata." + operationId: getLinkedToken parameters: - - description: The asset of the address - explode: false - in: path - name: assetId - required: true - schema: - type: string - x-fb-entity: asset - style: simple - - description: The address to validate + - description: The token link id + example: fbfbfbfb-fbfb-fbfb-fbfb-fbfbfbfbfbfb explode: false in: path - name: address + name: id required: true schema: type: string @@ -10391,55 +8300,34 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/ValidateAddressResponse" - description: An Transaction object - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" + $ref: "#/components/schemas/TokenLinkDto" + description: Token fetched successfully default: $ref: "#/components/responses/Error" - summary: Validate destination address + summary: Return a linked token tags: - - Transactions - x-rate-limit-category: read + - Tokenization x-readme: code-samples: - language: python - code: "result = fireblocks.(asset_id, address)" - name: Fireblocks SDK Python example (Legacy) + code: token = fireblocks.get_linked_token(token_id) + name: Fireblocks SDK Python example - language: javascript - code: "const result = await fireblocks.(assetId, address);" + code: const token = await fireblocks.getLinkedToken(tokenId); name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise>\ - \ = fireblocks.transactions.validateAddress(transactionsApiValidateAddressRequest);" + code: "const response: Promise> = fireblocks.tokenization.getLinkedToken(tokenizationApiGetLinkedTokenRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response\ - \ = fireblocks.transactions().validateAddress(assetId, address);" + code: CompletableFuture> response = fireblocks.tokenization().getLinkedToken(id); name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.transactions.validate_address(asset_id, address);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.transactions.validateAddress(transactionsApiValidateAddressRequest);" - - lang: Java - source: "CompletableFuture> response\ - \ = fireblocks.transactions().validateAddress(assetId, address);" - - lang: Python - source: "response = fireblocks.transactions.validate_address(asset_id, address);" x-accepts: - application/json - /transactions/rescan: - post: - description: | - rescan transaction by running an async job.
- **Note**: - - These endpoints are currently in beta and might be subject to changes. - - We limit the amount of the transaction to 16 per request. - operationId: rescanTransactionsBeta + /contract_interactions/base_asset_id/{assetId}/contract_address/{contractAddress}/functions: + get: + description: Return deployed contract's ABI by blockchain native asset id and + contract address + operationId: getDeployedContractAbi parameters: - description: "A unique identifier for the request. If the request is sent\ \ multiple times with the same idempotency key, the server will return the\ @@ -10452,71 +8340,61 @@ paths: schema: type: string style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/RescanTransactionRequest" + - description: The contract's onchain address + example: 0xC2c4e1Db41F0bB97996D0eD0542D2170d146FB66 + explode: false + in: path + name: contractAddress + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: assetId required: true + schema: + type: string + style: simple responses: "200": content: application/json: schema: - $ref: "#/components/schemas/ValidatedTransactionsForRescanResponse" - description: A array of validated transactions that were sent to rescan - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" + $ref: "#/components/schemas/ContractAbiResponseDto" + description: "" default: $ref: "#/components/responses/Error" - summary: rescan array of transactions + summary: Return deployed contract's ABI tags: - - Transactions - x-rate-limit-category: async + - Contract Interactions x-readme: code-samples: + - language: python + code: "deployed_contract_abi = fireblocks.get_contracts_abi(base_asset_id,\ + \ contract_address)" + name: Fireblocks SDK Python example + - language: javascript + code: "const deployedContractAbi = await fireblocks.getContractAbi(baseAssetId,\ + \ contractAddress);" + name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise>\ - \ = fireblocks.transactions.rescanTransactionsBeta(transactionsApiRescanTransactionsBetaRequest);" + code: "const response: Promise>\ + \ = fireblocks.contractInteractions.getDeployedContractAbi(contractInteractionsApiGetDeployedContractAbiRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture>>\ - \ response = fireblocks.transactions().rescanTransactionsBeta(rescanTransaction,\ - \ idempotencyKey);" + code: "CompletableFuture> response =\ + \ fireblocks.contractInteractions().getDeployedContractAbi(contractAddress,\ + \ assetId, idempotencyKey);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.transactions.rescan_transactions_beta(rescan_transaction,\ - \ idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.transactions.rescanTransactionsBeta(transactionsApiRescanTransactionsBetaRequest);" - - lang: Java - source: "CompletableFuture>>\ - \ response = fireblocks.transactions().rescanTransactionsBeta(rescanTransaction,\ - \ idempotencyKey);" - - lang: Python - source: "response = fireblocks.transactions.rescan_transactions_beta(rescan_transaction,\ - \ idempotency_key);" - x-content-type: application/json x-accepts: - application/json - /txHash/{txHash}/set_confirmation_threshold: + /contract_interactions/base_asset_id/{assetId}/contract_address/{contractAddress}/functions/read: post: - description: Overrides the required number of confirmations for transaction - completion by transaction hash. - operationId: setConfirmationThresholdByTransactionHash + description: Call a read function on a deployed contract by blockchain native + asset id and contract address + operationId: readCallFunction parameters: - - description: The TxHash - explode: false - in: path - name: txHash - required: true - schema: - type: string - style: simple - description: "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\ @@ -10528,280 +8406,235 @@ paths: schema: type: string style: simple + - description: The contract's onchain address + example: 0xC2c4e1Db41F0bB97996D0eD0542D2170d146FB66 + explode: false + in: path + name: contractAddress + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: assetId + required: true + schema: + type: string + style: simple requestBody: content: application/json: schema: - $ref: "#/components/schemas/SetConfirmationsThresholdRequest" + $ref: "#/components/schemas/ReadCallFunctionDto" + required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/SetConfirmationsThresholdResponse" - description: A list of transactions affected by the change - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" + $ref: "#/components/schemas/ParameterWithValueList" + description: Read Call Retrieved Successfully default: $ref: "#/components/responses/Error" - summary: Set confirmation threshold by transaction hash + summary: Call a read function on a deployed contract tags: - - Transactions - x-rate-limit-category: write + - Contract Interactions x-readme: code-samples: - language: python - code: set_conf_threshold = client.set_confirmation_threshold_by_tx_hash(body) - name: Fireblocks SDK Python example (Legacy) + code: "read_response = fireblocks.read_contract_call_function(base_asset_id,\ + \ contract_address, payload)" + name: Fireblocks SDK Python example - language: javascript - code: const setConfThreshold = await fireblocks.setConfirmationThresholdByTxHash(body); + code: "const readResponse= await fireblocks.readContractCallFunction(baseAssetId,\ + \ contractAddress, payload);" name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise>\ - \ = fireblocks.transactions.setConfirmationThresholdByTransactionHash(transactionsApiSetConfirmationThresholdByTransactionHashRequest);" + code: "const response: Promise>\ + \ = fireblocks.contractInteractions.readCallFunction(contractInteractionsApiReadCallFunctionRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture>\ - \ response = fireblocks.transactions().setConfirmationThresholdByTransactionHash(txHash,\ - \ setConfirmationsThresholdRequest, idempotencyKey);" + code: "CompletableFuture>> response\ + \ = fireblocks.contractInteractions().readCallFunction(readCallFunctionDto,\ + \ contractAddress, assetId, idempotencyKey);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.transactions.set_confirmation_threshold_by_transaction_hash(tx_hash,\ - \ set_confirmations_threshold_request, idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.transactions.setConfirmationThresholdByTransactionHash(transactionsApiSetConfirmationThresholdByTransactionHashRequest);" - - lang: Java - source: "CompletableFuture>\ - \ response = fireblocks.transactions().setConfirmationThresholdByTransactionHash(txHash,\ - \ setConfirmationsThresholdRequest, idempotencyKey);" - - lang: Python - source: "response = fireblocks.transactions.set_confirmation_threshold_by_transaction_hash(tx_hash,\ - \ set_confirmations_threshold_request, idempotency_key);" x-content-type: application/json x-accepts: - application/json - /estimate_network_fee: - get: - description: "Gets the estimated required fee for an asset. For UTXO based assets,\ - \ the response will contain the suggested fee per byte, for ETH/ETC based\ - \ assets, the suggested gas price, and for XRP/XLM, the transaction fee." - operationId: estimateNetworkFee + /contract_interactions/base_asset_id/{assetId}/contract_address/{contractAddress}/functions/write: + post: + description: "Call a write function on a deployed contract by blockchain native\ + \ asset id and contract address. This creates an onchain transaction, thus\ + \ it is an async operation. It returns a transaction id that can be polled\ + \ for status check" + operationId: writeCallFunction parameters: - - description: The asset for which to estimate the fee - explode: true - in: query + - description: "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." + explode: false + in: header + name: Idempotency-Key + required: false + schema: + type: string + style: simple + - description: The contract's onchain address + example: 0xC2c4e1Db41F0bB97996D0eD0542D2170d146FB66 + explode: false + in: path + name: contractAddress + required: true + schema: + type: string + style: simple + - explode: false + in: path name: assetId required: true schema: type: string - x-fb-entity: asset - style: form + style: simple + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/WriteCallFunctionDto" + required: true responses: - "200": + "202": content: application/json: schema: - $ref: "#/components/schemas/EstimatedNetworkFeeResponse" - description: Estimated fees response - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" + $ref: "#/components/schemas/WriteCallFunctionResponseDto" + description: "" default: $ref: "#/components/responses/Error" - summary: Estimate the required fee for an asset + summary: Call a write function on a deployed contract tags: - - Transactions - x-rate-limit-category: read + - Contract Interactions x-readme: code-samples: - language: python - code: fee_result = fireblocks.get_fee_for_asset(asset_id) - name: Fireblocks SDK Python example (Legacy) + code: "write_function_response = fireblocks.write_contract_call_function(base_asset_id,\ + \ contract_address, payload)" + name: Fireblocks SDK Python example - language: javascript - code: const feeResult = await fireblocks.getFeeForAsset(assetId); + code: "const writeFunctionResponse = await fireblocks.writeContractCallFunction(baseAssetId,\ + \ contractAddress, payload);" name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise>\ - \ = fireblocks.transactions.estimateNetworkFee(transactionsApiEstimateNetworkFeeRequest);" + code: "const response: Promise>\ + \ = fireblocks.contractInteractions.writeCallFunction(contractInteractionsApiWriteCallFunctionRequest);" name: Fireblocks SDK TypeScript example - language: java - code: CompletableFuture> response - = fireblocks.transactions().estimateNetworkFee(assetId); + code: "CompletableFuture> response\ + \ = fireblocks.contractInteractions().writeCallFunction(writeCallFunctionDto,\ + \ contractAddress, assetId, idempotencyKey);" name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.transactions.estimate_network_fee(asset_id); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.transactions.estimateNetworkFee(transactionsApiEstimateNetworkFeeRequest);" - - lang: Java - source: CompletableFuture> response - = fireblocks.transactions().estimateNetworkFee(assetId); - - lang: Python - source: response = fireblocks.transactions.estimate_network_fee(asset_id); + x-content-type: application/json x-accepts: - application/json - /payments/payout: - post: - description: | - **Note:** The reference content in this section documents the Payments Engine endpoint. The Payments Engine endpoints include APIs available only for customers with Payments Engine enabled on their accounts.
-
These endpoints are currently in beta and might be subject to changes.
-
If you want to learn more about Fireblocks Payments Engine, please contact your Fireblocks Customer Success Manager or email CSM@fireblocks.com.
-
Create a payout instruction set.
- A payout instruction set is a set of instructions for distributing payments from a single payment account to a list of payee accounts.
- The instruction set defines:
-
    -
  • the payment account and its account type (vault, exchange, or fiat).
  • -
  • the account type (vault account, exchange account, whitelisted address, network connection, fiat account, or merchant account), the amount, and the asset of payment for each payee account.
  • -
- operationId: createPayout + /staking/chains: + get: + description: Return an alphabetical list of supported chains. + operationId: getChains + parameters: [] + responses: + "200": + content: + application/json: + example: + - ETH + - SOL + schema: + $ref: "#/components/schemas/StakingGetChainsResponse" + description: "" + summary: "" + tags: + - Staking (Beta) + x-readme: + code-samples: + - language: typescript + code: "const response: Promise>\ + \ = fireblocks.stakingBeta.getChains();" + name: Fireblocks SDK TypeScript example + - language: java + code: CompletableFuture>> response = fireblocks.stakingBeta().getChains(); + name: Fireblocks SDK Java example + x-accepts: + - application/json + /staking/chains/{chainDescriptor}/chainInfo: + get: + description: "Return chain-specific, staking-related information summary (e.g.\ + \ epoch details, lockup durations, estimated rewards, etc.)" + operationId: getChainInfo parameters: - - description: "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." + - description: The protocol identifier (e.g. "ETH"/"SOL") to use explode: false - in: header - name: Idempotency-Key - required: false + in: path + name: chainDescriptor + required: true schema: + enum: + - ETH + - SOL + - ETH_TEST3 + - SOL_TEST type: string style: simple - requestBody: - content: - application/json: - example: - paymentAccount: - id: EX_SUB1 - type: EXCHANGE_ACCOUNT - instructionSet: - - payeeAccount: - id: bef85a1c-b605-4b2e-bdb5-2d400f4d0bf3 - type: EXTERNAL_WALLET - amount: - amount: "43" - assetId: USDC - - payeeAccount: - id: 3adc1f92-e791-44a8-9aee-7f31c2108b78 - type: NETWORK_CONNECTION - amount: - amount: "4423" - assetId: USDC - schema: - $ref: "#/components/schemas/CreatePayoutRequest" responses: "200": - content: - application/json: - example: - payoutId: 1fe3b61f-7e1f-4a19-aff0-4f0a524d44d7 - paymentAccount: - id: EX_SUB2 - type: EXCHANGE_ACCOUNT - createdAt: 1645365800 - state: REQUESTED - status: REGISTERED - initMethod: API - instructionSet: - - id: 6ea4a016-536b-49af-b1a0-40b343ccf879 - name: payee-wallet-name - payeeAccount: - id: bef85a1c-b605-4b2e-bdb5-2d400f4d0bf3 - type: EXTERNAL_WALLET - amount: - amount: "43" - assetId: USDC - state: NOT_STARTED - transactions: [] - - id: e783a79b-6acc-4d18-885d-ed533cad8eeb - name: payee-by-network - payeeAccount: - id: 3adc1f92-e791-44a8-9aee-7f31c2108b78 - type: NETWORK_CONNECTION - amount: - amount: "4423.23" - assetId: USDC - state: NOT_STARTED - transactions: [] - schema: - $ref: "#/components/schemas/PayoutResponse" - description: The payout instruction set creation succeeded and returns the - generated instruction set with a unique payout IDThe payout ID will be - used for executing the payout and checking the payout status. - "400": - content: - application/json: - schema: - $ref: "#/components/schemas/ErrorResponse" - description: Bad request - "401": - content: - application/json: - schema: - $ref: "#/components/schemas/ErrorResponse" - description: Unauthorized. Missing / invalid JWT token in Authorization - header. - "5XX": content: application/json: schema: - $ref: "#/components/schemas/ErrorResponse" - description: Internal error. - summary: Create a payout instruction set + $ref: "#/components/schemas/ChainInfoResponseDto" + description: Chain specific info summary was returned successfully + summary: "" tags: - - Payments - Payout - x-rate-limit-category: write + - Staking (Beta) x-readme: code-samples: - language: typescript - code: "const response: Promise> = fireblocks.paymentsPayout.createPayout(paymentsPayoutApiCreatePayoutRequest);" + code: "const response: Promise>\ + \ = fireblocks.stakingBeta.getChainInfo(stakingBetaApiGetChainInfoRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response = fireblocks.paymentsPayout().createPayout(createPayoutRequest,\ - \ idempotencyKey);" + code: CompletableFuture> response = fireblocks.stakingBeta().getChainInfo(chainDescriptor); name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.payments_payout.create_payout(create_payout_request,\ - \ idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.paymentsPayout.createPayout(paymentsPayoutApiCreatePayoutRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.paymentsPayout().createPayout(createPayoutRequest,\ - \ idempotencyKey);" - - lang: Python - source: "response = fireblocks.payments_payout.create_payout(create_payout_request,\ - \ idempotency_key);" - x-content-type: application/json x-accepts: - application/json - /payments/payout/{payoutId}/actions/execute: + /staking/chains/{chainDescriptor}/{actionId}: post: - description: | - **Note:** The reference content in this section documents the Payments Engine endpoint. The Payments Engine endpoints include APIs available only for customers with Payments Engine enabled on their accounts.
-
These endpoints are currently in beta and might be subject to changes.
-
If you want to learn more about Fireblocks Payments Engine, please contact your Fireblocks Customer Success Manager or email CSM@fireblocks.com.
-
Execute a payout instruction set.
-
The instruction set will be verified and executed.
- Source locking
- If you are executing a payout instruction set from a payment account with an already active payout the active payout will complete before the new payout instruction set can be executed.
- You cannot execute the same payout instruction set more than once. - operationId: executePayoutAction + description: "Perform a chain-specific staking action (e.g. stake, unstake,\ + \ withdraw)." + operationId: executeAction parameters: - - description: the payout id received from the creation of the payout instruction - set - example: 1fe3b61f-7e1f-4a19-aff0-4f0a524d44d7 + - description: The protocol identifier (e.g. "ETH"/"SOL") to use explode: false in: path - name: payoutId + name: chainDescriptor + required: true + schema: + enum: + - ETH + - SOL + - ETH_TEST3 + - SOL_TEST + type: string + style: simple + - description: The operation that can be executed on a vault/position + explode: false + in: path + name: actionId required: true schema: + enum: + - stake + - unstake + - withdraw type: string style: simple - description: "A unique identifier for the request. If the request is sent\ @@ -10815,271 +8648,225 @@ paths: schema: type: string style: simple + requestBody: + content: + application/json: + examples: + stake: + value: + vaultAccountId: "22" + providerId: kiln + stakeAmount: "32" + chainDescriptor: ETH + txNote: stake request id CcaHc2L43ZWjwCHART3oZoJvHLAe9hzT2DJNUpBzoTN1 + of 32ETH created on 02.04.23 + feeLevel: MEDIUM + unstake: + value: + id: b70701f4-d7b1-4795-a8ee-b09cdb5b850b + txNote: "unstake request id b70701f4-d7b1-4795-a8ee-b09cdb5b850d\ + \ #ETH" + feeLevel: MEDIUM + withdraw: + value: + id: b70701f4-d7b1-4795-a8ee-b09cdb5b850c + txNote: "withdraw request id b70701f4-d7b1-4795-a8ee-b09cdb5b850d\ + \ #ETH" + feeLevel: MEDIUM + schema: + $ref: "#/components/schemas/ExecuteActionRequest" + required: true responses: - "200": - content: - application/json: - example: - payoutId: 1fe3b61f-7e1f-4a19-aff0-4f0a524d44d7 - schema: - $ref: "#/components/schemas/DispatchPayoutResponse" - description: Executed the payout instruction set - "400": - content: - application/json: - schema: - $ref: "#/components/schemas/ErrorResponse" - description: Bad request - "401": - content: - application/json: - schema: - $ref: "#/components/schemas/ErrorResponse" - description: Unauthorized. Missing / invalid JWT token in Authorization - header. - "5XX": + "201": content: application/json: + examples: + stake: + value: + id: afedfd2e4-e3c9-4b70-90d6-eb0f74bfd4sd8 + unstake: + value: {} + withdraw: + value: {} schema: - $ref: "#/components/schemas/ErrorResponse" - description: Internal error. - summary: Execute a payout instruction set + $ref: "#/components/schemas/ExecuteActionResponse" + description: A chain-specific action has been executed successfully on vault/position + and is associated with 201 status code. + summary: "" tags: - - Payments - Payout - x-rate-limit-category: write + - Staking (Beta) x-readme: code-samples: - language: typescript - code: "const response: Promise>\ - \ = fireblocks.paymentsPayout.executePayoutAction(paymentsPayoutApiExecutePayoutActionRequest);" + code: "const response: Promise>\ + \ = fireblocks.stakingBeta.executeAction(stakingBetaApiExecuteActionRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response =\ - \ fireblocks.paymentsPayout().executePayoutAction(payoutId, idempotencyKey);" + code: "CompletableFuture> response =\ + \ fireblocks.stakingBeta().executeAction(executeActionRequest, chainDescriptor,\ + \ actionId, idempotencyKey);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.payments_payout.execute_payout_action(payout_id,\ - \ idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.paymentsPayout.executePayoutAction(paymentsPayoutApiExecutePayoutActionRequest);" - - lang: Java - source: "CompletableFuture> response =\ - \ fireblocks.paymentsPayout().executePayoutAction(payoutId, idempotencyKey);" - - lang: Python - source: "response = fireblocks.payments_payout.execute_payout_action(payout_id,\ - \ idempotency_key);" + x-content-type: application/json x-accepts: - application/json - /payments/payout/{payoutId}: + /staking/positions: get: - description: | - **Note:** The reference content in this section documents the Payments Engine endpoint. The Payments Engine endpoints include APIs available only for customers with Payments Engine enabled on their accounts.
-
These endpoints are currently in beta and might be subject to changes.
-
If you want to learn more about Fireblocks Payments Engine, please contact your Fireblocks Customer Success Manager or email CSM@fireblocks.com.
- operationId: getPayout + description: "Return detailed information on all staking positions, including\ + \ the staked amount, rewards, status and more." + operationId: getAllDelegations parameters: - - description: the payout id received from the creation of the payout instruction - set - example: 1fe3b61f-7e1f-4a19-aff0-4f0a524d44d7 - explode: false - in: path - name: payoutId - required: true + - description: Use "ETH" / "SOL" in order to obtain information related to the + specific blockchain network or retrieve information about all chains that + have data available by providing no argument. + explode: true + in: query + name: chainDescriptor + required: false schema: type: string - style: simple + style: form responses: "200": - content: - application/json: - example: - payoutId: 1fe3b61f-7e1f-4a19-aff0-4f0a524d44d7 - paymentAccount: - id: EX_SUB3 - type: EXCHANGE_ACCOUNT - createdAt: 1645365800 - state: FINALIZED - status: DONE - initMethod: API - instructionSet: - - id: 6ea4a016-536b-49af-b1a0-40b343ccf879 - name: payee-wallet-name - payeeAccount: - id: bef85a1c-b605-4b2e-bdb5-2d400f4d0bf3 - type: EXTERNAL_WALLET - amount: - amount: "4312" - assetId: USDC - state: COMPLETED - transactions: - - id: 35a4b10c-1f83-4f0b-ba2a-da0e73be2d6e - state: COMPLETED - timestamp: 1645367429 - - id: e783a79b-6acc-4d18-885d-ed533cad8eeb - name: payee-by-network - payeeAccount: - id: 3adc1f92-e791-44a8-9aee-7f31c2108b78 - type: NETWORK_CONNECTION - amount: - amount: "4423.23" - assetId: USDC - state: COMPLETED - transactions: - - id: 4505e7d9-bfc7-41bc-9750-54311fcbbf26 - state: COMPLETED - timestamp: 1645367449 - reportUrl: https://some-url.com/reports/cc5777c1-75a9-4337-aebd-f1f5a40a9391 - schema: - $ref: "#/components/schemas/PayoutResponse" - description: "Returns the current status of the payout instruction set,\ - \ including the status of each payout instruction and the transactions\ - \ created in the process." - "401": - content: - application/json: - schema: - $ref: "#/components/schemas/ErrorResponse" - description: Unauthorized. Missing / invalid JWT token in Authorization - header. - "404": - content: - application/json: - schema: - $ref: "#/components/schemas/ErrorResponse" - description: No payout with the given payout ID exists. - "5XX": content: application/json: schema: - $ref: "#/components/schemas/ErrorResponse" - description: Internal error. - summary: Get the status of a payout instruction set + $ref: "#/components/schemas/StakingGetAllDelegationsResponse" + description: An array of position data was returned successfully + summary: "" tags: - - Payments - Payout - x-rate-limit-category: query + - Staking (Beta) x-readme: code-samples: - language: typescript - code: "const response: Promise> = fireblocks.paymentsPayout.getPayout(paymentsPayoutApiGetPayoutRequest);" + code: "const response: Promise>\ + \ = fireblocks.stakingBeta.getAllDelegations(stakingBetaApiGetAllDelegationsRequest);" name: Fireblocks SDK TypeScript example - language: java - code: CompletableFuture> response = fireblocks.paymentsPayout().getPayout(payoutId); + code: CompletableFuture>> response = fireblocks.stakingBeta().getAllDelegations(chainDescriptor); name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.payments_payout.get_payout(payout_id); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.paymentsPayout.getPayout(paymentsPayoutApiGetPayoutRequest);" - - lang: Java - source: CompletableFuture> response = fireblocks.paymentsPayout().getPayout(payoutId); - - lang: Python - source: response = fireblocks.payments_payout.get_payout(payout_id); x-accepts: - application/json - /payments/workflow_config: - post: - description: "Generate a new configuration ID to be used for initiating executions\ - \ in subsequent phases. This configuration should include the operations you\ - \ intend to incorporate into the workflow, such as TRANSFER, CONVERT, and\ - \ DISBURSE, in addition to your pre-screening preferences, which are disabled\ - \ by default." - operationId: createFlowConfiguration - parameters: - - description: "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." - explode: false - in: header - name: Idempotency-Key - required: false - schema: - type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/CreateWorkflowConfigurationRequest" + /staking/positions/summary: + get: + description: "Return a summary of all vaults, categorized by their status (active,\ + \ inactive), the total amounts staked and total rewards per-chain." + operationId: getSummary + parameters: [] responses: - "202": - content: - application/json: - schema: - $ref: "#/components/schemas/WorkflowConfiguration" - description: Configuration is being generated - "401": - content: - application/json: - schema: - $ref: "#/components/schemas/ErrorResponse" - description: Unauthorized. Missing / invalid JWT token in Authorization - header. - "404": + "200": content: application/json: + example: + active: + - chainDescriptor: ETH + amount: "64.036604667" + - chainDescriptor: SOL + amount: "0.077345939" + inactive: + - chainDescriptor: ETH + amount: "0" + - chainDescriptor: SOL + amount: "0" + rewardsAmount: + - chainDescriptor: ETH + amount: "0.036604667" + - chainDescriptor: SOL + amount: "0.001345939" + totalStaked: + - chainDescriptor: ETH + amount: "64.036604667" + - chainDescriptor: SOL + amount: "0.077345939" schema: - $ref: "#/components/schemas/ErrorResponse" - description: Not found - summary: Create payment flow configuration + $ref: "#/components/schemas/DelegationSummaryDto" + description: A summary for all vaults were returned successfully + summary: "" tags: - - Payments - Flows - x-internal: true - x-rate-limit-category: write - x-content-type: application/json + - Staking (Beta) + x-readme: + code-samples: + - language: typescript + code: "const response: Promise>\ + \ = fireblocks.stakingBeta.getSummary();" + name: Fireblocks SDK TypeScript example + - language: java + code: CompletableFuture> response = fireblocks.stakingBeta().getSummary(); + name: Fireblocks SDK Java example x-accepts: - application/json - /payments/workflow_config/{configId}: - delete: - description: Delete a configuration using the specified "configId". - operationId: deleteFlowConfiguration - parameters: - - explode: false - in: path - name: configId - required: true - schema: - type: string - style: simple + /staking/positions/summary/vaults: + get: + description: "Return a summary for each vault, categorized by their status (active,\ + \ inactive), the total amounts staked and total rewards per-chain." + operationId: getSummaryByVault + parameters: [] responses: "200": content: application/json: + example: + "0": + active: + - chainDescriptor: SOL + amount: "0.015202376" + inactive: + - chainDescriptor: SOL + amount: "0" + rewardsAmount: + - chainDescriptor: SOL + amount: "0.000202376" + totalStaked: + - chainDescriptor: SOL + amount: "0.015202376" + "1": + active: + - chainDescriptor: ETH + amount: "64.036604667" + - chainDescriptor: SOL + amount: "0.011191566" + inactive: + - chainDescriptor: ETH + amount: "0" + - chainDescriptor: SOL + amount: "0" + rewardsAmount: + - chainDescriptor: ETH + amount: "0.036604667" + - chainDescriptor: SOL + amount: "0.000191566" + totalStaked: + - chainDescriptor: ETH + amount: "64.036604667" + - chainDescriptor: SOL + amount: "0.011191566" schema: - $ref: "#/components/schemas/WorkflowConfigurationId" - description: The specified configuration has been deleted successfully. - "401": - content: - application/json: - schema: - $ref: "#/components/schemas/ErrorResponse" - description: Unauthorized. Missing / invalid JWT token in Authorization - header. - "404": - content: - application/json: - schema: - $ref: "#/components/schemas/ErrorResponse" - description: Not found - summary: Delete workflow configuration + $ref: "#/components/schemas/StakingGetSummaryByVaultResponse" + description: A summary for each vault were returned successfully + summary: "" tags: - - Payments - Flows - x-internal: true - x-rate-limit-category: write + - Staking (Beta) + x-readme: + code-samples: + - language: typescript + code: "const response: Promise>\ + \ = fireblocks.stakingBeta.getSummaryByVault();" + name: Fireblocks SDK TypeScript example + - language: java + code: CompletableFuture> response + = fireblocks.stakingBeta().getSummaryByVault(); + name: Fireblocks SDK Java example x-accepts: - application/json + /staking/positions/{id}: get: - description: Retrieve a previously created workflow configuration using the - specified "configId". - operationId: getFlowConfiguration + description: "Return detailed information on a staking position, including the\ + \ staked amount, rewards, status and more." + operationId: getDelegationById parameters: - - explode: false + - description: The unique identifier of the staking position + explode: false in: path - name: configId + name: id required: true schema: type: string @@ -11089,40 +8876,65 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/WorkflowConfiguration" - description: Returns a workflow configuration - "401": - content: - application/json: - schema: - $ref: "#/components/schemas/ErrorResponse" - description: Unauthorized. Missing / invalid JWT token in Authorization - header. - "404": + $ref: "#/components/schemas/DelegationDto" + description: Position data was returned successfully + summary: "" + tags: + - Staking (Beta) + x-readme: + code-samples: + - language: typescript + code: "const response: Promise> = fireblocks.stakingBeta.getDelegationById(stakingBetaApiGetDelegationByIdRequest);" + name: Fireblocks SDK TypeScript example + - language: java + code: CompletableFuture> response = fireblocks.stakingBeta().getDelegationById(id); + name: Fireblocks SDK Java example + x-accepts: + - application/json + /staking/providers: + get: + description: Return information on all the available staking providers. + operationId: getProviders + parameters: [] + responses: + "200": content: application/json: schema: - $ref: "#/components/schemas/ErrorResponse" - description: Not found - summary: Retrieve workflow configuration + $ref: "#/components/schemas/StakingGetProvidersResponse" + description: An array of supported providers was returned successfully + summary: "" tags: - - Payments - Flows - x-internal: true - x-rate-limit-category: read + - Staking (Beta) + x-readme: + code-samples: + - language: typescript + code: "const response: Promise>\ + \ = fireblocks.stakingBeta.getProviders();" + name: Fireblocks SDK TypeScript example + - language: java + code: CompletableFuture>> response = fireblocks.stakingBeta().getProviders(); + name: Fireblocks SDK Java example x-accepts: - application/json - /payments/workflow_execution: + /staking/providers/{providerId}/approveTermsOfService: post: - description: "Validate the \"workflow-config\" previously created by utilizing\ - \ the unique \"configId\". This step requires the mandatory field amount,\ - \ and allows for modifications to other fields defined via the \"workflow-config\"\ - \ endpoint, including pre-screening preferences. A response containing the\ - \ \"workflowExecutionId\" and detailing the validation status will be provided.\ - \ Execution is ready when the \"workflow-execution\" status is READY_FOR_LAUNCH,\ - \ at which point it can be initiated with \"POST /workflow-execution/{workflowExecutionId}/actions/execute\"\ - ." - operationId: createFlowExecution + description: |- + Approve the terms of service of the staking provider. + This must be called before performing a staking action for the first time with this provider. + operationId: approveTermsOfServiceByProviderId parameters: + - description: The unique identifier of the staking provider + explode: false + in: path + name: providerId + required: true + schema: + enum: + - kiln + - figment + type: string + style: simple - description: "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\ @@ -11134,247 +8946,33 @@ paths: schema: type: string style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/CreateWorkflowExecutionRequest" responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/WorkflowExecution" - description: Workflow execution entity has been created successfully. - "401": - content: - application/json: - schema: - $ref: "#/components/schemas/ErrorResponse" - description: Unauthorized. Missing / invalid JWT token in Authorization - header. - "404": + "201": content: application/json: schema: - $ref: "#/components/schemas/ErrorResponse" - description: Not found - summary: Create workflow execution - tags: - - Payments - Flows - x-internal: true - x-rate-limit-category: write - x-content-type: application/json - x-accepts: - - application/json - /payments/workflow_execution/{workflowExecutionId}: - get: - description: Retrieve details of a previously initiated workflow execution by - specifying the "workflowExecutionId" - operationId: getFlowExecution - parameters: - - explode: false - in: path - name: workflowExecutionId - required: true - schema: - type: string - style: simple - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/WorkflowExecution" - description: Returns workflow execution by id with preview info - "401": - content: - application/json: - schema: - $ref: "#/components/schemas/ErrorResponse" - description: Unauthorized. Missing / invalid JWT token in Authorization - header. - "404": - content: - application/json: - schema: - $ref: "#/components/schemas/ErrorResponse" - description: Not found - summary: Get workflow execution details - tags: - - Payments - Flows - x-internal: true - x-rate-limit-category: read - x-accepts: - - application/json - /payments/workflow_execution/{workflowExecutionId}/actions/execute: - post: - description: "Launch the execution of a pre-configured workflow, identified\ - \ by \"workflowExecutionId\", once it reaches the READY_FOR_LAUNCH state.\ - \ The workflow undergoes several phases during execution - EXECUTION_IN_PROGRESS\ - \ - Marks the start of the workflow execution. EXECUTION_COMPLETED or EXECUTION_FAILED\ - \ - Indicates the execution has reached a final state." - operationId: launchFlowExecution - parameters: - - explode: false - in: path - name: workflowExecutionId - required: true - schema: - type: string - style: simple - - description: "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." - explode: false - in: header - name: Idempotency-Key - required: false - schema: - type: string - style: simple - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/WorkflowExecution" - description: Workflow execution has been executed - "401": - content: - application/json: - schema: - $ref: "#/components/schemas/ErrorResponse" - description: Unauthorized. Missing / invalid JWT token in Authorization - header. - "404": - content: - application/json: - schema: - $ref: "#/components/schemas/ErrorResponse" - description: Not found - summary: Execute the payments workflow - tags: - - Payments - Flows - x-internal: true - x-rate-limit-category: write - x-accepts: - - application/json - /gas_station: - get: - description: Returns gas station settings and ETH balance. - operationId: getGasStationInfo - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/GasStationPropertiesResponse" - description: Gas Station properties - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: Get gas station settings - tags: - - Gas stations - x-rate-limit-category: query - x-readme: - code-samples: - - language: python - code: gas_station_info = fireblocks.get_gas_station_info() - name: Fireblocks SDK Python example (Legacy) - - language: javascript - code: const gasStationInfo = await fireblocks.gasStationInfo(); - name: Fireblocks SDK Javascript example - - language: typescript - code: "const response: Promise>\ - \ = fireblocks.gasStations.getGasStationInfo();" - name: Fireblocks SDK TypeScript example - - language: java - code: CompletableFuture> response - = fireblocks.gasStations().getGasStationInfo(); - name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.gas_stations.get_gas_station_info(); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.gasStations.getGasStationInfo();" - - lang: Java - source: CompletableFuture> response - = fireblocks.gasStations().getGasStationInfo(); - - lang: Python - source: response = fireblocks.gas_stations.get_gas_station_info(); - x-accepts: - - application/json - /gas_station/{assetId}: - get: - description: Returns gas station settings and balances for a requested asset. - operationId: getGasStationByAssetId - parameters: - - description: The ID of the asset - explode: false - in: path - name: assetId - required: true - schema: - type: string - x-fb-entity: asset - style: simple - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/GasStationPropertiesResponse" - description: Gas Station properties - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: Get gas station settings by asset + $ref: "#/components/schemas/ProvidersResponseDto" + description: The terms of service have been successfully approved and is + associated with 201 status code. + summary: "" tags: - - Gas stations - x-rate-limit-category: query + - Staking (Beta) x-readme: code-samples: - - language: python - code: gas_station_info = fireblocks.get_gas_station_info(asset_id) - name: Fireblocks SDK Python example (Legacy) - - language: javascript - code: const gasStationInfo = await fireblocks.gasStationInfo(assetId); - name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise>\ - \ = fireblocks.gasStations.getGasStationByAssetId(gasStationsApiGetGasStationByAssetIdRequest);" + code: "const response: Promise>\ + \ = fireblocks.stakingBeta.approveTermsOfServiceByProviderId(stakingBetaApiApproveTermsOfServiceByProviderIdRequest);" name: Fireblocks SDK TypeScript example - language: java - code: CompletableFuture> response - = fireblocks.gasStations().getGasStationByAssetId(assetId); + code: "CompletableFuture> response = fireblocks.stakingBeta().approveTermsOfServiceByProviderId(providerId,\ + \ idempotencyKey);" name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.gas_stations.get_gas_station_by_asset_id(asset_id); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.gasStations.getGasStationByAssetId(gasStationsApiGetGasStationByAssetIdRequest);" - - lang: Java - source: CompletableFuture> response - = fireblocks.gasStations().getGasStationByAssetId(assetId); - - lang: Python - source: response = fireblocks.gas_stations.get_gas_station_by_asset_id(asset_id); x-accepts: - application/json - /gas_station/configuration: + /admin_quorum: put: - description: Configures gas station settings for ETH. - operationId: updateGasStationConfiguration + description: Update admin quorum threshold + operationId: setAdminQuorumThreshold parameters: - description: "A unique identifier for the request. If the request is sent\ \ multiple times with the same idempotency key, the server will return the\ @@ -11391,320 +8989,546 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GasStationConfiguration" + $ref: "#/components/schemas/SetAdminQuorumThresholdRequest" required: true responses: - "201": + "202": content: application/json: schema: - $ref: "#/components/schemas/EditGasStationConfigurationResponse" + $ref: "#/components/schemas/SetAdminQuorumThresholdResponse" description: OK headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: Edit gas station settings + summary: Update admin quorum threshold tags: - - Gas stations - x-rate-limit-category: write + - Admin Quorum + x-internal: true x-readme: code-samples: - language: python - code: "gas_station = fireblocks.set_gas_station_configuration(gas_threshold,\ - \ gas_cap, max_gas_price, asset_id)" - name: Fireblocks SDK Python example (Legacy) + code: result = fireblocks.set_admin_quorum_threshold(adminQuorumThreshold) + name: Fireblocks SDK Python example - language: javascript - code: "const gasStation = await fireblocks.setGasStationConfiguration(gasThreshold,\ - \ gasCap, maxGasPrice)" + code: const result = await fireblocks.setAdminQuorumThreshold(adminQuorumThreshold) name: Fireblocks SDK Javascript example - - language: typescript - code: "const response: Promise>\ - \ = fireblocks.gasStations.updateGasStationConfiguration(gasStationsApiUpdateGasStationConfigurationRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: "CompletableFuture>\ - \ response = fireblocks.gasStations().updateGasStationConfiguration(gasStationConfiguration,\ - \ idempotencyKey);" - name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.gas_stations.update_gas_station_configuration(gas_station_configuration,\ - \ idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.gasStations.updateGasStationConfiguration(gasStationsApiUpdateGasStationConfigurationRequest);" - - lang: Java - source: "CompletableFuture>\ - \ response = fireblocks.gasStations().updateGasStationConfiguration(gasStationConfiguration,\ - \ idempotencyKey);" - - lang: Python - source: "response = fireblocks.gas_stations.update_gas_station_configuration(gas_station_configuration,\ - \ idempotency_key);" x-content-type: application/json x-accepts: - application/json - /gas_station/configuration/{assetId}: - put: - description: Configures gas station settings for a requested asset. - operationId: updateGasStationConfigurationByAssetId + /nfts/ownership/tokens: + get: + description: | + Returns all tokens and their data in your workspace. + operationId: getOwnershipTokens parameters: - - description: The ID of the asset - explode: false - in: path - name: assetId - required: true - schema: - type: string - x-fb-entity: asset - style: simple - - description: "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." - explode: false - in: header - name: Idempotency-Key + - description: Blockchain descriptor filter + explode: true + in: query + name: blockchainDescriptor required: false schema: + enum: + - ETH + - ETH_TEST3 + - ETH_TEST5 + - ETH_TEST6 + - POLYGON + - POLYGON_TEST_MUMBAI + - AMOY_POLYGON_TEST + - XTZ + - XTZ_TEST + - BASECHAIN_ETH type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/GasStationConfiguration" - required: true + style: form + - description: A comma separated list of Vault Account IDs. Up to 100 are allowed + in a single request. This field will be ignored when walletType=END_USER_WALLET + or ncwId is provided. + explode: true + in: query + name: vaultAccountIds + required: false + schema: + type: string + style: form + - description: Tenant's Non-Custodial Wallet ID + explode: true + in: query + name: ncwId + required: false + schema: + type: string + style: form + - description: A comma separated list of Non-Custodial account IDs. Up to 100 + are allowed in a single request. This field will be ignored when walletType=VAULT_ACCOUNT + or ncwId is not provided. + explode: true + in: query + name: ncwAccountIds + required: false + schema: + type: string + style: form + - description: "Wallet type, it can be `VAULT_ACCOUNT` or `END_USER_WALLET`" + explode: true + in: query + name: walletType + required: false + schema: + default: VAULT_ACCOUNT + enum: + - VAULT_ACCOUNT + - END_USER_WALLET + type: string + style: form + - description: A comma separated list of NFT IDs. Up to 100 are allowed in a + single request. + explode: true + in: query + name: ids + required: false + schema: + type: string + style: form + - description: A comma separated list of collection IDs. Up to 100 are allowed + in a single request. + explode: true + in: query + name: collectionIds + required: false + schema: + type: string + style: form + - description: Page cursor to fetch + explode: true + in: query + name: pageCursor + required: false + schema: + type: string + style: form + - description: Items per page (max 100) + explode: true + in: query + name: pageSize + required: false + schema: + maximum: 100 + minimum: 1 + type: number + style: form + - description: "Sort by param, it can be one param or a list of params separated\ + \ by comma" + explode: true + in: query + name: sort + required: false + schema: + items: + enum: + - ownershipLastUpdateTime + - name + - collection.name + - blockchainDescriptor + type: string + type: array + style: form + - description: "Order direction, it can be `ASC` for ascending or `DESC` for\ + \ descending" + explode: true + in: query + name: order + required: false + schema: + default: ASC + enum: + - DESC + - ASC + type: string + style: form + - description: Token ownership status + explode: true + in: query + name: status + required: false + schema: + default: LISTED + enum: + - LISTED + - ARCHIVED + type: string + style: form + - description: "Search owned tokens and their collections. Possible criteria\ + \ for search: token name and id within the contract/collection, collection\ + \ name, blockchain descriptor and name." + explode: true + in: query + name: search + required: false + schema: + maximum: 100 + type: string + style: form + - description: Token ownership spam status. + explode: true + in: query + name: spam + required: false + schema: + enum: + - "true" + - "false" + - all + type: string + style: form responses: - "201": + "200": content: application/json: schema: - $ref: "#/components/schemas/EditGasStationConfigurationResponse" - description: OK + $ref: "#/components/schemas/GetOwnershipTokensResponse" + description: "" headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: Edit gas station settings for an asset + summary: List all owned tokens (paginated) tags: - - Gas stations - x-rate-limit-category: write + - NFTs x-readme: code-samples: - language: typescript - code: "const response: Promise>\ - \ = fireblocks.gasStations.updateGasStationConfigurationByAssetId(gasStationsApiUpdateGasStationConfigurationByAssetIdRequest);" + code: "const response: Promise>\ + \ = fireblocks.nFTs.getOwnershipTokens(nFTsApiGetOwnershipTokensRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture>\ - \ response = fireblocks.gasStations().updateGasStationConfigurationByAssetId(gasStationConfiguration,\ - \ assetId, idempotencyKey);" + code: "CompletableFuture> response\ + \ = fireblocks.nFTs().getOwnershipTokens(blockchainDescriptor, vaultAccountIds,\ + \ ncwId, ncwAccountIds, walletType, ids, collectionIds, pageCursor, pageSize,\ + \ sort, order, status, search, spam);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.gas_stations.update_gas_station_configuration_by_asset_id(gas_station_configuration,\ - \ asset_id, idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.gasStations.updateGasStationConfigurationByAssetId(gasStationsApiUpdateGasStationConfigurationByAssetIdRequest);" - - lang: Java - source: "CompletableFuture>\ - \ response = fireblocks.gasStations().updateGasStationConfigurationByAssetId(gasStationConfiguration,\ - \ assetId, idempotencyKey);" - - lang: Python - source: "response = fireblocks.gas_stations.update_gas_station_configuration_by_asset_id(gas_station_configuration,\ - \ asset_id, idempotency_key);" - x-content-type: application/json x-accepts: - application/json - /management/user_groups: - get: + put: description: | - Get all user groups in your workspace.
- - **Note**: - - This endpoint is now in Beta, disabled for general availability at this time. - - Please note that this endpoint is available only for API keys with Admin permissions. - operationId: getUserGroups + Updates all tokens and balances per blockchain and vault account. + operationId: updateOwnershipTokens + parameters: + - description: Blockchain descriptor filter + explode: true + in: query + name: blockchainDescriptor + required: true + schema: + enum: + - ETH + - ETH_TEST3 + - ETH_TEST5 + - ETH_TEST6 + - POLYGON + - POLYGON_TEST_MUMBAI + - AMOY_POLYGON_TEST + - BASECHAIN_ETH + type: string + style: form + - description: Vault account filter + explode: true + in: query + name: vaultAccountId + required: true + schema: + type: string + style: form + - description: "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." + explode: false + in: header + name: Idempotency-Key + required: false + schema: + type: string + style: simple responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/UserGroupsResponse" - description: List of the user groups in your workspace + "202": + description: "" headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: List user groups + summary: Refresh vault account tokens tags: - - User groups (Beta) - x-rate-limit-category: query + - NFTs x-readme: code-samples: - language: typescript - code: "const response: Promise> =\ - \ fireblocks.userGroupsBeta.getUserGroups();" + code: "const response: Promise> = fireblocks.nFTs.updateOwnershipTokens(nFTsApiUpdateOwnershipTokensRequest);" name: Fireblocks SDK TypeScript example - language: java - code: CompletableFuture>> response = - fireblocks.userGroupsBeta().getUserGroups(); + code: "CompletableFuture> response = fireblocks.nFTs().updateOwnershipTokens(blockchainDescriptor,\ + \ vaultAccountId, idempotencyKey);" name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.user_groups_beta.get_user_groups(); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> =\ - \ fireblocks.userGroupsBeta.getUserGroups();" - - lang: Java - source: CompletableFuture>> response = - fireblocks.userGroupsBeta().getUserGroups(); - - lang: Python - source: response = fireblocks.user_groups_beta.get_user_groups(); x-accepts: - application/json - post: + /nfts/ownership/assets: + get: description: | - Create a new user group.
- - **Note**: - - This endpoint is now in Beta, disabled for general availability at this time. - - Please note that this endpoint is available only for API keys with Admin permissions. - operationId: createUserGroup + Returns all owned distinct tokens (for your tenant) and their data in your workspace. + operationId: listOwnedTokens parameters: - - description: "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." - explode: false - in: header - name: Idempotency-Key + - description: Tenant's Non-Custodial Wallet ID + explode: true + in: query + name: ncwId required: false schema: type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/UserGroupCreateRequest" - required: true + style: form + - description: "Wallet type, it can be `VAULT_ACCOUNT` or `END_USER_WALLET`" + explode: true + in: query + name: walletType + required: false + schema: + default: VAULT_ACCOUNT + enum: + - VAULT_ACCOUNT + - END_USER_WALLET + type: string + style: form + - description: Page cursor to fetch + explode: true + in: query + name: pageCursor + required: false + schema: + type: string + style: form + - description: Items per page (max 100) + explode: true + in: query + name: pageSize + required: false + schema: + maximum: 100 + minimum: 1 + type: number + style: form + - description: "Sort by param, it can be one param or a list of params separated\ + \ by comma" + explode: true + in: query + name: sort + required: false + schema: + items: + enum: + - name + type: string + type: array + style: form + - description: "Order direction, it can be `ASC` for ascending or `DESC` for\ + \ descending" + explode: true + in: query + name: order + required: false + schema: + default: ASC + enum: + - DESC + - ASC + type: string + style: form + - description: Token ownership status + explode: true + in: query + name: status + required: false + schema: + default: LISTED + enum: + - LISTED + - ARCHIVED + type: string + style: form + - description: Search owned tokens by token name + explode: true + in: query + name: search + required: false + schema: + maximum: 100 + type: string + style: form + - description: Token ownership spam status. + explode: true + in: query + name: spam + required: false + schema: + enum: + - "true" + - "false" + - all + type: string + style: form responses: - "201": + "200": content: application/json: schema: - $ref: "#/components/schemas/CreateUserGroupResponse" - description: User group created and pending approval + $ref: "#/components/schemas/ListOwnedTokensResponse" + description: "" headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: Create user group + summary: List all distinct owned tokens (paginated) tags: - - User groups (Beta) - x-rate-limit-category: write + - NFTs x-readme: code-samples: - language: typescript - code: "const response: Promise>\ - \ = fireblocks.userGroupsBeta.createUserGroup(userGroupsBetaApiCreateUserGroupRequest);" + code: "const response: Promise>\ + \ = fireblocks.nFTs.listOwnedTokens(nFTsApiListOwnedTokensRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response\ - \ = fireblocks.userGroupsBeta().createUserGroup(userGroupCreateRequest,\ - \ idempotencyKey);" + code: "CompletableFuture> response\ + \ = fireblocks.nFTs().listOwnedTokens(ncwId, walletType, pageCursor, pageSize,\ + \ sort, order, status, search, spam);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.user_groups_beta.create_user_group(user_group_create_request,\ - \ idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.userGroupsBeta.createUserGroup(userGroupsBetaApiCreateUserGroupRequest);" - - lang: Java - source: "CompletableFuture> response\ - \ = fireblocks.userGroupsBeta().createUserGroup(userGroupCreateRequest,\ - \ idempotencyKey);" - - lang: Python - source: "response = fireblocks.user_groups_beta.create_user_group(user_group_create_request,\ - \ idempotency_key);" - x-content-type: application/json x-accepts: - application/json - /management/user_groups/{groupId}: - delete: + /nfts/ownership/collections: + get: description: | - Delete a user group by ID.
- - **Note**: - - This endpoint is now in Beta, disabled for general availability at this time. - - Please note that this endpoint is available only for API keys with Admin permissions. - operationId: deleteUserGroup + Returns all collections in your workspace + operationId: listOwnedCollections parameters: - - description: The ID of the user group - explode: false - in: path - name: groupId - required: true + - description: Tenant's Non-Custodial Wallet ID + explode: true + in: query + name: ncwId + required: false schema: type: string - style: simple + style: form + - description: "Wallet type, it can be `VAULT_ACCOUNT` or `END_USER_WALLET`" + explode: true + in: query + name: walletType + required: false + schema: + default: VAULT_ACCOUNT + enum: + - VAULT_ACCOUNT + - END_USER_WALLET + type: string + style: form + - description: "Search owned collections. Possible criteria for search: collection\ + \ name, collection contract address." + explode: true + in: query + name: search + required: false + schema: + maximum: 100 + type: string + style: form + - description: Page cursor to fetch + explode: true + in: query + name: pageCursor + required: false + schema: + type: string + style: form + - description: Items per page (max 100) + explode: true + in: query + name: pageSize + required: false + schema: + maximum: 100 + minimum: 1 + type: number + style: form + - description: "Sort by param, it can be one param or a list of params separated\ + \ by comma" + explode: true + in: query + name: sort + required: false + schema: + items: + enum: + - name + type: string + type: array + style: form + - description: "Order direction, it can be `ASC` for ascending or `DESC` for\ + \ descending" + explode: true + in: query + name: order + required: false + schema: + default: ASC + enum: + - DESC + - ASC + type: string + style: form + - description: Token ownership status + explode: true + in: query + name: status + required: false + schema: + default: LISTED + enum: + - LISTED + - ARCHIVED + type: string + style: form responses: - "204": - description: Request to delete user group submitted for approval + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ListOwnedCollectionsResponse" + description: "" headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: Delete user group + summary: List owned collections (paginated) tags: - - User groups (Beta) - x-rate-limit-category: write + - NFTs x-readme: code-samples: - language: typescript - code: "const response: Promise> = fireblocks.userGroupsBeta.deleteUserGroup(userGroupsBetaApiDeleteUserGroupRequest);" + code: "const response: Promise>\ + \ = fireblocks.nFTs.listOwnedCollections(nFTsApiListOwnedCollectionsRequest);" name: Fireblocks SDK TypeScript example - language: java - code: CompletableFuture> response = fireblocks.userGroupsBeta().deleteUserGroup(groupId); + code: "CompletableFuture> response\ + \ = fireblocks.nFTs().listOwnedCollections(ncwId, walletType, search,\ + \ pageCursor, pageSize, sort, order, status);" name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.user_groups_beta.delete_user_group(group_id); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.userGroupsBeta.deleteUserGroup(userGroupsBetaApiDeleteUserGroupRequest);" - - lang: Java - source: CompletableFuture> response = fireblocks.userGroupsBeta().deleteUserGroup(groupId); - - lang: Python - source: response = fireblocks.user_groups_beta.delete_user_group(group_id); x-accepts: - application/json + /nfts/tokens/{id}: get: description: | - Get a user group by ID.
- - **Note**: - - This endpoint is now in Beta, disabled for general availability at this time. - - Please note that this endpoint is available only for API keys with Admin permissions. - operationId: getUserGroup + Returns the requested token data. + operationId: getNFT parameters: - - description: The ID of the user group + - description: NFT ID + example: NFT-abcdefabcdefabcdefabcdefabcdefabcdefabcd explode: false in: path - name: groupId + name: id required: true schema: type: string @@ -11714,52 +9538,34 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/UserGroupResponse" - description: User group + $ref: "#/components/schemas/TokenResponse" + description: "" headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: Get user group + summary: List token data by ID tags: - - User groups (Beta) - x-rate-limit-category: read + - NFTs x-readme: code-samples: - language: typescript - code: "const response: Promise> =\ - \ fireblocks.userGroupsBeta.getUserGroup(userGroupsBetaApiGetUserGroupRequest);" + code: "const response: Promise> = fireblocks.nFTs.getNFT(nFTsApiGetNFTRequest);" name: Fireblocks SDK TypeScript example - language: java - code: CompletableFuture> response = fireblocks.userGroupsBeta().getUserGroup(groupId); + code: CompletableFuture> response = fireblocks.nFTs().getNFT(id); name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.user_groups_beta.get_user_group(group_id); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> =\ - \ fireblocks.userGroupsBeta.getUserGroup(userGroupsBetaApiGetUserGroupRequest);" - - lang: Java - source: CompletableFuture> response = fireblocks.userGroupsBeta().getUserGroup(groupId); - - lang: Python - source: response = fireblocks.user_groups_beta.get_user_group(group_id); x-accepts: - application/json put: description: | - Update a user group by ID.
- - **Note**: - - This endpoint is now in Beta, disabled for general availability at this time. - - Please note that this endpoint is available only for API keys with Admin permissions. - operationId: updateUserGroup + Updates the latest token metadata. + operationId: refreshNFTMetadata parameters: - - description: The ID of the user group + - description: NFT ID + example: NFT-abcdefabcdefabcdefabcdefabcdefabcdefabcd explode: false in: path - name: groupId + name: id required: true schema: type: string @@ -11775,128 +9581,85 @@ paths: schema: type: string style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/UserGroupUpdateRequest" - required: true responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/UserGroupCreateResponse" - description: User group updated and the changes are pending approval + "202": + description: "" headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: Update user group + summary: Refresh token metadata tags: - - User groups (Beta) - x-rate-limit-category: write + - NFTs x-readme: code-samples: - language: typescript - code: "const response: Promise>\ - \ = fireblocks.userGroupsBeta.updateUserGroup(userGroupsBetaApiUpdateUserGroupRequest);" + code: "const response: Promise> = fireblocks.nFTs.refreshNFTMetadata(nFTsApiRefreshNFTMetadataRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response\ - \ = fireblocks.userGroupsBeta().updateUserGroup(userGroupUpdateRequest,\ - \ groupId, idempotencyKey);" + code: "CompletableFuture> response = fireblocks.nFTs().refreshNFTMetadata(id,\ + \ idempotencyKey);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.user_groups_beta.update_user_group(user_group_update_request,\ - \ group_id, idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.userGroupsBeta.updateUserGroup(userGroupsBetaApiUpdateUserGroupRequest);" - - lang: Java - source: "CompletableFuture> response\ - \ = fireblocks.userGroupsBeta().updateUserGroup(userGroupUpdateRequest,\ - \ groupId, idempotencyKey);" - - lang: Python - source: "response = fireblocks.user_groups_beta.update_user_group(user_group_update_request,\ - \ group_id, idempotency_key);" - x-content-type: application/json x-accepts: - application/json - /users: + /nfts/tokens: get: description: | - List all users for the workspace. - - Please note that this endpoint is available only for API keys with Admin permissions. - operationId: getUsers - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/GetUsersResponse" - description: List of users - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: List users - tags: - - Users - x-rate-limit-category: query - x-readme: - code-samples: - - language: python - code: users = fireblocks.get_users() - name: Fireblocks SDK Python example (Legacy) - - language: javascript - code: const users = await fireblocks.getUsers(); - name: Fireblocks SDK Javascript example - - language: typescript - code: "const response: Promise> = fireblocks.users.getUsers();" - name: Fireblocks SDK TypeScript example - - language: java - code: CompletableFuture>> response = fireblocks.users().getUsers(); - name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.users.get_users(); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.users.getUsers();" - - lang: Java - source: CompletableFuture>> response = fireblocks.users().getUsers(); - - lang: Python - source: response = fireblocks.users.get_users(); - x-accepts: - - application/json - /management/audit_logs: - get: - description: Get all audits - operationId: getAuditLogs + Returns the requested tokens data. + operationId: getNFTs parameters: - - description: The last time period to fetch audit logs + - description: A comma separated list of NFT IDs. Up to 100 are allowed in a + single request. explode: true in: query - name: timePeriod + name: ids + required: true + schema: + type: string + style: form + - description: Page cursor to fetch + explode: true + in: query + name: pageCursor required: false schema: - enum: - - DAY - - WEEK type: string style: form - - description: The next id to start fetch audit logs from + - description: Items per page (max 100) explode: true in: query - name: cursor + name: pageSize + required: false + schema: + maximum: 100 + minimum: 1 + type: number + style: form + - description: "Sort by param, it can be one param or a list of params separated\ + \ by comma" + explode: true + in: query + name: sort + required: false + schema: + items: + enum: + - collection.name + - name + - blockchainDescriptor + type: string + type: array + style: form + - description: "Order direction, it can be `ASC` for ascending or `DESC` for\ + \ descending" + explode: true + in: query + name: order required: false schema: + default: ASC + enum: + - DESC + - ASC type: string style: form responses: @@ -11904,46 +9667,40 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetAuditLogsResponse" - description: Audit logs from requested time period + $ref: "#/components/schemas/GetNFTsResponse" + description: "" headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: Get audit logs + summary: List tokens by IDs tags: - - Audit Logs - x-rate-limit-category: query + - NFTs x-readme: code-samples: - language: typescript - code: "const response: Promise>\ - \ = fireblocks.auditLogs.getAuditLogs(auditLogsApiGetAuditLogsRequest);" + code: "const response: Promise> = fireblocks.nFTs.getNFTs(nFTsApiGetNFTsRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response = fireblocks.auditLogs().getAuditLogs(timePeriod,\ - \ cursor);" + code: "CompletableFuture> response = fireblocks.nFTs().getNFTs(ids,\ + \ pageCursor, pageSize, sort, order);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.audit_logs.get_audit_logs(time_period, cursor);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.auditLogs.getAuditLogs(auditLogsApiGetAuditLogsRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.auditLogs().getAuditLogs(timePeriod,\ - \ cursor);" - - lang: Python - source: "response = fireblocks.audit_logs.get_audit_logs(time_period, cursor);" x-accepts: - application/json - /off_exchange/add: - post: - description: "add collateral, create deposit request" - operationId: addOffExchange + /nfts/ownership/tokens/{id}/status: + put: + description: | + Updates token status for a tenant, in all tenant vaults. + operationId: updateTokenOwnershipStatus parameters: + - description: NFT ID + example: NFT-abcdefabcdefabcdefabcdefabcdefabcdefabcd + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple - description: "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\ @@ -11959,52 +9716,33 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/AddCollateralRequestBody" + $ref: "#/components/schemas/UpdateTokenOwnershipStatusDto" + required: true responses: "200": - content: - application/json: - schema: - $ref: "#/components/schemas/CreateTransactionResponse" - description: A transaction object - default: - $ref: "#/components/responses/Error" - summary: add collateral + description: "" + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" + summary: Update token ownership status tags: - - Off exchanges - x-rate-limit-category: write + - NFTs x-readme: code-samples: - language: typescript - code: "const response: Promise>\ - \ = fireblocks.offExchanges.addOffExchange(offExchangesApiAddOffExchangeRequest);" + code: "const response: Promise> = fireblocks.nFTs.updateTokenOwnershipStatus(nFTsApiUpdateTokenOwnershipStatusRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response\ - \ = fireblocks.offExchanges().addOffExchange(addCollateralRequestBody,\ - \ idempotencyKey);" + code: "CompletableFuture> response = fireblocks.nFTs().updateTokenOwnershipStatus(updateTokenOwnershipStatusDto,\ + \ id, idempotencyKey);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.off_exchanges.add_off_exchange(add_collateral_request_body,\ - \ idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.offExchanges.addOffExchange(offExchangesApiAddOffExchangeRequest);" - - lang: Java - source: "CompletableFuture> response\ - \ = fireblocks.offExchanges().addOffExchange(addCollateralRequestBody, idempotencyKey);" - - lang: Python - source: "response = fireblocks.off_exchanges.add_off_exchange(add_collateral_request_body,\ - \ idempotency_key);" x-content-type: application/json x-accepts: - application/json - /off_exchange/remove: - post: - description: "remove collateral, create withdraw request" - operationId: removeOffExchange + /nfts/ownership/tokens/status: + put: + description: "Updates tokens status for a tenant, in all tenant vaults." + operationId: updateTokensOwnershipStatus parameters: - description: "A unique identifier for the request. If the request is sent\ \ multiple times with the same idempotency key, the server will return the\ @@ -12021,53 +9759,44 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/RemoveCollateralRequestBody" + $ref: "#/components/schemas/UpdateTokensOwnershipStatusRequest" + required: true responses: "200": - content: - application/json: - schema: - $ref: "#/components/schemas/CreateTransactionResponse" - description: A transaction object - default: - $ref: "#/components/responses/Error" - summary: remove collateral - tags: - - Off exchanges - x-rate-limit-category: write + description: All token statuses have been updated + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" + "400": + description: Invalid data sent + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" + "404": + description: When ownership for token ID is not found + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" + summary: Update tokens ownership status + tags: + - NFTs x-readme: code-samples: - language: typescript - code: "const response: Promise>\ - \ = fireblocks.offExchanges.removeOffExchange(offExchangesApiRemoveOffExchangeRequest);" + code: "const response: Promise> = fireblocks.nFTs.updateTokensOwnershipStatus(nFTsApiUpdateTokensOwnershipStatusRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response\ - \ = fireblocks.offExchanges().removeOffExchange(removeCollateralRequestBody,\ + code: "CompletableFuture> response = fireblocks.nFTs().updateTokensOwnershipStatus(tokenOwnershipStatusUpdatePayload,\ \ idempotencyKey);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.off_exchanges.remove_off_exchange(remove_collateral_request_body,\ - \ idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.offExchanges.removeOffExchange(offExchangesApiRemoveOffExchangeRequest);" - - lang: Java - source: "CompletableFuture> response\ - \ = fireblocks.offExchanges().removeOffExchange(removeCollateralRequestBody,\ - \ idempotencyKey);" - - lang: Python - source: "response = fireblocks.off_exchanges.remove_off_exchange(remove_collateral_request_body,\ - \ idempotency_key);" x-content-type: application/json x-accepts: - application/json - /off_exchange/settlements/trader: - post: - description: create settlement for a trader - operationId: settleOffExchangeTrades + /nfts/ownership/tokens/spam: + put: + description: "Updates tokens spam property for a tenant's token ownerships,\ + \ in all tenant vaults." + operationId: updateTokensOwnershipSpam parameters: - description: "A unique identifier for the request. If the request is sent\ \ multiple times with the same idempotency key, the server will return the\ @@ -12084,148 +9813,160 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/SettlementRequestBody" + $ref: "#/components/schemas/UpdateTokensOwnershipSpamRequest" + required: true responses: - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/SettlementResponse" - description: A settlement object - default: - $ref: "#/components/responses/Error" - summary: create settlement for a trader + "200": + description: All token spam properties have been updated + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" + "400": + description: Invalid data sent + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" + "404": + description: When ownership for token ID is not found + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" + summary: Update tokens ownership spam property tags: - - Off exchanges - x-rate-limit-category: write + - NFTs x-readme: code-samples: - language: typescript - code: "const response: Promise> =\ - \ fireblocks.offExchanges.settleOffExchangeTrades(offExchangesApiSettleOffExchangeTradesRequest);" + code: "const response: Promise> = fireblocks.nFTs.updateTokensOwnershipSpam(nFTsApiUpdateTokensOwnershipSpamRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response = fireblocks.offExchanges().settleOffExchangeTrades(settlementRequestBody,\ + code: "CompletableFuture> response = fireblocks.nFTs().updateTokensOwnershipSpam(tokenOwnershipSpamUpdatePayload,\ \ idempotencyKey);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.off_exchanges.settle_off_exchange_trades(settlement_request_body,\ - \ idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> =\ - \ fireblocks.offExchanges.settleOffExchangeTrades(offExchangesApiSettleOffExchangeTradesRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.offExchanges().settleOffExchangeTrades(settlementRequestBody,\ - \ idempotencyKey);" - - lang: Python - source: "response = fireblocks.off_exchanges.settle_off_exchange_trades(settlement_request_body,\ - \ idempotency_key);" x-content-type: application/json x-accepts: - application/json - /off_exchange/settlements/transactions: + /connections: get: - description: get settlements transactions from exchange - operationId: getOffExchangeSettlementTransactions + description: Get open Web3 connections. + operationId: get parameters: - - explode: true + - description: List order; ascending or descending. + explode: true in: query - name: mainExchangeAccountId - required: true + name: order + required: false schema: + default: ASC + enum: + - ASC + - DESC type: string style: form - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ExchangeSettlementTransactionsResponse" - description: A settlement transactions - default: - $ref: "#/components/responses/Error" - summary: get settlements transactions from exchange - tags: - - Off exchanges - x-rate-limit-category: query - x-readme: - code-samples: - - language: typescript - code: "const response: Promise>\ - \ = fireblocks.offExchanges.getOffExchangeSettlementTransactions(offExchangesApiGetOffExchangeSettlementTransactionsRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: CompletableFuture> response = fireblocks.offExchanges().getOffExchangeSettlementTransactions(mainExchangeAccountId); - name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.off_exchanges.get_off_exchange_settlement_transactions(main_exchange_account_id); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.offExchanges.getOffExchangeSettlementTransactions(offExchangesApiGetOffExchangeSettlementTransactionsRequest);" - - lang: Java - source: CompletableFuture> response = fireblocks.offExchanges().getOffExchangeSettlementTransactions(mainExchangeAccountId); - - lang: Python - source: response = fireblocks.off_exchanges.get_off_exchange_settlement_transactions(main_exchange_account_id); - x-accepts: - - application/json - /off_exchange/collateral_accounts/{mainExchangeAccountId}: - get: - description: Returns a collateral account by mainExchangeAccountId. - operationId: getOffExchangeCollateralAccounts - parameters: - - description: The id of the main exchange account for which the requested collateral - account is associated with - explode: false - in: path - name: mainExchangeAccountId - required: true + - description: Parsed filter object + examples: + object: + description: "" + summary: The filter object + value: + id: string + userId: string + vaultAccountId: number + connectionMethod: string + feeLevel: string + appUrl: string + appName: string + stringified: + description: |- + About stringified parsed objects: + + * Each key-value pair is separated by '=', and each pair is separated by ',' (you can use [`qs`](https://www.npmjs.com/package/qs) package for this) + summary: The stringified parsed object + value: "id=string,userId=string,vaultAccountId=number,connectionMethod=string,feeLevel=string,appUrl=string,appName=string" + explode: true + in: query + name: filter + required: false + schema: + $ref: "#/components/schemas/get_filter_parameter" + style: form + - description: Property to sort Web3 connections by. + explode: true + in: query + name: sort + required: false + schema: + default: createdAt + enum: + - id + - userId + - vaultAccountId + - createdAt + - feeLevel + - appUrl + - appName + type: string + style: form + - description: Amount of results to return in the next page. + explode: true + in: query + name: pageSize + required: false + schema: + default: 10 + maximum: 50 + type: number + style: form + - description: Cursor to the next page + explode: true + in: query + name: next + required: false schema: type: string - style: simple + style: form responses: "200": content: application/json: schema: - $ref: "#/components/schemas/ExchangeAccount" - description: An ExchangeAccount object + $ref: "#/components/schemas/GetConnectionsResponse" + description: "" headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: Find a specific collateral exchange account + "400": + description: Query parameters were invalid + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" + "500": + description: Something went wrong + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" + summary: List all open Web3 connections. tags: - - Off exchanges - x-rate-limit-category: query + - Web3 connections x-readme: code-samples: - language: typescript - code: "const response: Promise> = fireblocks.offExchanges.getOffExchangeCollateralAccounts(offExchangesApiGetOffExchangeCollateralAccountsRequest);" + code: "const response: Promise>\ + \ = fireblocks.web3Connections.get(web3ConnectionsApiGetRequest);" name: Fireblocks SDK TypeScript example - language: java - code: CompletableFuture> response = fireblocks.offExchanges().getOffExchangeCollateralAccounts(mainExchangeAccountId); + code: "CompletableFuture> response =\ + \ fireblocks.web3Connections().get(order, filter, sort, pageSize, next);" name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.off_exchanges.get_off_exchange_collateral_accounts(main_exchange_account_id); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.offExchanges.getOffExchangeCollateralAccounts(offExchangesApiGetOffExchangeCollateralAccountsRequest);" - - lang: Java - source: CompletableFuture> response = fireblocks.offExchanges().getOffExchangeCollateralAccounts(mainExchangeAccountId); - - lang: Python - source: response = fireblocks.off_exchanges.get_off_exchange_collateral_accounts(main_exchange_account_id); x-accepts: - application/json - /webhooks/resend: + /connections/wc: post: - description: Resends all failed webhook notifications. - operationId: resendWebhooks + description: |- + Initiate a new Web3 connection. + + * Note: After this succeeds, make a request to `PUT /v1/connections/wc/{id}` (below) to approve or reject the new Web3 connection. + operationId: create parameters: - description: "A unique identifier for the request. If the request is sent\ \ multiple times with the same idempotency key, the server will return the\ @@ -12238,61 +9979,102 @@ paths: schema: type: string style: simple + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateConnectionRequest" + required: true responses: - "200": + "201": content: application/json: schema: - $ref: "#/components/schemas/ResendWebhooksResponse" - description: OK + $ref: "#/components/schemas/CreateConnectionResponse" + description: Web3 connection initiated successfully headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: Resend failed webhooks + "400": + description: Invalid data sent + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" + "500": + description: Something went wrong + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" + summary: Create a new Web3 connection. tags: - - Webhooks - x-rate-limit-category: async + - Web3 connections x-readme: code-samples: - - language: python - code: result = fireblocks.resend_webhooks() - name: Fireblocks SDK Python example (Legacy) - - language: javascript - code: const result = await fireblocks.resendWebhooks(); - name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise>\ - \ = fireblocks.webhooks.resendWebhooks(webhooksApiResendWebhooksRequest);" + code: "const response: Promise>\ + \ = fireblocks.web3Connections.create(web3ConnectionsApiCreateRequest);" name: Fireblocks SDK TypeScript example - language: java - code: CompletableFuture> response = - fireblocks.webhooks().resendWebhooks(idempotencyKey); + code: "CompletableFuture> response\ + \ = fireblocks.web3Connections().create(createConnectionRequest, idempotencyKey);" name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.webhooks.resend_webhooks(idempotency_key); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.webhooks.resendWebhooks(webhooksApiResendWebhooksRequest);" - - lang: Java - source: CompletableFuture> response = - fireblocks.webhooks().resendWebhooks(idempotencyKey); - - lang: Python - source: response = fireblocks.webhooks.resend_webhooks(idempotency_key); + x-content-type: application/json x-accepts: - application/json - /webhooks/resend/{txId}: - post: - description: Resends failed webhook notifications for a transaction by ID. - operationId: resendTransactionWebhooks + /connections/wc/{id}: + delete: + description: Remove a Web3 connection + operationId: remove parameters: - - description: The ID of the transaction for webhooks + - description: The ID of the existing Web3 connection to remove. explode: false in: path - name: txId + name: id + required: true + schema: + type: string + style: simple + responses: + "200": + description: Connection removed successfully + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" + "404": + description: Connection not found + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" + "500": + description: Something went wrong + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" + summary: Remove an existing Web3 connection. + tags: + - Web3 connections + x-readme: + code-samples: + - language: typescript + code: "const response: Promise> = fireblocks.web3Connections.remove(web3ConnectionsApiRemoveRequest);" + name: Fireblocks SDK TypeScript example + - language: java + code: CompletableFuture> response = fireblocks.web3Connections().remove(id); + name: Fireblocks SDK Java example + x-accepts: + - application/json + put: + description: |- + Submit a response to *approve* or *reject* an initiated Web3 connection. + * Note: This call is used to complete your `POST /v1/connections/wc/` request. + + After this succeeds, your new Web3 connection is created and functioning. + operationId: submit + parameters: + - description: The ID of the initiated Web3 connection to approve. + explode: false + in: path + name: id required: true schema: type: string @@ -12312,148 +10094,112 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/ResendTransactionWebhooksRequest" + $ref: "#/components/schemas/RespondToConnectionRequest" required: true responses: "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ResendWebhooksByTransactionIdResponse" - description: OK + description: Connection submitted successfully headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: Resend failed webhooks for a transaction by ID + "400": + description: Invalid data sent + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" + "404": + description: Connection not found + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" + "500": + description: Something went wrong + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" + summary: Respond to a pending Web3 connection request. tags: - - Webhooks - x-rate-limit-category: async + - Web3 connections x-readme: code-samples: - - language: python - code: "result = fireblocks.resend_transaction_webhooks_by_id(txId, resend_created,\ - \ resend_status_updated)" - name: Fireblocks SDK Python example (Legacy) - - language: javascript - code: "const result = await fireblocks.resendTransactionWebhooksById(txId,\ - \ resendCreated, resendStatusUpdated);" - name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise>\ - \ = fireblocks.webhooks.resendTransactionWebhooks(webhooksApiResendTransactionWebhooksRequest);" + code: "const response: Promise> = fireblocks.web3Connections.submit(web3ConnectionsApiSubmitRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture>\ - \ response = fireblocks.webhooks().resendTransactionWebhooks(resendTransactionWebhooksRequest,\ - \ txId, idempotencyKey);" + code: "CompletableFuture> response = fireblocks.web3Connections().submit(respondToConnectionRequest,\ + \ id, idempotencyKey);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.webhooks.resend_transaction_webhooks(resend_transaction_webhooks_request,\ - \ tx_id, idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.webhooks.resendTransactionWebhooks(webhooksApiResendTransactionWebhooksRequest);" - - lang: Java - source: "CompletableFuture>\ - \ response = fireblocks.webhooks().resendTransactionWebhooks(resendTransactionWebhooksRequest,\ - \ txId, idempotencyKey);" - - lang: Python - source: "response = fireblocks.webhooks.resend_transaction_webhooks(resend_transaction_webhooks_request,\ - \ tx_id, idempotency_key);" x-content-type: application/json x-accepts: - application/json - /webhooks: - get: - description: | - Get all webhooks (paginated) - operationId: getWebhooks + /screening/travel_rule/transaction/validate: + post: + description: |- + Validate Travel Rule transactions. + + Checks what beneficiary VASP details are required by your jurisdiction and the beneficiary's jurisdiction. + + **Note:** The reference content in this section documents the Travel Rule beta endpoint. The beta endpoint includes APIs that are currently in preview and aren't yet generally available. + + To enroll in the beta and enable this endpoint, contact your Fireblocks Customer Success Manager or send an email to [CSM@fireblocks.com](mailto:CSM@fireblocks.com). + operationId: validateTravelRuleTransaction parameters: - - description: ASC / DESC ordering (default DESC) - explode: true - in: query - name: order - required: false - schema: - default: DESC - enum: - - ASC - - DESC - example: ASC - type: string - style: form - - description: Cursor of the required page - explode: true - in: query - name: pageCursor + - description: "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." + explode: false + in: header + name: Idempotency-Key required: false schema: type: string - style: form - - description: Maximum number of items in the page - explode: true - in: query - name: pageSize - required: false - schema: - default: 10 - example: 10 - maximum: 100 - minimum: 1 - type: number - style: form + style: simple + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/TravelRuleValidateTransactionRequest" + required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/WebhookPaginatedResponse" - description: A paginated response containing WebhookDto objects - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: Get all webhooks + $ref: "#/components/schemas/TravelRuleValidateTransactionResponse" + description: Transaction validated successfully + "400": + description: Invalid request body + "500": + description: Internal server error + summary: Validate Travel Rule Transaction tags: - - Webhooks V2 - x-rate-limit-category: query + - Travel Rule (Beta) x-readme: code-samples: - language: typescript - code: "const response: Promise>\ - \ = fireblocks.webhooksV2.getWebhooks(webhooksV2ApiGetWebhooksRequest);" + code: "const response: Promise>\ + \ = fireblocks.travelRuleBeta.validateTravelRuleTransaction(travelRuleBetaApiValidateTravelRuleTransactionRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response\ - \ = fireblocks.webhooksV2().getWebhooks(order, pageCursor, pageSize);" + code: "CompletableFuture>\ + \ response = fireblocks.travelRuleBeta().validateTravelRuleTransaction(travelRuleValidateTransactionRequest,\ + \ idempotencyKey);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.webhooks_v2.get_webhooks(order, page_cursor,\ - \ page_size);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.webhooksV2.getWebhooks(webhooksV2ApiGetWebhooksRequest);" - - lang: Java - source: "CompletableFuture> response\ - \ = fireblocks.webhooksV2().getWebhooks(order, pageCursor, pageSize);" - - lang: Python - source: "response = fireblocks.webhooks_v2.get_webhooks(order, page_cursor,\ - \ page_size);" + x-content-type: application/json x-accepts: - application/json + /screening/travel_rule/transaction/validate/full: post: - description: | - Creates a new webhook, which will be triggered on the specified events + description: |- + Validate Full Travel Rule transactions. + + Checks for all required information on the originator and beneficiary VASPs. + + **Note:** The reference content in this section documents the Travel Rule beta endpoint. The beta endpoint includes APIs that are currently in preview and aren't yet generally available. - Endpoint Permission: Owner, Admin, Non-Signing Admin. - operationId: createWebhook + To enroll in the beta and enable this endpoint, contact your Fireblocks Customer Success Manager or send an email to [CSM@fireblocks.com](mailto:CSM@fireblocks.com). + operationId: validateFullTravelRuleTransaction parameters: - description: "A unique identifier for the request. If the request is sent\ \ multiple times with the same idempotency key, the server will return the\ @@ -12470,330 +10216,132 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/CreateWebhookRequest" + $ref: "#/components/schemas/TravelRuleValidateFullTransactionRequest" required: true responses: - "201": + "200": content: application/json: schema: - $ref: "#/components/schemas/Webhook" - description: created new webhook successfully - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: Create new webhook + $ref: "#/components/schemas/TravelRuleValidateTransactionResponse" + description: Transaction validated successfully + "400": + description: Invalid request body + "500": + description: Internal server error + summary: Validate Full Travel Rule Transaction tags: - - Webhooks V2 - x-rate-limit-category: write + - Travel Rule (Beta) x-readme: code-samples: - language: typescript - code: "const response: Promise> = fireblocks.webhooksV2.createWebhook(webhooksV2ApiCreateWebhookRequest);" + code: "const response: Promise>\ + \ = fireblocks.travelRuleBeta.validateFullTravelRuleTransaction(travelRuleBetaApiValidateFullTravelRuleTransactionRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response = fireblocks.webhooksV2().createWebhook(createWebhookRequest,\ + code: "CompletableFuture>\ + \ response = fireblocks.travelRuleBeta().validateFullTravelRuleTransaction(travelRuleValidateFullTransactionRequest,\ \ idempotencyKey);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.webhooks_v2.create_webhook(create_webhook_request,\ - \ idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.webhooksV2.createWebhook(webhooksV2ApiCreateWebhookRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.webhooksV2().createWebhook(createWebhookRequest,\ - \ idempotencyKey);" - - lang: Python - source: "response = fireblocks.webhooks_v2.create_webhook(create_webhook_request,\ - \ idempotency_key);" x-content-type: application/json x-accepts: - application/json - /webhooks/{webhookId}: - delete: - description: | - Delete a webhook by its id + /screening/travel_rule/vasp/{did}: + get: + description: |- + Get VASP Details. - Endpoint Permission: Owner, Admin, Non-Signing Admin. - operationId: deleteWebhook + Returns information about a VASP that has the specified DID. + + **Note:** The reference content in this section documents the Travel Rule beta endpoint. The beta endpoint includes APIs that are currently in preview and aren't yet generally available. + + To enroll in the beta and enable this endpoint, contact your Fireblocks Customer Success Manager or send an email to [CSM@fireblocks.com](mailto:CSM@fireblocks.com). + operationId: getVASPByDID parameters: - - description: The unique identifier of the webhook - explode: false + - explode: false in: path - name: webhookId + name: did required: true schema: - example: 44fcead0-7053-4831-a53a-df7fb90d440f - format: uuid type: string style: simple + - description: "CSV of fields to return (all, \"blank\" or see list of all field\ + \ names below)" + explode: true + in: query + name: fields + required: false + schema: + type: string + style: form responses: "200": content: application/json: schema: - $ref: "#/components/schemas/Webhook" - description: Deleted webhook object - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: Delete webhook + $ref: "#/components/schemas/TravelRuleVASP" + description: Transaction validated successfully + "400": + description: Invalid request body + "500": + description: Internal server error + summary: Get VASP details tags: - - Webhooks V2 - x-rate-limit-category: write + - Travel Rule (Beta) x-readme: code-samples: - language: typescript - code: "const response: Promise> = fireblocks.webhooksV2.deleteWebhook(webhooksV2ApiDeleteWebhookRequest);" + code: "const response: Promise> = fireblocks.travelRuleBeta.getVASPByDID(travelRuleBetaApiGetVASPByDIDRequest);" name: Fireblocks SDK TypeScript example - language: java - code: CompletableFuture> response = fireblocks.webhooksV2().deleteWebhook(webhookId); + code: "CompletableFuture> response = fireblocks.travelRuleBeta().getVASPByDID(did,\ + \ fields);" name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.webhooks_v2.delete_webhook(webhook_id); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.webhooksV2.deleteWebhook(webhooksV2ApiDeleteWebhookRequest);" - - lang: Java - source: CompletableFuture> response = fireblocks.webhooksV2().deleteWebhook(webhookId); - - lang: Python - source: response = fireblocks.webhooks_v2.delete_webhook(webhook_id); x-accepts: - application/json + /screening/travel_rule/vasp: get: - description: | - Retrieve a webhook by its id - operationId: getWebhook - parameters: - - description: The unique identifier of the webhook - explode: false - in: path - name: webhookId - required: true - schema: - example: 44fcead0-7053-4831-a53a-df7fb90d440f - format: uuid - type: string - style: simple - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/Webhook" - description: A webhook object - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: Get webhook by id - tags: - - Webhooks V2 - x-rate-limit-category: read - x-readme: - code-samples: - - language: typescript - code: "const response: Promise> = fireblocks.webhooksV2.getWebhook(webhooksV2ApiGetWebhookRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: CompletableFuture> response = fireblocks.webhooksV2().getWebhook(webhookId); - name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.webhooks_v2.get_webhook(webhook_id); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.webhooksV2.getWebhook(webhooksV2ApiGetWebhookRequest);" - - lang: Java - source: CompletableFuture> response = fireblocks.webhooksV2().getWebhook(webhookId); - - lang: Python - source: response = fireblocks.webhooks_v2.get_webhook(webhook_id); - x-accepts: - - application/json - patch: - description: | - Update a webhook by its id + description: |- + Get All VASPs. - Endpoint Permission: Owner, Admin, Non-Signing Admin. - operationId: updateWebhook - parameters: - - description: The unique identifier of the webhook - explode: false - in: path - name: webhookId - required: true - schema: - example: 44fcead0-7053-4831-a53a-df7fb90d440f - format: uuid - type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/UpdateWebhookRequest" - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/Webhook" - description: Updated webhook object - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: Update webhook - tags: - - Webhooks V2 - x-rate-limit-category: write - x-readme: - code-samples: - - language: typescript - code: "const response: Promise> = fireblocks.webhooksV2.updateWebhook(webhooksV2ApiUpdateWebhookRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: "CompletableFuture> response = fireblocks.webhooksV2().updateWebhook(updateWebhookRequest,\ - \ webhookId);" - name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.webhooks_v2.update_webhook(update_webhook_request,\ - \ webhook_id);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.webhooksV2.updateWebhook(webhooksV2ApiUpdateWebhookRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.webhooksV2().updateWebhook(updateWebhookRequest,\ - \ webhookId);" - - lang: Python - source: "response = fireblocks.webhooks_v2.update_webhook(update_webhook_request,\ - \ webhook_id);" - x-content-type: application/json - x-accepts: - - application/json - /webhooks/{webhookId}/notifications: - get: - description: | - Get all notifications by webhook id (paginated) - operationId: getNotifications + Returns a list of VASPs. VASPs can be searched and sorted and results are paginated. + + **Note:** The reference content in this section documents the Travel Rule beta endpoint. The beta endpoint includes APIs that are currently in preview and aren't yet generally available. + + To enroll in the beta and enable this endpoint, contact your Fireblocks Customer Success Manager or send an email to [CSM@fireblocks.com](mailto:CSM@fireblocks.com). + operationId: getVASPs parameters: - - explode: false - in: path - name: webhookId - required: true - schema: - example: 44fcead0-7053-4831-a53a-df7fb90d440f - format: uuid - type: string - style: simple - - description: ASC / DESC ordering (default DESC) + - description: Field to order by explode: true in: query name: order required: false - schema: - default: DESC - enum: - - ASC - - DESC - example: ASC - type: string - style: form - - description: Sort by field - explode: true - in: query - name: sortBy - required: false - schema: - default: updatedAt - enum: - - id - - createdAt - - updatedAt - - status - - eventType - - resourceId - example: id - type: string - style: form - - description: Cursor of the required page - explode: true - in: query - name: pageCursor - required: false schema: type: string style: form - - description: Maximum number of items in the page - explode: true - in: query - name: pageSize - required: false - schema: - default: 100 - example: 10 - maximum: 100 - minimum: 1 - type: number - style: form - - description: Start time in milliseconds since epoch to filter by notifications - created after this time (default 31 days ago) + - description: Records per page explode: true in: query - name: startTime + name: per_page required: false schema: - example: 1625097600000 type: number style: form - - description: End time in milliseconds since epoch to filter by notifications - created before this time (default current time) + - description: Page number explode: true in: query - name: endTime + name: page required: false schema: - example: 1625017600000 type: number style: form - - description: List of notification statuses to filter by - explode: true - in: query - name: statuses - required: false - schema: - items: - $ref: "#/components/schemas/NotificationStatus" - type: array - style: form - - description: List of webhook event types to filter by - explode: true - in: query - name: events - required: false - schema: - items: - $ref: "#/components/schemas/WebhookEvent" - type: array - style: form - - description: Resource ID to filter by + - description: "CSV of fields to return (all, \"blank\" or see list of all field\ + \ names below)" explode: true in: query - name: resourceId + name: fields required: false schema: - example: 44fcead0-7053-4831-a53a-df7fb90d440f type: string style: form responses: @@ -12801,283 +10349,165 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/NotificationPaginatedResponse" - description: A paginated response containing NotificationExternalDTO objects - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: Get all notifications by webhook id + $ref: "#/components/schemas/TravelRuleGetAllVASPsResponse" + description: Get all VASPs + summary: Get All VASPs tags: - - Webhooks V2 - x-rate-limit-category: query + - Travel Rule (Beta) x-readme: code-samples: - language: typescript - code: "const response: Promise>\ - \ = fireblocks.webhooksV2.getNotifications(webhooksV2ApiGetNotificationsRequest);" + code: "const response: Promise>\ + \ = fireblocks.travelRuleBeta.getVASPs(travelRuleBetaApiGetVASPsRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response\ - \ = fireblocks.webhooksV2().getNotifications(webhookId, order, sortBy,\ - \ pageCursor, pageSize, startTime, endTime, statuses, events, resourceId);" + code: "CompletableFuture> response\ + \ = fireblocks.travelRuleBeta().getVASPs(order, perPage, page, fields);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.webhooks_v2.get_notifications(webhook_id, order,\ - \ sort_by, page_cursor, page_size, start_time, end_time, statuses, events,\ - \ resource_id);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.webhooksV2.getNotifications(webhooksV2ApiGetNotificationsRequest);" - - lang: Java - source: "CompletableFuture> response\ - \ = fireblocks.webhooksV2().getNotifications(webhookId, order, sortBy, pageCursor,\ - \ pageSize, startTime, endTime, statuses, events, resourceId);" - - lang: Python - source: "response = fireblocks.webhooks_v2.get_notifications(webhook_id, order,\ - \ sort_by, page_cursor, page_size, start_time, end_time, statuses, events,\ - \ resource_id);" x-accepts: - application/json - /webhooks/{webhookId}/notifications/{notificationId}: - get: - description: | - Get notification by id - operationId: getNotification + /screening/travel_rule/vasp/update: + put: + description: |- + Update VASP Details. + + Updates a VASP with the provided parameters. Use this endpoint to add your public jsonDIDkey generated by Notabene. + + **Note:** The reference content in this section documents the Travel Rule beta endpoint. The beta endpoint includes APIs that are currently in preview and aren't yet generally available. + + To enroll in the beta and enable this endpoint, contact your Fireblocks Customer Success Manager or send an email to [CSM@fireblocks.com](mailto:CSM@fireblocks.com). + operationId: updateVasp parameters: - - description: Include the data of the notification - explode: true - in: query - name: includeData - required: false - schema: - type: boolean - style: form - - description: The ID of the webhook to fetch + - description: "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." explode: false - in: path - name: webhookId - required: true + in: header + name: Idempotency-Key + required: false schema: type: string style: simple - - description: The ID of the notification to fetch - explode: false - in: path - name: notificationId + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/TravelRuleUpdateVASPDetails" required: true - schema: - type: string - style: simple responses: "200": content: application/json: schema: - $ref: "#/components/schemas/NotificationWithData" - description: OK - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: Get notification by id + $ref: "#/components/schemas/TravelRuleUpdateVASPDetails" + description: VASP updated successfully + "400": + description: Invalid request body + "500": + description: Internal server error + summary: Add jsonDidKey to VASP details tags: - - Webhooks V2 - x-rate-limit-category: read + - Travel Rule (Beta) x-readme: code-samples: - language: typescript - code: "const response: Promise>\ - \ = fireblocks.webhooksV2.getNotification(webhooksV2ApiGetNotificationRequest);" + code: "const response: Promise>\ + \ = fireblocks.travelRuleBeta.updateVasp(travelRuleBetaApiUpdateVaspRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response = fireblocks.webhooksV2().getNotification(webhookId,\ - \ notificationId, includeData);" + code: "CompletableFuture> response\ + \ = fireblocks.travelRuleBeta().updateVasp(travelRuleUpdateVASPDetails,\ + \ idempotencyKey);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.webhooks_v2.get_notification(webhook_id, notification_id,\ - \ include_data);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.webhooksV2.getNotification(webhooksV2ApiGetNotificationRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.webhooksV2().getNotification(webhookId,\ - \ notificationId, includeData);" - - lang: Python - source: "response = fireblocks.webhooks_v2.get_notification(webhook_id, notification_id,\ - \ include_data);" + x-content-type: application/json x-accepts: - application/json - /webhooks/{webhookId}/notifications/{notificationId}/attempts: + /screening/travel_rule/post_screening_policy: get: - description: | - Get notification attempts by notification id - operationId: getNotificationAttempts - parameters: - - description: The ID of the webhook to fetch - explode: false - in: path - name: webhookId - required: true - schema: - type: string - style: simple - - description: The ID of the notification to fetch - explode: false - in: path - name: notificationId - required: true - schema: - type: string - style: simple - - description: Cursor of the required page - explode: true - in: query - name: pageCursor - required: false - schema: - type: string - style: form - - description: Maximum number of items in the page - explode: true - in: query - name: pageSize - required: false - schema: - default: 10 - example: 10 - maximum: 100 - minimum: 1 - type: number - style: form + description: Get the post-screening policy for Travel Rule. + operationId: getPostScreeningPolicy + parameters: [] responses: "200": content: application/json: schema: - $ref: "#/components/schemas/NotificationAttemptsPaginatedResponse" - description: OK - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: Get notification attempts + $ref: "#/components/schemas/ScreeningPolicyResponse" + description: Post-screening policy retrieved successfully. + summary: Travel Rule - View Post-Screening Policy tags: - - Webhooks V2 - x-rate-limit-category: query + - Compliance x-readme: code-samples: - language: typescript - code: "const response: Promise>\ - \ = fireblocks.webhooksV2.getNotificationAttempts(webhooksV2ApiGetNotificationAttemptsRequest);" + code: "const response: Promise>\ + \ = fireblocks.compliance.getPostScreeningPolicy();" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture>\ - \ response = fireblocks.webhooksV2().getNotificationAttempts(webhookId,\ - \ notificationId, pageCursor, pageSize);" + code: CompletableFuture> response = + fireblocks.compliance().getPostScreeningPolicy(); name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.webhooks_v2.get_notification_attempts(webhook_id,\ - \ notification_id, page_cursor, page_size);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.webhooksV2.getNotificationAttempts(webhooksV2ApiGetNotificationAttemptsRequest);" - - lang: Java - source: "CompletableFuture>\ - \ response = fireblocks.webhooksV2().getNotificationAttempts(webhookId,\ - \ notificationId, pageCursor, pageSize);" - - lang: Python - source: "response = fireblocks.webhooks_v2.get_notification_attempts(webhook_id,\ - \ notification_id, page_cursor, page_size);" x-accepts: - application/json - /webhooks/{webhookId}/notifications/{notificationId}/resend: - post: - description: | - Resend notification by ID - - Endpoint Permission: Owner, Admin, Non-Signing Admin, Editor, Signer. - operationId: resendNotificationById - parameters: - - description: The ID of the webhook - explode: false - in: path - name: webhookId - required: true - schema: - type: string - style: simple - - description: The ID of the notification - explode: false - in: path - name: notificationId - required: true - schema: - type: string - style: simple - - description: "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." - explode: false - in: header - name: Idempotency-Key - required: false - schema: - type: string - style: simple + /screening/travel_rule/screening_policy: + get: + description: Get the screening policy for Travel Rule. + operationId: getScreeningPolicy + parameters: [] responses: - "202": - description: Resend notification request was accepted and is being processed - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: Resend notification by id + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ScreeningProviderRulesConfigurationResponse" + description: Screening policy retrieved successfully. + summary: Travel Rule - View Screening Policy tags: - - Webhooks V2 - x-rate-limit-category: async + - Compliance x-readme: code-samples: - language: typescript - code: "const response: Promise> = fireblocks.webhooksV2.resendNotificationById(webhooksV2ApiResendNotificationByIdRequest);" + code: "const response: Promise>\ + \ = fireblocks.compliance.getScreeningPolicy();" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response = fireblocks.webhooksV2().resendNotificationById(webhookId,\ - \ notificationId, idempotencyKey);" + code: CompletableFuture> + response = fireblocks.compliance().getScreeningPolicy(); name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.webhooks_v2.resend_notification_by_id(webhook_id,\ - \ notification_id, idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.webhooksV2.resendNotificationById(webhooksV2ApiResendNotificationByIdRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.webhooksV2().resendNotificationById(webhookId,\ - \ notificationId, idempotencyKey);" - - lang: Python - source: "response = fireblocks.webhooks_v2.resend_notification_by_id(webhook_id,\ - \ notification_id, idempotency_key);" x-accepts: - application/json - /webhooks/{webhookId}/notifications/resend_by_resource: - post: - description: | - Resend notifications by resource Id - - Endpoint Permission: Owner, Admin, Non-Signing Admin, Editor, Signer. - operationId: resendNotificationsByResourceId + /screening/travel_rule/policy_configuration: + get: + description: Retrieves the configuration for Travel Rule screening policy. + operationId: getScreeningConfiguration + parameters: [] + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ScreeningConfigurationsRequest" + description: Screening policy configuration retrieved successfully. + summary: Get Travel Rule Screening Policy Configuration + tags: + - Compliance Screening Configuration + x-readme: + code-samples: + - language: typescript + code: "const response: Promise>\ + \ = fireblocks.complianceScreeningConfiguration.getScreeningConfiguration();" + name: Fireblocks SDK TypeScript example + - language: java + code: CompletableFuture> response + = fireblocks.complianceScreeningConfiguration().getScreeningConfiguration(); + name: Fireblocks SDK Java example + x-accepts: + - application/json + put: + description: "Updates bypass screening, inbound delay, or outbound delay configurations\ + \ for Travel Rule." + operationId: updateTravelRuleConfig parameters: - description: "A unique identifier for the request. If the request is sent\ \ multiple times with the same idempotency key, the server will return the\ @@ -13090,65 +10520,59 @@ paths: schema: type: string style: simple - - description: The ID of the webhook - explode: false - in: path - name: webhookId - required: true - schema: - type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/ResendNotificationsByResourceIdRequest" - required: true responses: - "202": - description: Resend notifications by resource request was accepted and is - being processed - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: Resend notifications by resource Id + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ScreeningConfigurationsRequest" + description: Configuration updated successfully. + summary: Update Travel Rule Configuration tags: - - Webhooks V2 - x-rate-limit-category: async + - Compliance x-readme: code-samples: - language: typescript - code: "const response: Promise> = fireblocks.webhooksV2.resendNotificationsByResourceId(webhooksV2ApiResendNotificationsByResourceIdRequest);" + code: "const response: Promise>\ + \ = fireblocks.compliance.updateTravelRuleConfig(complianceApiUpdateTravelRuleConfigRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response = fireblocks.webhooksV2().resendNotificationsByResourceId(resendNotificationsByResourceIdRequest,\ - \ webhookId, idempotencyKey);" + code: CompletableFuture> response + = fireblocks.compliance().updateTravelRuleConfig(idempotencyKey); name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.webhooks_v2.resend_notifications_by_resource_id(resend_notifications_by_resource_id_request,\ - \ webhook_id, idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.webhooksV2.resendNotificationsByResourceId(webhooksV2ApiResendNotificationsByResourceIdRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.webhooksV2().resendNotificationsByResourceId(resendNotificationsByResourceIdRequest,\ - \ webhookId, idempotencyKey);" - - lang: Python - source: "response = fireblocks.webhooks_v2.resend_notifications_by_resource_id(resend_notifications_by_resource_id_request,\ - \ webhook_id, idempotency_key);" - x-content-type: application/json x-accepts: - application/json - /webhooks/{webhookId}/notifications/resend_failed: - post: - description: | - Resend all failed notifications for a webhook in the last 24 hours - - Endpoint Permission: Owner, Admin, Non-Signing Admin, Editor, Signer. - operationId: resendFailedNotifications + /screening/aml/policy_configuration: + get: + description: Retrieves the configuration for Travel Rule screening policy. + operationId: getAmlScreeningConfiguration + parameters: [] + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ScreeningConfigurationsRequest" + description: Screening policy configuration retrieved successfully. + summary: Get AML Screening Policy Configuration + tags: + - Compliance Screening Configuration + x-readme: + code-samples: + - language: typescript + code: "const response: Promise>\ + \ = fireblocks.complianceScreeningConfiguration.getAmlScreeningConfiguration();" + name: Fireblocks SDK TypeScript example + - language: java + code: CompletableFuture> response + = fireblocks.complianceScreeningConfiguration().getAmlScreeningConfiguration(); + name: Fireblocks SDK Java example + x-accepts: + - application/json + put: + description: "Updates bypass screening, inbound delay, or outbound delay configurations\ + \ for AML." + operationId: updateAmlScreeningConfiguration parameters: - description: "A unique identifier for the request. If the request is sent\ \ multiple times with the same idempotency key, the server will return the\ @@ -13161,264 +10585,150 @@ paths: schema: type: string style: simple - - description: The ID of the webhook - explode: false - in: path - name: webhookId - required: true - schema: - type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/ResendFailedNotificationsRequest" - required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/ResendFailedNotificationsResponse" - description: No failed notifications to resend - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - "202": + $ref: "#/components/schemas/ScreeningConfigurationsRequest" + description: Configuration updated successfully. + summary: Update AML Configuration + tags: + - Compliance + x-readme: + code-samples: + - language: typescript + code: "const response: Promise>\ + \ = fireblocks.compliance.updateAmlScreeningConfiguration(complianceApiUpdateAmlScreeningConfigurationRequest);" + name: Fireblocks SDK TypeScript example + - language: java + code: CompletableFuture> response + = fireblocks.compliance().updateAmlScreeningConfiguration(idempotencyKey); + name: Fireblocks SDK Java example + x-accepts: + - application/json + /screening/aml/screening_policy: + get: + description: Get the screening policy for AML. + operationId: getAmlScreeningPolicy + parameters: [] + responses: + "200": content: application/json: schema: - $ref: "#/components/schemas/ResendFailedNotificationsResponse" - description: Resend failed notifications request was accepted and is being - processed - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - Location: - $ref: "#/components/headers/Location" - default: - $ref: "#/components/responses/Error" - summary: Resend failed notifications + $ref: "#/components/schemas/ScreeningProviderRulesConfigurationResponse" + description: Screening policy retrieved successfully. + summary: AML - View Screening Policy tags: - - Webhooks V2 - x-rate-limit-category: high_compute + - Compliance x-readme: code-samples: - language: typescript - code: "const response: Promise>\ - \ = fireblocks.webhooksV2.resendFailedNotifications(webhooksV2ApiResendFailedNotificationsRequest);" + code: "const response: Promise>\ + \ = fireblocks.compliance.getAmlScreeningPolicy();" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture>\ - \ response = fireblocks.webhooksV2().resendFailedNotifications(resendFailedNotificationsRequest,\ - \ webhookId, idempotencyKey);" + code: CompletableFuture> + response = fireblocks.compliance().getAmlScreeningPolicy(); name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.webhooks_v2.resend_failed_notifications(resend_failed_notifications_request,\ - \ webhook_id, idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.webhooksV2.resendFailedNotifications(webhooksV2ApiResendFailedNotificationsRequest);" - - lang: Java - source: "CompletableFuture>\ - \ response = fireblocks.webhooksV2().resendFailedNotifications(resendFailedNotificationsRequest,\ - \ webhookId, idempotencyKey);" - - lang: Python - source: "response = fireblocks.webhooks_v2.resend_failed_notifications(resend_failed_notifications_request,\ - \ webhook_id, idempotency_key);" - x-content-type: application/json x-accepts: - application/json - /webhooks/{webhookId}/notifications/resend_failed/jobs/{jobId}: + /screening/aml/post_screening_policy: get: - description: | - Get the status of a resend job - operationId: getResendJobStatus - parameters: - - description: The ID of the webhook - explode: false - in: path - name: webhookId - required: true - schema: - type: string - style: simple - - description: The ID of the resend job - explode: false - in: path - name: jobId - required: true - schema: - type: string - style: simple + description: Get the post-screening policy for AML. + operationId: getAmlPostScreeningPolicy + parameters: [] responses: "200": content: application/json: schema: - $ref: "#/components/schemas/ResendFailedNotificationsJobStatusResponse" - description: Job status - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: Get resend job status + $ref: "#/components/schemas/ScreeningPolicyResponse" + description: Post-screening policy retrieved successfully. + summary: AML - View Post-Screening Policy tags: - - Webhooks V2 - x-rate-limit-category: read + - Compliance x-readme: code-samples: - language: typescript - code: "const response: Promise>\ - \ = fireblocks.webhooksV2.getResendJobStatus(webhooksV2ApiGetResendJobStatusRequest);" + code: "const response: Promise>\ + \ = fireblocks.compliance.getAmlPostScreeningPolicy();" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture>\ - \ response = fireblocks.webhooksV2().getResendJobStatus(webhookId, jobId);" + code: CompletableFuture> response = + fireblocks.compliance().getAmlPostScreeningPolicy(); name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.webhooks_v2.get_resend_job_status(webhook_id,\ - \ job_id);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.webhooksV2.getResendJobStatus(webhooksV2ApiGetResendJobStatusRequest);" - - lang: Java - source: "CompletableFuture>\ - \ response = fireblocks.webhooksV2().getResendJobStatus(webhookId, jobId);" - - lang: Python - source: "response = fireblocks.webhooks_v2.get_resend_job_status(webhook_id,\ - \ job_id);" x-accepts: - application/json - /tokenization/templates: - get: - description: Return minimal representation of all the contract templates available - for the workspace - operationId: getContractTemplates + /screening/configurations: + put: + description: Update tenant screening configuration. + operationId: updateScreeningConfiguration parameters: - - description: Items per page (max 100) - explode: true - in: query - name: limit - required: false - schema: - default: 100 - maximum: 100 - minimum: 1 - type: number - style: form - - description: Paging offset - explode: true - in: query - name: offset - required: false - schema: - default: 0 - minimum: 0 - type: number - style: form - - description: Page cursor to get the next page - example: MjAyMy0xMi0xMyAyMDozNjowOC4zMDI=:MTEwMA== - explode: true - in: query - name: pageCursor - required: false - schema: - type: string - style: form - - description: "Number of items per page, requesting more then max will return\ - \ max items" - example: 10 - explode: true - in: query - name: pageSize - required: false - schema: - maximum: 100 - minimum: 1 - type: number - style: form - - description: "The type of the contract templates you wish to retrieve. Can\ - \ accept one type, more or none" - example: FUNGIBLE_TOKEN - explode: true - in: query - name: type - required: false - schema: - enum: - - FUNGIBLE_TOKEN - - NON_FUNGIBLE_TOKEN - - TOKEN_UTILITY - type: string - style: form - - explode: true - in: query - name: initializationPhase + - description: "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." + explode: false + in: header + name: Idempotency-Key required: false schema: - enum: - - ON_DEPLOYMENT - - POST_DEPLOYMENT type: string - style: form + style: simple responses: "200": content: application/json: schema: - $ref: "#/components/schemas/TemplatesPaginatedResponse" - description: List of contract templates was returned successfully - default: - $ref: "#/components/responses/Error" - summary: List all contract templates + $ref: "#/components/schemas/ScreeningUpdateConfigurationsRequest" + description: Tenant Screening configuration updated successfully. + summary: Tenant - Screening Configuration tags: - - Contract Templates - x-rate-limit-category: query + - Compliance x-readme: code-samples: - - language: python - code: contract_templates = fireblocks.get_contract_templates() - name: Fireblocks SDK Python example (Legacy) - - language: javascript - code: const contractTemplates = await fireblocks.getContractTemplates(); - name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise>\ - \ = fireblocks.contractTemplates.getContractTemplates(contractTemplatesApiGetContractTemplatesRequest);" + code: "const response: Promise>\ + \ = fireblocks.compliance.updateScreeningConfiguration(complianceApiUpdateScreeningConfigurationRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response\ - \ = fireblocks.contractTemplates().getContractTemplates(limit, offset,\ - \ pageCursor, pageSize, type, initializationPhase);" + code: CompletableFuture> + response = fireblocks.compliance().updateScreeningConfiguration(idempotencyKey); name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.contract_templates.get_contract_templates(limit,\ - \ offset, page_cursor, page_size, type, initialization_phase);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.contractTemplates.getContractTemplates(contractTemplatesApiGetContractTemplatesRequest);" - - lang: Java - source: "CompletableFuture> response\ - \ = fireblocks.contractTemplates().getContractTemplates(limit, offset, pageCursor,\ - \ pageSize, type, initializationPhase);" - - lang: Python - source: "response = fireblocks.contract_templates.get_contract_templates(limit,\ - \ offset, page_cursor, page_size, type, initialization_phase);" x-accepts: - application/json - post: - description: Upload a new contract template. This contract template will be - available for the workspace - operationId: uploadContractTemplate + /management/ota: + get: + description: Returns current OTA status + operationId: getOtaStatus + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/GetOtaStatusResponse" + description: Current OTA status + "404": + description: Configuration not found for tenant + summary: Returns current OTA status + tags: + - OTA (Beta) + x-readme: + code-samples: + - language: typescript + code: "const response: Promise>\ + \ = fireblocks.oTABeta.getOtaStatus();" + name: Fireblocks SDK TypeScript example + - language: java + code: CompletableFuture> response = fireblocks.oTABeta().getOtaStatus(); + name: Fireblocks SDK Java example + x-accepts: + - application/json + put: + description: Enable or disable transactions to OTA + operationId: setOtaStatus parameters: - description: "A unique identifier for the request. If the request is sent\ \ multiple times with the same idempotency key, the server will return the\ @@ -13435,321 +10745,212 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/ContractUploadRequest" + $ref: "#/components/schemas/SetOtaStatusRequest" required: true responses: - "201": + "202": content: application/json: schema: - $ref: "#/components/schemas/ContractTemplateDto" - description: Contract was uploaded successfully - default: - $ref: "#/components/responses/Error" - summary: Upload contract template + $ref: "#/components/schemas/SetOtaStatusResponse" + description: Successfully updated OTA status + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" + "400": + description: Bad request + "409": + description: Similar request already pending + "500": + description: Internal server error + summary: Enable or disable transactions to OTA tags: - - Contract Templates - x-rate-limit-category: write + - OTA (Beta) x-readme: code-samples: - - language: python - code: template = fireblocks.upload_contract_template(upload_request) - name: Fireblocks SDK Python example (Legacy) - - language: javascript - code: const contractTemplate = await fireblocks.uploadContractTemplate(uploadRequest); - name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise>\ - \ = fireblocks.contractTemplates.uploadContractTemplate(contractTemplatesApiUploadContractTemplateRequest);" + code: "const response: Promise>\ + \ = fireblocks.oTABeta.setOtaStatus(oTABetaApiSetOtaStatusRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response = fireblocks.contractTemplates().uploadContractTemplate(contractUploadRequest,\ + code: "CompletableFuture> response = fireblocks.oTABeta().setOtaStatus(setOtaStatusRequest,\ \ idempotencyKey);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.contract_templates.upload_contract_template(contract_upload_request,\ - \ idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.contractTemplates.uploadContractTemplate(contractTemplatesApiUploadContractTemplateRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.contractTemplates().uploadContractTemplate(contractUploadRequest,\ - \ idempotencyKey);" - - lang: Python - source: "response = fireblocks.contract_templates.upload_contract_template(contract_upload_request,\ - \ idempotency_key);" x-content-type: application/json x-accepts: - application/json - /tokenization/templates/{contractTemplateId}: - delete: - description: "Delete a contract by id. allowed only for private contract templates.\ - \ Notice: it is irreversible!" - operationId: deleteContractTemplateById - parameters: - - description: The Contract Template identifier - example: b70701f4-d7b1-4795-a8ee-b09cdb5b850d - explode: false - in: path - name: contractTemplateId - required: true - schema: - type: string - style: simple + /management/workspace_status: + get: + description: Returns current workspace status + operationId: getWorkspaceStatus responses: - "204": - description: Contract was deleted successfully - "404": + "200": content: application/json: schema: - $ref: "#/components/schemas/HttpContractDoesNotExistError" - description: Could not find contract. - default: - $ref: "#/components/responses/Error" - summary: Delete a contract template by id + $ref: "#/components/schemas/GetWorkspaceStatusResponse" + description: Current workspace status + "404": + description: Workspace not found + summary: Returns current workspace status tags: - - Contract Templates - x-rate-limit-category: write + - Workspace Status (Beta) x-readme: code-samples: - - language: python - code: fireblocks.deleteContractTemplate(contract_id) - name: Fireblocks SDK Python example (Legacy) - - language: javascript - code: await fireblocks.getContractTemplate(contractId); - name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise> = fireblocks.contractTemplates.deleteContractTemplateById(contractTemplatesApiDeleteContractTemplateByIdRequest);" + code: "const response: Promise>\ + \ = fireblocks.workspaceStatusBeta.getWorkspaceStatus();" name: Fireblocks SDK TypeScript example - language: java - code: CompletableFuture> response = fireblocks.contractTemplates().deleteContractTemplateById(contractTemplateId); + code: CompletableFuture> response + = fireblocks.workspaceStatusBeta().getWorkspaceStatus(); name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.contract_templates.delete_contract_template_by_id(contract_template_id); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.contractTemplates.deleteContractTemplateById(contractTemplatesApiDeleteContractTemplateByIdRequest);" - - lang: Java - source: CompletableFuture> response = fireblocks.contractTemplates().deleteContractTemplateById(contractTemplateId); - - lang: Python - source: response = fireblocks.contract_templates.delete_contract_template_by_id(contract_template_id); x-accepts: - application/json + /tap/active_policy: get: - description: Return detailed information about the contract template - operationId: getContractTemplateById - parameters: - - description: The Contract Template identifier - example: b70701f4-d7b1-4795-a8ee-b09cdb5b850d - explode: false - in: path - name: contractTemplateId - required: true - schema: - type: string - style: simple + description: | + Returns the active policy and its validation.
+ **Note:** These endpoints are currently in beta and might be subject to changes. + If you want to participate and learn more about the Fireblocks TAP, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. + operationId: getActivePolicy responses: "200": content: application/json: schema: - $ref: "#/components/schemas/ContractTemplateDto" - description: Contract template was returned successfully - "404": - content: - application/json: - schema: - $ref: "#/components/schemas/HttpContractDoesNotExistError" - description: Could not find contract. + $ref: "#/components/schemas/PolicyAndValidationResponse" + description: A policy object + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: Return contract template by id + summary: Get the active policy and its validation tags: - - Contract Templates - x-rate-limit-category: read + - Policy Editor (Beta) x-readme: code-samples: - language: python - code: contract_template = fireblocks.get_contract_template(contract_id) - name: Fireblocks SDK Python example (Legacy) + code: policy = fireblocks.get_active_policy() + name: Fireblocks SDK Python example - language: javascript - code: const contractTemplate = await fireblocks.getContractTemplate(contractId); + code: const policy = await fireblocks.getActivePolicy(); name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise>\ - \ = fireblocks.contractTemplates.getContractTemplateById(contractTemplatesApiGetContractTemplateByIdRequest);" + code: "const response: Promise>\ + \ = fireblocks.policyEditorBeta.getActivePolicy();" name: Fireblocks SDK TypeScript example - language: java - code: CompletableFuture> response = fireblocks.contractTemplates().getContractTemplateById(contractTemplateId); + code: CompletableFuture> response + = fireblocks.policyEditorBeta().getActivePolicy(); name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.contract_templates.get_contract_template_by_id(contract_template_id); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.contractTemplates.getContractTemplateById(contractTemplatesApiGetContractTemplateByIdRequest);" - - lang: Java - source: CompletableFuture> response = fireblocks.contractTemplates().getContractTemplateById(contractTemplateId); - - lang: Python - source: response = fireblocks.contract_templates.get_contract_template_by_id(contract_template_id); x-accepts: - application/json - /tokenization/templates/{contractTemplateId}/constructor: + /tap/draft: get: - description: Return contract template's constructor ABI - operationId: getConstructorByContractTemplateId - parameters: - - description: The Contract Template identifier - example: b70701f4-d7b1-4795-a8ee-b09cdb5b850d - explode: false - in: path - name: contractTemplateId - required: true - schema: - type: string - style: simple - - description: true if you want to get the abi with its docs - explode: true - in: query - name: withDocs - required: false - schema: - default: false - type: boolean - style: form + description: | + Returns the active draft and its validation.
+ **Note:** These endpoints are currently in beta and might be subject to changes. + If you want to participate and learn more about the Fireblocks TAP, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. + operationId: getDraft responses: "200": content: application/json: schema: - $ref: "#/components/schemas/AbiFunction" - description: Contract template's constructor ABI was returned successfully - "404": - content: - application/json: - schema: - $ref: "#/components/schemas/HttpContractDoesNotExistError" - description: Could not find contract. + $ref: "#/components/schemas/DraftReviewAndValidationResponse" + description: A draft validation response object + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: Return contract template's constructor + summary: Get the active draft tags: - - Contract Templates - x-rate-limit-category: read + - Policy Editor (Beta) x-readme: code-samples: - language: python - code: contract_constructor_abi = fireblocks.get_contract_template_constructor(contract_id) - name: Fireblocks SDK Python example (Legacy) + code: policy = fireblocks.get_draft() + name: Fireblocks SDK Python example - language: javascript - code: const contractConstructorAbi = await fireblocks.getContractTemplateConstructor(contractId); + code: const policy = await fireblocks.getDraft(); name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise> = fireblocks.contractTemplates.getConstructorByContractTemplateId(contractTemplatesApiGetConstructorByContractTemplateIdRequest);" + code: "const response: Promise>\ + \ = fireblocks.policyEditorBeta.getDraft();" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response = fireblocks.contractTemplates().getConstructorByContractTemplateId(contractTemplateId,\ - \ withDocs);" + code: CompletableFuture> response + = fireblocks.policyEditorBeta().getDraft(); name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.contract_templates.get_constructor_by_contract_template_id(contract_template_id,\ - \ with_docs);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.contractTemplates.getConstructorByContractTemplateId(contractTemplatesApiGetConstructorByContractTemplateIdRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.contractTemplates().getConstructorByContractTemplateId(contractTemplateId,\ - \ withDocs);" - - lang: Python - source: "response = fireblocks.contract_templates.get_constructor_by_contract_template_id(contract_template_id,\ - \ with_docs);" x-accepts: - application/json - /tokenization/templates/{contractTemplateId}/function: - get: - description: Return contract template`s function ABI by signature - operationId: getFunctionAbiByContractTemplateId + post: + description: | + Send publish request of certain draft id and returns the response.
+ **Note:** These endpoints are currently in beta and might be subject to changes. + If you want to participate and learn more about the Fireblocks TAP, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. + operationId: publishDraft parameters: - - description: The Contract Template identifier - example: b70701f4-d7b1-4795-a8ee-b09cdb5b850d + - description: "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." explode: false - in: path - name: contractTemplateId - required: true + in: header + name: Idempotency-Key + required: false schema: type: string style: simple - - explode: true - in: query - name: functionSignature + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/PublishDraftRequest" required: true - schema: - type: string - style: form responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/AbiFunction" - description: Contract template`s function ABI was returned successfully - "404": + "201": content: application/json: schema: - $ref: "#/components/schemas/HttpContractDoesNotExistError" - description: Could not find contract. + $ref: "#/components/schemas/PublishResult" + description: A policy publish result object + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: Return contract template's function + summary: Send publish request for a certain draft id tags: - - Contract Templates - x-rate-limit-category: read + - Policy Editor (Beta) x-readme: code-samples: + - language: python + code: policy = fireblocks.publish_draft() + name: Fireblocks SDK Python example + - language: javascript + code: const policy = await fireblocks.publishDraft(); + name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise> = fireblocks.contractTemplates.getFunctionAbiByContractTemplateId(contractTemplatesApiGetFunctionAbiByContractTemplateIdRequest);" + code: "const response: Promise> = fireblocks.policyEditorBeta.publishDraft(policyEditorBetaApiPublishDraftRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response = fireblocks.contractTemplates().getFunctionAbiByContractTemplateId(contractTemplateId,\ - \ functionSignature);" + code: "CompletableFuture> response = fireblocks.policyEditorBeta().publishDraft(publishDraftRequest,\ + \ idempotencyKey);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.contract_templates.get_function_abi_by_contract_template_id(contract_template_id,\ - \ function_signature);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.contractTemplates.getFunctionAbiByContractTemplateId(contractTemplatesApiGetFunctionAbiByContractTemplateIdRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.contractTemplates().getFunctionAbiByContractTemplateId(contractTemplateId,\ - \ functionSignature);" - - lang: Python - source: "response = fireblocks.contract_templates.get_function_abi_by_contract_template_id(contract_template_id,\ - \ function_signature);" + x-content-type: application/json x-accepts: - application/json - /tokenization/templates/{contractTemplateId}/deploy: - post: - description: "Deploy a new contract by contract template id. If you wish to\ - \ deploy a token (ERC20, ERC721 etc), and create asset please use POST /tokenization" - operationId: deployContract + put: + description: | + Update the draft and return its validation.
+ **Note:** These endpoints are currently in beta and might be subject to changes. + If you want to participate and learn more about the Fireblocks TAP, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. + operationId: updateDraft parameters: - - description: The Contract Template identifier - example: b70701f4-d7b1-4795-a8ee-b09cdb5b850d - explode: false - in: path - name: contractTemplateId - required: true - schema: - type: string - style: simple - description: "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\ @@ -13765,291 +10966,168 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/ContractDeployRequest" + $ref: "#/components/schemas/PolicyRules" required: true responses: - "202": - content: - application/json: - schema: - $ref: "#/components/schemas/ContractDeployResponse" - description: Contract was deployed successfully - "404": + "200": content: application/json: schema: - $ref: "#/components/schemas/HttpContractDoesNotExistError" - description: Could not find contract. + $ref: "#/components/schemas/DraftReviewAndValidationResponse" + description: A draft validation response object + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: Deploy contract + summary: Update the draft with a new set of rules tags: - - Contract Templates - x-rate-limit-category: write + - Policy Editor (Beta) x-readme: code-samples: - language: python - code: "response = fireblocks.deploy_contract(contract_id, contract_deploy_request)" - name: Fireblocks SDK Python example (Legacy) + code: policy = fireblocks.update_draft() + name: Fireblocks SDK Python example - language: javascript - code: "const { txId } = await fireblocks.deployContract(contractId, contractDeployRequest);" + code: const policy = await fireblocks.updateDraft(); name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise>\ - \ = fireblocks.contractTemplates.deployContract(contractTemplatesApiDeployContractRequest);" + code: "const response: Promise>\ + \ = fireblocks.policyEditorBeta.updateDraft(policyEditorBetaApiUpdateDraftRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response =\ - \ fireblocks.contractTemplates().deployContract(contractDeployRequest,\ - \ contractTemplateId, idempotencyKey);" + code: "CompletableFuture>\ + \ response = fireblocks.policyEditorBeta().updateDraft(policyRules, idempotencyKey);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.contract_templates.deploy_contract(contract_deploy_request,\ - \ contract_template_id, idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.contractTemplates.deployContract(contractTemplatesApiDeployContractRequest);" - - lang: Java - source: "CompletableFuture> response =\ - \ fireblocks.contractTemplates().deployContract(contractDeployRequest, contractTemplateId,\ - \ idempotencyKey);" - - lang: Python - source: "response = fireblocks.contract_templates.deploy_contract(contract_deploy_request,\ - \ contract_template_id, idempotency_key);" x-content-type: application/json x-accepts: - application/json - /tokenization/contracts: - get: - description: Return a filtered lean representation of the deployed contracts - data on all blockchains (paginated) - operationId: getDeployedContracts + /tap/publish: + post: + description: | + Send publish request of set of policy rules and returns the response.
+ **Note:** These endpoints are currently in beta and might be subject to changes. + If you want to participate and learn more about the Fireblocks TAP, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. + operationId: publishPolicyRules parameters: - - description: Page cursor to get the next page - example: MjAyMy0xMi0xMyAyMDozNjowOC4zMDI=:MTEwMA== - explode: true - in: query - name: pageCursor - required: false - schema: - type: string - style: form - - description: "Number of items per page, requesting more then max will return\ - \ max items" - example: 10 - explode: true - in: query - name: pageSize - required: false - schema: - maximum: 100 - minimum: 1 - type: number - style: form - - description: The contract's onchain address - example: 0xC2c4e1Db41F0bB97996D0eD0542D2170d146FB66 - explode: true - in: query - name: contractAddress - required: false - schema: - type: string - style: form - - explode: true - in: query - name: baseAssetId - required: false - schema: - type: string - style: form - - explode: true - in: query - name: contractTemplateId + - description: "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." + explode: false + in: header + name: Idempotency-Key required: false schema: type: string - style: form + style: simple + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/PolicyRules" + required: true responses: - "200": + "201": content: application/json: schema: - $ref: "#/components/schemas/DeployedContractsPaginatedResponse" - description: Deployed contracts fetched successfully + $ref: "#/components/schemas/PublishResult" + description: A policy publish result object + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: List deployed contracts data + summary: Send publish request for a set of policy rules tags: - - Deployed Contracts - x-rate-limit-category: query + - Policy Editor (Beta) x-readme: code-samples: - language: python - code: deployed_contracts = fireblocks.get_contracts_by_filter(template_id) - name: Fireblocks SDK Python example (Legacy) + code: policy = fireblocks.publish_rules() + name: Fireblocks SDK Python example - language: javascript - code: const deployedContracts = await fireblocks.getContractsByFilter(templateId); + code: const policy = await fireblocks.publishRules(); name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise>\ - \ = fireblocks.deployedContracts.getDeployedContracts(deployedContractsApiGetDeployedContractsRequest);" + code: "const response: Promise> = fireblocks.policyEditorBeta.publishPolicyRules(policyEditorBetaApiPublishPolicyRulesRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture>\ - \ response = fireblocks.deployedContracts().getDeployedContracts(pageCursor,\ - \ pageSize, contractAddress, baseAssetId, contractTemplateId);" + code: "CompletableFuture> response = fireblocks.policyEditorBeta().publishPolicyRules(policyRules,\ + \ idempotencyKey);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.deployed_contracts.get_deployed_contracts(page_cursor,\ - \ page_size, contract_address, base_asset_id, contract_template_id);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.deployedContracts.getDeployedContracts(deployedContractsApiGetDeployedContractsRequest);" - - lang: Java - source: "CompletableFuture>\ - \ response = fireblocks.deployedContracts().getDeployedContracts(pageCursor,\ - \ pageSize, contractAddress, baseAssetId, contractTemplateId);" - - lang: Python - source: "response = fireblocks.deployed_contracts.get_deployed_contracts(page_cursor,\ - \ page_size, contract_address, base_asset_id, contract_template_id);" + x-content-type: application/json x-accepts: - application/json - /tokenization/contracts/{id}: + /management/users: get: - description: Return deployed contract data by id - operationId: getDeployedContractById - parameters: - - description: The deployed contract data identifier - example: b70701f4-d7b1-4795-a8ee-b09cdb5b850d - explode: false - in: path - name: id - required: true - schema: - type: string - style: simple + description: Get console users for your tenant + operationId: getConsoleUsers responses: "200": content: application/json: schema: - $ref: "#/components/schemas/DeployedContractResponseDto" - description: "" - default: - $ref: "#/components/responses/Error" - summary: Return deployed contract data by id - tags: - - Deployed Contracts - x-rate-limit-category: read - x-readme: - code-samples: - - language: python - code: deployed_contracts = fireblocks.get_contract_by_id(contract_id) - name: Fireblocks SDK Python example (Legacy) - - language: javascript - code: const deployedContracts = await fireblocks.getContractById(contractId); - name: Fireblocks SDK Javascript example - - language: typescript - code: "const response: Promise>\ - \ = fireblocks.deployedContracts.getDeployedContractById(deployedContractsApiGetDeployedContractByIdRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: CompletableFuture> response - = fireblocks.deployedContracts().getDeployedContractById(id); - name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.deployed_contracts.get_deployed_contract_by_id(id); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.deployedContracts.getDeployedContractById(deployedContractsApiGetDeployedContractByIdRequest);" - - lang: Java - source: CompletableFuture> response - = fireblocks.deployedContracts().getDeployedContractById(id); - - lang: Python - source: response = fireblocks.deployed_contracts.get_deployed_contract_by_id(id); - x-accepts: - - application/json - /tokenization/contracts/{assetId}/{contractAddress}: - get: - description: Return deployed contract data by blockchain native asset id and - contract address - operationId: getDeployedContractByAddress - parameters: - - description: The contract's onchain address - example: 0xC2c4e1Db41F0bB97996D0eD0542D2170d146FB66 - explode: false - in: path - name: contractAddress - required: true - schema: - type: string - style: simple - - explode: false - in: path - name: assetId - required: true - schema: - type: string - style: simple - responses: - "200": + $ref: "#/components/schemas/GetConsoleUsersResponse" + description: got console users + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" + "401": content: application/json: schema: - $ref: "#/components/schemas/DeployedContractResponseDto" - description: "" + $ref: "#/components/schemas/ErrorResponse" + description: Unauthorized. Missing / invalid JWT token in Authorization + header. + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" + "403": + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + description: Lacking permissions. + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" + "5XX": + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + description: Internal error. + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: Return deployed contract data + summary: Get console users tags: - - Deployed Contracts - x-rate-limit-category: read + - Console User x-readme: code-samples: - - language: python - code: "deployed_contract = fireblocks.get_contract_by_address(base_asset_id,\ - \ contract_address)" - name: Fireblocks SDK Python example (Legacy) - language: javascript - code: "const deployedContract = await fireblocks.getContractByAddress(baseAssetId,\ - \ contractAddress);" + code: const consoleUsers = await fireblocks.getConsoleUsers(); name: Fireblocks SDK Javascript example + - language: python + code: consoleUsers = fireblocks.get_console_users() + name: Fireblocks SDK Python example - language: typescript - code: "const response: Promise>\ - \ = fireblocks.deployedContracts.getDeployedContractByAddress(deployedContractsApiGetDeployedContractByAddressRequest);" + code: "const response: Promise>\ + \ = fireblocks.consoleUser.getConsoleUsers();" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response\ - \ = fireblocks.deployedContracts().getDeployedContractByAddress(contractAddress,\ - \ assetId);" + code: CompletableFuture> response = + fireblocks.consoleUser().getConsoleUsers(); name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.deployed_contracts.get_deployed_contract_by_address(contract_address,\ - \ asset_id);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.deployedContracts.getDeployedContractByAddress(deployedContractsApiGetDeployedContractByAddressRequest);" - - lang: Java - source: "CompletableFuture> response\ - \ = fireblocks.deployedContracts().getDeployedContractByAddress(contractAddress,\ - \ assetId);" - - lang: Python - source: "response = fireblocks.deployed_contracts.get_deployed_contract_by_address(contract_address,\ - \ asset_id);" x-accepts: - application/json - /tokenization/contracts/fetch_abi: post: - description: Fetch the ABI. If not found fetch the ABI from the block explorer - operationId: fetchContractAbi + description: Creates console user in your tenant + operationId: createConsoleUser parameters: - description: "A unique identifier for the request. If the request is sent\ \ multiple times with the same idempotency key, the server will return the\ @@ -14066,54 +11144,138 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/FetchAbiRequestDto" - required: true + $ref: "#/components/schemas/CreateConsoleUser" responses: "200": + description: User creation approval request has been sent + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" + "400": + description: bad request + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" + "401": content: application/json: schema: - $ref: "#/components/schemas/ContractWithAbiDto" - description: Contract ABI found. - "404": - description: Contract ABI not found + $ref: "#/components/schemas/ErrorResponse" + description: Unauthorized. Missing / invalid JWT token in Authorization + header. + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" + "403": + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + description: Lacking permissions. + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" + "5XX": + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + description: Internal error. + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: Fetch the contract ABI + summary: Create console user tags: - - Deployed Contracts - x-rate-limit-category: read + - Console User x-readme: code-samples: + - language: javascript + code: "const res = await fireblocks.createConsoleUser(firstName, lastName,\ + \ email, role);" + name: Fireblocks SDK Javascript example + - language: python + code: "res = fireblocks.create_console_user(first_name, last_name, email,\ + \ role)" + name: Fireblocks SDK Python example - language: typescript - code: "const response: Promise> =\ - \ fireblocks.deployedContracts.fetchContractAbi(deployedContractsApiFetchContractAbiRequest);" + code: "const response: Promise> = fireblocks.consoleUser.createConsoleUser(consoleUserApiCreateConsoleUserRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response = fireblocks.deployedContracts().fetchContractAbi(fetchAbiRequestDto,\ + code: "CompletableFuture> response = fireblocks.consoleUser().createConsoleUser(createConsoleUser,\ \ idempotencyKey);" name: Fireblocks SDK Java example + x-content-type: application/json + x-accepts: + - application/json + /management/api_users: + get: + description: Get Api users of your tenant + operationId: getApiUsers + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/GetAPIUsersResponse" + description: got api users + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" + "401": + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + description: Unauthorized. Missing / invalid JWT token in Authorization + header. + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" + "403": + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + description: Lacking permissions. + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" + "5XX": + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + description: Internal error. + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" + default: + $ref: "#/components/responses/Error" + summary: Get Api users + tags: + - Api User + x-readme: + code-samples: + - language: javascript + code: const apiUsers = await fireblocks.getApiUsers(); + name: Fireblocks SDK Javascript example - language: python - code: "response = fireblocks.deployed_contracts.fetch_contract_abi(fetch_abi_request_dto,\ - \ idempotency_key);" + code: apiUsers = fireblocks.get_api_users() name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> =\ - \ fireblocks.deployedContracts.fetchContractAbi(deployedContractsApiFetchContractAbiRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.deployedContracts().fetchContractAbi(fetchAbiRequestDto,\ - \ idempotencyKey);" - - lang: Python - source: "response = fireblocks.deployed_contracts.fetch_contract_abi(fetch_abi_request_dto,\ - \ idempotency_key);" - x-content-type: application/json + - language: typescript + code: "const response: Promise>\ + \ = fireblocks.apiUser.getApiUsers();" + name: Fireblocks SDK TypeScript example + - language: java + code: CompletableFuture> response = fireblocks.apiUser().getApiUsers(); + name: Fireblocks SDK Java example x-accepts: - application/json - /tokenization/contracts/abi: post: - description: Save contract ABI for the tenant - operationId: addContractABI + description: Creates Api user in your tenant + operationId: createApiUser parameters: - description: "A unique identifier for the request. If the request is sent\ \ multiple times with the same idempotency key, the server will return the\ @@ -14130,138 +11292,85 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/AddAbiRequestDto" - required: true + $ref: "#/components/schemas/CreateAPIUser" responses: "200": + description: User creation approval request has been sent + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" + "400": + description: bad request + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" + "401": content: application/json: schema: - $ref: "#/components/schemas/ContractWithAbiDto" - description: Contract ABI created (or updated) for the tenant - "409": - description: Contract ABI already exists. - default: - $ref: "#/components/responses/Error" - summary: Save contract ABI - tags: - - Deployed Contracts - x-rate-limit-category: write - x-readme: - code-samples: - - language: typescript - code: "const response: Promise> =\ - \ fireblocks.deployedContracts.addContractABI(deployedContractsApiAddContractABIRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: "CompletableFuture> response = fireblocks.deployedContracts().addContractABI(addAbiRequestDto,\ - \ idempotencyKey);" - name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.deployed_contracts.add_contract_a_b_i(add_abi_request_dto,\ - \ idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> =\ - \ fireblocks.deployedContracts.addContractABI(deployedContractsApiAddContractABIRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.deployedContracts().addContractABI(addAbiRequestDto,\ - \ idempotencyKey);" - - lang: Python - source: "response = fireblocks.deployed_contracts.add_contract_a_b_i(add_abi_request_dto,\ - \ idempotency_key);" - x-content-type: application/json - x-accepts: - - application/json - /tokenization/tokens: - get: - description: Return all linked tokens (paginated) - operationId: getLinkedTokens - parameters: - - description: Page cursor to get the next page - example: MjAyMy0xMi0xMyAyMDozNjowOC4zMDI=:MTEwMA== - explode: true - in: query - name: pageCursor - required: false - schema: - type: string - style: form - - description: "Number of items per page, requesting more then max will return\ - \ max items" - example: 10 - explode: true - in: query - name: pageSize - required: false - schema: - maximum: 100 - minimum: 1 - type: number - style: form - - description: A comma separated list of statuses to filter. Default is "COMPLETED" - example: COMPLETED - explode: true - in: query - name: status - required: false - schema: {} - style: form - responses: - "200": + $ref: "#/components/schemas/ErrorResponse" + description: Unauthorized. Missing / invalid JWT token in Authorization + header. + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" + "403": content: application/json: schema: - $ref: "#/components/schemas/TokensPaginatedResponse" - description: "" + $ref: "#/components/schemas/ErrorResponse" + description: Lacking permissions. + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" + "5XX": + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + description: Internal error. + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: List all linked tokens + summary: Create Api user tags: - - Tokenization - x-rate-limit-category: query + - Api User x-readme: code-samples: - - language: python - code: linked_tokens = fireblocks.get_linked_tokens(payload) - name: Fireblocks SDK Python example (Legacy) - language: javascript - code: const linkedTokens = await fireblocks.getLinkedTokens(payload); + code: "const res = await fireblocks.createApiUser(name, role, csrForNewUser,\ + \ coSignerType, isFirstUser);" name: Fireblocks SDK Javascript example + - language: python + code: "res = fireblocks.create_api_user(name, role, csr_pem, co_signer_setup,\ + \ co_signer_setup_is_first_user)" + name: Fireblocks SDK Python example - language: typescript - code: "const response: Promise>\ - \ = fireblocks.tokenization.getLinkedTokens(tokenizationApiGetLinkedTokensRequest);" + code: "const response: Promise> = fireblocks.apiUser.createApiUser(apiUserApiCreateApiUserRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response\ - \ = fireblocks.tokenization().getLinkedTokens(pageCursor, pageSize, status);" + code: "CompletableFuture> response = fireblocks.apiUser().createApiUser(createAPIUser,\ + \ idempotencyKey);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.tokenization.get_linked_tokens(page_cursor,\ - \ page_size, status);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.tokenization.getLinkedTokens(tokenizationApiGetLinkedTokensRequest);" - - lang: Java - source: "CompletableFuture> response\ - \ = fireblocks.tokenization().getLinkedTokens(pageCursor, pageSize, status);" - - lang: Python - source: "response = fireblocks.tokenization.get_linked_tokens(page_cursor,\ - \ page_size, status);" + x-content-type: application/json x-accepts: - application/json + /management/users/{id}/reset_device: post: - description: "Facilitates the creation of a new token, supporting both EVM-based\ - \ and Stellar/Ripple platforms. For EVM, it deploys the corresponding contract\ - \ template to the blockchain and links the token to the workspace. For Stellar/Ripple,\ - \ it links a newly created token directly to the workspace without deploying\ - \ a contract. Returns the token link with status \"PENDING\" until the token\ - \ is deployed or \"SUCCESS\" if no deployment is needed." - operationId: issueNewToken + description: "Resets mobile device for given console user, that user will need\ + \ to do mobile onboarding again." + operationId: resetDevice parameters: + - description: The ID of the console user + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple - description: "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\ @@ -14273,251 +11382,278 @@ paths: schema: type: string style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/CreateTokenRequestDto" - required: true responses: - "201": + "200": + description: Reset device approval request has been sent + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" + "401": content: application/json: schema: - $ref: "#/components/schemas/TokenLinkDto" - description: Token was created successfully - "409": + $ref: "#/components/schemas/ErrorResponse" + description: Unauthorized. Missing / invalid JWT token in Authorization + header. + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" + "403": content: application/json: schema: - $ref: "#/components/schemas/AssetAlreadyExistHttpError" - description: Asset already exists - summary: Issue a new token + $ref: "#/components/schemas/ErrorResponse" + description: Lacking permissions. + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" + "5XX": + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + description: Internal error. + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" + default: + $ref: "#/components/responses/Error" + summary: Resets device tags: - - Tokenization - x-rate-limit-category: write + - Reset device x-readme: code-samples: - - language: python - code: token = fireblocks.issue_new_token(payload) - name: Fireblocks SDK Python example (Legacy) - language: javascript - code: const token = await fireblocks.issueNewToken(payload); + code: const res = await fireblocks.resetDeviceRequest(consoleUserId); name: Fireblocks SDK Javascript example + - language: python + code: res = fireblocks.reset_device_request(console_user_id) + name: Fireblocks SDK Python example - language: typescript - code: "const response: Promise> = fireblocks.tokenization.issueNewToken(tokenizationApiIssueNewTokenRequest);" + code: "const response: Promise> = fireblocks.resetDevice.resetDevice(resetDeviceApiResetDeviceRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response = fireblocks.tokenization().issueNewToken(createTokenRequestDto,\ + code: "CompletableFuture> response = fireblocks.resetDevice().resetDevice(id,\ \ idempotencyKey);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.tokenization.issue_new_token(create_token_request_dto,\ - \ idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.tokenization.issueNewToken(tokenizationApiIssueNewTokenRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.tokenization().issueNewToken(createTokenRequestDto,\ - \ idempotencyKey);" - - lang: Python - source: "response = fireblocks.tokenization.issue_new_token(create_token_request_dto,\ - \ idempotency_key);" - x-content-type: application/json x-accepts: - application/json - /tokenization/tokens/link: - post: - description: Link an a contract - operationId: link + /management/api_users/{userId}/whitelist_ip_addresses: + get: + description: Gets whitelisted ip addresses for given Api user. + operationId: getWhitelistIpAddresses parameters: - - description: "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." + - description: The ID of the api user explode: false - in: header - name: Idempotency-Key - required: false + in: path + name: userId + required: true schema: type: string style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/TokenLinkRequestDto" - required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/TokenLinkDto" - description: Token linked successfully - "201": + $ref: "#/components/schemas/GetWhitelistIpAddressesResponse" + description: successfully got whitelisted ip addresses + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" + "401": content: application/json: schema: - $ref: "#/components/schemas/TokenLinkDto" - description: "" - "404": - description: Could not find the underlying contract to link to - "409": + $ref: "#/components/schemas/ErrorResponse" + description: Unauthorized. Missing / invalid JWT token in Authorization + header. + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" + "403": content: application/json: schema: - $ref: "#/components/schemas/TokenLinkExistsHttpError" - description: "Token link for {refId} already exists" + $ref: "#/components/schemas/ErrorResponse" + description: Lacking permissions. + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" + "5XX": + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + description: Internal error. + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: Link a contract + summary: Gets whitelisted ip addresses tags: - - Tokenization - x-rate-limit-category: write + - whitelist ip addresses x-readme: code-samples: + - language: javascript + code: const whitelistedAddresses = await fireblocks.getWhitelistedAddresses(apiUserId); + name: Fireblocks SDK Javascript example + - language: python + code: whitelisted_addresses = fireblocks.get_whitelisted_ip_addresses(api_user_id) + name: Fireblocks SDK Python example - language: typescript - code: "const response: Promise> = fireblocks.tokenization.link(tokenizationApiLinkRequest);" + code: "const response: Promise>\ + \ = fireblocks.whitelistIpAddresses.getWhitelistIpAddresses(whitelistIpAddressesApiGetWhitelistIpAddressesRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response = fireblocks.tokenization().link(tokenLinkRequestDto,\ - \ idempotencyKey);" + code: CompletableFuture> response + = fireblocks.whitelistIpAddresses().getWhitelistIpAddresses(userId); name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.tokenization.link(token_link_request_dto, idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.tokenization.link(tokenizationApiLinkRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.tokenization().link(tokenLinkRequestDto,\ - \ idempotencyKey);" - - lang: Python - source: "response = fireblocks.tokenization.link(token_link_request_dto, idempotency_key);" - x-content-type: application/json x-accepts: - application/json - /tokenization/tokens/{id}: - delete: - description: "Unlink a token. The token will be unlinked from the workspace.\ - \ The token will not be deleted on chain nor the refId, only the link to the\ - \ workspace will be removed." - operationId: unlink + /smart-transfers: + get: + description: Finds Smart Transfer tickets that match the submitted criteria + operationId: searchTickets parameters: - - description: The token link id - example: fbfbfbfb-fbfb-fbfb-fbfb-fbfbfbfbfbfb - explode: false - in: path - name: id - required: true + - description: Search string - counterparty name or asset or ticketId. Optional + explode: true + in: query + name: q + required: false schema: + minLength: 1 type: string - style: simple + style: form + - description: Ticket statuses for Smart Transfer tickets. Optional + example: + - DRAFT + - OPEN + explode: true + in: query + name: statuses + required: false + schema: + default: [] + items: + enum: + - DRAFT + - PENDING_APPROVAL + - OPEN + - IN_SETTLEMENT + - FULFILLED + - EXPIRED + - CANCELED + type: string + type: array + style: form + - description: "NetworkId that is used in the ticket\t. Optional" + explode: true + in: query + name: networkId + required: false + schema: + type: string + style: form + - description: Filter created tickets by created by self or by others. Optional + explode: true + in: query + name: createdByMe + required: false + schema: + type: boolean + style: form + - description: Lower bound of search range. Optional + explode: true + in: query + name: expiresAfter + required: false + schema: + format: date-time + type: string + style: form + - description: Upper bound of search range. Optional + explode: true + in: query + name: expiresBefore + required: false + schema: + format: date-time + type: string + style: form + - description: "Type of transfer. ASYNC executes transfers as they are funded,\ + \ ATOMIC executes all terms (legs) as one atomic transfer" + explode: true + in: query + name: type + required: false + schema: + enum: + - ASYNC + type: string + style: form + - description: External ref. ID that workspace can use to identify ticket outside + of Fireblocks system. + explode: true + in: query + name: externalRefId + required: false + schema: + maxLength: 64 + minLength: 1 + type: string + style: form + - description: ID of the record after which to fetch $limit records + explode: true + in: query + name: after + required: false + schema: + type: string + style: form + - description: "Number of records to fetch. By default, it is 100" + explode: true + in: query + name: limit + required: false + schema: + minimum: 1 + type: number + style: form responses: "200": - content: {} - description: Token unlinked successfully - "204": - content: {} - description: "" - "404": content: application/json: schema: - $ref: "#/components/schemas/NotFoundException" - description: Link did not exist - default: - $ref: "#/components/responses/Error" - summary: Unlink a token - tags: - - Tokenization - x-rate-limit-category: write - x-readme: - code-samples: - - language: python - code: token = fireblocks.unlink_token(token_id) - name: Fireblocks SDK Python example (Legacy) - - language: javascript - code: const token = await fireblocks.unlinkToken(tokenId); - name: Fireblocks SDK Javascript example - - language: typescript - code: "const response: Promise> = fireblocks.tokenization.unlink(tokenizationApiUnlinkRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: CompletableFuture> response = fireblocks.tokenization().unlink(id); - name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.tokenization.unlink(id); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.tokenization.unlink(tokenizationApiUnlinkRequest);" - - lang: Java - source: CompletableFuture> response = fireblocks.tokenization().unlink(id); - - lang: Python - source: response = fireblocks.tokenization.unlink(id); - x-accepts: - - application/json - get: - description: "Return a linked token, with its status and metadata." - operationId: getLinkedToken - parameters: - - description: The token link id - example: fbfbfbfb-fbfb-fbfb-fbfb-fbfbfbfbfbfb - explode: false - in: path - name: id - required: true - schema: - type: string - style: simple - responses: - "200": + $ref: "#/components/schemas/SmartTransferTicketFilteredResponse" + description: Smart Transfer tickets were returned successfully + "403": content: application/json: schema: - $ref: "#/components/schemas/TokenLinkDto" - description: Token fetched successfully - default: - $ref: "#/components/responses/Error" - summary: Return a linked token + $ref: "#/components/schemas/SmartTransferForbiddenResponse" + description: Unauthorized + summary: Find Ticket tags: - - Tokenization - x-rate-limit-category: read + - Smart Transfer x-readme: code-samples: - - language: python - code: token = fireblocks.get_linked_token(token_id) - name: Fireblocks SDK Python example (Legacy) - - language: javascript - code: const token = await fireblocks.getLinkedToken(tokenId); - name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise> = fireblocks.tokenization.getLinkedToken(tokenizationApiGetLinkedTokenRequest);" + code: "const response: Promise>\ + \ = fireblocks.smartTransfer.searchTickets(smartTransferApiSearchTicketsRequest);" name: Fireblocks SDK TypeScript example - language: java - code: CompletableFuture> response = fireblocks.tokenization().getLinkedToken(id); + code: "CompletableFuture>\ + \ response = fireblocks.smartTransfer().searchTickets(q, statuses, networkId,\ + \ createdByMe, expiresAfter, expiresBefore, type, externalRefId, after,\ + \ limit);" name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.tokenization.get_linked_token(id); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.tokenization.getLinkedToken(tokenizationApiGetLinkedTokenRequest);" - - lang: Java - source: CompletableFuture> response = fireblocks.tokenization().getLinkedToken(id); - - lang: Python - source: response = fireblocks.tokenization.get_linked_token(id); x-accepts: - application/json - /tokenization/multichain/deterministic_address: post: - description: Get a deterministic address for contract deployment. The address - is derived from the contract's bytecode and provided salt. This endpoint - is used to get the address of a contract that will be deployed in the future. - operationId: getDeployableAddress + description: Creates new Smart Transfer ticket + operationId: createTicket parameters: - description: "A unique identifier for the request. If the request is sent\ \ multiple times with the same idempotency key, the server will return the\ @@ -14534,184 +11670,102 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetDeployableAddressRequest" + $ref: "#/components/schemas/SmartTransferCreateTicket" required: true responses: - "200": + "201": content: application/json: schema: - $ref: "#/components/schemas/DeployableAddressResponse" - description: Deterministic address for contract deployment - "400": + $ref: "#/components/schemas/SmartTransferTicketResponse" + description: Smart Transfer ticket was created successfully + "403": content: application/json: schema: - $ref: "#/components/schemas/InvalidParamaterValueError" - description: Invalid parameters or template has no bytecode - "409": + $ref: "#/components/schemas/SmartTransferForbiddenResponse" + description: Unauthorized + "422": content: application/json: schema: - $ref: "#/components/schemas/AddressNotAvailableError" - description: Address is already taken - default: - $ref: "#/components/responses/Error" - summary: Get deterministic address for contract deployment + $ref: "#/components/schemas/SmartTransferBadRequestResponse" + description: Bad Request + summary: Create Ticket tags: - - Tokenization - x-rate-limit-category: read + - Smart Transfer x-readme: code-samples: - - language: javascript - code: |- - const payload = { - chainDescriptor: "ETH", - templateId: "b70701f4-d7b1-4795-a8ee-b09cdb5b850d", - initParams: [ - { name: "name", type: "string", value: "TokenName" }, - { name: "symbol", type: "string", value: "TokenSymbol" }, - { - name: "customConfigProps", - type: "tuple", - components: [ - { name: "_isMintable", type: "bool" } - ], - value: [{ _isMintable: false }] - } - ], - salt: "123456789" - }; const address = await fireblocks.getDeterministicAddress(payload); - name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise>\ - \ = fireblocks.tokenization.getDeployableAddress(tokenizationApiGetDeployableAddressRequest);" + code: "const response: Promise>\ + \ = fireblocks.smartTransfer.createTicket(smartTransferApiCreateTicketRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response\ - \ = fireblocks.tokenization().getDeployableAddress(getDeployableAddressRequest,\ + code: "CompletableFuture> response\ + \ = fireblocks.smartTransfer().createTicket(smartTransferCreateTicket,\ \ idempotencyKey);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.tokenization.get_deployable_address(get_deployable_address_request,\ - \ idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.tokenization.getDeployableAddress(tokenizationApiGetDeployableAddressRequest);" - - lang: Java - source: "CompletableFuture> response\ - \ = fireblocks.tokenization().getDeployableAddress(getDeployableAddressRequest,\ - \ idempotencyKey);" - - lang: Python - source: "response = fireblocks.tokenization.get_deployable_address(get_deployable_address_request,\ - \ idempotency_key);" x-content-type: application/json x-accepts: - application/json - /tokenization/multichain/tokens: - post: - description: Facilitates the creation of a new token on one or more blockchains. - operationId: issueTokenMultiChain + /smart-transfers/{ticketId}: + get: + description: Find Smart Transfer ticket by id + operationId: findTicketById parameters: - - description: "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." - explode: false - in: header - name: Idempotency-Key - required: false + - explode: false + in: path + name: ticketId + required: true schema: type: string style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/CreateMultichainTokenRequest" - required: true responses: - "201": + "200": content: application/json: schema: - $ref: "#/components/schemas/IssueTokenMultichainResponse" - description: Tokens were created successfully - "400": + $ref: "#/components/schemas/SmartTransferTicketResponse" + description: Smart Transfer ticket returned successfully + "403": content: application/json: schema: - $ref: "#/components/schemas/InvalidParamaterValueError" - description: Invalid input. - "409": + $ref: "#/components/schemas/SmartTransferForbiddenResponse" + description: Unauthorized + "404": content: application/json: schema: - $ref: "#/components/schemas/AddressNotAvailableError" - description: Address is already taken. - summary: Issue a token on one or more blockchains + $ref: "#/components/schemas/SmartTransferNotFoundResponse" + description: Not found + summary: Search Tickets by ID tags: - - Tokenization - x-rate-limit-category: write + - Smart Transfer x-readme: code-samples: - - language: javascript - code: |- - const payload = { - vaultAccountId: "0", - createParams: { - contractId: "b70701f4-d7b1-4795-a8ee-b09cdb5b850d", - deployFunctionParams: [ - { name: "name", type: "string", value: "TokenName" }, - { name: "symbol", type: "string", value: "TokenSymbol" }, - { - name: "customConfigProps", - type: "tuple", - components: [ - { name: "_isMintable", type: "bool" } - ], - value: [{ _isMintable: false }] - }, - ], - }, - salt: "123456789", - chains: ["ETH", "POLYGON"] - }; const token = await fireblocks.issueTokenMultiChain(payload); - name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise>\ - \ = fireblocks.tokenization.issueTokenMultiChain(tokenizationApiIssueTokenMultiChainRequest);" + code: "const response: Promise>\ + \ = fireblocks.smartTransfer.findTicketById(smartTransferApiFindTicketByIdRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture>> response = fireblocks.tokenization().issueTokenMultiChain(createMultichainTokenRequest,\ - \ idempotencyKey);" + code: CompletableFuture> response + = fireblocks.smartTransfer().findTicketById(ticketId); name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.tokenization.issue_token_multi_chain(create_multichain_token_request,\ - \ idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.tokenization.issueTokenMultiChain(tokenizationApiIssueTokenMultiChainRequest);" - - lang: Java - source: "CompletableFuture>> response = fireblocks.tokenization().issueTokenMultiChain(createMultichainTokenRequest,\ - \ idempotencyKey);" - - lang: Python - source: "response = fireblocks.tokenization.issue_token_multi_chain(create_multichain_token_request,\ - \ idempotency_key);" - x-content-type: application/json x-accepts: - application/json - /tokenization/multichain/reissue/token/{tokenLinkId}: - post: - description: Reissue a multichain token. This endpoint allows you to reissue - a token on one or more blockchains. The token must be initially issued using - the issueTokenMultiChain endpoint. - operationId: reIssueTokenMultiChain + /smart-transfers/{ticketId}/expires-in: + put: + description: Set expiration date on Smart Transfer ticket + operationId: setTicketExpiration parameters: + - explode: false + in: path + name: ticketId + required: true + schema: + type: string + style: simple - description: "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\ @@ -14723,93 +11777,66 @@ paths: schema: type: string style: simple - - description: The ID of the token link - explode: false - in: path - name: tokenLinkId - required: true - schema: - type: string - style: simple requestBody: content: application/json: schema: - $ref: "#/components/schemas/ReissueMultichainTokenRequest" + $ref: "#/components/schemas/SmartTransferSetTicketExpiration" required: true responses: - "201": + "200": content: application/json: schema: - $ref: "#/components/schemas/IssueTokenMultichainResponse" - description: Successfully reissued multichain token - "400": + $ref: "#/components/schemas/SmartTransferTicketResponse" + description: Successfully set expiration date on Smart Transfer ticket + "403": content: application/json: schema: - $ref: "#/components/schemas/TokenLinkNotMultichainCompatibleHttpError" - description: Invalid input + $ref: "#/components/schemas/SmartTransferForbiddenResponse" + description: Unauthorized "404": content: application/json: schema: - $ref: "#/components/schemas/DeployedContractNotFoundError" - description: Deployed contract not found - "409": + $ref: "#/components/schemas/SmartTransferNotFoundResponse" + description: Not found + "422": content: application/json: schema: - $ref: "#/components/schemas/AddressNotAvailableError" - description: Address is already taken - default: - $ref: "#/components/responses/Error" - summary: Reissue a multichain token + $ref: "#/components/schemas/SmartTransferBadRequestResponse" + description: Bad Request + summary: Set expiration tags: - - Tokenization - x-rate-limit-category: write + - Smart Transfer x-readme: code-samples: - - language: javascript - code: |- - const payload = { - vaultAccountId: "0", - chains: "ETH", - salt: "123456789", - chains: ["ETH", "POLYGON"] - }; const token = await fireblocks.reIssueTokenMultiChain(tokenLinkId, payload); - name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise>\ - \ = fireblocks.tokenization.reIssueTokenMultiChain(tokenizationApiReIssueTokenMultiChainRequest);" + code: "const response: Promise>\ + \ = fireblocks.smartTransfer.setTicketExpiration(smartTransferApiSetTicketExpirationRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture>> response = fireblocks.tokenization().reIssueTokenMultiChain(reissueMultichainTokenRequest,\ - \ tokenLinkId, idempotencyKey);" + code: "CompletableFuture> response\ + \ = fireblocks.smartTransfer().setTicketExpiration(smartTransferSetTicketExpiration,\ + \ ticketId, idempotencyKey);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.tokenization.re_issue_token_multi_chain(reissue_multichain_token_request,\ - \ token_link_id, idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.tokenization.reIssueTokenMultiChain(tokenizationApiReIssueTokenMultiChainRequest);" - - lang: Java - source: "CompletableFuture>> response = fireblocks.tokenization().reIssueTokenMultiChain(reissueMultichainTokenRequest,\ - \ tokenLinkId, idempotencyKey);" - - lang: Python - source: "response = fireblocks.tokenization.re_issue_token_multi_chain(reissue_multichain_token_request,\ - \ token_link_id, idempotency_key);" x-content-type: application/json x-accepts: - application/json - /tokenization/multichain/bridge/layerzero: - delete: - description: Remove LayerZero adapters by deactivating and unlinking them. This - endpoint revokes roles and deactivates the specified adapter contracts. - operationId: deactivateAndUnlinkAdapters + /smart-transfers/{ticketId}/external-id: + put: + description: Set external id Smart Transfer ticket + operationId: setExternalRefId parameters: + - explode: false + in: path + name: ticketId + required: true + schema: + type: string + style: simple - description: "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\ @@ -14825,68 +11852,63 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/RemoveLayerZeroAdaptersRequest" + $ref: "#/components/schemas/SmartTransferSetTicketExternalId" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/RemoveLayerZeroAdaptersResponse" - description: LayerZero adapters removal process completed - "400": - $ref: "#/components/responses/BadRequestError" + $ref: "#/components/schemas/SmartTransferTicketResponse" + description: Successfully set external id on Smart Transfer ticket + "403": + content: + application/json: + schema: + $ref: "#/components/schemas/SmartTransferForbiddenResponse" + description: Unauthorized "404": - $ref: "#/components/responses/OriginalTokenLinkNotFoundError" - "409": - $ref: "#/components/responses/TokenLinkProcessingError" - "500": - $ref: "#/components/responses/InternalServerError" - summary: Remove LayerZero adapters + content: + application/json: + schema: + $ref: "#/components/schemas/SmartTransferNotFoundResponse" + description: Not found + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/SmartTransferBadRequestResponse" + description: Bad Request + summary: Add external ref. ID tags: - - Tokenization - x-rate-limit-category: write + - Smart Transfer x-readme: code-samples: - - language: javascript - code: |- - const payload = { - "vaultAccountId": "1", - "adapterTokenLinkIds": ["d290f1ee-6c54-4b01-90e6-d701748f0851", "e290f1ee-6c54-4b01-90e6-d701748f0852"] - } const removeResponse = await fireblocks.deactivateAndUnlinkAdapters(payload); - name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise>\ - \ = fireblocks.tokenization.deactivateAndUnlinkAdapters(tokenizationApiDeactivateAndUnlinkAdaptersRequest);" + code: "const response: Promise>\ + \ = fireblocks.smartTransfer.setExternalRefId(smartTransferApiSetExternalRefIdRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response\ - \ = fireblocks.tokenization().deactivateAndUnlinkAdapters(removeLayerZeroAdaptersRequest,\ - \ idempotencyKey);" + code: "CompletableFuture> response\ + \ = fireblocks.smartTransfer().setExternalRefId(smartTransferSetTicketExternalId,\ + \ ticketId, idempotencyKey);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.tokenization.deactivate_and_unlink_adapters(remove_layer_zero_adapters_request,\ - \ idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.tokenization.deactivateAndUnlinkAdapters(tokenizationApiDeactivateAndUnlinkAdaptersRequest);" - - lang: Java - source: "CompletableFuture> response\ - \ = fireblocks.tokenization().deactivateAndUnlinkAdapters(removeLayerZeroAdaptersRequest,\ - \ idempotencyKey);" - - lang: Python - source: "response = fireblocks.tokenization.deactivate_and_unlink_adapters(remove_layer_zero_adapters_request,\ - \ idempotency_key);" x-content-type: application/json x-accepts: - application/json - post: - description: Deploy LayerZero adapters for multichain token bridging functionality. - This endpoint creates adapter contracts that enable cross-chain token transfers. - operationId: deployAndLinkAdapters + /smart-transfers/{ticketId}/submit: + put: + description: "Submit Smart Transfer ticket - change status into ready for approval\ + \ if auto approval is not turned on, or OPEN if auto approval is on" + operationId: submitTicket parameters: + - explode: false + in: path + name: ticketId + required: true + schema: + type: string + style: simple - description: "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\ @@ -14902,78 +11924,63 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/DeployLayerZeroAdaptersRequest" + $ref: "#/components/schemas/SmartTransferSubmitTicket" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/DeployLayerZeroAdaptersResponse" - description: LayerZero adapters deployed successfully - "400": - $ref: "#/components/responses/BadRequestError" + $ref: "#/components/schemas/SmartTransferTicketResponse" + description: Successfully submitted Smart Transfer ticket + "403": + content: + application/json: + schema: + $ref: "#/components/schemas/SmartTransferForbiddenResponse" + description: Unauthorized "404": - $ref: "#/components/responses/OriginalTokenLinkNotFoundError" - "409": - $ref: "#/components/responses/TokenLinkPreparationError" + content: + application/json: + schema: + $ref: "#/components/schemas/SmartTransferNotFoundResponse" + description: Not found "422": - $ref: "#/components/responses/OriginalTokenLinkNotFungibleError" - "500": - $ref: "#/components/responses/InternalServerError" - summary: Deploy LayerZero adapters + content: + application/json: + schema: + $ref: "#/components/schemas/SmartTransferBadRequestResponse" + description: Bad Request + summary: Submit ticket tags: - - Tokenization - x-rate-limit-category: write + - Smart Transfer x-readme: code-samples: - - language: javascript - code: |- - const payload = { - "vaultAccountId": "0", - "createParams": [{ - "tokenLinkId": "123-432-1234-1234-123456789012", - "delegateAddress": "0xABCDEF123456789abcdef1234567890abcdef12345678", - "defaultAdminAddress": "0xABC123456789abcdef1234567890abcdef12345678", - "pauserAddress": "0xDEFABC123456789abcdef1234567890abcdef12345678" - }], - "displayName": "LayerZero", - "useGasless": true - } const deployResponse = await fireblocks.deployAndLinkAdapters(payload); - name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise>\ - \ = fireblocks.tokenization.deployAndLinkAdapters(tokenizationApiDeployAndLinkAdaptersRequest);" + code: "const response: Promise>\ + \ = fireblocks.smartTransfer.submitTicket(smartTransferApiSubmitTicketRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture>> response\ - \ = fireblocks.tokenization().deployAndLinkAdapters(deployLayerZeroAdaptersRequest,\ - \ idempotencyKey);" + code: "CompletableFuture> response\ + \ = fireblocks.smartTransfer().submitTicket(smartTransferSubmitTicket,\ + \ ticketId, idempotencyKey);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.tokenization.deploy_and_link_adapters(deploy_layer_zero_adapters_request,\ - \ idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.tokenization.deployAndLinkAdapters(tokenizationApiDeployAndLinkAdaptersRequest);" - - lang: Java - source: "CompletableFuture>> response\ - \ = fireblocks.tokenization().deployAndLinkAdapters(deployLayerZeroAdaptersRequest,\ - \ idempotencyKey);" - - lang: Python - source: "response = fireblocks.tokenization.deploy_and_link_adapters(deploy_layer_zero_adapters_request,\ - \ idempotency_key);" x-content-type: application/json x-accepts: - application/json - /tokenization/multichain/bridge/layerzero/config/peers: - delete: - description: Remove LayerZero peers to disconnect adapter contracts. This endpoint - removes peer relationships between LayerZero adapters. - operationId: removeLayerZeroPeers + /smart-transfers/{ticketId}/fulfill: + put: + description: "Manually fulfill ticket, in case when all terms (legs) are funded\ + \ manually" + operationId: fulfillTicket parameters: + - explode: false + in: path + name: ticketId + required: true + schema: + type: string + style: simple - description: "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\ @@ -14985,76 +11992,58 @@ paths: schema: type: string style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/RemoveLayerZeroPeersRequest" - required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/RemoveLayerZeroPeersResponse" - description: LayerZero peers removal process completed - "400": - $ref: "#/components/responses/BadRequestError" + $ref: "#/components/schemas/SmartTransferTicketResponse" + description: Successfully fulfilled on Smart Transfer ticket + "403": + content: + application/json: + schema: + $ref: "#/components/schemas/SmartTransferForbiddenResponse" + description: Unauthorized "404": - $ref: "#/components/responses/OriginalTokenLinkNotFoundError" - "409": - $ref: "#/components/responses/TokenLinkProcessingError" - "500": - $ref: "#/components/responses/InternalServerError" - summary: Remove LayerZero peers + content: + application/json: + schema: + $ref: "#/components/schemas/SmartTransferNotFoundResponse" + description: Not found + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/SmartTransferBadRequestResponse" + description: Bad Request + summary: Fund ticket manually tags: - - Tokenization - x-rate-limit-category: write + - Smart Transfer x-readme: code-samples: - - language: javascript - code: |- - const payload = { - "vaultAccountId": "0", - "sourceAdapterTokenLinkId": "123-432-1234-1234-123456789012", - "destinationAdapterTokenLinkIds": ["123-432-1234-1234-123456789012", "123-432-1234-1234-123456789012"], - "bidirectional": true - } const removePeersResponse = await fireblocks.removeLayerZeroPeers(payload); - name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise>\ - \ = fireblocks.tokenization.removeLayerZeroPeers(tokenizationApiRemoveLayerZeroPeersRequest);" + code: "const response: Promise>\ + \ = fireblocks.smartTransfer.fulfillTicket(smartTransferApiFulfillTicketRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response\ - \ = fireblocks.tokenization().removeLayerZeroPeers(removeLayerZeroPeersRequest,\ - \ idempotencyKey);" + code: "CompletableFuture> response\ + \ = fireblocks.smartTransfer().fulfillTicket(ticketId, idempotencyKey);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.tokenization.remove_layer_zero_peers(remove_layer_zero_peers_request,\ - \ idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.tokenization.removeLayerZeroPeers(tokenizationApiRemoveLayerZeroPeersRequest);" - - lang: Java - source: "CompletableFuture> response\ - \ = fireblocks.tokenization().removeLayerZeroPeers(removeLayerZeroPeersRequest,\ - \ idempotencyKey);" - - lang: Python - source: "response = fireblocks.tokenization.remove_layer_zero_peers(remove_layer_zero_peers_request,\ - \ idempotency_key);" - x-content-type: application/json x-accepts: - application/json - post: - description: "Set LayerZero peers to establish connections between adapter contracts.\ - \ This endpoint creates peer relationships that enable cross-chain communication.\ - \ It sets the destination adapter as a peer of the source adapter. If `bidirectional`\ - \ is true, it also sets the source adapter as a peer of the destination adapter(s)." - operationId: setLayerZeroPeers + /smart-transfers/{ticketId}/cancel: + put: + description: Cancel Smart Transfer ticket + operationId: cancelTicket parameters: + - explode: false + in: path + name: ticketId + required: true + schema: + type: string + style: simple - description: "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\ @@ -15066,139 +12055,59 @@ paths: schema: type: string style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/SetLayerZeroPeersRequest" - required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/SetLayerZeroPeersResponse" - description: LayerZero peers set successfully - "400": - $ref: "#/components/responses/BadRequestError" + $ref: "#/components/schemas/SmartTransferTicketResponse" + description: Smart Transfer ticket successfully canceled + "403": + content: + application/json: + schema: + $ref: "#/components/schemas/SmartTransferForbiddenResponse" + description: Unauthorized "404": - $ref: "#/components/responses/OriginalTokenLinkNotFoundError" - "409": - $ref: "#/components/responses/TokenLinkPreparationError" + content: + application/json: + schema: + $ref: "#/components/schemas/SmartTransferNotFoundResponse" + description: Not found "422": - $ref: "#/components/responses/OriginalTokenLinkNotFungibleError" - "500": - $ref: "#/components/responses/InternalServerError" - summary: Set LayerZero peers + content: + application/json: + schema: + $ref: "#/components/schemas/SmartTransferBadRequestResponse" + description: Bad Request + summary: Cancel Ticket tags: - - Tokenization - x-rate-limit-category: write + - Smart Transfer x-readme: code-samples: - - language: javascript - code: |- - const payload = { - "vaultAccountId": "0", - "sourceAdapterTokenLinkId": "123-432-1234-1234-123456789012", - "destinationAdapterTokenLinkIds": ["123-432-1234-1234-123456789012", "123-432-1234-1234-123456789012"], - "bidirectional": true - } const setPeersResponse = await fireblocks.setLayerZeroPeers(payload); - name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise>\ - \ = fireblocks.tokenization.setLayerZeroPeers(tokenizationApiSetLayerZeroPeersRequest);" + code: "const response: Promise>\ + \ = fireblocks.smartTransfer.cancelTicket(smartTransferApiCancelTicketRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response\ - \ = fireblocks.tokenization().setLayerZeroPeers(setLayerZeroPeersRequest,\ - \ idempotencyKey);" + code: "CompletableFuture> response\ + \ = fireblocks.smartTransfer().cancelTicket(ticketId, idempotencyKey);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.tokenization.set_layer_zero_peers(set_layer_zero_peers_request,\ - \ idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.tokenization.setLayerZeroPeers(tokenizationApiSetLayerZeroPeersRequest);" - - lang: Java - source: "CompletableFuture> response\ - \ = fireblocks.tokenization().setLayerZeroPeers(setLayerZeroPeersRequest,\ - \ idempotencyKey);" - - lang: Python - source: "response = fireblocks.tokenization.set_layer_zero_peers(set_layer_zero_peers_request,\ - \ idempotency_key);" - x-content-type: application/json x-accepts: - application/json - /tokenization/multichain/bridge/layerzero/config/{adapterTokenLinkId}/peers: - get: - description: Retrieve the LayerZero peers configured for a specific adapter. - Returns information about peer relationships for cross-chain communication. - operationId: getLayerZeroPeers + /smart-transfers/{ticketId}/terms: + post: + description: Creates new smart transfer ticket term (when the ticket status + is DRAFT) + operationId: createTicketTerm parameters: - - description: The token link id of the adapter token link - example: b70701f4-d7b1-4795-a8ee-b09cdb5b850d - explode: false + - explode: false in: path - name: adapterTokenLinkId + name: ticketId required: true schema: - format: uuid type: string style: simple - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/GetLayerZeroPeersResponse" - description: LayerZero peers retrieved successfully - "400": - $ref: "#/components/responses/BadRequestError" - "404": - $ref: "#/components/responses/OriginalTokenLinkNotFoundError" - "500": - $ref: "#/components/responses/InternalServerError" - summary: Get LayerZero peers - tags: - - Tokenization - x-rate-limit-category: read - x-readme: - code-samples: - - language: javascript - code: const adapterTokenLinkId = "b70701f4-d7b1-4795-a8ee-b09cdb5b850d"; - const peersResponse = await fireblocks.getLayerZeroPeers(adapterTokenLinkId); - name: Fireblocks SDK Javascript example - - language: typescript - code: "const response: Promise>\ - \ = fireblocks.tokenization.getLayerZeroPeers(tokenizationApiGetLayerZeroPeersRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: CompletableFuture> response - = fireblocks.tokenization().getLayerZeroPeers(adapterTokenLinkId); - name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.tokenization.get_layer_zero_peers(adapter_token_link_id); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.tokenization.getLayerZeroPeers(tokenizationApiGetLayerZeroPeersRequest);" - - lang: Java - source: CompletableFuture> response - = fireblocks.tokenization().getLayerZeroPeers(adapterTokenLinkId); - - lang: Python - source: response = fireblocks.tokenization.get_layer_zero_peers(adapter_token_link_id); - x-accepts: - - application/json - /tokenization/multichain/bridge/layerzero/config/dvns: - post: - description: Configure DVN settings for LayerZero adapters. This endpoint sets - up the DVN configuration for message verification between source and destination - adapters. - operationId: setLayerZeroDvnConfig - parameters: - description: "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\ @@ -15214,312 +12123,162 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/SetLayerZeroDvnConfigRequest" + $ref: "#/components/schemas/SmartTransferCreateTicketTerm" required: true responses: - "200": + "201": content: application/json: schema: - $ref: "#/components/schemas/SetLayerZeroDvnConfigResponse" - description: LayerZero DVN configuration set successfully - "400": - $ref: "#/components/responses/BadRequestError" - "404": - $ref: "#/components/responses/OriginalTokenLinkNotFoundError" - "409": - $ref: "#/components/responses/TokenLinkPreparationError" + $ref: "#/components/schemas/SmartTransferTicketTermResponse" + description: Smart Transfer ticket term was created successfully + "403": + content: + application/json: + schema: + $ref: "#/components/schemas/SmartTransferForbiddenResponse" + description: Unauthorized "422": - $ref: "#/components/responses/BridgingProtocolBlockchainMetadataNotFoundError" - "500": - $ref: "#/components/responses/InternalServerError" - summary: Set LayerZero DVN configuration + content: + application/json: + schema: + $ref: "#/components/schemas/SmartTransferBadRequestResponse" + description: Bad Request + summary: Create leg (term) tags: - - Tokenization - x-rate-limit-category: write + - Smart Transfer x-readme: code-samples: - - language: javascript - code: |- - const payload = { - "vaultAccountId": "0", - "sourceAdapterTokenLinkId": "b70701f4-d7b1-4795-a8ee-b09cdb5b850d", - "destinationAdapterTokenLinkId": "6add4f2a-b206-4114-8f94-2882618ffbb4", - "sendConfig": { - "dvnAddresses": ["0xABCDEF123456789abcdef1234567890abcdef12345678", "0xABC123456789abcdef1234567890abcdef12345678"], - "optionalDVNAddresses": ["0xDEFABC123456789abcdef1234567890abcdef12345678"], - "optionalThreshold": 2 - }, - "receiveConfig": { - "dvnAddresses": ["0xABCDEF123456789abcdef1234567890abcdef12345678", "0xABC123456789abcdef1234567890abcdef12345678"], - "optionalThreshold": 1 - } - } const dvnConfigResponse = await fireblocks.setLayerZeroDvnConfig(payload); - name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise>\ - \ = fireblocks.tokenization.setLayerZeroDvnConfig(tokenizationApiSetLayerZeroDvnConfigRequest);" + code: "const response: Promise>\ + \ = fireblocks.smartTransfer.createTicketTerm(smartTransferApiCreateTicketTermRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response\ - \ = fireblocks.tokenization().setLayerZeroDvnConfig(setLayerZeroDvnConfigRequest,\ - \ idempotencyKey);" + code: "CompletableFuture> response\ + \ = fireblocks.smartTransfer().createTicketTerm(smartTransferCreateTicketTerm,\ + \ ticketId, idempotencyKey);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.tokenization.set_layer_zero_dvn_config(set_layer_zero_dvn_config_request,\ - \ idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.tokenization.setLayerZeroDvnConfig(tokenizationApiSetLayerZeroDvnConfigRequest);" - - lang: Java - source: "CompletableFuture> response\ - \ = fireblocks.tokenization().setLayerZeroDvnConfig(setLayerZeroDvnConfigRequest,\ - \ idempotencyKey);" - - lang: Python - source: "response = fireblocks.tokenization.set_layer_zero_dvn_config(set_layer_zero_dvn_config_request,\ - \ idempotency_key);" x-content-type: application/json x-accepts: - application/json - /tokenization/multichain/bridge/layerzero/config/{adapterTokenLinkId}/dvns: - get: - description: Retrieve the DVN (Data Verification Network) configuration for - a specific adapter. Returns DVN configurations for channels between the source - adapter and its peers. - operationId: getLayerZeroDvnConfig + /smart-transfers/{ticketId}/terms/{termId}: + delete: + description: Delete ticket term when ticket is in DRAFT status + operationId: removeTicketTerm parameters: - - description: The token link id of the adapter token link - example: b70701f4-d7b1-4795-a8ee-b09cdb5b850d - explode: false + - explode: false in: path - name: adapterTokenLinkId + name: ticketId required: true schema: - format: uuid type: string style: simple - - description: Optional peer adapter token link ID to filter results - example: 6add4f2a-b206-4114-8f94-2882618ffbb4 - explode: true - in: query - name: peerAdapterTokenLinkId - required: false + - explode: false + in: path + name: termId + required: true schema: - format: uuid type: string - style: form + style: simple responses: - "200": + "204": + description: Smart Transfer ticket term successfully removed + "403": content: application/json: schema: - $ref: "#/components/schemas/GetLayerZeroDvnConfigResponse" - description: LayerZero DVN configuration retrieved successfully - "400": - $ref: "#/components/responses/BadRequestError" + $ref: "#/components/schemas/SmartTransferForbiddenResponse" + description: Unauthorized "404": - $ref: "#/components/responses/OriginalTokenLinkNotFoundError" - "500": - $ref: "#/components/responses/InternalServerError" - summary: Get LayerZero DVN configuration + content: + application/json: + schema: + $ref: "#/components/schemas/SmartTransferNotFoundResponse" + description: Not found + summary: Delete ticket leg (term) tags: - - Tokenization - x-rate-limit-category: read + - Smart Transfer x-readme: code-samples: - - language: javascript - code: "const adapterTokenLinkId = \"b70701f4-d7b1-4795-a8ee-b09cdb5b850d\"\ - ; const peerAdapterTokenLinkId = \"6add4f2a-b206-4114-8f94-2882618ffbb4\"\ - ; // optional const dvnConfigResponse = await fireblocks.getLayerZeroDvnConfig(adapterTokenLinkId,\ - \ { peerAdapterTokenLinkId });" - name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise>\ - \ = fireblocks.tokenization.getLayerZeroDvnConfig(tokenizationApiGetLayerZeroDvnConfigRequest);" + code: "const response: Promise> = fireblocks.smartTransfer.removeTicketTerm(smartTransferApiRemoveTicketTermRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response\ - \ = fireblocks.tokenization().getLayerZeroDvnConfig(adapterTokenLinkId,\ - \ peerAdapterTokenLinkId);" + code: "CompletableFuture> response = fireblocks.smartTransfer().removeTicketTerm(ticketId,\ + \ termId);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.tokenization.get_layer_zero_dvn_config(adapter_token_link_id,\ - \ peer_adapter_token_link_id);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.tokenization.getLayerZeroDvnConfig(tokenizationApiGetLayerZeroDvnConfigRequest);" - - lang: Java - source: "CompletableFuture> response\ - \ = fireblocks.tokenization().getLayerZeroDvnConfig(adapterTokenLinkId,\ - \ peerAdapterTokenLinkId);" - - lang: Python - source: "response = fireblocks.tokenization.get_layer_zero_dvn_config(adapter_token_link_id,\ - \ peer_adapter_token_link_id);" x-accepts: - application/json - /tokenization/multichain/bridge/layerzero/validate: get: - description: Validate the LayerZero channel configuration between adapters. - This endpoint checks if the channel configuration is correct and returns any - validation errors. - operationId: validateLayerZeroChannelConfig + description: Find Smart Transfer ticket term by id + operationId: findTicketTermById parameters: - - description: The token link ID of the adapter - example: b70701f4-d7b1-4795-a8ee-b09cdb5b850d - explode: true - in: query - name: adapterTokenLinkId + - explode: false + in: path + name: ticketId required: true schema: - format: uuid type: string - style: form - - description: Peer adapter token link ID to validate against - example: 6add4f2a-b206-4114-8f94-2882618ffbb4 - explode: true - in: query - name: peerAdapterTokenLinkId + style: simple + - explode: false + in: path + name: termId required: true schema: - format: uuid type: string - style: form + style: simple responses: "200": content: application/json: schema: - $ref: "#/components/schemas/ValidateLayerZeroChannelResponse" - description: LayerZero channel configuration validation completed - "400": - $ref: "#/components/responses/BadRequestError" + $ref: "#/components/schemas/SmartTransferTicketTermResponse" + description: Smart Transfer ticket term returned successfully + "403": + content: + application/json: + schema: + $ref: "#/components/schemas/SmartTransferForbiddenResponse" + description: Unauthorized "404": - $ref: "#/components/responses/OriginalTokenLinkNotFoundError" - "422": - $ref: "#/components/responses/BridgingProtocolBlockchainMetadataNotFoundError" - "500": - $ref: "#/components/responses/InternalServerError" - summary: Validate LayerZero channel configuration - tags: - - Tokenization - x-rate-limit-category: read - x-readme: - code-samples: - - language: javascript - code: "const adapterTokenLinkId = \"b70701f4-d7b1-4795-a8ee-b09cdb5b850d\"\ - ; const peerAdapterTokenLinkId = \"6add4f2a-b206-4114-8f94-2882618ffbb4\"\ - ; const validationResponse = await fireblocks.validateLayerZeroChannelConfig({\ - \ \n adapterTokenLinkId,\n peerAdapterTokenLinkId \n});" - name: Fireblocks SDK Javascript example - - language: typescript - code: "const response: Promise>\ - \ = fireblocks.tokenization.validateLayerZeroChannelConfig(tokenizationApiValidateLayerZeroChannelConfigRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: "CompletableFuture>\ - \ response = fireblocks.tokenization().validateLayerZeroChannelConfig(adapterTokenLinkId,\ - \ peerAdapterTokenLinkId);" - name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.tokenization.validate_layer_zero_channel_config(adapter_token_link_id,\ - \ peer_adapter_token_link_id);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.tokenization.validateLayerZeroChannelConfig(tokenizationApiValidateLayerZeroChannelConfigRequest);" - - lang: Java - source: "CompletableFuture>\ - \ response = fireblocks.tokenization().validateLayerZeroChannelConfig(adapterTokenLinkId,\ - \ peerAdapterTokenLinkId);" - - lang: Python - source: "response = fireblocks.tokenization.validate_layer_zero_channel_config(adapter_token_link_id,\ - \ peer_adapter_token_link_id);" - x-accepts: - - application/json - /tokenization/collections: - get: - description: Get collections (paginated) - operationId: getLinkedCollections - parameters: - - description: "Page cursor to get the next page, for example - \"MjAyMy0xMi0xMyAyMDozNjowOC4zMDI=:MTEwMA==\"" - explode: true - in: query - name: pageCursor - required: false - schema: - type: string - style: form - - description: "Number of items per page (max 100), requesting more then 100\ - \ will return 100 items" - example: 10 - explode: true - in: query - name: pageSize - required: false - schema: - default: 100 - maximum: 100 - minimum: 1 - type: number - style: form - - description: A comma separated list of statuses to filter. Default is "COMPLETED" - example: COMPLETED - explode: true - in: query - name: status - required: false - schema: {} - style: form - responses: - "200": content: application/json: schema: - $ref: "#/components/schemas/GetLinkedCollectionsPaginatedResponse" - description: Collection fetched successfully - default: - $ref: "#/components/responses/Error" - summary: Get collections + $ref: "#/components/schemas/SmartTransferNotFoundResponse" + description: Not found + summary: Search ticket by leg (term) ID tags: - - Tokenization - x-rate-limit-category: query + - Smart Transfer x-readme: code-samples: - language: typescript - code: "const response: Promise>\ - \ = fireblocks.tokenization.getLinkedCollections(tokenizationApiGetLinkedCollectionsRequest);" + code: "const response: Promise>\ + \ = fireblocks.smartTransfer.findTicketTermById(smartTransferApiFindTicketTermByIdRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture>\ - \ response = fireblocks.tokenization().getLinkedCollections(pageCursor,\ - \ pageSize, status);" + code: "CompletableFuture> response\ + \ = fireblocks.smartTransfer().findTicketTermById(ticketId, termId);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.tokenization.get_linked_collections(page_cursor,\ - \ page_size, status);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.tokenization.getLinkedCollections(tokenizationApiGetLinkedCollectionsRequest);" - - lang: Java - source: "CompletableFuture>\ - \ response = fireblocks.tokenization().getLinkedCollections(pageCursor,\ - \ pageSize, status);" - - lang: Python - source: "response = fireblocks.tokenization.get_linked_collections(page_cursor,\ - \ page_size, status);" x-accepts: - application/json - post: - description: Create a new collection and link it as a token - operationId: createNewCollection + put: + description: Update ticket term (when ticket status is DRAFT) + operationId: updateTicketTerm parameters: + - explode: false + in: path + name: ticketId + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: termId + required: true + schema: + type: string + style: simple - description: "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\ @@ -15535,213 +12294,138 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/CollectionDeployRequestDto" + $ref: "#/components/schemas/SmartTransferUpdateTicketTerm" required: true responses: - "201": + "200": content: application/json: schema: - $ref: "#/components/schemas/CollectionLinkDto" - description: Collection was created successfully - default: - $ref: "#/components/responses/Error" - summary: Create a new collection + $ref: "#/components/schemas/SmartTransferTicketTermResponse" + description: Smart Transfer ticket term updated successfully + "403": + content: + application/json: + schema: + $ref: "#/components/schemas/SmartTransferForbiddenResponse" + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: "#/components/schemas/SmartTransferNotFoundResponse" + description: Not found + summary: Update ticket leg (term) tags: - - Tokenization - x-rate-limit-category: write + - Smart Transfer x-readme: code-samples: - language: typescript - code: "const response: Promise> =\ - \ fireblocks.tokenization.createNewCollection(tokenizationApiCreateNewCollectionRequest);" + code: "const response: Promise>\ + \ = fireblocks.smartTransfer.updateTicketTerm(smartTransferApiUpdateTicketTermRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response = fireblocks.tokenization().createNewCollection(collectionDeployRequestDto,\ - \ idempotencyKey);" + code: "CompletableFuture> response\ + \ = fireblocks.smartTransfer().updateTicketTerm(smartTransferUpdateTicketTerm,\ + \ ticketId, termId, idempotencyKey);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.tokenization.create_new_collection(collection_deploy_request_dto,\ - \ idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> =\ - \ fireblocks.tokenization.createNewCollection(tokenizationApiCreateNewCollectionRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.tokenization().createNewCollection(collectionDeployRequestDto,\ - \ idempotencyKey);" - - lang: Python - source: "response = fireblocks.tokenization.create_new_collection(collection_deploy_request_dto,\ - \ idempotency_key);" x-content-type: application/json x-accepts: - application/json - /tokenization/collections/{id}: - delete: - description: Delete a collection link - operationId: unlinkCollection + /smart-transfers/{ticketId}/terms/{termId}/fund: + put: + description: "Set funding source for ticket term (in case of ASYNC tickets,\ + \ this will execute transfer immediately)" + operationId: fundTicketTerm parameters: - - description: The token link id - example: fbfbfbfb-fbfb-fbfb-fbfb-fbfbfbfbfbfb - explode: false + - explode: false in: path - name: id + name: ticketId required: true schema: type: string style: simple - responses: - "204": - description: Collection unlinked successfully - "404": - description: Link for collection does not exist - default: - $ref: "#/components/responses/Error" - summary: Delete a collection link - tags: - - Tokenization - x-rate-limit-category: write - x-readme: - code-samples: - - language: typescript - code: "const response: Promise> = fireblocks.tokenization.unlinkCollection(tokenizationApiUnlinkCollectionRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: CompletableFuture> response = fireblocks.tokenization().unlinkCollection(id); - name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.tokenization.unlink_collection(id); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.tokenization.unlinkCollection(tokenizationApiUnlinkCollectionRequest);" - - lang: Java - source: CompletableFuture> response = fireblocks.tokenization().unlinkCollection(id); - - lang: Python - source: response = fireblocks.tokenization.unlink_collection(id); - x-accepts: - - application/json - get: - description: Get a collection by id - operationId: getCollectionById - parameters: - - description: The token link id - example: fbfbfbfb-fbfb-fbfb-fbfb-fbfbfbfbfbfb - explode: false + - explode: false in: path - name: id + name: termId required: true schema: type: string style: simple - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/CollectionLinkDto" - description: Collection fetched successfully - default: - $ref: "#/components/responses/Error" - summary: Get a collection by id - tags: - - Tokenization - x-rate-limit-category: read - x-readme: - code-samples: - - language: typescript - code: "const response: Promise> =\ - \ fireblocks.tokenization.getCollectionById(tokenizationApiGetCollectionByIdRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: CompletableFuture> response = fireblocks.tokenization().getCollectionById(id); - name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.tokenization.get_collection_by_id(id); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> =\ - \ fireblocks.tokenization.getCollectionById(tokenizationApiGetCollectionByIdRequest);" - - lang: Java - source: CompletableFuture> response = fireblocks.tokenization().getCollectionById(id); - - lang: Python - source: response = fireblocks.tokenization.get_collection_by_id(id); - x-accepts: - - application/json - /tokenization/collections/{id}/tokens/{tokenId}: - get: - description: Get collection token details by id - operationId: fetchCollectionTokenDetails - parameters: - - description: The collection link id - example: fbfbfbfb-fbfb-fbfb-fbfb-fbfbfbfbfbfb + - description: "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." explode: false - in: path - name: id - required: true + in: header + name: Idempotency-Key + required: false schema: type: string style: simple - - description: The tokenId as it appears on the blockchain - example: "1" - explode: false - in: path - name: tokenId + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/SmartTransferFundTerm" required: true - schema: - type: string - style: simple responses: - "200": + "201": content: application/json: schema: - $ref: "#/components/schemas/CollectionLinkDto" - description: Collection token details were fetched successfully - default: - $ref: "#/components/responses/Error" - summary: Get collection token details + $ref: "#/components/schemas/SmartTransferTicketTermResponse" + description: Funding source for ticket term successfully done + "403": + content: + application/json: + schema: + $ref: "#/components/schemas/SmartTransferForbiddenResponse" + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: "#/components/schemas/SmartTransferNotFoundResponse" + description: Not found + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/SmartTransferBadRequestResponse" + description: Bad Request + summary: Define funding source tags: - - Tokenization - x-rate-limit-category: read + - Smart Transfer x-readme: code-samples: - language: typescript - code: "const response: Promise> =\ - \ fireblocks.tokenization.fetchCollectionTokenDetails(tokenizationApiFetchCollectionTokenDetailsRequest);" + code: "const response: Promise>\ + \ = fireblocks.smartTransfer.fundTicketTerm(smartTransferApiFundTicketTermRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response = fireblocks.tokenization().fetchCollectionTokenDetails(id,\ - \ tokenId);" + code: "CompletableFuture> response\ + \ = fireblocks.smartTransfer().fundTicketTerm(smartTransferFundTerm, ticketId,\ + \ termId, idempotencyKey);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.tokenization.fetch_collection_token_details(id,\ - \ token_id);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> =\ - \ fireblocks.tokenization.fetchCollectionTokenDetails(tokenizationApiFetchCollectionTokenDetailsRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.tokenization().fetchCollectionTokenDetails(id,\ - \ tokenId);" - - lang: Python - source: "response = fireblocks.tokenization.fetch_collection_token_details(id,\ - \ token_id);" + x-content-type: application/json x-accepts: - application/json - /tokenization/collections/{id}/tokens/mint: - post: - description: Mint tokens and upload metadata - operationId: mintCollectionToken + /smart-transfers/{ticketId}/terms/{termId}/manually-fund: + put: + description: Manually set ticket term transaction + operationId: manuallyFundTicketTerm parameters: - - description: The collection link id - example: fbfbfbfb-fbfb-fbfb-fbfb-fbfbfbfbfbfb - explode: false + - explode: false in: path - name: id + name: ticketId + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: termId required: true schema: type: string @@ -15761,64 +12445,93 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/CollectionMintRequestDto" + $ref: "#/components/schemas/SmartTransferManuallyFundTerm" required: true responses: - "202": + "201": content: application/json: schema: - $ref: "#/components/schemas/CollectionMintResponseDto" - description: Tokens minted successfully - default: - $ref: "#/components/responses/Error" - summary: Mint tokens + $ref: "#/components/schemas/SmartTransferTicketTermResponse" + description: Successfully manually set ticket term transaction + "403": + content: + application/json: + schema: + $ref: "#/components/schemas/SmartTransferForbiddenResponse" + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: "#/components/schemas/SmartTransferNotFoundResponse" + description: Not found + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/SmartTransferBadRequestResponse" + description: Bad Request + summary: Manually add term transaction tags: - - Tokenization - x-rate-limit-category: async + - Smart Transfer x-readme: code-samples: - language: typescript - code: "const response: Promise>\ - \ = fireblocks.tokenization.mintCollectionToken(tokenizationApiMintCollectionTokenRequest);" + code: "const response: Promise>\ + \ = fireblocks.smartTransfer.manuallyFundTicketTerm(smartTransferApiManuallyFundTicketTermRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response\ - \ = fireblocks.tokenization().mintCollectionToken(collectionMintRequestDto,\ - \ id, idempotencyKey);" + code: "CompletableFuture> response\ + \ = fireblocks.smartTransfer().manuallyFundTicketTerm(smartTransferManuallyFundTerm,\ + \ ticketId, termId, idempotencyKey);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.tokenization.mint_collection_token(collection_mint_request_dto,\ - \ id, idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.tokenization.mintCollectionToken(tokenizationApiMintCollectionTokenRequest);" - - lang: Java - source: "CompletableFuture> response\ - \ = fireblocks.tokenization().mintCollectionToken(collectionMintRequestDto,\ - \ id, idempotencyKey);" - - lang: Python - source: "response = fireblocks.tokenization.mint_collection_token(collection_mint_request_dto,\ - \ id, idempotency_key);" x-content-type: application/json x-accepts: - application/json - /tokenization/collections/{id}/tokens/burn: + /smart-transfers/settings/user-groups: + get: + description: Get Smart Transfer user groups + operationId: getSmartTransferUserGroups + parameters: [] + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/SmartTransferUserGroupsResponse" + description: User group settings were returned successfully + "403": + content: + application/json: + schema: + $ref: "#/components/schemas/SmartTransferForbiddenResponse" + description: Unauthorized + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/SmartTransferBadRequestResponse" + description: Bad Request + summary: Get user group + tags: + - Smart Transfer + x-readme: + code-samples: + - language: typescript + code: "const response: Promise>\ + \ = fireblocks.smartTransfer.getSmartTransferUserGroups();" + name: Fireblocks SDK TypeScript example + - language: java + code: CompletableFuture> response + = fireblocks.smartTransfer().getSmartTransferUserGroups(); + name: Fireblocks SDK Java example + x-accepts: + - application/json post: - description: Burn tokens in a collection - operationId: burnCollectionToken + description: Set Smart Transfer user group + operationId: setUserGroups parameters: - - description: The collection link id - example: fbfbfbfb-fbfb-fbfb-fbfb-fbfbfbfbfbfb - explode: false - in: path - name: id - required: true - schema: - type: string - style: simple - description: "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\ @@ -15834,229 +12547,144 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/CollectionBurnRequestDto" + $ref: "#/components/schemas/SmartTransferSetUserGroups" required: true responses: - "202": + "201": content: application/json: schema: - $ref: "#/components/schemas/CollectionBurnResponseDto" - description: Tokens burned successfully - default: - $ref: "#/components/responses/Error" - summary: Burn tokens + $ref: "#/components/schemas/SmartTransferUserGroupsResponse" + description: User group settings were set successfully + "403": + content: + application/json: + schema: + $ref: "#/components/schemas/SmartTransferForbiddenResponse" + description: Unauthorized + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/SmartTransferBadRequestResponse" + description: Bad Request + summary: Set user group tags: - - Tokenization - x-rate-limit-category: write + - Smart Transfer x-readme: code-samples: - language: typescript - code: "const response: Promise>\ - \ = fireblocks.tokenization.burnCollectionToken(tokenizationApiBurnCollectionTokenRequest);" + code: "const response: Promise>\ + \ = fireblocks.smartTransfer.setUserGroups(smartTransferApiSetUserGroupsRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response\ - \ = fireblocks.tokenization().burnCollectionToken(collectionBurnRequestDto,\ - \ id, idempotencyKey);" + code: "CompletableFuture> response\ + \ = fireblocks.smartTransfer().setUserGroups(smartTransferSetUserGroups,\ + \ idempotencyKey);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.tokenization.burn_collection_token(collection_burn_request_dto,\ - \ id, idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.tokenization.burnCollectionToken(tokenizationApiBurnCollectionTokenRequest);" - - lang: Java - source: "CompletableFuture> response\ - \ = fireblocks.tokenization().burnCollectionToken(collectionBurnRequestDto,\ - \ id, idempotencyKey);" - - lang: Python - source: "response = fireblocks.tokenization.burn_collection_token(collection_burn_request_dto,\ - \ id, idempotency_key);" x-content-type: application/json x-accepts: - application/json - /contract_interactions/base_asset_id/{baseAssetId}/contract_address/{contractAddress}/functions: + /batch/jobs: get: - description: Return deployed contract's ABI by blockchain native asset id and - contract address - operationId: getDeployedContractAbi + description: "Get an array of objects including all active, paused, canceled,\ + \ and complete jobs in a workspace." + operationId: getJobs parameters: - - description: "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." - explode: false - in: header - name: Idempotency-Key + - description: Start of time range in ms since 1970 + explode: true + in: query + name: fromTime required: false schema: - type: string - style: simple - - description: The contract's onchain address - example: 0xC2c4e1Db41F0bB97996D0eD0542D2170d146FB66 - explode: false - in: path - name: contractAddress - required: true - schema: - type: string - style: simple - - explode: false - in: path - name: baseAssetId - required: true + type: integer + style: form + - description: End of time range in ms since 1970 + explode: true + in: query + name: toTime + required: false schema: - type: string - style: simple + type: integer + style: form responses: "200": content: application/json: schema: - $ref: "#/components/schemas/ContractAbiResponseDto" - description: "" + $ref: "#/components/schemas/Jobs" + description: An array of jobs + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: Return deployed contract's ABI + summary: Return a list of jobs belonging to tenant tags: - - Contract Interactions - x-rate-limit-category: read + - Job Management x-readme: code-samples: - - language: python - code: "deployed_contract_abi = fireblocks.get_contracts_abi(base_asset_id,\ - \ contract_address)" - name: Fireblocks SDK Python example (Legacy) - - language: javascript - code: "const deployedContractAbi = await fireblocks.getContractAbi(baseAssetId,\ - \ contractAddress);" - name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise>\ - \ = fireblocks.contractInteractions.getDeployedContractAbi(contractInteractionsApiGetDeployedContractAbiRequest);" + code: "const response: Promise> = fireblocks.jobManagement.getJobs(jobManagementApiGetJobsRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response =\ - \ fireblocks.contractInteractions().getDeployedContractAbi(contractAddress,\ - \ baseAssetId, idempotencyKey);" + code: "CompletableFuture>> response = fireblocks.jobManagement().getJobs(fromTime,\ + \ toTime);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.contract_interactions.get_deployed_contract_abi(contract_address,\ - \ base_asset_id, idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.contractInteractions.getDeployedContractAbi(contractInteractionsApiGetDeployedContractAbiRequest);" - - lang: Java - source: "CompletableFuture> response =\ - \ fireblocks.contractInteractions().getDeployedContractAbi(contractAddress,\ - \ baseAssetId, idempotencyKey);" - - lang: Python - source: "response = fireblocks.contract_interactions.get_deployed_contract_abi(contract_address,\ - \ base_asset_id, idempotency_key);" x-accepts: - application/json - /contract_interactions/base_asset_id/{baseAssetId}/contract_address/{contractAddress}/functions/read: - post: - description: Call a read function on a deployed contract by blockchain native - asset id and contract address - operationId: readCallFunction + /batch/{jobId}: + get: + description: Get an object describing the given job + operationId: getJob parameters: - - description: "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." - explode: false - in: header - name: Idempotency-Key - required: false - schema: - type: string - style: simple - - description: The contract's onchain address - example: 0xC2c4e1Db41F0bB97996D0eD0542D2170d146FB66 + - description: The requested job id explode: false in: path - name: contractAddress - required: true - schema: - type: string - style: simple - - explode: false - in: path - name: baseAssetId + name: jobId required: true schema: type: string style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/ReadCallFunctionDto" - required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/ParameterWithValueList" - description: Read Call Retrieved Successfully + $ref: "#/components/schemas/Job" + description: A JSON object that describes the job + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: Call a read function on a deployed contract + summary: Get job details tags: - - Contract Interactions + - Job Management x-readme: code-samples: - - language: python - code: "read_response = fireblocks.read_contract_call_function(base_asset_id,\ - \ contract_address, payload)" - name: Fireblocks SDK Python example (Legacy) - - language: javascript - code: "const readResponse= await fireblocks.readContractCallFunction(baseAssetId,\ - \ contractAddress, payload);" - name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise>\ - \ = fireblocks.contractInteractions.readCallFunction(contractInteractionsApiReadCallFunctionRequest);" + code: "const response: Promise> = fireblocks.jobManagement.getJob(jobManagementApiGetJobRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture>> response\ - \ = fireblocks.contractInteractions().readCallFunction(readCallFunctionDto,\ - \ contractAddress, baseAssetId, idempotencyKey);" + code: CompletableFuture> response = fireblocks.jobManagement().getJob(jobId); name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.contract_interactions.read_call_function(read_call_function_dto,\ - \ contract_address, base_asset_id, idempotency_key);" - name: Fireblocks SDK Python example - x-rate-limit-category: read - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.contractInteractions.readCallFunction(contractInteractionsApiReadCallFunctionRequest);" - - lang: Java - source: "CompletableFuture>> response\ - \ = fireblocks.contractInteractions().readCallFunction(readCallFunctionDto,\ - \ contractAddress, baseAssetId, idempotencyKey);" - - lang: Python - source: "response = fireblocks.contract_interactions.read_call_function(read_call_function_dto,\ - \ contract_address, base_asset_id, idempotency_key);" - x-content-type: application/json x-accepts: - application/json - /contract_interactions/base_asset_id/{baseAssetId}/contract_address/{contractAddress}/functions/write: + /batch/{jobId}/pause: post: - description: "Call a write function on a deployed contract by blockchain native\ - \ asset id and contract address. This creates an onchain transaction, thus\ - \ it is an async operation. It returns a transaction id that can be polled\ - \ for status check" - operationId: writeCallFunction + description: "Pause the given job, after the current task is done. A paused\ + \ job can later be resumed by calling ‘continue’, or canceled." + operationId: pauseJob parameters: + - description: The requested job id + explode: false + in: path + name: jobId + required: true + schema: + type: string + style: simple - description: "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\ @@ -16068,157 +12696,83 @@ paths: schema: type: string style: simple - - description: The contract's onchain address - example: 0xC2c4e1Db41F0bB97996D0eD0542D2170d146FB66 - explode: false - in: path - name: contractAddress - required: true - schema: - type: string - style: simple - - explode: false - in: path - name: baseAssetId - required: true - schema: - type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/WriteCallFunctionDto" - required: true responses: - "202": - content: - application/json: - schema: - $ref: "#/components/schemas/WriteCallFunctionResponseDto" - description: "" + "200": + description: paused successfully default: $ref: "#/components/responses/Error" - summary: Call a write function on a deployed contract + summary: Pause a job tags: - - Contract Interactions + - Job Management x-readme: code-samples: - - language: python - code: "write_function_response = fireblocks.write_contract_call_function(base_asset_id,\ - \ contract_address, payload)" - name: Fireblocks SDK Python example (Legacy) - - language: javascript - code: "const writeFunctionResponse = await fireblocks.writeContractCallFunction(baseAssetId,\ - \ contractAddress, payload);" - name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise>\ - \ = fireblocks.contractInteractions.writeCallFunction(contractInteractionsApiWriteCallFunctionRequest);" + code: "const response: Promise> = fireblocks.jobManagement.pauseJob(jobManagementApiPauseJobRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response\ - \ = fireblocks.contractInteractions().writeCallFunction(writeCallFunctionDto,\ - \ contractAddress, baseAssetId, idempotencyKey);" + code: "CompletableFuture> response = fireblocks.jobManagement().pauseJob(jobId,\ + \ idempotencyKey);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.contract_interactions.write_call_function(write_call_function_dto,\ - \ contract_address, base_asset_id, idempotency_key);" - name: Fireblocks SDK Python example - x-rate-limit-category: async - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.contractInteractions.writeCallFunction(contractInteractionsApiWriteCallFunctionRequest);" - - lang: Java - source: "CompletableFuture> response\ - \ = fireblocks.contractInteractions().writeCallFunction(writeCallFunctionDto,\ - \ contractAddress, baseAssetId, idempotencyKey);" - - lang: Python - source: "response = fireblocks.contract_interactions.write_call_function(write_call_function_dto,\ - \ contract_address, base_asset_id, idempotency_key);" - x-content-type: application/json x-accepts: - application/json - /contract_interactions/base_asset_id/{baseAssetId}/tx_hash/{txHash}/receipt: - get: - description: Retrieve the transaction receipt by blockchain native asset ID - and transaction hash - operationId: getTransactionReceipt + /batch/{jobId}/continue: + post: + description: Continue the given paused job. + operationId: continueJob parameters: - - description: The blockchain base assetId - example: ETH_TEST6 + - description: The requested job id explode: false in: path - name: baseAssetId + name: jobId required: true schema: type: string style: simple - - description: The transaction hash - example: 0x3b015ca0518c55d7bff4e3f5aa5d0431705771553ba8a95cf20e34cb597f57f6 + - description: "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." explode: false - in: path - name: txHash - required: true + in: header + name: Idempotency-Key + required: false schema: type: string style: simple responses: "200": - content: - application/json: - schema: - $ref: "#/components/schemas/TransactionReceiptResponse" - description: Retrieved The Transaction Receipt Successfully + description: continued successfully default: $ref: "#/components/responses/Error" - summary: Get transaction receipt + summary: Continue a paused job tags: - - Contract Interactions - x-rate-limit-category: read + - Job Management x-readme: code-samples: - - language: python - code: "transaction_receipt = fireblocks.get_transaction_receipt(base_asset_id,\ - \ tx_hash)" - name: Fireblocks SDK Python example (Legacy) - - language: javascript - code: "const transactionReceipt = await fireblocks.getTransactionReceipt(baseAssetId,\ - \ txHash);" - name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise>\ - \ = fireblocks.contractInteractions.getTransactionReceipt(contractInteractionsApiGetTransactionReceiptRequest);" + code: "const response: Promise> = fireblocks.jobManagement.continueJob(jobManagementApiContinueJobRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response\ - \ = fireblocks.contractInteractions().getTransactionReceipt(baseAssetId,\ - \ txHash);" + code: "CompletableFuture> response = fireblocks.jobManagement().continueJob(jobId,\ + \ idempotencyKey);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.contract_interactions.get_transaction_receipt(base_asset_id,\ - \ tx_hash);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.contractInteractions.getTransactionReceipt(contractInteractionsApiGetTransactionReceiptRequest);" - - lang: Java - source: "CompletableFuture> response\ - \ = fireblocks.contractInteractions().getTransactionReceipt(baseAssetId,\ - \ txHash);" - - lang: Python - source: "response = fireblocks.contract_interactions.get_transaction_receipt(base_asset_id,\ - \ tx_hash);" x-accepts: - application/json - /contract_interactions/base_asset_id/{baseAssetId}/contract_address/{contractAddress}/decode: + /batch/{jobId}/cancel: post: - description: "Decode a function call data, error, or event log from a deployed\ - \ contract by blockchain native asset id and contract address." - operationId: decodeContractData + description: "Stop the given job immediately. If the job is in the ‘Active’\ + \ state, the job will be canceled after completing the current task. Vault\ + \ accounts and Wallets that are already created will not be affected." + operationId: cancelJob parameters: + - description: The requested job id + explode: false + in: path + name: jobId + required: true + schema: + type: string + style: simple - description: "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\ @@ -16230,37473 +12784,10328 @@ paths: schema: type: string style: simple - - description: The contract's onchain address - example: 0xC2c4e1Db41F0bB97996D0eD0542D2170d146FB66 - explode: false - in: path - name: contractAddress - required: true - schema: - type: string - style: simple - - description: The blockchain native asset identifier - example: ETH - explode: false - in: path - name: baseAssetId - required: true - schema: - type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/ContractDataDecodeRequest" - required: true responses: "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ContractDataDecodedResponse" - description: Decoded data retrieved successfully - "400": - content: - application/json: - schema: - $ref: "#/components/schemas/ContractDataDecodeError" - description: "Bad request, invalid input data or parameters" + description: canceled successfully default: $ref: "#/components/responses/Error" - summary: "Decode a function call data, error, or event log" + summary: Cancel a running job tags: - - Contract Interactions - x-rate-limit-category: read + - Job Management x-readme: code-samples: - - language: javascript - code: |- - const payload = { - "data": "0xcd21db4f000000000000000000000000000000000000000000000000000000006790c645", - "dataType": "ERROR" - } const decodeResponse = await fireblocks.decodeContractData(baseAssetId, contractAddress, payload); - name: Fireblocks SDK Javascript example - language: typescript - code: "const response: Promise>\ - \ = fireblocks.contractInteractions.decodeContractData(contractInteractionsApiDecodeContractDataRequest);" + code: "const response: Promise> = fireblocks.jobManagement.cancelJob(jobManagementApiCancelJobRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response\ - \ = fireblocks.contractInteractions().decodeContractData(contractDataDecodeRequest,\ - \ contractAddress, baseAssetId, idempotencyKey);" + code: "CompletableFuture> response = fireblocks.jobManagement().cancelJob(jobId,\ + \ idempotencyKey);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.contract_interactions.decode_contract_data(contract_data_decode_request,\ - \ contract_address, base_asset_id, idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.contractInteractions.decodeContractData(contractInteractionsApiDecodeContractDataRequest);" - - lang: Java - source: "CompletableFuture> response\ - \ = fireblocks.contractInteractions().decodeContractData(contractDataDecodeRequest,\ - \ contractAddress, baseAssetId, idempotencyKey);" - - lang: Python - source: "response = fireblocks.contract_interactions.decode_contract_data(contract_data_decode_request,\ - \ contract_address, base_asset_id, idempotency_key);" - x-content-type: application/json x-accepts: - application/json - /staking/chains: + /batch/{jobId}/tasks: get: - description: Return an alphabetical list of supported chains. - operationId: getChains + description: Return a list of tasks for given job + operationId: getJobTasks + parameters: + - description: The requested job id + explode: false + in: path + name: jobId + required: true + schema: + type: string + style: simple responses: "200": content: application/json: schema: - $ref: "#/components/schemas/StakingGetChainsResponse" - description: An array of supported chains was returned successfully + $ref: "#/components/schemas/Tasks" + description: An array of tasks headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: List staking supported chains + summary: Return a list of tasks for given job tags: - - Staking - x-rate-limit-category: query + - Job Management x-readme: code-samples: - language: typescript - code: "const response: Promise>\ - \ = fireblocks.staking.getChains();" + code: "const response: Promise> = fireblocks.jobManagement.getJobTasks(jobManagementApiGetJobTasksRequest);" name: Fireblocks SDK TypeScript example - language: java - code: CompletableFuture>> response = fireblocks.staking().getChains(); + code: CompletableFuture>> response = fireblocks.jobManagement().getJobTasks(jobId); name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.staking.get_chains(); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.staking.getChains();" - - lang: Java - source: CompletableFuture>> response = fireblocks.staking().getChains(); - - lang: Python - source: response = fireblocks.staking.get_chains(); x-accepts: - application/json - /staking/chains/{chainDescriptor}/chainInfo: + /cosigners: get: - description: "Return chain-specific, staking-related information summary (e.g.\ - \ epoch details, lockup durations, estimated rewards, etc.)" - operationId: getChainInfo + description: | + Get all workspace cosigners (paginated) + **Note:** These endpoints are currently in beta and might be subject to changes. + operationId: getCosigners parameters: - - description: The protocol identifier (e.g. "ETH"/"SOL"/"MATIC"/"STETH_ETH") - to use - example: SOL - explode: false - in: path - name: chainDescriptor - required: true + - description: ASC / DESC ordering (default DESC) + example: ASC + explode: true + in: query + name: order + required: false schema: - $ref: "#/components/schemas/ChainDescriptor" - style: simple + default: DESC + enum: + - ASC + - DESC + type: string + style: form + - description: Cursor of the required page + explode: true + in: query + name: pageCursor + required: false + schema: + type: string + style: form + - description: Maximum number of items in the page + example: 10 + explode: true + in: query + name: pageSize + required: false + schema: + default: 10 + maximum: 100 + minimum: 1 + type: number + style: form responses: "200": content: application/json: schema: - $ref: "#/components/schemas/ChainInfoResponse" - description: Chain specific info summary was returned successfully + $ref: "#/components/schemas/CosignersPaginatedResponse" + description: A paginated response containing Cosigner objects headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: Get chain-specific staking summary + summary: Get all cosigners tags: - - Staking - x-rate-limit-category: query + - Cosigners (Beta) x-readme: code-samples: - language: typescript - code: "const response: Promise> =\ - \ fireblocks.staking.getChainInfo(stakingApiGetChainInfoRequest);" + code: "const response: Promise>\ + \ = fireblocks.cosignersBeta.getCosigners(cosignersBetaApiGetCosignersRequest);" name: Fireblocks SDK TypeScript example - language: java - code: CompletableFuture> response = fireblocks.staking().getChainInfo(chainDescriptor); + code: "CompletableFuture> response\ + \ = fireblocks.cosignersBeta().getCosigners(order, pageCursor, pageSize);" name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.staking.get_chain_info(chain_descriptor); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> =\ - \ fireblocks.staking.getChainInfo(stakingApiGetChainInfoRequest);" - - lang: Java - source: CompletableFuture> response = fireblocks.staking().getChainInfo(chainDescriptor); - - lang: Python - source: response = fireblocks.staking.get_chain_info(chain_descriptor); x-accepts: - application/json - /staking/chains/{chainDescriptor}/stake: - post: - description: Perform a chain-specific Stake. - operationId: stake + /cosigners/{cosignerId}: + get: + description: | + Get a cosigner by ID + **Note:** These endpoints are currently in beta and might be subject to changes. + operationId: getCosigner parameters: - - description: The protocol identifier (e.g. "ETH"/"SOL"/"MATIC") to use - example: SOL + - description: The unique identifier of the cosigner + example: 44fcead0-7053-4831-a53a-df7fb90d440f explode: false in: path - name: chainDescriptor + name: cosignerId required: true schema: - $ref: "#/components/schemas/ChainDescriptor" - style: simple - - description: "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." - explode: false - in: header - name: Idempotency-Key - required: false - schema: + format: uuid type: string style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/StakeRequest" - required: true responses: - "201": + "200": content: application/json: schema: - $ref: "#/components/schemas/StakeResponse" - description: Stake action has been executed successfully on vault and is - associated with 201 status code. + $ref: "#/components/schemas/Cosigner" + description: A cosigner object headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: Initiate Stake Operation + summary: Get cosigner tags: - - Staking - x-rate-limit-category: write + - Cosigners (Beta) x-readme: code-samples: - language: typescript - code: "const response: Promise> = fireblocks.staking.stake(stakingApiStakeRequest);" + code: "const response: Promise> = fireblocks.cosignersBeta.getCosigner(cosignersBetaApiGetCosignerRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response = fireblocks.staking().stake(stakeRequest,\ - \ chainDescriptor, idempotencyKey);" + code: CompletableFuture> response = fireblocks.cosignersBeta().getCosigner(cosignerId); name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.staking.stake(stake_request, chain_descriptor,\ - \ idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.staking.stake(stakingApiStakeRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.staking().stake(stakeRequest,\ - \ chainDescriptor, idempotencyKey);" - - lang: Python - source: "response = fireblocks.staking.stake(stake_request, chain_descriptor,\ - \ idempotency_key);" - x-content-type: application/json x-accepts: - application/json - /staking/chains/{chainDescriptor}/unstake: - post: - description: Execute an Unstake operation - operationId: unstake + patch: + description: | + Rename a cosigner by ID + **Note:** These endpoints are currently in beta and might be subject to changes. + operationId: renameCosigner parameters: - - description: The protocol identifier (e.g. "ETH"/"SOL"/"MATIC") to use - example: SOL + - description: The unique identifier of the cosigner + example: 44fcead0-7053-4831-a53a-df7fb90d440f explode: false in: path - name: chainDescriptor + name: cosignerId required: true schema: - $ref: "#/components/schemas/ChainDescriptor" - style: simple - - description: "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." - explode: false - in: header - name: Idempotency-Key - required: false - schema: + format: uuid type: string style: simple requestBody: content: application/json: schema: - $ref: "#/components/schemas/UnstakeRequest" + $ref: "#/components/schemas/RenameCosigner" required: true responses: - "201": - description: Unstake action has been executed successfully on vault and - is associated with 201 status code. + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/Cosigner" + description: A cosigner object headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: Execute an Unstake operation + summary: Rename cosigner tags: - - Staking - x-rate-limit-category: write + - Cosigners (Beta) x-readme: code-samples: - language: typescript - code: "const response: Promise> = fireblocks.staking.unstake(stakingApiUnstakeRequest);" + code: "const response: Promise> = fireblocks.cosignersBeta.renameCosigner(cosignersBetaApiRenameCosignerRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response = fireblocks.staking().unstake(unstakeRequest,\ - \ chainDescriptor, idempotencyKey);" + code: "CompletableFuture> response = fireblocks.cosignersBeta().renameCosigner(renameCosigner,\ + \ cosignerId);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.staking.unstake(unstake_request, chain_descriptor,\ - \ idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.staking.unstake(stakingApiUnstakeRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.staking().unstake(unstakeRequest,\ - \ chainDescriptor, idempotencyKey);" - - lang: Python - source: "response = fireblocks.staking.unstake(unstake_request, chain_descriptor,\ - \ idempotency_key);" x-content-type: application/json x-accepts: - application/json - /staking/chains/{chainDescriptor}/withdraw: - post: - description: Perform a chain-specific Withdraw. - operationId: withdraw + /cosigners/{cosignerId}/api_keys: + get: + description: | + Get all cosigner paired API keys (paginated) + **Note:** These endpoints are currently in beta and might be subject to changes. + operationId: getApiKeys parameters: - - description: The protocol identifier (e.g. "ETH"/"SOL"/"MATIC") to use - example: SOL + - description: The unique identifier of the cosigner + example: 44fcead0-7053-4831-a53a-df7fb90d440f explode: false in: path - name: chainDescriptor + name: cosignerId required: true schema: - $ref: "#/components/schemas/ChainDescriptor" + format: uuid + type: string style: simple - - description: "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." - explode: false - in: header - name: Idempotency-Key + - description: ASC / DESC ordering (default DESC) + example: ASC + explode: true + in: query + name: order required: false schema: + default: DESC + enum: + - ASC + - DESC type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/WithdrawRequest" - required: true + style: form + - description: Cursor of the required page + explode: true + in: query + name: pageCursor + required: false + schema: + type: string + style: form + - description: Maximum number of items in the page + example: 10 + explode: true + in: query + name: pageSize + required: false + schema: + default: 10 + maximum: 100 + minimum: 1 + type: number + style: form responses: - "201": - description: Withdraw action has been executed successfully on vault and - is associated with 201 status code. + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ApiKeysPaginatedResponse" + description: A paginated response containing ApiKey objects headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: Execute a Withdraw operation + summary: Get all API keys tags: - - Staking - x-rate-limit-category: write + - Cosigners (Beta) x-readme: code-samples: - language: typescript - code: "const response: Promise> = fireblocks.staking.withdraw(stakingApiWithdrawRequest);" + code: "const response: Promise>\ + \ = fireblocks.cosignersBeta.getApiKeys(cosignersBetaApiGetApiKeysRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response = fireblocks.staking().withdraw(withdrawRequest,\ - \ chainDescriptor, idempotencyKey);" + code: "CompletableFuture> response\ + \ = fireblocks.cosignersBeta().getApiKeys(cosignerId, order, pageCursor,\ + \ pageSize);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.staking.withdraw(withdraw_request, chain_descriptor,\ - \ idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.staking.withdraw(stakingApiWithdrawRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.staking().withdraw(withdrawRequest,\ - \ chainDescriptor, idempotencyKey);" - - lang: Python - source: "response = fireblocks.staking.withdraw(withdraw_request, chain_descriptor,\ - \ idempotency_key);" - x-content-type: application/json x-accepts: - application/json - /staking/chains/{chainDescriptor}/claim_rewards: - post: - description: Perform a chain-specific Claim Rewards. - operationId: claimRewards + /cosigners/{cosignerId}/api_keys/{apiKeyId}: + get: + description: | + Get an API key by ID + **Note:** These endpoints are currently in beta and might be subject to changes. + operationId: getApiKey parameters: - - description: The protocol identifier (e.g. "MATIC"/"SOL") to use - example: MATIC + - description: The unique identifier of the cosigner + example: 44fcead0-7053-4831-a53a-df7fb90d440f explode: false in: path - name: chainDescriptor + name: cosignerId required: true schema: - enum: - - MATIC - - SOL - - SOL_TEST + format: uuid type: string style: simple - - description: "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." - explode: false - in: header - name: Idempotency-Key - required: false - schema: - type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/ClaimRewardsRequest" - required: true - responses: - "201": - description: Claim Rewards action has been executed successfully on vault - and is associated with 201 status code. - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: Execute a Claim Rewards operation - tags: - - Staking - x-rate-limit-category: write - x-readme: - code-samples: - - language: typescript - code: "const response: Promise> = fireblocks.staking.claimRewards(stakingApiClaimRewardsRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: "CompletableFuture> response = fireblocks.staking().claimRewards(claimRewardsRequest,\ - \ chainDescriptor, idempotencyKey);" - name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.staking.claim_rewards(claim_rewards_request,\ - \ chain_descriptor, idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.staking.claimRewards(stakingApiClaimRewardsRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.staking().claimRewards(claimRewardsRequest,\ - \ chainDescriptor, idempotencyKey);" - - lang: Python - source: "response = fireblocks.staking.claim_rewards(claim_rewards_request,\ - \ chain_descriptor, idempotency_key);" - x-content-type: application/json - x-accepts: - - application/json - /staking/chains/{chainDescriptor}/split: - post: - description: Perform a Solana Split stake account. - operationId: split - parameters: - - description: The protocol identifier (e.g. "SOL"/"SOL_TEST") to use - example: SOL + - description: The unique identifier of the API key + example: 44fcead0-7053-4831-a53a-df7fb90d440f explode: false in: path - name: chainDescriptor + name: apiKeyId required: true - schema: - enum: - - SOL - - SOL_TEST - type: string - style: simple - - description: "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." - explode: false - in: header - name: Idempotency-Key - required: false schema: type: string style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/SplitRequest" - required: true responses: - "201": + "200": content: application/json: schema: - $ref: "#/components/schemas/SplitResponse" - description: Split action has been executed successfully on vault and is - associated with 201 status code. + $ref: "#/components/schemas/ApiKey" + description: An ApiKey object headers: X-Request-ID: $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: Execute a Split operation on SOL/SOL_TEST stake account + summary: Get API key tags: - - Staking - x-rate-limit-category: write + - Cosigners (Beta) x-readme: code-samples: - language: typescript - code: "const response: Promise> = fireblocks.staking.split(stakingApiSplitRequest);" + code: "const response: Promise> = fireblocks.cosignersBeta.getApiKey(cosignersBetaApiGetApiKeyRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response = fireblocks.staking().split(splitRequest,\ - \ chainDescriptor, idempotencyKey);" + code: "CompletableFuture> response = fireblocks.cosignersBeta().getApiKey(cosignerId,\ + \ apiKeyId);" name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.staking.split(split_request, chain_descriptor,\ - \ idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.staking.split(stakingApiSplitRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.staking().split(splitRequest,\ - \ chainDescriptor, idempotencyKey);" - - lang: Python - source: "response = fireblocks.staking.split(split_request, chain_descriptor,\ - \ idempotency_key);" - x-content-type: application/json x-accepts: - application/json - /staking/chains/{chainDescriptor}/merge: - post: - description: |- - Perform a Solana Merge of two active stake accounts into one. - - Endpoint Permission: Owner, Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. - operationId: mergeStakeAccounts - parameters: - - description: The protocol identifier (e.g. "SOL"/"SOL_TEST") to use - example: SOL - explode: false - in: path - name: chainDescriptor - required: true - schema: - enum: - - SOL - - SOL_TEST +components: + headers: + X-Request-ID: + description: Unique ID correlated to the API request. Please provide it in any + support ticket you create or on Github issues related to Fireblocks SDKs + explode: false + schema: + type: string + style: simple + next-page: + description: URL representing a new request to this API endpoint to receive + the next page of results. + explode: false + schema: + type: string + style: simple + prev-page: + description: URL representing a new request to this API endpoint to receive + the previous page of results. + explode: false + schema: + type: string + style: simple + parameters: + X-Idempotency-Key: + description: "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." + explode: false + in: header + name: Idempotency-Key + required: false + schema: + type: string + style: simple + X-End-User-Wallet-Id: + description: Unique ID of the End-User wallet to the API request. Required for + end-user wallet operations. + explode: false + in: header + name: X-End-User-Wallet-Id + required: false + schema: + format: uuid + type: string + style: simple + responses: + Error: + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorSchema" + description: Error Response + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" + schemas: + ErrorSchema: + example: + code: 6.027456183070403 + message: message + properties: + message: type: string - style: simple - - description: "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." - explode: false - in: header - name: Idempotency-Key - required: false - schema: + code: + type: number + type: object + RewardsInfo: + example: + pendingRewards: pendingRewards + properties: + pendingRewards: + description: Amount that is pending for rewards type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/MergeStakeAccountsRequest" - required: true - responses: - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/MergeStakeAccountsResponse" - description: Merge action has been executed successfully on vault and is - associated with 201 status code. - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: Merge Solana on stake accounts - tags: - - Staking - x-rate-limit-category: write - x-readme: - code-samples: - - language: typescript - code: "const response: Promise>\ - \ = fireblocks.staking.mergeStakeAccounts(stakingApiMergeStakeAccountsRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: "CompletableFuture> response\ - \ = fireblocks.staking().mergeStakeAccounts(mergeStakeAccountsRequest,\ - \ chainDescriptor, idempotencyKey);" - name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.staking.merge_stake_accounts(merge_stake_accounts_request,\ - \ chain_descriptor, idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.staking.mergeStakeAccounts(stakingApiMergeStakeAccountsRequest);" - - lang: Java - source: "CompletableFuture> response\ - \ = fireblocks.staking().mergeStakeAccounts(mergeStakeAccountsRequest, chainDescriptor,\ - \ idempotencyKey);" - - lang: Python - source: "response = fireblocks.staking.merge_stake_accounts(merge_stake_accounts_request,\ - \ chain_descriptor, idempotency_key);" - x-content-type: application/json - x-accepts: - - application/json - /staking/positions: - get: - description: "Return detailed information on all staking positions, including\ - \ the staked amount, rewards, status and more." - operationId: getAllDelegations - parameters: - - description: Use "ETH" / "SOL" / "MATIC" / "STETH_ETH" in order to obtain - information related to the specific blockchain network or retrieve information - about all chains that have data available by providing no argument. - example: SOL - explode: true - in: query - name: chainDescriptor - required: false - schema: - $ref: "#/components/schemas/ChainDescriptor" - style: form - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/StakingGetAllDelegationsResponse" - description: An array of position data was returned successfully - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: List staking positions details - tags: - - Staking - x-rate-limit-category: query - x-readme: - code-samples: - - language: typescript - code: "const response: Promise>\ - \ = fireblocks.staking.getAllDelegations(stakingApiGetAllDelegationsRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: CompletableFuture>> response = fireblocks.staking().getAllDelegations(chainDescriptor); - name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.staking.get_all_delegations(chain_descriptor); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.staking.getAllDelegations(stakingApiGetAllDelegationsRequest);" - - lang: Java - source: CompletableFuture>> response = fireblocks.staking().getAllDelegations(chainDescriptor); - - lang: Python - source: response = fireblocks.staking.get_all_delegations(chain_descriptor); - x-accepts: - - application/json - /staking/positions/summary: - get: - description: "Return a summary of all vaults, categorized by their status (active,\ - \ inactive), the total amounts staked and total rewards per-chain." - operationId: getSummary - responses: - "200": - content: - application/json: - example: - active: - - chainDescriptor: ETH - amount: "64.036604667" - - chainDescriptor: SOL - amount: "0.077345939" - inactive: - - chainDescriptor: ETH - amount: "0" - - chainDescriptor: SOL - amount: "0" - rewardsAmount: - - chainDescriptor: ETH - amount: "0.036604667" - - chainDescriptor: SOL - amount: "0.001345939" - totalStaked: - - chainDescriptor: ETH - amount: "64.036604667" - - chainDescriptor: SOL - amount: "0.077345939" - schema: - $ref: "#/components/schemas/DelegationSummary" - description: A summary for all vaults were returned successfully - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: Get staking summary details - tags: - - Staking - x-rate-limit-category: query - x-readme: - code-samples: - - language: typescript - code: "const response: Promise> =\ - \ fireblocks.staking.getSummary();" - name: Fireblocks SDK TypeScript example - - language: java - code: CompletableFuture> response = fireblocks.staking().getSummary(); - name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.staking.get_summary(); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> =\ - \ fireblocks.staking.getSummary();" - - lang: Java - source: CompletableFuture> response = fireblocks.staking().getSummary(); - - lang: Python - source: response = fireblocks.staking.get_summary(); - x-accepts: - - application/json - /staking/positions/summary/vaults: - get: - description: "Return a summary for each vault, categorized by their status (active,\ - \ inactive), the total amounts staked and total rewards per-chain." - operationId: getSummaryByVault - responses: - "200": - content: - application/json: - example: - "0": - active: - - chainDescriptor: SOL - amount: "0.015202376" - inactive: - - chainDescriptor: SOL - amount: "0" - rewardsAmount: - - chainDescriptor: SOL - amount: "0.000202376" - totalStaked: - - chainDescriptor: SOL - amount: "0.015202376" - "1": - active: - - chainDescriptor: ETH - amount: "64.036604667" - - chainDescriptor: SOL - amount: "0.011191566" - inactive: - - chainDescriptor: ETH - amount: "0" - - chainDescriptor: SOL - amount: "0" - rewardsAmount: - - chainDescriptor: ETH - amount: "0.036604667" - - chainDescriptor: SOL - amount: "0.000191566" - totalStaked: - - chainDescriptor: ETH - amount: "64.036604667" - - chainDescriptor: SOL - amount: "0.011191566" - schema: - $ref: "#/components/schemas/StakingGetSummaryByVaultResponse" - description: A summary for each vault were returned successfully - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: Get staking summary details by vault - tags: - - Staking - x-rate-limit-category: query - x-readme: - code-samples: - - language: typescript - code: "const response: Promise>\ - \ = fireblocks.staking.getSummaryByVault();" - name: Fireblocks SDK TypeScript example - - language: java - code: CompletableFuture> response - = fireblocks.staking().getSummaryByVault(); - name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.staking.get_summary_by_vault(); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.staking.getSummaryByVault();" - - lang: Java - source: CompletableFuture> response - = fireblocks.staking().getSummaryByVault(); - - lang: Python - source: response = fireblocks.staking.get_summary_by_vault(); - x-accepts: - - application/json - /staking/positions/{id}: - get: - description: "Return detailed information on a staking position, including the\ - \ staked amount, rewards, status and more." - operationId: getDelegationById - parameters: - - description: The unique identifier of the staking position - example: 1fe3b61f-7e1f-4a19-aff0-4f0a524d44d7 - explode: false - in: path - name: id - required: true - schema: - type: string - style: simple - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/Delegation" - description: Position data was returned successfully - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: Get staking position details - tags: - - Staking - x-rate-limit-category: query - x-readme: - code-samples: - - language: typescript - code: "const response: Promise> = fireblocks.staking.getDelegationById(stakingApiGetDelegationByIdRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: CompletableFuture> response = fireblocks.staking().getDelegationById(id); - name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.staking.get_delegation_by_id(id); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.staking.getDelegationById(stakingApiGetDelegationByIdRequest);" - - lang: Java - source: CompletableFuture> response = fireblocks.staking().getDelegationById(id); - - lang: Python - source: response = fireblocks.staking.get_delegation_by_id(id); - x-accepts: - - application/json - /staking/providers: - get: - description: Return information on all the available staking providers. - operationId: getProviders - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/StakingGetProvidersResponse" - description: An array of supported providers was returned successfully - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: List staking providers details - tags: - - Staking - x-rate-limit-category: query - x-readme: - code-samples: - - language: typescript - code: "const response: Promise>\ - \ = fireblocks.staking.getProviders();" - name: Fireblocks SDK TypeScript example - - language: java - code: CompletableFuture>> response = fireblocks.staking().getProviders(); - name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.staking.get_providers(); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.staking.getProviders();" - - lang: Java - source: CompletableFuture>> response = fireblocks.staking().getProviders(); - - lang: Python - source: response = fireblocks.staking.get_providers(); - x-accepts: - - application/json - /staking/providers/{providerId}/approveTermsOfService: - post: - description: |- - Approve the terms of service of the staking provider. - This must be called before performing a staking action for the first time with this provider. - operationId: approveTermsOfServiceByProviderId - parameters: - - description: The unique identifier of the staking provider - example: kiln - explode: false - in: path - name: providerId - required: true - schema: - $ref: "#/components/schemas/StakingProvider" - style: simple - - description: "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." - explode: false - in: header - name: Idempotency-Key - required: false - schema: - type: string - style: simple - responses: - "201": - description: The terms of service have been successfully approved and is - associated with 201 status code. - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: Approve staking terms of service - tags: - - Staking - x-rate-limit-category: write - x-readme: - code-samples: - - language: typescript - code: "const response: Promise> = fireblocks.staking.approveTermsOfServiceByProviderId(stakingApiApproveTermsOfServiceByProviderIdRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: "CompletableFuture> response = fireblocks.staking().approveTermsOfServiceByProviderId(providerId,\ - \ idempotencyKey);" - name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.staking.approve_terms_of_service_by_provider_id(provider_id,\ - \ idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.staking.approveTermsOfServiceByProviderId(stakingApiApproveTermsOfServiceByProviderIdRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.staking().approveTermsOfServiceByProviderId(providerId,\ - \ idempotencyKey);" - - lang: Python - source: "response = fireblocks.staking.approve_terms_of_service_by_provider_id(provider_id,\ - \ idempotency_key);" - x-accepts: - - application/json - /trading/providers: - get: - description: |- - Retrieve a list of all available external providers supporting trading activities through the platform. - - Note: These endpoints are currently in beta and might be subject to changes. - - If you want to participate and learn more about the Fireblocks Trading, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. - - Endpoint Permission: Owner, Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. - operationId: getTradingProviders - parameters: - - description: Page size for pagination. - explode: true - in: query - name: pageSize - required: false - schema: - default: 20 - maximum: 100 - minimum: 1 - type: integer - style: form - - description: Page cursor for pagination. - explode: true - in: query - name: pageCursor - required: false - schema: - type: string - style: form - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ProvidersListResponse" - description: Providers response - "401": - content: - application/json: - schema: - $ref: "#/components/schemas/TradingErrorResponse" - description: Unauthorized. Missing / invalid JWT token in Authorization - header. - "5XX": - content: - application/json: - schema: - $ref: "#/components/schemas/TradingErrorResponse" - description: Internal error. - summary: Get providers - tags: - - Trading (Beta) - x-rate-limit-category: query - x-readme: - code-samples: - - language: typescript - code: "const response: Promise>\ - \ = fireblocks.tradingBeta.getTradingProviders(tradingBetaApiGetTradingProvidersRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: "CompletableFuture> response =\ - \ fireblocks.tradingBeta().getTradingProviders(pageSize, pageCursor);" - name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.trading_beta.get_trading_providers(page_size,\ - \ page_cursor);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.tradingBeta.getTradingProviders(tradingBetaApiGetTradingProvidersRequest);" - - lang: Java - source: "CompletableFuture> response =\ - \ fireblocks.tradingBeta().getTradingProviders(pageSize, pageCursor);" - - lang: Python - source: "response = fireblocks.trading_beta.get_trading_providers(page_size,\ - \ page_cursor);" - x-accepts: - - application/json - /trading/quotes: - post: - description: |- - Generate a time-limited quote for asset conversion, providing exchange rate and amount calculations. - - Note: These endpoints are currently in beta and might be subject to changes. - - If you want to participate and learn more about the Fireblocks Trading, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. - - Endpoint Permission: Owner, Admin, Non-Signing Admin, Signer, Editor. - operationId: createQuote - parameters: - - description: "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." - explode: false - in: header - name: Idempotency-Key - required: false - schema: - type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/CreateQuote" - required: true - responses: - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/QuotesResponse" - description: Quote created - "401": - content: - application/json: - schema: - $ref: "#/components/schemas/TradingErrorResponse" - description: Unauthorized. Missing / invalid JWT token in Authorization - header. - "404": - content: - application/json: - schema: - $ref: "#/components/schemas/TradingErrorResponse" - description: Not found - "5XX": - content: - application/json: - schema: - $ref: "#/components/schemas/TradingErrorResponse" - description: Internal error. - summary: Create a quote - tags: - - Trading (Beta) - x-rate-limit-category: write - x-readme: - code-samples: - - language: typescript - code: "const response: Promise> = fireblocks.tradingBeta.createQuote(tradingBetaApiCreateQuoteRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: "CompletableFuture> response = fireblocks.tradingBeta().createQuote(createQuote,\ - \ idempotencyKey);" - name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.trading_beta.create_quote(create_quote, idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.tradingBeta.createQuote(tradingBetaApiCreateQuoteRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.tradingBeta().createQuote(createQuote,\ - \ idempotencyKey);" - - lang: Python - source: "response = fireblocks.trading_beta.create_quote(create_quote, idempotency_key);" - x-content-type: application/json - x-accepts: - - application/json - /trading/orders: - get: - description: |- - Retrieve a paginated list of orders with optional filtering by account, provider, status, and time range. - - Note:These endpoints are currently in beta and might be subject to changes. - - If you want to participate and learn more about the Fireblocks Trading, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. - - Endpoint Permission: Owner, Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. - operationId: getOrders - parameters: - - description: pageSize for pagination. - explode: true - in: query - name: pageSize - required: true - schema: - maximum: 100 - minimum: 1 - type: integer - style: form - - explode: true - in: query - name: pageCursor - required: false - schema: - minLength: 1 - type: string - style: form - - description: ASC / DESC ordering (default DESC) - explode: true - in: query - name: order - required: false - schema: - default: DESC - enum: - - ASC - - DESC - type: string - style: form - - description: Filter by accountId. - explode: true - in: query - name: accountId - required: false - schema: - items: - minLength: 1 - type: string - type: array - style: form - - description: Filter by providerId. - explode: true - in: query - name: providerId - required: false - schema: - items: - minLength: 1 - type: string - type: array - style: form - - description: Filter by order status. - explode: true - in: query - name: statuses - required: false - schema: - items: - $ref: "#/components/schemas/OrderStatus" - type: array - style: form - - explode: true - in: query - name: startTime - required: false - schema: - minimum: 0 - type: integer - style: form - - explode: true - in: query - name: endTime - required: false - schema: - minimum: 0 - type: integer - style: form - - explode: true - in: query - name: assetConversionType - required: false - schema: - description: Filter by asset conversion type. - enum: - - DIGITAL_ONLY - - FIAT - type: string - style: form - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/GetOrdersResponse" - description: Orders response - "401": - content: - application/json: - schema: - $ref: "#/components/schemas/TradingErrorResponse" - description: Unauthorized. Missing / invalid JWT token in Authorization - header. - "404": - content: - application/json: - schema: - $ref: "#/components/schemas/TradingErrorResponse" - description: Not found - "5XX": - content: - application/json: - schema: - $ref: "#/components/schemas/TradingErrorResponse" - description: Internal error. - summary: Get orders - tags: - - Trading (Beta) - x-rate-limit-category: read - x-readme: - code-samples: - - language: typescript - code: "const response: Promise> =\ - \ fireblocks.tradingBeta.getOrders(tradingBetaApiGetOrdersRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: "CompletableFuture> response = fireblocks.tradingBeta().getOrders(pageSize,\ - \ pageCursor, order, accountId, providerId, statuses, startTime, endTime,\ - \ assetConversionType);" - name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.trading_beta.get_orders(page_size, page_cursor,\ - \ order, account_id, provider_id, statuses, start_time, end_time, asset_conversion_type);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> =\ - \ fireblocks.tradingBeta.getOrders(tradingBetaApiGetOrdersRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.tradingBeta().getOrders(pageSize,\ - \ pageCursor, order, accountId, providerId, statuses, startTime, endTime,\ - \ assetConversionType);" - - lang: Python - source: "response = fireblocks.trading_beta.get_orders(page_size, page_cursor,\ - \ order, account_id, provider_id, statuses, start_time, end_time, asset_conversion_type);" - x-accepts: - - application/json - post: - description: |- - Create an order to buy or sell an asset. If no source is given, an external source will be use. - - Note: These endpoints are currently in beta and might be subject to changes. - - If you want to participate and learn more about the Fireblocks Trading, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. - - Endpoint Permission: Owner, Admin, Non-Signing Admin, Signer, Editor. - operationId: createOrder - parameters: - - description: "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." - explode: false - in: header - name: Idempotency-Key - required: false - schema: - type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/CreateOrderRequest" - required: true - responses: - "202": - content: - application/json: - schema: - $ref: "#/components/schemas/OrderDetails" - description: Order creation response - "401": - content: - application/json: - schema: - $ref: "#/components/schemas/TradingErrorResponse" - description: Unauthorized. Missing / invalid JWT token in Authorization - header. - "404": - content: - application/json: - schema: - $ref: "#/components/schemas/TradingErrorResponse" - description: Not found - "5XX": - content: - application/json: - schema: - $ref: "#/components/schemas/TradingErrorResponse" - description: Internal error. - summary: Create an order - tags: - - Trading (Beta) - x-rate-limit-category: write - x-readme: - code-samples: - - language: typescript - code: "const response: Promise> = fireblocks.tradingBeta.createOrder(tradingBetaApiCreateOrderRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: "CompletableFuture> response = fireblocks.tradingBeta().createOrder(createOrderRequest,\ - \ idempotencyKey);" - name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.trading_beta.create_order(create_order_request,\ - \ idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.tradingBeta.createOrder(tradingBetaApiCreateOrderRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.tradingBeta().createOrder(createOrderRequest,\ - \ idempotencyKey);" - - lang: Python - source: "response = fireblocks.trading_beta.create_order(create_order_request,\ - \ idempotency_key);" - x-content-type: application/json - x-accepts: - - application/json - /trading/orders/{orderId}: - get: - description: |- - Retrieve detailed information about a specific order by its ID. - - Note:These endpoints are currently in beta and might be subject to changes. - - If you want to participate and learn more about the Fireblocks Trading, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. - - Endpoint Permission: Owner, Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. - operationId: getOrder - parameters: - - description: The ID of the order to fetch. - explode: false - in: path - name: orderId - required: true - schema: - minLength: 1 - type: string - style: simple - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/OrderDetails" - description: Order response - "401": - content: - application/json: - schema: - $ref: "#/components/schemas/TradingErrorResponse" - description: Unauthorized. Missing / invalid JWT token in Authorization - header. - "404": - content: - application/json: - schema: - $ref: "#/components/schemas/TradingErrorResponse" - description: Not found - "5XX": - content: - application/json: - schema: - $ref: "#/components/schemas/TradingErrorResponse" - description: Internal error. - summary: Get order details - tags: - - Trading (Beta) - x-rate-limit-category: read - x-readme: - code-samples: - - language: typescript - code: "const response: Promise> = fireblocks.tradingBeta.getOrder(tradingBetaApiGetOrderRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: CompletableFuture> response = fireblocks.tradingBeta().getOrder(orderId); - name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.trading_beta.get_order(order_id); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.tradingBeta.getOrder(tradingBetaApiGetOrderRequest);" - - lang: Java - source: CompletableFuture> response = fireblocks.tradingBeta().getOrder(orderId); - - lang: Python - source: response = fireblocks.trading_beta.get_order(order_id); - x-accepts: - - application/json - /admin_quorum: - put: - description: Update admin quorum threshold - operationId: setAdminQuorumThreshold - parameters: - - description: "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." - explode: false - in: header - name: Idempotency-Key - required: false - schema: - type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/SetAdminQuorumThresholdRequest" - required: true - responses: - "202": - content: - application/json: - schema: - $ref: "#/components/schemas/SetAdminQuorumThresholdResponse" - description: OK - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: Update admin quorum threshold - tags: - - Admin Quorum - x-internal: true - x-rate-limit-category: write - x-readme: - code-samples: - - language: python - code: result = fireblocks.set_admin_quorum_threshold(adminQuorumThreshold) - name: Fireblocks SDK Python example (Legacy) - - language: javascript - code: const result = await fireblocks.setAdminQuorumThreshold(adminQuorumThreshold) - name: Fireblocks SDK Javascript example - x-content-type: application/json - x-accepts: - - application/json - /nfts/ownership/tokens: - get: - description: | - Returns all tokens and their data in your workspace. - operationId: getOwnershipTokens - parameters: - - description: Blockchain descriptor filter - explode: true - in: query - name: blockchainDescriptor - required: false - schema: - enum: - - ETH - - ETH_TEST3 - - ETH_TEST5 - - ETH_TEST6 - - POLYGON - - POLYGON_TEST_MUMBAI - - AMOY_POLYGON_TEST - - XTZ - - XTZ_TEST - - BASECHAIN_ETH - - BASECHAIN_ETH_TEST3 - - BASECHAIN_ETH_TEST5 - - ETHERLINK - - ETHERLINK_TEST - - MANTLE - - MANTLE_TEST - - GUN_GUNZILLA - - GUN_GUNZILLA_TEST - - ETH_SONEIUM - - SONEIUM_MINATO_TEST - - IOTX_IOTEX - - KLAY_KAIA - - KLAY_KAIA_TEST - - APECHAIN - - APECHAIN_TEST - type: string - style: form - - description: A comma separated list of Vault Account IDs. Up to 100 are allowed - in a single request. This field will be ignored when walletType=END_USER_WALLET - or ncwId is provided. - explode: true - in: query - name: vaultAccountIds - required: false - schema: - type: string - style: form - - description: Tenant's Non-Custodial Wallet ID - explode: true - in: query - name: ncwId - required: false - schema: - type: string - style: form - - description: A comma separated list of Non-Custodial account IDs. Up to 100 - are allowed in a single request. This field will be ignored when walletType=VAULT_ACCOUNT - or ncwId is not provided. - explode: true - in: query - name: ncwAccountIds - required: false - schema: - type: string - style: form - - description: "Wallet type, it can be `VAULT_ACCOUNT` or `END_USER_WALLET`" - explode: true - in: query - name: walletType - required: false - schema: - default: VAULT_ACCOUNT - enum: - - VAULT_ACCOUNT - - END_USER_WALLET - type: string - style: form - - description: A comma separated list of NFT IDs. Up to 100 are allowed in a - single request. - explode: true - in: query - name: ids - required: false - schema: - type: string - style: form - - description: A comma separated list of collection IDs. Up to 100 are allowed - in a single request. - explode: true - in: query - name: collectionIds - required: false - schema: - type: string - style: form - - description: Page cursor to fetch - explode: true - in: query - name: pageCursor - required: false - schema: - type: string - style: form - - description: Items per page (max 100) - explode: true - in: query - name: pageSize - required: false - schema: - maximum: 100 - minimum: 1 - type: number - style: form - - description: "Sort by param, it can be one param or a list of params separated\ - \ by comma" - explode: true - in: query - name: sort - required: false - schema: - items: - enum: - - ownershipLastUpdateTime - - name - - collection.name - - blockchainDescriptor - type: string - type: array - style: form - - description: "Order direction, it can be `ASC` for ascending or `DESC` for\ - \ descending" - explode: true - in: query - name: order - required: false - schema: - default: ASC - enum: - - DESC - - ASC - type: string - style: form - - description: Token ownership status - explode: true - in: query - name: status - required: false - schema: - default: LISTED - enum: - - LISTED - - ARCHIVED - type: string - style: form - - description: "Search owned tokens and their collections. Possible criteria\ - \ for search: token name and id within the contract/collection, collection\ - \ name, blockchain descriptor and name." - explode: true - in: query - name: search - required: false - schema: - maximum: 100 - type: string - style: form - - description: Token ownership spam status. - explode: true - in: query - name: spam - required: false - schema: - enum: - - "true" - - "false" - - all - type: string - style: form - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/GetOwnershipTokensResponse" - description: "" - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - summary: List all owned tokens (paginated) - tags: - - NFTs - x-rate-limit-category: query - x-readme: - code-samples: - - language: typescript - code: "const response: Promise>\ - \ = fireblocks.nFTs.getOwnershipTokens(nFTsApiGetOwnershipTokensRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: "CompletableFuture> response\ - \ = fireblocks.nFTs().getOwnershipTokens(blockchainDescriptor, vaultAccountIds,\ - \ ncwId, ncwAccountIds, walletType, ids, collectionIds, pageCursor, pageSize,\ - \ sort, order, status, search, spam);" - name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.n_f_ts.get_ownership_tokens(blockchain_descriptor,\ - \ vault_account_ids, ncw_id, ncw_account_ids, wallet_type, ids, collection_ids,\ - \ page_cursor, page_size, sort, order, status, search, spam);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.nFTs.getOwnershipTokens(nFTsApiGetOwnershipTokensRequest);" - - lang: Java - source: "CompletableFuture> response\ - \ = fireblocks.nFTs().getOwnershipTokens(blockchainDescriptor, vaultAccountIds,\ - \ ncwId, ncwAccountIds, walletType, ids, collectionIds, pageCursor, pageSize,\ - \ sort, order, status, search, spam);" - - lang: Python - source: "response = fireblocks.n_f_ts.get_ownership_tokens(blockchain_descriptor,\ - \ vault_account_ids, ncw_id, ncw_account_ids, wallet_type, ids, collection_ids,\ - \ page_cursor, page_size, sort, order, status, search, spam);" - x-accepts: - - application/json - put: - description: | - Updates all tokens and balances per blockchain and vault account. - operationId: updateOwnershipTokens - parameters: - - description: Blockchain descriptor filter - explode: true - in: query - name: blockchainDescriptor - required: true - schema: - enum: - - ETH - - ETH_TEST5 - - ETH_TEST6 - - POLYGON - - POLYGON_TEST_MUMBAI - - AMOY_POLYGON_TEST - - BASECHAIN_ETH - - BASECHAIN_ETH_TEST5 - - ETHERLINK - - ETHERLINK_TEST - - MANTLE - - MANTLE_TEST - - GUN_GUNZILLA - - GUN_GUNZILLA_TEST - - ETH_SONEIUM - - SONEIUM_MINATO_TEST - - IOTX_IOTEX - - KLAY_KAIA - - KLAY_KAIA_TEST - - APECHAIN - - APECHAIN_TEST - type: string - style: form - - description: Vault account filter - explode: true - in: query - name: vaultAccountId - required: true - schema: - type: string - style: form - - description: "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." - explode: false - in: header - name: Idempotency-Key - required: false - schema: - type: string - style: simple - responses: - "202": - description: "" - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - summary: Refresh vault account tokens - tags: - - NFTs - x-rate-limit-category: write - x-readme: - code-samples: - - language: typescript - code: "const response: Promise> = fireblocks.nFTs.updateOwnershipTokens(nFTsApiUpdateOwnershipTokensRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: "CompletableFuture> response = fireblocks.nFTs().updateOwnershipTokens(blockchainDescriptor,\ - \ vaultAccountId, idempotencyKey);" - name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.n_f_ts.update_ownership_tokens(blockchain_descriptor,\ - \ vault_account_id, idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.nFTs.updateOwnershipTokens(nFTsApiUpdateOwnershipTokensRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.nFTs().updateOwnershipTokens(blockchainDescriptor,\ - \ vaultAccountId, idempotencyKey);" - - lang: Python - source: "response = fireblocks.n_f_ts.update_ownership_tokens(blockchain_descriptor,\ - \ vault_account_id, idempotency_key);" - x-accepts: - - application/json - /nfts/ownership/assets: - get: - description: | - Returns all owned distinct tokens (for your tenant) and their data in your workspace. - operationId: listOwnedTokens - parameters: - - description: Tenant's Non-Custodial Wallet ID - explode: true - in: query - name: ncwId - required: false - schema: - type: string - style: form - - description: "Wallet type, it can be `VAULT_ACCOUNT` or `END_USER_WALLET`" - explode: true - in: query - name: walletType - required: false - schema: - default: VAULT_ACCOUNT - enum: - - VAULT_ACCOUNT - - END_USER_WALLET - type: string - style: form - - description: Page cursor to fetch - explode: true - in: query - name: pageCursor - required: false - schema: - type: string - style: form - - description: Items per page (max 100) - explode: true - in: query - name: pageSize - required: false - schema: - maximum: 100 - minimum: 1 - type: number - style: form - - description: "Sort by param, it can be one param or a list of params separated\ - \ by comma" - explode: true - in: query - name: sort - required: false - schema: - items: - enum: - - name - type: string - type: array - style: form - - description: "Order direction, it can be `ASC` for ascending or `DESC` for\ - \ descending" - explode: true - in: query - name: order - required: false - schema: - default: ASC - enum: - - DESC - - ASC - type: string - style: form - - description: Token ownership status - explode: true - in: query - name: status - required: false - schema: - default: LISTED - enum: - - LISTED - - ARCHIVED - type: string - style: form - - description: Search owned tokens by token name - explode: true - in: query - name: search - required: false - schema: - maximum: 100 - type: string - style: form - - description: Token ownership spam status. - explode: true - in: query - name: spam - required: false - schema: - enum: - - "true" - - "false" - - all - type: string - style: form - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ListOwnedTokensResponse" - description: "" - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - summary: List all distinct owned tokens (paginated) - tags: - - NFTs - x-rate-limit-category: query - x-readme: - code-samples: - - language: typescript - code: "const response: Promise>\ - \ = fireblocks.nFTs.listOwnedTokens(nFTsApiListOwnedTokensRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: "CompletableFuture> response\ - \ = fireblocks.nFTs().listOwnedTokens(ncwId, walletType, pageCursor, pageSize,\ - \ sort, order, status, search, spam);" - name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.n_f_ts.list_owned_tokens(ncw_id, wallet_type,\ - \ page_cursor, page_size, sort, order, status, search, spam);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.nFTs.listOwnedTokens(nFTsApiListOwnedTokensRequest);" - - lang: Java - source: "CompletableFuture> response\ - \ = fireblocks.nFTs().listOwnedTokens(ncwId, walletType, pageCursor, pageSize,\ - \ sort, order, status, search, spam);" - - lang: Python - source: "response = fireblocks.n_f_ts.list_owned_tokens(ncw_id, wallet_type,\ - \ page_cursor, page_size, sort, order, status, search, spam);" - x-accepts: - - application/json - /nfts/ownership/collections: - get: - description: | - Returns all collections in your workspace - operationId: listOwnedCollections - parameters: - - description: Tenant's Non-Custodial Wallet ID - explode: true - in: query - name: ncwId - required: false - schema: - type: string - style: form - - description: "Wallet type, it can be `VAULT_ACCOUNT` or `END_USER_WALLET`" - explode: true - in: query - name: walletType - required: false - schema: - default: VAULT_ACCOUNT - enum: - - VAULT_ACCOUNT - - END_USER_WALLET - type: string - style: form - - description: "Search owned collections. Possible criteria for search: collection\ - \ name, collection contract address." - explode: true - in: query - name: search - required: false - schema: - maximum: 100 - type: string - style: form - - description: Page cursor to fetch - explode: true - in: query - name: pageCursor - required: false - schema: - type: string - style: form - - description: Items per page (max 100) - explode: true - in: query - name: pageSize - required: false - schema: - maximum: 100 - minimum: 1 - type: number - style: form - - description: "Sort by param, it can be one param or a list of params separated\ - \ by comma" - explode: true - in: query - name: sort - required: false - schema: - items: - enum: - - name - type: string - type: array - style: form - - description: "Order direction, it can be `ASC` for ascending or `DESC` for\ - \ descending" - explode: true - in: query - name: order - required: false - schema: - default: ASC - enum: - - DESC - - ASC - type: string - style: form - - description: Token ownership status - explode: true - in: query - name: status - required: false - schema: - default: LISTED - enum: - - LISTED - - ARCHIVED - type: string - style: form - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ListOwnedCollectionsResponse" - description: "" - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - summary: List owned collections (paginated) - tags: - - NFTs - x-rate-limit-category: query - x-readme: - code-samples: - - language: typescript - code: "const response: Promise>\ - \ = fireblocks.nFTs.listOwnedCollections(nFTsApiListOwnedCollectionsRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: "CompletableFuture> response\ - \ = fireblocks.nFTs().listOwnedCollections(ncwId, walletType, search,\ - \ pageCursor, pageSize, sort, order, status);" - name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.n_f_ts.list_owned_collections(ncw_id, wallet_type,\ - \ search, page_cursor, page_size, sort, order, status);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.nFTs.listOwnedCollections(nFTsApiListOwnedCollectionsRequest);" - - lang: Java - source: "CompletableFuture> response\ - \ = fireblocks.nFTs().listOwnedCollections(ncwId, walletType, search, pageCursor,\ - \ pageSize, sort, order, status);" - - lang: Python - source: "response = fireblocks.n_f_ts.list_owned_collections(ncw_id, wallet_type,\ - \ search, page_cursor, page_size, sort, order, status);" - x-accepts: - - application/json - /nfts/tokens/{id}: - get: - description: | - Returns the requested token data. - operationId: getNFT - parameters: - - description: NFT ID - example: NFT-abcdefabcdefabcdefabcdefabcdefabcdefabcd - explode: false - in: path - name: id - required: true - schema: - type: string - style: simple - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/TokenResponse" - description: "" - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - summary: List token data by ID - tags: - - NFTs - x-rate-limit-category: query - x-readme: - code-samples: - - language: typescript - code: "const response: Promise> = fireblocks.nFTs.getNFT(nFTsApiGetNFTRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: CompletableFuture> response = fireblocks.nFTs().getNFT(id); - name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.n_f_ts.get_n_f_t(id); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.nFTs.getNFT(nFTsApiGetNFTRequest);" - - lang: Java - source: CompletableFuture> response = fireblocks.nFTs().getNFT(id); - - lang: Python - source: response = fireblocks.n_f_ts.get_n_f_t(id); - x-accepts: - - application/json - put: - description: | - Updates the latest token metadata. - operationId: refreshNFTMetadata - parameters: - - description: Unique ID of the End-User wallet to the API request. Required - for end-user wallet operations. - explode: false - in: header - name: X-End-User-Wallet-Id - required: false - schema: - format: uuid - type: string - style: simple - - description: NFT ID - example: NFT-abcdefabcdefabcdefabcdefabcdefabcdefabcd - explode: false - in: path - name: id - required: true - schema: - type: string - style: simple - - description: "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." - explode: false - in: header - name: Idempotency-Key - required: false - schema: - type: string - style: simple - responses: - "202": - description: "" - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - summary: Refresh token metadata - tags: - - NFTs - x-rate-limit-category: write - x-readme: - code-samples: - - language: typescript - code: "const response: Promise> = fireblocks.nFTs.refreshNFTMetadata(nFTsApiRefreshNFTMetadataRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: "CompletableFuture> response = fireblocks.nFTs().refreshNFTMetadata(id,\ - \ xEndUserWalletId, idempotencyKey);" - name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.n_f_ts.refresh_n_f_t_metadata(id, x_end_user_wallet_id,\ - \ idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.nFTs.refreshNFTMetadata(nFTsApiRefreshNFTMetadataRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.nFTs().refreshNFTMetadata(id,\ - \ xEndUserWalletId, idempotencyKey);" - - lang: Python - source: "response = fireblocks.n_f_ts.refresh_n_f_t_metadata(id, x_end_user_wallet_id,\ - \ idempotency_key);" - x-accepts: - - application/json - /nfts/tokens: - get: - description: | - Returns the requested tokens data. - operationId: getNFTs - parameters: - - description: A comma separated list of NFT IDs. Up to 100 are allowed in a - single request. - explode: true - in: query - name: ids - required: true - schema: - type: string - style: form - - description: Page cursor to fetch - explode: true - in: query - name: pageCursor - required: false - schema: - type: string - style: form - - description: Items per page (max 100) - explode: true - in: query - name: pageSize - required: false - schema: - maximum: 100 - minimum: 1 - type: number - style: form - - description: "Sort by param, it can be one param or a list of params separated\ - \ by comma" - explode: true - in: query - name: sort - required: false - schema: - items: - enum: - - collection.name - - name - - blockchainDescriptor - type: string - type: array - style: form - - description: "Order direction, it can be `ASC` for ascending or `DESC` for\ - \ descending" - explode: true - in: query - name: order - required: false - schema: - default: ASC - enum: - - DESC - - ASC - type: string - style: form - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/GetNFTsResponse" - description: "" - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - summary: List tokens by IDs - tags: - - NFTs - x-rate-limit-category: query - x-readme: - code-samples: - - language: typescript - code: "const response: Promise> = fireblocks.nFTs.getNFTs(nFTsApiGetNFTsRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: "CompletableFuture> response = fireblocks.nFTs().getNFTs(ids,\ - \ pageCursor, pageSize, sort, order);" - name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.n_f_ts.get_n_f_ts(ids, page_cursor, page_size,\ - \ sort, order);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.nFTs.getNFTs(nFTsApiGetNFTsRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.nFTs().getNFTs(ids,\ - \ pageCursor, pageSize, sort, order);" - - lang: Python - source: "response = fireblocks.n_f_ts.get_n_f_ts(ids, page_cursor, page_size,\ - \ sort, order);" - x-accepts: - - application/json - /nfts/ownership/tokens/{id}/status: - put: - description: | - Updates token status for a tenant, in all tenant vaults. - operationId: updateTokenOwnershipStatus - parameters: - - description: Unique ID of the End-User wallet to the API request. Required - for end-user wallet operations. - explode: false - in: header - name: X-End-User-Wallet-Id - required: false - schema: - format: uuid - type: string - style: simple - - description: NFT ID - example: NFT-abcdefabcdefabcdefabcdefabcdefabcdefabcd - explode: false - in: path - name: id - required: true - schema: - type: string - style: simple - - description: "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." - explode: false - in: header - name: Idempotency-Key - required: false - schema: - type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/UpdateTokenOwnershipStatusDto" - required: true - responses: - "200": - description: "" - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - summary: Update token ownership status - tags: - - NFTs - x-rate-limit-category: write - x-readme: - code-samples: - - language: typescript - code: "const response: Promise> = fireblocks.nFTs.updateTokenOwnershipStatus(nFTsApiUpdateTokenOwnershipStatusRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: "CompletableFuture> response = fireblocks.nFTs().updateTokenOwnershipStatus(updateTokenOwnershipStatusDto,\ - \ id, xEndUserWalletId, idempotencyKey);" - name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.n_f_ts.update_token_ownership_status(update_token_ownership_status_dto,\ - \ id, x_end_user_wallet_id, idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.nFTs.updateTokenOwnershipStatus(nFTsApiUpdateTokenOwnershipStatusRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.nFTs().updateTokenOwnershipStatus(updateTokenOwnershipStatusDto,\ - \ id, xEndUserWalletId, idempotencyKey);" - - lang: Python - source: "response = fireblocks.n_f_ts.update_token_ownership_status(update_token_ownership_status_dto,\ - \ id, x_end_user_wallet_id, idempotency_key);" - x-content-type: application/json - x-accepts: - - application/json - /nfts/ownership/tokens/status: - put: - description: "Updates tokens status for a tenant, in all tenant vaults." - operationId: updateTokensOwnershipStatus - parameters: - - description: Unique ID of the End-User wallet to the API request. Required - for end-user wallet operations. - explode: false - in: header - name: X-End-User-Wallet-Id - required: false - schema: - format: uuid - type: string - style: simple - - description: "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." - explode: false - in: header - name: Idempotency-Key - required: false - schema: - type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/UpdateTokensOwnershipStatusRequest" - required: true - responses: - "200": - description: All token statuses have been updated - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - "400": - description: Invalid data sent - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - "404": - description: When ownership for token ID is not found - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - summary: Update tokens ownership status - tags: - - NFTs - x-rate-limit-category: write - x-readme: - code-samples: - - language: typescript - code: "const response: Promise> = fireblocks.nFTs.updateTokensOwnershipStatus(nFTsApiUpdateTokensOwnershipStatusRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: "CompletableFuture> response = fireblocks.nFTs().updateTokensOwnershipStatus(tokenOwnershipStatusUpdatePayload,\ - \ xEndUserWalletId, idempotencyKey);" - name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.n_f_ts.update_tokens_ownership_status(token_ownership_status_update_payload,\ - \ x_end_user_wallet_id, idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.nFTs.updateTokensOwnershipStatus(nFTsApiUpdateTokensOwnershipStatusRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.nFTs().updateTokensOwnershipStatus(tokenOwnershipStatusUpdatePayload,\ - \ xEndUserWalletId, idempotencyKey);" - - lang: Python - source: "response = fireblocks.n_f_ts.update_tokens_ownership_status(token_ownership_status_update_payload,\ - \ x_end_user_wallet_id, idempotency_key);" - x-content-type: application/json - x-accepts: - - application/json - /nfts/ownership/tokens/spam: - put: - description: "Updates tokens spam property for a tenant's token ownerships,\ - \ in all tenant vaults." - operationId: updateTokensOwnershipSpam - parameters: - - description: Unique ID of the End-User wallet to the API request. Required - for end-user wallet operations. - explode: false - in: header - name: X-End-User-Wallet-Id - required: false - schema: - format: uuid - type: string - style: simple - - description: "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." - explode: false - in: header - name: Idempotency-Key - required: false - schema: - type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/UpdateTokensOwnershipSpamRequest" - required: true - responses: - "200": - description: All token spam properties have been updated - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - "400": - description: Invalid data sent - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - "404": - description: When ownership for token ID is not found - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - summary: Update tokens ownership spam property - tags: - - NFTs - x-rate-limit-category: write - x-readme: - code-samples: - - language: typescript - code: "const response: Promise> = fireblocks.nFTs.updateTokensOwnershipSpam(nFTsApiUpdateTokensOwnershipSpamRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: "CompletableFuture> response = fireblocks.nFTs().updateTokensOwnershipSpam(tokenOwnershipSpamUpdatePayload,\ - \ xEndUserWalletId, idempotencyKey);" - name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.n_f_ts.update_tokens_ownership_spam(token_ownership_spam_update_payload,\ - \ x_end_user_wallet_id, idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.nFTs.updateTokensOwnershipSpam(nFTsApiUpdateTokensOwnershipSpamRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.nFTs().updateTokensOwnershipSpam(tokenOwnershipSpamUpdatePayload,\ - \ xEndUserWalletId, idempotencyKey);" - - lang: Python - source: "response = fireblocks.n_f_ts.update_tokens_ownership_spam(token_ownership_spam_update_payload,\ - \ x_end_user_wallet_id, idempotency_key);" - x-content-type: application/json - x-accepts: - - application/json - /connections: - get: - description: Get open Web3 connections. - operationId: get - parameters: - - description: Unique ID of the End-User wallet to the API request. Required - for end-user wallet operations. - explode: false - in: header - name: X-End-User-Wallet-Id - required: false - schema: - format: uuid - type: string - style: simple - - description: List order; ascending or descending. - explode: true - in: query - name: order - required: false - schema: - default: ASC - enum: - - ASC - - DESC - type: string - style: form - - description: Parsed filter object - examples: - object: - description: "" - summary: The filter object - value: - id: string - userId: string - vaultAccountId: number - connectionMethod: string - feeLevel: string - appUrl: string - appName: string - stringified: - description: |- - About stringified parsed objects: - - * Each key-value pair is separated by '=', and each pair is separated by ',' (you can use [`qs`](https://www.npmjs.com/package/qs) package for this) - summary: The stringified parsed object - value: "id=string,userId=string,vaultAccountId=number,connectionMethod=string,feeLevel=string,appUrl=string,appName=string" - explode: true - in: query - name: filter - required: false - schema: - $ref: "#/components/schemas/get_filter_parameter" - style: form - - description: Property to sort Web3 connections by. - explode: true - in: query - name: sort - required: false - schema: - default: createdAt - enum: - - id - - userId - - vaultAccountId - - createdAt - - feeLevel - - appUrl - - appName - type: string - style: form - - description: Amount of results to return in the next page. - explode: true - in: query - name: pageSize - required: false - schema: - default: 10 - maximum: 50 - type: number - style: form - - description: Cursor to the next page - explode: true - in: query - name: next - required: false - schema: - type: string - style: form - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/GetConnectionsResponse" - description: "" - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - "400": - description: Query parameters were invalid - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - "500": - description: Something went wrong - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - summary: List all open Web3 connections. - tags: - - Web3 connections - x-rate-limit-category: high_compute - x-readme: - code-samples: - - language: typescript - code: "const response: Promise>\ - \ = fireblocks.web3Connections.get(web3ConnectionsApiGetRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: "CompletableFuture> response =\ - \ fireblocks.web3Connections().get(order, filter, sort, pageSize, next,\ - \ xEndUserWalletId);" - name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.web3_connections.get(order, filter, sort, page_size,\ - \ next, x_end_user_wallet_id);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.web3Connections.get(web3ConnectionsApiGetRequest);" - - lang: Java - source: "CompletableFuture> response =\ - \ fireblocks.web3Connections().get(order, filter, sort, pageSize, next,\ - \ xEndUserWalletId);" - - lang: Python - source: "response = fireblocks.web3_connections.get(order, filter, sort, page_size,\ - \ next, x_end_user_wallet_id);" - x-accepts: - - application/json - /connections/wc: - post: - description: |- - Initiate a new Web3 connection. - - * Note: After this succeeds, make a request to `PUT /v1/connections/wc/{id}` (below) to approve or reject the new Web3 connection. - operationId: create - parameters: - - description: "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." - explode: false - in: header - name: Idempotency-Key - required: false - schema: - type: string - style: simple - - description: Unique ID of the End-User wallet to the API request. Required - for end-user wallet operations. - explode: false - in: header - name: X-End-User-Wallet-Id - required: false - schema: - format: uuid - type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/CreateConnectionRequest" - required: true - responses: - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/CreateConnectionResponse" - description: Web3 connection initiated successfully - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - "400": - description: Invalid data sent - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - "500": - description: Something went wrong - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - summary: Create a new Web3 connection. - tags: - - Web3 connections - x-rate-limit-category: high_compute - x-readme: - code-samples: - - language: typescript - code: "const response: Promise>\ - \ = fireblocks.web3Connections.create(web3ConnectionsApiCreateRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: "CompletableFuture> response\ - \ = fireblocks.web3Connections().create(createConnectionRequest, idempotencyKey,\ - \ xEndUserWalletId);" - name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.web3_connections.create(create_connection_request,\ - \ idempotency_key, x_end_user_wallet_id);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.web3Connections.create(web3ConnectionsApiCreateRequest);" - - lang: Java - source: "CompletableFuture> response\ - \ = fireblocks.web3Connections().create(createConnectionRequest, idempotencyKey,\ - \ xEndUserWalletId);" - - lang: Python - source: "response = fireblocks.web3_connections.create(create_connection_request,\ - \ idempotency_key, x_end_user_wallet_id);" - x-content-type: application/json - x-accepts: - - application/json - /connections/wc/{id}: - delete: - description: Remove a Web3 connection - operationId: remove - parameters: - - description: Unique ID of the End-User wallet to the API request. Required - for end-user wallet operations. - explode: false - in: header - name: X-End-User-Wallet-Id - required: false - schema: - format: uuid - type: string - style: simple - - description: The ID of the existing Web3 connection to remove. - explode: false - in: path - name: id - required: true - schema: - type: string - style: simple - responses: - "200": - description: Connection removed successfully - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - "404": - description: Connection not found - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - "500": - description: Something went wrong - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - summary: Remove an existing Web3 connection. - tags: - - Web3 connections - x-rate-limit-category: high_compute - x-readme: - code-samples: - - language: typescript - code: "const response: Promise> = fireblocks.web3Connections.remove(web3ConnectionsApiRemoveRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: "CompletableFuture> response = fireblocks.web3Connections().remove(id,\ - \ xEndUserWalletId);" - name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.web3_connections.remove(id, x_end_user_wallet_id);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.web3Connections.remove(web3ConnectionsApiRemoveRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.web3Connections().remove(id,\ - \ xEndUserWalletId);" - - lang: Python - source: "response = fireblocks.web3_connections.remove(id, x_end_user_wallet_id);" - x-accepts: - - application/json - put: - description: |- - Submit a response to *approve* or *reject* an initiated Web3 connection. - * Note: This call is used to complete your `POST /v1/connections/wc/` request. - - After this succeeds, your new Web3 connection is created and functioning. - operationId: submit - parameters: - - description: The ID of the initiated Web3 connection to approve. - explode: false - in: path - name: id - required: true - schema: - type: string - style: simple - - description: "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." - explode: false - in: header - name: Idempotency-Key - required: false - schema: - type: string - style: simple - - description: Unique ID of the End-User wallet to the API request. Required - for end-user wallet operations. - explode: false - in: header - name: X-End-User-Wallet-Id - required: false - schema: - format: uuid - type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/RespondToConnectionRequest" - required: true - responses: - "200": - description: Connection submitted successfully - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - "400": - description: Invalid data sent - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - "404": - description: Connection not found - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - "500": - description: Something went wrong - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - summary: Respond to a pending Web3 connection request. - tags: - - Web3 connections - x-rate-limit-category: high_compute - x-readme: - code-samples: - - language: typescript - code: "const response: Promise> = fireblocks.web3Connections.submit(web3ConnectionsApiSubmitRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: "CompletableFuture> response = fireblocks.web3Connections().submit(respondToConnectionRequest,\ - \ id, idempotencyKey, xEndUserWalletId);" - name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.web3_connections.submit(respond_to_connection_request,\ - \ id, idempotency_key, x_end_user_wallet_id);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.web3Connections.submit(web3ConnectionsApiSubmitRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.web3Connections().submit(respondToConnectionRequest,\ - \ id, idempotencyKey, xEndUserWalletId);" - - lang: Python - source: "response = fireblocks.web3_connections.submit(respond_to_connection_request,\ - \ id, idempotency_key, x_end_user_wallet_id);" - x-content-type: application/json - x-accepts: - - application/json - /screening/travel_rule/transaction/validate: - post: - description: |- - Validate Travel Rule transactions. - **[Deprecation Notice]** This endpoint will be deprecated soon in favor of the `validate full` endpoint. Please update your integrations to use the `validate full` endpoint to ensure compatibility with future releases. - - Checks what beneficiary VASP details are required by your jurisdiction and the beneficiary's jurisdiction. - operationId: validateTravelRuleTransaction - parameters: - - description: |- - Specifies the notation of the transaction. Possible values are: - `notabene`: Uses Notabene notation (default behavior). - `fireblocks`: Uses Fireblocks notation, with automatic translation of asset tickers and amounts. - ``: Defaults to `notabene` for backward compatibility. - **Note:** The default value for the `notation` parameter will change from `notabene` to `fireblocks` Update your integrations accordingly. - explode: true - in: query - name: notation - required: false - schema: - $ref: "#/components/schemas/TravelRuleNotationEnum" - style: form - - description: "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." - explode: false - in: header - name: Idempotency-Key - required: false - schema: - type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/TravelRuleValidateTransactionRequest" - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/TravelRuleValidateTransactionResponse" - description: Transaction validated successfully - default: - $ref: "#/components/responses/Error" - summary: Validate Travel Rule Transaction - tags: - - Travel Rule - x-internal: true - x-rate-limit-category: write - x-content-type: application/json - x-accepts: - - application/json - /screening/travel_rule/transaction/validate/full: - post: - description: |- - Validate Full Travel Rule transactions. - - Checks for all required information on the originator and beneficiary VASPs. - operationId: validateFullTravelRuleTransaction - parameters: - - description: |- - Specifies the notation of the transaction. Possible values are: - `notabene`: Uses Notabene notation (default behavior). - `fireblocks`: Uses Fireblocks notation, with automatic translation of asset tickers and amounts. - ``: Defaults to `notabene` for backward compatibility. - **Note:** The default value for the `notation` parameter will change from `notabene` to `fireblocks` Update your integrations accordingly. - explode: true - in: query - name: notation - required: false - schema: - $ref: "#/components/schemas/TravelRuleNotationEnum" - style: form - - description: "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." - explode: false - in: header - name: Idempotency-Key - required: false - schema: - type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/TravelRuleValidateFullTransactionRequest" - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/TravelRuleValidateTransactionResponse" - description: Transaction validated successfully - default: - $ref: "#/components/responses/Error" - summary: Validate Full Travel Rule Transaction - tags: - - Travel Rule - x-rate-limit-category: write - x-readme: - code-samples: - - language: typescript - code: "const response: Promise>\ - \ = fireblocks.travelRule.validateFullTravelRuleTransaction(travelRuleApiValidateFullTravelRuleTransactionRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: "CompletableFuture>\ - \ response = fireblocks.travelRule().validateFullTravelRuleTransaction(travelRuleValidateFullTransactionRequest,\ - \ notation, idempotencyKey);" - name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.travel_rule.validate_full_travel_rule_transaction(travel_rule_validate_full_transaction_request,\ - \ notation, idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.travelRule.validateFullTravelRuleTransaction(travelRuleApiValidateFullTravelRuleTransactionRequest);" - - lang: Java - source: "CompletableFuture>\ - \ response = fireblocks.travelRule().validateFullTravelRuleTransaction(travelRuleValidateFullTransactionRequest,\ - \ notation, idempotencyKey);" - - lang: Python - source: "response = fireblocks.travel_rule.validate_full_travel_rule_transaction(travel_rule_validate_full_transaction_request,\ - \ notation, idempotency_key);" - x-content-type: application/json - x-accepts: - - application/json - /screening/travel_rule/vasp/{did}: - get: - description: |- - Get VASP Details. - - Returns information about a VASP that has the specified DID. - operationId: getVASPByDID - parameters: - - explode: false - in: path - name: did - required: true - schema: - type: string - style: simple - - description: "A CSV of fields to return. Choose from the following options:" - explode: true - in: query - name: fields - required: false - schema: - $ref: "#/components/schemas/TravelRuleFieldsEnum" - style: form - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/TravelRuleVASP" - description: Transaction validated successfully - "400": - description: Invalid request body - "500": - description: Internal server error - summary: Get VASP details - tags: - - Travel Rule - x-rate-limit-category: query - x-readme: - code-samples: - - language: typescript - code: "const response: Promise> = fireblocks.travelRule.getVASPByDID(travelRuleApiGetVASPByDIDRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: "CompletableFuture> response = fireblocks.travelRule().getVASPByDID(did,\ - \ fields);" - name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.travel_rule.get_v_a_s_p_by_d_i_d(did, fields);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.travelRule.getVASPByDID(travelRuleApiGetVASPByDIDRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.travelRule().getVASPByDID(did,\ - \ fields);" - - lang: Python - source: "response = fireblocks.travel_rule.get_v_a_s_p_by_d_i_d(did, fields);" - x-accepts: - - application/json - /screening/travel_rule/vasp: - get: - description: |- - Get All VASPs. - - Returns a list of VASPs. VASPs can be searched and sorted. - operationId: getVASPs - parameters: - - description: Field to order by - example: ASC - explode: true - in: query - name: order - required: false - schema: - enum: - - ASC - - DESC - type: string - style: form - - description: Records per page - example: 10 - explode: true - in: query - name: pageSize - required: false - schema: - default: 500 - maximum: 1000 - minimum: 100 - type: number - style: form - - description: "CSV of fields to return (all, \"blank\" or see list of all field\ - \ names below)" - explode: true - in: query - name: fields - required: false - schema: - $ref: "#/components/schemas/TravelRuleFieldsEnum" - style: form - - description: Search query - example: Fireblocks - explode: true - in: query - name: search - required: false - schema: - type: string - style: form - - description: "Filter by the VASP's review status. Possible values include:\ - \ \"TRUSTED\", \"BLOCKED\", \"MANUAL\", or \"NULL\". When provided, only\ - \ VASPs that match the specified reviewValue will be returned (i.e., VASPs\ - \ that have already been reviewed to this status)." - example: TRUSTED - explode: true - in: query - name: reviewValue - required: false - schema: - enum: - - TRUSTED - - BLOCKED - - MANUAL - - null - type: string - style: form - - description: "Cursor for pagination. When provided, the response will include\ - \ the next page of results." - example: 100 - explode: true - in: query - name: pageCursor - required: false - schema: - type: string - style: form - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/TravelRuleGetAllVASPsResponse" - description: Get all VASPs - default: - $ref: "#/components/responses/Error" - summary: Get All VASPs - tags: - - Travel Rule - x-rate-limit-category: query - x-readme: - code-samples: - - language: typescript - code: "const response: Promise>\ - \ = fireblocks.travelRule.getVASPs(travelRuleApiGetVASPsRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: "CompletableFuture> response\ - \ = fireblocks.travelRule().getVASPs(order, pageSize, fields, search,\ - \ reviewValue, pageCursor);" - name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.travel_rule.get_v_a_s_ps(order, page_size,\ - \ fields, search, review_value, page_cursor);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.travelRule.getVASPs(travelRuleApiGetVASPsRequest);" - - lang: Java - source: "CompletableFuture> response\ - \ = fireblocks.travelRule().getVASPs(order, pageSize, fields, search, reviewValue,\ - \ pageCursor);" - - lang: Python - source: "response = fireblocks.travel_rule.get_v_a_s_ps(order, page_size,\ - \ fields, search, review_value, page_cursor);" - x-accepts: - - application/json - /screening/travel_rule/vasp/update: - put: - description: |- - Update VASP Details. - - Updates a VASP with the provided parameters. Use this endpoint to add your public jsonDIDkey generated by Notabene. - operationId: updateVasp - parameters: - - description: "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." - explode: false - in: header - name: Idempotency-Key - required: false - schema: - type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/TravelRuleUpdateVASPDetails" - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/TravelRuleUpdateVASPDetails" - description: VASP updated successfully - "400": - description: Invalid request body - "500": - description: Internal server error - summary: Add jsonDidKey to VASP details - tags: - - Travel Rule - x-rate-limit-category: write - x-readme: - code-samples: - - language: typescript - code: "const response: Promise>\ - \ = fireblocks.travelRule.updateVasp(travelRuleApiUpdateVaspRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: "CompletableFuture> response\ - \ = fireblocks.travelRule().updateVasp(travelRuleUpdateVASPDetails, idempotencyKey);" - name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.travel_rule.update_vasp(travel_rule_update_v_a_s_p_details,\ - \ idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.travelRule.updateVasp(travelRuleApiUpdateVaspRequest);" - - lang: Java - source: "CompletableFuture> response\ - \ = fireblocks.travelRule().updateVasp(travelRuleUpdateVASPDetails, idempotencyKey);" - - lang: Python - source: "response = fireblocks.travel_rule.update_vasp(travel_rule_update_v_a_s_p_details,\ - \ idempotency_key);" - x-content-type: application/json - x-accepts: - - application/json - /screening/travel_rule/vault/{vaultAccountId}/vasp: - get: - description: Get assigned VASP Did for a specific vault. Returns empty string - vaspDid value in response if none assigned. - operationId: getVaspForVault - parameters: - - description: The ID of the vault account - example: 1 - explode: false - in: path - name: vaultAccountId - required: true - schema: - format: numeric - type: string - x-fb-entity: vault_account - style: simple - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/TravelRuleVaspForVault" - description: OK - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: Get assigned VASP to vault - tags: - - Travel Rule - x-rate-limit-category: read - x-readme: - code-samples: - - language: javascript - code: const vaultAsset = await fireblocks.getVaspForVault(vaultAccountId); - name: Fireblocks SDK Javascript example - - language: typescript - code: "const response: Promise>\ - \ = fireblocks.travelRule.getVaspForVault(travelRuleApiGetVaspForVaultRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: CompletableFuture> response = - fireblocks.travelRule().getVaspForVault(vaultAccountId); - name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.travel_rule.get_vasp_for_vault(vault_account_id); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.travelRule.getVaspForVault(travelRuleApiGetVaspForVaultRequest);" - - lang: Java - source: CompletableFuture> response = - fireblocks.travelRule().getVaspForVault(vaultAccountId); - - lang: Python - source: response = fireblocks.travel_rule.get_vasp_for_vault(vault_account_id); - x-accepts: - - application/json - post: - description: Sets the VASP Did for a specific vault. Pass empty string to remove - existing one. - operationId: setVaspForVault - parameters: - - description: The ID of the vault account - explode: false - in: path - name: vaultAccountId - required: true - schema: - format: numeric - type: string - x-fb-entity: vault_account - style: simple - - description: "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." - explode: false - in: header - name: Idempotency-Key - required: false - schema: - type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/TravelRuleVaspForVault" - required: true - responses: - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/TravelRuleVaspForVault" - description: OK - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: Assign VASP to vault - tags: - - Travel Rule - x-rate-limit-category: write - x-readme: - code-samples: - - language: javascript - code: "const vaultAsset = await fireblocks.setVaspForVault(vaultAccountId,\ - \ vaspDid);" - name: Fireblocks SDK Javascript example - - language: typescript - code: "const response: Promise>\ - \ = fireblocks.travelRule.setVaspForVault(travelRuleApiSetVaspForVaultRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: "CompletableFuture> response =\ - \ fireblocks.travelRule().setVaspForVault(travelRuleVaspForVault, vaultAccountId,\ - \ idempotencyKey);" - name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.travel_rule.set_vasp_for_vault(travel_rule_vasp_for_vault,\ - \ vault_account_id, idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.travelRule.setVaspForVault(travelRuleApiSetVaspForVaultRequest);" - - lang: Java - source: "CompletableFuture> response =\ - \ fireblocks.travelRule().setVaspForVault(travelRuleVaspForVault, vaultAccountId,\ - \ idempotencyKey);" - - lang: Python - source: "response = fireblocks.travel_rule.set_vasp_for_vault(travel_rule_vasp_for_vault,\ - \ vault_account_id, idempotency_key);" - x-content-type: application/json - x-accepts: - - application/json - /screening/travel_rule/post_screening_policy: - get: - description: Get the post-screening policy for Travel Rule. - operationId: getPostScreeningPolicy - parameters: [] - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ScreeningPolicyResponse" - description: Post-screening policy retrieved successfully. - summary: Travel Rule - View Post-Screening Policy - tags: - - Compliance - x-rate-limit-category: query - x-readme: - code-samples: - - language: typescript - code: "const response: Promise>\ - \ = fireblocks.compliance.getPostScreeningPolicy();" - name: Fireblocks SDK TypeScript example - - language: java - code: CompletableFuture> response = - fireblocks.compliance().getPostScreeningPolicy(); - name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.compliance.get_post_screening_policy(); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.compliance.getPostScreeningPolicy();" - - lang: Java - source: CompletableFuture> response = - fireblocks.compliance().getPostScreeningPolicy(); - - lang: Python - source: response = fireblocks.compliance.get_post_screening_policy(); - x-accepts: - - application/json - /screening/travel_rule/screening_policy: - get: - description: Get the screening policy for Travel Rule. - operationId: getScreeningPolicy - parameters: [] - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ScreeningProviderRulesConfigurationResponse" - description: Screening policy retrieved successfully. - summary: Travel Rule - View Screening Policy - tags: - - Compliance - x-rate-limit-category: query - x-readme: - code-samples: - - language: typescript - code: "const response: Promise>\ - \ = fireblocks.compliance.getScreeningPolicy();" - name: Fireblocks SDK TypeScript example - - language: java - code: CompletableFuture> - response = fireblocks.compliance().getScreeningPolicy(); - name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.compliance.get_screening_policy(); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.compliance.getScreeningPolicy();" - - lang: Java - source: CompletableFuture> - response = fireblocks.compliance().getScreeningPolicy(); - - lang: Python - source: response = fireblocks.compliance.get_screening_policy(); - x-accepts: - - application/json - /screening/travel_rule/policy_configuration: - get: - description: Retrieves the configuration for Travel Rule screening policy. - operationId: getScreeningConfiguration - parameters: [] - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ScreeningConfigurationsRequest" - description: Screening policy configuration retrieved successfully. - summary: Get Travel Rule Screening Policy Configuration - tags: - - Compliance Screening Configuration - x-rate-limit-category: write - x-readme: - code-samples: - - language: typescript - code: "const response: Promise>\ - \ = fireblocks.complianceScreeningConfiguration.getScreeningConfiguration();" - name: Fireblocks SDK TypeScript example - - language: java - code: CompletableFuture> response - = fireblocks.complianceScreeningConfiguration().getScreeningConfiguration(); - name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.compliance_screening_configuration.get_screening_configuration(); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.complianceScreeningConfiguration.getScreeningConfiguration();" - - lang: Java - source: CompletableFuture> response - = fireblocks.complianceScreeningConfiguration().getScreeningConfiguration(); - - lang: Python - source: response = fireblocks.compliance_screening_configuration.get_screening_configuration(); - x-accepts: - - application/json - put: - description: "Updates bypass screening, inbound delay, or outbound delay configurations\ - \ for Travel Rule." - operationId: updateTravelRuleConfig - parameters: - - description: "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." - explode: false - in: header - name: Idempotency-Key - required: false - schema: - type: string - style: simple - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ScreeningConfigurationsRequest" - description: Configuration updated successfully. - summary: Update Travel Rule Configuration - tags: - - Compliance - x-rate-limit-category: write - x-readme: - code-samples: - - language: typescript - code: "const response: Promise>\ - \ = fireblocks.compliance.updateTravelRuleConfig(complianceApiUpdateTravelRuleConfigRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: CompletableFuture> response - = fireblocks.compliance().updateTravelRuleConfig(idempotencyKey); - name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.compliance.update_travel_rule_config(idempotency_key); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.compliance.updateTravelRuleConfig(complianceApiUpdateTravelRuleConfigRequest);" - - lang: Java - source: CompletableFuture> response - = fireblocks.compliance().updateTravelRuleConfig(idempotencyKey); - - lang: Python - source: response = fireblocks.compliance.update_travel_rule_config(idempotency_key); - x-accepts: - - application/json - /screening/aml/policy_configuration: - get: - description: Retrieves the configuration for Travel Rule screening policy. - operationId: getAmlScreeningConfiguration - parameters: [] - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ScreeningConfigurationsRequest" - description: Screening policy configuration retrieved successfully. - summary: Get AML Screening Policy Configuration - tags: - - Compliance Screening Configuration - x-rate-limit-category: query - x-readme: - code-samples: - - language: typescript - code: "const response: Promise>\ - \ = fireblocks.complianceScreeningConfiguration.getAmlScreeningConfiguration();" - name: Fireblocks SDK TypeScript example - - language: java - code: CompletableFuture> response - = fireblocks.complianceScreeningConfiguration().getAmlScreeningConfiguration(); - name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.compliance_screening_configuration.get_aml_screening_configuration(); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.complianceScreeningConfiguration.getAmlScreeningConfiguration();" - - lang: Java - source: CompletableFuture> response - = fireblocks.complianceScreeningConfiguration().getAmlScreeningConfiguration(); - - lang: Python - source: response = fireblocks.compliance_screening_configuration.get_aml_screening_configuration(); - x-accepts: - - application/json - put: - description: "Updates bypass screening, inbound delay, or outbound delay configurations\ - \ for AML." - operationId: updateAmlScreeningConfiguration - parameters: - - description: "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." - explode: false - in: header - name: Idempotency-Key - required: false - schema: - type: string - style: simple - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ScreeningConfigurationsRequest" - description: Configuration updated successfully. - summary: Update AML Configuration - tags: - - Compliance - x-rate-limit-category: write - x-readme: - code-samples: - - language: typescript - code: "const response: Promise>\ - \ = fireblocks.compliance.updateAmlScreeningConfiguration(complianceApiUpdateAmlScreeningConfigurationRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: CompletableFuture> response - = fireblocks.compliance().updateAmlScreeningConfiguration(idempotencyKey); - name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.compliance.update_aml_screening_configuration(idempotency_key); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.compliance.updateAmlScreeningConfiguration(complianceApiUpdateAmlScreeningConfigurationRequest);" - - lang: Java - source: CompletableFuture> response - = fireblocks.compliance().updateAmlScreeningConfiguration(idempotencyKey); - - lang: Python - source: response = fireblocks.compliance.update_aml_screening_configuration(idempotency_key); - x-accepts: - - application/json - /screening/aml/screening_policy: - get: - description: Get the screening policy for AML. - operationId: getAmlScreeningPolicy - parameters: [] - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ScreeningProviderRulesConfigurationResponse" - description: Screening policy retrieved successfully. - summary: AML - View Screening Policy - tags: - - Compliance - x-rate-limit-category: query - x-readme: - code-samples: - - language: typescript - code: "const response: Promise>\ - \ = fireblocks.compliance.getAmlScreeningPolicy();" - name: Fireblocks SDK TypeScript example - - language: java - code: CompletableFuture> - response = fireblocks.compliance().getAmlScreeningPolicy(); - name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.compliance.get_aml_screening_policy(); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.compliance.getAmlScreeningPolicy();" - - lang: Java - source: CompletableFuture> - response = fireblocks.compliance().getAmlScreeningPolicy(); - - lang: Python - source: response = fireblocks.compliance.get_aml_screening_policy(); - x-accepts: - - application/json - /screening/aml/post_screening_policy: - get: - description: Get the post-screening policy for AML. - operationId: getAmlPostScreeningPolicy - parameters: [] - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ScreeningPolicyResponse" - description: Post-screening policy retrieved successfully. - summary: AML - View Post-Screening Policy - tags: - - Compliance - x-rate-limit-category: query - x-readme: - code-samples: - - language: typescript - code: "const response: Promise>\ - \ = fireblocks.compliance.getAmlPostScreeningPolicy();" - name: Fireblocks SDK TypeScript example - - language: java - code: CompletableFuture> response = - fireblocks.compliance().getAmlPostScreeningPolicy(); - name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.compliance.get_aml_post_screening_policy(); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.compliance.getAmlPostScreeningPolicy();" - - lang: Java - source: CompletableFuture> response = - fireblocks.compliance().getAmlPostScreeningPolicy(); - - lang: Python - source: response = fireblocks.compliance.get_aml_post_screening_policy(); - x-accepts: - - application/json - /screening/configurations: - put: - description: Update tenant screening configuration. - operationId: updateScreeningConfiguration - parameters: - - description: "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." - explode: false - in: header - name: Idempotency-Key - required: false - schema: - type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/ScreeningUpdateConfigurations" - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ScreeningUpdateConfigurations" - description: Tenant Screening configuration updated successfully. - summary: Tenant - Screening Configuration - tags: - - Compliance - x-rate-limit-category: write - x-readme: - code-samples: - - language: typescript - code: "const response: Promise>\ - \ = fireblocks.compliance.updateScreeningConfiguration(complianceApiUpdateScreeningConfigurationRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: "CompletableFuture> response\ - \ = fireblocks.compliance().updateScreeningConfiguration(screeningUpdateConfigurations,\ - \ idempotencyKey);" - name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.compliance.update_screening_configuration(screening_update_configurations,\ - \ idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.compliance.updateScreeningConfiguration(complianceApiUpdateScreeningConfigurationRequest);" - - lang: Java - source: "CompletableFuture> response\ - \ = fireblocks.compliance().updateScreeningConfiguration(screeningUpdateConfigurations,\ - \ idempotencyKey);" - - lang: Python - source: "response = fireblocks.compliance.update_screening_configuration(screening_update_configurations,\ - \ idempotency_key);" - x-content-type: application/json - x-accepts: - - application/json - /screening/transaction/{txId}/bypass_screening_policy: - post: - description: This endpoint is restricted to Admin API users and is only applicable - to outgoing transactions. - operationId: retryRejectedTransactionBypassScreeningChecks - parameters: - - description: The transaction id that was rejected by screening checks - example: 550e8400-e29b-41d4-a716-446655440000 - explode: false - in: path - name: txId - required: true - schema: - type: string - style: simple - - description: "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." - explode: false - in: header - name: Idempotency-Key - required: false - schema: - type: string - style: simple - responses: - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/CreateTransactionResponse" - description: A transaction object - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: "Calling the \"Bypass Screening Policy\" API endpoint triggers a new\ - \ transaction, with the API user as the initiator, bypassing the screening\ - \ policy check" - tags: - - Compliance - x-rate-limit-category: write - x-readme: - code-samples: - - language: typescript - code: "const response: Promise>\ - \ = fireblocks.compliance.retryRejectedTransactionBypassScreeningChecks(complianceApiRetryRejectedTransactionBypassScreeningChecksRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: "CompletableFuture> response\ - \ = fireblocks.compliance().retryRejectedTransactionBypassScreeningChecks(txId,\ - \ idempotencyKey);" - name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.compliance.retry_rejected_transaction_bypass_screening_checks(tx_id,\ - \ idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.compliance.retryRejectedTransactionBypassScreeningChecks(complianceApiRetryRejectedTransactionBypassScreeningChecksRequest);" - - lang: Java - source: "CompletableFuture> response\ - \ = fireblocks.compliance().retryRejectedTransactionBypassScreeningChecks(txId,\ - \ idempotencyKey);" - - lang: Python - source: "response = fireblocks.compliance.retry_rejected_transaction_bypass_screening_checks(tx_id,\ - \ idempotency_key);" - x-accepts: - - application/json - /screening/transaction/{txId}: - get: - description: Provides all the compliance details for the given screened transaction. - operationId: getScreeningFullDetails - parameters: - - description: Fireblocks transaction ID of the screened transaction - example: 550e8400-e29b-41d4-a716-446655440000 - explode: false - in: path - name: txId - required: true - schema: - type: string - style: simple - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ComplianceResultFullPayload" - description: A compliance object - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: Provides all the compliance details for the given screened transaction. - tags: - - Compliance - x-rate-limit-category: query - x-readme: - code-samples: - - language: typescript - code: "const response: Promise>\ - \ = fireblocks.compliance.getScreeningFullDetails(complianceApiGetScreeningFullDetailsRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: CompletableFuture> response - = fireblocks.compliance().getScreeningFullDetails(txId); - name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.compliance.get_screening_full_details(tx_id); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.compliance.getScreeningFullDetails(complianceApiGetScreeningFullDetailsRequest);" - - lang: Java - source: CompletableFuture> response - = fireblocks.compliance().getScreeningFullDetails(txId); - - lang: Python - source: response = fireblocks.compliance.get_screening_full_details(tx_id); - x-accepts: - - application/json - /screening/aml/verdict/manual: - post: - description: Set AML verdict for incoming transactions when Manual Screening - Verdict feature is enabled. - operationId: setAmlVerdict - parameters: - - description: "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." - explode: false - in: header - name: Idempotency-Key - required: false - schema: - type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/AmlVerdictManualRequest" - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/AmlVerdictManualResponse" - description: AML verdict set successfully. - "400": - content: - application/json: - schema: - $ref: "#/components/schemas/ErrorSchema" - description: Feature not enabled for tenant. - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - "425": - content: - application/json: - schema: - $ref: "#/components/schemas/ErrorSchema" - description: Too Early - transaction not yet in pending screening. - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - "500": - content: - application/json: - schema: - $ref: "#/components/schemas/ErrorSchema" - description: Internal server error. - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: Set AML Verdict for Manual Screening Verdict. - tags: - - Compliance - x-rate-limit-category: write - x-readme: - code-samples: - - language: typescript - code: "const response: Promise>\ - \ = fireblocks.compliance.setAmlVerdict(complianceApiSetAmlVerdictRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: "CompletableFuture> response\ - \ = fireblocks.compliance().setAmlVerdict(amlVerdictManualRequest, idempotencyKey);" - name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.compliance.set_aml_verdict(aml_verdict_manual_request,\ - \ idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.compliance.setAmlVerdict(complianceApiSetAmlVerdictRequest);" - - lang: Java - source: "CompletableFuture> response\ - \ = fireblocks.compliance().setAmlVerdict(amlVerdictManualRequest, idempotencyKey);" - - lang: Python - source: "response = fireblocks.compliance.set_aml_verdict(aml_verdict_manual_request,\ - \ idempotency_key);" - x-content-type: application/json - x-accepts: - - application/json - /management/ota: - get: - description: Returns current OTA status - operationId: getOtaStatus - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/GetOtaStatusResponse" - description: Current OTA status - "404": - description: Configuration not found for tenant - summary: Returns current OTA status - tags: - - OTA (Beta) - x-rate-limit-category: write - x-readme: - code-samples: - - language: typescript - code: "const response: Promise>\ - \ = fireblocks.oTABeta.getOtaStatus();" - name: Fireblocks SDK TypeScript example - - language: java - code: CompletableFuture> response = fireblocks.oTABeta().getOtaStatus(); - name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.o_t_a_beta.get_ota_status(); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.oTABeta.getOtaStatus();" - - lang: Java - source: CompletableFuture> response = fireblocks.oTABeta().getOtaStatus(); - - lang: Python - source: response = fireblocks.o_t_a_beta.get_ota_status(); - x-accepts: - - application/json - put: - description: Enable or disable transactions to OTA - operationId: setOtaStatus - parameters: - - description: "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." - explode: false - in: header - name: Idempotency-Key - required: false - schema: - type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/SetOtaStatusRequest" - required: true - responses: - "202": - content: - application/json: - schema: - $ref: "#/components/schemas/SetOtaStatusResponse" - description: Successfully updated OTA status - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - "400": - description: Bad request - "409": - description: Similar request already pending - "500": - description: Internal server error - summary: Enable or disable transactions to OTA - tags: - - OTA (Beta) - x-rate-limit-category: query - x-readme: - code-samples: - - language: typescript - code: "const response: Promise>\ - \ = fireblocks.oTABeta.setOtaStatus(oTABetaApiSetOtaStatusRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: "CompletableFuture> response = fireblocks.oTABeta().setOtaStatus(setOtaStatusRequest,\ - \ idempotencyKey);" - name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.o_t_a_beta.set_ota_status(set_ota_status_request,\ - \ idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.oTABeta.setOtaStatus(oTABetaApiSetOtaStatusRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.oTABeta().setOtaStatus(setOtaStatusRequest,\ - \ idempotencyKey);" - - lang: Python - source: "response = fireblocks.o_t_a_beta.set_ota_status(set_ota_status_request,\ - \ idempotency_key);" - x-content-type: application/json - x-accepts: - - application/json - /management/workspace_status: - get: - description: Returns current workspace status - operationId: getWorkspaceStatus - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/GetWorkspaceStatusResponse" - description: Current workspace status - "404": - description: Workspace not found - summary: Returns current workspace status - tags: - - Workspace Status (Beta) - x-rate-limit-category: query - x-readme: - code-samples: - - language: typescript - code: "const response: Promise>\ - \ = fireblocks.workspaceStatusBeta.getWorkspaceStatus();" - name: Fireblocks SDK TypeScript example - - language: java - code: CompletableFuture> response - = fireblocks.workspaceStatusBeta().getWorkspaceStatus(); - name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.workspace_status_beta.get_workspace_status(); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.workspaceStatusBeta.getWorkspaceStatus();" - - lang: Java - source: CompletableFuture> response - = fireblocks.workspaceStatusBeta().getWorkspaceStatus(); - - lang: Python - source: response = fireblocks.workspace_status_beta.get_workspace_status(); - x-accepts: - - application/json - /tap/active_policy: - get: - description: "Legacy Endpoint – Returns the active policy and its validation.\ - \
\n**Note:** \n- This endpoint will remain available for the foreseeable\ - \ future and is not deprecated.
- The `getActivePolicy` endpoint under\ - \ policy/paths provides policy type-specific operations and improved functionality.
\ - \ - These endpoints are currently in beta and might be subject to changes.
\n\ - If you want to participate and learn more about the Fireblocks TAP, please\ - \ contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com.\n" - operationId: getActivePolicyLegacy - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/LegacyPolicyAndValidationResponse" - description: A policy object - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: Get the active policy and its validation - tags: - - Policy Editor (Beta) - x-rate-limit-category: query - x-readme: - code-samples: - - language: python - code: policy = fireblocks.get_active_policy() - name: Fireblocks SDK Python example (Legacy) - - language: javascript - code: const policy = await fireblocks.getActivePolicy(); - name: Fireblocks SDK Javascript example - - language: typescript - code: "const response: Promise>\ - \ = fireblocks.policyEditorBeta.getActivePolicyLegacy();" - name: Fireblocks SDK TypeScript example - - language: java - code: CompletableFuture> - response = fireblocks.policyEditorBeta().getActivePolicyLegacy(); - name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.policy_editor_beta.get_active_policy_legacy(); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.policyEditorBeta.getActivePolicyLegacy();" - - lang: Java - source: CompletableFuture> - response = fireblocks.policyEditorBeta().getActivePolicyLegacy(); - - lang: Python - source: response = fireblocks.policy_editor_beta.get_active_policy_legacy(); - x-accepts: - - application/json - /tap/draft: - get: - description: "Legacy Endpoint – Returns the active draft and its validation.\ - \
\n**Note:** \n- This endpoint will remain available for the foreseeable\ - \ future and is not deprecated.
- The `getDraft` endpoint under policy/paths\ - \ provides policy type-specific operations and improved functionality.
\ - \ - These endpoints are currently in beta and might be subject to changes.
\n\ - If you want to participate and learn more about the Fireblocks TAP, please\ - \ contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com.\n" - operationId: getDraftLegacy - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/LegacyDraftReviewAndValidationResponse" - description: A draft validation response object - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: Get the active draft - tags: - - Policy Editor (Beta) - x-rate-limit-category: read - x-readme: - code-samples: - - language: python - code: policy = fireblocks.get_draft() - name: Fireblocks SDK Python example (Legacy) - - language: javascript - code: const policy = await fireblocks.getDraft(); - name: Fireblocks SDK Javascript example - - language: typescript - code: "const response: Promise>\ - \ = fireblocks.policyEditorBeta.getDraftLegacy();" - name: Fireblocks SDK TypeScript example - - language: java - code: CompletableFuture> - response = fireblocks.policyEditorBeta().getDraftLegacy(); - name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.policy_editor_beta.get_draft_legacy(); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.policyEditorBeta.getDraftLegacy();" - - lang: Java - source: CompletableFuture> - response = fireblocks.policyEditorBeta().getDraftLegacy(); - - lang: Python - source: response = fireblocks.policy_editor_beta.get_draft_legacy(); - x-accepts: - - application/json - post: - description: "Legacy Endpoint – Send publish request of certain draft id and\ - \ returns the response.
\n**Note:** \n- This endpoint will remain available\ - \ for the foreseeable future and is not deprecated.
- The `publishDraft`\ - \ endpoint under policy/paths provides improved functionality and better performance.
\ - \ - These endpoints are currently in beta and might be subject to changes.
\n\ - If you want to participate and learn more about the Fireblocks TAP, please\ - \ contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com.\n" - operationId: publishDraftLegacy - parameters: - - description: "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." - explode: false - in: header - name: Idempotency-Key - required: false - schema: - type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/LegacyPublishDraftRequest" - required: true - responses: - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/LegacyPublishResult" - description: A policy publish result object - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: Send publish request for a certain draft id - tags: - - Policy Editor (Beta) - x-rate-limit-category: write - x-readme: - code-samples: - - language: python - code: policy = fireblocks.publish_draft() - name: Fireblocks SDK Python example (Legacy) - - language: javascript - code: const policy = await fireblocks.publishDraft(); - name: Fireblocks SDK Javascript example - - language: typescript - code: "const response: Promise>\ - \ = fireblocks.policyEditorBeta.publishDraftLegacy(policyEditorBetaApiPublishDraftLegacyRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: "CompletableFuture> response = fireblocks.policyEditorBeta().publishDraftLegacy(legacyPublishDraftRequest,\ - \ idempotencyKey);" - name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.policy_editor_beta.publish_draft_legacy(legacy_publish_draft_request,\ - \ idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.policyEditorBeta.publishDraftLegacy(policyEditorBetaApiPublishDraftLegacyRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.policyEditorBeta().publishDraftLegacy(legacyPublishDraftRequest,\ - \ idempotencyKey);" - - lang: Python - source: "response = fireblocks.policy_editor_beta.publish_draft_legacy(legacy_publish_draft_request,\ - \ idempotency_key);" - x-content-type: application/json - x-accepts: - - application/json - put: - description: "Legacy Endpoint – Update the draft and return its validation.\ - \
\n**Note:** \n- This endpoint will remain available for the foreseeable\ - \ future and is not deprecated.
- The `updateDraft` endpoint under policy/paths\ - \ provides policy type-specific operations and improved functionality.
\ - \ - These endpoints are currently in beta and might be subject to changes.
\n\ - If you want to participate and learn more about the Fireblocks TAP, please\ - \ contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com.\n" - operationId: updateDraftLegacy - parameters: - - description: "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." - explode: false - in: header - name: Idempotency-Key - required: false - schema: - type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/LegacyPolicyRules" - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/LegacyDraftReviewAndValidationResponse" - description: A draft validation response object - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: Update the draft with a new set of rules - tags: - - Policy Editor (Beta) - x-rate-limit-category: write - x-readme: - code-samples: - - language: python - code: policy = fireblocks.update_draft() - name: Fireblocks SDK Python example (Legacy) - - language: javascript - code: const policy = await fireblocks.updateDraft(); - name: Fireblocks SDK Javascript example - - language: typescript - code: "const response: Promise>\ - \ = fireblocks.policyEditorBeta.updateDraftLegacy(policyEditorBetaApiUpdateDraftLegacyRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: "CompletableFuture>\ - \ response = fireblocks.policyEditorBeta().updateDraftLegacy(legacyPolicyRules,\ - \ idempotencyKey);" - name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.policy_editor_beta.update_draft_legacy(legacy_policy_rules,\ - \ idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.policyEditorBeta.updateDraftLegacy(policyEditorBetaApiUpdateDraftLegacyRequest);" - - lang: Java - source: "CompletableFuture>\ - \ response = fireblocks.policyEditorBeta().updateDraftLegacy(legacyPolicyRules,\ - \ idempotencyKey);" - - lang: Python - source: "response = fireblocks.policy_editor_beta.update_draft_legacy(legacy_policy_rules,\ - \ idempotency_key);" - x-content-type: application/json - x-accepts: - - application/json - /tap/publish: - post: - description: | - Send publish request of set of policy rules and returns the response.
- **Note:** These endpoints are currently in beta and might be subject to changes. - If you want to participate and learn more about the Fireblocks TAP, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. - operationId: publishPolicyRules - parameters: - - description: "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." - explode: false - in: header - name: Idempotency-Key - required: false - schema: - type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/LegacyPolicyRules" - required: true - responses: - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/LegacyPublishResult" - description: A policy publish result object - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: Send publish request for a set of policy rules - tags: - - Policy Editor (Beta) - x-rate-limit-category: write - x-readme: - code-samples: - - language: python - code: policy = fireblocks.publish_rules() - name: Fireblocks SDK Python example (Legacy) - - language: javascript - code: const policy = await fireblocks.publishRules(); - name: Fireblocks SDK Javascript example - - language: typescript - code: "const response: Promise>\ - \ = fireblocks.policyEditorBeta.publishPolicyRules(policyEditorBetaApiPublishPolicyRulesRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: "CompletableFuture> response = fireblocks.policyEditorBeta().publishPolicyRules(legacyPolicyRules,\ - \ idempotencyKey);" - name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.policy_editor_beta.publish_policy_rules(legacy_policy_rules,\ - \ idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.policyEditorBeta.publishPolicyRules(policyEditorBetaApiPublishPolicyRulesRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.policyEditorBeta().publishPolicyRules(legacyPolicyRules,\ - \ idempotencyKey);" - - lang: Python - source: "response = fireblocks.policy_editor_beta.publish_policy_rules(legacy_policy_rules,\ - \ idempotency_key);" - x-content-type: application/json - x-accepts: - - application/json - /policy/active_policy: - get: - description: | - Returns the active policy and its validation for a specific policy type.
- **Note:** These endpoints are currently in beta and might be subject to changes. - operationId: getActivePolicy - parameters: - - description: "The policy type(s) to retrieve. Can be a single type or multiple\ - \ types by repeating the parameter (e.g., ?policyType=TRANSFER&policyType=MINT)." - explode: true - in: query - name: policyType - required: true - schema: - $ref: "#/components/schemas/PolicyType" - style: form - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/PolicyAndValidationResponse" - description: A policy object with validation - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: Get the active policy and its validation by policy type - tags: - - Policy Editor V2 (Beta) - x-rate-limit-category: query - x-readme: - code-samples: - - language: javascript - code: | - // Single policy type - const policy = await fireblocks.getActivePolicy({policyType: "TRANSFER"}); - // Multiple policy types - const policy = await fireblocks.getActivePolicy({policyType: ["TRANSFER", "MINT"]}); - name: Fireblocks SDK Javascript example - - language: typescript - code: "const response: Promise>\ - \ = fireblocks.policyEditorV2Beta.getActivePolicy(policyEditorV2BetaApiGetActivePolicyRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: CompletableFuture> response - = fireblocks.policyEditorV2Beta().getActivePolicy(policyType); - name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.policy_editor_v2_beta.get_active_policy(policy_type); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.policyEditorV2Beta.getActivePolicy(policyEditorV2BetaApiGetActivePolicyRequest);" - - lang: Java - source: CompletableFuture> response - = fireblocks.policyEditorV2Beta().getActivePolicy(policyType); - - lang: Python - source: response = fireblocks.policy_editor_v2_beta.get_active_policy(policy_type); - x-accepts: - - application/json - /policy/draft: - get: - description: | - Returns the active draft and its validation for a specific policy type.
- **Note:** These endpoints are currently in beta and might be subject to changes. - operationId: getDraft - parameters: - - description: "The policy type(s) to retrieve. Can be a single type or multiple\ - \ types by repeating the parameter (e.g., ?policyType=TRANSFER&policyType=MINT)." - explode: true - in: query - name: policyType - required: true - schema: - $ref: "#/components/schemas/PolicyType" - style: form - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/DraftReviewAndValidationResponse" - description: A draft validation response object - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: Get the active draft by policy type - tags: - - Policy Editor V2 (Beta) - x-rate-limit-category: read - x-readme: - code-samples: - - language: javascript - code: | - // Single policy type - const draft = await fireblocks.getDraft({policyType: "TRANSFER"}); - // Multiple policy types - const draft = await fireblocks.getDraft({policyType: ["TRANSFER", "MINT"]}); - name: Fireblocks SDK Javascript example - - language: typescript - code: "const response: Promise>\ - \ = fireblocks.policyEditorV2Beta.getDraft(policyEditorV2BetaApiGetDraftRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: CompletableFuture> response - = fireblocks.policyEditorV2Beta().getDraft(policyType); - name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.policy_editor_v2_beta.get_draft(policy_type); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.policyEditorV2Beta.getDraft(policyEditorV2BetaApiGetDraftRequest);" - - lang: Java - source: CompletableFuture> response - = fireblocks.policyEditorV2Beta().getDraft(policyType); - - lang: Python - source: response = fireblocks.policy_editor_v2_beta.get_draft(policy_type); - x-accepts: - - application/json - post: - description: | - Send publish request of certain draft id and returns the response.
- **Note:** These endpoints are currently in beta and might be subject to changes. - If you want to participate and learn more about the Fireblocks Policy Editor, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. - operationId: publishDraft - parameters: - - description: "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." - explode: false - in: header - name: Idempotency-Key - required: false - schema: - type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/PublishDraftRequest" - required: true - responses: - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/PublishResult" - description: A policy publish result object - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: Send publish request for a certain draft id - tags: - - Policy Editor V2 (Beta) - x-rate-limit-category: write - x-readme: - code-samples: - - language: javascript - code: | - const policy = await fireblocks.publishDraft({policyTypes: ["TRANSFER"], draftId: "draft-123"}); - name: Fireblocks SDK Javascript example - - language: typescript - code: "const response: Promise> = fireblocks.policyEditorV2Beta.publishDraft(policyEditorV2BetaApiPublishDraftRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: "CompletableFuture> response = fireblocks.policyEditorV2Beta().publishDraft(publishDraftRequest,\ - \ idempotencyKey);" - name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.policy_editor_v2_beta.publish_draft(publish_draft_request,\ - \ idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.policyEditorV2Beta.publishDraft(policyEditorV2BetaApiPublishDraftRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.policyEditorV2Beta().publishDraft(publishDraftRequest,\ - \ idempotencyKey);" - - lang: Python - source: "response = fireblocks.policy_editor_v2_beta.publish_draft(publish_draft_request,\ - \ idempotency_key);" - x-content-type: application/json - x-accepts: - - application/json - put: - description: | - Update the draft and return its validation for specific policy types.
- **Note:** These endpoints are currently in beta and might be subject to changes. - operationId: updateDraft - parameters: - - description: "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." - explode: false - in: header - name: Idempotency-Key - required: false - schema: - type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/UpdateDraftRequest" - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/DraftReviewAndValidationResponse" - description: A draft validation response object - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: Update the draft with a new set of rules by policy types - tags: - - Policy Editor V2 (Beta) - x-rate-limit-category: write - x-readme: - code-samples: - - language: javascript - code: | - const draft = await fireblocks.updateDraft({policyTypes: ["TRANSFER"], rules: rules}); - name: Fireblocks SDK Javascript example - - language: typescript - code: "const response: Promise>\ - \ = fireblocks.policyEditorV2Beta.updateDraft(policyEditorV2BetaApiUpdateDraftRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: "CompletableFuture>\ - \ response = fireblocks.policyEditorV2Beta().updateDraft(updateDraftRequest,\ - \ idempotencyKey);" - name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.policy_editor_v2_beta.update_draft(update_draft_request,\ - \ idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.policyEditorV2Beta.updateDraft(policyEditorV2BetaApiUpdateDraftRequest);" - - lang: Java - source: "CompletableFuture>\ - \ response = fireblocks.policyEditorV2Beta().updateDraft(updateDraftRequest,\ - \ idempotencyKey);" - - lang: Python - source: "response = fireblocks.policy_editor_v2_beta.update_draft(update_draft_request,\ - \ idempotency_key);" - x-content-type: application/json - x-accepts: - - application/json - /management/users: - get: - description: Get console users for your tenant - operationId: getConsoleUsers - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/GetConsoleUsersResponse" - description: got console users - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - "401": - content: - application/json: - schema: - $ref: "#/components/schemas/ErrorResponse" - description: Unauthorized. Missing / invalid JWT token in Authorization - header. - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - "403": - content: - application/json: - schema: - $ref: "#/components/schemas/ErrorResponse" - description: Lacking permissions. - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - "5XX": - content: - application/json: - schema: - $ref: "#/components/schemas/ErrorResponse" - description: Internal error. - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: Get console users - tags: - - Console User - x-rate-limit-category: query - x-readme: - code-samples: - - language: javascript - code: const consoleUsers = await fireblocks.getConsoleUsers(); - name: Fireblocks SDK Javascript example - - language: python - code: consoleUsers = fireblocks.get_console_users() - name: Fireblocks SDK Python example (Legacy) - - language: typescript - code: "const response: Promise>\ - \ = fireblocks.consoleUser.getConsoleUsers();" - name: Fireblocks SDK TypeScript example - - language: java - code: CompletableFuture> response = - fireblocks.consoleUser().getConsoleUsers(); - name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.console_user.get_console_users(); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.consoleUser.getConsoleUsers();" - - lang: Java - source: CompletableFuture> response = - fireblocks.consoleUser().getConsoleUsers(); - - lang: Python - source: response = fireblocks.console_user.get_console_users(); - x-accepts: - - application/json - post: - description: Creates console user in your tenant - operationId: createConsoleUser - parameters: - - description: "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." - explode: false - in: header - name: Idempotency-Key - required: false - schema: - type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/CreateConsoleUser" - responses: - "200": - description: User creation approval request has been sent - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - "400": - description: bad request - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - "401": - content: - application/json: - schema: - $ref: "#/components/schemas/ErrorResponse" - description: Unauthorized. Missing / invalid JWT token in Authorization - header. - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - "403": - content: - application/json: - schema: - $ref: "#/components/schemas/ErrorResponse" - description: Lacking permissions. - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - "5XX": - content: - application/json: - schema: - $ref: "#/components/schemas/ErrorResponse" - description: Internal error. - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: Create console user - tags: - - Console User - x-rate-limit-category: write - x-readme: - code-samples: - - language: javascript - code: "const res = await fireblocks.createConsoleUser(firstName, lastName,\ - \ email, role);" - name: Fireblocks SDK Javascript example - - language: python - code: "res = fireblocks.create_console_user(first_name, last_name, email,\ - \ role)" - name: Fireblocks SDK Python example (Legacy) - - language: typescript - code: "const response: Promise> = fireblocks.consoleUser.createConsoleUser(consoleUserApiCreateConsoleUserRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: "CompletableFuture> response = fireblocks.consoleUser().createConsoleUser(createConsoleUser,\ - \ idempotencyKey);" - name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.console_user.create_console_user(create_console_user,\ - \ idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.consoleUser.createConsoleUser(consoleUserApiCreateConsoleUserRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.consoleUser().createConsoleUser(createConsoleUser,\ - \ idempotencyKey);" - - lang: Python - source: "response = fireblocks.console_user.create_console_user(create_console_user,\ - \ idempotency_key);" - x-content-type: application/json - x-accepts: - - application/json - /management/api_users: - get: - description: Get Api users of your tenant - operationId: getApiUsers - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/GetAPIUsersResponse" - description: got api users - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - "401": - content: - application/json: - schema: - $ref: "#/components/schemas/ErrorResponse" - description: Unauthorized. Missing / invalid JWT token in Authorization - header. - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - "403": - content: - application/json: - schema: - $ref: "#/components/schemas/ErrorResponse" - description: Lacking permissions. - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - "5XX": - content: - application/json: - schema: - $ref: "#/components/schemas/ErrorResponse" - description: Internal error. - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: Get Api users - tags: - - Api User - x-rate-limit-category: query - x-readme: - code-samples: - - language: javascript - code: const apiUsers = await fireblocks.getApiUsers(); - name: Fireblocks SDK Javascript example - - language: python - code: apiUsers = fireblocks.get_api_users() - name: Fireblocks SDK Python example (Legacy) - - language: typescript - code: "const response: Promise>\ - \ = fireblocks.apiUser.getApiUsers();" - name: Fireblocks SDK TypeScript example - - language: java - code: CompletableFuture> response = fireblocks.apiUser().getApiUsers(); - name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.api_user.get_api_users(); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.apiUser.getApiUsers();" - - lang: Java - source: CompletableFuture> response = fireblocks.apiUser().getApiUsers(); - - lang: Python - source: response = fireblocks.api_user.get_api_users(); - x-accepts: - - application/json - post: - description: Creates Api user in your tenant - operationId: createApiUser - parameters: - - description: "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." - explode: false - in: header - name: Idempotency-Key - required: false - schema: - type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/CreateAPIUser" - responses: - "200": - description: User creation approval request has been sent - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - "400": - description: bad request - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - "401": - content: - application/json: - schema: - $ref: "#/components/schemas/ErrorResponse" - description: Unauthorized. Missing / invalid JWT token in Authorization - header. - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - "403": - content: - application/json: - schema: - $ref: "#/components/schemas/ErrorResponse" - description: Lacking permissions. - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - "5XX": - content: - application/json: - schema: - $ref: "#/components/schemas/ErrorResponse" - description: Internal error. - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: Create Api user - tags: - - Api User - x-rate-limit-category: write - x-readme: - code-samples: - - language: javascript - code: "const res = await fireblocks.createApiUser(name, role, csrForNewUser,\ - \ coSignerType, isFirstUser);" - name: Fireblocks SDK Javascript example - - language: python - code: "res = fireblocks.create_api_user(name, role, csr_pem, co_signer_setup,\ - \ co_signer_setup_is_first_user)" - name: Fireblocks SDK Python example (Legacy) - - language: typescript - code: "const response: Promise> = fireblocks.apiUser.createApiUser(apiUserApiCreateApiUserRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: "CompletableFuture> response = fireblocks.apiUser().createApiUser(createAPIUser,\ - \ idempotencyKey);" - name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.api_user.create_api_user(create_a_p_i_user,\ - \ idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.apiUser.createApiUser(apiUserApiCreateApiUserRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.apiUser().createApiUser(createAPIUser,\ - \ idempotencyKey);" - - lang: Python - source: "response = fireblocks.api_user.create_api_user(create_a_p_i_user,\ - \ idempotency_key);" - x-content-type: application/json - x-accepts: - - application/json - /management/users/{id}/reset_device: - post: - description: "Resets mobile device for given console user, that user will need\ - \ to do mobile onboarding again." - operationId: resetDevice - parameters: - - description: The ID of the console user - explode: false - in: path - name: id - required: true - schema: - type: string - style: simple - - description: "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." - explode: false - in: header - name: Idempotency-Key - required: false - schema: - type: string - style: simple - responses: - "200": - description: Reset device approval request has been sent - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - "401": - content: - application/json: - schema: - $ref: "#/components/schemas/ErrorResponse" - description: Unauthorized. Missing / invalid JWT token in Authorization - header. - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - "403": - content: - application/json: - schema: - $ref: "#/components/schemas/ErrorResponse" - description: Lacking permissions. - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - "5XX": - content: - application/json: - schema: - $ref: "#/components/schemas/ErrorResponse" - description: Internal error. - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: Resets device - tags: - - Reset device - x-rate-limit-category: write - x-readme: - code-samples: - - language: javascript - code: const res = await fireblocks.resetDeviceRequest(consoleUserId); - name: Fireblocks SDK Javascript example - - language: python - code: res = fireblocks.reset_device_request(console_user_id) - name: Fireblocks SDK Python example (Legacy) - - language: typescript - code: "const response: Promise> = fireblocks.resetDevice.resetDevice(resetDeviceApiResetDeviceRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: "CompletableFuture> response = fireblocks.resetDevice().resetDevice(id,\ - \ idempotencyKey);" - name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.reset_device.reset_device(id, idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.resetDevice.resetDevice(resetDeviceApiResetDeviceRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.resetDevice().resetDevice(id,\ - \ idempotencyKey);" - - lang: Python - source: "response = fireblocks.reset_device.reset_device(id, idempotency_key);" - x-accepts: - - application/json - /management/api_users/{userId}/whitelist_ip_addresses: - get: - description: Gets whitelisted ip addresses for given Api user. - operationId: getWhitelistIpAddresses - parameters: - - description: The ID of the api user - explode: false - in: path - name: userId - required: true - schema: - type: string - style: simple - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/GetWhitelistIpAddressesResponse" - description: successfully got whitelisted ip addresses - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - "401": - content: - application/json: - schema: - $ref: "#/components/schemas/ErrorResponse" - description: Unauthorized. Missing / invalid JWT token in Authorization - header. - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - "403": - content: - application/json: - schema: - $ref: "#/components/schemas/ErrorResponse" - description: Lacking permissions. - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - "5XX": - content: - application/json: - schema: - $ref: "#/components/schemas/ErrorResponse" - description: Internal error. - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: Gets whitelisted ip addresses - tags: - - whitelist ip addresses - x-rate-limit-category: read - x-readme: - code-samples: - - language: javascript - code: const whitelistedAddresses = await fireblocks.getWhitelistedAddresses(apiUserId); - name: Fireblocks SDK Javascript example - - language: python - code: whitelisted_addresses = fireblocks.get_whitelisted_ip_addresses(api_user_id) - name: Fireblocks SDK Python example (Legacy) - - language: typescript - code: "const response: Promise>\ - \ = fireblocks.whitelistIpAddresses.getWhitelistIpAddresses(whitelistIpAddressesApiGetWhitelistIpAddressesRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: CompletableFuture> response - = fireblocks.whitelistIpAddresses().getWhitelistIpAddresses(userId); - name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.whitelist_ip_addresses.get_whitelist_ip_addresses(user_id); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.whitelistIpAddresses.getWhitelistIpAddresses(whitelistIpAddressesApiGetWhitelistIpAddressesRequest);" - - lang: Java - source: CompletableFuture> response - = fireblocks.whitelistIpAddresses().getWhitelistIpAddresses(userId); - - lang: Python - source: response = fireblocks.whitelist_ip_addresses.get_whitelist_ip_addresses(user_id); - x-accepts: - - application/json - /smart-transfers: - get: - description: Finds Smart Transfer tickets that match the submitted criteria - operationId: searchTickets - parameters: - - description: Search string - counterparty name or asset or ticketId. Optional - explode: true - in: query - name: q - required: false - schema: - minLength: 1 - type: string - style: form - - description: Ticket statuses for Smart Transfer tickets. Optional - example: - - DRAFT - - OPEN - explode: true - in: query - name: statuses - required: false - schema: - default: [] - items: - enum: - - DRAFT - - PENDING_APPROVAL - - OPEN - - IN_SETTLEMENT - - FULFILLED - - EXPIRED - - CANCELED - type: string - type: array - style: form - - description: "NetworkId that is used in the ticket\t. Optional" - explode: true - in: query - name: networkId - required: false - schema: - type: string - style: form - - description: Filter created tickets by created by self or by others. Optional - explode: true - in: query - name: createdByMe - required: false - schema: - type: boolean - style: form - - description: Lower bound of search range. Optional - explode: true - in: query - name: expiresAfter - required: false - schema: - format: date-time - type: string - style: form - - description: Upper bound of search range. Optional - explode: true - in: query - name: expiresBefore - required: false - schema: - format: date-time - type: string - style: form - - description: "Type of transfer. ASYNC executes transfers as they are funded,\ - \ DVP executes all terms (legs) as one dvp transfer" - explode: true - in: query - name: type - required: false - schema: - enum: - - ASYNC - - DVP - type: string - style: form - - description: External ref. ID that workspace can use to identify ticket outside - of Fireblocks system. - explode: true - in: query - name: externalRefId - required: false - schema: - maxLength: 64 - minLength: 1 - type: string - style: form - - description: ID of the record after which to fetch $limit records - explode: true - in: query - name: after - required: false - schema: - type: string - style: form - - description: "Number of records to fetch. By default, it is 100" - explode: true - in: query - name: limit - required: false - schema: - minimum: 1 - type: number - style: form - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SmartTransferTicketFilteredResponse" - description: Smart Transfer tickets were returned successfully - "403": - content: - application/json: - schema: - $ref: "#/components/schemas/SmartTransferForbiddenResponse" - description: Unauthorized - summary: Find Ticket - tags: - - Smart Transfer - x-rate-limit-category: query - x-readme: - code-samples: - - language: typescript - code: "const response: Promise>\ - \ = fireblocks.smartTransfer.searchTickets(smartTransferApiSearchTicketsRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: "CompletableFuture>\ - \ response = fireblocks.smartTransfer().searchTickets(q, statuses, networkId,\ - \ createdByMe, expiresAfter, expiresBefore, type, externalRefId, after,\ - \ limit);" - name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.smart_transfer.search_tickets(q, statuses,\ - \ network_id, created_by_me, expires_after, expires_before, type, external_ref_id,\ - \ after, limit);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.smartTransfer.searchTickets(smartTransferApiSearchTicketsRequest);" - - lang: Java - source: "CompletableFuture>\ - \ response = fireblocks.smartTransfer().searchTickets(q, statuses, networkId,\ - \ createdByMe, expiresAfter, expiresBefore, type, externalRefId, after,\ - \ limit);" - - lang: Python - source: "response = fireblocks.smart_transfer.search_tickets(q, statuses,\ - \ network_id, created_by_me, expires_after, expires_before, type, external_ref_id,\ - \ after, limit);" - x-accepts: - - application/json - post: - description: Creates new Smart Transfer ticket - operationId: createTicket - parameters: - - description: "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." - explode: false - in: header - name: Idempotency-Key - required: false - schema: - type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/SmartTransferCreateTicket" - required: true - responses: - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/SmartTransferTicketResponse" - description: Smart Transfer ticket was created successfully - "403": - content: - application/json: - schema: - $ref: "#/components/schemas/SmartTransferForbiddenResponse" - description: Unauthorized - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/SmartTransferBadRequestResponse" - description: Bad Request - summary: Create Ticket - tags: - - Smart Transfer - x-rate-limit-category: async - x-readme: - code-samples: - - language: typescript - code: "const response: Promise>\ - \ = fireblocks.smartTransfer.createTicket(smartTransferApiCreateTicketRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: "CompletableFuture> response\ - \ = fireblocks.smartTransfer().createTicket(smartTransferCreateTicket,\ - \ idempotencyKey);" - name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.smart_transfer.create_ticket(smart_transfer_create_ticket,\ - \ idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.smartTransfer.createTicket(smartTransferApiCreateTicketRequest);" - - lang: Java - source: "CompletableFuture> response\ - \ = fireblocks.smartTransfer().createTicket(smartTransferCreateTicket, idempotencyKey);" - - lang: Python - source: "response = fireblocks.smart_transfer.create_ticket(smart_transfer_create_ticket,\ - \ idempotency_key);" - x-content-type: application/json - x-accepts: - - application/json - /smart-transfers/{ticketId}: - get: - description: Find Smart Transfer ticket by id - operationId: findTicketById - parameters: - - explode: false - in: path - name: ticketId - required: true - schema: - type: string - style: simple - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SmartTransferTicketResponse" - description: Smart Transfer ticket returned successfully - "403": - content: - application/json: - schema: - $ref: "#/components/schemas/SmartTransferForbiddenResponse" - description: Unauthorized - "404": - content: - application/json: - schema: - $ref: "#/components/schemas/SmartTransferNotFoundResponse" - description: Not found - summary: Search Tickets by ID - tags: - - Smart Transfer - x-rate-limit-category: query - x-readme: - code-samples: - - language: typescript - code: "const response: Promise>\ - \ = fireblocks.smartTransfer.findTicketById(smartTransferApiFindTicketByIdRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: CompletableFuture> response - = fireblocks.smartTransfer().findTicketById(ticketId); - name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.smart_transfer.find_ticket_by_id(ticket_id); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.smartTransfer.findTicketById(smartTransferApiFindTicketByIdRequest);" - - lang: Java - source: CompletableFuture> response - = fireblocks.smartTransfer().findTicketById(ticketId); - - lang: Python - source: response = fireblocks.smart_transfer.find_ticket_by_id(ticket_id); - x-accepts: - - application/json - /smart-transfers/{ticketId}/expires-in: - put: - description: Set expiration date on Smart Transfer ticket - operationId: setTicketExpiration - parameters: - - explode: false - in: path - name: ticketId - required: true - schema: - type: string - style: simple - - description: "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." - explode: false - in: header - name: Idempotency-Key - required: false - schema: - type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/SmartTransferSetTicketExpiration" - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SmartTransferTicketResponse" - description: Successfully set expiration date on Smart Transfer ticket - "403": - content: - application/json: - schema: - $ref: "#/components/schemas/SmartTransferForbiddenResponse" - description: Unauthorized - "404": - content: - application/json: - schema: - $ref: "#/components/schemas/SmartTransferNotFoundResponse" - description: Not found - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/SmartTransferBadRequestResponse" - description: Bad Request - summary: Set expiration - tags: - - Smart Transfer - x-rate-limit-category: write - x-readme: - code-samples: - - language: typescript - code: "const response: Promise>\ - \ = fireblocks.smartTransfer.setTicketExpiration(smartTransferApiSetTicketExpirationRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: "CompletableFuture> response\ - \ = fireblocks.smartTransfer().setTicketExpiration(smartTransferSetTicketExpiration,\ - \ ticketId, idempotencyKey);" - name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.smart_transfer.set_ticket_expiration(smart_transfer_set_ticket_expiration,\ - \ ticket_id, idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.smartTransfer.setTicketExpiration(smartTransferApiSetTicketExpirationRequest);" - - lang: Java - source: "CompletableFuture> response\ - \ = fireblocks.smartTransfer().setTicketExpiration(smartTransferSetTicketExpiration,\ - \ ticketId, idempotencyKey);" - - lang: Python - source: "response = fireblocks.smart_transfer.set_ticket_expiration(smart_transfer_set_ticket_expiration,\ - \ ticket_id, idempotency_key);" - x-content-type: application/json - x-accepts: - - application/json - /smart-transfers/{ticketId}/external-id: - put: - description: Set external id Smart Transfer ticket - operationId: setExternalRefId - parameters: - - explode: false - in: path - name: ticketId - required: true - schema: - type: string - style: simple - - description: "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." - explode: false - in: header - name: Idempotency-Key - required: false - schema: - type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/SmartTransferSetTicketExternalId" - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SmartTransferTicketResponse" - description: Successfully set external id on Smart Transfer ticket - "403": - content: - application/json: - schema: - $ref: "#/components/schemas/SmartTransferForbiddenResponse" - description: Unauthorized - "404": - content: - application/json: - schema: - $ref: "#/components/schemas/SmartTransferNotFoundResponse" - description: Not found - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/SmartTransferBadRequestResponse" - description: Bad Request - summary: Add external ref. ID - tags: - - Smart Transfer - x-rate-limit-category: write - x-readme: - code-samples: - - language: typescript - code: "const response: Promise>\ - \ = fireblocks.smartTransfer.setExternalRefId(smartTransferApiSetExternalRefIdRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: "CompletableFuture> response\ - \ = fireblocks.smartTransfer().setExternalRefId(smartTransferSetTicketExternalId,\ - \ ticketId, idempotencyKey);" - name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.smart_transfer.set_external_ref_id(smart_transfer_set_ticket_external_id,\ - \ ticket_id, idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.smartTransfer.setExternalRefId(smartTransferApiSetExternalRefIdRequest);" - - lang: Java - source: "CompletableFuture> response\ - \ = fireblocks.smartTransfer().setExternalRefId(smartTransferSetTicketExternalId,\ - \ ticketId, idempotencyKey);" - - lang: Python - source: "response = fireblocks.smart_transfer.set_external_ref_id(smart_transfer_set_ticket_external_id,\ - \ ticket_id, idempotency_key);" - x-content-type: application/json - x-accepts: - - application/json - /smart-transfers/{ticketId}/submit: - put: - description: "Submit Smart Transfer ticket - change status into ready for approval\ - \ if auto approval is not turned on, or OPEN if auto approval is on" - operationId: submitTicket - parameters: - - explode: false - in: path - name: ticketId - required: true - schema: - type: string - style: simple - - description: "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." - explode: false - in: header - name: Idempotency-Key - required: false - schema: - type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/SmartTransferSubmitTicket" - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SmartTransferTicketResponse" - description: Successfully submitted Smart Transfer ticket - "403": - content: - application/json: - schema: - $ref: "#/components/schemas/SmartTransferForbiddenResponse" - description: Unauthorized - "404": - content: - application/json: - schema: - $ref: "#/components/schemas/SmartTransferNotFoundResponse" - description: Not found - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/SmartTransferBadRequestResponse" - description: Bad Request - summary: Submit ticket - tags: - - Smart Transfer - x-rate-limit-category: write - x-readme: - code-samples: - - language: typescript - code: "const response: Promise>\ - \ = fireblocks.smartTransfer.submitTicket(smartTransferApiSubmitTicketRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: "CompletableFuture> response\ - \ = fireblocks.smartTransfer().submitTicket(smartTransferSubmitTicket,\ - \ ticketId, idempotencyKey);" - name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.smart_transfer.submit_ticket(smart_transfer_submit_ticket,\ - \ ticket_id, idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.smartTransfer.submitTicket(smartTransferApiSubmitTicketRequest);" - - lang: Java - source: "CompletableFuture> response\ - \ = fireblocks.smartTransfer().submitTicket(smartTransferSubmitTicket, ticketId,\ - \ idempotencyKey);" - - lang: Python - source: "response = fireblocks.smart_transfer.submit_ticket(smart_transfer_submit_ticket,\ - \ ticket_id, idempotency_key);" - x-content-type: application/json - x-accepts: - - application/json - /smart-transfers/{ticketId}/fulfill: - put: - description: "Manually fulfill ticket, in case when all terms (legs) are funded\ - \ manually" - operationId: fulfillTicket - parameters: - - explode: false - in: path - name: ticketId - required: true - schema: - type: string - style: simple - - description: "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." - explode: false - in: header - name: Idempotency-Key - required: false - schema: - type: string - style: simple - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SmartTransferTicketResponse" - description: Successfully fulfilled on Smart Transfer ticket - "403": - content: - application/json: - schema: - $ref: "#/components/schemas/SmartTransferForbiddenResponse" - description: Unauthorized - "404": - content: - application/json: - schema: - $ref: "#/components/schemas/SmartTransferNotFoundResponse" - description: Not found - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/SmartTransferBadRequestResponse" - description: Bad Request - summary: Fund ticket manually - tags: - - Smart Transfer - x-rate-limit-category: write - x-readme: - code-samples: - - language: typescript - code: "const response: Promise>\ - \ = fireblocks.smartTransfer.fulfillTicket(smartTransferApiFulfillTicketRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: "CompletableFuture> response\ - \ = fireblocks.smartTransfer().fulfillTicket(ticketId, idempotencyKey);" - name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.smart_transfer.fulfill_ticket(ticket_id, idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.smartTransfer.fulfillTicket(smartTransferApiFulfillTicketRequest);" - - lang: Java - source: "CompletableFuture> response\ - \ = fireblocks.smartTransfer().fulfillTicket(ticketId, idempotencyKey);" - - lang: Python - source: "response = fireblocks.smart_transfer.fulfill_ticket(ticket_id, idempotency_key);" - x-accepts: - - application/json - /smart_transfers/{ticketId}/dvp/fund: - put: - description: Create or fulfill dvp ticket order - operationId: fundDvpTicket - parameters: - - explode: false - in: path - name: ticketId - required: true - schema: - type: string - style: simple - - description: "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." - explode: false - in: header - name: Idempotency-Key - required: false - schema: - type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/SmartTransferFundDvpTicket" - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SmartTransferTicketResponse" - description: Successfully started creating or fulfilling order on dvp Smart - Transfer ticket - "403": - content: - application/json: - schema: - $ref: "#/components/schemas/SmartTransferForbiddenResponse" - description: Unauthorized - "404": - content: - application/json: - schema: - $ref: "#/components/schemas/SmartTransferNotFoundResponse" - description: Not found - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/SmartTransferBadRequestResponse" - description: Bad Request - summary: Fund dvp ticket - tags: - - Smart Transfer - x-rate-limit-category: write - x-readme: - code-samples: - - language: typescript - code: "const response: Promise>\ - \ = fireblocks.smartTransfer.fundDvpTicket(smartTransferApiFundDvpTicketRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: "CompletableFuture> response\ - \ = fireblocks.smartTransfer().fundDvpTicket(smartTransferFundDvpTicket,\ - \ ticketId, idempotencyKey);" - name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.smart_transfer.fund_dvp_ticket(smart_transfer_fund_dvp_ticket,\ - \ ticket_id, idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.smartTransfer.fundDvpTicket(smartTransferApiFundDvpTicketRequest);" - - lang: Java - source: "CompletableFuture> response\ - \ = fireblocks.smartTransfer().fundDvpTicket(smartTransferFundDvpTicket,\ - \ ticketId, idempotencyKey);" - - lang: Python - source: "response = fireblocks.smart_transfer.fund_dvp_ticket(smart_transfer_fund_dvp_ticket,\ - \ ticket_id, idempotency_key);" - x-content-type: application/json - x-accepts: - - application/json - /smart-transfers/{ticketId}/cancel: - put: - description: Cancel Smart Transfer ticket - operationId: cancelTicket - parameters: - - explode: false - in: path - name: ticketId - required: true - schema: - type: string - style: simple - - description: "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." - explode: false - in: header - name: Idempotency-Key - required: false - schema: - type: string - style: simple - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SmartTransferTicketResponse" - description: Smart Transfer ticket successfully canceled - "403": - content: - application/json: - schema: - $ref: "#/components/schemas/SmartTransferForbiddenResponse" - description: Unauthorized - "404": - content: - application/json: - schema: - $ref: "#/components/schemas/SmartTransferNotFoundResponse" - description: Not found - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/SmartTransferBadRequestResponse" - description: Bad Request - summary: Cancel Ticket - tags: - - Smart Transfer - x-rate-limit-category: write - x-readme: - code-samples: - - language: typescript - code: "const response: Promise>\ - \ = fireblocks.smartTransfer.cancelTicket(smartTransferApiCancelTicketRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: "CompletableFuture> response\ - \ = fireblocks.smartTransfer().cancelTicket(ticketId, idempotencyKey);" - name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.smart_transfer.cancel_ticket(ticket_id, idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.smartTransfer.cancelTicket(smartTransferApiCancelTicketRequest);" - - lang: Java - source: "CompletableFuture> response\ - \ = fireblocks.smartTransfer().cancelTicket(ticketId, idempotencyKey);" - - lang: Python - source: "response = fireblocks.smart_transfer.cancel_ticket(ticket_id, idempotency_key);" - x-accepts: - - application/json - /smart-transfers/{ticketId}/terms: - post: - description: Creates new smart transfer ticket term (when the ticket status - is DRAFT) - operationId: createTicketTerm - parameters: - - explode: false - in: path - name: ticketId - required: true - schema: - type: string - style: simple - - description: "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." - explode: false - in: header - name: Idempotency-Key - required: false - schema: - type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/SmartTransferCreateTicketTerm" - required: true - responses: - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/SmartTransferTicketTermResponse" - description: Smart Transfer ticket term was created successfully - "403": - content: - application/json: - schema: - $ref: "#/components/schemas/SmartTransferForbiddenResponse" - description: Unauthorized - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/SmartTransferBadRequestResponse" - description: Bad Request - summary: Create leg (term) - tags: - - Smart Transfer - x-rate-limit-category: write - x-readme: - code-samples: - - language: typescript - code: "const response: Promise>\ - \ = fireblocks.smartTransfer.createTicketTerm(smartTransferApiCreateTicketTermRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: "CompletableFuture> response\ - \ = fireblocks.smartTransfer().createTicketTerm(smartTransferCreateTicketTerm,\ - \ ticketId, idempotencyKey);" - name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.smart_transfer.create_ticket_term(smart_transfer_create_ticket_term,\ - \ ticket_id, idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.smartTransfer.createTicketTerm(smartTransferApiCreateTicketTermRequest);" - - lang: Java - source: "CompletableFuture> response\ - \ = fireblocks.smartTransfer().createTicketTerm(smartTransferCreateTicketTerm,\ - \ ticketId, idempotencyKey);" - - lang: Python - source: "response = fireblocks.smart_transfer.create_ticket_term(smart_transfer_create_ticket_term,\ - \ ticket_id, idempotency_key);" - x-content-type: application/json - x-accepts: - - application/json - /smart-transfers/{ticketId}/terms/{termId}: - delete: - description: Delete ticket term when ticket is in DRAFT status - operationId: removeTicketTerm - parameters: - - explode: false - in: path - name: ticketId - required: true - schema: - type: string - style: simple - - explode: false - in: path - name: termId - required: true - schema: - type: string - style: simple - responses: - "204": - description: Smart Transfer ticket term successfully removed - "403": - content: - application/json: - schema: - $ref: "#/components/schemas/SmartTransferForbiddenResponse" - description: Unauthorized - "404": - content: - application/json: - schema: - $ref: "#/components/schemas/SmartTransferNotFoundResponse" - description: Not found - summary: Delete ticket leg (term) - tags: - - Smart Transfer - x-rate-limit-category: write - x-readme: - code-samples: - - language: typescript - code: "const response: Promise> = fireblocks.smartTransfer.removeTicketTerm(smartTransferApiRemoveTicketTermRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: "CompletableFuture> response = fireblocks.smartTransfer().removeTicketTerm(ticketId,\ - \ termId);" - name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.smart_transfer.remove_ticket_term(ticket_id,\ - \ term_id);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.smartTransfer.removeTicketTerm(smartTransferApiRemoveTicketTermRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.smartTransfer().removeTicketTerm(ticketId,\ - \ termId);" - - lang: Python - source: "response = fireblocks.smart_transfer.remove_ticket_term(ticket_id,\ - \ term_id);" - x-accepts: - - application/json - get: - description: Find Smart Transfer ticket term by id - operationId: findTicketTermById - parameters: - - explode: false - in: path - name: ticketId - required: true - schema: - type: string - style: simple - - explode: false - in: path - name: termId - required: true - schema: - type: string - style: simple - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SmartTransferTicketTermResponse" - description: Smart Transfer ticket term returned successfully - "403": - content: - application/json: - schema: - $ref: "#/components/schemas/SmartTransferForbiddenResponse" - description: Unauthorized - "404": - content: - application/json: - schema: - $ref: "#/components/schemas/SmartTransferNotFoundResponse" - description: Not found - summary: Search ticket by leg (term) ID - tags: - - Smart Transfer - x-rate-limit-category: read - x-readme: - code-samples: - - language: typescript - code: "const response: Promise>\ - \ = fireblocks.smartTransfer.findTicketTermById(smartTransferApiFindTicketTermByIdRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: "CompletableFuture> response\ - \ = fireblocks.smartTransfer().findTicketTermById(ticketId, termId);" - name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.smart_transfer.find_ticket_term_by_id(ticket_id,\ - \ term_id);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.smartTransfer.findTicketTermById(smartTransferApiFindTicketTermByIdRequest);" - - lang: Java - source: "CompletableFuture> response\ - \ = fireblocks.smartTransfer().findTicketTermById(ticketId, termId);" - - lang: Python - source: "response = fireblocks.smart_transfer.find_ticket_term_by_id(ticket_id,\ - \ term_id);" - x-accepts: - - application/json - put: - description: Update ticket term (when ticket status is DRAFT) - operationId: updateTicketTerm - parameters: - - explode: false - in: path - name: ticketId - required: true - schema: - type: string - style: simple - - explode: false - in: path - name: termId - required: true - schema: - type: string - style: simple - - description: "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." - explode: false - in: header - name: Idempotency-Key - required: false - schema: - type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/SmartTransferUpdateTicketTerm" - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SmartTransferTicketTermResponse" - description: Smart Transfer ticket term updated successfully - "403": - content: - application/json: - schema: - $ref: "#/components/schemas/SmartTransferForbiddenResponse" - description: Unauthorized - "404": - content: - application/json: - schema: - $ref: "#/components/schemas/SmartTransferNotFoundResponse" - description: Not found - summary: Update ticket leg (term) - tags: - - Smart Transfer - x-rate-limit-category: write - x-readme: - code-samples: - - language: typescript - code: "const response: Promise>\ - \ = fireblocks.smartTransfer.updateTicketTerm(smartTransferApiUpdateTicketTermRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: "CompletableFuture> response\ - \ = fireblocks.smartTransfer().updateTicketTerm(smartTransferUpdateTicketTerm,\ - \ ticketId, termId, idempotencyKey);" - name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.smart_transfer.update_ticket_term(smart_transfer_update_ticket_term,\ - \ ticket_id, term_id, idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.smartTransfer.updateTicketTerm(smartTransferApiUpdateTicketTermRequest);" - - lang: Java - source: "CompletableFuture> response\ - \ = fireblocks.smartTransfer().updateTicketTerm(smartTransferUpdateTicketTerm,\ - \ ticketId, termId, idempotencyKey);" - - lang: Python - source: "response = fireblocks.smart_transfer.update_ticket_term(smart_transfer_update_ticket_term,\ - \ ticket_id, term_id, idempotency_key);" - x-content-type: application/json - x-accepts: - - application/json - /smart-transfers/{ticketId}/terms/{termId}/fund: - put: - description: "Set funding source for ticket term (in case of ASYNC tickets,\ - \ this will execute transfer immediately)" - operationId: fundTicketTerm - parameters: - - explode: false - in: path - name: ticketId - required: true - schema: - type: string - style: simple - - explode: false - in: path - name: termId - required: true - schema: - type: string - style: simple - - description: "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." - explode: false - in: header - name: Idempotency-Key - required: false - schema: - type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/SmartTransferFundTerm" - required: true - responses: - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/SmartTransferTicketTermResponse" - description: Funding source for ticket term successfully done - "403": - content: - application/json: - schema: - $ref: "#/components/schemas/SmartTransferForbiddenResponse" - description: Unauthorized - "404": - content: - application/json: - schema: - $ref: "#/components/schemas/SmartTransferNotFoundResponse" - description: Not found - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/SmartTransferBadRequestResponse" - description: Bad Request - summary: Define funding source - tags: - - Smart Transfer - x-rate-limit-category: write - x-readme: - code-samples: - - language: typescript - code: "const response: Promise>\ - \ = fireblocks.smartTransfer.fundTicketTerm(smartTransferApiFundTicketTermRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: "CompletableFuture> response\ - \ = fireblocks.smartTransfer().fundTicketTerm(smartTransferFundTerm, ticketId,\ - \ termId, idempotencyKey);" - name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.smart_transfer.fund_ticket_term(smart_transfer_fund_term,\ - \ ticket_id, term_id, idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.smartTransfer.fundTicketTerm(smartTransferApiFundTicketTermRequest);" - - lang: Java - source: "CompletableFuture> response\ - \ = fireblocks.smartTransfer().fundTicketTerm(smartTransferFundTerm, ticketId,\ - \ termId, idempotencyKey);" - - lang: Python - source: "response = fireblocks.smart_transfer.fund_ticket_term(smart_transfer_fund_term,\ - \ ticket_id, term_id, idempotency_key);" - x-content-type: application/json - x-accepts: - - application/json - /smart_transfers/{ticketId}/terms/{termId}/dvp/approve: - put: - description: Set funding source for ticket term and creating approving transaction - for contract to transfer asset - operationId: approveDvPTicketTerm - parameters: - - explode: false - in: path - name: ticketId - required: true - schema: - type: string - style: simple - - explode: false - in: path - name: termId - required: true - schema: - type: string - style: simple - - description: "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." - explode: false - in: header - name: Idempotency-Key - required: false - schema: - type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/SmartTransferApproveTerm" - required: true - responses: - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/SmartTransferTicketTermResponse" - description: Creating approval transaction started - "403": - content: - application/json: - schema: - $ref: "#/components/schemas/SmartTransferForbiddenResponse" - description: Unauthorized - "404": - content: - application/json: - schema: - $ref: "#/components/schemas/SmartTransferNotFoundResponse" - description: Not found - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/SmartTransferBadRequestResponse" - description: Bad Request - summary: Define funding source and give approve to contract to transfer asset - tags: - - Smart Transfer - x-rate-limit-category: write - x-readme: - code-samples: - - language: typescript - code: "const response: Promise>\ - \ = fireblocks.smartTransfer.approveDvPTicketTerm(smartTransferApiApproveDvPTicketTermRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: "CompletableFuture> response\ - \ = fireblocks.smartTransfer().approveDvPTicketTerm(smartTransferApproveTerm,\ - \ ticketId, termId, idempotencyKey);" - name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.smart_transfer.approve_dv_p_ticket_term(smart_transfer_approve_term,\ - \ ticket_id, term_id, idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.smartTransfer.approveDvPTicketTerm(smartTransferApiApproveDvPTicketTermRequest);" - - lang: Java - source: "CompletableFuture> response\ - \ = fireblocks.smartTransfer().approveDvPTicketTerm(smartTransferApproveTerm,\ - \ ticketId, termId, idempotencyKey);" - - lang: Python - source: "response = fireblocks.smart_transfer.approve_dv_p_ticket_term(smart_transfer_approve_term,\ - \ ticket_id, term_id, idempotency_key);" - x-content-type: application/json - x-accepts: - - application/json - /smart-transfers/{ticketId}/terms/{termId}/manually-fund: - put: - description: Manually set ticket term transaction - operationId: manuallyFundTicketTerm - parameters: - - explode: false - in: path - name: ticketId - required: true - schema: - type: string - style: simple - - explode: false - in: path - name: termId - required: true - schema: - type: string - style: simple - - description: "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." - explode: false - in: header - name: Idempotency-Key - required: false - schema: - type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/SmartTransferManuallyFundTerm" - required: true - responses: - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/SmartTransferTicketTermResponse" - description: Successfully manually set ticket term transaction - "403": - content: - application/json: - schema: - $ref: "#/components/schemas/SmartTransferForbiddenResponse" - description: Unauthorized - "404": - content: - application/json: - schema: - $ref: "#/components/schemas/SmartTransferNotFoundResponse" - description: Not found - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/SmartTransferBadRequestResponse" - description: Bad Request - summary: Manually add term transaction - tags: - - Smart Transfer - x-rate-limit-category: write - x-readme: - code-samples: - - language: typescript - code: "const response: Promise>\ - \ = fireblocks.smartTransfer.manuallyFundTicketTerm(smartTransferApiManuallyFundTicketTermRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: "CompletableFuture> response\ - \ = fireblocks.smartTransfer().manuallyFundTicketTerm(smartTransferManuallyFundTerm,\ - \ ticketId, termId, idempotencyKey);" - name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.smart_transfer.manually_fund_ticket_term(smart_transfer_manually_fund_term,\ - \ ticket_id, term_id, idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.smartTransfer.manuallyFundTicketTerm(smartTransferApiManuallyFundTicketTermRequest);" - - lang: Java - source: "CompletableFuture> response\ - \ = fireblocks.smartTransfer().manuallyFundTicketTerm(smartTransferManuallyFundTerm,\ - \ ticketId, termId, idempotencyKey);" - - lang: Python - source: "response = fireblocks.smart_transfer.manually_fund_ticket_term(smart_transfer_manually_fund_term,\ - \ ticket_id, term_id, idempotency_key);" - x-content-type: application/json - x-accepts: - - application/json - /smart-transfers/settings/user-groups: - get: - description: Get Smart Transfer user groups - operationId: getSmartTransferUserGroups - parameters: [] - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SmartTransferUserGroupsResponse" - description: User group settings were returned successfully - "403": - content: - application/json: - schema: - $ref: "#/components/schemas/SmartTransferForbiddenResponse" - description: Unauthorized - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/SmartTransferBadRequestResponse" - description: Bad Request - summary: Get user group - tags: - - Smart Transfer - x-rate-limit-category: query - x-readme: - code-samples: - - language: typescript - code: "const response: Promise>\ - \ = fireblocks.smartTransfer.getSmartTransferUserGroups();" - name: Fireblocks SDK TypeScript example - - language: java - code: CompletableFuture> response - = fireblocks.smartTransfer().getSmartTransferUserGroups(); - name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.smart_transfer.get_smart_transfer_user_groups(); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.smartTransfer.getSmartTransferUserGroups();" - - lang: Java - source: CompletableFuture> response - = fireblocks.smartTransfer().getSmartTransferUserGroups(); - - lang: Python - source: response = fireblocks.smart_transfer.get_smart_transfer_user_groups(); - x-accepts: - - application/json - post: - description: Set Smart Transfer user group - operationId: setUserGroups - parameters: - - description: "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." - explode: false - in: header - name: Idempotency-Key - required: false - schema: - type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/SmartTransferSetUserGroups" - required: true - responses: - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/SmartTransferUserGroupsResponse" - description: User group settings were set successfully - "403": - content: - application/json: - schema: - $ref: "#/components/schemas/SmartTransferForbiddenResponse" - description: Unauthorized - "422": - content: - application/json: - schema: - $ref: "#/components/schemas/SmartTransferBadRequestResponse" - description: Bad Request - summary: Set user group - tags: - - Smart Transfer - x-rate-limit-category: write - x-readme: - code-samples: - - language: typescript - code: "const response: Promise>\ - \ = fireblocks.smartTransfer.setUserGroups(smartTransferApiSetUserGroupsRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: "CompletableFuture> response\ - \ = fireblocks.smartTransfer().setUserGroups(smartTransferSetUserGroups,\ - \ idempotencyKey);" - name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.smart_transfer.set_user_groups(smart_transfer_set_user_groups,\ - \ idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.smartTransfer.setUserGroups(smartTransferApiSetUserGroupsRequest);" - - lang: Java - source: "CompletableFuture> response\ - \ = fireblocks.smartTransfer().setUserGroups(smartTransferSetUserGroups,\ - \ idempotencyKey);" - - lang: Python - source: "response = fireblocks.smart_transfer.set_user_groups(smart_transfer_set_user_groups,\ - \ idempotency_key);" - x-content-type: application/json - x-accepts: - - application/json - /smart_transfers/statistic: - get: - description: Get smart transfer statistic - operationId: getSmartTransferStatistic - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/SmartTransferStatistic" - description: Smart Transfer ticket statistic returned successfully - "403": - content: - application/json: - schema: - $ref: "#/components/schemas/SmartTransferForbiddenResponse" - description: Unauthorized - default: - $ref: "#/components/responses/Error" - summary: Get smart transfers statistic - tags: - - Smart Transfer - x-rate-limit-category: query - x-readme: - code-samples: - - language: typescript - code: "const response: Promise>\ - \ = fireblocks.smartTransfer.getSmartTransferStatistic();" - name: Fireblocks SDK TypeScript example - - language: java - code: CompletableFuture> response = - fireblocks.smartTransfer().getSmartTransferStatistic(); - name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.smart_transfer.get_smart_transfer_statistic(); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.smartTransfer.getSmartTransferStatistic();" - - lang: Java - source: CompletableFuture> response = - fireblocks.smartTransfer().getSmartTransferStatistic(); - - lang: Python - source: response = fireblocks.smart_transfer.get_smart_transfer_statistic(); - x-accepts: - - application/json - /batch/jobs: - get: - description: "Get an array of objects including all active, paused, canceled,\ - \ and complete jobs in a workspace." - operationId: getJobs - parameters: - - description: Start of time range in ms since 1970 - explode: true - in: query - name: fromTime - required: false - schema: - type: integer - style: form - - description: End of time range in ms since 1970 - explode: true - in: query - name: toTime - required: false - schema: - type: integer - style: form - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/Jobs" - description: An array of jobs - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: Return a list of jobs belonging to tenant - tags: - - Job Management - x-rate-limit-category: query - x-readme: - code-samples: - - language: typescript - code: "const response: Promise> = fireblocks.jobManagement.getJobs(jobManagementApiGetJobsRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: "CompletableFuture>> response = fireblocks.jobManagement().getJobs(fromTime,\ - \ toTime);" - name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.job_management.get_jobs(from_time, to_time);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.jobManagement.getJobs(jobManagementApiGetJobsRequest);" - - lang: Java - source: "CompletableFuture>> response = fireblocks.jobManagement().getJobs(fromTime,\ - \ toTime);" - - lang: Python - source: "response = fireblocks.job_management.get_jobs(from_time, to_time);" - x-accepts: - - application/json - /batch/{jobId}: - get: - description: Get an object describing the given job - operationId: getJob - parameters: - - description: The requested job id - explode: false - in: path - name: jobId - required: true - schema: - type: string - style: simple - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/Job" - description: A JSON object that describes the job - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: Get job details - tags: - - Job Management - x-rate-limit-category: read - x-readme: - code-samples: - - language: typescript - code: "const response: Promise> = fireblocks.jobManagement.getJob(jobManagementApiGetJobRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: CompletableFuture> response = fireblocks.jobManagement().getJob(jobId); - name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.job_management.get_job(job_id); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.jobManagement.getJob(jobManagementApiGetJobRequest);" - - lang: Java - source: CompletableFuture> response = fireblocks.jobManagement().getJob(jobId); - - lang: Python - source: response = fireblocks.job_management.get_job(job_id); - x-accepts: - - application/json - /batch/{jobId}/pause: - post: - description: "Pause the given job, after the current task is done. A paused\ - \ job can later be resumed by calling 'continue', or canceled." - operationId: pauseJob - parameters: - - description: The requested job id - explode: false - in: path - name: jobId - required: true - schema: - type: string - style: simple - - description: "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." - explode: false - in: header - name: Idempotency-Key - required: false - schema: - type: string - style: simple - responses: - "200": - description: paused successfully - default: - $ref: "#/components/responses/Error" - summary: Pause a job - tags: - - Job Management - x-rate-limit-category: write - x-readme: - code-samples: - - language: typescript - code: "const response: Promise> = fireblocks.jobManagement.pauseJob(jobManagementApiPauseJobRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: "CompletableFuture> response = fireblocks.jobManagement().pauseJob(jobId,\ - \ idempotencyKey);" - name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.job_management.pause_job(job_id, idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.jobManagement.pauseJob(jobManagementApiPauseJobRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.jobManagement().pauseJob(jobId,\ - \ idempotencyKey);" - - lang: Python - source: "response = fireblocks.job_management.pause_job(job_id, idempotency_key);" - x-accepts: - - application/json - /batch/{jobId}/continue: - post: - description: Continue the given paused job. - operationId: continueJob - parameters: - - description: The requested job id - explode: false - in: path - name: jobId - required: true - schema: - type: string - style: simple - - description: "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." - explode: false - in: header - name: Idempotency-Key - required: false - schema: - type: string - style: simple - responses: - "200": - description: continued successfully - default: - $ref: "#/components/responses/Error" - summary: Continue a paused job - tags: - - Job Management - x-rate-limit-category: write - x-readme: - code-samples: - - language: typescript - code: "const response: Promise> = fireblocks.jobManagement.continueJob(jobManagementApiContinueJobRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: "CompletableFuture> response = fireblocks.jobManagement().continueJob(jobId,\ - \ idempotencyKey);" - name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.job_management.continue_job(job_id, idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.jobManagement.continueJob(jobManagementApiContinueJobRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.jobManagement().continueJob(jobId,\ - \ idempotencyKey);" - - lang: Python - source: "response = fireblocks.job_management.continue_job(job_id, idempotency_key);" - x-accepts: - - application/json - /batch/{jobId}/cancel: - post: - description: "Stop the given job immediately. If the job is in the 'Active'\ - \ state, the job will be canceled after completing the current task. Vault\ - \ accounts and Wallets that are already created will not be affected." - operationId: cancelJob - parameters: - - description: The requested job id - explode: false - in: path - name: jobId - required: true - schema: - type: string - style: simple - - description: "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." - explode: false - in: header - name: Idempotency-Key - required: false - schema: - type: string - style: simple - responses: - "200": - description: canceled successfully - default: - $ref: "#/components/responses/Error" - summary: Cancel a running job - tags: - - Job Management - x-rate-limit-category: read - x-readme: - code-samples: - - language: typescript - code: "const response: Promise> = fireblocks.jobManagement.cancelJob(jobManagementApiCancelJobRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: "CompletableFuture> response = fireblocks.jobManagement().cancelJob(jobId,\ - \ idempotencyKey);" - name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.job_management.cancel_job(job_id, idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.jobManagement.cancelJob(jobManagementApiCancelJobRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.jobManagement().cancelJob(jobId,\ - \ idempotencyKey);" - - lang: Python - source: "response = fireblocks.job_management.cancel_job(job_id, idempotency_key);" - x-accepts: - - application/json - /batch/{jobId}/tasks: - get: - description: Return a list of tasks for given job - operationId: getJobTasks - parameters: - - description: The requested job id - explode: false - in: path - name: jobId - required: true - schema: - type: string - style: simple - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/Tasks" - description: An array of tasks - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: Return a list of tasks for given job - tags: - - Job Management - x-rate-limit-category: query - x-readme: - code-samples: - - language: typescript - code: "const response: Promise> = fireblocks.jobManagement.getJobTasks(jobManagementApiGetJobTasksRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: CompletableFuture>> response = fireblocks.jobManagement().getJobTasks(jobId); - name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.job_management.get_job_tasks(job_id); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.jobManagement.getJobTasks(jobManagementApiGetJobTasksRequest);" - - lang: Java - source: CompletableFuture>> response = fireblocks.jobManagement().getJobTasks(jobId); - - lang: Python - source: response = fireblocks.job_management.get_job_tasks(job_id); - x-accepts: - - application/json - /tags: - get: - description: Retrieve a paged list of all tags according to filters. - operationId: getTags - parameters: - - description: Page cursor to get the next page. - example: MjAyMy0xMi0xMyAyMDozNjowOC4zMDI=:MTEwMA== - explode: true - in: query - name: pageCursor - required: false - schema: - type: string - style: form - - description: Maximum number of items in the page - explode: true - in: query - name: pageSize - required: false - schema: - default: 100 - maximum: 100 - minimum: 1 - type: number - style: form - - description: Label prefix to filter by. - example: VIP - explode: true - in: query - name: label - required: false - schema: - type: string - style: form - - description: List of tag IDs to filter by. - explode: true - in: query - name: tagIds - required: false - schema: - items: - format: uuid - type: string - maxItems: 100 - type: array - style: form - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/TagsPagedResponse" - description: A TagsPagedResponse object - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - summary: Get list of tags - tags: - - Tags - x-rate-limit-category: query - x-readme: - code-samples: - - language: typescript - code: "const response: Promise> =\ - \ fireblocks.tags.getTags(tagsApiGetTagsRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: "CompletableFuture> response = fireblocks.tags().getTags(pageCursor,\ - \ pageSize, label, tagIds);" - name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.tags.get_tags(page_cursor, page_size, label,\ - \ tag_ids);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> =\ - \ fireblocks.tags.getTags(tagsApiGetTagsRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.tags().getTags(pageCursor,\ - \ pageSize, label, tagIds);" - - lang: Python - source: "response = fireblocks.tags.get_tags(page_cursor, page_size, label,\ - \ tag_ids);" - x-accepts: - - application/json - post: - description: Create a new tag. - operationId: createTag - parameters: - - description: "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." - explode: false - in: header - name: Idempotency-Key - required: false - schema: - type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/CreateTagRequest" - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/Tag" - description: A tag object - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - summary: Create a tag - tags: - - Tags - x-rate-limit-category: write - x-readme: - code-samples: - - language: typescript - code: "const response: Promise> = fireblocks.tags.createTag(tagsApiCreateTagRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: "CompletableFuture> response = fireblocks.tags().createTag(createTagRequest,\ - \ idempotencyKey);" - name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.tags.create_tag(create_tag_request, idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.tags.createTag(tagsApiCreateTagRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.tags().createTag(createTagRequest,\ - \ idempotencyKey);" - - lang: Python - source: "response = fireblocks.tags.create_tag(create_tag_request, idempotency_key);" - x-content-type: application/json - x-accepts: - - application/json - /tags/{tagId}: - delete: - description: Delete the specified tag. - operationId: deleteTag - parameters: - - description: The ID of the tag to retrieve - explode: false - in: path - name: tagId - required: true - schema: - format: uuid - type: string - style: simple - responses: - "204": - description: Tag was deleted successfully - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - summary: Delete a tag - tags: - - Tags - x-rate-limit-category: write - x-readme: - code-samples: - - language: typescript - code: "const response: Promise> = fireblocks.tags.deleteTag(tagsApiDeleteTagRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: CompletableFuture> response = fireblocks.tags().deleteTag(tagId); - name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.tags.delete_tag(tag_id); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.tags.deleteTag(tagsApiDeleteTagRequest);" - - lang: Java - source: CompletableFuture> response = fireblocks.tags().deleteTag(tagId); - - lang: Python - source: response = fireblocks.tags.delete_tag(tag_id); - x-accepts: - - application/json - get: - description: Retrieve an existing tag by ID. - operationId: getTag - parameters: - - description: The ID of the tag to retrieve - explode: false - in: path - name: tagId - required: true - schema: - format: uuid - type: string - style: simple - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/Tag" - description: A tag object - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - summary: Get a tag - tags: - - Tags - x-rate-limit-category: read - x-readme: - code-samples: - - language: typescript - code: "const response: Promise> = fireblocks.tags.getTag(tagsApiGetTagRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: CompletableFuture> response = fireblocks.tags().getTag(tagId); - name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.tags.get_tag(tag_id); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.tags.getTag(tagsApiGetTagRequest);" - - lang: Java - source: CompletableFuture> response = fireblocks.tags().getTag(tagId); - - lang: Python - source: response = fireblocks.tags.get_tag(tag_id); - x-accepts: - - application/json - patch: - description: Update an existing specified tag. - operationId: updateTag - parameters: - - description: The ID of the tag to update - explode: false - in: path - name: tagId - required: true - schema: - format: uuid - type: string - style: simple - - description: "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." - explode: false - in: header - name: Idempotency-Key - required: false - schema: - type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/UpdateTagRequest" - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/Tag" - description: A tag object - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - summary: Update a tag - tags: - - Tags - x-rate-limit-category: write - x-readme: - code-samples: - - language: typescript - code: "const response: Promise> = fireblocks.tags.updateTag(tagsApiUpdateTagRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: "CompletableFuture> response = fireblocks.tags().updateTag(updateTagRequest,\ - \ tagId, idempotencyKey);" - name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.tags.update_tag(update_tag_request, tag_id,\ - \ idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.tags.updateTag(tagsApiUpdateTagRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.tags().updateTag(updateTagRequest,\ - \ tagId, idempotencyKey);" - - lang: Python - source: "response = fireblocks.tags.update_tag(update_tag_request, tag_id,\ - \ idempotency_key);" - x-content-type: application/json - x-accepts: - - application/json - /cosigners: - get: - description: | - Get all workspace cosigners (paginated) - **Note:** These endpoints are currently in beta and might be subject to changes. - operationId: getCosigners - parameters: - - description: ASC / DESC ordering (default DESC) - example: ASC - explode: true - in: query - name: order - required: false - schema: - default: DESC - enum: - - ASC - - DESC - type: string - style: form - - description: Cursor of the required page - explode: true - in: query - name: pageCursor - required: false - schema: - type: string - style: form - - description: Maximum number of items in the page - example: 10 - explode: true - in: query - name: pageSize - required: false - schema: - default: 10 - maximum: 100 - minimum: 1 - type: number - style: form - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/CosignersPaginatedResponse" - description: A paginated response containing Cosigner objects - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: Get all cosigners - tags: - - Cosigners (Beta) - x-rate-limit-category: query - x-readme: - code-samples: - - language: typescript - code: "const response: Promise>\ - \ = fireblocks.cosignersBeta.getCosigners(cosignersBetaApiGetCosignersRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: "CompletableFuture> response\ - \ = fireblocks.cosignersBeta().getCosigners(order, pageCursor, pageSize);" - name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.cosigners_beta.get_cosigners(order, page_cursor,\ - \ page_size);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.cosignersBeta.getCosigners(cosignersBetaApiGetCosignersRequest);" - - lang: Java - source: "CompletableFuture> response\ - \ = fireblocks.cosignersBeta().getCosigners(order, pageCursor, pageSize);" - - lang: Python - source: "response = fireblocks.cosigners_beta.get_cosigners(order, page_cursor,\ - \ page_size);" - x-accepts: - - application/json - post: - description: Add a new cosigner. The cosigner will be pending pairing until - the API key is manually paired - operationId: addCosigner - parameters: - - description: "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." - explode: false - in: header - name: Idempotency-Key - required: false - schema: - type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/AddCosignerRequest" - required: true - responses: - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/AddCosignerResponse" - description: Pending cosigner added - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: Add cosigner - tags: - - Cosigners (Beta) - x-rate-limit-category: write - x-readme: - code-samples: - - language: typescript - code: "const response: Promise>\ - \ = fireblocks.cosignersBeta.addCosigner(cosignersBetaApiAddCosignerRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: "CompletableFuture> response = fireblocks.cosignersBeta().addCosigner(addCosignerRequest,\ - \ idempotencyKey);" - name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.cosigners_beta.add_cosigner(add_cosigner_request,\ - \ idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.cosignersBeta.addCosigner(cosignersBetaApiAddCosignerRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.cosignersBeta().addCosigner(addCosignerRequest,\ - \ idempotencyKey);" - - lang: Python - source: "response = fireblocks.cosigners_beta.add_cosigner(add_cosigner_request,\ - \ idempotency_key);" - x-content-type: application/json - x-accepts: - - application/json - /cosigners/{cosignerId}: - get: - description: | - Get a cosigner by ID - **Note:** These endpoints are currently in beta and might be subject to changes. - operationId: getCosigner - parameters: - - description: The unique identifier of the cosigner - example: 44fcead0-7053-4831-a53a-df7fb90d440f - explode: false - in: path - name: cosignerId - required: true - schema: - format: uuid - type: string - style: simple - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/Cosigner" - description: A cosigner object - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: Get cosigner - tags: - - Cosigners (Beta) - x-rate-limit-category: read - x-readme: - code-samples: - - language: typescript - code: "const response: Promise> = fireblocks.cosignersBeta.getCosigner(cosignersBetaApiGetCosignerRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: CompletableFuture> response = fireblocks.cosignersBeta().getCosigner(cosignerId); - name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.cosigners_beta.get_cosigner(cosigner_id); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.cosignersBeta.getCosigner(cosignersBetaApiGetCosignerRequest);" - - lang: Java - source: CompletableFuture> response = fireblocks.cosignersBeta().getCosigner(cosignerId); - - lang: Python - source: response = fireblocks.cosigners_beta.get_cosigner(cosigner_id); - x-accepts: - - application/json - patch: - description: | - Rename a cosigner by ID - **Note:** These endpoints are currently in beta and might be subject to changes. - operationId: renameCosigner - parameters: - - description: The unique identifier of the cosigner - example: 44fcead0-7053-4831-a53a-df7fb90d440f - explode: false - in: path - name: cosignerId - required: true - schema: - format: uuid - type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/RenameCosigner" - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/Cosigner" - description: A cosigner object - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: Rename cosigner - tags: - - Cosigners (Beta) - x-rate-limit-category: write - x-readme: - code-samples: - - language: typescript - code: "const response: Promise> = fireblocks.cosignersBeta.renameCosigner(cosignersBetaApiRenameCosignerRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: "CompletableFuture> response = fireblocks.cosignersBeta().renameCosigner(renameCosigner,\ - \ cosignerId);" - name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.cosigners_beta.rename_cosigner(rename_cosigner,\ - \ cosigner_id);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.cosignersBeta.renameCosigner(cosignersBetaApiRenameCosignerRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.cosignersBeta().renameCosigner(renameCosigner,\ - \ cosignerId);" - - lang: Python - source: "response = fireblocks.cosigners_beta.rename_cosigner(rename_cosigner,\ - \ cosigner_id);" - x-content-type: application/json - x-accepts: - - application/json - /cosigners/{cosignerId}/api_keys: - get: - description: Get all cosigner paired API keys (paginated) - operationId: getApiKeys - parameters: - - description: The unique identifier of the cosigner - example: 44fcead0-7053-4831-a53a-df7fb90d440f - explode: false - in: path - name: cosignerId - required: true - schema: - format: uuid - type: string - style: simple - - description: ASC / DESC ordering (default DESC) - example: ASC - explode: true - in: query - name: order - required: false - schema: - default: DESC - enum: - - ASC - - DESC - type: string - style: form - - description: Cursor of the required page - explode: true - in: query - name: pageCursor - required: false - schema: - type: string - style: form - - description: Maximum number of items in the page - example: 10 - explode: true - in: query - name: pageSize - required: false - schema: - default: 10 - maximum: 100 - minimum: 1 - type: number - style: form - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ApiKeysPaginatedResponse" - description: A paginated response containing ApiKey objects - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: Get all API keys - tags: - - Cosigners (Beta) - x-rate-limit-category: query - x-readme: - code-samples: - - language: typescript - code: "const response: Promise>\ - \ = fireblocks.cosignersBeta.getApiKeys(cosignersBetaApiGetApiKeysRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: "CompletableFuture> response\ - \ = fireblocks.cosignersBeta().getApiKeys(cosignerId, order, pageCursor,\ - \ pageSize);" - name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.cosigners_beta.get_api_keys(cosigner_id, order,\ - \ page_cursor, page_size);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.cosignersBeta.getApiKeys(cosignersBetaApiGetApiKeysRequest);" - - lang: Java - source: "CompletableFuture> response\ - \ = fireblocks.cosignersBeta().getApiKeys(cosignerId, order, pageCursor,\ - \ pageSize);" - - lang: Python - source: "response = fireblocks.cosigners_beta.get_api_keys(cosigner_id, order,\ - \ page_cursor, page_size);" - x-accepts: - - application/json - /cosigners/{cosignerId}/api_keys/{apiKeyId}: - delete: - description: Unpair an API key from a cosigner - operationId: unpairApiKey - parameters: - - description: The unique identifier of the cosigner - example: 44fcead0-7053-4831-a53a-df7fb90d440f - explode: false - in: path - name: cosignerId - required: true - schema: - format: uuid - type: string - style: simple - - description: The unique identifier of the API key - example: 44fcead0-7053-4831-a53a-df7fb90d440f - explode: false - in: path - name: apiKeyId - required: true - schema: - type: string - style: simple - responses: - "202": - content: - application/json: - schema: - $ref: "#/components/schemas/ApiKey" - description: The API key object to be unpaired - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - Location: - $ref: "#/components/headers/Location" - default: - $ref: "#/components/responses/Error" - summary: Unpair API key - tags: - - Cosigners (Beta) - x-rate-limit-category: write - x-readme: - code-samples: - - language: typescript - code: "const response: Promise> = fireblocks.cosignersBeta.unpairApiKey(cosignersBetaApiUnpairApiKeyRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: "CompletableFuture> response = fireblocks.cosignersBeta().unpairApiKey(cosignerId,\ - \ apiKeyId);" - name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.cosigners_beta.unpair_api_key(cosigner_id,\ - \ api_key_id);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.cosignersBeta.unpairApiKey(cosignersBetaApiUnpairApiKeyRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.cosignersBeta().unpairApiKey(cosignerId,\ - \ apiKeyId);" - - lang: Python - source: "response = fireblocks.cosigners_beta.unpair_api_key(cosigner_id,\ - \ api_key_id);" - x-accepts: - - application/json - get: - description: | - Get an API key by ID - **Note:** These endpoints are currently in beta and might be subject to changes. - operationId: getApiKey - parameters: - - description: The unique identifier of the cosigner - example: 44fcead0-7053-4831-a53a-df7fb90d440f - explode: false - in: path - name: cosignerId - required: true - schema: - format: uuid - type: string - style: simple - - description: The unique identifier of the API key - example: 44fcead0-7053-4831-a53a-df7fb90d440f - explode: false - in: path - name: apiKeyId - required: true - schema: - type: string - style: simple - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ApiKey" - description: An ApiKey object - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: Get API key - tags: - - Cosigners (Beta) - x-rate-limit-category: read - x-readme: - code-samples: - - language: typescript - code: "const response: Promise> = fireblocks.cosignersBeta.getApiKey(cosignersBetaApiGetApiKeyRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: "CompletableFuture> response = fireblocks.cosignersBeta().getApiKey(cosignerId,\ - \ apiKeyId);" - name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.cosigners_beta.get_api_key(cosigner_id, api_key_id);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.cosignersBeta.getApiKey(cosignersBetaApiGetApiKeyRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.cosignersBeta().getApiKey(cosignerId,\ - \ apiKeyId);" - - lang: Python - source: "response = fireblocks.cosigners_beta.get_api_key(cosigner_id, api_key_id);" - x-accepts: - - application/json - patch: - description: Update the callback handler of an API key - operationId: updateCallbackHandler - parameters: - - description: The unique identifier of the cosigner - example: 44fcead0-7053-4831-a53a-df7fb90d440f - explode: false - in: path - name: cosignerId - required: true - schema: - format: uuid - type: string - style: simple - - description: The unique identifier of the API key - example: 44fcead0-7053-4831-a53a-df7fb90d440f - explode: false - in: path - name: apiKeyId - required: true - schema: - type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/UpdateCallbackHandlerRequest" - required: true - responses: - "202": - content: - application/json: - schema: - $ref: "#/components/schemas/UpdateCallbackHandlerResponse" - description: The API key object with the new callback handler - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - Location: - $ref: "#/components/headers/Location" - default: - $ref: "#/components/responses/Error" - summary: Update API key callback handler - tags: - - Cosigners (Beta) - x-rate-limit-category: write - x-readme: - code-samples: - - language: typescript - code: "const response: Promise>\ - \ = fireblocks.cosignersBeta.updateCallbackHandler(cosignersBetaApiUpdateCallbackHandlerRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: "CompletableFuture> response\ - \ = fireblocks.cosignersBeta().updateCallbackHandler(updateCallbackHandlerRequest,\ - \ cosignerId, apiKeyId);" - name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.cosigners_beta.update_callback_handler(update_callback_handler_request,\ - \ cosigner_id, api_key_id);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.cosignersBeta.updateCallbackHandler(cosignersBetaApiUpdateCallbackHandlerRequest);" - - lang: Java - source: "CompletableFuture> response\ - \ = fireblocks.cosignersBeta().updateCallbackHandler(updateCallbackHandlerRequest,\ - \ cosignerId, apiKeyId);" - - lang: Python - source: "response = fireblocks.cosigners_beta.update_callback_handler(update_callback_handler_request,\ - \ cosigner_id, api_key_id);" - x-content-type: application/json - x-accepts: - - application/json - put: - description: Pair an API key to a cosigner - operationId: pairApiKey - parameters: - - description: The unique identifier of the cosigner - example: 44fcead0-7053-4831-a53a-df7fb90d440f - explode: false - in: path - name: cosignerId - required: true - schema: - format: uuid - type: string - style: simple - - description: The unique identifier of the API key - example: 44fcead0-7053-4831-a53a-df7fb90d440f - explode: false - in: path - name: apiKeyId - required: true - schema: - type: string - style: simple - - description: "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." - explode: false - in: header - name: Idempotency-Key - required: false - schema: - type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/PairApiKeyRequest" - required: true - responses: - "202": - content: - application/json: - schema: - $ref: "#/components/schemas/PairApiKeyResponse" - description: The API key object to be paired - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - Location: - $ref: "#/components/headers/Location" - default: - $ref: "#/components/responses/Error" - summary: Pair API key - tags: - - Cosigners (Beta) - x-rate-limit-category: write - x-readme: - code-samples: - - language: typescript - code: "const response: Promise> =\ - \ fireblocks.cosignersBeta.pairApiKey(cosignersBetaApiPairApiKeyRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: "CompletableFuture> response = fireblocks.cosignersBeta().pairApiKey(pairApiKeyRequest,\ - \ cosignerId, apiKeyId, idempotencyKey);" - name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.cosigners_beta.pair_api_key(pair_api_key_request,\ - \ cosigner_id, api_key_id, idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> =\ - \ fireblocks.cosignersBeta.pairApiKey(cosignersBetaApiPairApiKeyRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.cosignersBeta().pairApiKey(pairApiKeyRequest,\ - \ cosignerId, apiKeyId, idempotencyKey);" - - lang: Python - source: "response = fireblocks.cosigners_beta.pair_api_key(pair_api_key_request,\ - \ cosigner_id, api_key_id, idempotency_key);" - x-content-type: application/json - x-accepts: - - application/json - /cosigners/{cosignerId}/api_keys/{apiKeyId}/{requestId}: - get: - description: Get the status of an asynchronous request - operationId: getRequestStatus - parameters: - - description: The unique identifier of the cosigner - example: 44fcead0-7053-4831-a53a-df7fb90d440f - explode: false - in: path - name: cosignerId - required: true - schema: - format: uuid - type: string - style: simple - - description: The unique identifier of the API key - example: 44fcead0-7053-4831-a53a-df7fb90d440f - explode: false - in: path - name: apiKeyId - required: true - schema: - type: string - style: simple - - explode: false - in: path - name: requestId - required: true - schema: - type: string - style: simple - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/Status" - description: The status of the request - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: Get request status - tags: - - Cosigners (Beta) - x-rate-limit-category: read - x-readme: - code-samples: - - language: typescript - code: "const response: Promise> = fireblocks.cosignersBeta.getRequestStatus(cosignersBetaApiGetRequestStatusRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: "CompletableFuture> response = fireblocks.cosignersBeta().getRequestStatus(cosignerId,\ - \ apiKeyId, requestId);" - name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.cosigners_beta.get_request_status(cosigner_id,\ - \ api_key_id, request_id);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise> = fireblocks.cosignersBeta.getRequestStatus(cosignersBetaApiGetRequestStatusRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.cosignersBeta().getRequestStatus(cosignerId,\ - \ apiKeyId, requestId);" - - lang: Python - source: "response = fireblocks.cosigners_beta.get_request_status(cosigner_id,\ - \ api_key_id, request_id);" - x-accepts: - - application/json -components: - headers: - X-Request-ID: - description: Unique ID correlated to the API request. Please provide it in any - support ticket you create or on Github issues related to Fireblocks SDKs - explode: false - schema: - type: string - style: simple - next-page: - description: URL representing a new request to this API endpoint to receive - the next page of results. - explode: false - schema: - type: string - style: simple - prev-page: - description: URL representing a new request to this API endpoint to receive - the previous page of results. - explode: false - schema: - type: string - style: simple - Location: - description: The location URL of the request status - explode: false - schema: - type: string - style: simple - parameters: - X-Idempotency-Key: - description: "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." - explode: false - in: header - name: Idempotency-Key - required: false - schema: - type: string - style: simple - X-End-User-Wallet-Id_required: - description: Unique ID of the End-User wallet to the API request. Required for - end-user wallet operations. - explode: false - in: header - name: X-End-User-Wallet-Id - required: true - schema: - format: uuid - type: string - style: simple - X-End-User-Wallet-Id: - description: Unique ID of the End-User wallet to the API request. Required for - end-user wallet operations. - explode: false - in: header - name: X-End-User-Wallet-Id - required: false - schema: - format: uuid - type: string - style: simple - responses: - Error: - content: - application/json: - schema: - $ref: "#/components/schemas/ErrorSchema" - description: Error Response - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - BadRequestError: - content: - application/json: - example: - error: - type: VALIDATION - message: Invalid input data or parameters - schema: - $ref: "#/components/schemas/ErrorResponse" - description: "Bad request, invalid input data or parameters" - OriginalTokenLinkNotFoundError: - content: - application/json: - example: - error: - type: NOT_FOUND - message: The specified token link was not found - schema: - $ref: "#/components/schemas/ErrorResponse" - description: Token link not found - TokenLinkPreparationError: - content: - application/json: - example: - error: - type: UNPROCESSABLE_ENTITY - message: An error occurred during token link preparation - schema: - $ref: "#/components/schemas/ErrorResponse" - description: Token link preparation error - OriginalTokenLinkNotFungibleError: - content: - application/json: - example: - error: - type: UNPROCESSABLE_ENTITY - message: The token link is not of fungible type - schema: - $ref: "#/components/schemas/ErrorResponse" - description: Token link is not fungible - InternalServerError: - content: - application/json: - example: - error: - type: INTERNAL - message: An unexpected error occurred during execution. Please try again - later. - schema: - $ref: "#/components/schemas/ErrorResponse" - description: Internal server error - TokenLinkProcessingError: - content: - application/json: - example: - error: - type: UNPROCESSABLE_ENTITY - message: An error occurred during token link processing - schema: - $ref: "#/components/schemas/ErrorResponse" - description: Token link processing error - BridgingProtocolBlockchainMetadataNotFoundError: - content: - application/json: - example: - error: - type: NOT_FOUND - message: Bridging to the specified blockchain is not supported - schema: - $ref: "#/components/schemas/ErrorResponse" - description: Bridging protocol blockchain metadata not found - schemas: - ErrorSchema: - example: - code: 0.8008281904610115 - message: message - properties: - message: - type: string - code: - type: number - type: object - RewardsInfo: - example: - pendingRewards: pendingRewards - properties: - pendingRewards: - description: Amount that is pending for rewards - type: string - type: object - VaultAsset: - example: - totalStakedCPU: totalStakedCPU - blockHash: blockHash - pendingRefundNetwork: pendingRefundNetwork - lockedAmount: lockedAmount - pending: pending - staked: staked - rewardsInfo: - pendingRewards: pendingRewards - available: available - frozen: frozen - selfStakedCPU: selfStakedCPU - totalStakedNetwork: totalStakedNetwork - total: total - balance: balance - blockHeight: blockHeight - selfStakedNetwork: selfStakedNetwork - pendingRefundCPU: pendingRefundCPU - id: id - properties: - id: - type: string - total: - description: "The total wallet balance. In EOS this value includes the network\ - \ balance, self staking and pending refund. For all other coins it is\ - \ the balance as it appears on the blockchain." - type: string - balance: - deprecated: true - description: Deprecated - replaced by "total" - type: string - available: - description: Funds available for transfer. Equals the blockchain balance - minus any locked amounts - type: string - pending: - description: The cumulative balance of all transactions pending to be cleared - type: string - frozen: - description: The cumulative frozen balance - type: string - lockedAmount: - description: Funds in outgoing transactions that are not yet published to - the network - type: string - staked: - description: Staked balance - type: string - totalStakedCPU: - description: Deprecated - type: string - totalStakedNetwork: - description: Deprecated - type: string - selfStakedCPU: - description: Deprecated - type: string - selfStakedNetwork: - description: Deprecated - type: string - pendingRefundCPU: - description: Deprecated - type: string - pendingRefundNetwork: - description: Deprecated - type: string - blockHeight: - type: string - blockHash: - type: string - rewardsInfo: - $ref: "#/components/schemas/RewardsInfo" - type: object - Tag: - example: - description: Tag for VIP customers - id: df4c0987-30da-4976-8dcf-bc2dd41ae331 - label: VIP - properties: - id: - description: The unique identifier of the tag - example: df4c0987-30da-4976-8dcf-bc2dd41ae331 - format: uuid - type: string - label: - description: The tag label - example: VIP - type: string - description: - description: Description for the tag - example: Tag for VIP customers - type: string - required: - - id - - label - type: object - VaultAccount: - example: - assets: - - totalStakedCPU: totalStakedCPU - blockHash: blockHash - pendingRefundNetwork: pendingRefundNetwork - lockedAmount: lockedAmount - pending: pending - staked: staked - rewardsInfo: - pendingRewards: pendingRewards - available: available - frozen: frozen - selfStakedCPU: selfStakedCPU - totalStakedNetwork: totalStakedNetwork - total: total - balance: balance - blockHeight: blockHeight - selfStakedNetwork: selfStakedNetwork - pendingRefundCPU: pendingRefundCPU - id: id - - totalStakedCPU: totalStakedCPU - blockHash: blockHash - pendingRefundNetwork: pendingRefundNetwork - lockedAmount: lockedAmount - pending: pending - staked: staked - rewardsInfo: - pendingRewards: pendingRewards - available: available - frozen: frozen - selfStakedCPU: selfStakedCPU - totalStakedNetwork: totalStakedNetwork - total: total - balance: balance - blockHeight: blockHeight - selfStakedNetwork: selfStakedNetwork - pendingRefundCPU: pendingRefundCPU - id: id - hiddenOnUI: true - name: name - id: id - customerRefId: customerRefId - autoFuel: true - tags: - - description: Tag for VIP customers - id: df4c0987-30da-4976-8dcf-bc2dd41ae331 - label: VIP - - description: Tag for VIP customers - id: df4c0987-30da-4976-8dcf-bc2dd41ae331 - label: VIP - properties: - id: - type: string - name: - type: string - assets: - items: - $ref: "#/components/schemas/VaultAsset" - type: array - hiddenOnUI: - type: boolean - customerRefId: - type: string - autoFuel: - type: boolean - tags: - description: List of tags attached to the vault account - items: - $ref: "#/components/schemas/Tag" - type: array - type: object - GetVaultAccountsResponse: - items: - $ref: "#/components/schemas/VaultAccount" - type: array - CreateVaultAccountRequest: - example: - vaultType: MPC - autoAssign: false - hiddenOnUI: true - name: name - customerRefId: customerRefId - autoFuel: true - properties: - name: - description: Account Name - type: string - hiddenOnUI: - description: "Optional - if true, the created account and all related transactions\ - \ will not be shown on Fireblocks console" - type: boolean - customerRefId: - description: Optional - Sets a customer reference ID - type: string - autoFuel: - description: Optional - Sets the autoFuel property of the vault account - type: boolean - vaultType: - default: MPC - description: "Type of vault account. The default type will be set to MPC.
\ - \ If the workspace does not support the selected type, it will return\ - \ an error." - enum: - - MPC - - KEY_LINK - type: string - autoAssign: - default: false - description: "Applicable only when the vault account type is KEY_LINK. For\ - \ MPC, this parameter will be ignored.
If set to true and there are\ - \ available keys, random keys will be assigned to the newly created vault\ - \ account.
If set to true and there are no available keys to be assigned,\ - \ it will return an error.
If set to false, the vault account will\ - \ be created without any keys." - type: boolean - type: object - VaultAccountsPagedResponse: - example: - previousUrl: previousUrl - paging: - before: before - after: after - accounts: - - assets: - - totalStakedCPU: totalStakedCPU - blockHash: blockHash - pendingRefundNetwork: pendingRefundNetwork - lockedAmount: lockedAmount - pending: pending - staked: staked - rewardsInfo: - pendingRewards: pendingRewards - available: available - frozen: frozen - selfStakedCPU: selfStakedCPU - totalStakedNetwork: totalStakedNetwork - total: total - balance: balance - blockHeight: blockHeight - selfStakedNetwork: selfStakedNetwork - pendingRefundCPU: pendingRefundCPU - id: id - - totalStakedCPU: totalStakedCPU - blockHash: blockHash - pendingRefundNetwork: pendingRefundNetwork - lockedAmount: lockedAmount - pending: pending - staked: staked - rewardsInfo: - pendingRewards: pendingRewards - available: available - frozen: frozen - selfStakedCPU: selfStakedCPU - totalStakedNetwork: totalStakedNetwork - total: total - balance: balance - blockHeight: blockHeight - selfStakedNetwork: selfStakedNetwork - pendingRefundCPU: pendingRefundCPU - id: id - hiddenOnUI: true - name: name - id: id - customerRefId: customerRefId - autoFuel: true - tags: - - description: Tag for VIP customers - id: df4c0987-30da-4976-8dcf-bc2dd41ae331 - label: VIP - - description: Tag for VIP customers - id: df4c0987-30da-4976-8dcf-bc2dd41ae331 - label: VIP - - assets: - - totalStakedCPU: totalStakedCPU - blockHash: blockHash - pendingRefundNetwork: pendingRefundNetwork - lockedAmount: lockedAmount - pending: pending - staked: staked - rewardsInfo: - pendingRewards: pendingRewards - available: available - frozen: frozen - selfStakedCPU: selfStakedCPU - totalStakedNetwork: totalStakedNetwork - total: total - balance: balance - blockHeight: blockHeight - selfStakedNetwork: selfStakedNetwork - pendingRefundCPU: pendingRefundCPU - id: id - - totalStakedCPU: totalStakedCPU - blockHash: blockHash - pendingRefundNetwork: pendingRefundNetwork - lockedAmount: lockedAmount - pending: pending - staked: staked - rewardsInfo: - pendingRewards: pendingRewards - available: available - frozen: frozen - selfStakedCPU: selfStakedCPU - totalStakedNetwork: totalStakedNetwork - total: total - balance: balance - blockHeight: blockHeight - selfStakedNetwork: selfStakedNetwork - pendingRefundCPU: pendingRefundCPU - id: id - hiddenOnUI: true - name: name - id: id - customerRefId: customerRefId - autoFuel: true - tags: - - description: Tag for VIP customers - id: df4c0987-30da-4976-8dcf-bc2dd41ae331 - label: VIP - - description: Tag for VIP customers - id: df4c0987-30da-4976-8dcf-bc2dd41ae331 - label: VIP - nextUrl: nextUrl - properties: - accounts: - items: - $ref: "#/components/schemas/VaultAccount" - type: array - paging: - $ref: "#/components/schemas/VaultAccountsPagedResponse_paging" - previousUrl: - type: string - nextUrl: - type: string - type: object - UpdateVaultAccountRequest: - example: - name: name - properties: - name: - description: Account Name - type: string - type: object - RenameVaultAccountResponse: - example: - name: name - id: id - properties: - name: - description: The new name of the vault account - type: string - id: - description: The ID of the vault account - type: string - type: object - AssetWallet: - example: - blockHash: blockHash - total: total - lockedAmount: lockedAmount - blockHeight: blockHeight - vaultId: vaultId - assetId: assetId - pending: pending - staked: staked - available: available - creationTimestamp: creationTimestamp - frozen: frozen - properties: - vaultId: - description: "ID of the vault account. You can [get the vault account by\ - \ this ID](https://developers.fireblocks.com/reference/get_vault-accounts-vaultaccountid)\ - \ to retrieve vault properties such as its name, auto fueling, hidden\ - \ on UI or customer reference ID." - type: string - assetId: - description: "ID of the asset. You can get more information about this asset\ - \ by using the [supported assets API](https://developers.fireblocks.com/reference/get_supported-assets)" - type: string - available: - description: "Available balance, available to use in a transaction." - type: string - total: - description: "Total balance at the asset wallet, as seen at the blockchain\ - \ explorers. This includes balance available, and any kind of unavailable\ - \ balance such as locked, frozen, or others." - type: string - pending: - description: Pending balance. - type: string - staked: - description: Staked balance. - type: string - frozen: - description: Funds frozen due to the anti-money laundering policy at this - workspace. - type: string - lockedAmount: - description: Locked balance. - type: string - blockHeight: - description: The height (number) of the block of the balance. Can by empty. - type: string - blockHash: - description: The hash of the block of the balance. Can by empty. - type: string - creationTimestamp: - description: Unix timestamp of the time the asset wallet was created. - type: string - type: object - PaginatedAssetWalletResponse: - example: - assetWallets: - - blockHash: blockHash - total: total - lockedAmount: lockedAmount - blockHeight: blockHeight - vaultId: vaultId - assetId: assetId - pending: pending - staked: staked - available: available - creationTimestamp: creationTimestamp - frozen: frozen - - blockHash: blockHash - total: total - lockedAmount: lockedAmount - blockHeight: blockHeight - vaultId: vaultId - assetId: assetId - pending: pending - staked: staked - available: available - creationTimestamp: creationTimestamp - frozen: frozen - paging: - before: before - after: after - properties: - assetWallets: - items: - $ref: "#/components/schemas/AssetWallet" - type: array - paging: - $ref: "#/components/schemas/PaginatedAssetWalletResponse_paging" - type: object - VaultActionStatus: - example: - success: true - properties: - success: - type: boolean - type: object - CreateVaultAssetResponse: - example: - legacyAddress: legacyAddress - address: address - activationTxId: activationTxId - enterpriseAddress: enterpriseAddress - id: id - tag: tag - eosAccountName: eosAccountName - status: status - properties: - id: - type: string - address: - type: string - legacyAddress: - type: string - enterpriseAddress: - type: string - tag: - type: string - eosAccountName: - type: string - status: - type: string - activationTxId: - type: string - type: object - SetCustomerRefIdRequest: - example: - customerRefId: customerRefId - properties: - customerRefId: - description: Customer reference ID - type: string - type: object - SetAutoFuelRequest: - example: - autoFuel: true - properties: - autoFuel: - description: Auto Fuel - type: boolean - type: object - CreateAssetsRequest: - example: - eosAccountName: eosAccountName - properties: - eosAccountName: - description: "Optional - when creating an EOS wallet, the account name.\ - \ If not provided, a random name will be generated" - type: string - type: object - VaultWalletAddress: - example: - bip44AddressIndex: 0 - legacyAddress: legacyAddress - address: address - assetId: assetId - addressFormat: SEGWIT - userDefined: true - enterpriseAddress: enterpriseAddress - description: description - tag: tag - type: type - customerRefId: customerRefId - properties: - assetId: - type: string - x-fb-entity: asset - address: - type: string - description: - type: string - tag: - type: string - type: - type: string - customerRefId: - type: string - addressFormat: - enum: - - SEGWIT - - LEGACY - - BASE - - PAYMENT - type: string - legacyAddress: - type: string - enterpriseAddress: - type: string - bip44AddressIndex: - type: integer - userDefined: - type: boolean - type: object - GetVaultAccountAssetAddressesResponse: - items: - $ref: "#/components/schemas/VaultWalletAddress" - type: array - CreateAddressRequest: - example: - description: description - customerRefId: customerRefId - properties: - description: - description: (Optional) Attach a description to the new address - type: string - customerRefId: - description: Optional - Sets a customer reference ID - type: string - type: object - CreateAddressResponse: - example: - bip44AddressIndex: 0 - legacyAddress: legacyAddress - address: address - enterpriseAddress: enterpriseAddress - tag: tag - properties: - address: - type: string - legacyAddress: - type: string - enterpriseAddress: - type: string - tag: - type: string - bip44AddressIndex: - type: integer - type: object - PaginatedAddressResponse: - example: - addresses: - - bip44AddressIndex: 0 - legacyAddress: legacyAddress - address: address - assetId: assetId - addressFormat: SEGWIT - userDefined: true - enterpriseAddress: enterpriseAddress - description: description - tag: tag - type: type - customerRefId: customerRefId - - bip44AddressIndex: 0 - legacyAddress: legacyAddress - address: address - assetId: assetId - addressFormat: SEGWIT - userDefined: true - enterpriseAddress: enterpriseAddress - description: description - tag: tag - type: type - customerRefId: customerRefId - paging: - before: before - after: after - properties: - addresses: - items: - $ref: "#/components/schemas/VaultWalletAddress" - type: array - paging: - $ref: "#/components/schemas/PaginatedAddressResponse_paging" - type: object - GetMaxSpendableAmountResponse: - example: - maxSpendableAmount: maxSpendableAmount - properties: - maxSpendableAmount: - description: The maximum amount that can be spent from the vault account - type: string - type: object - UpdateVaultAccountAssetAddressRequest: - example: - description: description - properties: - description: - description: The address description - type: string - type: object - SetCustomerRefIdForAddressRequest: - example: - customerRefId: customerRefId - properties: - customerRefId: - description: Customer reference ID - type: string - type: object - UnspentInput: - example: - index: 0.8008281904610115 - txHash: txHash - properties: - txHash: - type: string - index: - type: number - type: object - UnspentInputsResponse: - example: - input: - index: 0.8008281904610115 - txHash: txHash - amount: amount - address: address - confirmations: 6.027456183070403 - status: status - properties: - input: - $ref: "#/components/schemas/UnspentInput" - address: - type: string - amount: - type: string - confirmations: - type: number - status: - type: string - type: object - GetUnspentInputsResponse: - items: - $ref: "#/components/schemas/UnspentInputsResponse" - type: array - CreateMultipleAccountsRequest: - example: - names: - - first va - - client 65502e71-ecdf-48da-a074-c1753befc7fb - prefix: "Copied from: " - count: 1000 - baseAssetIds: - - BTC - - ETH - - SOL - vaultAccountNamesStartingIndex: 0 - properties: - count: - description: Count - example: 1000 - type: integer - baseAssetIds: - description: Array of base asset IDs - example: - - BTC - - ETH - - SOL - items: - type: string - type: array - names: - description: Names to assign to vault accounts. if vaultAccountNamesStartingIndex - or prefix is used it'll fail - example: - - first va - - client 65502e71-ecdf-48da-a074-c1753befc7fb - items: - type: string - type: array - vaultAccountNamesStartingIndex: - description: Copy vault accounts names starting from this index. If names - array is used it'll fail - example: 0 - type: integer - prefix: - description: When copying from existing vault accounts (vaultAccountNamesStartingIndex) - then adding a prefix to the names. If names array is used it'll fail - example: "Copied from: " - type: string - required: - - baseAssetIds - - count - type: object - JobCreated: - example: - jobId: jobId - properties: - jobId: - type: string - type: object - CreateMultipleVaultAccountsJobStatus: - example: - vaultAccounts: - "0": - BTC_TEST: bcrt1qs0zzqytuw49w2jqkmfhzgdh2lylzde2uw4zncz - ETH_TEST: 0x460395Edb2338023c6f137259C6e20B6C37dDE95 - errorMessage: Asset not supported - status: Success - properties: - status: - example: Success - type: string - vaultAccounts: - additionalProperties: - additionalProperties: - type: string - description: Mapping between asset (key) to address (value) - type: object - description: Mapping between VaultAccountId to a mapping of asset to address - example: - "0": - BTC_TEST: bcrt1qs0zzqytuw49w2jqkmfhzgdh2lylzde2uw4zncz - ETH_TEST: 0x460395Edb2338023c6f137259C6e20B6C37dDE95 - type: object - errorMessage: - example: Asset not supported - type: string - required: - - status - type: object - CreateMultipleDepositAddressesRequest: - example: - assetId: ADA - vaultAccountToCopyDescFrom: 0 - vaultAccountToCopyDescFromIndex: 1000 - count: 10 - vaultAccountId: 5 - descriptions: - - First address - - Second address - - df4c0987-30da-4976-8dcf-bc2dd41ae331 - properties: - vaultAccountId: - description: Existing Vault account ID to add deposit addresses to - example: 5 - type: integer - assetId: - description: asset ID - example: ADA - type: string - count: - description: Count of deposit addresses to issue - example: 10 - type: integer - descriptions: - description: Desctiptions of the newly created addresses - example: - - First address - - Second address - - df4c0987-30da-4976-8dcf-bc2dd41ae331 - items: - type: string - type: array - vaultAccountToCopyDescFrom: - description: Existing Vault Account ID to copy deposit addresses descriptions - from in case no descriptions were provided - example: 0 - type: integer - vaultAccountToCopyDescFromIndex: - description: Existing length within the vault account to copy deposit addresses - descriptions from - example: 1000 - type: integer - required: - - assetId - - count - - vaultAccountId - type: object - VaultAccountsTagAttachmentsRequest: - example: - tagIds: - - df4c0987-30da-4976-8dcf-bc2dd41ae331 - - a1b2c3d4-e5f6-7890-abcd-ef1234567890 - vaultAccountIds: - - "0" - - "1" - properties: - tagIds: - description: The IDs of the tags to attach - example: - - df4c0987-30da-4976-8dcf-bc2dd41ae331 - - a1b2c3d4-e5f6-7890-abcd-ef1234567890 - items: - format: uuid - type: string - maxItems: 200 - minItems: 1 - type: array - vaultAccountIds: - description: The IDs of the vault accounts to attach tags to - example: - - "0" - - "1" - items: - format: numeric - type: string - maxItems: 200 - minItems: 1 - type: array - required: - - tagIds - - vaultAccountIds - type: object - NewAddress: - properties: - address: - description: The address string. - example: addr_test1qp07k5kdwdfx4rpfqud8ry65acxgtgfgrxw0t35cwvl4uasjneqjdc868eqlex5p2f0nyekyyk4ze5xuanvj50ysrj3qqxqhsn - type: string - index: - description: The index of the address in the list. - example: 0 - type: integer - description: - description: A description of the address. - example: Address one - type: string - required: - - address - - description - - index - type: object - CreateMultipleDepositAddressesJobStatus: - example: - addresses: - - address: addr_test1qp07k5kdwdfx4rpfqud8ry65acxgtgfgrxw0t35cwvl4uasjneqjdc868eqlex5p2f0nyekyyk4ze5xuanvj50ysrj3qqxqhsn - index: 0 - description: Address one - errorMessage: Asset not supported - status: Success - properties: - status: - example: Success - type: string - addresses: - example: - - address: addr_test1qp07k5kdwdfx4rpfqud8ry65acxgtgfgrxw0t35cwvl4uasjneqjdc868eqlex5p2f0nyekyyk4ze5xuanvj50ysrj3qqxqhsn - index: 0 - description: Address one - items: - $ref: "#/components/schemas/NewAddress" - type: array - errorMessage: - example: Asset not supported - type: string - required: - - status - type: object - PublicKeyInformation: - example: - derivationPath: - - 44 - - 0 - - 0 - - 0 - - 0 - publicKey: 1044c36403c1802818b472398f546a43a0d91569d5583a6e807c3825b155c7bd - algorithm: MPC_ECDSA_SECP256K1 - properties: - algorithm: - description: Elliptic Curve - enum: - - MPC_ECDSA_SECP256K1 - - MPC_ECDSA_SECP256R1 - - MPC_EDDSA_ED25519 - type: string - derivationPath: - description: BIP44 derivation path - example: - - 44 - - 0 - - 0 - - 0 - - 0 - items: - type: integer - type: array - publicKey: - description: Compressed/Uncompressed public key value in hex representation - example: 1044c36403c1802818b472398f546a43a0d91569d5583a6e807c3825b155c7bd - type: string - type: object - GetVaultAssetsResponse: - items: - $ref: "#/components/schemas/VaultAsset" - type: array - CreateAssetsBulkRequest: - example: - assetId: assetId - vaultAccountIdFrom: vaultAccountIdFrom - vaultAccountIdTo: vaultAccountIdTo - properties: - assetId: - description: The ID of the new asset - type: string - vaultAccountIdFrom: - description: The smallest vault account ID in the range - type: string - vaultAccountIdTo: - description: The largest vault account ID in the range - type: string - type: object - EmbeddedWalletAssetResponse: - example: - coinType: 0 - symbol: USDT - ethNetwork: ethNetwork - blockchainDisplayName: BTH - deprecated: false - hasFee: true - baseAsset: ETH_TEST5 - ethContractAddress: ethContractAddress - blockchain: ETH_TEST5 - issuerAddress: rnDV4JiwgRNhudPY2sm65AzECpRXaasL4r - blockchainSymbol: BTH - decimals: 6 - name: Tether USD - id: id - testnet: true - networkProtocol: ETH - algorithm: MPC_ECDSA_SECP256K1 - properties: - id: - type: string - symbol: - description: The asset symbol - example: USDT - type: string - name: - description: The asset name - example: Tether USD - type: string - decimals: - description: Number of decimals - example: 6 - type: number - networkProtocol: - description: "Netowrk protocol of the blockchain (BTC, ETH)" - example: ETH - type: string - testnet: - description: Is in testnet - example: true - type: boolean - hasFee: - description: Has fee - example: true - type: boolean - baseAsset: - description: "Base asset symbol BTC_TEST, ETH_TEST5)" - example: ETH_TEST5 - type: string - ethNetwork: - type: string - ethContractAddress: - type: string - issuerAddress: - description: The address of the issuer of this token. Will be part of the - identifier of this token on chain. - example: rnDV4JiwgRNhudPY2sm65AzECpRXaasL4r - type: string - blockchainSymbol: - description: Name of blockchain - example: BTH - type: string - deprecated: - description: Is blockchain deprecated - example: false - type: boolean - coinType: - description: "Unique identifier of an asset (0 for BTC, 60 for ETH, etc.)" - example: 0 - type: number - blockchain: - description: The blockchain native asset id which the token is deployed - on - example: ETH_TEST5 - type: string - blockchainDisplayName: - description: Name of blockchain - example: BTH - type: string - algorithm: - enum: - - MPC_ECDSA_SECP256K1 - - MPC_EDDSA_ED25519 - type: string - required: - - baseAsset - - blockchain - - coinType - - decimals - - hasFee - - id - - name - - networkProtocol - - symbol - - testnet - - type - type: object - EmbeddedWalletPaginatedAssetsResponse: - example: - next: eJ0eXAiOiJKV1QiLCJhbGcOiJIUzI1NiJ9 - data: - - coinType: 0 - symbol: USDT - ethNetwork: ethNetwork - blockchainDisplayName: BTH - deprecated: false - hasFee: true - baseAsset: ETH_TEST5 - ethContractAddress: ethContractAddress - blockchain: ETH_TEST5 - issuerAddress: rnDV4JiwgRNhudPY2sm65AzECpRXaasL4r - blockchainSymbol: BTH - decimals: 6 - name: Tether USD - id: id - testnet: true - networkProtocol: ETH - algorithm: MPC_ECDSA_SECP256K1 - - coinType: 0 - symbol: USDT - ethNetwork: ethNetwork - blockchainDisplayName: BTH - deprecated: false - hasFee: true - baseAsset: ETH_TEST5 - ethContractAddress: ethContractAddress - blockchain: ETH_TEST5 - issuerAddress: rnDV4JiwgRNhudPY2sm65AzECpRXaasL4r - blockchainSymbol: BTH - decimals: 6 - name: Tether USD - id: id - testnet: true - networkProtocol: ETH - algorithm: MPC_ECDSA_SECP256K1 - properties: - data: - description: The data of the current page - items: - $ref: "#/components/schemas/EmbeddedWalletAssetResponse" - type: array - next: - description: The ID of the next page - example: eJ0eXAiOiJKV1QiLCJhbGcOiJIUzI1NiJ9 - nullable: true - type: string - required: - - data - type: object - EmbeddedWallet: - example: - walletId: 550e8400-e29b-41d4-a716-446655440000 - enabled: true - properties: - walletId: - description: walletId - example: 550e8400-e29b-41d4-a716-446655440000 - type: string - enabled: - description: enabled - example: true - type: boolean - required: - - enabled - - walletId - type: object - EmbeddedWalletPaginatedWalletsResponse: - example: - next: eJ0eXAiOiJKV1QiLCJhbGcOiJIUzI1NiJ9 - data: - - walletId: 550e8400-e29b-41d4-a716-446655440000 - enabled: true - - walletId: 550e8400-e29b-41d4-a716-446655440000 - enabled: true - properties: - data: - description: The data of the current page - items: - $ref: "#/components/schemas/EmbeddedWallet" - type: array - next: - description: The ID of the next page - example: eJ0eXAiOiJKV1QiLCJhbGcOiJIUzI1NiJ9 - nullable: true - type: string - required: - - data - type: object - EmbeddedWalletAddressDetails: - example: - coinType: 1.4658129805029452 - legacyAddress: legacyAddressName - address: addressName - accountName: accountName - addressType: addressType - change: 6.027456183070403 - addressFormat: addressFormatName - userDefined: true - customerRefId: customerRefIdName - paymentAddress: paymentAddressName - accountId: accountIdName - addressDescription: addressDescriptionName - addressIndex: 0.8008281904610115 - tag: tagName - state: stateName - asset: assetName - properties: - accountName: - description: accountName - example: accountName - type: string - accountId: - description: accountId - example: accountIdName - type: string - asset: - description: asset - example: assetName - type: string - address: - description: address - example: addressName - type: string - addressType: - description: addressType - enum: - - PERMANENT - - CHANGE - - DEFAULT - - ADDRESS - example: addressType - type: string - addressDescription: - description: addressDescription - example: addressDescriptionName - type: string - tag: - description: tag - example: tagName - type: string - addressIndex: - description: addressIndex - type: number - change: - description: change - type: number - coinType: - description: "Unique identifier of an asset (0 for BTC, 60 for ETH, etc.)" - type: number - customerRefId: - description: customerRefId - example: customerRefIdName - type: string - addressFormat: - description: addressFormat - example: addressFormatName - type: string - legacyAddress: - description: legacyAddress - example: legacyAddressName - type: string - paymentAddress: - description: paymentAddress - example: paymentAddressName - type: string - userDefined: - description: userDefined - example: true - type: boolean - state: - description: state - enum: - - PENDING_ACTIVATION - - ACTIVATION_FAILED - - READY - example: stateName - type: string - required: - - accountId - - accountName - - address - - addressDescription - - addressType - - asset - - tag - type: object - EmbeddedWalletAssetRewardInfo: - example: - pendingRewards: "5" - properties: - pendingRewards: - description: Amount that is pending for rewards - example: "5" - type: string - required: - - pendingRewards - type: object - EmbeddedWalletAssetBalance: - example: - blockHash: 0000000000000000000769e73a0b8f32a6c5d55e0d64f9ec20c6c3d4e5a9a3f1 - total: "0.87500000" - lockedAmount: "0.01000000" - blockHeight: "8459341" - rewardInfo: - pendingRewards: "5" - pending: "0.01500000" - available: "0.84500000" - frozen: "0.00500000" - id: BTC-mainnet-acc-01 - properties: - id: - description: Unique identifier of the asset balance entry - example: BTC-mainnet-acc-01 - type: string - total: - description: "Total balance amount for the asset in the account (including\ - \ pending, locked, and available)" - example: "0.87500000" - type: string - available: - description: The balance available for use or withdrawal - example: "0.84500000" - type: string - pending: - description: "Amount pending confirmation from blockchain (e.g., unconfirmed\ - \ deposits)" - example: "0.01500000" - type: string - frozen: - description: Balance that is frozen due to policy or regulatory lock - example: "0.00500000" - type: string - lockedAmount: - description: Funds locked for operations such as staking or delegation - example: "0.01000000" - type: string - blockHeight: - description: Latest known blockchain height when balance was fetched - example: "8459341" - type: string - blockHash: - description: Hash of the blockchain block associated with the current balance - state - example: 0000000000000000000769e73a0b8f32a6c5d55e0d64f9ec20c6c3d4e5a9a3f1 - type: string - rewardInfo: - $ref: "#/components/schemas/EmbeddedWalletAssetRewardInfo" - required: - - available - - frozen - - id - - lockedAmount - - pending - - total - type: object - EmbeddedWalletPaginatedAddressesResponse: - example: - next: eJ0eXAiOiJKV1QiLCJhbGcOiJIUzI1NiJ9 - data: - - coinType: 1.4658129805029452 - legacyAddress: legacyAddressName - address: addressName - accountName: accountName - addressType: addressType - change: 6.027456183070403 - addressFormat: addressFormatName - userDefined: true - customerRefId: customerRefIdName - paymentAddress: paymentAddressName - accountId: accountIdName - addressDescription: addressDescriptionName - addressIndex: 0.8008281904610115 - tag: tagName - state: stateName - asset: assetName - - coinType: 1.4658129805029452 - legacyAddress: legacyAddressName - address: addressName - accountName: accountName - addressType: addressType - change: 6.027456183070403 - addressFormat: addressFormatName - userDefined: true - customerRefId: customerRefIdName - paymentAddress: paymentAddressName - accountId: accountIdName - addressDescription: addressDescriptionName - addressIndex: 0.8008281904610115 - tag: tagName - state: stateName - asset: assetName - properties: - data: - description: The data of the current page - items: - $ref: "#/components/schemas/EmbeddedWalletAddressDetails" - type: array - next: - description: The ID of the next page - example: eJ0eXAiOiJKV1QiLCJhbGcOiJIUzI1NiJ9 - nullable: true - type: string - required: - - data - type: object - EmbeddedWalletAccount: - example: - accountId: "0" - walletId: 550e8400-e29b-41d4-a716-446655440000 - properties: - accountId: - description: The ID of the account - example: "0" - type: string - walletId: - description: Unique identifier of the Non-Custodial Wallet (UUID) - example: 550e8400-e29b-41d4-a716-446655440000 - type: string - required: - - accountId - - walletId - type: object - EmbeddedWalletLatestBackupKey: - example: - keyId: keyIdValue - publicKey: publicKeyValue - deviceId: deviceIdValue - algorithm: algorithm - properties: - deviceId: - description: deviceId - example: deviceIdValue - type: string - publicKey: - description: publicKey - example: publicKeyValue - type: string - keyId: - description: keyId - example: keyIdValue - type: string - algorithm: - description: algorithm - enum: - - MPC_CMP_ECDSA_SECP256K1 - - MPC_CMP_EDDSA_ED25519 - - MPC_ECDSA_SECP256K1 - example: algorithm - type: string - required: - - algorithm - - deviceId - - keyId - - publicKey - type: object - EmbeddedWalletLatestBackupResponse: - example: - createdAt: 1713789296 - keys: - - keyId: keyIdValue - publicKey: publicKeyValue - deviceId: deviceIdValue - algorithm: algorithm - - keyId: keyIdValue - publicKey: publicKeyValue - deviceId: deviceIdValue - algorithm: algorithm - passphraseId: passphraseId - properties: - passphraseId: - description: passphraseId - example: passphraseId - type: string - createdAt: - description: createdAt - example: 1713789296 - type: number - keys: - description: keys - items: - $ref: "#/components/schemas/EmbeddedWalletLatestBackupKey" - type: array - required: - - createdAt - - keys - - passphraseId - type: object - EmbeddedWalletDevice: - example: - physicalDeviceId: physicalDeviceIdValue - deviceId: deviceIdValue - enabled: true - properties: - deviceId: - description: deviceId - example: deviceIdValue - type: string - enabled: - description: enabled - example: true - type: boolean - physicalDeviceId: - description: physicalDeviceId - example: physicalDeviceIdValue - type: string - required: - - deviceId - - enabled - - physicalDeviceId - type: object - EmbeddedWalletSetUpStatus: - description: embedded wallet setup status - example: - status: statusValue - properties: - status: - description: status - enum: - - COMPLETE - - INCOMPLETE - example: statusValue - type: string - required: - - status - type: object - EmbeddedWalletAlgoritm: - description: algorithm name - properties: - algorithm: - description: algorithm - enum: - - MPC_ECDSA_SECP256K1 - - MPC_EDDSA_ED25519 - example: MPC_EDDSA_ED25519 - type: string - required: - - algorithm - type: object - EmbeddedWalletDeviceKeySetupResponse: - example: - setupStatus: - - setupStatus: setupStatusValue - confirmed: true - backedUp: true - deviceId: deviceIdValue - enabled: true - status: - status: statusValue - properties: - status: - $ref: "#/components/schemas/EmbeddedWalletSetUpStatus" - deviceId: - description: deviceId - example: deviceIdValue - type: string - enabled: - description: enabled - example: true - type: boolean - setupStatus: - description: setupStatus - example: - - setupStatus: setupStatusValue - confirmed: true - backedUp: true - items: - $ref: "#/components/schemas/EmbeddedWalletDeviceKeySetupResponse_setupStatus_inner" - type: array - required: - - deviceId - - enabled - - setupStatus - - status - type: object - ExchangeType: - description: Exchange account's type - enum: - - INDEPENDENT_RESERVE - - ENCLAVE_MARKETS - - BIT - - COINFLEX - - KUCOIN - - PXS - - LIQUID - - BITHUMB - - BITFINEX - - BITSO - - BITSTAMP - - KRAKEN - - KRAKENINTL - - BINANCE - - BINANCEUS - - CRYPTOCOM - - BYBIT_V2 - - COINBASEPRO - - COINBASEPRIME - - COINBASEINTERNATIONAL - - WHITEBIT - - COINBASEEXCHANGE - - KORBIT - - HITBTC - - GEMINI - - CIRCLE - - BITMEX - - HUOBI - - DERIBIT - - OKCOIN_V5 - - OKEX - - COINMETRO - - GATEIO - - SCRYPT - - COINHAKO - - LIGHTBIT - - BULLISH - - CANVAS_CONNECT - - BITGET - - LUNO - - BIT_GENERA - - TRANSFERO - type: string - ExchangeAsset: - example: - providerSymbol: BTC - total: total - lockedAmount: lockedAmount - assetSymbol: BTC - balance: balance - assetId: 2306088f-97ed-4293-8d28-8ab627f272d7 - assetLegacyId: BTC - available: available - id: id - credit: credit - properties: - id: - type: string - balance: - type: string - lockedAmount: - type: string - total: - type: string - available: - type: string - credit: - type: string - assetId: - description: The id of the asset - example: 2306088f-97ed-4293-8d28-8ab627f272d7 - type: string - providerSymbol: - description: The provider symbol of the asset - example: BTC - type: string - assetSymbol: - description: The asset symbol of the asset - example: BTC - type: string - assetLegacyId: - description: The asset legacy id of the asset - example: BTC - type: string - type: object - ExchangeTradingAccount: - example: - assets: - - providerSymbol: BTC - total: total - lockedAmount: lockedAmount - assetSymbol: BTC - balance: balance - assetId: 2306088f-97ed-4293-8d28-8ab627f272d7 - assetLegacyId: BTC - available: available - id: id - credit: credit - - providerSymbol: BTC - total: total - lockedAmount: lockedAmount - assetSymbol: BTC - balance: balance - assetId: 2306088f-97ed-4293-8d28-8ab627f272d7 - assetLegacyId: BTC - available: available - id: id - credit: credit - name: name - type: type - properties: - type: - type: string - name: - type: string - assets: - items: - $ref: "#/components/schemas/ExchangeAsset" - type: array - type: object - ExchangeAccount: - example: - tradingAccounts: - - assets: - - providerSymbol: BTC - total: total - lockedAmount: lockedAmount - assetSymbol: BTC - balance: balance - assetId: 2306088f-97ed-4293-8d28-8ab627f272d7 - assetLegacyId: BTC - available: available - id: id - credit: credit - - providerSymbol: BTC - total: total - lockedAmount: lockedAmount - assetSymbol: BTC - balance: balance - assetId: 2306088f-97ed-4293-8d28-8ab627f272d7 - assetLegacyId: BTC - available: available - id: id - credit: credit - name: name - type: type - - assets: - - providerSymbol: BTC - total: total - lockedAmount: lockedAmount - assetSymbol: BTC - balance: balance - assetId: 2306088f-97ed-4293-8d28-8ab627f272d7 - assetLegacyId: BTC - available: available - id: id - credit: credit - - providerSymbol: BTC - total: total - lockedAmount: lockedAmount - assetSymbol: BTC - balance: balance - assetId: 2306088f-97ed-4293-8d28-8ab627f272d7 - assetLegacyId: BTC - available: available - id: id - credit: credit - name: name - type: type - isSubaccount: true - assets: - - providerSymbol: BTC - total: total - lockedAmount: lockedAmount - assetSymbol: BTC - balance: balance - assetId: 2306088f-97ed-4293-8d28-8ab627f272d7 - assetLegacyId: BTC - available: available - id: id - credit: credit - - providerSymbol: BTC - total: total - lockedAmount: lockedAmount - assetSymbol: BTC - balance: balance - assetId: 2306088f-97ed-4293-8d28-8ab627f272d7 - assetLegacyId: BTC - available: available - id: id - credit: credit - success: true - name: name - id: id - type: INDEPENDENT_RESERVE - mainAccountId: mainAccountId - status: status - properties: - id: - type: string - type: - $ref: "#/components/schemas/ExchangeType" - name: - description: Display name of the exchange account - type: string - status: - type: string - assets: - items: - $ref: "#/components/schemas/ExchangeAsset" - type: array - success: - description: Did succeed in retrieve balance data - type: boolean - tradingAccounts: - items: - $ref: "#/components/schemas/ExchangeTradingAccount" - type: array - isSubaccount: - description: True if the account is a subaccount in an exchange - type: boolean - mainAccountId: - description: "if the account is a sub-account, the ID of the main account" - type: string - type: object - GetExchangeAccountsResponse: - items: - $ref: "#/components/schemas/ExchangeAccount" - type: array - AddExchangeAccountRequest: - example: - name: name - exchangeType: INDEPENDENT_RESERVE - creds: creds - key: key - mainAccountId: mainAccountId - properties: - exchangeType: - $ref: "#/components/schemas/ExchangeType" - name: - description: Display name of the exchange account - type: string - creds: - description: Encrypted credentials - type: string - key: - description: Api key of the exchange - type: string - mainAccountId: - description: Optional - main account id of the exchange - type: string - required: - - exchangeType - - name - type: object - AddExchangeAccountResponse: - example: - name: name - exchangeType: INDEPENDENT_RESERVE - id: id - properties: - id: - description: Exchange account's identifier - type: string - name: - description: Display name of the exchange account - type: string - exchangeType: - $ref: "#/components/schemas/ExchangeType" - type: object - ExchangeAccountsPaged: - example: - prevUrl: prevUrl - ExchangeAccount: - - tradingAccounts: - - assets: - - providerSymbol: BTC - total: total - lockedAmount: lockedAmount - assetSymbol: BTC - balance: balance - assetId: 2306088f-97ed-4293-8d28-8ab627f272d7 - assetLegacyId: BTC - available: available - id: id - credit: credit - - providerSymbol: BTC - total: total - lockedAmount: lockedAmount - assetSymbol: BTC - balance: balance - assetId: 2306088f-97ed-4293-8d28-8ab627f272d7 - assetLegacyId: BTC - available: available - id: id - credit: credit - name: name - type: type - - assets: - - providerSymbol: BTC - total: total - lockedAmount: lockedAmount - assetSymbol: BTC - balance: balance - assetId: 2306088f-97ed-4293-8d28-8ab627f272d7 - assetLegacyId: BTC - available: available - id: id - credit: credit - - providerSymbol: BTC - total: total - lockedAmount: lockedAmount - assetSymbol: BTC - balance: balance - assetId: 2306088f-97ed-4293-8d28-8ab627f272d7 - assetLegacyId: BTC - available: available - id: id - credit: credit - name: name - type: type - isSubaccount: true - assets: - - providerSymbol: BTC - total: total - lockedAmount: lockedAmount - assetSymbol: BTC - balance: balance - assetId: 2306088f-97ed-4293-8d28-8ab627f272d7 - assetLegacyId: BTC - available: available - id: id - credit: credit - - providerSymbol: BTC - total: total - lockedAmount: lockedAmount - assetSymbol: BTC - balance: balance - assetId: 2306088f-97ed-4293-8d28-8ab627f272d7 - assetLegacyId: BTC - available: available - id: id - credit: credit - success: true - name: name - id: id - type: INDEPENDENT_RESERVE - mainAccountId: mainAccountId - status: status - - tradingAccounts: - - assets: - - providerSymbol: BTC - total: total - lockedAmount: lockedAmount - assetSymbol: BTC - balance: balance - assetId: 2306088f-97ed-4293-8d28-8ab627f272d7 - assetLegacyId: BTC - available: available - id: id - credit: credit - - providerSymbol: BTC - total: total - lockedAmount: lockedAmount - assetSymbol: BTC - balance: balance - assetId: 2306088f-97ed-4293-8d28-8ab627f272d7 - assetLegacyId: BTC - available: available - id: id - credit: credit - name: name - type: type - - assets: - - providerSymbol: BTC - total: total - lockedAmount: lockedAmount - assetSymbol: BTC - balance: balance - assetId: 2306088f-97ed-4293-8d28-8ab627f272d7 - assetLegacyId: BTC - available: available - id: id - credit: credit - - providerSymbol: BTC - total: total - lockedAmount: lockedAmount - assetSymbol: BTC - balance: balance - assetId: 2306088f-97ed-4293-8d28-8ab627f272d7 - assetLegacyId: BTC - available: available - id: id - credit: credit - name: name - type: type - isSubaccount: true - assets: - - providerSymbol: BTC - total: total - lockedAmount: lockedAmount - assetSymbol: BTC - balance: balance - assetId: 2306088f-97ed-4293-8d28-8ab627f272d7 - assetLegacyId: BTC - available: available - id: id - credit: credit - - providerSymbol: BTC - total: total - lockedAmount: lockedAmount - assetSymbol: BTC - balance: balance - assetId: 2306088f-97ed-4293-8d28-8ab627f272d7 - assetLegacyId: BTC - available: available - id: id - credit: credit - success: true - name: name - id: id - type: INDEPENDENT_RESERVE - mainAccountId: mainAccountId - status: status - paging: - before: before - after: after - nextUrl: nextUrl - properties: - ExchangeAccount: - items: - $ref: "#/components/schemas/ExchangeAccount" - type: array - paging: - $ref: "#/components/schemas/ExchangeAccountsPaged_paging" - prevUrl: - type: string - nextUrl: - type: string - type: object - GetPagedExchangeAccountsResponse: - items: - $ref: "#/components/schemas/ExchangeAccountsPaged" - type: array - TradingAccountType: - enum: - - COIN_FUTURES - - COIN_MARGINED_SWAP - - EXCHANGE - - FUNDING - - FUNDABLE - - FUTURES - - FUTURES_CROSS - - MARGIN - - MARGIN_CROSS - - OPTIONS - - SPOT - - USDT_MARGINED_SWAP_CROSS - - USDT_FUTURES - - UNIFIED - type: string - CreateInternalTransferRequest: - example: - amount: amount - sourceType: COIN_FUTURES - asset: asset - destType: null - properties: - asset: - type: string - amount: - type: string - sourceType: - $ref: "#/components/schemas/TradingAccountType" - destType: - $ref: "#/components/schemas/TradingAccountType" - required: - - amount - - asset - - destType - - sourceType - type: object - InternalTransferResponse: - example: - success: true - id: id - properties: - success: - description: Indicates whether the transfer was successful - type: boolean - id: - description: The transaction ID of the internal transfer - nullable: true - type: string - required: - - success - type: object - ConvertAssetsRequest: - example: - amount: 0.8008281904610115 - destAsset: destAsset - srcAsset: srcAsset - properties: - srcAsset: - description: Name of the source asset (must be in a currency that is supported - for conversions in the selected exchange type that corresponds to your - exchange ID) - type: string - destAsset: - description: Name of the destination asset (must be in a currency that is - supported for conversions in the selected exchange type that corresponds - to your exchange ID) - type: string - amount: - description: The amount to transfer (in the currency of the source asset) - type: number - required: - - amount - - destAsset - - srcAsset - type: object - ConvertAssetsResponse: - example: - success: true - properties: - success: - description: Indicates whether the conversion was successful - type: boolean - required: - - success - type: object - GetExchangeAccountsCredentialsPublicKeyResponse: - example: - tenantId: tenantId - publicKey: publicKey - properties: - publicKey: - description: Public key string - type: string - tenantId: - description: Tenant identifier - type: string - required: - - publicKey - - tenantId - type: object - FiatAccountType: - enum: - - BLINC - type: string - FiatAsset: - example: - balance: balance - id: id - properties: - id: - type: string - balance: - type: string - type: object - FiatAccount: - example: - address: address - assets: - - balance: balance - id: id - - balance: balance - id: id - name: name - id: id - type: BLINC - properties: - id: - type: string - type: - $ref: "#/components/schemas/FiatAccountType" - name: - description: Display name of the fiat account - type: string - address: - nullable: true - type: string - assets: - items: - $ref: "#/components/schemas/FiatAsset" - type: array - type: object - GetFiatAccountsResponse: - items: - $ref: "#/components/schemas/FiatAccount" - type: array - Funds: - example: - amount: 0.8008281904610115 - properties: - amount: - type: number - type: object - RedeemFundsToLinkedDDAResponse: - example: - success: true - properties: - success: - description: Indicates whether the funds were successfully redeemed to the - linked DDA - type: boolean - required: - - success - type: object - DepositFundsFromLinkedDDAResponse: - example: - success: true - properties: - success: - description: Indicates whether the funds were successfully deposited from - the linked DDA - type: boolean - required: - - success - type: object - ConnectedAccountApprovalStatus: - enum: - - WAITING_FOR_APPROVAL - - APPROVED - - REJECTED - - CANCELLED - - FAILED - type: string - ConnectedAccountTotalBalance: - example: - amount: "1201.15" - denominatedAssetId: ea6c3cb7-355a-4ee3-82ff-267c69970214 - hasFullAssetCoverage: true - properties: - amount: - description: The denominated currency value of the account. - example: "1201.15" - type: string - denominatedAssetId: - description: The asset ID of the total balance. - example: ea6c3cb7-355a-4ee3-82ff-267c69970214 - type: string - hasFullAssetCoverage: - default: false - description: "Indicates whether the total amount represents the complete\ - \ balance of all assets in the account. When true, all asset balances\ - \ have been successfully converted to the denominated currency. When false,\ - \ some assets could not be included in the total due to missing exchange\ - \ rates or non-convertible assets." - example: true - type: boolean - required: - - amount - - denominatedAssetId - - hasFullAssetCoverage - type: object - ConnectedAccountAssetType: - enum: - - DIGITAL - - FIAT - type: string - ConnectedAccountCapability: - enum: - - WITHDRAWALS - - DEPOSITS - - TRADING - type: string - ConnectedAccountManifest: - example: - assetTypes: [] - capabilities: - - WITHDRAWALS - properties: - assetTypes: - description: Asset types supported by the connected account. - example: [] - items: - $ref: "#/components/schemas/ConnectedAccountAssetType" - type: array - capabilities: - description: | - Features supported for the connected account. Logic: - If account capabilities include ramp -> TRADING - If account capabilities include transfers -> DEPOSITS - If account capabilities include transfersBlockchain / transfersFiat / transfersPeerAccounts / transfersInternal -> WITHDRAWALS - example: - - WITHDRAWALS - items: - $ref: "#/components/schemas/ConnectedAccountCapability" - type: array - required: - - assetTypes - - capabilities - type: object - ConnectedAccount: - properties: - id: - description: Unique identifier of the connected account. - example: acc-123456 - type: string - name: - description: Human-readable name of the connected account. - example: Main Venue Account - type: string - providerId: - description: The ID of the venue the account belongs to. - example: BRIDGE - type: string - status: - $ref: "#/components/schemas/ConnectedAccountApprovalStatus" - totalBalance: - $ref: "#/components/schemas/ConnectedAccountTotalBalance" - manifest: - $ref: "#/components/schemas/ConnectedAccountManifest" - parentId: - description: "The ID of the parent main account, if this is a sub account." - example: acc-parent-001 - type: string - required: - - id - - manifest - - name - - providerId - - status - - totalBalance - type: object - ConnectedAccountsResponse: - example: - next: eyJwYWdlIjoyfQ== - total: 2 - data: - - id: acc-123456 - name: Main Venue Account - providerId: BRIDGE - status: APPROVED - totalBalance: - amount: "1201.15" - denominatedAssetId: ea6c3cb7-355a-4ee3-82ff-267c69970214 - hasFullAssetCoverage: true - manifest: - assetTypes: [] - capabilities: - - DEPOSITS - - WITHDRAWALS - - id: acc-654321 - name: Secondary Account - providerId: BRIDGE - status: WAITING_FOR_APPROVAL - totalBalance: - amount: "0.00" - denominatedAssetId: ea6c3cb7-355a-4ee3-82ff-267c69970214 - hasFullAssetCoverage: false - manifest: - assetTypes: [] - capabilities: - - WITHDRAWALS - properties: - data: - description: List of connected accounts matching the query. - example: - - id: acc-123456 - name: Main Venue Account - providerId: BRIDGE - status: APPROVED - totalBalance: - amount: "1201.15" - denominatedAssetId: ea6c3cb7-355a-4ee3-82ff-267c69970214 - hasFullAssetCoverage: true - manifest: - assetTypes: [] - capabilities: - - DEPOSITS - - WITHDRAWALS - - id: acc-654321 - name: Secondary Account - providerId: BRIDGE - status: WAITING_FOR_APPROVAL - totalBalance: - amount: "0.00" - denominatedAssetId: ea6c3cb7-355a-4ee3-82ff-267c69970214 - hasFullAssetCoverage: false - manifest: - assetTypes: [] - capabilities: - - WITHDRAWALS - items: - $ref: "#/components/schemas/ConnectedAccount" - type: array - total: - description: Total number of accounts by query. - example: 2 - type: integer - next: - description: "A cursor for the next page of results, if available." - example: eyJwYWdlIjoyfQ== - type: string - required: - - data - type: object - ConnectedSingleAccount: - properties: - subAccountsIds: - description: IDs of sub-accounts associated with this connected account. - example: - - acc-sub-001 - - acc-sub-002 - items: - type: string - type: array - type: object - ConnectedSingleAccountResponse: - allOf: - - $ref: "#/components/schemas/ConnectedAccount" - - $ref: "#/components/schemas/ConnectedSingleAccount" - example: - totalBalance: - amount: "1201.15" - denominatedAssetId: ea6c3cb7-355a-4ee3-82ff-267c69970214 - hasFullAssetCoverage: true - providerId: BRIDGE - manifest: - assetTypes: [] - capabilities: - - WITHDRAWALS - name: Main Venue Account - id: acc-123456 - parentId: acc-parent-001 - subAccountsIds: - - acc-sub-001 - - acc-sub-002 - status: WAITING_FOR_APPROVAL - ConnectedAccountBalances: - properties: - assetId: - description: "Asset identifier (e.g., BTC, ETH, USDC)." - example: BTC - type: string - availableAmount: - description: Amount available for use. - example: "100.00" - type: string - totalAmount: - description: Total amount including locked/held balances. - example: "120.00" - type: string - lockedAmount: - description: Amount currently locked/held. - example: "20.00" - type: string - creditAmount: - description: "Credit line amount, if applicable (0 when not used)." - example: "0" - type: string - balanceType: - description: "Wallet type/category (e.g., SPOT, MARGIN, FUNDING)." - example: FUNDING - type: string - balanceName: - description: Display name for the balance type (at the provider) - example: Trader1 Wallet - type: string - required: - - assetId - - availableAmount - - balanceType - - totalAmount - type: object - ConnectedAccountBalancesResponse: - example: - next: eyJwYWdlIjoyfQ== - total: 2 - data: - - assetId: BTC - availableAmount: "100.00" - totalAmount: "120.00" - balanceType: FUNDING - balanceName: Trader1 Wallet - properties: - data: - description: "Flat balance row for a single asset within an account and\ - \ wallet type. One row per (assetId, balanceType)." - example: - - assetId: BTC - availableAmount: "100.00" - totalAmount: "120.00" - balanceType: FUNDING - balanceName: Trader1 Wallet - items: - $ref: "#/components/schemas/ConnectedAccountBalances" - type: array - total: - description: Total number of balance rows by query. - example: 2 - type: integer - next: - description: "A cursor for the next page of results, if available." - example: eyJwYWdlIjoyfQ== - type: string - required: - - data - type: object - ConnectedAccountRateResponse: - example: - accountId: ea6c3cb7-355a-4ee3-82ff-267c69970210 - baseAssetId: BTC - rate: "1.2345" - quoteAssetId: USD - properties: - accountId: - description: The ID of the account that generated the quote. - example: ea6c3cb7-355a-4ee3-82ff-267c69970210 - type: string - baseAssetId: - description: The source asset identifier - example: BTC - type: string - quoteAssetId: - description: The target asset identifier - example: USD - type: string - rate: - description: The exchange rate value - example: "1.2345" - type: string - required: - - accountId - - baseAssetId - - quoteAssetId - - rate - type: object - ConnectedAccountTradingPairSupportedType: - enum: - - QUOTE - - MARKET - - LIMIT - type: string - ConnectedAccountTradingPair: - properties: - id: - description: The ID of the trading pair. - example: ea6c3cb7-355a-4ee3-82ff-267c69970210 - type: string - baseAssetId: - description: The Symbol of the base asset. - example: BTC - type: string - quoteAssetId: - description: The symbol of the quote asset. - example: USD - type: string - supportedTypes: - items: - $ref: "#/components/schemas/ConnectedAccountTradingPairSupportedType" - type: array - required: - - baseAssetId - - id - - quoteAssetId - - supportedTypes - type: object - ConnectedAccountTradingPairsResponse: - example: - next: next - total: 2 - data: - - id: ea6c3cb7-355a-4ee3-82ff-267c69970210 - baseAssetId: BTC - quoteAssetId: USD - supportedTypes: - - MARKET - - id: ea6c3cb7-355a-4ee3-82ff-267c69970211 - baseAssetId: ETH - quoteAssetId: USDC - supportedTypes: - - QUOTE - - MARKET - properties: - data: - example: - - id: ea6c3cb7-355a-4ee3-82ff-267c69970210 - baseAssetId: BTC - quoteAssetId: USD - supportedTypes: - - MARKET - - id: ea6c3cb7-355a-4ee3-82ff-267c69970211 - baseAssetId: ETH - quoteAssetId: USDC - supportedTypes: - - QUOTE - - MARKET - items: - $ref: "#/components/schemas/ConnectedAccountTradingPair" - type: array - total: - description: Total number of asset pairs matching the query. - example: 2 - type: integer - next: - description: "A cursor for the next page of results, if available." - nullable: true - type: string - example: null - required: - - data - type: object - NetworkChannel: - deprecated: true - description: Deprecated in the only used reference - NetworkConnectionResponse - properties: - networkId: - type: string - name: - type: string - type: object - NetworkConnectionStatus: - enum: - - WAITING_FOR_APPROVAL - - WAITING_FOR_PEER_APPROVAL - - APPROVED - - CANCELLED - - FAILED - - REJECTED - - REJECTED_BY_PEER - - REMOVED - - REMOVED_BY_PEER - type: string - NetworkId: - example: - name: name - id: id - properties: - id: - type: string - name: - type: string - required: - - id - - name - type: object - CustomRoutingDest: - example: - scheme: CUSTOM - dstId: dstId - dstType: FIAT_ACCOUNT - properties: - scheme: - description: The network routing logic. - enum: - - CUSTOM - type: string - dstType: - description: The account the funds are being sent to. - enum: - - FIAT_ACCOUNT - - VAULT - - EXCHANGE - type: string - dstId: - description: The ID of the account the funds are being sent to. - type: string - required: - - dstId - - dstType - - scheme - type: object - DefaultNetworkRoutingDest: - properties: - scheme: - description: The network routing logic. - enum: - - DEFAULT - type: string - required: - - scheme - type: object - NoneNetworkRoutingDest: - properties: - scheme: - description: No network routing logic. - enum: - - NONE - type: string - required: - - scheme - type: object - NetworkConnectionRoutingPolicy: - additionalProperties: - $ref: "#/components/schemas/NetworkConnectionRoutingPolicy_value" - type: object - NetworkConnectionResponse: - example: - localNetworkId: - name: name - id: id - remoteNetworkId: - name: name - id: id - remoteChannel: "" - id: id - localChannel: "" - routingPolicy: - key: - scheme: CUSTOM - dstId: dstId - dstType: FIAT_ACCOUNT - status: WAITING_FOR_APPROVAL - properties: - id: - type: string - localChannel: - allOf: - - $ref: "#/components/schemas/NetworkChannel" - deprecated: true - description: Deprecated - Replaced by `localNetworkId` - remoteChannel: - allOf: - - $ref: "#/components/schemas/NetworkChannel" - deprecated: true - description: Deprecated - Replaced by `remoteNetworkId` - status: - $ref: "#/components/schemas/NetworkConnectionStatus" - localNetworkId: - $ref: "#/components/schemas/NetworkId" - remoteNetworkId: - $ref: "#/components/schemas/NetworkId" - routingPolicy: - additionalProperties: - $ref: "#/components/schemas/NetworkConnectionRoutingPolicy_value" - type: object - required: - - id - - localNetworkId - - remoteNetworkId - - routingPolicy - - status - type: object - GetNetworkConnectionsResponse: - items: - $ref: "#/components/schemas/NetworkConnectionResponse" - type: array - NetworkConnection: - example: - localNetworkId: localNetworkId - remoteNetworkId: remoteNetworkId - routingPolicy: - key: - scheme: CUSTOM - dstId: dstId - dstType: FIAT_ACCOUNT - properties: - localNetworkId: - description: The network ID of the profile trying to create the connection. - type: string - remoteNetworkId: - description: The network ID the profile is attempting to connect to. - type: string - routingPolicy: - additionalProperties: - $ref: "#/components/schemas/NetworkConnectionRoutingPolicy_value" - type: object - required: - - localNetworkId - - remoteNetworkId - type: object - SetRoutingPolicyRequest: - example: - routingPolicy: - key: - scheme: CUSTOM - dstId: dstId - dstType: FIAT_ACCOUNT - properties: - routingPolicy: - additionalProperties: - $ref: "#/components/schemas/NetworkConnectionRoutingPolicy_value" - type: object - required: - - routingPolicy - type: object - SetRoutingPolicyResponse: - example: - success: true - properties: - success: - type: boolean - required: - - success - type: object - ThirdPartyRouting: - example: - isThirdPartyRouting: true - description: description - properties: - isThirdPartyRouting: - type: boolean - description: - type: string - type: object - DeleteNetworkConnectionResponse: - example: - success: true - properties: - success: - type: boolean - required: - - success - type: object - NetworkIdRoutingPolicy: - additionalProperties: - $ref: "#/components/schemas/NetworkIdRoutingPolicy_value" - type: object - NetworkIdResponse: - example: - name: name - isDiscoverable: true - routingPolicy: - key: - scheme: CUSTOM - dstId: dstId - dstType: FIAT_ACCOUNT - id: id - properties: - routingPolicy: - additionalProperties: - $ref: "#/components/schemas/NetworkIdRoutingPolicy_value" - type: object - isDiscoverable: - description: The specific network is discoverable. - type: boolean - id: - description: The specific network id - type: string - name: - description: The specific network name - type: string - type: object - GetNetworkIdsResponse: - items: - allOf: - - $ref: "#/components/schemas/NetworkIdResponse" - type: array - CreateNetworkIdRequest: - example: - name: name - routingPolicy: - key: - scheme: CUSTOM - dstId: dstId - dstType: FIAT_ACCOUNT - properties: - name: - type: string - routingPolicy: - additionalProperties: - $ref: "#/components/schemas/NetworkIdRoutingPolicy_value" - type: object - required: - - name - type: object - GetRoutingPolicyAssetGroupsResponse: - items: - type: string - type: array - SearchNetworkIdsResponse: - example: - next: next - data: - - name: name - isDiscoverable: true - routingPolicy: - key: - scheme: CUSTOM - dstId: dstId - dstType: FIAT_ACCOUNT - id: id - - name: name - isDiscoverable: true - routingPolicy: - key: - scheme: CUSTOM - dstId: dstId - dstType: FIAT_ACCOUNT - id: id - properties: - data: - items: - $ref: "#/components/schemas/NetworkIdResponse" - type: array - next: - type: string - type: object - DeleteNetworkIdResponse: - example: - success: true - properties: - success: - type: boolean - required: - - success - type: object - SetNetworkIdRoutingPolicyRequest: - example: - routingPolicy: - key: - scheme: CUSTOM - dstId: dstId - dstType: FIAT_ACCOUNT - properties: - routingPolicy: - additionalProperties: - $ref: "#/components/schemas/NetworkIdRoutingPolicy_value" - type: object - required: - - routingPolicy - type: object - SetNetworkIdResponse: - example: - success: true - properties: - success: - type: boolean - required: - - success - type: object - SetNetworkIdDiscoverabilityRequest: - example: - isDiscoverable: true - properties: - isDiscoverable: - type: boolean - required: - - isDiscoverable - type: object - SetNetworkIdNameRequest: - example: - name: name - properties: - name: - type: string - required: - - name - type: object - ConfigChangeRequestStatus: - enum: - - WAITING_FOR_APPROVAL - - APPROVED - - CANCELLED - - REJECTED - - FAILED - type: string - WalletAsset: - example: - lockedAmount: lockedAmount - address: address - balance: balance - id: id - tag: tag - activationTime: activationTime - status: WAITING_FOR_APPROVAL - properties: - id: - type: string - balance: - type: string - lockedAmount: - type: string - status: - $ref: "#/components/schemas/ConfigChangeRequestStatus" - address: - type: string - tag: - type: string - activationTime: - type: string - type: object - UnmanagedWallet: - example: - assets: - - lockedAmount: lockedAmount - address: address - balance: balance - id: id - tag: tag - activationTime: activationTime - status: WAITING_FOR_APPROVAL - - lockedAmount: lockedAmount - address: address - balance: balance - id: id - tag: tag - activationTime: activationTime - status: WAITING_FOR_APPROVAL - name: name - id: id - customerRefId: customerRefId - properties: - id: - type: string - name: - type: string - customerRefId: - type: string - assets: - items: - $ref: "#/components/schemas/WalletAsset" - type: array - required: - - assets - - id - - name - type: object - GetInternalWalletsResponse: - items: - $ref: "#/components/schemas/UnmanagedWallet" - type: array - CreateWalletRequest: - example: - name: name - customerRefId: customerRefId - properties: - name: - description: the wallet's display name - type: string - customerRefId: - description: Optional - Sets a customer reference ID - type: string - type: object - PaginatedAssetsResponse: - example: - next: next - total: 0.8008281904610115 - data: - assets: - - lockedAmount: lockedAmount - address: address - balance: balance - id: id - tag: tag - activationTime: activationTime - status: WAITING_FOR_APPROVAL - - lockedAmount: lockedAmount - address: address - balance: balance - id: id - tag: tag - activationTime: activationTime - status: WAITING_FOR_APPROVAL - name: name - id: id - customerRefId: customerRefId - properties: - total: - description: Total number of assets in the internal wallet - type: number - data: - $ref: "#/components/schemas/UnmanagedWallet" - next: - description: Cursor for the next page of results - type: string - required: - - data - type: object - CreateInternalWalletAssetRequest: - example: - address: address - tag: tag - properties: - address: - description: "The wallet's address or, for EOS wallets, the account name" - type: string - tag: - description: "for XRP wallets, the destination tag; for EOS, the memo; for\ - \ the fiat providers (BLINC by BCB Group), the Bank Transfer Description" - type: string - required: - - address - type: object - SigningKeyDto: - example: - createdAt: 124757537 - signingDeviceKeyId: MyKey1 - publicKeyPem: '-----BEGIN PUBLIC KEY ... END PUBLIC KEY-----' - agentUserId: d18847b5-1df6-4c46-8f99-5cce47284529 - keyId: 46a92767-5f93-4a46-9eed-f012196bb4fc - vaultAccountId: 10 - enabled: true - algorithm: ECDSA_SECP256K1 - properties: - keyId: - description: External signing key id set by Fireblocks. - example: 46a92767-5f93-4a46-9eed-f012196bb4fc - maxLength: 36 - minLength: 36 - type: string - signingDeviceKeyId: - description: "The ID, name or label of the key specified on the customer's\ - \ signing device." - example: MyKey1 - maxLength: 256 - type: string - publicKeyPem: - description: PEM encoded public key - example: '-----BEGIN PUBLIC KEY ... END PUBLIC KEY-----' - type: string - algorithm: - description: "Algorithm and curve used for the signature. Can be: ECDSA_SECP256K1\ - \ or EDDSA_ED25519" - example: ECDSA_SECP256K1 - type: string - enabled: - description: True if the signing key is enabled - example: true - type: boolean - vaultAccountId: - description: Id of the vault account which this key is linked to - example: 10 - nullable: true - type: number - agentUserId: - description: Id of user that represent agent servers that can sign with - the key - example: d18847b5-1df6-4c46-8f99-5cce47284529 - maxLength: 36 - minLength: 36 - type: string - createdAt: - description: Creation date (timestamp) in milliseconds. - example: 124757537 - type: number - required: - - agentUserId - - algorithm - - createdAt - - enabled - - keyId - - publicKeyPem - - signingDeviceKeyId - - vaultAccountId - type: object - GetSigningKeyResponseDto: - example: - next: next - data: - - createdAt: 124757537 - signingDeviceKeyId: MyKey1 - publicKeyPem: '-----BEGIN PUBLIC KEY ... END PUBLIC KEY-----' - agentUserId: d18847b5-1df6-4c46-8f99-5cce47284529 - keyId: 46a92767-5f93-4a46-9eed-f012196bb4fc - vaultAccountId: 10 - enabled: true - algorithm: ECDSA_SECP256K1 - - createdAt: 124757537 - signingDeviceKeyId: MyKey1 - publicKeyPem: '-----BEGIN PUBLIC KEY ... END PUBLIC KEY-----' - agentUserId: d18847b5-1df6-4c46-8f99-5cce47284529 - keyId: 46a92767-5f93-4a46-9eed-f012196bb4fc - vaultAccountId: 10 - enabled: true - algorithm: ECDSA_SECP256K1 - properties: - data: - description: Response object for getting external signing keys. - items: - $ref: "#/components/schemas/SigningKeyDto" - type: array - next: - description: The ID of the next page - type: string - required: - - data - type: object - CreateSigningKeyDto: - example: - signingDeviceKeyId: MyKey1 - agentUserId: d18847b5-1df6-4c46-8f99-5cce47284529 - proofOfOwnership: - signature: signature - message: message - signedCertPem: '-----BEGIN CERTIFICATE ... END CERTIFICATE-----' - properties: - signingDeviceKeyId: - description: "The ID, name or label of the key specified on the customer's\ - \ signing device." - example: MyKey1 - maxLength: 256 - type: string - signedCertPem: - description: "The signed certificate that includes the public key PEM of\ - \ the signing key, signed by a validation key." - example: '-----BEGIN CERTIFICATE ... END CERTIFICATE-----' - type: string - agentUserId: - description: Id of user to which this key belongs - example: d18847b5-1df6-4c46-8f99-5cce47284529 - maxLength: 36 - minLength: 36 - type: string - proofOfOwnership: - $ref: "#/components/schemas/CreateSigningKeyDto_proofOfOwnership" - required: - - agentUserId - - signedCertPem - - signingDeviceKeyId - type: object - ModifySigningKeyDto: - example: - vaultAccountId: 123 - properties: - vaultAccountId: - example: 123 - minimum: 0 - type: number - required: - - vaultAccountId - type: object - ModifySigningKeyAgentIdDto: - example: - agentUserId: d18847b5-1df6-4c46-8f99-5cce47284529 - properties: - agentUserId: - description: Id of user that represent agent servers which signs with the - key - example: d18847b5-1df6-4c46-8f99-5cce47284529 - maxLength: 36 - minLength: 36 - type: string - required: - - agentUserId - type: object - ValidationKeyDto: - example: - createdAt: 12345633 - publicKeyPem: '-----BEGIN PUBLIC KEY ... END PUBLIC KEY-----' - daysTillExpired: 365 - keyId: 46a92767-5f93-4a46-9eed-f012196bb4fc - enabled: false - properties: - keyId: - description: External validation key id set by Fireblocks. - example: 46a92767-5f93-4a46-9eed-f012196bb4fc - maxLength: 36 - minLength: 36 - type: string - publicKeyPem: - description: PEM encoded public key used for the validation. - example: '-----BEGIN PUBLIC KEY ... END PUBLIC KEY-----' - type: string - daysTillExpired: - example: 365 - minimum: 1 - type: number - enabled: - description: True if the validation key is enabled. - example: false - type: boolean - createdAt: - description: Creation date (timestamp) in milliseconds. - example: 12345633 - type: number - required: - - createdAt - - daysTillExpired - - enabled - - keyId - - publicKeyPem - type: object - GetValidationKeyResponseDto: - example: - next: next - data: - - createdAt: 12345633 - publicKeyPem: '-----BEGIN PUBLIC KEY ... END PUBLIC KEY-----' - daysTillExpired: 365 - keyId: 46a92767-5f93-4a46-9eed-f012196bb4fc - enabled: false - - createdAt: 12345633 - publicKeyPem: '-----BEGIN PUBLIC KEY ... END PUBLIC KEY-----' - daysTillExpired: 365 - keyId: 46a92767-5f93-4a46-9eed-f012196bb4fc - enabled: false - properties: - data: - description: Response object for getting external validation keys. - items: - $ref: "#/components/schemas/ValidationKeyDto" - type: array - next: - description: The ID of the next page - type: string - required: - - data - type: object - CreateValidationKeyDto: - example: - publicKeyPem: '-----BEGIN PUBLIC KEY ... END PUBLIC KEY-----' - daysTillExpired: 365 - properties: - publicKeyPem: - description: The PEM encoded public key of the validation key being added - example: '-----BEGIN PUBLIC KEY ... END PUBLIC KEY-----' - type: string - daysTillExpired: - description: The number of days from the date the validation key was added - until it expires - example: 365 - minimum: 1 - type: number - required: - - daysTillExpired - - publicKeyPem - type: object - CreateValidationKeyResponseDto: - example: - approvalThreshold: 0 - requestId: 1234 - validationKey: "" - admins: - - admins - - admins - properties: - validationKey: - allOf: - - $ref: "#/components/schemas/ValidationKeyDto" - description: Created validation key - admins: - description: Admins who have to approve the validation key addition - items: - type: string - type: array - approvalThreshold: - description: Minimal number of approvers required. 0 for all - example: 0 - minimum: 0 - type: number - requestId: - description: Approval request id. Can be cancelled - example: 1234 - type: number - required: - - admins - - approvalThreshold - - requestId - - validationKey - type: object - ModifyValidationKeyDto: - example: - enabled: false - properties: - enabled: - description: Disable validation key - example: false - type: boolean - required: - - enabled - type: object - Players: - example: - id: 47d3383e-37a3-43d5-90a4-de0ca8c5e258 - type: MOBILE - properties: - id: - description: id of the player - example: 47d3383e-37a3-43d5-90a4-de0ca8c5e258 - maxLength: 36 - minLength: 36 - type: string - type: - description: Type of the player - enum: - - MOBILE - - CLOUD - example: MOBILE - type: string - required: - - id - - type - type: object - MpcKey: - example: - lastPreprocessedIndex: 6 - players: - - id: 47d3383e-37a3-43d5-90a4-de0ca8c5e258 - type: MOBILE - - id: 47d3383e-37a3-43d5-90a4-de0ca8c5e258 - type: MOBILE - keyId: 743f82cf-b526-4148-afb1-cd71f1dfee10 - userId: da084d02-d446-413e-b4ce-1e3256517dfd - algorithm: 201 - properties: - keyId: - example: 743f82cf-b526-4148-afb1-cd71f1dfee10 - maxLength: 36 - minLength: 36 - type: string - userId: - description: The user id that owns the key - example: da084d02-d446-413e-b4ce-1e3256517dfd - maxLength: 36 - minLength: 36 - type: string - algorithm: - description: The algorithm of the key - example: 201 - type: number - players: - description: The players that are associated with the key - items: - $ref: "#/components/schemas/Players" - type: array - lastPreprocessedIndex: - description: The last index used on this key - example: 6 - minimum: 0 - type: number - required: - - algorithm - - keyId - - players - - userId - type: object - GetMpcKeysResponse: - example: - keys: - - lastPreprocessedIndex: 6 - players: - - id: 47d3383e-37a3-43d5-90a4-de0ca8c5e258 - type: MOBILE - - id: 47d3383e-37a3-43d5-90a4-de0ca8c5e258 - type: MOBILE - keyId: 743f82cf-b526-4148-afb1-cd71f1dfee10 - userId: da084d02-d446-413e-b4ce-1e3256517dfd - algorithm: 201 - - lastPreprocessedIndex: 6 - players: - - id: 47d3383e-37a3-43d5-90a4-de0ca8c5e258 - type: MOBILE - - id: 47d3383e-37a3-43d5-90a4-de0ca8c5e258 - type: MOBILE - keyId: 743f82cf-b526-4148-afb1-cd71f1dfee10 - userId: da084d02-d446-413e-b4ce-1e3256517dfd - algorithm: 201 - tenantId: bdb57751-921d-45d5-99fd-344cffb364f6 - properties: - tenantId: - description: The workspace id of the keys - example: bdb57751-921d-45d5-99fd-344cffb364f6 - maxLength: 36 - minLength: 36 - type: string - keys: - description: The keys that are associated with the workspace - items: - $ref: "#/components/schemas/MpcKey" - type: array - required: - - keys - - tenantId - type: object - GetExternalWalletsResponse: - items: - $ref: "#/components/schemas/UnmanagedWallet" - type: array - WalletAssetAdditionalInfo: - example: - accountHolderCity: accountHolderCity - ibanCity: ibanCity - abaRoutingNumber: abaRoutingNumber - accountHolderCountry: accountHolderCountry - accountHolderGivenName: accountHolderGivenName - speiName: speiName - accountHolderDistrict: accountHolderDistrict - abaAccountNumber: abaAccountNumber - accountHolderSurname: accountHolderSurname - accountHolderPostalCode: accountHolderPostalCode - iban: iban - ibanCountry: ibanCountry - accountHolderAddress2: accountHolderAddress2 - accountHolderAddress1: accountHolderAddress1 - speiClabe: speiClabe - abaCountry: abaCountry - properties: - accountHolderGivenName: - type: string - accountHolderSurname: - type: string - accountHolderCity: - type: string - accountHolderCountry: - type: string - accountHolderAddress1: - type: string - accountHolderAddress2: - type: string - accountHolderDistrict: - type: string - accountHolderPostalCode: - type: string - abaRoutingNumber: - type: string - abaAccountNumber: - type: string - abaCountry: - type: string - iban: - type: string - ibanCity: - type: string - ibanCountry: - type: string - speiClabe: - type: string - speiName: - type: string - type: object - ExternalWalletAsset: - example: - address: address - lockedAmount: lockedAmount - balance: balance - additionalInfo: - - accountHolderCity: accountHolderCity - ibanCity: ibanCity - abaRoutingNumber: abaRoutingNumber - accountHolderCountry: accountHolderCountry - accountHolderGivenName: accountHolderGivenName - speiName: speiName - accountHolderDistrict: accountHolderDistrict - abaAccountNumber: abaAccountNumber - accountHolderSurname: accountHolderSurname - accountHolderPostalCode: accountHolderPostalCode - iban: iban - ibanCountry: ibanCountry - accountHolderAddress2: accountHolderAddress2 - accountHolderAddress1: accountHolderAddress1 - speiClabe: speiClabe - abaCountry: abaCountry - - accountHolderCity: accountHolderCity - ibanCity: ibanCity - abaRoutingNumber: abaRoutingNumber - accountHolderCountry: accountHolderCountry - accountHolderGivenName: accountHolderGivenName - speiName: speiName - accountHolderDistrict: accountHolderDistrict - abaAccountNumber: abaAccountNumber - accountHolderSurname: accountHolderSurname - accountHolderPostalCode: accountHolderPostalCode - iban: iban - ibanCountry: ibanCountry - accountHolderAddress2: accountHolderAddress2 - accountHolderAddress1: accountHolderAddress1 - speiClabe: speiClabe - abaCountry: abaCountry - id: id - tag: tag - activationTime: activationTime - status: WAITING_FOR_APPROVAL - properties: - id: - type: string - status: - $ref: "#/components/schemas/ConfigChangeRequestStatus" - address: - type: string - balance: - type: string - lockedAmount: - type: string - tag: - type: string - activationTime: - type: string - additionalInfo: - items: - $ref: "#/components/schemas/WalletAssetAdditionalInfo" - type: array - type: object - BasicAddressRequest: - description: Basic external wallet request with address information - example: - address: 1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa - tag: "12345" - properties: - address: - description: The wallet's address (or xpub) of the external wallet - example: 1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa - type: string - tag: - description: "For XRP wallets, the destination tag; for EOS/XLM, the memo;\ - \ for the fiat providers (BLINC by BCB Group), the Bank Transfer Description" - example: "12345" - type: string - required: - - address - type: object - IbanPaymentInfo: - description: IBAN payment information for European bank transfers - properties: - accountHolderGivenName: - description: The given name (first name) of the account holder - example: John - type: string - accountHolderSurname: - description: The surname (last name) of the account holder - example: Doe - type: string - accountHolderCity: - description: The city where the account holder resides - example: London - type: string - accountHolderCountry: - description: The country where the account holder resides (ISO 3166-1 alpha-2 - code) - example: GB - type: string - accountHolderAddress1: - description: The primary address line of the account holder - example: 123 Main Street - type: string - accountHolderAddress2: - description: The secondary address line of the account holder (optional) - example: Apartment 4B - type: string - accountHolderDistrict: - description: The district or region where the account holder resides - example: Westminster - type: string - accountHolderPostalCode: - description: The postal code of the account holder's address - example: SW1A 1AA - type: string - iban: - description: The International Bank Account Number (IBAN) - example: GB82WEST12345698765432 - type: string - ibanCity: - description: The city associated with the IBAN - example: London - type: string - ibanCountry: - description: The country associated with the IBAN (ISO 3166-1 alpha-2 code) - example: GB - type: string - required: - - accountHolderAddress1 - - accountHolderCity - - accountHolderCountry - - accountHolderGivenName - - accountHolderPostalCode - - iban - - ibanCity - - ibanCountry - type: object - AbaPaymentInfo: - description: ABA payment information for US bank transfers - properties: - accountHolderGivenName: - description: The given name (first name) of the account holder - example: John - type: string - accountHolderSurname: - description: The surname (last name) of the account holder - example: Doe - type: string - accountHolderCity: - description: The city where the account holder resides - example: New York - type: string - accountHolderCountry: - description: The country where the account holder resides (ISO 3166-1 alpha-2 - code) - example: US - type: string - accountHolderAddress1: - description: The primary address line of the account holder - example: 123 Wall Street - type: string - accountHolderAddress2: - description: The secondary address line of the account holder (optional) - example: Suite 100 - type: string - accountHolderDistrict: - description: The district or region where the account holder resides - example: Manhattan - type: string - accountHolderPostalCode: - description: The postal code of the account holder's address - example: "10005" - type: string - abaRoutingNumber: - description: The ABA routing number for the bank - example: "021000021" - type: string - abaAccountNumber: - description: The account number at the bank - example: "1234567890" - type: string - abaCountry: - description: The country for the ABA transfer (ISO 3166-1 alpha-2 code) - example: US - type: string - required: - - abaAccountNumber - - abaCountry - - abaRoutingNumber - - accountHolderAddress1 - - accountHolderCity - - accountHolderCountry - - accountHolderGivenName - - accountHolderPostalCode - type: object - SpeiBasicPaymentInfo: - description: Basic SPEI payment information for Mexican bank transfers - properties: - speiClabe: - description: The CLABE (Clave Bancaria Estandarizada) number for SPEI transfers - example: "012180001234567890" - type: string - speiName: - description: The name associated with the SPEI account - example: Juan Pérez - type: string - required: - - speiClabe - type: object - SpeiAdvancedPaymentInfo: - description: Advanced SPEI payment information for Mexican bank transfers with - full details - properties: - rail: - description: The payment rail type for SPEI transfers - enum: - - SPEI - example: SPEI - type: string - addressingSystem: - description: The addressing system used for SPEI transfers - enum: - - CLABE - example: CLABE - type: string - accountHolderGivenName: - description: The given name (first name) of the account holder - example: Juan - type: string - accountHolderSurname: - description: The surname (last name) of the account holder - example: Pérez - type: string - country: - description: The country for the transfer (ISO 3166-1 alpha-2 code) - example: MX - type: string - bankName: - description: The name of the bank - example: Banco Nacional de México - type: string - beneficiaryRfc: - description: The RFC (Registro Federal de Contribuyentes) of the beneficiary - example: PERJ800101ABC - type: string - senderDocumentId: - description: The document ID of the sender - example: CURP123456789 - type: string - clabe: - description: The CLABE (Clave Bancaria Estandarizada) number - example: "012180001234567890" - type: string - required: - - accountHolderGivenName - - accountHolderSurname - - addressingSystem - - clabe - - country - - rail - type: object - PixPaymentInfo: - description: PIX payment information for Brazilian instant payments - properties: - rail: - description: The payment rail type for PIX transfers - enum: - - PIX - example: PIX - type: string - addressingSystem: - description: The addressing system used for PIX transfers - enum: - - PIX - example: PIX - type: string - accountHolderGivenName: - description: The given name (first name) of the account holder - example: João - type: string - accountHolderSurname: - description: The surname (last name) of the account holder - example: Silva - type: string - country: - description: The country for the transfer (ISO 3166-1 alpha-2 code) - example: BR - type: string - pixKey: - description: The PIX key used for the transfer - example: joao.silva@email.com - type: string - bankName: - description: The name of the bank - example: Banco do Brasil - type: string - bankCode: - description: The bank code (ISPB - Identificador do Sistema de Pagamentos - Brasileiros) - example: "00000000" - type: string - keyType: - description: The type of PIX key being used - enum: - - CPF - - CNPJ - - EMAIL - - PHONE - - RANDOM - example: EMAIL - type: string - required: - - accountHolderGivenName - - accountHolderSurname - - addressingSystem - - country - - keyType - - pixKey - - rail - type: object - SepaPaymentInfo: - description: SEPA payment information for European Single Euro Payments Area - transfers - properties: - rail: - description: The payment rail type for SEPA transfers - enum: - - SEPA - example: SEPA - type: string - addressingSystem: - description: The addressing system used for SEPA transfers - enum: - - IBAN - example: IBAN - type: string - accountHolderGivenName: - description: The given name (first name) of the account holder - example: Marie - type: string - accountHolderSurname: - description: The surname (last name) of the account holder - example: Dupont - type: string - accountHolderCountry: - description: The country where the account holder resides (ISO 3166-1 alpha-2 - code) - example: FR - type: string - accountHolderAddress: - description: The address of the account holder - example: 123 Rue de la Paix - type: string - iban: - description: The International Bank Account Number (IBAN) - example: FR1420041010050500013M02606 - type: string - country: - description: The country for the transfer (ISO 3166-1 alpha-2 code) - example: FR - type: string - bic: - description: The Bank Identifier Code (BIC/SWIFT code) - example: BNPAFRPP - type: string - bankName: - description: The name of the bank - example: BNP Paribas - type: string - bankBranch: - description: The bank branch information - example: Paris Central - type: string - bankAddress: - description: The address of the bank - example: "16 Boulevard des Italiens, 75009 Paris" - type: string - purposeCode: - description: The purpose code for the transfer - example: SALA - type: string - taxId: - description: The tax identification number - example: "1234567890123" - type: string - required: - - accountHolderGivenName - - accountHolderSurname - - addressingSystem - - country - - iban - - rail - type: object - AchPaymentInfo: - description: ACH payment information for US Automated Clearing House transfers - properties: - rail: - description: The payment rail type for ACH transfers - enum: - - ACH - example: ACH - type: string - addressingSystem: - description: The addressing system used for ACH transfers - enum: - - ACH - example: ACH - type: string - accountHolderGivenName: - description: The given name (first name) of the account holder - example: John - type: string - accountHolderSurname: - description: The surname (last name) of the account holder - example: Smith - type: string - country: - description: The country for the transfer (ISO 3166-1 alpha-2 code) - example: US - type: string - accountNumber: - description: The bank account number - example: "1234567890" - type: string - routingNumber: - description: The bank routing number (ABA routing number) - example: "021000021" - type: string - accountType: - description: The type of bank account - enum: - - CHECKING - - SAVINGS - example: CHECKING - type: string - required: - - accountHolderGivenName - - accountHolderSurname - - accountNumber - - accountType - - addressingSystem - - country - - rail - - routingNumber - type: object - UsWirePaymentInfo: - description: US Wire payment information for US domestic wire transfers - properties: - rail: - description: The payment rail type for US wire transfers - enum: - - US_WIRE - example: US_WIRE - type: string - addressingSystem: - description: The addressing system used for US wire transfers - enum: - - ABA - example: ABA - type: string - accountHolderGivenName: - description: The given name (first name) of the account holder - example: John - type: string - accountHolderSurname: - description: The surname (last name) of the account holder - example: Smith - type: string - country: - description: The country for the transfer (ISO 3166-1 alpha-2 code) - example: US - type: string - accountNumber: - description: The bank account number - example: "1234567890" - type: string - routingNumber: - description: The bank routing number (ABA routing number) - example: "021000021" - type: string - swiftCode: - description: The SWIFT/BIC code of the bank - example: CHASUS33 - type: string - bankName: - description: The name of the bank - example: JPMorgan Chase Bank - type: string - bankAddressLine: - description: The street address of the bank - example: 270 Park Avenue - type: string - bankAddressCity: - description: The city where the bank is located - example: New York - type: string - bankAddressState: - description: The state where the bank is located - example: NY - type: string - bankAddressCountry: - description: The country where the bank is located (ISO 3166-1 alpha-2 code) - example: US - type: string - bankAddressPostalCode: - description: The postal code of the bank's address - example: "10017" - type: string - branchNumber: - description: The branch number of the bank - example: "001" - type: string - required: - - accountHolderGivenName - - accountHolderSurname - - accountNumber - - addressingSystem - - bankAddressCity - - bankAddressCountry - - bankAddressLine - - bankAddressPostalCode - - bankName - - country - - rail - - routingNumber - - swiftCode - type: object - MomoPaymentInfo: - description: Mobile Money (MOMO) payment information for African mobile payment - services - properties: - rail: - description: The payment rail type for mobile money transfers - enum: - - MOMO - example: MOMO - type: string - addressingSystem: - description: The addressing system used for mobile money transfers - enum: - - MOMO - example: MOMO - type: string - accountHolderGivenName: - description: The given name (first name) of the account holder - example: Kwame - type: string - accountHolderSurname: - description: The surname (last name) of the account holder - example: Asante - type: string - country: - description: The country for the transfer (ISO 3166-1 alpha-2 code) - example: GH - type: string - mobilePhoneNumber: - description: The mobile phone number associated with the mobile money account - example: "+233241234567" - type: string - provider: - description: The mobile money service provider - enum: - - M_PESA - - AIRTEL - - MTN - - TIGO - example: MTN - type: string - beneficiaryDocumentId: - description: The document ID of the beneficiary - example: GHA-123456789-0 - type: string - beneficiaryRelationship: - description: The relationship between sender and beneficiary - example: Family - type: string - required: - - accountHolderGivenName - - accountHolderSurname - - addressingSystem - - country - - mobilePhoneNumber - - provider - - rail - type: object - LbtPaymentInfo: - description: LBT (Lebanese Bank Transfer) payment information for Lebanese bank - transfers - properties: - rail: - description: The payment rail type for Lebanese bank transfers - enum: - - LBT - example: LBT - type: string - addressingSystem: - description: The addressing system used for Lebanese bank transfers (Bank - Account Number) - enum: - - BAN - example: BAN - type: string - accountHolderGivenName: - description: The given name (first name) of the account holder - example: Ahmad - type: string - accountHolderSurname: - description: The surname (last name) of the account holder - example: Khalil - type: string - country: - description: The country for the transfer (ISO 3166-1 alpha-2 code) - example: LB - type: string - accountNumber: - description: The bank account number - example: "123456789012" - type: string - bankName: - description: The name of the bank - example: Bank of Beirut - type: string - bankCode: - description: The bank code or identifier - example: "001" - type: string - required: - - accountHolderGivenName - - accountHolderSurname - - accountNumber - - addressingSystem - - bankCode - - bankName - - country - - rail - type: object - AdditionalInfoRequest: - description: External wallet request with additional payment information for - various payment rails - properties: - additionalInfo: - $ref: "#/components/schemas/AdditionalInfoRequest_additionalInfo" - required: - - additionalInfo - type: object - AddAssetToExternalWalletRequest: - description: Request schema for adding an asset to an external wallet - oneOf: - - $ref: "#/components/schemas/BasicAddressRequest" - - $ref: "#/components/schemas/AdditionalInfoRequest" - GetContractsResponse: - items: - $ref: "#/components/schemas/UnmanagedWallet" - type: array - CreateContractRequest: - example: - name: name - properties: - name: - description: the contract's display name - type: string - type: object - AddContractAssetRequest: - example: - address: address - tag: tag - properties: - address: - description: The contract's address (or xpub) of the wallet - type: string - tag: - description: "The destination tag, for XRP wallets" - type: string - required: - - address - type: object - AssetTypeResponse: - example: - nativeAsset: nativeAsset - decimals: 0.8008281904610115 - name: name - contractAddress: contractAddress - id: id - type: type - properties: - id: - type: string - name: - type: string - type: - type: string - contractAddress: - type: string - nativeAsset: - type: string - decimals: - type: number - required: - - id - - name - - type - type: object - GetSupportedAssetsResponse: - items: - $ref: "#/components/schemas/AssetTypeResponse" - type: array - AssetClass: - enum: - - NATIVE - - FT - - FIAT - - NFT - - SFT - example: FT - type: string - AssetScope: - description: The scope of the asset - enum: - - GLOBAL - - LOCAL - example: GLOBAL - type: string - AssetDetailsOnchain: - example: - standards: - - ERC20 - symbol: USDT - address: 0xdAC17F958D2ee523a2206206994597C13D831ec7 - decimals: 6 - name: Tether USD - properties: - symbol: - description: The asset symbol - example: USDT - type: string - name: - description: The asset name - example: Tether USD - type: string - address: - description: The asset address - example: 0xdAC17F958D2ee523a2206206994597C13D831ec7 - type: string - decimals: - description: Number of decimals - example: 6 - type: number - standards: - description: Supported standards - example: - - ERC20 - items: - type: string - type: array - required: - - decimals - - name - - symbol - type: object - AssetMedia: - example: - attributes: - monochrome: true - type: image/svg+xml - url: https://example.com/image.png - properties: - url: - description: Media URL - example: https://example.com/image.png - type: string - type: - description: Media type - enum: - - image/svg+xml - - image/png - example: image/svg+xml - type: string - attributes: - $ref: "#/components/schemas/AssetMedia_attributes" - required: - - type - - url - type: object - AssetNote: - example: - text: Pay attention to gas fees - userName: Test test - userId: 056776ab-9efa-4219-9820-9ece0cc4d90d - updatedAt: 2025-06-08T19:42:49Z - properties: - text: - description: Note content - example: Pay attention to gas fees - type: string - userId: - description: Who updated the note (uuid) - example: 056776ab-9efa-4219-9820-9ece0cc4d90d - format: uuid - type: string - userName: - description: User name - example: Test test - type: string - updatedAt: - description: ISO Timestamp when last updated - example: 2025-06-08T19:42:49Z - format: date-time - type: string - required: - - text - - updatedAt - - userId - - userName - type: object - AssetFeature: - description: Asset feature - enum: - - STABLECOIN - example: STABLECOIN - type: string - AssetDetailsMetadata: - example: - note: - text: Pay attention to gas fees - userName: Test test - userId: 056776ab-9efa-4219-9820-9ece0cc4d90d - updatedAt: 2025-06-08T19:42:49Z - features: - - STABLECOIN - - STABLECOIN - website: https://example.org - scope: GLOBAL - deprecated: false - verified: false - deprecationReferralId: 056776ab-9efa-4219-9820-9ece0cc4d90d - media: - - attributes: - monochrome: true - type: image/svg+xml - url: https://example.com/image.png - - attributes: - monochrome: true - type: image/svg+xml - url: https://example.com/image.png - properties: - scope: - $ref: "#/components/schemas/AssetScope" - verified: - description: Is asset verified by Fireblocks - example: false - type: boolean - deprecated: - description: Is asset deprecated - example: false - type: boolean - deprecationReferralId: - description: New asset ID replacement - example: 056776ab-9efa-4219-9820-9ece0cc4d90d - type: string - website: - description: Vendor’s website - example: https://example.org - type: string - media: - description: Asset’s media - items: - $ref: "#/components/schemas/AssetMedia" - type: array - note: - $ref: "#/components/schemas/AssetNote" - features: - description: Asset features - items: - $ref: "#/components/schemas/AssetFeature" - type: array - required: - - deprecated - - scope - - verified - type: object - Asset: - example: - displaySymbol: USDT - metadata: - note: - text: Pay attention to gas fees - userName: Test test - userId: 056776ab-9efa-4219-9820-9ece0cc4d90d - updatedAt: 2025-06-08T19:42:49Z - features: - - STABLECOIN - - STABLECOIN - website: https://example.org - scope: GLOBAL - deprecated: false - verified: false - deprecationReferralId: 056776ab-9efa-4219-9820-9ece0cc4d90d - media: - - attributes: - monochrome: true - type: image/svg+xml - url: https://example.com/image.png - - attributes: - monochrome: true - type: image/svg+xml - url: https://example.com/image.png - displayName: Tether USD - legacyId: USDT_ERC20 - id: 9f9f7062-df90-4fc0-8697-96685184358d - assetClass: FT - blockchainId: e85208ff-3b15-44e9-af14-0ed0280b2a15 - onchain: - standards: - - ERC20 - symbol: USDT - address: 0xdAC17F958D2ee523a2206206994597C13D831ec7 - decimals: 6 - name: Tether USD - properties: - id: - description: The ID of the asset - example: 9f9f7062-df90-4fc0-8697-96685184358d - type: string - legacyId: - description: The Legacy ID of the asset - example: USDT_ERC20 - type: string - blockchainId: - description: The ID of the asset's blockchain - example: e85208ff-3b15-44e9-af14-0ed0280b2a15 - type: string - displayName: - description: Asset's display name - example: Tether USD - type: string - displaySymbol: - description: Asset's display symbol - example: USDT - type: string - assetClass: - $ref: "#/components/schemas/AssetClass" - onchain: - $ref: "#/components/schemas/AssetDetailsOnchain" - metadata: - $ref: "#/components/schemas/AssetDetailsMetadata" - required: - - assetClass - - displayName - - displaySymbol - - id - - legacyId - - metadata - type: object - ListAssetsResponse: - example: - next: eJ0eXAiOiJKV1QiLCJhbGcOiJIUzI1NiJ9 - data: - - displaySymbol: USDT - metadata: - note: - text: Pay attention to gas fees - userName: Test test - userId: 056776ab-9efa-4219-9820-9ece0cc4d90d - updatedAt: 2025-06-08T19:42:49Z - features: - - STABLECOIN - - STABLECOIN - website: https://example.org - scope: GLOBAL - deprecated: false - verified: false - deprecationReferralId: 056776ab-9efa-4219-9820-9ece0cc4d90d - media: - - attributes: - monochrome: true - type: image/svg+xml - url: https://example.com/image.png - - attributes: - monochrome: true - type: image/svg+xml - url: https://example.com/image.png - displayName: Tether USD - legacyId: USDT_ERC20 - id: 9f9f7062-df90-4fc0-8697-96685184358d - assetClass: FT - blockchainId: e85208ff-3b15-44e9-af14-0ed0280b2a15 - onchain: - standards: - - ERC20 - symbol: USDT - address: 0xdAC17F958D2ee523a2206206994597C13D831ec7 - decimals: 6 - name: Tether USD - - displaySymbol: USDT - metadata: - note: - text: Pay attention to gas fees - userName: Test test - userId: 056776ab-9efa-4219-9820-9ece0cc4d90d - updatedAt: 2025-06-08T19:42:49Z - features: - - STABLECOIN - - STABLECOIN - website: https://example.org - scope: GLOBAL - deprecated: false - verified: false - deprecationReferralId: 056776ab-9efa-4219-9820-9ece0cc4d90d - media: - - attributes: - monochrome: true - type: image/svg+xml - url: https://example.com/image.png - - attributes: - monochrome: true - type: image/svg+xml - url: https://example.com/image.png - displayName: Tether USD - legacyId: USDT_ERC20 - id: 9f9f7062-df90-4fc0-8697-96685184358d - assetClass: FT - blockchainId: e85208ff-3b15-44e9-af14-0ed0280b2a15 - onchain: - standards: - - ERC20 - symbol: USDT - address: 0xdAC17F958D2ee523a2206206994597C13D831ec7 - decimals: 6 - name: Tether USD - properties: - data: - description: The data of the current page - items: - $ref: "#/components/schemas/Asset" - type: array - next: - description: Cursor to the next page - example: eJ0eXAiOiJKV1QiLCJhbGcOiJIUzI1NiJ9 - nullable: true - type: string - required: - - data - - next - type: object - AssetInternalServerErrorResponse: - example: - code: 3005 - message: Internal server error - properties: - message: - description: Internal server error code - example: Internal server error - type: string - code: - description: Error code - example: 3005 - type: number - required: - - code - - message - type: object - RegisterNewAssetRequest: - example: - symbol: TST3 - address: 0xe7A9as1oa38bc4da0248s179E30aa94CcF453991 - blockchainId: "(ETH, ETH_TEST5, MATIC_POLYGON)" - properties: - blockchainId: - description: Native asset ID of the blockchain - example: "(ETH, ETH_TEST5, MATIC_POLYGON)" - type: string - address: - 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 - example: 0xe7A9as1oa38bc4da0248s179E30aa94CcF453991 - type: string - symbol: - description: "Required for Stellar only, asset code is expected." - example: TST3 - type: string - required: - - address - - blockchainId - type: object - AssetOnchain: - example: - standard: ERC20 - symbol: TST3 - address: 0xe7A9as1oa38bc4da0248s179E30aa94CcF453991 - decimals: 18 - name: Test 3 - properties: - symbol: - description: The asset symbol - example: TST3 - type: string - name: - description: The asset name - example: Test 3 - type: string - address: - description: The asset address - example: 0xe7A9as1oa38bc4da0248s179E30aa94CcF453991 - type: string - decimals: - description: Number of decimals - example: 18 - type: number - standard: - description: The asset standard - example: ERC20 - type: string - required: - - decimals - - name - - symbol - type: object - AssetMetadata: - example: - scope: Global - deprecated: false - properties: - scope: - description: The scope of the asset - enum: - - Global - - Local - example: Global - type: string - deprecated: - description: Is asset deprecated - example: false - type: boolean - required: - - deprecated - - scope - type: object - AssetResponse: - example: - metadata: - scope: Global - deprecated: false - legacyId: TST3_ETH - assetClass: FT - onchain: - standard: ERC20 - symbol: TST3 - address: 0xe7A9as1oa38bc4da0248s179E30aa94CcF453991 - decimals: 18 - name: Test 3 - properties: - legacyId: - example: TST3_ETH - type: string - assetClass: - enum: - - NATIVE - - FT - - NFT - - SFT - example: FT - type: string - onchain: - $ref: "#/components/schemas/AssetOnchain" - metadata: - $ref: "#/components/schemas/AssetMetadata" - required: - - assetClass - - legacyId - - metadata - - onchain - type: object - AssetBadRequestErrorResponse: - example: - code: 3001 - message: Listing an asset on the requested blockchain is not supported - properties: - message: - description: Bad request error code - example: Listing an asset on the requested blockchain is not supported - type: string - code: - description: Error code - example: 3001 - type: number - required: - - code - - message - type: object - AssetForbiddenErrorResponse: - example: - code: 3006 - message: Asset creation quota reached - properties: - message: - description: Forbidden error code - example: Asset creation quota reached - type: string - code: - description: Error code - example: 3006 - type: number - required: - - code - - message - type: object - TokenInfoNotFoundErrorResponse: - example: - code: 3009 - message: "Invalid address, could not get asset information" - properties: - message: - description: Not found error code - example: "Invalid address, could not get asset information" - type: string - code: - description: Error code - example: 3009 - type: number - required: - - code - - message - type: object - AssetConflictErrorResponse: - example: - code: 3002 - message: Asset already listed - properties: - message: - description: Conflict error code - example: Asset already listed - type: string - code: - description: Error code - example: 3002 - type: number - required: - - code - - message - type: object - AssetNotFoundErrorResponse: - example: - code: 1504 - message: Asset with specified ID not found - properties: - message: - description: Not found error code - example: Asset with specified ID not found - type: string - code: - description: Error code - example: 1504 - type: number - required: - - code - - message - type: object - AssetNoteRequest: - example: - text: Pay attention to ETH gas fees - properties: - text: - description: Asset user note - example: Pay attention to ETH gas fees - type: string - type: object - AssetMetadataRequest: - example: - note: - text: Pay attention to ETH gas fees - properties: - note: - $ref: "#/components/schemas/AssetNoteRequest" - type: object - UpdateAssetUserMetadataRequest: - example: - metadata: - note: - text: Pay attention to ETH gas fees - properties: - metadata: - $ref: "#/components/schemas/AssetMetadataRequest" - type: object - SetAssetPriceRequest: - example: - price: 3100 - currency: USD - properties: - currency: - description: Currency (according to ISO 4217 currency codes) - example: USD - type: string - price: - description: Price in currency - example: 3100 - type: number - required: - - currency - - price - type: object - AssetPriceResponse: - example: - price: 3500 - legacyId: ETH - currency: USD - lastUpdateAt: 1716898542 - source: PRIVATE - properties: - legacyId: - description: The ID of the asset - example: ETH - type: string - lastUpdateAt: - description: Time of last price update - example: 1716898542 - type: number - currency: - description: Currency (according to ISO 4217 currency codes) - example: USD - type: string - price: - description: Price in currency - example: 3500 - type: number - source: - description: Source of the price data - enum: - - PUBLIC - - PRIVATE - example: PRIVATE - type: string - required: - - currency - - lastUpdateAt - - legacyId - - price - - source - type: object - AssetPriceForbiddenErrorResponse: - example: - code: 3002 - message: Tenant is not allowed to update asset - properties: - message: - description: Forbidden error message - example: Tenant is not allowed to update asset - type: string - code: - description: Error code - example: 3002 - type: number - required: - - code - - message - type: object - AssetPriceNotFoundErrorResponse: - example: - code: 3001 - message: Currency not found - properties: - message: - description: Not found error message - example: Currency not found - type: string - code: - description: Error code - example: 3001 - type: number - required: - - code - - message - type: object - BlockchainOnchain: - example: - protocol: EVM - test: false - chainId: "1" - signingAlgo: ECDSA_SECP256K1 - properties: - protocol: - description: The protocol of the blockchain - example: EVM - type: string - chainId: - description: Network/chain ID - example: "1" - type: string - test: - description: Is test blockchain - example: false - type: boolean - signingAlgo: - description: Signing alghorithm - enum: - - ECDSA_SECP256K1 - - EDDSA_ED25519 - example: ECDSA_SECP256K1 - type: string - required: - - protocol - - signingAlgo - - test - type: object - BlockchainMedia: - example: - type: image/svg+xml - url: https://example.com/image.png - properties: - url: - description: Media URL - example: https://example.com/image.png - type: string - type: - description: Media type - enum: - - image/svg+xml - - image/png - example: image/svg+xml - type: string - required: - - type - - url - type: object - BlockchainExplorer: - example: - address: "https://example.com/address/{address}" - tx: "https://example.com/tx/{tx}" - base: https://example.com - token: "https://example.com/nft/{contract}/{tokenId}" - properties: - base: - description: Explorer base url - example: https://example.com - type: string - address: - description: Explorer address url - example: "https://example.com/address/{address}" - type: string - tx: - description: Explorer transaction url - example: "https://example.com/tx/{tx}" - type: string - token: - description: Explorer token url - example: "https://example.com/nft/{contract}/{tokenId}" - type: string - required: - - base - type: object - BlockchainMetadata: - example: - scope: GLOBAL - deprecated: false - explorer: - address: "https://example.com/address/{address}" - tx: "https://example.com/tx/{tx}" - base: https://example.com - token: "https://example.com/nft/{contract}/{tokenId}" - media: - - type: image/svg+xml - url: https://example.com/image.png - - type: image/svg+xml - url: https://example.com/image.png - properties: - scope: - $ref: "#/components/schemas/AssetScope" - deprecated: - description: Is blockchain deprecated - example: false - type: boolean - media: - description: Blockchain’s media - items: - $ref: "#/components/schemas/BlockchainMedia" - type: array - explorer: - $ref: "#/components/schemas/BlockchainExplorer" - required: - - deprecated - - scope - type: object - BlockchainResponse: - example: - nativeAssetId: 9f9f7062-df90-4fc0-8697-96685184356a - metadata: - scope: GLOBAL - deprecated: false - explorer: - address: "https://example.com/address/{address}" - tx: "https://example.com/tx/{tx}" - base: https://example.com - token: "https://example.com/nft/{contract}/{tokenId}" - media: - - type: image/svg+xml - url: https://example.com/image.png - - type: image/svg+xml - url: https://example.com/image.png - displayName: Ethereum - legacyId: ETH - id: 9f9f7062-df90-4fc0-8697-96685184357b - onchain: - protocol: EVM - test: false - chainId: "1" - signingAlgo: ECDSA_SECP256K1 - properties: - id: - description: The ID of the blockchain - example: 9f9f7062-df90-4fc0-8697-96685184357b - type: string - legacyId: - description: The old blockchain ID representation of the blockchain - example: ETH - type: string - displayName: - description: The name of the blockchain - example: Ethereum - type: string - nativeAssetId: - description: Native asset ID of this blockchain - example: 9f9f7062-df90-4fc0-8697-96685184356a - type: string - onchain: - $ref: "#/components/schemas/BlockchainOnchain" - metadata: - $ref: "#/components/schemas/BlockchainMetadata" - required: - - displayName - - id - - legacyId - - metadata - - nativeAssetId - - onchain - type: object - ListBlockchainsResponse: - example: - next: eJ0eXAiOiJKV1QiLCJhbGcOiJIUzI1NiJ9 - data: - - nativeAssetId: 9f9f7062-df90-4fc0-8697-96685184356a - metadata: - scope: GLOBAL - deprecated: false - explorer: - address: "https://example.com/address/{address}" - tx: "https://example.com/tx/{tx}" - base: https://example.com - token: "https://example.com/nft/{contract}/{tokenId}" - media: - - type: image/svg+xml - url: https://example.com/image.png - - type: image/svg+xml - url: https://example.com/image.png - displayName: Ethereum - legacyId: ETH - id: 9f9f7062-df90-4fc0-8697-96685184357b - onchain: - protocol: EVM - test: false - chainId: "1" - signingAlgo: ECDSA_SECP256K1 - - nativeAssetId: 9f9f7062-df90-4fc0-8697-96685184356a - metadata: - scope: GLOBAL - deprecated: false - explorer: - address: "https://example.com/address/{address}" - tx: "https://example.com/tx/{tx}" - base: https://example.com - token: "https://example.com/nft/{contract}/{tokenId}" - media: - - type: image/svg+xml - url: https://example.com/image.png - - type: image/svg+xml - url: https://example.com/image.png - displayName: Ethereum - legacyId: ETH - id: 9f9f7062-df90-4fc0-8697-96685184357b - onchain: - protocol: EVM - test: false - chainId: "1" - signingAlgo: ECDSA_SECP256K1 - properties: - data: - description: The data of the current page - items: - $ref: "#/components/schemas/BlockchainResponse" - type: array - next: - description: Cursor to the next page - example: eJ0eXAiOiJKV1QiLCJhbGcOiJIUzI1NiJ9 - nullable: true - type: string - required: - - data - - next - type: object - BlockchainNotFoundErrorResponse: - example: - code: 1505 - message: Blockchain with specified ID not found - properties: - message: - description: Not found error code - example: Blockchain with specified ID not found - type: string - code: - description: Error code - example: 1505 - type: number - required: - - code - - message - type: object - GetTransactionOperation: - description: | - * `TRANSFER` - Transfers funds from one account to another. UTXO blockchains allow multi-input and multi-output transfers. All other blockchains allow transfers with one source address and one destination address. - * `MINT` - Mints new tokens. Supported for Stellar, Ripple and EVM-based blockchains. - * `BURN` - Burns tokens. Supported for Stellar, Ripple and EVM-based blockchains. - * `CONTRACT_CALL` - Calls a smart contract method for web3 operations on any EVM blockchain. The Fireblocks [development libraries](https://developers.fireblocks.com/docs/ethereum-development#convenience-libraries) are recommended for building contract call transactions. - * `TYPED_MESSAGE` - An off-chain message in either Ethereum Personal Message or EIP712 format. Use it to sign specific readable messages that are not actual transactions. [Learn more about typed messages](https://developers.fireblocks.com/docs/typed-message-signing). - * `RAW` - An off-chain message with no predefined format. Use it to sign any message with your private key, including protocols such as blockchains and custom transaction types that are not natively supported by Fireblocks. [Learn more about raw signing transactions.](https://developers.fireblocks.com/docs/raw-message-signing) - * `ENABLE_ASSET` - Algorand, DigitalBits, Solana, and Stellar require an on-chain transaction to create an asset wallet and enable the deposit address. This transaction is automatically created when adding assets on these blockchains at a vault account. - * `STAKE` - Assign assets to a staking pool managed by a staking validator. Supported for Stellar and EVM-based blockchains. This transaction is automatically created when performing staking operations. - * `UNSTAKE` - Remove assets from a staking pool managed by a staking validator. Supported for Stellar and EVM-based blockchains. This transaction is automatically created when performing staking operations. - * `WITHDRAW` - Transfer assets from a dedicated staking vault account to another address. Supported for Stellar and EVM-based blockchains. This transaction is automatically created when performing staking operations. - - **Note:** Fireblocks will rename this type from `WITHDRAW` to a different type name soon. There will be a 7-day notice regarding the new type name. - - * `SUPPLY_TO_COMPOUND` - Deprecated since April 1st, 2023. Older transactions may have this as their operation, in case users in the workspace have used the direct integration between Fireblocks and the Compound DeFI protocol. - * `REDEEM_FROM_COMPOUND` - Deprecated since April 1st, 2023. Older transactions may have this as their operation, in case users in the workspace have used the direct integration between Fireblocks and the Compound DeFI protocol. - * `PROGRAM_CALL` - In Solana refers to invoking on-chain programs (smart contracts) to execute transactions and interact with the blockchain. - * `APPROVE` - Enables the approve function for a smart contract or wallet to withdraw from a designated wallet. [Learn more](https://support.fireblocks.io/hc/en-us/articles/4404616097426-Amount-Cap-for-Approve-transactions). - enum: - - TRANSFER - - BURN - - CONTRACT_CALL - - MINT - - RAW - - TYPED_MESSAGE - - ENABLE_ASSET - - STAKE - - UNSTAKE - - WITHDRAW - - REDEEM_FROM_COMPOUND - - SUPPLY_TO_COMPOUND - - PROGRAM_CALL - - APPROVE - type: string - TransferPeerPathType: - enum: - - VAULT_ACCOUNT - - EXCHANGE_ACCOUNT - - INTERNAL_WALLET - - EXTERNAL_WALLET - - CONTRACT - - NETWORK_CONNECTION - - FIAT_ACCOUNT - - COMPOUND - - GAS_STATION - - ONE_TIME_ADDRESS - - UNKNOWN - - END_USER_WALLET - - PROGRAM_CALL - - MULTI_DESTINATION - type: string - SourceTransferPeerPathResponse: - description: Source of the transaction. - example: - walletId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - tradingAccount: tradingAccount - name: name - subType: subType - id: id - type: VAULT_ACCOUNT - properties: - type: - $ref: "#/components/schemas/TransferPeerPathType" - subType: - description: "In case the type is set to `EXCHANGE_ACCOUNT` or `FIAT_ACCOUNT`,\ - \ the specific exchange vendor name or fiat vendor name. In case the type\ - \ is set to `INTERNAL_WALLET` or `EXTERNAL_WALLET`, the subType is set\ - \ to `Internal` or `External`." - type: string - id: - 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/getpagedvaultaccounts),\ - \ [listing exchange account](https://developers.fireblocks.com/reference/getexchangeaccounts),\ - \ [listing fiat accounts](https://developers.fireblocks.com/reference/getfiataccounts),\ - \ [listing internal wallets](https://developers.fireblocks.com/reference/getinternalwallets),\ - \ [listing external wallets](https://developers.fireblocks.com/reference/getexternalwallets),\ - \ [listing network connections](https://developers.fireblocks.com/reference/getnetworkconnections).\ - \ For the other types, this parameter is not needed." - nullable: true - type: string - name: - description: The name of the peer. - type: string - walletId: - format: uuid - type: string - tradingAccount: - description: "If this transaction is an exchange internal transfer, this\ - \ field will be populated with the type of that trading account." - nullable: true - type: string - required: - - type - type: object - DestinationTransferPeerPathResponse: - description: |- - Destination of the transaction. - - **Note:** In case the transaction is sent to multiple destinations, the `destinations` parameter is be used instead of this. - example: - walletId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - tradingAccount: tradingAccount - name: name - subType: subType - id: id - type: null - properties: - type: - $ref: "#/components/schemas/TransferPeerPathType" - subType: - description: "In case the type is set to `EXCHANGE_ACCOUNT` or `FIAT_ACCOUNT`,\ - \ the specific exchange vendor name or fiat vendor name.In case the type\ - \ is set to `INTERNAL_WALLET` or `EXTERNAL_WALLET`, the subType is set\ - \ to `Internal` or `External`." - type: string - id: - 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/getpagedvaultaccounts),\ - \ [listing exchange account](https://developers.fireblocks.com/reference/getexchangeaccounts),\ - \ [listing fiat accounts](https://developers.fireblocks.com/reference/getfiataccounts),\ - \ [listing internal wallets](https://developers.fireblocks.com/reference/getinternalwallets),\ - \ [listing external wallets](https://developers.fireblocks.com/reference/getexternalwallets),\ - \ [listing network connections](https://developers.fireblocks.com/reference/getnetworkconnections).\ - \ For the other types, this parameter is not needed." - nullable: true - type: string - name: - description: The name of the peer. - type: string - walletId: - format: uuid - type: string - tradingAccount: - description: "If this transaction is an exchange internal transfer, this\ - \ field will be populated with the type of that trading account." - nullable: true - type: string - required: - - type - type: object - AmlScreeningResult: - description: The result of the AML screening. - example: - provider: provider - payload: "{}" - properties: - provider: - type: string - payload: - type: object - type: object - AuthorizationGroups: - example: - th: 0.8008281904610115 - users: - key: PENDING_AUTHORIZATION - properties: - th: - type: number - users: - additionalProperties: - enum: - - PENDING_AUTHORIZATION - - APPROVED - - REJECTED - - NA - type: string - type: object - type: object - AuthorizationInfo: - description: "The information about your [Transaction Authorization Policy (TAP).](https://developers.fireblocks.com/docs/capabilities#transaction-authorization-policy-tap)" - example: - allowOperatorAsAuthorizer: true - groups: - - th: 0.8008281904610115 - users: - key: PENDING_AUTHORIZATION - - th: 0.8008281904610115 - users: - key: PENDING_AUTHORIZATION - logic: AND - properties: - allowOperatorAsAuthorizer: - type: boolean - logic: - enum: - - AND - - OR - type: string - groups: - items: - $ref: "#/components/schemas/AuthorizationGroups" - type: array - type: object - TransactionResponseDestination: - example: - amount: amount - amountUSD: amountUSD - authorizationInfo: - allowOperatorAsAuthorizer: true - groups: - - th: 0.8008281904610115 - users: - key: PENDING_AUTHORIZATION - - th: 0.8008281904610115 - users: - key: PENDING_AUTHORIZATION - logic: AND - destinationAddress: "" - amlScreeningResult: - provider: provider - payload: "{}" - destination: - walletId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - tradingAccount: tradingAccount - name: name - subType: subType - id: id - type: null - destinationAddressDescription: "" - properties: - destinationAddress: - description: Address where the asset was transferred. - destinationAddressDescription: - description: Description of the address. - amount: - description: The amount to be sent to this destination. - type: string - amountUSD: - description: The USD value of the requested amount. - type: string - amlScreeningResult: - $ref: "#/components/schemas/AmlScreeningResult" - destination: - $ref: "#/components/schemas/DestinationTransferPeerPathResponse" - authorizationInfo: - $ref: "#/components/schemas/AuthorizationInfo" - type: object - AmountInfo: - description: The details of the requested amount to transfer. - example: - amount: amount - amountUSD: amountUSD - netAmount: netAmount - requestedAmount: requestedAmount - properties: - amount: - description: "If the transfer is a withdrawal from an exchange, the actual\ - \ amount that was requested to be transferred. Otherwise, the requested\ - \ amount." - type: string - requestedAmount: - description: The amount requested by the user. - type: string - netAmount: - description: "The net amount of the transaction, after fee deduction." - type: string - amountUSD: - description: The USD value of the requested amount. - type: string - type: object - FeeInfo: - description: Details of the transaction's fee. - example: - serviceFee: serviceFee - relayType: LOCAL - relayId: "1" - networkFee: networkFee - relayName: Tenant Name - feeUSD: "0.0013" - gasPrice: gasPrice - paidByRelay: true - properties: - networkFee: - description: The fee paid to the network - type: string - serviceFee: - description: The total fee deducted by the exchange from the actual requested - amount (serviceFee = amount - netAmount) - type: string - gasPrice: - type: string - paidByRelay: - description: Wether the fee was paid by the relay or not - example: true - type: boolean - relayType: - description: Wether the relay is the same tenant (LOCAL) or another tenant - (THIRD_PARTY) - enum: - - LOCAL - - THIRD_PARTY - example: LOCAL - type: string - relayId: - description: The vault account ID of the relay - example: "1" - type: string - relayName: - description: "The name of the tenant, only for THIRD_PARTY relays" - example: Tenant Name - type: string - feeUSD: - description: The USD value of the fee - example: "0.0013" - type: string - type: object - RewardInfo: - description: "This field is relevant only for Algorand transactions. Both `srcRewards`\ - \ and `destRewards` will appear only for Vault to Vault transactions, otherwise\ - \ you will receive only the Fireblocks’ side of the transaction." - example: - destRewards: destRewards - srcRewards: srcRewards - properties: - srcRewards: - type: string - destRewards: - type: string - type: object - NetworkRecord: - example: - amountUSD: amountUSD - destinationAddress: destinationAddress - sourceAddress: sourceAddress - netAmount: netAmount - networkFee: networkFee - destination: - walletId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - tradingAccount: tradingAccount - name: name - subType: subType - id: id - type: null - index: 6.027456183070403 - source: - walletId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - tradingAccount: tradingAccount - name: name - subType: subType - id: id - type: VAULT_ACCOUNT - type: type - isDropped: true - rewardInfo: - destRewards: destRewards - srcRewards: srcRewards - assetId: assetId - txHash: txHash - properties: - source: - $ref: "#/components/schemas/SourceTransferPeerPathResponse" - destination: - $ref: "#/components/schemas/DestinationTransferPeerPathResponse" - txHash: - type: string - networkFee: - type: string - assetId: - type: string - x-fb-entity: asset - netAmount: - description: "The net amount of the transaction, after fee deduction" - type: string - isDropped: - type: boolean - type: - type: string - destinationAddress: - type: string - sourceAddress: - type: string - amountUSD: - type: string - index: - type: number - rewardInfo: - $ref: "#/components/schemas/RewardInfo" - type: object - ComplianceScreeningResult: - example: - provider: provider - payload: "{}" - bypassReason: bypassReason - screeningStatus: COMPLETED - timestamp: 5.637376656633329 - properties: - provider: - type: string - payload: - description: | - 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. - type: object - bypassReason: - type: string - screeningStatus: - enum: - - COMPLETED - - PENDING - - BYPASSED - - FAILED - - FROZEN - type: string - timestamp: - format: date-time - type: number - type: object - ComplianceResultStatusesEnum: - description: Status of compliance result screening. - enum: - - Started - - NetworkConnectionAddressResolve - - ScreeningPrepare - - AMLStarted - - AMLCompleted - - AMLFailed - - AMLInBackground - - TRPreconditionChecks - - TRStarted - - TRCompleted - - TRFailed - - Completed - - IncomingStarted - - IncomingScreeningPrepare - - IncomingWaitForFirstConfirmation - - AMLIncomingStarted - - AMLIncomingCompleted - - AMLIncomingFailed - - AMLIncomingInBackground - - TRIncomingStarted - - TRIncomingCompleted - - TRIncomingFailed - - IncomingCompleted - type: string - AmlRegistrationResult: - example: - provider: provider - success: true - timestamp: 2.3021358869347655 - properties: - provider: - type: string - success: - type: boolean - timestamp: - type: number - type: object - ComplianceResults: - description: The result of the Compliance AML/Travel Rule screening. - example: - aml: - provider: provider - payload: "{}" - bypassReason: bypassReason - screeningStatus: COMPLETED - timestamp: 5.637376656633329 - amlRegistration: - provider: provider - success: true - timestamp: 2.3021358869347655 - amlList: - - provider: provider - payload: "{}" - bypassReason: bypassReason - screeningStatus: COMPLETED - timestamp: 5.637376656633329 - - provider: provider - payload: "{}" - bypassReason: bypassReason - screeningStatus: COMPLETED - timestamp: 5.637376656633329 - tr: - provider: provider - payload: "{}" - bypassReason: bypassReason - screeningStatus: COMPLETED - timestamp: 5.637376656633329 - status: Started - properties: - aml: - $ref: "#/components/schemas/ComplianceScreeningResult" - tr: - $ref: "#/components/schemas/ComplianceScreeningResult" - amlList: - description: The list of all results of the AML screening. - items: - $ref: "#/components/schemas/ComplianceScreeningResult" - type: array - status: - $ref: "#/components/schemas/ComplianceResultStatusesEnum" - amlRegistration: - $ref: "#/components/schemas/AmlRegistrationResult" - type: object - ExtraParameters: - description: | - Additional protocol / operation specific key-value parameters: - - For UTXO-based blockchain input selection, add the key `inputsSelection` with the value set the [input selection structure.](https://developers.fireblocks.com/reference/transaction-objects#inputsselection) The inputs can be retrieved from the [Retrieve Unspent Inputs endpoint.](https://developers.fireblocks.com/reference/get_vault-accounts-vaultaccountid-assetid-unspent-inputs) - - For `RAW` operations, add the key `rawMessageData` with the value set to the [raw message data structure.](https://developers.fireblocks.com/reference/raw-signing-objects#rawmessagedata) - - For `CONTRACT_CALL` operations, add the key `contractCallData` with the value set to the Ethereum smart contract Application Binary Interface (ABI) payload. The Fireblocks [development libraries](https://developers.fireblocks.com/docs/ethereum-development#convenience-libraries) are recommended for building contract call transactions. - For **exchange compliance (e.g., Binance) and Travel Rule purposes**, include the key `piiData` containing a **custom JSON structure** with Personally Identifiable Information (PII) relevant to the transaction. This data must be fully **encrypted by the sender** before being submitted to the Fireblocks API. The recommended encryption method is **hybrid encryption** using AES-256-GCM for the payload and RSA-OAEP for key exchange, with the recipient exchange’s public key. [development libraries](https://developers.fireblocks.com/docs/a-developers-guide-to-constructing-encrypted-pii-messages-for-binance-via-fireblocks) - properties: {} - type: object - SignedMessage: - description: A list of signed messages returned for raw signing. - example: - derivationPath: - - 7.061401241503109 - - 7.061401241503109 - signature: - r: r - s: s - fullSig: fullSig - v: 9.301444243932576 - publicKey: publicKey - content: content - algorithm: MPC_ECDSA_SECP256K1 - properties: - content: - type: string - algorithm: - enum: - - MPC_ECDSA_SECP256K1 - - MPC_EDDSA_ED25519 - type: string - derivationPath: - items: - type: number - type: array - signature: - $ref: "#/components/schemas/SignedMessage_signature" - publicKey: - type: string - type: object - SignedMessages: - items: - $ref: "#/components/schemas/SignedMessage" - type: array - BlockInfo: - description: |- - The block hash and height of the block that this transaction was mined in. - **Note**: If an outgoing transaction uses the destinations object with more than one value in the array, blockHash is set to null. - example: - blockHash: blockHash - blockHeight: blockHeight - properties: - blockHeight: - type: string - blockHash: - nullable: true - type: string - type: object - SystemMessageInfo: - example: - type: WARN - message: Slow transaction processing. Outgoing transactions might be stuck. - properties: - type: - enum: - - WARN - - BLOCK - type: string - message: - description: "A response from Fireblocks that communicates a message about\ - \ the health of the process being performed. If this object is returned\ - \ with data, you should expect potential delays or incomplete transaction\ - \ statuses." - example: Slow transaction processing. Outgoing transactions might be stuck. - type: string - type: object - TransactionResponse: - example: - note: note - authorizationInfo: - allowOperatorAsAuthorizer: true - groups: - - th: 0.8008281904610115 - users: - key: PENDING_AUTHORIZATION - - th: 0.8008281904610115 - users: - key: PENDING_AUTHORIZATION - logic: AND - amountUSD: 1.0246457001441578 - destinationAddress: destinationAddress - contractCallDecodedData: - functionCalls: - - "{}" - - "{}" - contractName: contractName - errorDescription: errorDescription - signedBy: - - signedBy - - signedBy - destinationTag: destinationTag - networkFee: 7.457744773683766 - fee: 6.84685269835264 - destination: - walletId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - tradingAccount: tradingAccount - name: name - subType: subType - id: id - type: null - feeCurrency: feeCurrency - extraParameters: "{}" - source: - walletId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - tradingAccount: tradingAccount - name: name - subType: subType - id: id - type: VAULT_ACCOUNT - externalTxId: externalTxId - networkRecords: - - amountUSD: amountUSD - destinationAddress: destinationAddress - sourceAddress: sourceAddress - netAmount: netAmount - networkFee: networkFee - destination: - walletId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - tradingAccount: tradingAccount - name: name - subType: subType - id: id - type: null - index: 6.027456183070403 - source: - walletId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - tradingAccount: tradingAccount - name: name - subType: subType - id: id - type: VAULT_ACCOUNT - type: type - isDropped: true - rewardInfo: - destRewards: destRewards - srcRewards: srcRewards - assetId: assetId - txHash: txHash - - amountUSD: amountUSD - destinationAddress: destinationAddress - sourceAddress: sourceAddress - netAmount: netAmount - networkFee: networkFee - destination: - walletId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - tradingAccount: tradingAccount - name: name - subType: subType - id: id - type: null - index: 6.027456183070403 - source: - walletId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - tradingAccount: tradingAccount - name: name - subType: subType - id: id - type: VAULT_ACCOUNT - type: type - isDropped: true - rewardInfo: - destRewards: destRewards - srcRewards: srcRewards - assetId: assetId - txHash: txHash - createdAt: 1.4658129805029452 - lastUpdated: 5.962133916683182 - feeInfo: - serviceFee: serviceFee - relayType: LOCAL - relayId: "1" - networkFee: networkFee - relayName: Tenant Name - feeUSD: "0.0013" - gasPrice: gasPrice - paidByRelay: true - assetId: assetId - id: id - tag: tag - txHash: txHash - blockInfo: - blockHash: blockHash - blockHeight: blockHeight - serviceFee: 1.4894159098541704 - amount: 7.386281948385884 - sourceAddress: sourceAddress - netAmount: 1.2315135367772556 - addressType: "" - destinations: - - amount: amount - amountUSD: amountUSD - authorizationInfo: - allowOperatorAsAuthorizer: true - groups: - - th: 0.8008281904610115 - users: - key: PENDING_AUTHORIZATION - - th: 0.8008281904610115 - users: - key: PENDING_AUTHORIZATION - logic: AND - destinationAddress: "" - amlScreeningResult: - provider: provider - payload: "{}" - destination: - walletId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - tradingAccount: tradingAccount - name: name - subType: subType - id: id - type: null - destinationAddressDescription: "" - - amount: amount - amountUSD: amountUSD - authorizationInfo: - allowOperatorAsAuthorizer: true - groups: - - th: 0.8008281904610115 - users: - key: PENDING_AUTHORIZATION - - th: 0.8008281904610115 - users: - key: PENDING_AUTHORIZATION - logic: AND - destinationAddress: "" - amlScreeningResult: - provider: provider - payload: "{}" - destination: - walletId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - tradingAccount: tradingAccount - name: name - subType: subType - id: id - type: null - destinationAddressDescription: "" - signedMessages: - - derivationPath: - - 7.061401241503109 - - 7.061401241503109 - signature: - r: r - s: s - fullSig: fullSig - v: 9.301444243932576 - publicKey: publicKey - content: content - algorithm: MPC_ECDSA_SECP256K1 - - derivationPath: - - 7.061401241503109 - - 7.061401241503109 - signature: - r: r - s: s - fullSig: fullSig - v: 9.301444243932576 - publicKey: publicKey - content: content - algorithm: MPC_ECDSA_SECP256K1 - index: 2.027123023002322 - amountInfo: - amount: amount - amountUSD: amountUSD - netAmount: netAmount - requestedAmount: requestedAmount - customerRefId: customerRefId - subStatus: subStatus - treatAsGrossAmount: true - systemMessages: - type: WARN - message: Slow transaction processing. Outgoing transactions might be stuck. - rejectedBy: rejectedBy - numOfConfirmations: 3.616076749251911 - complianceResults: - aml: - provider: provider - payload: "{}" - bypassReason: bypassReason - screeningStatus: COMPLETED - timestamp: 5.637376656633329 - amlRegistration: - provider: provider - success: true - timestamp: 2.3021358869347655 - amlList: - - provider: provider - payload: "{}" - bypassReason: bypassReason - screeningStatus: COMPLETED - timestamp: 5.637376656633329 - - provider: provider - payload: "{}" - bypassReason: bypassReason - screeningStatus: COMPLETED - timestamp: 5.637376656633329 - tr: - provider: provider - payload: "{}" - bypassReason: bypassReason - screeningStatus: COMPLETED - timestamp: 5.637376656633329 - status: Started - createdBy: createdBy - exchangeTxId: exchangeTxId - rewardInfo: - destRewards: destRewards - srcRewards: srcRewards - amlScreeningResult: - provider: provider - payload: "{}" - destinationAddressDescription: destinationAddressDescription - requestedAmount: 4.145608029883936 - operation: TRANSFER - status: status - properties: - id: - description: ID of the transaction. - type: string - externalTxId: - description: "Unique transaction ID provided by the user. Fireblocks highly\ - \ recommends setting an `externalTxId` for every transaction created,\ - \ to avoid submitting the same transaction twice." - type: string - status: - description: "The primary status of the transaction. For details, see [Primary\ - \ transaction statuses](https://developers.fireblocks.com/reference/primary-transaction-statuses)." - type: string - subStatus: - description: "See [Transaction substatuses](https://developers.fireblocks.com/reference/transaction-substatuses)\ - \ for the list of transaction sub statuses." - type: string - txHash: - description: |- - The hash of the transaction on the blockchain. - * This parameter exists if at least one of the following conditions is met: - - 1. The transaction’s source type is `UNKNOWN`, `WHITELISTED_ADDRESS`, `NETWORK_CONNECTION`, `ONE_TIME_ADDRESS`, `FIAT_ACCOUNT` or `GAS_STATION`. - - 2. The transaction’s source type is `VAULT` and the status is either: `CONFIRMING`, `COMPLETED`, or was in any of these statuses prior to changing to `FAILED` or `REJECTED`. In some instances, transactions in status `BROADCASTING` will include the txHash as well. - - 3. The transaction’s source type is `EXCHANGE_ACCOUNT` and the transaction’s destination type is `VAULT`, and the status is either: `CONFIRMING`, `COMPLETED`, or was in any of these status prior to changing to `FAILED`. - - - * In addition, the following conditions must be met: - - 1. The asset is a crypto asset (not fiat). - - 2. The transaction operation is not RAW or `TYPED_MESSAGE`. - type: string - operation: - $ref: "#/components/schemas/GetTransactionOperation" - note: - description: "Custom note, not sent to the blockchain, that describes the\ - \ transaction at your Fireblocks workspace." - type: string - assetId: - description: "The ID of the asset to transfer, for `TRANSFER`, `MINT`, `BURN`,\ - \ `ENABLE_ASSET`,`STAKE` ,`UNSTAKE` or `WITHDRAW` operations. [See the\ - \ list of supported assets and their IDs on Fireblocks.](https://developers.fireblocks.com/reference/get_supported-assets)" - type: string - x-fb-entity: asset - source: - $ref: "#/components/schemas/SourceTransferPeerPathResponse" - sourceAddress: - description: |- - For account based assets only, the source address of the transaction. - **Note:** If the status is `CONFIRMING`, `COMPLETED`, or has been `CONFIRMING`; then moved forward to `FAILED` or `REJECTED`, then this parameter will contain the source address. In any other case, this parameter will be empty. - type: string - tag: - description: "Source address tag for XRP, used as memo for EOS/XLM, or Bank\ - \ Transfer Description for the fiat provider BLINC (by BCB Group)." - type: string - destination: - $ref: "#/components/schemas/DestinationTransferPeerPathResponse" - destinations: - description: |- - The transaction’s destinations. - **Note:** In case the transaction is sent to a single destination, the `destination` parameter is used instead of this. - items: - $ref: "#/components/schemas/TransactionResponseDestination" - type: array - destinationAddress: - description: |- - Address where the asset were transferred. - Notes: - - For [Multi destination transactions](https://support.fireblocks.io/hc/en-us/articles/360018447980-Multi-destination-transactions), this parameter will be empty. In this case, you should refer to the destinations field. - - If the status is `CONFIRMING`, `COMPLETED`, or has been `CONFIRMING`; then moved forward to `FAILED` or `REJECTED`, then this parameter will contain the destination address. In any other case, this parameter will be empty. - type: string - destinationAddressDescription: - description: Description of the address. - type: string - destinationTag: - description: "Destination address tag for XRP, used as memo for EOS/XLM,\ - \ or Bank Transfer Description for the fiat provider BLINC (by BCB Group)." - type: string - contractCallDecodedData: - $ref: "#/components/schemas/TransactionResponse_contractCallDecodedData" - amountInfo: - $ref: "#/components/schemas/AmountInfo" - treatAsGrossAmount: - description: |- - For transactions initiated via this Fireblocks workspace, when set to `true`, the fee is deducted from the requested amount. - - **Note**: This parameter can only be considered if a transaction's asset is a base asset, such as ETH or MATIC. If the asset can't be used for transaction fees, like USDC, this parameter is ignored and the fee is deducted from the relevant base asset wallet in the source account. - type: boolean - feeInfo: - $ref: "#/components/schemas/FeeInfo" - feeCurrency: - description: "The asset which was withdrawn to pay the transaction fee,\ - \ for example ETH for EVM-based blockchains, BTC for Tether Omni." - type: string - networkRecords: - description: "In case a single transaction resulted with multiple transfers,\ - \ for example a result of a contract call, then this parameter specifies\ - \ each transfer that took place on the blockchain. In case of a single\ - \ transfer transaction, this parameter is empty." - items: - $ref: "#/components/schemas/NetworkRecord" - type: array - createdAt: - description: "The transaction’s creation date and time, in unix timestamp." - type: number - lastUpdated: - description: "The transaction’s last update date and time, in unix timestamp." - type: number - createdBy: - description: User ID of the initiator of the transaction. - type: string - signedBy: - description: User ID’s of the signers of the transaction. - items: - type: string - type: array - rejectedBy: - description: User ID of the user that rejected the transaction (in case - it was rejected). - type: string - authorizationInfo: - $ref: "#/components/schemas/AuthorizationInfo" - exchangeTxId: - description: "If the transaction originated from an exchange, this is the\ - \ ID of this transaction at the exchange." - type: string - customerRefId: - description: The ID for AML providers to associate the owner of funds with - transactions. - type: string - amlScreeningResult: - $ref: "#/components/schemas/AmlScreeningResult" - complianceResults: - $ref: "#/components/schemas/ComplianceResults" - extraParameters: - description: | - Additional protocol / operation specific key-value parameters: - - For UTXO-based blockchain input selection, add the key `inputsSelection` with the value set the [input selection structure.](https://developers.fireblocks.com/reference/transaction-objects#inputsselection) The inputs can be retrieved from the [Retrieve Unspent Inputs endpoint.](https://developers.fireblocks.com/reference/get_vault-accounts-vaultaccountid-assetid-unspent-inputs) - - For `RAW` operations, add the key `rawMessageData` with the value set to the [raw message data structure.](https://developers.fireblocks.com/reference/raw-signing-objects#rawmessagedata) - - For `CONTRACT_CALL` operations, add the key `contractCallData` with the value set to the Ethereum smart contract Application Binary Interface (ABI) payload. The Fireblocks [development libraries](https://developers.fireblocks.com/docs/ethereum-development#convenience-libraries) are recommended for building contract call transactions. - For **exchange compliance (e.g., Binance) and Travel Rule purposes**, include the key `piiData` containing a **custom JSON structure** with Personally Identifiable Information (PII) relevant to the transaction. This data must be fully **encrypted by the sender** before being submitted to the Fireblocks API. The recommended encryption method is **hybrid encryption** using AES-256-GCM for the payload and RSA-OAEP for key exchange, with the recipient exchange’s public key. [development libraries](https://developers.fireblocks.com/docs/a-developers-guide-to-constructing-encrypted-pii-messages-for-binance-via-fireblocks) - properties: {} - type: object - signedMessages: - items: - $ref: "#/components/schemas/SignedMessage" - type: array - numOfConfirmations: - description: The number of confirmations of the transaction. The number - will increase until the transaction will be considered completed according - to the confirmation policy. - type: number - blockInfo: - $ref: "#/components/schemas/BlockInfo" - index: - description: |- - For UTXO based assets this is the vOut, for Ethereum based, this is the index of the event of the contract call. - **Note:** This field is not returned if a transaction uses the `destinations` object with more than one value. - type: number - rewardInfo: - $ref: "#/components/schemas/RewardInfo" - systemMessages: - $ref: "#/components/schemas/SystemMessageInfo" - addressType: - enum: - - "" - - WHITELISTED - - ONE_TIME - type: string - requestedAmount: - deprecated: true - description: The amount requested by the user. Deprecated - please use the - `amountInfo` field for accuracy. - type: number - amount: - deprecated: true - description: "If the transfer is a withdrawal from an exchange, the actual\ - \ amount that was requested to be transferred. Otherwise, the requested\ - \ amount. Deprecated - please use the `amountInfo` field for accuracy." - type: number - netAmount: - deprecated: true - description: "The net amount of the transaction, after fee deduction. Deprecated\ - \ - please use the `amountInfo` field for accuracy." - type: number - amountUSD: - deprecated: true - description: The USD value of the requested amount. Deprecated - please - use the `amountInfo` field for accuracy. - nullable: true - type: number - serviceFee: - deprecated: true - description: The total fee deducted by the exchange from the actual requested - amount (`serviceFee` = `amount` - `netAmount`). Deprecated - please use - the `feeInfo` field for accuracy. - type: number - fee: - deprecated: true - description: Deprecated - please use the `feeInfo` field for accuracy. - type: number - networkFee: - deprecated: true - description: The fee paid to the network. Deprecated - please use the `feeInfo` - field for accuracy. - type: number - errorDescription: - description: The transaction's revert reason. This field will be returned - when `subStatus` = 'SMART_CONTRACT_EXECUTION_FAILED'. - type: string - type: object - GetTransactionsResponse: - items: - $ref: "#/components/schemas/TransactionResponse" - type: array - TransactionOperation: - default: TRANSFER - description: | - * `TRANSFER` - The default value for an operation. Transfers funds from one account to another. UTXO blockchains allow multi-input and multi-output transfers. All other blockchains allow transfers with one source address and one destination address. - * `MINT` - Mints new tokens. Supported for Stellar, Ripple and EVM-based blockchains. - * `BURN` - Burns tokens. Supported for Stellar, Ripple and EVM-based blockchains. - * `CONTRACT_CALL` - Calls a smart contract method for web3 operations on any EVM blockchain. The Fireblocks [development libraries](https://developers.fireblocks.com/docs/ethereum-development#convenience-libraries) are recommended for building contract call transactions. - * `PROGRAM_CALL` - Execute multiple instructions on Solana blockchain. The @solana/web3.js library is recommended for building program call transactions. Currently in beta and disabled - * `TYPED_MESSAGE` - An off-chain message in either Ethereum Personal Message or EIP712 format. Use it to sign specific readable messages that are not actual transactions. [Learn more about typed messages](https://developers.fireblocks.com/docs/typed-message-signing). - * `RAW` - An off-chain message with no predefined format. Use it to sign any message with your private key, including protocols such as blockchains and custom transaction types that are not natively supported by Fireblocks. [Learn more about raw signing transactions.](https://developers.fireblocks.com/docs/raw-message-signing) - * `APPROVE` - Enables the approve function for a smart contract or wallet to withdraw from a designated wallet. [Learn more](https://support.fireblocks.io/hc/en-us/articles/4404616097426-Amount-Cap-for-Approve-transactions). - * `ENABLE_ASSET` - Algorand, DigitalBits, Solana, and Stellar require an on-chain transaction to create an asset wallet and enable the deposit address. This transaction is automatically created when adding assets on these blockchains at a vault account. - enum: - - TRANSFER - - BURN - - CONTRACT_CALL - - PROGRAM_CALL - - MINT - - RAW - - TYPED_MESSAGE - - APPROVE - - ENABLE_ASSET - type: string - TransferPeerPathSubType: - enum: - - BINANCE - - BINANCEUS - - BITFINEX - - BITHUMB - - BITMEX - - BITSO - - BITSTAMP - - BITTREX - - BLINC - - BYBIT - - CIRCLE - - COINBASEEXCHANGE - - COINBASEPRO - - COINMETRO - - COINSPRO - - CRYPTOCOM - - DERIBIT - - GEMINI - - HITBTC - - HUOBI - - INDEPENDENTRESERVE - - KORBIT - - KRAKEN - - KRAKENINTL - - KUCOIN - - LIQUID - - OKCOIN - - OKEX - - PAXOS - - POLONIEX - - External - - Internal - type: string - SourceTransferPeerPath: - description: The source of the transaction. - example: - walletId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - isCollateral: true - name: name - subType: BINANCE - id: id - type: VAULT_ACCOUNT - properties: - type: - $ref: "#/components/schemas/TransferPeerPathType" - subType: - $ref: "#/components/schemas/TransferPeerPathSubType" - id: - type: string - name: - type: string - walletId: - format: uuid - type: string - isCollateral: - description: indicate if the source is collateral account - example: true - type: boolean - required: - - type - type: object - OneTimeAddress: - example: - address: address - tag: tag - properties: - address: - type: string - tag: - type: string - required: - - address - type: object - DestinationTransferPeerPath: - description: The destination of the transaction. - example: - oneTimeAddress: - address: address - tag: tag - walletId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - isCollateral: true - name: name - subType: null - id: id - type: null - properties: - type: - $ref: "#/components/schemas/TransferPeerPathType" - subType: - $ref: "#/components/schemas/TransferPeerPathSubType" - id: - type: string - name: - type: string - walletId: - format: uuid - type: string - oneTimeAddress: - $ref: "#/components/schemas/OneTimeAddress" - isCollateral: - description: indicate if the destination is collateral account - example: true - type: boolean - required: - - type - type: object - TransactionRequestDestination: - example: - amount: amount - destination: - oneTimeAddress: - address: address - tag: tag - walletId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - isCollateral: true - name: name - subType: null - id: id - type: null - customerRefId: abcdef - travelRuleMessageId: trm_12345678-1234-1234-1234-123456789012 - properties: - amount: - type: string - destination: - $ref: "#/components/schemas/DestinationTransferPeerPath" - travelRuleMessageId: - description: The ID of the travel rule message from any travel rule provider. - Used for travel rule linking functionality to associate transactions with - existing travel rule messages. - example: trm_12345678-1234-1234-1234-123456789012 - type: string - customerRefId: - description: The ID for AML providers to associate the owner of funds with - transactions. - example: abcdef - type: string - type: object - TravelRuleTransactionBlockchainInfo: - description: Information about the blockchain transaction. - example: - origin: 8.41132469470587E+47 - destination: 8.41132469470587E+47 - txHash: 6.685730843558756E+76 - properties: - txHash: - description: The hash of the transaction - example: 6.685730843558756E+76 - type: string - origin: - description: The origin address of the transaction - example: 8.41132469470587E+47 - type: string - destination: - description: The destination address of the transaction - example: 8.41132469470587E+47 - type: string - type: object - TravelRuleNaturalNameIdentifier: - example: - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - properties: - primaryIdentifier: - description: The primary identifier of the name. The value must be encrypted. - example: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - type: string - secondaryIdentifier: - description: The secondary identifier of the name. The value must be encrypted. - example: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - type: string - nameIdentifierType: - description: "The type of the name identifier. The value must be encrypted.\ - \ The value must be one of the following: [LEGL, DBA, TRAD, NICK, ALIA,\ - \ MAID, FORM, PREV, BORN, OTHR]." - example: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - type: string - type: object - TravelRuleNaturalPersonNameIdentifier: - example: - localNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - phoneticNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - properties: - nameIdentifier: - items: - $ref: "#/components/schemas/TravelRuleNaturalNameIdentifier" - type: array - localNameIdentifier: - items: - $ref: "#/components/schemas/TravelRuleNaturalNameIdentifier" - type: array - phoneticNameIdentifier: - items: - $ref: "#/components/schemas/TravelRuleNaturalNameIdentifier" - type: array - type: object - TravelRuleGeographicAddress: - example: - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - properties: - streetName: - description: Name of a street or thoroughfare. The value must be encrypted. - example: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - type: string - townName: - description: "Name of a built-up area, with defined boundaries, and a local\ - \ government. The value must be encrypted." - example: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - type: string - country: - description: Nation with its own government (ISO-3166 Alpha-2 country code). - The value must be encrypted. - example: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - type: string - buildingNumber: - description: Number that identifies the position of a building on a street. - The value must be encrypted. - example: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - type: string - postCode: - description: Identifier consisting of a group of letters and/or numbers - added to a postal address to assist the sorting of mail. The value must - be encrypted. - example: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - type: string - addressType: - description: "Specifies the type of address. Acceptable values are: - 'HOME':\ - \ Residential, the home address - 'BIZZ': Business, the business address\ - \ - 'GEOG': Geographic, an unspecified physical (geographical) address\ - \ The value must be encrypted." - example: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - type: string - department: - description: Identification of a division of a large organisation or building. - The value must be encrypted. - example: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - type: string - subDepartment: - description: Identification of a sub-division of a large organisation or - building. The value must be encrypted. - example: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - type: string - buildingName: - description: Name of the building or house. The value must be encrypted. - example: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - type: string - floor: - description: Floor or storey within a building. The value must be encrypted. - example: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - type: string - postBox: - description: Numbered box in a post office. The value must be encrypted. - example: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - type: string - room: - description: Building room number. The value must be encrypted. - example: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - type: string - townLocationName: - description: Specific location name within the town. The value must be encrypted. - example: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - type: string - districtName: - description: Identifies a subdivision within a country subdivision. The - value must be encrypted. - example: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - type: string - countrySubDivision: - description: "Identifies a subdivision of a country such as state, region,\ - \ or province. The value must be encrypted." - example: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - type: string - addressLine: - description: "Information that locates and identifies a specific address,\ - \ presented in free format text. Each item must be encrypted." - example: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - items: - type: string - type: array - type: object - TravelRuleNationalIdentification: - description: Represents a national identifier for a person or entity - example: - nationalIdentifierType: QmUKTg3aFJFhMz1o9gPqA3MgTRwd2LvDLwWTPHYUoMEYVi - countryOfIssue: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - registrationAuthority: QmV9KJMyT9RJzpYfhME5xNCZ4G67fEkzTpRMyJzp9kTNYk - nationalIdentifier: QmdR6qLnZ7Kwf5cBaXG8QFQenEvRg9JNZeoPranVuGd63z - properties: - countryOfIssue: - description: Country that issued the national identifier (ISO-3166 Alpha-2 - country code). The value must be encrypted. - example: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - type: string - nationalIdentifier: - description: National identifier (max 35 characters). The value must be - encrypted. - example: QmdR6qLnZ7Kwf5cBaXG8QFQenEvRg9JNZeoPranVuGd63z - type: string - nationalIdentifierType: - description: "Type of national identifier. Acceptable values include: -\ - \ 'PASSPORT': Passport number - 'NATIONAL_ID': National identification\ - \ number - 'TAX_ID': Tax identification number - 'SOCIAL_SECURITY': Social\ - \ security number The value must be encrypted." - example: QmUKTg3aFJFhMz1o9gPqA3MgTRwd2LvDLwWTPHYUoMEYVi - type: string - registrationAuthority: - description: Registration authority (format -> RA followed by 6 digits). - The value must be encrypted. - example: QmV9KJMyT9RJzpYfhME5xNCZ4G67fEkzTpRMyJzp9kTNYk - type: string - type: object - TravelRuleDateAndPlaceOfBirth: - description: Represents the date and place of birth for a natural person - example: - placeOfBirth: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - dateOfBirth: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - properties: - dateOfBirth: - description: Date of birth. The value must be encrypted. - example: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - type: string - placeOfBirth: - description: Place of birth. The value must be encrypted. - example: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - type: string - type: object - TravelRuleNaturalPerson: - example: - dateAndPlaceOfBirth: - placeOfBirth: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - dateOfBirth: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - name: - - localNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - phoneticNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - localNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - phoneticNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nationalIdentification: - nationalIdentifierType: QmUKTg3aFJFhMz1o9gPqA3MgTRwd2LvDLwWTPHYUoMEYVi - countryOfIssue: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - registrationAuthority: QmV9KJMyT9RJzpYfhME5xNCZ4G67fEkzTpRMyJzp9kTNYk - nationalIdentifier: QmdR6qLnZ7Kwf5cBaXG8QFQenEvRg9JNZeoPranVuGd63z - geographicAddress: - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - countryOfResidence: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - customerNumber: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - customerIdentification: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - properties: - name: - description: "An array of structured name identifiers for the natural person,\ - \ referencing the TravelRuleNaturalPersonNameIdentifier schema." - items: - $ref: "#/components/schemas/TravelRuleNaturalPersonNameIdentifier" - type: array - geographicAddress: - description: "An array of geographic addresses associated with the natural\ - \ person, referencing the TravelRuleGeographicAddress schema." - items: - $ref: "#/components/schemas/TravelRuleGeographicAddress" - type: array - nationalIdentification: - $ref: "#/components/schemas/TravelRuleNationalIdentification" - dateAndPlaceOfBirth: - $ref: "#/components/schemas/TravelRuleDateAndPlaceOfBirth" - customerIdentification: - description: A unique identifier for the customer within the organization's - context. The value must be encrypted. - example: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - type: string - countryOfResidence: - description: The ISO-3166 Alpha-2 country code of the natural person's residence. - The value must be encrypted. - example: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - type: string - customerNumber: - description: A distinct identifier that uniquely identifies the customer - within the organization. The value must be encrypted. - example: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - type: string - type: object - TravelRuleLegalPersonNameIdentifier: - example: - legalPersonNameIdentifierType: QmPevsa5xdkxf6Lgt7f9YweRBdgseeAkWVaYyssKF3Q86e - legalPersonName: QmVXXj5BJchhqQTU27uEkeghYMnxR6aVjZxJP9jS6uCg9Q - properties: - legalPersonName: - description: Name by which the legal person is known. The value must be - encrypted. - example: QmVXXj5BJchhqQTU27uEkeghYMnxR6aVjZxJP9jS6uCg9Q - type: string - legalPersonNameIdentifierType: - description: "Specifies the type of name for a legal person. Acceptable\ - \ values are: - 'REGISTERED': The official registered name. - 'TRADE':\ - \ A trading name or DBA (Doing Business As) name. - 'OTHER': Any other\ - \ type of name. The value must be encrypted." - example: QmPevsa5xdkxf6Lgt7f9YweRBdgseeAkWVaYyssKF3Q86e - type: string - type: object - TravelRuleLegalPerson: - example: - name: - legalPersonNameIdentifierType: QmPevsa5xdkxf6Lgt7f9YweRBdgseeAkWVaYyssKF3Q86e - legalPersonName: QmVXXj5BJchhqQTU27uEkeghYMnxR6aVjZxJP9jS6uCg9Q - nationalIdentification: - nationalIdentifierType: QmUKTg3aFJFhMz1o9gPqA3MgTRwd2LvDLwWTPHYUoMEYVi - countryOfIssue: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - registrationAuthority: QmV9KJMyT9RJzpYfhME5xNCZ4G67fEkzTpRMyJzp9kTNYk - nationalIdentifier: QmdR6qLnZ7Kwf5cBaXG8QFQenEvRg9JNZeoPranVuGd63z - geographicAddress: - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - customerNumber: QmXvyML3AJUFpBbJqL5NVp7Vn7xNkuedTsSMk93duLCNW8 - customerIdentification: QmRY9AA4Uit2JRTxDzfzshrJdTK86Kf5HriA3dXDnihDmy - countryOfRegistration: QmeoTk6UPruEAYNbJEAHdQYc53ap9BXmpnPMcuvs8wutdr - properties: - name: - $ref: "#/components/schemas/TravelRuleLegalPersonNameIdentifier" - geographicAddress: - description: The array of geographic addresses associated with the legal - person. - items: - $ref: "#/components/schemas/TravelRuleGeographicAddress" - type: array - nationalIdentification: - $ref: "#/components/schemas/TravelRuleNationalIdentification" - customerIdentification: - description: A unique identifier that identifies the customer in the organization's - context. The value must be encrypted. - example: QmRY9AA4Uit2JRTxDzfzshrJdTK86Kf5HriA3dXDnihDmy - type: string - customerNumber: - description: A distinct identifier that uniquely identifies the customer - within the organization. The value must be encrypted. - example: QmXvyML3AJUFpBbJqL5NVp7Vn7xNkuedTsSMk93duLCNW8 - type: string - countryOfRegistration: - description: The ISO-3166 Alpha-2 country code where the legal person is - registered. The value must be encrypted. - example: QmeoTk6UPruEAYNbJEAHdQYc53ap9BXmpnPMcuvs8wutdr - type: string - type: object - TravelRulePerson: - example: - legalPerson: - name: - legalPersonNameIdentifierType: QmPevsa5xdkxf6Lgt7f9YweRBdgseeAkWVaYyssKF3Q86e - legalPersonName: QmVXXj5BJchhqQTU27uEkeghYMnxR6aVjZxJP9jS6uCg9Q - nationalIdentification: - nationalIdentifierType: QmUKTg3aFJFhMz1o9gPqA3MgTRwd2LvDLwWTPHYUoMEYVi - countryOfIssue: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - registrationAuthority: QmV9KJMyT9RJzpYfhME5xNCZ4G67fEkzTpRMyJzp9kTNYk - nationalIdentifier: QmdR6qLnZ7Kwf5cBaXG8QFQenEvRg9JNZeoPranVuGd63z - geographicAddress: - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - customerNumber: QmXvyML3AJUFpBbJqL5NVp7Vn7xNkuedTsSMk93duLCNW8 - customerIdentification: QmRY9AA4Uit2JRTxDzfzshrJdTK86Kf5HriA3dXDnihDmy - countryOfRegistration: QmeoTk6UPruEAYNbJEAHdQYc53ap9BXmpnPMcuvs8wutdr - naturalPerson: - dateAndPlaceOfBirth: - placeOfBirth: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - dateOfBirth: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - name: - - localNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - phoneticNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - localNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - phoneticNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nationalIdentification: - nationalIdentifierType: QmUKTg3aFJFhMz1o9gPqA3MgTRwd2LvDLwWTPHYUoMEYVi - countryOfIssue: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - registrationAuthority: QmV9KJMyT9RJzpYfhME5xNCZ4G67fEkzTpRMyJzp9kTNYk - nationalIdentifier: QmdR6qLnZ7Kwf5cBaXG8QFQenEvRg9JNZeoPranVuGd63z - geographicAddress: - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - countryOfResidence: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - customerNumber: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - customerIdentification: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - properties: - naturalPerson: - $ref: "#/components/schemas/TravelRuleNaturalPerson" - legalPerson: - $ref: "#/components/schemas/TravelRuleLegalPerson" - type: object - TravelRulePiiIVMS: - description: Personal identifiable information related to the transaction - example: - originatorPersons: - - legalPerson: - name: - legalPersonNameIdentifierType: QmPevsa5xdkxf6Lgt7f9YweRBdgseeAkWVaYyssKF3Q86e - legalPersonName: QmVXXj5BJchhqQTU27uEkeghYMnxR6aVjZxJP9jS6uCg9Q - nationalIdentification: - nationalIdentifierType: QmUKTg3aFJFhMz1o9gPqA3MgTRwd2LvDLwWTPHYUoMEYVi - countryOfIssue: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - registrationAuthority: QmV9KJMyT9RJzpYfhME5xNCZ4G67fEkzTpRMyJzp9kTNYk - nationalIdentifier: QmdR6qLnZ7Kwf5cBaXG8QFQenEvRg9JNZeoPranVuGd63z - geographicAddress: - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - customerNumber: QmXvyML3AJUFpBbJqL5NVp7Vn7xNkuedTsSMk93duLCNW8 - customerIdentification: QmRY9AA4Uit2JRTxDzfzshrJdTK86Kf5HriA3dXDnihDmy - countryOfRegistration: QmeoTk6UPruEAYNbJEAHdQYc53ap9BXmpnPMcuvs8wutdr - naturalPerson: - dateAndPlaceOfBirth: - placeOfBirth: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - dateOfBirth: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - name: - - localNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - phoneticNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - localNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - phoneticNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nationalIdentification: - nationalIdentifierType: QmUKTg3aFJFhMz1o9gPqA3MgTRwd2LvDLwWTPHYUoMEYVi - countryOfIssue: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - registrationAuthority: QmV9KJMyT9RJzpYfhME5xNCZ4G67fEkzTpRMyJzp9kTNYk - nationalIdentifier: QmdR6qLnZ7Kwf5cBaXG8QFQenEvRg9JNZeoPranVuGd63z - geographicAddress: - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - countryOfResidence: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - customerNumber: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - customerIdentification: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - - legalPerson: - name: - legalPersonNameIdentifierType: QmPevsa5xdkxf6Lgt7f9YweRBdgseeAkWVaYyssKF3Q86e - legalPersonName: QmVXXj5BJchhqQTU27uEkeghYMnxR6aVjZxJP9jS6uCg9Q - nationalIdentification: - nationalIdentifierType: QmUKTg3aFJFhMz1o9gPqA3MgTRwd2LvDLwWTPHYUoMEYVi - countryOfIssue: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - registrationAuthority: QmV9KJMyT9RJzpYfhME5xNCZ4G67fEkzTpRMyJzp9kTNYk - nationalIdentifier: QmdR6qLnZ7Kwf5cBaXG8QFQenEvRg9JNZeoPranVuGd63z - geographicAddress: - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - customerNumber: QmXvyML3AJUFpBbJqL5NVp7Vn7xNkuedTsSMk93duLCNW8 - customerIdentification: QmRY9AA4Uit2JRTxDzfzshrJdTK86Kf5HriA3dXDnihDmy - countryOfRegistration: QmeoTk6UPruEAYNbJEAHdQYc53ap9BXmpnPMcuvs8wutdr - naturalPerson: - dateAndPlaceOfBirth: - placeOfBirth: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - dateOfBirth: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - name: - - localNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - phoneticNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - localNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - phoneticNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nationalIdentification: - nationalIdentifierType: QmUKTg3aFJFhMz1o9gPqA3MgTRwd2LvDLwWTPHYUoMEYVi - countryOfIssue: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - registrationAuthority: QmV9KJMyT9RJzpYfhME5xNCZ4G67fEkzTpRMyJzp9kTNYk - nationalIdentifier: QmdR6qLnZ7Kwf5cBaXG8QFQenEvRg9JNZeoPranVuGd63z - geographicAddress: - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - countryOfResidence: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - customerNumber: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - customerIdentification: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - beneficiaryPersons: - - legalPerson: - name: - legalPersonNameIdentifierType: QmPevsa5xdkxf6Lgt7f9YweRBdgseeAkWVaYyssKF3Q86e - legalPersonName: QmVXXj5BJchhqQTU27uEkeghYMnxR6aVjZxJP9jS6uCg9Q - nationalIdentification: - nationalIdentifierType: QmUKTg3aFJFhMz1o9gPqA3MgTRwd2LvDLwWTPHYUoMEYVi - countryOfIssue: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - registrationAuthority: QmV9KJMyT9RJzpYfhME5xNCZ4G67fEkzTpRMyJzp9kTNYk - nationalIdentifier: QmdR6qLnZ7Kwf5cBaXG8QFQenEvRg9JNZeoPranVuGd63z - geographicAddress: - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - customerNumber: QmXvyML3AJUFpBbJqL5NVp7Vn7xNkuedTsSMk93duLCNW8 - customerIdentification: QmRY9AA4Uit2JRTxDzfzshrJdTK86Kf5HriA3dXDnihDmy - countryOfRegistration: QmeoTk6UPruEAYNbJEAHdQYc53ap9BXmpnPMcuvs8wutdr - naturalPerson: - dateAndPlaceOfBirth: - placeOfBirth: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - dateOfBirth: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - name: - - localNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - phoneticNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - localNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - phoneticNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nationalIdentification: - nationalIdentifierType: QmUKTg3aFJFhMz1o9gPqA3MgTRwd2LvDLwWTPHYUoMEYVi - countryOfIssue: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - registrationAuthority: QmV9KJMyT9RJzpYfhME5xNCZ4G67fEkzTpRMyJzp9kTNYk - nationalIdentifier: QmdR6qLnZ7Kwf5cBaXG8QFQenEvRg9JNZeoPranVuGd63z - geographicAddress: - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - countryOfResidence: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - customerNumber: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - customerIdentification: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - - legalPerson: - name: - legalPersonNameIdentifierType: QmPevsa5xdkxf6Lgt7f9YweRBdgseeAkWVaYyssKF3Q86e - legalPersonName: QmVXXj5BJchhqQTU27uEkeghYMnxR6aVjZxJP9jS6uCg9Q - nationalIdentification: - nationalIdentifierType: QmUKTg3aFJFhMz1o9gPqA3MgTRwd2LvDLwWTPHYUoMEYVi - countryOfIssue: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - registrationAuthority: QmV9KJMyT9RJzpYfhME5xNCZ4G67fEkzTpRMyJzp9kTNYk - nationalIdentifier: QmdR6qLnZ7Kwf5cBaXG8QFQenEvRg9JNZeoPranVuGd63z - geographicAddress: - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - customerNumber: QmXvyML3AJUFpBbJqL5NVp7Vn7xNkuedTsSMk93duLCNW8 - customerIdentification: QmRY9AA4Uit2JRTxDzfzshrJdTK86Kf5HriA3dXDnihDmy - countryOfRegistration: QmeoTk6UPruEAYNbJEAHdQYc53ap9BXmpnPMcuvs8wutdr - naturalPerson: - dateAndPlaceOfBirth: - placeOfBirth: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - dateOfBirth: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - name: - - localNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - phoneticNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - localNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - phoneticNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nationalIdentification: - nationalIdentifierType: QmUKTg3aFJFhMz1o9gPqA3MgTRwd2LvDLwWTPHYUoMEYVi - countryOfIssue: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - registrationAuthority: QmV9KJMyT9RJzpYfhME5xNCZ4G67fEkzTpRMyJzp9kTNYk - nationalIdentifier: QmdR6qLnZ7Kwf5cBaXG8QFQenEvRg9JNZeoPranVuGd63z - geographicAddress: - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - countryOfResidence: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - customerNumber: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - customerIdentification: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - accountNumber: - - QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - - QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - properties: - originatorPersons: - description: Information about the originator of the transaction - items: - $ref: "#/components/schemas/TravelRulePerson" - type: array - beneficiaryPersons: - description: Information about the beneficiary of the transaction - items: - $ref: "#/components/schemas/TravelRulePerson" - type: array - accountNumber: - description: Beneficiary account number. The value must be encrypted. - items: - example: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - type: string - type: array - type: object - TravelRuleOwnershipProof: - description: Ownership proof related to the originator of the transaction. - example: - attestation: I certify that ETH account 0x896B...0b9b belongs to me. - address: 0x896B...0b9b - proof: 0x3dd4a17a...ce4a2bcd1b - type: eip-191 - wallet_provider: Metamask - confirmed: true - url: https://example.com/uploaded_image.png - properties: - type: - description: "The type of ownership proof. Example values: - `eip-191`:\ - \ Ethereum signature proof - `eip-712`: Ethereum typed data signature\ - \ proof - `bip-137`: Bitcoin signature proof - `microtransfer`: Microtransaction\ - \ (Satoshi test) - `screenshot`: Uploaded screenshot of the wallet - `self-declaration`:\ - \ Checkbox attestation of ownership" - example: eip-191 - type: string - proof: - description: "The cryptographic signature, transaction hash, or other proof\ - \ depending on the type. Examples: - For `eip-191`: `0x3dd4a17a...ce4a2bcd1b`\ - \ - For `microtransfer`: The transaction hash `H3V8GXBy39Dz...tr3TSTkY=`" - example: 0x3dd4a17a...ce4a2bcd1b - type: string - attestation: - description: "A human-readable statement of wallet ownership. Required for\ - \ signature proofs and self-declarations. Examples: - `I certify that\ - \ ETH account 0x896B...0b9b belongs to me.` - `I hereby declare that the\ - \ blockchain address 0xa437bEed902AF9338B7DEB23848e195d85019510 is under\ - \ my control.`" - example: I certify that ETH account 0x896B...0b9b belongs to me. - type: string - address: - description: "The wallet address being verified. Examples: - For Ethereum:\ - \ `0x896B...0b9b` - For Bitcoin: `1442...dxhsQ`" - example: 0x896B...0b9b - type: string - wallet_provider: - description: "The wallet provider or method used for verification. Examples:\ - \ - For Metamask: `Metamask` - For manual signature: `manual`" - example: Metamask - type: string - url: - description: "The URL for the uploaded screenshot (for `screenshot` proof\ - \ types only). Example: `https://example.com/uploaded_image.png`" - example: https://example.com/uploaded_image.png - type: string - confirmed: - description: "Whether the user confirmed ownership of the wallet (for `self-declaration`\ - \ proofs). Example: `true`" - example: true - type: boolean - type: object - TravelRuleCreateTransactionRequest: - example: - originatorRef: ORG123456 - travelRuleBehaviorRef: TRB987654 - originatorProof: - attestation: I certify that ETH account 0x896B...0b9b belongs to me. - address: 0x896B...0b9b - proof: 0x3dd4a17a...ce4a2bcd1b - type: eip-191 - wallet_provider: Metamask - confirmed: true - url: https://example.com/uploaded_image.png - isNonCustodial: true - beneficiaryRef: BEN654321 - originator: - originatorPersons: - - legalPerson: - name: - legalPersonNameIdentifierType: QmPevsa5xdkxf6Lgt7f9YweRBdgseeAkWVaYyssKF3Q86e - legalPersonName: QmVXXj5BJchhqQTU27uEkeghYMnxR6aVjZxJP9jS6uCg9Q - nationalIdentification: - nationalIdentifierType: QmUKTg3aFJFhMz1o9gPqA3MgTRwd2LvDLwWTPHYUoMEYVi - countryOfIssue: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - registrationAuthority: QmV9KJMyT9RJzpYfhME5xNCZ4G67fEkzTpRMyJzp9kTNYk - nationalIdentifier: QmdR6qLnZ7Kwf5cBaXG8QFQenEvRg9JNZeoPranVuGd63z - geographicAddress: - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - customerNumber: QmXvyML3AJUFpBbJqL5NVp7Vn7xNkuedTsSMk93duLCNW8 - customerIdentification: QmRY9AA4Uit2JRTxDzfzshrJdTK86Kf5HriA3dXDnihDmy - countryOfRegistration: QmeoTk6UPruEAYNbJEAHdQYc53ap9BXmpnPMcuvs8wutdr - naturalPerson: - dateAndPlaceOfBirth: - placeOfBirth: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - dateOfBirth: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - name: - - localNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - phoneticNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - localNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - phoneticNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nationalIdentification: - nationalIdentifierType: QmUKTg3aFJFhMz1o9gPqA3MgTRwd2LvDLwWTPHYUoMEYVi - countryOfIssue: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - registrationAuthority: QmV9KJMyT9RJzpYfhME5xNCZ4G67fEkzTpRMyJzp9kTNYk - nationalIdentifier: QmdR6qLnZ7Kwf5cBaXG8QFQenEvRg9JNZeoPranVuGd63z - geographicAddress: - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - countryOfResidence: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - customerNumber: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - customerIdentification: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - - legalPerson: - name: - legalPersonNameIdentifierType: QmPevsa5xdkxf6Lgt7f9YweRBdgseeAkWVaYyssKF3Q86e - legalPersonName: QmVXXj5BJchhqQTU27uEkeghYMnxR6aVjZxJP9jS6uCg9Q - nationalIdentification: - nationalIdentifierType: QmUKTg3aFJFhMz1o9gPqA3MgTRwd2LvDLwWTPHYUoMEYVi - countryOfIssue: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - registrationAuthority: QmV9KJMyT9RJzpYfhME5xNCZ4G67fEkzTpRMyJzp9kTNYk - nationalIdentifier: QmdR6qLnZ7Kwf5cBaXG8QFQenEvRg9JNZeoPranVuGd63z - geographicAddress: - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - customerNumber: QmXvyML3AJUFpBbJqL5NVp7Vn7xNkuedTsSMk93duLCNW8 - customerIdentification: QmRY9AA4Uit2JRTxDzfzshrJdTK86Kf5HriA3dXDnihDmy - countryOfRegistration: QmeoTk6UPruEAYNbJEAHdQYc53ap9BXmpnPMcuvs8wutdr - naturalPerson: - dateAndPlaceOfBirth: - placeOfBirth: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - dateOfBirth: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - name: - - localNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - phoneticNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - localNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - phoneticNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nationalIdentification: - nationalIdentifierType: QmUKTg3aFJFhMz1o9gPqA3MgTRwd2LvDLwWTPHYUoMEYVi - countryOfIssue: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - registrationAuthority: QmV9KJMyT9RJzpYfhME5xNCZ4G67fEkzTpRMyJzp9kTNYk - nationalIdentifier: QmdR6qLnZ7Kwf5cBaXG8QFQenEvRg9JNZeoPranVuGd63z - geographicAddress: - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - countryOfResidence: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - customerNumber: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - customerIdentification: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - beneficiaryPersons: - - legalPerson: - name: - legalPersonNameIdentifierType: QmPevsa5xdkxf6Lgt7f9YweRBdgseeAkWVaYyssKF3Q86e - legalPersonName: QmVXXj5BJchhqQTU27uEkeghYMnxR6aVjZxJP9jS6uCg9Q - nationalIdentification: - nationalIdentifierType: QmUKTg3aFJFhMz1o9gPqA3MgTRwd2LvDLwWTPHYUoMEYVi - countryOfIssue: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - registrationAuthority: QmV9KJMyT9RJzpYfhME5xNCZ4G67fEkzTpRMyJzp9kTNYk - nationalIdentifier: QmdR6qLnZ7Kwf5cBaXG8QFQenEvRg9JNZeoPranVuGd63z - geographicAddress: - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - customerNumber: QmXvyML3AJUFpBbJqL5NVp7Vn7xNkuedTsSMk93duLCNW8 - customerIdentification: QmRY9AA4Uit2JRTxDzfzshrJdTK86Kf5HriA3dXDnihDmy - countryOfRegistration: QmeoTk6UPruEAYNbJEAHdQYc53ap9BXmpnPMcuvs8wutdr - naturalPerson: - dateAndPlaceOfBirth: - placeOfBirth: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - dateOfBirth: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - name: - - localNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - phoneticNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - localNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - phoneticNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nationalIdentification: - nationalIdentifierType: QmUKTg3aFJFhMz1o9gPqA3MgTRwd2LvDLwWTPHYUoMEYVi - countryOfIssue: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - registrationAuthority: QmV9KJMyT9RJzpYfhME5xNCZ4G67fEkzTpRMyJzp9kTNYk - nationalIdentifier: QmdR6qLnZ7Kwf5cBaXG8QFQenEvRg9JNZeoPranVuGd63z - geographicAddress: - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - countryOfResidence: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - customerNumber: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - customerIdentification: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - - legalPerson: - name: - legalPersonNameIdentifierType: QmPevsa5xdkxf6Lgt7f9YweRBdgseeAkWVaYyssKF3Q86e - legalPersonName: QmVXXj5BJchhqQTU27uEkeghYMnxR6aVjZxJP9jS6uCg9Q - nationalIdentification: - nationalIdentifierType: QmUKTg3aFJFhMz1o9gPqA3MgTRwd2LvDLwWTPHYUoMEYVi - countryOfIssue: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - registrationAuthority: QmV9KJMyT9RJzpYfhME5xNCZ4G67fEkzTpRMyJzp9kTNYk - nationalIdentifier: QmdR6qLnZ7Kwf5cBaXG8QFQenEvRg9JNZeoPranVuGd63z - geographicAddress: - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - customerNumber: QmXvyML3AJUFpBbJqL5NVp7Vn7xNkuedTsSMk93duLCNW8 - customerIdentification: QmRY9AA4Uit2JRTxDzfzshrJdTK86Kf5HriA3dXDnihDmy - countryOfRegistration: QmeoTk6UPruEAYNbJEAHdQYc53ap9BXmpnPMcuvs8wutdr - naturalPerson: - dateAndPlaceOfBirth: - placeOfBirth: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - dateOfBirth: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - name: - - localNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - phoneticNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - localNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - phoneticNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nationalIdentification: - nationalIdentifierType: QmUKTg3aFJFhMz1o9gPqA3MgTRwd2LvDLwWTPHYUoMEYVi - countryOfIssue: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - registrationAuthority: QmV9KJMyT9RJzpYfhME5xNCZ4G67fEkzTpRMyJzp9kTNYk - nationalIdentifier: QmdR6qLnZ7Kwf5cBaXG8QFQenEvRg9JNZeoPranVuGd63z - geographicAddress: - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - countryOfResidence: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - customerNumber: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - customerIdentification: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - accountNumber: - - QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - - QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - targetProtocol: GTR - originatorVASPname: Originator VASP Ltd. - beneficiaryVASPname: Beneficiary VASP Inc. - protocol: IVMS101 - skipBeneficiaryDataValidation: false - beneficiary: - originatorPersons: - - legalPerson: - name: - legalPersonNameIdentifierType: QmPevsa5xdkxf6Lgt7f9YweRBdgseeAkWVaYyssKF3Q86e - legalPersonName: QmVXXj5BJchhqQTU27uEkeghYMnxR6aVjZxJP9jS6uCg9Q - nationalIdentification: - nationalIdentifierType: QmUKTg3aFJFhMz1o9gPqA3MgTRwd2LvDLwWTPHYUoMEYVi - countryOfIssue: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - registrationAuthority: QmV9KJMyT9RJzpYfhME5xNCZ4G67fEkzTpRMyJzp9kTNYk - nationalIdentifier: QmdR6qLnZ7Kwf5cBaXG8QFQenEvRg9JNZeoPranVuGd63z - geographicAddress: - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - customerNumber: QmXvyML3AJUFpBbJqL5NVp7Vn7xNkuedTsSMk93duLCNW8 - customerIdentification: QmRY9AA4Uit2JRTxDzfzshrJdTK86Kf5HriA3dXDnihDmy - countryOfRegistration: QmeoTk6UPruEAYNbJEAHdQYc53ap9BXmpnPMcuvs8wutdr - naturalPerson: - dateAndPlaceOfBirth: - placeOfBirth: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - dateOfBirth: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - name: - - localNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - phoneticNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - localNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - phoneticNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nationalIdentification: - nationalIdentifierType: QmUKTg3aFJFhMz1o9gPqA3MgTRwd2LvDLwWTPHYUoMEYVi - countryOfIssue: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - registrationAuthority: QmV9KJMyT9RJzpYfhME5xNCZ4G67fEkzTpRMyJzp9kTNYk - nationalIdentifier: QmdR6qLnZ7Kwf5cBaXG8QFQenEvRg9JNZeoPranVuGd63z - geographicAddress: - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - countryOfResidence: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - customerNumber: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - customerIdentification: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - - legalPerson: - name: - legalPersonNameIdentifierType: QmPevsa5xdkxf6Lgt7f9YweRBdgseeAkWVaYyssKF3Q86e - legalPersonName: QmVXXj5BJchhqQTU27uEkeghYMnxR6aVjZxJP9jS6uCg9Q - nationalIdentification: - nationalIdentifierType: QmUKTg3aFJFhMz1o9gPqA3MgTRwd2LvDLwWTPHYUoMEYVi - countryOfIssue: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - registrationAuthority: QmV9KJMyT9RJzpYfhME5xNCZ4G67fEkzTpRMyJzp9kTNYk - nationalIdentifier: QmdR6qLnZ7Kwf5cBaXG8QFQenEvRg9JNZeoPranVuGd63z - geographicAddress: - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - customerNumber: QmXvyML3AJUFpBbJqL5NVp7Vn7xNkuedTsSMk93duLCNW8 - customerIdentification: QmRY9AA4Uit2JRTxDzfzshrJdTK86Kf5HriA3dXDnihDmy - countryOfRegistration: QmeoTk6UPruEAYNbJEAHdQYc53ap9BXmpnPMcuvs8wutdr - naturalPerson: - dateAndPlaceOfBirth: - placeOfBirth: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - dateOfBirth: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - name: - - localNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - phoneticNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - localNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - phoneticNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nationalIdentification: - nationalIdentifierType: QmUKTg3aFJFhMz1o9gPqA3MgTRwd2LvDLwWTPHYUoMEYVi - countryOfIssue: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - registrationAuthority: QmV9KJMyT9RJzpYfhME5xNCZ4G67fEkzTpRMyJzp9kTNYk - nationalIdentifier: QmdR6qLnZ7Kwf5cBaXG8QFQenEvRg9JNZeoPranVuGd63z - geographicAddress: - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - countryOfResidence: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - customerNumber: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - customerIdentification: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - beneficiaryPersons: - - legalPerson: - name: - legalPersonNameIdentifierType: QmPevsa5xdkxf6Lgt7f9YweRBdgseeAkWVaYyssKF3Q86e - legalPersonName: QmVXXj5BJchhqQTU27uEkeghYMnxR6aVjZxJP9jS6uCg9Q - nationalIdentification: - nationalIdentifierType: QmUKTg3aFJFhMz1o9gPqA3MgTRwd2LvDLwWTPHYUoMEYVi - countryOfIssue: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - registrationAuthority: QmV9KJMyT9RJzpYfhME5xNCZ4G67fEkzTpRMyJzp9kTNYk - nationalIdentifier: QmdR6qLnZ7Kwf5cBaXG8QFQenEvRg9JNZeoPranVuGd63z - geographicAddress: - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - customerNumber: QmXvyML3AJUFpBbJqL5NVp7Vn7xNkuedTsSMk93duLCNW8 - customerIdentification: QmRY9AA4Uit2JRTxDzfzshrJdTK86Kf5HriA3dXDnihDmy - countryOfRegistration: QmeoTk6UPruEAYNbJEAHdQYc53ap9BXmpnPMcuvs8wutdr - naturalPerson: - dateAndPlaceOfBirth: - placeOfBirth: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - dateOfBirth: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - name: - - localNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - phoneticNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - localNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - phoneticNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nationalIdentification: - nationalIdentifierType: QmUKTg3aFJFhMz1o9gPqA3MgTRwd2LvDLwWTPHYUoMEYVi - countryOfIssue: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - registrationAuthority: QmV9KJMyT9RJzpYfhME5xNCZ4G67fEkzTpRMyJzp9kTNYk - nationalIdentifier: QmdR6qLnZ7Kwf5cBaXG8QFQenEvRg9JNZeoPranVuGd63z - geographicAddress: - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - countryOfResidence: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - customerNumber: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - customerIdentification: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - - legalPerson: - name: - legalPersonNameIdentifierType: QmPevsa5xdkxf6Lgt7f9YweRBdgseeAkWVaYyssKF3Q86e - legalPersonName: QmVXXj5BJchhqQTU27uEkeghYMnxR6aVjZxJP9jS6uCg9Q - nationalIdentification: - nationalIdentifierType: QmUKTg3aFJFhMz1o9gPqA3MgTRwd2LvDLwWTPHYUoMEYVi - countryOfIssue: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - registrationAuthority: QmV9KJMyT9RJzpYfhME5xNCZ4G67fEkzTpRMyJzp9kTNYk - nationalIdentifier: QmdR6qLnZ7Kwf5cBaXG8QFQenEvRg9JNZeoPranVuGd63z - geographicAddress: - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - customerNumber: QmXvyML3AJUFpBbJqL5NVp7Vn7xNkuedTsSMk93duLCNW8 - customerIdentification: QmRY9AA4Uit2JRTxDzfzshrJdTK86Kf5HriA3dXDnihDmy - countryOfRegistration: QmeoTk6UPruEAYNbJEAHdQYc53ap9BXmpnPMcuvs8wutdr - naturalPerson: - dateAndPlaceOfBirth: - placeOfBirth: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - dateOfBirth: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - name: - - localNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - phoneticNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - localNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - phoneticNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nationalIdentification: - nationalIdentifierType: QmUKTg3aFJFhMz1o9gPqA3MgTRwd2LvDLwWTPHYUoMEYVi - countryOfIssue: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - registrationAuthority: QmV9KJMyT9RJzpYfhME5xNCZ4G67fEkzTpRMyJzp9kTNYk - nationalIdentifier: QmdR6qLnZ7Kwf5cBaXG8QFQenEvRg9JNZeoPranVuGd63z - geographicAddress: - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - countryOfResidence: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - customerNumber: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - customerIdentification: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - accountNumber: - - QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - - QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - encrypted: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9... - originatorDid: did:key:z6Mkf12345Zabcdef12345 - beneficiaryVASPwebsite: https://www.beneficiaryvasp.com - travelRuleBehavior: true - transactionBlockchainInfo: - origin: 8.41132469470587E+47 - destination: 8.41132469470587E+47 - txHash: 6.685730843558756E+76 - beneficiaryProof: - attestation: I certify that ETH account 0x896B...0b9b belongs to me. - address: 0x896B...0b9b - proof: 0x3dd4a17a...ce4a2bcd1b - type: eip-191 - wallet_provider: Metamask - confirmed: true - url: https://example.com/uploaded_image.png - originatorVASPdid: did:ethr:0x44957e75d6ce4a5bf37aae117da86422c848f7c2 - beneficiaryDid: did:key:z6Mkf67890Zghijkl67890 - beneficiaryVASPdid: did:ethr:0x17fe2dd11a2daa7f6c1fdf22532a4763f963aea6 - properties: - originatorVASPdid: - description: The Decentralized Identifier (DID) of the exchange (VASP) that - is sending the virtual assets. This identifier is unique to the exchange - and is generated when the exchange's account is created in the Notabene - network. - example: did:ethr:0x44957e75d6ce4a5bf37aae117da86422c848f7c2 - type: string - beneficiaryVASPdid: - description: The Decentralized Identifier (DID) of the exchange (VASP) that - is receiving the virtual assets. This identifier is unique to the exchange - and is generated when the exchange's account is created in the Notabene - network. - example: did:ethr:0x17fe2dd11a2daa7f6c1fdf22532a4763f963aea6 - type: string - originatorVASPname: - description: The name of the VASP acting as the transaction originator. - example: Originator VASP Ltd. - type: string - beneficiaryVASPname: - description: The name of the VASP acting as the transaction beneficiary. - example: Beneficiary VASP Inc. - type: string - beneficiaryVASPwebsite: - description: The website of the VASP acting as the transaction beneficiary. - example: https://www.beneficiaryvasp.com - type: string - transactionBlockchainInfo: - $ref: "#/components/schemas/TravelRuleTransactionBlockchainInfo" - originator: - $ref: "#/components/schemas/TravelRulePiiIVMS" - beneficiary: - $ref: "#/components/schemas/TravelRulePiiIVMS" - encrypted: - description: Encrypted data related to the transaction. - example: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9... - type: string - protocol: - description: The protocol used to perform the travel rule. - enum: - - IVMS101 - - TRLight - - TRP - - OpenVASP - - GTR - example: IVMS101 - type: string - targetProtocol: - description: The target protocol for GTR (Global Travel Rule) transfers. - example: GTR - type: string - skipBeneficiaryDataValidation: - description: Whether to skip validation of beneficiary data. - example: false - type: boolean - travelRuleBehavior: - description: Whether to check if the transaction complies with the travel - rule in the beneficiary VASP's jurisdiction. - example: true - type: boolean - originatorRef: - description: A reference ID related to the originator of the transaction. - example: ORG123456 - type: string - beneficiaryRef: - description: A reference ID related to the beneficiary of the transaction. - example: BEN654321 - type: string - travelRuleBehaviorRef: - description: A reference ID related to the travel rule behavior. - example: TRB987654 - type: string - originatorProof: - $ref: "#/components/schemas/TravelRuleOwnershipProof" - beneficiaryProof: - $ref: "#/components/schemas/TravelRuleOwnershipProof" - beneficiaryDid: - description: "The Decentralized Identifier (DID) of the person at the receiving\ - \ exchange (VASP). This identifier is generated when the customer is\ - \ registered in the Notabene network, or automatically created based\ - \ on the `beneficiaryRef`. - If neither `beneficiaryRef` nor `beneficiaryDid`\ - \ is provided in the `txCreate` payload, \n a new random DID is generated\ - \ for every transaction." - example: did:key:z6Mkf67890Zghijkl67890 - type: string - originatorDid: - description: "The Decentralized Identifier (DID) of the person at the exchange\ - \ (VASP) who is requesting the withdrawal. This identifier is generated\ - \ when the customer is registered in the Notabene network or automatically\ - \ created based on the `originatorRef`. - If neither `originatorRef`\ - \ nor `originatorDid` is provided in the `txCreate` payload, \n a new\ - \ random DID is generated for every transaction." - example: did:key:z6Mkf12345Zabcdef12345 - type: string - isNonCustodial: - description: Indicates if the transaction involves a non-custodial wallet. - example: true - type: boolean - required: - - beneficiary - - originator - type: object - TransactionRequest: - example: - note: Ticket 123 - priorityFee: "2" - networkFee: TransactionRequest_networkFee - fee: TransactionRequest_fee - destination: - oneTimeAddress: - address: address - tag: tag - walletId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - isCollateral: true - name: name - subType: null - id: id - type: null - extraParameters: "{}" - source: - walletId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - isCollateral: true - name: name - subType: BINANCE - id: id - type: VAULT_ACCOUNT - maxFee: "120" - travelRuleMessageId: trm_12345678-1234-1234-1234-123456789012 - externalTxId: 00000000-0000-0000-0000-000000000000 - cpuStaking: null - gasLimit: "21000" - failOnLowFee: true - assetId: ETH - feeLevel: MEDIUM - maxTotalFee: "88" - gasPrice: TransactionRequest_gasPrice - forceSweep: false - amount: "0.02" - destinations: - - amount: amount - destination: - oneTimeAddress: - address: address - tag: tag - walletId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - isCollateral: true - name: name - subType: null - id: id - type: null - customerRefId: abcdef - travelRuleMessageId: trm_12345678-1234-1234-1234-123456789012 - - amount: amount - destination: - oneTimeAddress: - address: address - tag: tag - walletId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - isCollateral: true - name: name - subType: null - id: id - type: null - customerRefId: abcdef - travelRuleMessageId: trm_12345678-1234-1234-1234-123456789012 - useGasless: true - travelRuleMessage: - originatorRef: ORG123456 - travelRuleBehaviorRef: TRB987654 - originatorProof: - attestation: I certify that ETH account 0x896B...0b9b belongs to me. - address: 0x896B...0b9b - proof: 0x3dd4a17a...ce4a2bcd1b - type: eip-191 - wallet_provider: Metamask - confirmed: true - url: https://example.com/uploaded_image.png - isNonCustodial: true - beneficiaryRef: BEN654321 - originator: - originatorPersons: - - legalPerson: - name: - legalPersonNameIdentifierType: QmPevsa5xdkxf6Lgt7f9YweRBdgseeAkWVaYyssKF3Q86e - legalPersonName: QmVXXj5BJchhqQTU27uEkeghYMnxR6aVjZxJP9jS6uCg9Q - nationalIdentification: - nationalIdentifierType: QmUKTg3aFJFhMz1o9gPqA3MgTRwd2LvDLwWTPHYUoMEYVi - countryOfIssue: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - registrationAuthority: QmV9KJMyT9RJzpYfhME5xNCZ4G67fEkzTpRMyJzp9kTNYk - nationalIdentifier: QmdR6qLnZ7Kwf5cBaXG8QFQenEvRg9JNZeoPranVuGd63z - geographicAddress: - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - customerNumber: QmXvyML3AJUFpBbJqL5NVp7Vn7xNkuedTsSMk93duLCNW8 - customerIdentification: QmRY9AA4Uit2JRTxDzfzshrJdTK86Kf5HriA3dXDnihDmy - countryOfRegistration: QmeoTk6UPruEAYNbJEAHdQYc53ap9BXmpnPMcuvs8wutdr - naturalPerson: - dateAndPlaceOfBirth: - placeOfBirth: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - dateOfBirth: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - name: - - localNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - phoneticNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - localNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - phoneticNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nationalIdentification: - nationalIdentifierType: QmUKTg3aFJFhMz1o9gPqA3MgTRwd2LvDLwWTPHYUoMEYVi - countryOfIssue: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - registrationAuthority: QmV9KJMyT9RJzpYfhME5xNCZ4G67fEkzTpRMyJzp9kTNYk - nationalIdentifier: QmdR6qLnZ7Kwf5cBaXG8QFQenEvRg9JNZeoPranVuGd63z - geographicAddress: - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - countryOfResidence: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - customerNumber: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - customerIdentification: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - - legalPerson: - name: - legalPersonNameIdentifierType: QmPevsa5xdkxf6Lgt7f9YweRBdgseeAkWVaYyssKF3Q86e - legalPersonName: QmVXXj5BJchhqQTU27uEkeghYMnxR6aVjZxJP9jS6uCg9Q - nationalIdentification: - nationalIdentifierType: QmUKTg3aFJFhMz1o9gPqA3MgTRwd2LvDLwWTPHYUoMEYVi - countryOfIssue: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - registrationAuthority: QmV9KJMyT9RJzpYfhME5xNCZ4G67fEkzTpRMyJzp9kTNYk - nationalIdentifier: QmdR6qLnZ7Kwf5cBaXG8QFQenEvRg9JNZeoPranVuGd63z - geographicAddress: - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - customerNumber: QmXvyML3AJUFpBbJqL5NVp7Vn7xNkuedTsSMk93duLCNW8 - customerIdentification: QmRY9AA4Uit2JRTxDzfzshrJdTK86Kf5HriA3dXDnihDmy - countryOfRegistration: QmeoTk6UPruEAYNbJEAHdQYc53ap9BXmpnPMcuvs8wutdr - naturalPerson: - dateAndPlaceOfBirth: - placeOfBirth: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - dateOfBirth: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - name: - - localNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - phoneticNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - localNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - phoneticNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nationalIdentification: - nationalIdentifierType: QmUKTg3aFJFhMz1o9gPqA3MgTRwd2LvDLwWTPHYUoMEYVi - countryOfIssue: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - registrationAuthority: QmV9KJMyT9RJzpYfhME5xNCZ4G67fEkzTpRMyJzp9kTNYk - nationalIdentifier: QmdR6qLnZ7Kwf5cBaXG8QFQenEvRg9JNZeoPranVuGd63z - geographicAddress: - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - countryOfResidence: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - customerNumber: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - customerIdentification: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - beneficiaryPersons: - - legalPerson: - name: - legalPersonNameIdentifierType: QmPevsa5xdkxf6Lgt7f9YweRBdgseeAkWVaYyssKF3Q86e - legalPersonName: QmVXXj5BJchhqQTU27uEkeghYMnxR6aVjZxJP9jS6uCg9Q - nationalIdentification: - nationalIdentifierType: QmUKTg3aFJFhMz1o9gPqA3MgTRwd2LvDLwWTPHYUoMEYVi - countryOfIssue: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - registrationAuthority: QmV9KJMyT9RJzpYfhME5xNCZ4G67fEkzTpRMyJzp9kTNYk - nationalIdentifier: QmdR6qLnZ7Kwf5cBaXG8QFQenEvRg9JNZeoPranVuGd63z - geographicAddress: - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - customerNumber: QmXvyML3AJUFpBbJqL5NVp7Vn7xNkuedTsSMk93duLCNW8 - customerIdentification: QmRY9AA4Uit2JRTxDzfzshrJdTK86Kf5HriA3dXDnihDmy - countryOfRegistration: QmeoTk6UPruEAYNbJEAHdQYc53ap9BXmpnPMcuvs8wutdr - naturalPerson: - dateAndPlaceOfBirth: - placeOfBirth: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - dateOfBirth: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - name: - - localNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - phoneticNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - localNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - phoneticNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nationalIdentification: - nationalIdentifierType: QmUKTg3aFJFhMz1o9gPqA3MgTRwd2LvDLwWTPHYUoMEYVi - countryOfIssue: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - registrationAuthority: QmV9KJMyT9RJzpYfhME5xNCZ4G67fEkzTpRMyJzp9kTNYk - nationalIdentifier: QmdR6qLnZ7Kwf5cBaXG8QFQenEvRg9JNZeoPranVuGd63z - geographicAddress: - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - countryOfResidence: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - customerNumber: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - customerIdentification: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - - legalPerson: - name: - legalPersonNameIdentifierType: QmPevsa5xdkxf6Lgt7f9YweRBdgseeAkWVaYyssKF3Q86e - legalPersonName: QmVXXj5BJchhqQTU27uEkeghYMnxR6aVjZxJP9jS6uCg9Q - nationalIdentification: - nationalIdentifierType: QmUKTg3aFJFhMz1o9gPqA3MgTRwd2LvDLwWTPHYUoMEYVi - countryOfIssue: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - registrationAuthority: QmV9KJMyT9RJzpYfhME5xNCZ4G67fEkzTpRMyJzp9kTNYk - nationalIdentifier: QmdR6qLnZ7Kwf5cBaXG8QFQenEvRg9JNZeoPranVuGd63z - geographicAddress: - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - customerNumber: QmXvyML3AJUFpBbJqL5NVp7Vn7xNkuedTsSMk93duLCNW8 - customerIdentification: QmRY9AA4Uit2JRTxDzfzshrJdTK86Kf5HriA3dXDnihDmy - countryOfRegistration: QmeoTk6UPruEAYNbJEAHdQYc53ap9BXmpnPMcuvs8wutdr - naturalPerson: - dateAndPlaceOfBirth: - placeOfBirth: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - dateOfBirth: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - name: - - localNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - phoneticNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - localNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - phoneticNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nationalIdentification: - nationalIdentifierType: QmUKTg3aFJFhMz1o9gPqA3MgTRwd2LvDLwWTPHYUoMEYVi - countryOfIssue: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - registrationAuthority: QmV9KJMyT9RJzpYfhME5xNCZ4G67fEkzTpRMyJzp9kTNYk - nationalIdentifier: QmdR6qLnZ7Kwf5cBaXG8QFQenEvRg9JNZeoPranVuGd63z - geographicAddress: - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - countryOfResidence: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - customerNumber: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - customerIdentification: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - accountNumber: - - QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - - QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - targetProtocol: GTR - originatorVASPname: Originator VASP Ltd. - beneficiaryVASPname: Beneficiary VASP Inc. - protocol: IVMS101 - skipBeneficiaryDataValidation: false - beneficiary: - originatorPersons: - - legalPerson: - name: - legalPersonNameIdentifierType: QmPevsa5xdkxf6Lgt7f9YweRBdgseeAkWVaYyssKF3Q86e - legalPersonName: QmVXXj5BJchhqQTU27uEkeghYMnxR6aVjZxJP9jS6uCg9Q - nationalIdentification: - nationalIdentifierType: QmUKTg3aFJFhMz1o9gPqA3MgTRwd2LvDLwWTPHYUoMEYVi - countryOfIssue: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - registrationAuthority: QmV9KJMyT9RJzpYfhME5xNCZ4G67fEkzTpRMyJzp9kTNYk - nationalIdentifier: QmdR6qLnZ7Kwf5cBaXG8QFQenEvRg9JNZeoPranVuGd63z - geographicAddress: - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - customerNumber: QmXvyML3AJUFpBbJqL5NVp7Vn7xNkuedTsSMk93duLCNW8 - customerIdentification: QmRY9AA4Uit2JRTxDzfzshrJdTK86Kf5HriA3dXDnihDmy - countryOfRegistration: QmeoTk6UPruEAYNbJEAHdQYc53ap9BXmpnPMcuvs8wutdr - naturalPerson: - dateAndPlaceOfBirth: - placeOfBirth: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - dateOfBirth: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - name: - - localNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - phoneticNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - localNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - phoneticNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nationalIdentification: - nationalIdentifierType: QmUKTg3aFJFhMz1o9gPqA3MgTRwd2LvDLwWTPHYUoMEYVi - countryOfIssue: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - registrationAuthority: QmV9KJMyT9RJzpYfhME5xNCZ4G67fEkzTpRMyJzp9kTNYk - nationalIdentifier: QmdR6qLnZ7Kwf5cBaXG8QFQenEvRg9JNZeoPranVuGd63z - geographicAddress: - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - countryOfResidence: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - customerNumber: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - customerIdentification: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - - legalPerson: - name: - legalPersonNameIdentifierType: QmPevsa5xdkxf6Lgt7f9YweRBdgseeAkWVaYyssKF3Q86e - legalPersonName: QmVXXj5BJchhqQTU27uEkeghYMnxR6aVjZxJP9jS6uCg9Q - nationalIdentification: - nationalIdentifierType: QmUKTg3aFJFhMz1o9gPqA3MgTRwd2LvDLwWTPHYUoMEYVi - countryOfIssue: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - registrationAuthority: QmV9KJMyT9RJzpYfhME5xNCZ4G67fEkzTpRMyJzp9kTNYk - nationalIdentifier: QmdR6qLnZ7Kwf5cBaXG8QFQenEvRg9JNZeoPranVuGd63z - geographicAddress: - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - customerNumber: QmXvyML3AJUFpBbJqL5NVp7Vn7xNkuedTsSMk93duLCNW8 - customerIdentification: QmRY9AA4Uit2JRTxDzfzshrJdTK86Kf5HriA3dXDnihDmy - countryOfRegistration: QmeoTk6UPruEAYNbJEAHdQYc53ap9BXmpnPMcuvs8wutdr - naturalPerson: - dateAndPlaceOfBirth: - placeOfBirth: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - dateOfBirth: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - name: - - localNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - phoneticNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - localNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - phoneticNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nationalIdentification: - nationalIdentifierType: QmUKTg3aFJFhMz1o9gPqA3MgTRwd2LvDLwWTPHYUoMEYVi - countryOfIssue: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - registrationAuthority: QmV9KJMyT9RJzpYfhME5xNCZ4G67fEkzTpRMyJzp9kTNYk - nationalIdentifier: QmdR6qLnZ7Kwf5cBaXG8QFQenEvRg9JNZeoPranVuGd63z - geographicAddress: - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - countryOfResidence: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - customerNumber: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - customerIdentification: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - beneficiaryPersons: - - legalPerson: - name: - legalPersonNameIdentifierType: QmPevsa5xdkxf6Lgt7f9YweRBdgseeAkWVaYyssKF3Q86e - legalPersonName: QmVXXj5BJchhqQTU27uEkeghYMnxR6aVjZxJP9jS6uCg9Q - nationalIdentification: - nationalIdentifierType: QmUKTg3aFJFhMz1o9gPqA3MgTRwd2LvDLwWTPHYUoMEYVi - countryOfIssue: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - registrationAuthority: QmV9KJMyT9RJzpYfhME5xNCZ4G67fEkzTpRMyJzp9kTNYk - nationalIdentifier: QmdR6qLnZ7Kwf5cBaXG8QFQenEvRg9JNZeoPranVuGd63z - geographicAddress: - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - customerNumber: QmXvyML3AJUFpBbJqL5NVp7Vn7xNkuedTsSMk93duLCNW8 - customerIdentification: QmRY9AA4Uit2JRTxDzfzshrJdTK86Kf5HriA3dXDnihDmy - countryOfRegistration: QmeoTk6UPruEAYNbJEAHdQYc53ap9BXmpnPMcuvs8wutdr - naturalPerson: - dateAndPlaceOfBirth: - placeOfBirth: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - dateOfBirth: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - name: - - localNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - phoneticNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - localNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - phoneticNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nationalIdentification: - nationalIdentifierType: QmUKTg3aFJFhMz1o9gPqA3MgTRwd2LvDLwWTPHYUoMEYVi - countryOfIssue: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - registrationAuthority: QmV9KJMyT9RJzpYfhME5xNCZ4G67fEkzTpRMyJzp9kTNYk - nationalIdentifier: QmdR6qLnZ7Kwf5cBaXG8QFQenEvRg9JNZeoPranVuGd63z - geographicAddress: - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - countryOfResidence: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - customerNumber: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - customerIdentification: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - - legalPerson: - name: - legalPersonNameIdentifierType: QmPevsa5xdkxf6Lgt7f9YweRBdgseeAkWVaYyssKF3Q86e - legalPersonName: QmVXXj5BJchhqQTU27uEkeghYMnxR6aVjZxJP9jS6uCg9Q - nationalIdentification: - nationalIdentifierType: QmUKTg3aFJFhMz1o9gPqA3MgTRwd2LvDLwWTPHYUoMEYVi - countryOfIssue: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - registrationAuthority: QmV9KJMyT9RJzpYfhME5xNCZ4G67fEkzTpRMyJzp9kTNYk - nationalIdentifier: QmdR6qLnZ7Kwf5cBaXG8QFQenEvRg9JNZeoPranVuGd63z - geographicAddress: - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - customerNumber: QmXvyML3AJUFpBbJqL5NVp7Vn7xNkuedTsSMk93duLCNW8 - customerIdentification: QmRY9AA4Uit2JRTxDzfzshrJdTK86Kf5HriA3dXDnihDmy - countryOfRegistration: QmeoTk6UPruEAYNbJEAHdQYc53ap9BXmpnPMcuvs8wutdr - naturalPerson: - dateAndPlaceOfBirth: - placeOfBirth: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - dateOfBirth: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - name: - - localNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - phoneticNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - localNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - phoneticNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nationalIdentification: - nationalIdentifierType: QmUKTg3aFJFhMz1o9gPqA3MgTRwd2LvDLwWTPHYUoMEYVi - countryOfIssue: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - registrationAuthority: QmV9KJMyT9RJzpYfhME5xNCZ4G67fEkzTpRMyJzp9kTNYk - nationalIdentifier: QmdR6qLnZ7Kwf5cBaXG8QFQenEvRg9JNZeoPranVuGd63z - geographicAddress: - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - countryOfResidence: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - customerNumber: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - customerIdentification: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - accountNumber: - - QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - - QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - encrypted: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9... - originatorDid: did:key:z6Mkf12345Zabcdef12345 - beneficiaryVASPwebsite: https://www.beneficiaryvasp.com - travelRuleBehavior: true - transactionBlockchainInfo: - origin: 8.41132469470587E+47 - destination: 8.41132469470587E+47 - txHash: 6.685730843558756E+76 - beneficiaryProof: - attestation: I certify that ETH account 0x896B...0b9b belongs to me. - address: 0x896B...0b9b - proof: 0x3dd4a17a...ce4a2bcd1b - type: eip-191 - wallet_provider: Metamask - confirmed: true - url: https://example.com/uploaded_image.png - originatorVASPdid: did:ethr:0x44957e75d6ce4a5bf37aae117da86422c848f7c2 - beneficiaryDid: did:key:z6Mkf67890Zghijkl67890 - beneficiaryVASPdid: did:ethr:0x17fe2dd11a2daa7f6c1fdf22532a4763f963aea6 - customerRefId: abcdef - treatAsGrossAmount: false - networkStaking: TransactionRequest_networkStaking - autoStaking: true - operation: TRANSFER - replaceTxByHash: 00000000-0000-0000-0000-000000000000 - properties: - operation: - $ref: "#/components/schemas/TransactionOperation" - note: - description: "Custom note, not sent to the blockchain, to describe the transaction\ - \ at your Fireblocks workspace." - example: Ticket 123 - type: string - externalTxId: - description: |- - **This parameter will become required for all transactions on March 1, 2026.** - This parameter allows you to add a unique ID of your own to help prevent duplicate transactions. No specific format is required for this parameter. - After you submit a transaction with an external ID, Fireblocks will automatically reject all future transactions with the same ID. Using an external ID primarily helps in situations where, even though a submitted transaction responds with an error due to an internet outage, the transaction was still sent to and processed on the blockchain. Use the [Get a specific transaction by external transaction ID](https://developers.fireblocks.com/reference/gettransactionbyexternalid) endpoint to validate whether these transactions have been processed. - example: 00000000-0000-0000-0000-000000000000 - type: string - assetId: - description: "The ID of the asset to transfer, for `TRANSFER`, `MINT` or\ - \ `BURN` operations. [See the list of supported assets and their IDs on\ - \ Fireblocks.](https://developers.fireblocks.com/reference/get_supported-assets)" - example: ETH - type: string - x-fb-entity: asset - source: - $ref: "#/components/schemas/SourceTransferPeerPath" - destination: - $ref: "#/components/schemas/DestinationTransferPeerPath" - destinations: - description: "For UTXO based blockchains, you can send a single transaction\ - \ to multiple destinations." - items: - $ref: "#/components/schemas/TransactionRequestDestination" - type: array - amount: - $ref: "#/components/schemas/TransactionRequest_amount" - treatAsGrossAmount: - description: |- - "When set to `true`, the fee will be deducted from the requested amount." - - **Note**: This parameter can only be considered if a transaction’s asset is a base asset, such as ETH or MATIC. If the asset can’t be used for transaction fees, like USDC, this parameter is ignored and the fee is deducted from the relevant base asset wallet in the source account. - example: false - type: boolean - forceSweep: - description: |- - For Polkadot, Kusama and Westend transactions only. When set to true, Fireblocks will empty the asset wallet. - - **Note:** If set to true when the source account is exactly 1 DOT, the transaction will fail. Any amount more or less than 1 DOT succeeds. This is a Polkadot blockchain limitation. - example: false - type: boolean - feeLevel: - description: "For UTXO or EVM-based blockchains only. Defines the blockchain\ - \ fee level which will be payed for the transaction. Alternatively, specific\ - \ fee estimation parameters exist below." - enum: - - LOW - - MEDIUM - - HIGH - example: MEDIUM - type: string - fee: - $ref: "#/components/schemas/TransactionRequest_fee" - priorityFee: - $ref: "#/components/schemas/TransactionRequest_priorityFee" - failOnLowFee: - description: "When set to `true`, in case the current `MEDIUM` fee level\ - \ is higher than the one specified in the transaction, the transaction\ - \ will fail to avoid getting stuck with no confirmations." - type: boolean - maxFee: - description: The maximum fee (gas price or fee per byte) that should be - payed for the transaction. In case the current value of the requested - `feeLevel` is higher than this requested maximum fee. Represented by - a numeric string for accurate precision. - example: "120" - type: string - maxTotalFee: - description: For BTC-based blockchains only. The maximum fee (in the units - of the fee-paying asset) that should be paid for the transaction. - example: "88" - type: string - gasLimit: - $ref: "#/components/schemas/TransactionRequest_gasLimit" - gasPrice: - $ref: "#/components/schemas/TransactionRequest_gasPrice" - networkFee: - $ref: "#/components/schemas/TransactionRequest_networkFee" - replaceTxByHash: - description: "For EVM-based blockchains only. In case a transaction is stuck,\ - \ specify the hash of the stuck transaction to replace it by this transaction\ - \ with a higher fee, or to replace it with this transaction with a zero\ - \ fee and drop it from the blockchain." - example: 00000000-0000-0000-0000-000000000000 - type: string - extraParameters: - description: | - Additional protocol / operation specific key-value parameters: - - For UTXO-based blockchain input selection, add the key `inputsSelection` with the value set the [input selection structure.](https://developers.fireblocks.com/reference/transaction-objects#inputsselection) The inputs can be retrieved from the [Retrieve Unspent Inputs endpoint.](https://developers.fireblocks.com/reference/get_vault-accounts-vaultaccountid-assetid-unspent-inputs) - - For `RAW` operations, add the key `rawMessageData` with the value set to the [raw message data structure.](https://developers.fireblocks.com/reference/raw-signing-objects#rawmessagedata) - - For `CONTRACT_CALL` operations, add the key `contractCallData` with the value set to the Ethereum smart contract Application Binary Interface (ABI) payload. The Fireblocks [development libraries](https://developers.fireblocks.com/docs/ethereum-development#convenience-libraries) are recommended for building contract call transactions. - For **exchange compliance (e.g., Binance) and Travel Rule purposes**, include the key `piiData` containing a **custom JSON structure** with Personally Identifiable Information (PII) relevant to the transaction. This data must be fully **encrypted by the sender** before being submitted to the Fireblocks API. The recommended encryption method is **hybrid encryption** using AES-256-GCM for the payload and RSA-OAEP for key exchange, with the recipient exchange’s public key. [development libraries](https://developers.fireblocks.com/docs/a-developers-guide-to-constructing-encrypted-pii-messages-for-binance-via-fireblocks) - properties: {} - type: object - customerRefId: - description: The ID for AML providers to associate the owner of funds with - transactions. - example: abcdef - type: string - travelRuleMessage: - $ref: "#/components/schemas/TravelRuleCreateTransactionRequest" - travelRuleMessageId: - description: The ID of the travel rule message from any travel rule provider. - Used for travel rule linking functionality to associate transactions with - existing travel rule messages. - example: trm_12345678-1234-1234-1234-123456789012 - type: string - autoStaking: - deprecated: true - description: This feature is no longer supported. - type: boolean - networkStaking: - $ref: "#/components/schemas/TransactionRequest_networkStaking" - cpuStaking: - $ref: "#/components/schemas/TransactionRequest_networkStaking" - useGasless: - description: '- Override the default gasless configuration by sending true\false' - type: boolean - type: object - CreateTransactionResponse: - example: - systemMessages: - type: WARN - message: Slow transaction processing. Outgoing transactions might be stuck. - id: id - status: status - properties: - id: - description: The ID of the transaction. - type: string - status: - description: "The primary status of the transaction. For details, see [Primary\ - \ transaction statuses.] (https://developers.fireblocks.com/reference/primary-transaction-statuses)" - type: string - systemMessages: - $ref: "#/components/schemas/SystemMessageInfo" - type: object - TransactionFee: - example: - gasLimit: gasLimit - feePerByte: feePerByte - networkFee: networkFee - priorityFee: 1.4658129805029452 - l1Fee: l1Fee - baseFee: 6.027456183070403 - gasPrice: 0.8008281904610115 - maxFeePerGasDelta: maxFeePerGasDelta - properties: - feePerByte: - type: string - gasPrice: - type: number - gasLimit: - type: string - networkFee: - type: string - baseFee: - description: (optional) Base Fee according to EIP-1559 (ETH assets) - type: number - priorityFee: - description: (optional) Priority Fee according to EIP-1559 (ETH assets) - type: number - maxFeePerGasDelta: - description: Max Fee Per Gas Delta added only for EIP-1559 (ETH assets) - type: string - l1Fee: - description: Layer 1 fee for Layer 2 chains - type: string - type: object - FeeBreakdown: - oneOf: - - $ref: "#/components/schemas/FeeBreakdown_oneOf" - - $ref: "#/components/schemas/FeeBreakdown_oneOf_1" - EstimatedFeeDetails: - description: Optional detailed fee breakdown for high/medium/low estimates - example: - high: null - low: - totalFee: totalFee - priorityFee: priorityFee - baseFee: baseFee - rent: rent - medium: null - properties: - low: - $ref: "#/components/schemas/FeeBreakdown" - medium: - $ref: "#/components/schemas/FeeBreakdown" - high: - $ref: "#/components/schemas/FeeBreakdown" - type: object - EstimatedTransactionFeeResponse: - example: - high: - gasLimit: gasLimit - feePerByte: feePerByte - networkFee: networkFee - priorityFee: 1.4658129805029452 - l1Fee: l1Fee - baseFee: 6.027456183070403 - gasPrice: 0.8008281904610115 - maxFeePerGasDelta: maxFeePerGasDelta - low: - gasLimit: gasLimit - feePerByte: feePerByte - networkFee: networkFee - priorityFee: 1.4658129805029452 - l1Fee: l1Fee - baseFee: 6.027456183070403 - gasPrice: 0.8008281904610115 - maxFeePerGasDelta: maxFeePerGasDelta - feeDetails: - high: null - low: - totalFee: totalFee - priorityFee: priorityFee - baseFee: baseFee - rent: rent - medium: null - medium: - gasLimit: gasLimit - feePerByte: feePerByte - networkFee: networkFee - priorityFee: 1.4658129805029452 - l1Fee: l1Fee - baseFee: 6.027456183070403 - gasPrice: 0.8008281904610115 - maxFeePerGasDelta: maxFeePerGasDelta - properties: - low: - $ref: "#/components/schemas/TransactionFee" - medium: - $ref: "#/components/schemas/TransactionFee" - high: - $ref: "#/components/schemas/TransactionFee" - feeDetails: - $ref: "#/components/schemas/EstimatedFeeDetails" - required: - - high - - low - - medium - type: object - SetConfirmationsThresholdRequest: - example: - numOfConfirmations: 0.8008281904610115 - properties: - numOfConfirmations: - type: number - type: object - SetConfirmationsThresholdResponse: - example: - success: true - transactions: - - transactions - - transactions - properties: - success: - type: boolean - transactions: - items: - type: string - type: array - type: object - DropTransactionRequest: - example: - txId: txId - feeLevel: feeLevel - gasPrice: gasPrice - properties: - txId: - type: string - feeLevel: - type: string - gasPrice: - type: string - type: object - DropTransactionResponse: - example: - txStatus: txStatus - txId: txId - replacedTxHash: replacedTxHash - properties: - txStatus: - type: string - txId: - type: string - replacedTxHash: - type: string - type: object - CancelTransactionResponse: - example: - success: true - properties: - success: - type: boolean - type: object - FreezeTransactionResponse: - example: - success: true - properties: - success: - type: boolean - type: object - UnfreezeTransactionResponse: - example: - success: true - properties: - success: - type: boolean - type: object - ValidateAddressResponse: - example: - isValid: true - requiresTag: true - isActive: true - properties: - isValid: - type: boolean - isActive: - type: boolean - requiresTag: - type: boolean - type: object - RescanTransaction: - example: - assetId: BTC - txHash: 0x2446f1fd773fbb9f080e674b60c6a033c7ed7427b8b9413cf28a2a4a6da9b56c - properties: - txHash: - description: Blockchain TX hash - example: 0x2446f1fd773fbb9f080e674b60c6a033c7ed7427b8b9413cf28a2a4a6da9b56c - type: string - assetId: - description: "Asset symbol BTC,ETH)" - example: BTC - type: string - x-fb-entity: asset - type: object - RescanTransactionRequest: - items: - $ref: "#/components/schemas/RescanTransaction" - type: array - ValidatedTransactionsForRescan: - example: - baseAsset: baseAsset - txHashes: "['0x7b8b9413cf28a2a4a6da9b56c']" - networkProtocol: networkProtocol - properties: - baseAsset: - description: "Base asset symbol BTC_TEST, ETH_TEST5)" - type: string - x-fb-entity: asset - networkProtocol: - description: "Netowrk protocol of the blockchain (BTC, ETH)" - type: string - txHashes: - description: Blockchain TX hashes - example: "['0x7b8b9413cf28a2a4a6da9b56c']" - items: - type: string - type: array - type: object - ValidatedTransactionsForRescanResponse: - items: - $ref: "#/components/schemas/ValidatedTransactionsForRescan" - type: array - NetworkFee: - example: - feePerByte: feePerByte - networkFee: networkFee - priorityFee: priorityFee - baseFee: baseFee - gasPrice: gasPrice - properties: - feePerByte: - type: string - gasPrice: - type: string - networkFee: - type: string - baseFee: - description: (optional) Base Fee according to EIP-1559 (ETH assets) - type: string - priorityFee: - description: (optional) Priority Fee according to EIP-1559 (ETH assets) - type: string - type: object - EstimatedNetworkFeeResponse: - example: - high: - feePerByte: feePerByte - networkFee: networkFee - priorityFee: priorityFee - baseFee: baseFee - gasPrice: gasPrice - low: - feePerByte: feePerByte - networkFee: networkFee - priorityFee: priorityFee - baseFee: baseFee - gasPrice: gasPrice - medium: - feePerByte: feePerByte - networkFee: networkFee - priorityFee: priorityFee - baseFee: baseFee - gasPrice: gasPrice - properties: - low: - $ref: "#/components/schemas/NetworkFee" - medium: - $ref: "#/components/schemas/NetworkFee" - high: - $ref: "#/components/schemas/NetworkFee" - required: - - high - - low - - medium - type: object - PaymentAccountType: - enum: - - VAULT_ACCOUNT - - EXCHANGE_ACCOUNT - - FIAT_ACCOUNT - type: string - PaymentAccount: - example: - id: id - type: VAULT_ACCOUNT - properties: - id: - type: string - type: - $ref: "#/components/schemas/PaymentAccountType" - required: - - id - - type - type: object - PayeeAccountType: - description: "- VAULT_ACCOUNT \ta native Fireblocks vault account\n- EXCHANGE_ACCOUNT\ - \ \ta third-party exchange account\n- INTERNAL_WALLET \ta whitelisted address\ - \ marked as internal to the workspace/organization\n- EXTERNAL_WALLET\ta whitelisted\ - \ address marked as external\n- NETWORK_CONNECTION\ta member of the Fireblocks\ - \ network\n- FIAT_ACCOUNT\ta third-party account of a fiat bank (Signature,\ - \ BCB, etc)\n" - enum: - - VAULT_ACCOUNT - - EXCHANGE_ACCOUNT - - INTERNAL_WALLET - - EXTERNAL_WALLET - - NETWORK_CONNECTION - - FIAT_ACCOUNT - type: string - PayeeAccount: - example: - id: id - type: VAULT_ACCOUNT - properties: - id: - type: string - type: - $ref: "#/components/schemas/PayeeAccountType" - required: - - id - - type - type: object - InstructionAmount: - example: - amount: amount - assetId: assetId - properties: - amount: - type: string - assetId: - type: string - required: - - amount - - assetId - type: object - PayoutInstruction: - example: - amount: - amount: amount - assetId: assetId - id: id - payeeAccount: - id: id - type: VAULT_ACCOUNT - properties: - id: - type: string - payeeAccount: - $ref: "#/components/schemas/PayeeAccount" - amount: - $ref: "#/components/schemas/InstructionAmount" - required: - - amount - - payeeAccount - type: object - CreatePayoutRequest: - example: - instructionSet: - - amount: - amount: amount - assetId: assetId - id: id - payeeAccount: - id: id - type: VAULT_ACCOUNT - - amount: - amount: amount - assetId: assetId - id: id - payeeAccount: - id: id - type: VAULT_ACCOUNT - paymentAccount: - id: id - type: VAULT_ACCOUNT - properties: - paymentAccount: - $ref: "#/components/schemas/PaymentAccount" - instructionSet: - items: - $ref: "#/components/schemas/PayoutInstruction" - type: array - required: - - instructionSet - - paymentAccount - type: object - PaymentAccountResponse: - example: - id: id - type: VAULT_ACCOUNT - properties: - id: - type: string - type: - $ref: "#/components/schemas/PaymentAccountType" - type: object - PayoutState: - description: | - - CREATED - payout instruction set created with all its details - - FILE_FOUND - new file found in the FTP - - REQUESTED - payout requested with all its details - - TRANSLATED - payout instruction account IDs identified and translated - - PROCESSING - payout instruction set executed and is processing - - SUBMITTED - transactions submitted for payout instructions - - FINALIZED - payout finished processing, all transactions processed successfully - - INSUFFICIENT_BALANCE - insufficient balance in the payment account (can be a temporary state) - - FAILED - one or more of the payout instructions failed - enum: - - CREATED - - FILE_FOUND - - REQUESTED - - TRANSLATED - - PROCESSING - - SUBMITTED - - FINALIZED - - INSUFFICIENT_BALANCE - - FAILED - type: string - PayoutStatus: - description: "- REQUESTED\tpayout requested with all its details\n- VERIFIED\t\ - payout instruction set details were verified\n- PROCESSING\tpayout instruction\ - \ set executed and is processing\n- FINALIZED\tpayout done (all payout instructions\ - \ completed successfully)\n- INSUFFICIENT_BALANCE\tinsufficient balance in\ - \ the payment account (can be a temporary state)\n- FAILED\tone or more of\ - \ the payout instructions failed\n" - enum: - - REGISTERED - - VERIFYING - - IN_PROGRESS - - DONE - - INSUFFICIENT_BALANCE - - FAILED - type: string - PayoutInitMethod: - enum: - - FILE - - API - type: string - PayeeAccountResponse: - example: - id: id - type: VAULT_ACCOUNT - properties: - id: - type: string - type: - $ref: "#/components/schemas/PayeeAccountType" - type: object - PayoutInstructionState: - description: "- NOT_STARTED\t- waiting to start\n- TRANSACTION_SENT - an underlying\ - \ transaction was sent\n- COMPLETED\t- completed successfully\n- FAILED -\ - \ failed\n- TRANSLATION_ERROR -lookup of the destination failed (due to changes\ - \ in the underlying whitelisted external wallet or similar)\n- SKIPPED- no\ - \ transaction(s) created for this instruction\n" - enum: - - NOT_STARTED - - TRANSACTION_SENT - - COMPLETED - - FAILED - - TRANSLATION_ERROR - - SKIPPED - type: string - Transaction: - example: - instructionId: instructionId - id: id - state: SUBMITTED - timestamp: 6.027456183070403 - properties: - id: - type: string - state: - enum: - - SUBMITTED - - QUEUED - - PENDING_AUTHORIZATION - - PENDING_SIGNATURE - - BROADCASTING - - PENDING_3RD_PARTY_MANUAL_APPROVAL - - PENDING_3RD_PARTY - - PENDING - - CONFIRMING - - CONFIRMED - - COMPLETED - - PARTIALLY_COMPLETED - - PENDING_AML_SCREENING - - CANCELLING - - CANCELLED - - REJECTED - - BLOCKED - - FAILED - - TIMEOUT - type: string - timestamp: - format: date-time - type: number - instructionId: - type: string - required: - - id - - state - type: object - PayoutInstructionResponse: - example: - amount: - amount: amount - assetId: assetId - id: id - state: NOT_STARTED - payeeAccount: - id: id - type: VAULT_ACCOUNT - transactions: - - instructionId: instructionId - id: id - state: SUBMITTED - timestamp: 6.027456183070403 - - instructionId: instructionId - id: id - state: SUBMITTED - timestamp: 6.027456183070403 - properties: - id: - type: string - payeeAccount: - $ref: "#/components/schemas/PayeeAccountResponse" - amount: - $ref: "#/components/schemas/InstructionAmount" - state: - $ref: "#/components/schemas/PayoutInstructionState" - transactions: - items: - $ref: "#/components/schemas/Transaction" - type: array - required: - - amount - - payeeAccount - - state - - transactions - type: object - PayoutResponse: - example: - createdAt: 0.8008281904610115 - initMethod: FILE - reasonOfFailure: reasonOfFailure - instructionSet: - - amount: - amount: amount - assetId: assetId - id: id - state: NOT_STARTED - payeeAccount: - id: id - type: VAULT_ACCOUNT - transactions: - - instructionId: instructionId - id: id - state: SUBMITTED - timestamp: 6.027456183070403 - - instructionId: instructionId - id: id - state: SUBMITTED - timestamp: 6.027456183070403 - - amount: - amount: amount - assetId: assetId - id: id - state: NOT_STARTED - payeeAccount: - id: id - type: VAULT_ACCOUNT - transactions: - - instructionId: instructionId - id: id - state: SUBMITTED - timestamp: 6.027456183070403 - - instructionId: instructionId - id: id - state: SUBMITTED - timestamp: 6.027456183070403 - state: CREATED - reportUrl: reportUrl - payoutId: payoutId - paymentAccount: - id: id - type: VAULT_ACCOUNT - status: REGISTERED - properties: - payoutId: - type: string - paymentAccount: - $ref: "#/components/schemas/PaymentAccountResponse" - createdAt: - type: number - state: - $ref: "#/components/schemas/PayoutState" - status: - $ref: "#/components/schemas/PayoutStatus" - reasonOfFailure: - description: "
    \n
  • INSUFFICIENT_BALANCE
  • \n
  • SOURCE_TRANSLATION
  • \n\ -
  • SOURCE_NOT_UNIQUE
  • \n
  • SOURCE_NOT_FOUND
  • \n
  • SOURCE_TYPE_NOT_SUPPORTED
  • \n\ -
  • EMPTY_SOURCE
  • \n
  • DESTINATION_TRANSLATION
  • \n
  • DESTINATION_NOT_UNIQUE
  • \n\ -
  • DESTINATION_NOT_FOUND
  • \n
  • EMPTY_DESTINATION
  • \n
  • PARSING\ - \
  • \n
  • UNKNOWN
  • \n
  • FIREBLOCKS_CLIENT
  • \n
  • TRANSACTION_SUBMISSION
  • \n\ -
\n" - type: string - initMethod: - $ref: "#/components/schemas/PayoutInitMethod" - instructionSet: - items: - $ref: "#/components/schemas/PayoutInstructionResponse" - type: array - reportUrl: - type: string - required: - - createdAt - - instructionSet - - paymentAccount - - payoutId - - state - - status - type: object - ErrorResponse: - example: - error: - type: INTERNAL - message: message - properties: - error: - $ref: "#/components/schemas/ErrorResponse_error" - required: - - error - type: object - DispatchPayoutResponse: - example: - payoutId: payoutId - properties: - payoutId: - type: string - required: - - payoutId - type: object - PreScreening: - properties: - enabled: - type: boolean - required: - - enabled - type: object - ConversionOperationType: - enum: - - CONVERSION - type: string - ConversionOperationConfigParams: - properties: - amount: - type: string - accountId: - type: string - srcAssetId: - type: string - destAssetId: - type: string - slippageBasisPoints: - maximum: 10000 - minimum: 0 - type: integer - required: - - destAssetId - type: object - CreateConversionConfigOperationRequest: - properties: - type: - $ref: "#/components/schemas/ConversionOperationType" - params: - $ref: "#/components/schemas/ConversionOperationConfigParams" - required: - - params - - type - type: object - TransferOperationType: - enum: - - TRANSFER - type: string - AccountType: - enum: - - EXCHANGE_ACCOUNT - - UNMANAGED_WALLET - - VAULT_ACCOUNT - - NETWORK_CONNECTION - - FIAT_ACCOUNT - type: string - Account: - properties: - accountId: - type: string - accountType: - $ref: "#/components/schemas/AccountType" - required: - - accountId - - accountType - type: object - OneTimeAddressAccount: - properties: - oneTimeAddress: - type: string - tag: - type: string - required: - - oneTimeAddress - type: object - Destination: - oneOf: - - $ref: "#/components/schemas/Account" - - $ref: "#/components/schemas/OneTimeAddressAccount" - TransferOperationConfigParams: - properties: - amount: - type: string - assetId: - type: string - source: - $ref: "#/components/schemas/Account" - destination: - $ref: "#/components/schemas/Destination" - required: - - destination - type: object - CreateTransferConfigOperationRequest: - properties: - type: - $ref: "#/components/schemas/TransferOperationType" - params: - $ref: "#/components/schemas/TransferOperationConfigParams" - required: - - params - - type - type: object - DisbursementOperationType: - enum: - - DISBURSEMENT - type: string - DisbursementAmountInstruction: - properties: - payeeAccount: - $ref: "#/components/schemas/Destination" - assetId: - type: string - amount: - type: string - required: - - amount - - assetId - - payeeAccount - type: object - DisbursementPercentageInstruction: - properties: - payeeAccount: - $ref: "#/components/schemas/Destination" - assetId: - type: string - percentage: - type: string - required: - - assetId - - payeeAccount - - percentage - type: object - DisbursementInstruction: - oneOf: - - $ref: "#/components/schemas/DisbursementAmountInstruction" - - $ref: "#/components/schemas/DisbursementPercentageInstruction" - DisbursementOperationConfigParams: - properties: - paymentAccount: - $ref: "#/components/schemas/Account" - instructionSet: - items: - $ref: "#/components/schemas/DisbursementInstruction" - type: array - required: - - instructionSet - type: object - CreateDisbursementConfigOperationRequest: - properties: - type: - $ref: "#/components/schemas/DisbursementOperationType" - params: - $ref: "#/components/schemas/DisbursementOperationConfigParams" - required: - - params - - type - type: object - CreateConfigOperationRequest: - oneOf: - - $ref: "#/components/schemas/CreateConversionConfigOperationRequest" - - $ref: "#/components/schemas/CreateTransferConfigOperationRequest" - - $ref: "#/components/schemas/CreateDisbursementConfigOperationRequest" - CorrelationData: - oneOf: - - additionalProperties: - type: string - type: object - - type: string - x-internal: true - CreateWorkflowConfigurationRequest: - properties: - configName: - type: string - preScreening: - $ref: "#/components/schemas/PreScreening" - configOperations: - items: - $ref: "#/components/schemas/CreateConfigOperationRequest" - type: array - externalCorrelationData: - $ref: "#/components/schemas/CorrelationData" - required: - - configName - - configOperations - type: object - x-internal: true - WorkflowConfigStatus: - enum: - - PENDING - - VALIDATION_IN_PROGRESS - - VALIDATION_FAILED - - READY_FOR_EXECUTION - type: string - ConfigOperationStatus: - enum: - - PENDING - - VALIDATION_IN_PROGRESS - - READY_FOR_EXECUTION - - VALIDATION_FAILED - type: string - ConversionValidationFailure: - properties: - reason: - enum: - - ACCOUNT_NOT_FOUND - - ACCOUNT_TYPE_NOT_SUPPORTED - - INSUFFICIENT_BALANCE - - ASSET_NOT_FOUND - - ASSETS_CONTINUITY_MISMATCH - - EXCHANGE_BASKETS_MISMATCH - - ACCOUNTS_CONTINUITY_MISMATCH - - ONE_TIME_ADDRESS_CONTINUITY_NOT_ALLOWED - - EQUAL_ACCOUNTS_NOT_ALLOWED - - EQUAL_ASSETS_NOT_ALLOWED - - INVALID_AMOUNT - - UNMANAGED_WALLET_AS_SOURCE_NOT_ALLOWED - - MANAGED_OPERATION_PARAMS_INVALID_SCHEMA - - ACCOUNT_IS_NOT_EXCHANGE - - UNSUPPORTED_TRADING_METHOD - - ASSETS_CAN_NOT_CONVERTED - type: string - data: - additionalProperties: {} - type: object - required: - - reason - type: object - ConversionConfigOperation: - properties: - operationId: - type: string - type: - $ref: "#/components/schemas/ConversionOperationType" - params: - $ref: "#/components/schemas/ConversionOperationConfigParams" - status: - $ref: "#/components/schemas/ConfigOperationStatus" - validationFailure: - $ref: "#/components/schemas/ConversionValidationFailure" - required: - - operationId - - params - - status - - type - type: object - TransferValidationFailure: - properties: - reason: - enum: - - ACCOUNT_NOT_FOUND - - ACCOUNT_TYPE_NOT_SUPPORTED - - INSUFFICIENT_BALANCE - - ASSET_NOT_FOUND - - ASSETS_CONTINUITY_MISMATCH - - EXCHANGE_BASKETS_MISMATCH - - ACCOUNTS_CONTINUITY_MISMATCH - - ONE_TIME_ADDRESS_CONTINUITY_NOT_ALLOWED - - EQUAL_ACCOUNTS_NOT_ALLOWED - - EQUAL_ASSETS_NOT_ALLOWED - - INVALID_AMOUNT - - UNMANAGED_WALLET_AS_SOURCE_NOT_ALLOWED - - MANAGED_OPERATION_PARAMS_INVALID_SCHEMA - type: string - data: - additionalProperties: true - type: object - required: - - reason - type: object - TransferConfigOperation: - properties: - operationId: - type: string - type: - $ref: "#/components/schemas/TransferOperationType" - params: - $ref: "#/components/schemas/TransferOperationConfigParams" - status: - $ref: "#/components/schemas/ConfigOperationStatus" - validationFailure: - $ref: "#/components/schemas/TransferValidationFailure" - required: - - operationId - - params - - status - - type - type: object - DisbursementValidationFailure: - properties: - reason: - enum: - - ACCOUNT_NOT_FOUND - - ACCOUNT_TYPE_NOT_SUPPORTED - - INSUFFICIENT_BALANCE - - ASSET_NOT_FOUND - - ASSETS_CONTINUITY_MISMATCH - - EXCHANGE_BASKETS_MISMATCH - - ACCOUNTS_CONTINUITY_MISMATCH - - ONE_TIME_ADDRESS_CONTINUITY_NOT_ALLOWED - - EQUAL_ACCOUNTS_NOT_ALLOWED - - EQUAL_ASSETS_NOT_ALLOWED - - INVALID_AMOUNT - - UNMANAGED_WALLET_AS_SOURCE_NOT_ALLOWED - - MANAGED_OPERATION_PARAMS_INVALID_SCHEMA - - INSTRUCTIONS_EXCEED_HUNDRED_PERCENT - - INSTRUCTIONS_ARRAY_EMPTY - type: string - data: - additionalProperties: {} - type: object - required: - - reason - type: object - DisbursementConfigOperation: - properties: - operationId: - type: string - type: - $ref: "#/components/schemas/DisbursementOperationType" - params: - $ref: "#/components/schemas/DisbursementOperationConfigParams" - status: - $ref: "#/components/schemas/ConfigOperationStatus" - validationFailure: - $ref: "#/components/schemas/DisbursementValidationFailure" - required: - - operationId - - params - - status - - type - type: object - ConfigOperation: - oneOf: - - $ref: "#/components/schemas/ConversionConfigOperation" - - $ref: "#/components/schemas/TransferConfigOperation" - - $ref: "#/components/schemas/DisbursementConfigOperation" - WorkflowConfiguration: - properties: - configId: - type: string - configName: - type: string - preScreening: - $ref: "#/components/schemas/PreScreening" - status: - $ref: "#/components/schemas/WorkflowConfigStatus" - createdAt: - type: number - configOperations: - items: - $ref: "#/components/schemas/ConfigOperation" - type: array - externalCorrelationData: - $ref: "#/components/schemas/CorrelationData" - required: - - configId - - configName - - configOperations - - createdAt - - status - type: object - x-internal: true - WorkflowConfigurationId: - properties: - configId: - type: string - required: - - configId - type: object - ConversionOperationExecutionParams: - properties: - configOperationId: - type: string - executionParams: - $ref: "#/components/schemas/ConversionOperationExecutionParams_executionParams" - required: - - configOperationId - type: object - TransferOperationExecutionParams: - properties: - configOperationId: - type: string - executionParams: - $ref: "#/components/schemas/TransferOperationExecutionParams_executionParams" - required: - - configOperationId - type: object - DisbursementOperationExecutionParams: - properties: - configOperationId: - type: string - executionParams: - $ref: "#/components/schemas/DisbursementOperationExecutionParams_executionParams" - required: - - configOperationId - type: object - CreateWorkflowExecutionRequest: - properties: - configId: - type: string - preScreening: - $ref: "#/components/schemas/PreScreening" - params: - items: - $ref: "#/components/schemas/CreateWorkflowExecutionRequest_params_inner" - type: array - externalCorrelationData: - $ref: "#/components/schemas/CorrelationData" - required: - - configId - - params - type: object - x-internal: true - ConfigConversionOperationSnapshot: - properties: - operationId: - type: string - type: - $ref: "#/components/schemas/ConversionOperationType" - params: - $ref: "#/components/schemas/ConversionOperationConfigParams" - required: - - operationId - - params - - type - type: object - ConfigTransferOperationSnapshot: - properties: - operationId: - type: string - type: - $ref: "#/components/schemas/TransferOperationType" - params: - $ref: "#/components/schemas/TransferOperationConfigParams" - required: - - operationId - - params - - type - type: object - ConfigDisbursementOperationSnapshot: - properties: - operationId: - type: string - type: - $ref: "#/components/schemas/DisbursementOperationType" - params: - $ref: "#/components/schemas/DisbursementOperationConfigParams" - required: - - operationId - - params - - type - type: object - ConfigOperationSnapshot: - oneOf: - - $ref: "#/components/schemas/ConfigConversionOperationSnapshot" - - $ref: "#/components/schemas/ConfigTransferOperationSnapshot" - - $ref: "#/components/schemas/ConfigDisbursementOperationSnapshot" - WorkflowConfigurationSnapshot: - properties: - configId: - type: string - configName: - type: string - createdAt: - type: number - configOperations: - items: - $ref: "#/components/schemas/ConfigOperationSnapshot" - type: array - externalCorrelationData: - $ref: "#/components/schemas/CorrelationData" - required: - - configId - - configName - - configOperations - - createdAt - type: object - x-internal: true - ExecutionOperationStatus: - enum: - - PENDING - - VALIDATION_IN_PROGRESS - - VALIDATION_FAILED - - VALIDATION_COMPLETED - - PREVIEW_REQUESTED - - PREVIEW_IN_PROGRESS - - PREVIEW_FAILED - - READY_FOR_LAUNCH - - EXECUTION_REQUESTED - - EXECUTION_IN_PROGRESS - - EXECUTION_COMPLETED - - EXECUTION_FAILED - type: string - ScreeningOperationType: - enum: - - SCREENING - type: string - ScreeningValidationFailure: - properties: - reason: - enum: - - SCREENING_DISABLED_IN_TENANT - type: string - data: - additionalProperties: {} - type: object - required: - - reason - type: object - ScreeningVerdict: - properties: - verdict: - enum: - - PASSED - - PASSED_WITH_ALERT - - REJECTED - - FAILED - - BYPASSED - type: string - executionOperationId: - type: string - account: - $ref: "#/components/schemas/Destination" - assetId: - type: string - amount: - type: string - matchedRule: - $ref: "#/components/schemas/ScreeningVerdict_matchedRule" - required: - - account - - amount - - assetId - - executionOperationId - - verdict - type: object - ScreeningOperationExecutionOutput: - properties: - verdicts: - items: - $ref: "#/components/schemas/ScreeningVerdict" - type: array - required: - - verdicts - type: object - ScreeningOperationFailure: - properties: - reason: - enum: - - AML_PROCESS_FAILED - - SCREENING_REJECTED - type: string - data: - $ref: "#/components/schemas/ScreeningOperationExecutionOutput" - required: - - reason - type: object - ScreeningOperationExecution: - properties: - output: - $ref: "#/components/schemas/ScreeningOperationExecutionOutput" - startedAt: - type: number - finishedAt: - type: number - failure: - $ref: "#/components/schemas/ScreeningOperationFailure" - required: - - startedAt - type: object - ExecutionScreeningOperation: - properties: - operationId: - type: string - status: - $ref: "#/components/schemas/ExecutionOperationStatus" - operationType: - $ref: "#/components/schemas/ScreeningOperationType" - validationFailure: - $ref: "#/components/schemas/ScreeningValidationFailure" - execution: - $ref: "#/components/schemas/ScreeningOperationExecution" - required: - - operationId - - operationType - - status - type: object - AssetAmount: - properties: - amount: - type: string - assetId: - type: string - required: - - amount - - assetId - type: object - ConversionOperationPreviewOutput: - properties: - amount: - $ref: "#/components/schemas/AssetAmount" - fee: - $ref: "#/components/schemas/AssetAmount" - conversionRate: - type: string - timeSeconds: - type: number - required: - - amount - - conversionRate - - fee - - timeSeconds - type: object - ConversionOperationFailure: - properties: - reason: - enum: - - INVALID_AMOUNT - - SLIPPAGE_EXCEEDED - - AMOUNT_TOO_SMALL - - INSUFFICIENT_FUNDS - type: string - data: - additionalProperties: {} - type: object - required: - - reason - type: object - ConversionOperationPreview: - properties: - input: - $ref: "#/components/schemas/ConversionOperationConfigParams" - output: - $ref: "#/components/schemas/ConversionOperationPreviewOutput" - failure: - $ref: "#/components/schemas/ConversionOperationFailure" - required: - - input - type: object - ConversionOperationExecutionOutput: - properties: - amount: - $ref: "#/components/schemas/AssetAmount" - fee: - $ref: "#/components/schemas/AssetAmount" - conversionRate: - type: string - required: - - amount - - conversionRate - - fee - type: object - ConversionOperationExecution: - properties: - input: - $ref: "#/components/schemas/ConversionOperationConfigParams" - output: - $ref: "#/components/schemas/ConversionOperationExecutionOutput" - startedAt: - type: number - finishedAt: - type: number - failure: - $ref: "#/components/schemas/ConversionOperationFailure" - required: - - input - - startedAt - type: object - ExecutionConversionOperation: - properties: - operationId: - type: string - status: - $ref: "#/components/schemas/ExecutionOperationStatus" - validationFailure: - $ref: "#/components/schemas/ConversionValidationFailure" - operationType: - $ref: "#/components/schemas/ConversionOperationType" - preview: - $ref: "#/components/schemas/ConversionOperationPreview" - execution: - $ref: "#/components/schemas/ConversionOperationExecution" - required: - - operationId - - operationType - - status type: object - TransferOperationPreviewOutput: - properties: - amount: - $ref: "#/components/schemas/AssetAmount" - fee: - $ref: "#/components/schemas/AssetAmount" - isSignRequired: - type: boolean - timeSeconds: - type: number - required: - - amount - - fee - - isSignRequired - - timeSeconds - type: object - TransferOperationFailure: - properties: - reason: - enum: - - INVALID_AMOUNT - - SUBMISSION_FAILED - - TRANSACTION_FAILED - type: string - data: - $ref: "#/components/schemas/TransferOperationFailure_data" - required: - - reason - type: object - TransferOperationPreview: - properties: - input: - $ref: "#/components/schemas/TransferOperationConfigParams" - output: - $ref: "#/components/schemas/TransferOperationPreviewOutput" - failure: - $ref: "#/components/schemas/TransferOperationFailure" - required: - - input - type: object - TransferOperationExecutionOutput: - properties: - amount: - $ref: "#/components/schemas/AssetAmount" - fee: - $ref: "#/components/schemas/AssetAmount" - required: - - amount - - fee - type: object - TransferOperationExecution: - properties: - input: - $ref: "#/components/schemas/TransferOperationConfigParams" - output: - $ref: "#/components/schemas/TransferOperationExecutionOutput" - txId: - type: string - startedAt: - type: number - finishedAt: - type: number - failure: - $ref: "#/components/schemas/TransferOperationFailure" - required: - - input - - startedAt - type: object - ExecutionTransferOperation: + VaultAsset: + example: + totalStakedCPU: 0.8008281904610115 + blockHash: blockHash + pendingRefundNetwork: pendingRefundNetwork + lockedAmount: lockedAmount + pending: pending + staked: staked + rewardsInfo: + pendingRewards: pendingRewards + available: available + frozen: frozen + selfStakedCPU: selfStakedCPU + totalStakedNetwork: totalStakedNetwork + total: total + balance: balance + blockHeight: blockHeight + selfStakedNetwork: selfStakedNetwork + pendingRefundCPU: pendingRefundCPU + id: id properties: - operationId: + id: type: string - status: - $ref: "#/components/schemas/ExecutionOperationStatus" - validationFailure: - $ref: "#/components/schemas/TransferValidationFailure" - operationType: - $ref: "#/components/schemas/TransferOperationType" - preview: - $ref: "#/components/schemas/TransferOperationPreview" - execution: - $ref: "#/components/schemas/TransferOperationExecution" - required: - - operationId - - operationType - - status - type: object - DisbursementOperationInput: - properties: - amount: + total: + description: "The total wallet balance. In EOS this value includes the network\ + \ balance, self staking and pending refund. For all other coins it is\ + \ the balance as it appears on the blockchain." type: string - paymentAccount: - $ref: "#/components/schemas/Account" - instructionSet: - items: - $ref: "#/components/schemas/DisbursementInstruction" - type: array - required: - - instructionSet - - paymentAccount - type: object - DisbursementInstructionOutput: - properties: - amount: - $ref: "#/components/schemas/AssetAmount" - fee: - $ref: "#/components/schemas/AssetAmount" - payeeAccount: - $ref: "#/components/schemas/Destination" - required: - - amount - - fee - - payeeAccount - type: object - DisbursementOperationPreviewOutput: - properties: - instructionSet: - items: - $ref: "#/components/schemas/DisbursementOperationPreviewOutput_instructionSet_inner" - type: array - required: - - instructionSet - type: object - OperationExecutionFailure: - properties: - reason: + balance: + deprecated: true + description: Deprecated - replaced by "total" type: string - data: - additionalProperties: {} - type: object - required: - - reason - type: object - DisbursementOperationPreview: - properties: - input: - $ref: "#/components/schemas/DisbursementOperationInput" - output: - $ref: "#/components/schemas/DisbursementOperationPreviewOutput" - failure: - $ref: "#/components/schemas/OperationExecutionFailure" - required: - - input - type: object - DisbursementOperationExecutionOutput: - properties: - instructionSet: - items: - $ref: "#/components/schemas/DisbursementInstructionOutput" - type: array - required: - - instructionSet - type: object - DisbursementOperationExecution: - properties: - input: - $ref: "#/components/schemas/DisbursementOperationInput" - output: - $ref: "#/components/schemas/DisbursementOperationExecutionOutput" - payoutId: + available: + description: Funds available for transfer. Equals the blockchain balance + minus any locked amounts type: string - startedAt: - type: number - finishedAt: - type: number - failure: - $ref: "#/components/schemas/OperationExecutionFailure" - required: - - input - - startedAt - type: object - ExecutionDisbursementOperation: - properties: - operationId: + pending: + description: The cumulative balance of all transactions pending to be cleared type: string - status: - $ref: "#/components/schemas/ExecutionOperationStatus" - validationFailure: - $ref: "#/components/schemas/DisbursementValidationFailure" - operationType: - $ref: "#/components/schemas/DisbursementOperationType" - preview: - $ref: "#/components/schemas/DisbursementOperationPreview" - execution: - $ref: "#/components/schemas/DisbursementOperationExecution" - required: - - operationId - - operationType - - status - type: object - WorkflowExecutionOperation: - oneOf: - - $ref: "#/components/schemas/ExecutionScreeningOperation" - - $ref: "#/components/schemas/ExecutionConversionOperation" - - $ref: "#/components/schemas/ExecutionTransferOperation" - - $ref: "#/components/schemas/ExecutionDisbursementOperation" - WorkflowExecution: - properties: - executionId: + frozen: + description: The cumulative frozen balance type: string - preScreening: - $ref: "#/components/schemas/PreScreening" - configSnapshot: - $ref: "#/components/schemas/WorkflowConfigurationSnapshot" - executionOperations: - items: - $ref: "#/components/schemas/WorkflowExecutionOperation" - type: array - status: - enum: - - PENDING - - VALIDATION_IN_PROGRESS - - VALIDATION_FAILED - - VALIDATION_COMPLETED - - PREVIEW_IN_PROGRESS - - PREVIEW_FAILED - - READY_FOR_LAUNCH - - EXECUTION_IN_PROGRESS - - EXECUTION_COMPLETED - - EXECUTION_FAILED + lockedAmount: + description: Funds in outgoing transactions that are not yet published to + the network type: string - triggeredBy: + staked: + description: Staked balance type: string - triggeredAt: - type: number - finishedAt: + totalStakedCPU: + description: Deprecated type: number - externalCorrelationData: - $ref: "#/components/schemas/CorrelationData" - required: - - configSnapshot - - executionId - - executionOperations - - status - type: object - x-internal: true - GasStationConfigurationResponse: - example: - gasThreshold: gasThreshold - maxGasPrice: maxGasPrice - gasCap: gasCap - properties: - gasThreshold: + totalStakedNetwork: + description: Deprecated type: string - gasCap: + selfStakedCPU: + description: Deprecated type: string - maxGasPrice: - nullable: true + selfStakedNetwork: + description: Deprecated type: string - type: object - GasStationPropertiesResponse: - example: - balance: "{}" - configuration: - gasThreshold: gasThreshold - maxGasPrice: maxGasPrice - gasCap: gasCap - properties: - balance: - type: object - configuration: - $ref: "#/components/schemas/GasStationConfigurationResponse" - type: object - GasStationConfiguration: - example: - gasThreshold: gasThreshold - maxGasPrice: maxGasPrice - gasCap: gasCap - properties: - gasThreshold: + pendingRefundCPU: + description: Deprecated type: string - gasCap: + pendingRefundNetwork: + description: Deprecated type: string - maxGasPrice: + blockHeight: type: string + blockHash: + type: string + rewardsInfo: + $ref: "#/components/schemas/RewardsInfo" type: object - EditGasStationConfigurationResponse: - example: - success: true - properties: - success: - description: Indicates whether editing the gas station configuration was - successful - type: boolean - required: - - success - type: object - UserGroupResponse: + VaultAccount: example: + assets: + - totalStakedCPU: 0.8008281904610115 + blockHash: blockHash + pendingRefundNetwork: pendingRefundNetwork + lockedAmount: lockedAmount + pending: pending + staked: staked + rewardsInfo: + pendingRewards: pendingRewards + available: available + frozen: frozen + selfStakedCPU: selfStakedCPU + totalStakedNetwork: totalStakedNetwork + total: total + balance: balance + blockHeight: blockHeight + selfStakedNetwork: selfStakedNetwork + pendingRefundCPU: pendingRefundCPU + id: id + - totalStakedCPU: 0.8008281904610115 + blockHash: blockHash + pendingRefundNetwork: pendingRefundNetwork + lockedAmount: lockedAmount + pending: pending + staked: staked + rewardsInfo: + pendingRewards: pendingRewards + available: available + frozen: frozen + selfStakedCPU: selfStakedCPU + totalStakedNetwork: totalStakedNetwork + total: total + balance: balance + blockHeight: blockHeight + selfStakedNetwork: selfStakedNetwork + pendingRefundCPU: pendingRefundCPU + id: id + hiddenOnUI: true name: name id: id - memberIds: - - memberIds - - memberIds - status: status + customerRefId: customerRefId + autoFuel: true properties: id: type: string name: type: string - status: - type: string - memberIds: + assets: items: - type: string + $ref: "#/components/schemas/VaultAsset" type: array + hiddenOnUI: + type: boolean + customerRefId: + type: string + autoFuel: + type: boolean type: object - UserGroupsResponse: + GetVaultAccountsResponse: items: - $ref: "#/components/schemas/UserGroupResponse" + $ref: "#/components/schemas/VaultAccount" type: array - UserGroupCreateRequest: + CreateVaultAccountRequest: example: - groupName: groupName - memberIds: - - memberIds - - memberIds + hiddenOnUI: true + name: name + customerRefId: customerRefId + autoFuel: true properties: - groupName: + name: + description: Account Name type: string - memberIds: + hiddenOnUI: + description: "Optional - if true, the created account and all related transactions\ + \ will not be shown on Fireblocks console" + type: boolean + customerRefId: + description: Optional - Sets a customer reference ID + type: string + autoFuel: + description: Optional - Sets the autoFuel property of the vault account + type: boolean + type: object + CreateMultipleAccountsRequest: + example: + count: 0 + assetIds: + - assetIds + - assetIds + properties: + count: + description: Count + type: integer + assetIds: + description: Array of asset IDs items: type: string type: array type: object - CreateUserGroupResponse: + JobCreated: example: - name: name - id: id - memberIds: - - memberIds - - memberIds - status: status + jobId: jobId + properties: + jobId: + type: string + type: object + VaultAccountsPagedResponse: + example: + previousUrl: previousUrl + paging: + before: before + after: after + accounts: + - assets: + - totalStakedCPU: 0.8008281904610115 + blockHash: blockHash + pendingRefundNetwork: pendingRefundNetwork + lockedAmount: lockedAmount + pending: pending + staked: staked + rewardsInfo: + pendingRewards: pendingRewards + available: available + frozen: frozen + selfStakedCPU: selfStakedCPU + totalStakedNetwork: totalStakedNetwork + total: total + balance: balance + blockHeight: blockHeight + selfStakedNetwork: selfStakedNetwork + pendingRefundCPU: pendingRefundCPU + id: id + - totalStakedCPU: 0.8008281904610115 + blockHash: blockHash + pendingRefundNetwork: pendingRefundNetwork + lockedAmount: lockedAmount + pending: pending + staked: staked + rewardsInfo: + pendingRewards: pendingRewards + available: available + frozen: frozen + selfStakedCPU: selfStakedCPU + totalStakedNetwork: totalStakedNetwork + total: total + balance: balance + blockHeight: blockHeight + selfStakedNetwork: selfStakedNetwork + pendingRefundCPU: pendingRefundCPU + id: id + hiddenOnUI: true + name: name + id: id + customerRefId: customerRefId + autoFuel: true + - assets: + - totalStakedCPU: 0.8008281904610115 + blockHash: blockHash + pendingRefundNetwork: pendingRefundNetwork + lockedAmount: lockedAmount + pending: pending + staked: staked + rewardsInfo: + pendingRewards: pendingRewards + available: available + frozen: frozen + selfStakedCPU: selfStakedCPU + totalStakedNetwork: totalStakedNetwork + total: total + balance: balance + blockHeight: blockHeight + selfStakedNetwork: selfStakedNetwork + pendingRefundCPU: pendingRefundCPU + id: id + - totalStakedCPU: 0.8008281904610115 + blockHash: blockHash + pendingRefundNetwork: pendingRefundNetwork + lockedAmount: lockedAmount + pending: pending + staked: staked + rewardsInfo: + pendingRewards: pendingRewards + available: available + frozen: frozen + selfStakedCPU: selfStakedCPU + totalStakedNetwork: totalStakedNetwork + total: total + balance: balance + blockHeight: blockHeight + selfStakedNetwork: selfStakedNetwork + pendingRefundCPU: pendingRefundCPU + id: id + hiddenOnUI: true + name: name + id: id + customerRefId: customerRefId + autoFuel: true + nextUrl: nextUrl properties: - id: - type: string - name: - type: string - memberIds: + accounts: items: - type: string + $ref: "#/components/schemas/VaultAccount" type: array - status: + paging: + $ref: "#/components/schemas/VaultAccountsPagedResponse_paging" + previousUrl: + type: string + nextUrl: type: string type: object - UserGroupUpdateRequest: + UpdateVaultAccountRequest: example: - groupName: groupName - memberIds: - - memberIds - - memberIds + name: name properties: - groupName: + name: + description: Account Name type: string - memberIds: - items: - type: string - type: array type: object - UserGroupCreateResponse: + RenameVaultAccountResponse: example: name: name id: id - memberIds: - - memberIds - - memberIds - status: status properties: name: + description: The new name of the vault account type: string id: - type: string - memberIds: - items: - type: string - type: array - status: + description: The ID of the vault account type: string type: object - UserResponse: + AssetWallet: example: - firstName: firstName - lastName: lastName - role: role - id: id - email: email - enabled: true + blockHash: blockHash + total: total + lockedAmount: lockedAmount + blockHeight: blockHeight + vaultId: vaultId + assetId: assetId + pending: pending + staked: staked + available: available + creationTimestamp: creationTimestamp + frozen: frozen properties: - id: + vaultId: + description: "ID of the vault account. You can [get the vault account by\ + \ this ID](https://developers.fireblocks.com/reference/get_vault-accounts-vaultaccountid)\ + \ to retrieve vault properties such as its name, auto fueling, hidden\ + \ on UI or customer reference ID." type: string - firstName: + assetId: + description: "ID of the asset. You can get more information about this asset\ + \ by using the [supported assets API](https://developers.fireblocks.com/reference/get_supported-assets)" type: string - lastName: + available: + description: "Available balance, available to use in a transaction." type: string - role: + total: + description: "Total balance at the asset wallet, as seen at the blockchain\ + \ explorers. This includes balance available, and any kind of unavailable\ + \ balance such as locked, frozen, or others." type: string - email: + pending: + description: Pending balance. type: string - enabled: - type: boolean - type: object - GetUsersResponse: - items: - $ref: "#/components/schemas/UserResponse" - type: array - AuditLogData: - example: - createdAt: 6.027456183070403 - subject: subject - tenantId: tenantId - id: id - event: event - user: user - userId: userId - timestamp: 0.8008281904610115 - properties: - id: - description: The unique identifier of the audit log + staked: + description: Staked balance. type: string - timestamp: - description: The timestamp of the audit log - type: number - createdAt: - description: The timestamp of the audit log creation - type: number - user: - description: The user who performed the action + frozen: + description: Funds frozen due to the anti-money laundering policy at this + workspace. type: string - subject: - description: The subject of the action + lockedAmount: + description: Locked balance. type: string - event: - description: The event that was performed + blockHeight: + description: The height (number) of the block of the balance. Can by empty. type: string - tenantId: - description: The tenant ID of the audit log + blockHash: + description: The hash of the block of the balance. Can by empty. type: string - userId: - description: The user ID of the audit log + creationTimestamp: + description: Unix timestamp of the time the asset wallet was created. type: string type: object - AuditLogsData: - items: - $ref: "#/components/schemas/AuditLogData" - type: array - GetAuditLogsResponse: + PaginatedAssetWalletResponse: example: - cursor: cursor - total: 1.4658129805029452 - data: - - createdAt: 6.027456183070403 - subject: subject - tenantId: tenantId - id: id - event: event - user: user - userId: userId - timestamp: 0.8008281904610115 - - createdAt: 6.027456183070403 - subject: subject - tenantId: tenantId - id: id - event: event - user: user - userId: userId - timestamp: 0.8008281904610115 + assetWallets: + - blockHash: blockHash + total: total + lockedAmount: lockedAmount + blockHeight: blockHeight + vaultId: vaultId + assetId: assetId + pending: pending + staked: staked + available: available + creationTimestamp: creationTimestamp + frozen: frozen + - blockHash: blockHash + total: total + lockedAmount: lockedAmount + blockHeight: blockHeight + vaultId: vaultId + assetId: assetId + pending: pending + staked: staked + available: available + creationTimestamp: creationTimestamp + frozen: frozen + paging: + before: before + after: after properties: - data: - items: - $ref: "#/components/schemas/AuditLogData" - type: array - cursor: - description: The next id to start fetch audit logs from - nullable: true - type: string - total: - description: The total number of audit logs - type: number - type: object - AddCollateralRequestBody: - example: - isSrcCollateral: true - transactionRequest: - note: Ticket 123 - priorityFee: "2" - networkFee: TransactionRequest_networkFee - fee: TransactionRequest_fee - destination: - oneTimeAddress: - address: address - tag: tag - walletId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - isCollateral: true - name: name - subType: null - id: id - type: null - extraParameters: "{}" - source: - walletId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - isCollateral: true - name: name - subType: BINANCE - id: id - type: VAULT_ACCOUNT - maxFee: "120" - travelRuleMessageId: trm_12345678-1234-1234-1234-123456789012 - externalTxId: 00000000-0000-0000-0000-000000000000 - cpuStaking: null - gasLimit: "21000" - failOnLowFee: true - assetId: ETH - feeLevel: MEDIUM - maxTotalFee: "88" - gasPrice: TransactionRequest_gasPrice - forceSweep: false - amount: "0.02" - destinations: - - amount: amount - destination: - oneTimeAddress: - address: address - tag: tag - walletId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - isCollateral: true - name: name - subType: null - id: id - type: null - customerRefId: abcdef - travelRuleMessageId: trm_12345678-1234-1234-1234-123456789012 - - amount: amount - destination: - oneTimeAddress: - address: address - tag: tag - walletId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - isCollateral: true - name: name - subType: null - id: id - type: null - customerRefId: abcdef - travelRuleMessageId: trm_12345678-1234-1234-1234-123456789012 - useGasless: true - travelRuleMessage: - originatorRef: ORG123456 - travelRuleBehaviorRef: TRB987654 - originatorProof: - attestation: I certify that ETH account 0x896B...0b9b belongs to me. - address: 0x896B...0b9b - proof: 0x3dd4a17a...ce4a2bcd1b - type: eip-191 - wallet_provider: Metamask - confirmed: true - url: https://example.com/uploaded_image.png - isNonCustodial: true - beneficiaryRef: BEN654321 - originator: - originatorPersons: - - legalPerson: - name: - legalPersonNameIdentifierType: QmPevsa5xdkxf6Lgt7f9YweRBdgseeAkWVaYyssKF3Q86e - legalPersonName: QmVXXj5BJchhqQTU27uEkeghYMnxR6aVjZxJP9jS6uCg9Q - nationalIdentification: - nationalIdentifierType: QmUKTg3aFJFhMz1o9gPqA3MgTRwd2LvDLwWTPHYUoMEYVi - countryOfIssue: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - registrationAuthority: QmV9KJMyT9RJzpYfhME5xNCZ4G67fEkzTpRMyJzp9kTNYk - nationalIdentifier: QmdR6qLnZ7Kwf5cBaXG8QFQenEvRg9JNZeoPranVuGd63z - geographicAddress: - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - customerNumber: QmXvyML3AJUFpBbJqL5NVp7Vn7xNkuedTsSMk93duLCNW8 - customerIdentification: QmRY9AA4Uit2JRTxDzfzshrJdTK86Kf5HriA3dXDnihDmy - countryOfRegistration: QmeoTk6UPruEAYNbJEAHdQYc53ap9BXmpnPMcuvs8wutdr - naturalPerson: - dateAndPlaceOfBirth: - placeOfBirth: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - dateOfBirth: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - name: - - localNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - phoneticNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - localNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - phoneticNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nationalIdentification: - nationalIdentifierType: QmUKTg3aFJFhMz1o9gPqA3MgTRwd2LvDLwWTPHYUoMEYVi - countryOfIssue: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - registrationAuthority: QmV9KJMyT9RJzpYfhME5xNCZ4G67fEkzTpRMyJzp9kTNYk - nationalIdentifier: QmdR6qLnZ7Kwf5cBaXG8QFQenEvRg9JNZeoPranVuGd63z - geographicAddress: - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - countryOfResidence: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - customerNumber: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - customerIdentification: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - - legalPerson: - name: - legalPersonNameIdentifierType: QmPevsa5xdkxf6Lgt7f9YweRBdgseeAkWVaYyssKF3Q86e - legalPersonName: QmVXXj5BJchhqQTU27uEkeghYMnxR6aVjZxJP9jS6uCg9Q - nationalIdentification: - nationalIdentifierType: QmUKTg3aFJFhMz1o9gPqA3MgTRwd2LvDLwWTPHYUoMEYVi - countryOfIssue: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - registrationAuthority: QmV9KJMyT9RJzpYfhME5xNCZ4G67fEkzTpRMyJzp9kTNYk - nationalIdentifier: QmdR6qLnZ7Kwf5cBaXG8QFQenEvRg9JNZeoPranVuGd63z - geographicAddress: - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - customerNumber: QmXvyML3AJUFpBbJqL5NVp7Vn7xNkuedTsSMk93duLCNW8 - customerIdentification: QmRY9AA4Uit2JRTxDzfzshrJdTK86Kf5HriA3dXDnihDmy - countryOfRegistration: QmeoTk6UPruEAYNbJEAHdQYc53ap9BXmpnPMcuvs8wutdr - naturalPerson: - dateAndPlaceOfBirth: - placeOfBirth: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - dateOfBirth: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - name: - - localNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - phoneticNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - localNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - phoneticNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nationalIdentification: - nationalIdentifierType: QmUKTg3aFJFhMz1o9gPqA3MgTRwd2LvDLwWTPHYUoMEYVi - countryOfIssue: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - registrationAuthority: QmV9KJMyT9RJzpYfhME5xNCZ4G67fEkzTpRMyJzp9kTNYk - nationalIdentifier: QmdR6qLnZ7Kwf5cBaXG8QFQenEvRg9JNZeoPranVuGd63z - geographicAddress: - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - countryOfResidence: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - customerNumber: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - customerIdentification: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - beneficiaryPersons: - - legalPerson: - name: - legalPersonNameIdentifierType: QmPevsa5xdkxf6Lgt7f9YweRBdgseeAkWVaYyssKF3Q86e - legalPersonName: QmVXXj5BJchhqQTU27uEkeghYMnxR6aVjZxJP9jS6uCg9Q - nationalIdentification: - nationalIdentifierType: QmUKTg3aFJFhMz1o9gPqA3MgTRwd2LvDLwWTPHYUoMEYVi - countryOfIssue: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - registrationAuthority: QmV9KJMyT9RJzpYfhME5xNCZ4G67fEkzTpRMyJzp9kTNYk - nationalIdentifier: QmdR6qLnZ7Kwf5cBaXG8QFQenEvRg9JNZeoPranVuGd63z - geographicAddress: - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - customerNumber: QmXvyML3AJUFpBbJqL5NVp7Vn7xNkuedTsSMk93duLCNW8 - customerIdentification: QmRY9AA4Uit2JRTxDzfzshrJdTK86Kf5HriA3dXDnihDmy - countryOfRegistration: QmeoTk6UPruEAYNbJEAHdQYc53ap9BXmpnPMcuvs8wutdr - naturalPerson: - dateAndPlaceOfBirth: - placeOfBirth: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - dateOfBirth: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - name: - - localNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - phoneticNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - localNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - phoneticNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nationalIdentification: - nationalIdentifierType: QmUKTg3aFJFhMz1o9gPqA3MgTRwd2LvDLwWTPHYUoMEYVi - countryOfIssue: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - registrationAuthority: QmV9KJMyT9RJzpYfhME5xNCZ4G67fEkzTpRMyJzp9kTNYk - nationalIdentifier: QmdR6qLnZ7Kwf5cBaXG8QFQenEvRg9JNZeoPranVuGd63z - geographicAddress: - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - countryOfResidence: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - customerNumber: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - customerIdentification: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - - legalPerson: - name: - legalPersonNameIdentifierType: QmPevsa5xdkxf6Lgt7f9YweRBdgseeAkWVaYyssKF3Q86e - legalPersonName: QmVXXj5BJchhqQTU27uEkeghYMnxR6aVjZxJP9jS6uCg9Q - nationalIdentification: - nationalIdentifierType: QmUKTg3aFJFhMz1o9gPqA3MgTRwd2LvDLwWTPHYUoMEYVi - countryOfIssue: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - registrationAuthority: QmV9KJMyT9RJzpYfhME5xNCZ4G67fEkzTpRMyJzp9kTNYk - nationalIdentifier: QmdR6qLnZ7Kwf5cBaXG8QFQenEvRg9JNZeoPranVuGd63z - geographicAddress: - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - customerNumber: QmXvyML3AJUFpBbJqL5NVp7Vn7xNkuedTsSMk93duLCNW8 - customerIdentification: QmRY9AA4Uit2JRTxDzfzshrJdTK86Kf5HriA3dXDnihDmy - countryOfRegistration: QmeoTk6UPruEAYNbJEAHdQYc53ap9BXmpnPMcuvs8wutdr - naturalPerson: - dateAndPlaceOfBirth: - placeOfBirth: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - dateOfBirth: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - name: - - localNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - phoneticNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - localNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - phoneticNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nationalIdentification: - nationalIdentifierType: QmUKTg3aFJFhMz1o9gPqA3MgTRwd2LvDLwWTPHYUoMEYVi - countryOfIssue: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - registrationAuthority: QmV9KJMyT9RJzpYfhME5xNCZ4G67fEkzTpRMyJzp9kTNYk - nationalIdentifier: QmdR6qLnZ7Kwf5cBaXG8QFQenEvRg9JNZeoPranVuGd63z - geographicAddress: - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - countryOfResidence: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - customerNumber: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - customerIdentification: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - accountNumber: - - QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - - QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - targetProtocol: GTR - originatorVASPname: Originator VASP Ltd. - beneficiaryVASPname: Beneficiary VASP Inc. - protocol: IVMS101 - skipBeneficiaryDataValidation: false - beneficiary: - originatorPersons: - - legalPerson: - name: - legalPersonNameIdentifierType: QmPevsa5xdkxf6Lgt7f9YweRBdgseeAkWVaYyssKF3Q86e - legalPersonName: QmVXXj5BJchhqQTU27uEkeghYMnxR6aVjZxJP9jS6uCg9Q - nationalIdentification: - nationalIdentifierType: QmUKTg3aFJFhMz1o9gPqA3MgTRwd2LvDLwWTPHYUoMEYVi - countryOfIssue: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - registrationAuthority: QmV9KJMyT9RJzpYfhME5xNCZ4G67fEkzTpRMyJzp9kTNYk - nationalIdentifier: QmdR6qLnZ7Kwf5cBaXG8QFQenEvRg9JNZeoPranVuGd63z - geographicAddress: - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - customerNumber: QmXvyML3AJUFpBbJqL5NVp7Vn7xNkuedTsSMk93duLCNW8 - customerIdentification: QmRY9AA4Uit2JRTxDzfzshrJdTK86Kf5HriA3dXDnihDmy - countryOfRegistration: QmeoTk6UPruEAYNbJEAHdQYc53ap9BXmpnPMcuvs8wutdr - naturalPerson: - dateAndPlaceOfBirth: - placeOfBirth: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - dateOfBirth: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - name: - - localNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - phoneticNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - localNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - phoneticNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nationalIdentification: - nationalIdentifierType: QmUKTg3aFJFhMz1o9gPqA3MgTRwd2LvDLwWTPHYUoMEYVi - countryOfIssue: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - registrationAuthority: QmV9KJMyT9RJzpYfhME5xNCZ4G67fEkzTpRMyJzp9kTNYk - nationalIdentifier: QmdR6qLnZ7Kwf5cBaXG8QFQenEvRg9JNZeoPranVuGd63z - geographicAddress: - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - countryOfResidence: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - customerNumber: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - customerIdentification: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - - legalPerson: - name: - legalPersonNameIdentifierType: QmPevsa5xdkxf6Lgt7f9YweRBdgseeAkWVaYyssKF3Q86e - legalPersonName: QmVXXj5BJchhqQTU27uEkeghYMnxR6aVjZxJP9jS6uCg9Q - nationalIdentification: - nationalIdentifierType: QmUKTg3aFJFhMz1o9gPqA3MgTRwd2LvDLwWTPHYUoMEYVi - countryOfIssue: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - registrationAuthority: QmV9KJMyT9RJzpYfhME5xNCZ4G67fEkzTpRMyJzp9kTNYk - nationalIdentifier: QmdR6qLnZ7Kwf5cBaXG8QFQenEvRg9JNZeoPranVuGd63z - geographicAddress: - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - customerNumber: QmXvyML3AJUFpBbJqL5NVp7Vn7xNkuedTsSMk93duLCNW8 - customerIdentification: QmRY9AA4Uit2JRTxDzfzshrJdTK86Kf5HriA3dXDnihDmy - countryOfRegistration: QmeoTk6UPruEAYNbJEAHdQYc53ap9BXmpnPMcuvs8wutdr - naturalPerson: - dateAndPlaceOfBirth: - placeOfBirth: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - dateOfBirth: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - name: - - localNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - phoneticNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - localNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - phoneticNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nationalIdentification: - nationalIdentifierType: QmUKTg3aFJFhMz1o9gPqA3MgTRwd2LvDLwWTPHYUoMEYVi - countryOfIssue: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - registrationAuthority: QmV9KJMyT9RJzpYfhME5xNCZ4G67fEkzTpRMyJzp9kTNYk - nationalIdentifier: QmdR6qLnZ7Kwf5cBaXG8QFQenEvRg9JNZeoPranVuGd63z - geographicAddress: - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - countryOfResidence: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - customerNumber: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - customerIdentification: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - beneficiaryPersons: - - legalPerson: - name: - legalPersonNameIdentifierType: QmPevsa5xdkxf6Lgt7f9YweRBdgseeAkWVaYyssKF3Q86e - legalPersonName: QmVXXj5BJchhqQTU27uEkeghYMnxR6aVjZxJP9jS6uCg9Q - nationalIdentification: - nationalIdentifierType: QmUKTg3aFJFhMz1o9gPqA3MgTRwd2LvDLwWTPHYUoMEYVi - countryOfIssue: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - registrationAuthority: QmV9KJMyT9RJzpYfhME5xNCZ4G67fEkzTpRMyJzp9kTNYk - nationalIdentifier: QmdR6qLnZ7Kwf5cBaXG8QFQenEvRg9JNZeoPranVuGd63z - geographicAddress: - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - customerNumber: QmXvyML3AJUFpBbJqL5NVp7Vn7xNkuedTsSMk93duLCNW8 - customerIdentification: QmRY9AA4Uit2JRTxDzfzshrJdTK86Kf5HriA3dXDnihDmy - countryOfRegistration: QmeoTk6UPruEAYNbJEAHdQYc53ap9BXmpnPMcuvs8wutdr - naturalPerson: - dateAndPlaceOfBirth: - placeOfBirth: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - dateOfBirth: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - name: - - localNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - phoneticNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - localNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - phoneticNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nationalIdentification: - nationalIdentifierType: QmUKTg3aFJFhMz1o9gPqA3MgTRwd2LvDLwWTPHYUoMEYVi - countryOfIssue: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - registrationAuthority: QmV9KJMyT9RJzpYfhME5xNCZ4G67fEkzTpRMyJzp9kTNYk - nationalIdentifier: QmdR6qLnZ7Kwf5cBaXG8QFQenEvRg9JNZeoPranVuGd63z - geographicAddress: - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - countryOfResidence: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - customerNumber: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - customerIdentification: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - - legalPerson: - name: - legalPersonNameIdentifierType: QmPevsa5xdkxf6Lgt7f9YweRBdgseeAkWVaYyssKF3Q86e - legalPersonName: QmVXXj5BJchhqQTU27uEkeghYMnxR6aVjZxJP9jS6uCg9Q - nationalIdentification: - nationalIdentifierType: QmUKTg3aFJFhMz1o9gPqA3MgTRwd2LvDLwWTPHYUoMEYVi - countryOfIssue: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - registrationAuthority: QmV9KJMyT9RJzpYfhME5xNCZ4G67fEkzTpRMyJzp9kTNYk - nationalIdentifier: QmdR6qLnZ7Kwf5cBaXG8QFQenEvRg9JNZeoPranVuGd63z - geographicAddress: - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - customerNumber: QmXvyML3AJUFpBbJqL5NVp7Vn7xNkuedTsSMk93duLCNW8 - customerIdentification: QmRY9AA4Uit2JRTxDzfzshrJdTK86Kf5HriA3dXDnihDmy - countryOfRegistration: QmeoTk6UPruEAYNbJEAHdQYc53ap9BXmpnPMcuvs8wutdr - naturalPerson: - dateAndPlaceOfBirth: - placeOfBirth: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - dateOfBirth: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - name: - - localNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - phoneticNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - localNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - phoneticNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nationalIdentification: - nationalIdentifierType: QmUKTg3aFJFhMz1o9gPqA3MgTRwd2LvDLwWTPHYUoMEYVi - countryOfIssue: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - registrationAuthority: QmV9KJMyT9RJzpYfhME5xNCZ4G67fEkzTpRMyJzp9kTNYk - nationalIdentifier: QmdR6qLnZ7Kwf5cBaXG8QFQenEvRg9JNZeoPranVuGd63z - geographicAddress: - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - countryOfResidence: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - customerNumber: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - customerIdentification: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - accountNumber: - - QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - - QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - encrypted: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9... - originatorDid: did:key:z6Mkf12345Zabcdef12345 - beneficiaryVASPwebsite: https://www.beneficiaryvasp.com - travelRuleBehavior: true - transactionBlockchainInfo: - origin: 8.41132469470587E+47 - destination: 8.41132469470587E+47 - txHash: 6.685730843558756E+76 - beneficiaryProof: - attestation: I certify that ETH account 0x896B...0b9b belongs to me. - address: 0x896B...0b9b - proof: 0x3dd4a17a...ce4a2bcd1b - type: eip-191 - wallet_provider: Metamask - confirmed: true - url: https://example.com/uploaded_image.png - originatorVASPdid: did:ethr:0x44957e75d6ce4a5bf37aae117da86422c848f7c2 - beneficiaryDid: did:key:z6Mkf67890Zghijkl67890 - beneficiaryVASPdid: did:ethr:0x17fe2dd11a2daa7f6c1fdf22532a4763f963aea6 - customerRefId: abcdef - treatAsGrossAmount: false - networkStaking: TransactionRequest_networkStaking - autoStaking: true - operation: TRANSFER - replaceTxByHash: 00000000-0000-0000-0000-000000000000 + assetWallets: + items: + $ref: "#/components/schemas/AssetWallet" + type: array + paging: + $ref: "#/components/schemas/PaginatedAssetWalletResponse_paging" + type: object + VaultActionStatus: + example: + success: true properties: - transactionRequest: - $ref: "#/components/schemas/TransactionRequest" - isSrcCollateral: - description: optional + success: type: boolean type: object - RemoveCollateralRequestBody: + CreateVaultAssetResponse: example: - transactionRequest: - note: Ticket 123 - priorityFee: "2" - networkFee: TransactionRequest_networkFee - fee: TransactionRequest_fee - destination: - oneTimeAddress: - address: address - tag: tag - walletId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - isCollateral: true - name: name - subType: null - id: id - type: null - extraParameters: "{}" - source: - walletId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - isCollateral: true - name: name - subType: BINANCE - id: id - type: VAULT_ACCOUNT - maxFee: "120" - travelRuleMessageId: trm_12345678-1234-1234-1234-123456789012 - externalTxId: 00000000-0000-0000-0000-000000000000 - cpuStaking: null - gasLimit: "21000" - failOnLowFee: true - assetId: ETH - feeLevel: MEDIUM - maxTotalFee: "88" - gasPrice: TransactionRequest_gasPrice - forceSweep: false - amount: "0.02" - destinations: - - amount: amount - destination: - oneTimeAddress: - address: address - tag: tag - walletId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - isCollateral: true - name: name - subType: null - id: id - type: null - customerRefId: abcdef - travelRuleMessageId: trm_12345678-1234-1234-1234-123456789012 - - amount: amount - destination: - oneTimeAddress: - address: address - tag: tag - walletId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - isCollateral: true - name: name - subType: null - id: id - type: null - customerRefId: abcdef - travelRuleMessageId: trm_12345678-1234-1234-1234-123456789012 - useGasless: true - travelRuleMessage: - originatorRef: ORG123456 - travelRuleBehaviorRef: TRB987654 - originatorProof: - attestation: I certify that ETH account 0x896B...0b9b belongs to me. - address: 0x896B...0b9b - proof: 0x3dd4a17a...ce4a2bcd1b - type: eip-191 - wallet_provider: Metamask - confirmed: true - url: https://example.com/uploaded_image.png - isNonCustodial: true - beneficiaryRef: BEN654321 - originator: - originatorPersons: - - legalPerson: - name: - legalPersonNameIdentifierType: QmPevsa5xdkxf6Lgt7f9YweRBdgseeAkWVaYyssKF3Q86e - legalPersonName: QmVXXj5BJchhqQTU27uEkeghYMnxR6aVjZxJP9jS6uCg9Q - nationalIdentification: - nationalIdentifierType: QmUKTg3aFJFhMz1o9gPqA3MgTRwd2LvDLwWTPHYUoMEYVi - countryOfIssue: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - registrationAuthority: QmV9KJMyT9RJzpYfhME5xNCZ4G67fEkzTpRMyJzp9kTNYk - nationalIdentifier: QmdR6qLnZ7Kwf5cBaXG8QFQenEvRg9JNZeoPranVuGd63z - geographicAddress: - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - customerNumber: QmXvyML3AJUFpBbJqL5NVp7Vn7xNkuedTsSMk93duLCNW8 - customerIdentification: QmRY9AA4Uit2JRTxDzfzshrJdTK86Kf5HriA3dXDnihDmy - countryOfRegistration: QmeoTk6UPruEAYNbJEAHdQYc53ap9BXmpnPMcuvs8wutdr - naturalPerson: - dateAndPlaceOfBirth: - placeOfBirth: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - dateOfBirth: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - name: - - localNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - phoneticNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - localNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - phoneticNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nationalIdentification: - nationalIdentifierType: QmUKTg3aFJFhMz1o9gPqA3MgTRwd2LvDLwWTPHYUoMEYVi - countryOfIssue: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - registrationAuthority: QmV9KJMyT9RJzpYfhME5xNCZ4G67fEkzTpRMyJzp9kTNYk - nationalIdentifier: QmdR6qLnZ7Kwf5cBaXG8QFQenEvRg9JNZeoPranVuGd63z - geographicAddress: - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - countryOfResidence: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - customerNumber: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - customerIdentification: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - - legalPerson: - name: - legalPersonNameIdentifierType: QmPevsa5xdkxf6Lgt7f9YweRBdgseeAkWVaYyssKF3Q86e - legalPersonName: QmVXXj5BJchhqQTU27uEkeghYMnxR6aVjZxJP9jS6uCg9Q - nationalIdentification: - nationalIdentifierType: QmUKTg3aFJFhMz1o9gPqA3MgTRwd2LvDLwWTPHYUoMEYVi - countryOfIssue: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - registrationAuthority: QmV9KJMyT9RJzpYfhME5xNCZ4G67fEkzTpRMyJzp9kTNYk - nationalIdentifier: QmdR6qLnZ7Kwf5cBaXG8QFQenEvRg9JNZeoPranVuGd63z - geographicAddress: - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - customerNumber: QmXvyML3AJUFpBbJqL5NVp7Vn7xNkuedTsSMk93duLCNW8 - customerIdentification: QmRY9AA4Uit2JRTxDzfzshrJdTK86Kf5HriA3dXDnihDmy - countryOfRegistration: QmeoTk6UPruEAYNbJEAHdQYc53ap9BXmpnPMcuvs8wutdr - naturalPerson: - dateAndPlaceOfBirth: - placeOfBirth: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - dateOfBirth: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - name: - - localNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - phoneticNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - localNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - phoneticNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nationalIdentification: - nationalIdentifierType: QmUKTg3aFJFhMz1o9gPqA3MgTRwd2LvDLwWTPHYUoMEYVi - countryOfIssue: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - registrationAuthority: QmV9KJMyT9RJzpYfhME5xNCZ4G67fEkzTpRMyJzp9kTNYk - nationalIdentifier: QmdR6qLnZ7Kwf5cBaXG8QFQenEvRg9JNZeoPranVuGd63z - geographicAddress: - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - countryOfResidence: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - customerNumber: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - customerIdentification: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - beneficiaryPersons: - - legalPerson: - name: - legalPersonNameIdentifierType: QmPevsa5xdkxf6Lgt7f9YweRBdgseeAkWVaYyssKF3Q86e - legalPersonName: QmVXXj5BJchhqQTU27uEkeghYMnxR6aVjZxJP9jS6uCg9Q - nationalIdentification: - nationalIdentifierType: QmUKTg3aFJFhMz1o9gPqA3MgTRwd2LvDLwWTPHYUoMEYVi - countryOfIssue: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - registrationAuthority: QmV9KJMyT9RJzpYfhME5xNCZ4G67fEkzTpRMyJzp9kTNYk - nationalIdentifier: QmdR6qLnZ7Kwf5cBaXG8QFQenEvRg9JNZeoPranVuGd63z - geographicAddress: - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - customerNumber: QmXvyML3AJUFpBbJqL5NVp7Vn7xNkuedTsSMk93duLCNW8 - customerIdentification: QmRY9AA4Uit2JRTxDzfzshrJdTK86Kf5HriA3dXDnihDmy - countryOfRegistration: QmeoTk6UPruEAYNbJEAHdQYc53ap9BXmpnPMcuvs8wutdr - naturalPerson: - dateAndPlaceOfBirth: - placeOfBirth: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - dateOfBirth: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - name: - - localNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - phoneticNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - localNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - phoneticNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nationalIdentification: - nationalIdentifierType: QmUKTg3aFJFhMz1o9gPqA3MgTRwd2LvDLwWTPHYUoMEYVi - countryOfIssue: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - registrationAuthority: QmV9KJMyT9RJzpYfhME5xNCZ4G67fEkzTpRMyJzp9kTNYk - nationalIdentifier: QmdR6qLnZ7Kwf5cBaXG8QFQenEvRg9JNZeoPranVuGd63z - geographicAddress: - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - countryOfResidence: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - customerNumber: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - customerIdentification: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - - legalPerson: - name: - legalPersonNameIdentifierType: QmPevsa5xdkxf6Lgt7f9YweRBdgseeAkWVaYyssKF3Q86e - legalPersonName: QmVXXj5BJchhqQTU27uEkeghYMnxR6aVjZxJP9jS6uCg9Q - nationalIdentification: - nationalIdentifierType: QmUKTg3aFJFhMz1o9gPqA3MgTRwd2LvDLwWTPHYUoMEYVi - countryOfIssue: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - registrationAuthority: QmV9KJMyT9RJzpYfhME5xNCZ4G67fEkzTpRMyJzp9kTNYk - nationalIdentifier: QmdR6qLnZ7Kwf5cBaXG8QFQenEvRg9JNZeoPranVuGd63z - geographicAddress: - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - customerNumber: QmXvyML3AJUFpBbJqL5NVp7Vn7xNkuedTsSMk93duLCNW8 - customerIdentification: QmRY9AA4Uit2JRTxDzfzshrJdTK86Kf5HriA3dXDnihDmy - countryOfRegistration: QmeoTk6UPruEAYNbJEAHdQYc53ap9BXmpnPMcuvs8wutdr - naturalPerson: - dateAndPlaceOfBirth: - placeOfBirth: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - dateOfBirth: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - name: - - localNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - phoneticNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - localNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - phoneticNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nationalIdentification: - nationalIdentifierType: QmUKTg3aFJFhMz1o9gPqA3MgTRwd2LvDLwWTPHYUoMEYVi - countryOfIssue: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - registrationAuthority: QmV9KJMyT9RJzpYfhME5xNCZ4G67fEkzTpRMyJzp9kTNYk - nationalIdentifier: QmdR6qLnZ7Kwf5cBaXG8QFQenEvRg9JNZeoPranVuGd63z - geographicAddress: - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - countryOfResidence: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - customerNumber: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - customerIdentification: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - accountNumber: - - QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - - QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - targetProtocol: GTR - originatorVASPname: Originator VASP Ltd. - beneficiaryVASPname: Beneficiary VASP Inc. - protocol: IVMS101 - skipBeneficiaryDataValidation: false - beneficiary: - originatorPersons: - - legalPerson: - name: - legalPersonNameIdentifierType: QmPevsa5xdkxf6Lgt7f9YweRBdgseeAkWVaYyssKF3Q86e - legalPersonName: QmVXXj5BJchhqQTU27uEkeghYMnxR6aVjZxJP9jS6uCg9Q - nationalIdentification: - nationalIdentifierType: QmUKTg3aFJFhMz1o9gPqA3MgTRwd2LvDLwWTPHYUoMEYVi - countryOfIssue: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - registrationAuthority: QmV9KJMyT9RJzpYfhME5xNCZ4G67fEkzTpRMyJzp9kTNYk - nationalIdentifier: QmdR6qLnZ7Kwf5cBaXG8QFQenEvRg9JNZeoPranVuGd63z - geographicAddress: - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - customerNumber: QmXvyML3AJUFpBbJqL5NVp7Vn7xNkuedTsSMk93duLCNW8 - customerIdentification: QmRY9AA4Uit2JRTxDzfzshrJdTK86Kf5HriA3dXDnihDmy - countryOfRegistration: QmeoTk6UPruEAYNbJEAHdQYc53ap9BXmpnPMcuvs8wutdr - naturalPerson: - dateAndPlaceOfBirth: - placeOfBirth: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - dateOfBirth: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - name: - - localNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - phoneticNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - localNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - phoneticNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nationalIdentification: - nationalIdentifierType: QmUKTg3aFJFhMz1o9gPqA3MgTRwd2LvDLwWTPHYUoMEYVi - countryOfIssue: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - registrationAuthority: QmV9KJMyT9RJzpYfhME5xNCZ4G67fEkzTpRMyJzp9kTNYk - nationalIdentifier: QmdR6qLnZ7Kwf5cBaXG8QFQenEvRg9JNZeoPranVuGd63z - geographicAddress: - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - countryOfResidence: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - customerNumber: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - customerIdentification: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - - legalPerson: - name: - legalPersonNameIdentifierType: QmPevsa5xdkxf6Lgt7f9YweRBdgseeAkWVaYyssKF3Q86e - legalPersonName: QmVXXj5BJchhqQTU27uEkeghYMnxR6aVjZxJP9jS6uCg9Q - nationalIdentification: - nationalIdentifierType: QmUKTg3aFJFhMz1o9gPqA3MgTRwd2LvDLwWTPHYUoMEYVi - countryOfIssue: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - registrationAuthority: QmV9KJMyT9RJzpYfhME5xNCZ4G67fEkzTpRMyJzp9kTNYk - nationalIdentifier: QmdR6qLnZ7Kwf5cBaXG8QFQenEvRg9JNZeoPranVuGd63z - geographicAddress: - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - customerNumber: QmXvyML3AJUFpBbJqL5NVp7Vn7xNkuedTsSMk93duLCNW8 - customerIdentification: QmRY9AA4Uit2JRTxDzfzshrJdTK86Kf5HriA3dXDnihDmy - countryOfRegistration: QmeoTk6UPruEAYNbJEAHdQYc53ap9BXmpnPMcuvs8wutdr - naturalPerson: - dateAndPlaceOfBirth: - placeOfBirth: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - dateOfBirth: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - name: - - localNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - phoneticNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - localNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - phoneticNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nationalIdentification: - nationalIdentifierType: QmUKTg3aFJFhMz1o9gPqA3MgTRwd2LvDLwWTPHYUoMEYVi - countryOfIssue: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - registrationAuthority: QmV9KJMyT9RJzpYfhME5xNCZ4G67fEkzTpRMyJzp9kTNYk - nationalIdentifier: QmdR6qLnZ7Kwf5cBaXG8QFQenEvRg9JNZeoPranVuGd63z - geographicAddress: - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - countryOfResidence: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - customerNumber: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - customerIdentification: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - beneficiaryPersons: - - legalPerson: - name: - legalPersonNameIdentifierType: QmPevsa5xdkxf6Lgt7f9YweRBdgseeAkWVaYyssKF3Q86e - legalPersonName: QmVXXj5BJchhqQTU27uEkeghYMnxR6aVjZxJP9jS6uCg9Q - nationalIdentification: - nationalIdentifierType: QmUKTg3aFJFhMz1o9gPqA3MgTRwd2LvDLwWTPHYUoMEYVi - countryOfIssue: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - registrationAuthority: QmV9KJMyT9RJzpYfhME5xNCZ4G67fEkzTpRMyJzp9kTNYk - nationalIdentifier: QmdR6qLnZ7Kwf5cBaXG8QFQenEvRg9JNZeoPranVuGd63z - geographicAddress: - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - customerNumber: QmXvyML3AJUFpBbJqL5NVp7Vn7xNkuedTsSMk93duLCNW8 - customerIdentification: QmRY9AA4Uit2JRTxDzfzshrJdTK86Kf5HriA3dXDnihDmy - countryOfRegistration: QmeoTk6UPruEAYNbJEAHdQYc53ap9BXmpnPMcuvs8wutdr - naturalPerson: - dateAndPlaceOfBirth: - placeOfBirth: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - dateOfBirth: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - name: - - localNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - phoneticNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - localNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - phoneticNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nationalIdentification: - nationalIdentifierType: QmUKTg3aFJFhMz1o9gPqA3MgTRwd2LvDLwWTPHYUoMEYVi - countryOfIssue: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - registrationAuthority: QmV9KJMyT9RJzpYfhME5xNCZ4G67fEkzTpRMyJzp9kTNYk - nationalIdentifier: QmdR6qLnZ7Kwf5cBaXG8QFQenEvRg9JNZeoPranVuGd63z - geographicAddress: - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - countryOfResidence: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - customerNumber: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - customerIdentification: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - - legalPerson: - name: - legalPersonNameIdentifierType: QmPevsa5xdkxf6Lgt7f9YweRBdgseeAkWVaYyssKF3Q86e - legalPersonName: QmVXXj5BJchhqQTU27uEkeghYMnxR6aVjZxJP9jS6uCg9Q - nationalIdentification: - nationalIdentifierType: QmUKTg3aFJFhMz1o9gPqA3MgTRwd2LvDLwWTPHYUoMEYVi - countryOfIssue: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - registrationAuthority: QmV9KJMyT9RJzpYfhME5xNCZ4G67fEkzTpRMyJzp9kTNYk - nationalIdentifier: QmdR6qLnZ7Kwf5cBaXG8QFQenEvRg9JNZeoPranVuGd63z - geographicAddress: - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - customerNumber: QmXvyML3AJUFpBbJqL5NVp7Vn7xNkuedTsSMk93duLCNW8 - customerIdentification: QmRY9AA4Uit2JRTxDzfzshrJdTK86Kf5HriA3dXDnihDmy - countryOfRegistration: QmeoTk6UPruEAYNbJEAHdQYc53ap9BXmpnPMcuvs8wutdr - naturalPerson: - dateAndPlaceOfBirth: - placeOfBirth: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - dateOfBirth: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - name: - - localNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - phoneticNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - localNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - phoneticNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nationalIdentification: - nationalIdentifierType: QmUKTg3aFJFhMz1o9gPqA3MgTRwd2LvDLwWTPHYUoMEYVi - countryOfIssue: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - registrationAuthority: QmV9KJMyT9RJzpYfhME5xNCZ4G67fEkzTpRMyJzp9kTNYk - nationalIdentifier: QmdR6qLnZ7Kwf5cBaXG8QFQenEvRg9JNZeoPranVuGd63z - geographicAddress: - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - countryOfResidence: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - customerNumber: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - customerIdentification: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - accountNumber: - - QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - - QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - encrypted: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9... - originatorDid: did:key:z6Mkf12345Zabcdef12345 - beneficiaryVASPwebsite: https://www.beneficiaryvasp.com - travelRuleBehavior: true - transactionBlockchainInfo: - origin: 8.41132469470587E+47 - destination: 8.41132469470587E+47 - txHash: 6.685730843558756E+76 - beneficiaryProof: - attestation: I certify that ETH account 0x896B...0b9b belongs to me. - address: 0x896B...0b9b - proof: 0x3dd4a17a...ce4a2bcd1b - type: eip-191 - wallet_provider: Metamask - confirmed: true - url: https://example.com/uploaded_image.png - originatorVASPdid: did:ethr:0x44957e75d6ce4a5bf37aae117da86422c848f7c2 - beneficiaryDid: did:key:z6Mkf67890Zghijkl67890 - beneficiaryVASPdid: did:ethr:0x17fe2dd11a2daa7f6c1fdf22532a4763f963aea6 - customerRefId: abcdef - treatAsGrossAmount: false - networkStaking: TransactionRequest_networkStaking - autoStaking: true - operation: TRANSFER - replaceTxByHash: 00000000-0000-0000-0000-000000000000 - isDstCollateral: true + legacyAddress: legacyAddress + address: address + activationTxId: activationTxId + enterpriseAddress: enterpriseAddress + id: id + tag: tag + eosAccountName: eosAccountName + status: status properties: - transactionRequest: - $ref: "#/components/schemas/TransactionRequest" - isDstCollateral: - description: optional + id: + type: string + address: + type: string + legacyAddress: + type: string + enterpriseAddress: + type: string + tag: + type: string + eosAccountName: + type: string + status: + type: string + activationTxId: + type: string + type: object + SetCustomerRefIdRequest: + example: + customerRefId: customerRefId + properties: + customerRefId: + description: Customer reference ID + type: string + type: object + SetAutoFuelRequest: + example: + autoFuel: true + properties: + autoFuel: + description: Auto Fuel type: boolean type: object - SettlementRequestBody: + CreateAssetsRequest: example: - mainExchangeAccountId: mainExchangeAccountId + eosAccountName: eosAccountName properties: - mainExchangeAccountId: + eosAccountName: + description: "Optional - when creating an EOS wallet, the account name.\ + \ If not provided, a random name will be generated" type: string type: object - ToExchangeTransaction: + VaultWalletAddress: example: - amount: amount + bip44AddressIndex: 0 + legacyAddress: legacyAddress + address: address assetId: assetId - dstAddress: dstAddress - dstTag: dstTag + addressFormat: SEGWIT + userDefined: true + enterpriseAddress: enterpriseAddress + description: description + tag: tag + type: type + customerRefId: customerRefId properties: assetId: type: string - amount: + x-fb-entity: asset + address: type: string - dstAddress: + description: type: string - dstTag: - description: optional + tag: + type: string + type: + type: string + customerRefId: + type: string + addressFormat: + enum: + - SEGWIT + - LEGACY + type: string + legacyAddress: + type: string + enterpriseAddress: type: string + bip44AddressIndex: + type: integer + userDefined: + type: boolean type: object - ToCollateralTransaction: + GetVaultAccountAssetAddressesResponse: + items: + $ref: "#/components/schemas/VaultWalletAddress" + type: array + CreateAddressRequest: example: - amount: amount - srcTag: srcTag - fee: fee - srcAddress: srcAddress - asset: asset + description: description + customerRefId: customerRefId properties: - asset: + description: + description: (Optional) Attach a description to the new address type: string - amount: + customerRefId: + description: Optional - Sets a customer reference ID type: string - srcAddress: + type: object + CreateAddressResponse: + example: + bip44AddressIndex: 0 + legacyAddress: legacyAddress + address: address + enterpriseAddress: enterpriseAddress + tag: tag + properties: + address: type: string - srcTag: - description: optional + legacyAddress: type: string - fee: - description: optional + enterpriseAddress: + type: string + tag: type: string + bip44AddressIndex: + type: integer type: object - ExchangeSettlementTransactionsResponse: + PaginatedAddressResponse: example: - toCollateral: - - amount: amount - srcTag: srcTag - fee: fee - srcAddress: srcAddress - asset: asset - - amount: amount - srcTag: srcTag - fee: fee - srcAddress: srcAddress - asset: asset - toExchange: - - amount: amount + addresses: + - bip44AddressIndex: 0 + legacyAddress: legacyAddress + address: address assetId: assetId - dstAddress: dstAddress - dstTag: dstTag - - amount: amount + addressFormat: SEGWIT + userDefined: true + enterpriseAddress: enterpriseAddress + description: description + tag: tag + type: type + customerRefId: customerRefId + - bip44AddressIndex: 0 + legacyAddress: legacyAddress + address: address assetId: assetId - dstAddress: dstAddress - dstTag: dstTag - properties: - toExchange: - items: - $ref: "#/components/schemas/ToExchangeTransaction" - type: array - toCollateral: + addressFormat: SEGWIT + userDefined: true + enterpriseAddress: enterpriseAddress + description: description + tag: tag + type: type + customerRefId: customerRefId + paging: + before: before + after: after + properties: + addresses: items: - $ref: "#/components/schemas/ToCollateralTransaction" + $ref: "#/components/schemas/VaultWalletAddress" type: array + paging: + $ref: "#/components/schemas/PaginatedAddressResponse_paging" type: object - SettlementResponse: + GetMaxSpendableAmountResponse: example: - fireblocksInitiatedTransactions: "{}" - initiator: initiator - exchangeRequestedTransactions: - toCollateral: - - amount: amount - srcTag: srcTag - fee: fee - srcAddress: srcAddress - asset: asset - - amount: amount - srcTag: srcTag - fee: fee - srcAddress: srcAddress - asset: asset - toExchange: - - amount: amount - assetId: assetId - dstAddress: dstAddress - dstTag: dstTag - - amount: amount - assetId: assetId - dstAddress: dstAddress - dstTag: dstTag - id: id - exchangeReply: exchangeReply + maxSpendableAmount: maxSpendableAmount properties: - id: + maxSpendableAmount: + description: The maximum amount that can be spent from the vault account type: string - initiator: + type: object + UpdateVaultAccountAssetAddressRequest: + example: + description: description + properties: + description: + description: The address description type: string - exchangeReply: + type: object + SetCustomerRefIdForAddressRequest: + example: + customerRefId: customerRefId + properties: + customerRefId: + description: Customer reference ID type: string - fireblocksInitiatedTransactions: - type: object - exchangeRequestedTransactions: - $ref: "#/components/schemas/ExchangeSettlementTransactionsResponse" type: object - ResendWebhooksResponse: + UnspentInput: example: - messagesCount: 0.8008281904610115 + index: 0.8008281904610115 + txHash: txHash properties: - messagesCount: + txHash: + type: string + index: type: number type: object - ResendTransactionWebhooksRequest: + UnspentInputsResponse: example: - resendCreated: true - resendStatusUpdated: true + input: + index: 0.8008281904610115 + txHash: txHash + amount: amount + address: address + confirmations: 6.027456183070403 + status: status properties: - resendCreated: - type: boolean - resendStatusUpdated: - type: boolean + input: + $ref: "#/components/schemas/UnspentInput" + address: + type: string + amount: + type: string + confirmations: + type: number + status: + type: string type: object - ResendWebhooksByTransactionIdResponse: + GetUnspentInputsResponse: + items: + $ref: "#/components/schemas/UnspentInputsResponse" + type: array + PublicKeyInformation: example: - success: true + derivationPath: + - 0.8008281904610115 + - 0.8008281904610115 + publicKey: publicKey + algorithm: algorithm properties: - success: - description: Indicates whether the webhooks were successfully resent - type: boolean - required: - - success + algorithm: + type: string + derivationPath: + items: + type: number + type: array + publicKey: + type: string + type: object + GetVaultAssetsResponse: + items: + $ref: "#/components/schemas/VaultAsset" + type: array + CreateAssetsBulkRequest: + example: + assetId: assetId + vaultAccountIdFrom: vaultAccountIdFrom + vaultAccountIdTo: vaultAccountIdTo + properties: + assetId: + description: The ID of the new asset + type: string + vaultAccountIdFrom: + description: The smallest vault account ID in the range + type: string + vaultAccountIdTo: + description: The largest vault account ID in the range + type: string type: object - WebhookEvent: + ExchangeType: enum: - - transaction.created - - transaction.status.updated - - transaction.approval_status.updated - - transaction.network_records.processing_completed - - external_wallet.asset.added - - external_wallet.asset.removed - - internal_wallet.asset.added - - internal_wallet.asset.removed - - contract_wallet.asset.added - - contract_wallet.asset.removed - - vault_account.created - - vault_account.asset.added - - vault_account.asset.balance_updated - - embedded_wallet.status.updated - - embedded_wallet.created - - embedded_wallet.asset.balance_updated - - embedded_wallet.asset.added - - embedded_wallet.account.created - - embedded_wallet.device.added - - onchain_data.updated - - connection.added - - connection.removed - - connection.request.waiting_peer_approval - - connection.request.rejected_by_peer + - BINANCE + - BINANCEUS + - BITFINEX + - BITHUMB + - BITMEX + - BITSO + - BITSTAMP + - BITTREX + - CIRCLE + - COINBASEPRO + - COINMETRO + - COINSPRO + - CRYPTOCOM + - DERIBIT + - FTX + - FIXUS + - GEMINI + - HITBTC + - HUOBI + - KORBIT + - KRAKEN + - LIQUID + - POLONIEX + - OKCOIN + - OKEX + - SEEDCX type: string - Webhook: + ExchangeAsset: example: - createdAt: 1625126400000 - description: This webhook is used for transactions notifications - id: 123e4567-e89b-12d3-a456-426614174000 - url: https://example.com/webhook - events: - - transaction.created - - transaction.status.updated - status: ENABLED - updatedAt: 1625126400000 + total: total + lockedAmount: lockedAmount + balance: balance + available: available + id: id properties: id: - description: The id of the webhook - example: 123e4567-e89b-12d3-a456-426614174000 - format: uuid type: string - url: - description: The url of the webhook where notifications will be sent. Must - be a valid URL and https. - example: https://example.com/webhook - minLength: 1 + balance: type: string - description: - description: description of the webhook of what it is used for - example: This webhook is used for transactions notifications - minLength: 1 + lockedAmount: type: string - events: - description: The events that the webhook will be subscribed to - example: - - transaction.created - - transaction.status.updated + total: + type: string + available: + type: string + type: object + ExchangeTradingAccount: + example: + assets: + - total: total + lockedAmount: lockedAmount + balance: balance + available: available + id: id + - total: total + lockedAmount: lockedAmount + balance: balance + available: available + id: id + name: name + type: type + properties: + type: + type: string + name: + type: string + assets: items: - $ref: "#/components/schemas/WebhookEvent" + $ref: "#/components/schemas/ExchangeAsset" type: array - status: - description: The status of the webhook - enum: - - DISABLED - - ENABLED - - SUSPENDED - example: ENABLED - type: string - createdAt: - description: The date and time the webhook was created in milliseconds - example: 1625126400000 - format: int64 - type: integer - updatedAt: - description: The date and time the webhook was last updated in milliseconds - example: 1625126400000 - format: int64 - type: integer - required: - - createdAt - - events - - id - - status - - updatedAt - - url type: object - WebhookPaginatedResponse: + ExchangeAccount: example: - next: eJ0eXAiOiJKV1QiLCJhbGcOiJIUzI1NiJ9 - data: - - createdAt: 1625126400000 - description: This webhook is used for transactions notifications - id: 123e4567-e89b-12d3-a456-426614174000 - url: https://example.com/webhook - events: - - transaction.created - - transaction.status.updated - status: ENABLED - updatedAt: 1625126400000 - - createdAt: 1625126400000 - description: This webhook is used for transactions notifications - id: 123e4567-e89b-12d3-a456-426614174000 - url: https://example.com/webhook - events: - - transaction.created - - transaction.status.updated - status: ENABLED - updatedAt: 1625126400000 + tradingAccounts: + - assets: + - total: total + lockedAmount: lockedAmount + balance: balance + available: available + id: id + - total: total + lockedAmount: lockedAmount + balance: balance + available: available + id: id + name: name + type: type + - assets: + - total: total + lockedAmount: lockedAmount + balance: balance + available: available + id: id + - total: total + lockedAmount: lockedAmount + balance: balance + available: available + id: id + name: name + type: type + isSubaccount: true + assets: + - total: total + lockedAmount: lockedAmount + balance: balance + available: available + id: id + - total: total + lockedAmount: lockedAmount + balance: balance + available: available + id: id + success: true + name: name + id: id + type: BINANCE + mainAccountId: mainAccountId + status: status properties: - data: - description: The data of the current page - items: - $ref: "#/components/schemas/Webhook" - type: array - next: - description: The ID of the next page - example: eJ0eXAiOiJKV1QiLCJhbGcOiJIUzI1NiJ9 - nullable: true + id: type: string - required: - - data - type: object - CreateWebhookRequest: - example: - description: This webhook is used for transactions notifications - url: https://example.com/webhook - events: - - transaction.created - - transaction.status.updated - enabled: false - properties: - url: - description: "The url of the webhook where notifications will be sent. URL\ - \ must be valid, unique and https." - example: https://example.com/webhook - minLength: 1 + type: + $ref: "#/components/schemas/ExchangeType" + name: + description: Display name of the exchange account type: string - description: - description: description of the webhook. should not contain special characters. - example: This webhook is used for transactions notifications - minLength: 1 + status: type: string - events: - description: event types the webhook will subscribe to - example: - - transaction.created - - transaction.status.updated + assets: items: - $ref: "#/components/schemas/WebhookEvent" + $ref: "#/components/schemas/ExchangeAsset" type: array - enabled: - default: true - description: "The status of the webhook. If false, the webhook will not\ - \ receive notifications." - example: false + success: + description: Did succeed in retrieve balance data type: boolean - required: - - events - - url + tradingAccounts: + items: + $ref: "#/components/schemas/ExchangeTradingAccount" + type: array + isSubaccount: + description: True if the account is a subaccount in an exchange + type: boolean + mainAccountId: + description: "if the account is a sub-account, the ID of the main account" + type: string type: object - UpdateWebhookRequest: + GetExchangeAccountsResponse: + items: + $ref: "#/components/schemas/ExchangeAccount" + type: array + ExchangeAccountsPaged: example: - description: This webhook is used for transactions notifications - url: https://example.com/webhook - events: - - transaction.created - - transaction.status.updated - enabled: false + prevUrl: prevUrl + ExchangeAccount: + - tradingAccounts: + - assets: + - total: total + lockedAmount: lockedAmount + balance: balance + available: available + id: id + - total: total + lockedAmount: lockedAmount + balance: balance + available: available + id: id + name: name + type: type + - assets: + - total: total + lockedAmount: lockedAmount + balance: balance + available: available + id: id + - total: total + lockedAmount: lockedAmount + balance: balance + available: available + id: id + name: name + type: type + isSubaccount: true + assets: + - total: total + lockedAmount: lockedAmount + balance: balance + available: available + id: id + - total: total + lockedAmount: lockedAmount + balance: balance + available: available + id: id + success: true + name: name + id: id + type: BINANCE + mainAccountId: mainAccountId + status: status + - tradingAccounts: + - assets: + - total: total + lockedAmount: lockedAmount + balance: balance + available: available + id: id + - total: total + lockedAmount: lockedAmount + balance: balance + available: available + id: id + name: name + type: type + - assets: + - total: total + lockedAmount: lockedAmount + balance: balance + available: available + id: id + - total: total + lockedAmount: lockedAmount + balance: balance + available: available + id: id + name: name + type: type + isSubaccount: true + assets: + - total: total + lockedAmount: lockedAmount + balance: balance + available: available + id: id + - total: total + lockedAmount: lockedAmount + balance: balance + available: available + id: id + success: true + name: name + id: id + type: BINANCE + mainAccountId: mainAccountId + status: status + paging: + before: before + after: after + nextUrl: nextUrl properties: - url: - description: "The url of the webhook where notifications will be sent. URL\ - \ must be valid, unique and https." - example: https://example.com/webhook - minLength: 1 - type: string - description: - description: description of the webhook of what it is used for.should not - contain special characters. - example: This webhook is used for transactions notifications - minLength: 1 - type: string - events: - description: The events that the webhook will be subscribed to - example: - - transaction.created - - transaction.status.updated + ExchangeAccount: items: - $ref: "#/components/schemas/WebhookEvent" + $ref: "#/components/schemas/ExchangeAccount" type: array - enabled: - description: The status of the webhook - example: false - type: boolean + paging: + $ref: "#/components/schemas/ExchangeAccountsPaged_paging" + prevUrl: + type: string + nextUrl: + type: string type: object - NotificationStatus: - description: The status of the Notification + GetPagedExchangeAccountsResponse: + items: + $ref: "#/components/schemas/ExchangeAccountsPaged" + type: array + TradingAccountType: enum: - - COMPLETED - - FAILED - - IN_PROGRESS - - ON_HOLD - example: COMPLETED + - COIN_FUTURES + - COIN_MARGINED_SWAP + - EXCHANGE + - FUNDING + - FUNDABLE + - FUTURES + - FUTURES_CROSS + - MARGIN + - MARGIN_CROSS + - OPTIONS + - SPOT + - USDT_MARGINED_SWAP_CROSS + - USDT_FUTURES + - UNIFIED type: string - Notification: + CreateInternalTransferRequest: example: - createdAt: 1625126400000 - resourceId: 44fcead0-7053-4831-a53a-df7fb90d440f - id: 44fcead0-7053-4831-a53a-df7fb90d440f - eventType: transaction.created - updatedAt: 1625126400000 - status: COMPLETED + amount: amount + sourceType: COIN_FUTURES + asset: asset + destType: null properties: - id: - description: The id of the Notification - example: 44fcead0-7053-4831-a53a-df7fb90d440f - format: uuid + asset: type: string - createdAt: - description: The creation date of the notification in milliseconds - example: 1625126400000 - format: int64 - type: integer - updatedAt: - description: The date when the notification was updated in milliseconds - example: 1625126400000 - format: int64 - type: integer - status: - $ref: "#/components/schemas/NotificationStatus" - eventType: - $ref: "#/components/schemas/WebhookEvent" - resourceId: - description: The resource id of the event which the Notification is listen - to - example: 44fcead0-7053-4831-a53a-df7fb90d440f - format: uuid - nullable: true + amount: type: string - required: - - createdAt - - eventType - - id - - status - - updatedAt + sourceType: + $ref: "#/components/schemas/TradingAccountType" + destType: + $ref: "#/components/schemas/TradingAccountType" type: object - NotificationPaginatedResponse: + InternalTransferResponse: example: - next: eJ0eXAiOiJKV1QiLCJhbGcOiJIUzI1NiJ9 - total: 100 - data: - - createdAt: 1625126400000 - resourceId: 44fcead0-7053-4831-a53a-df7fb90d440f - id: 44fcead0-7053-4831-a53a-df7fb90d440f - eventType: transaction.created - updatedAt: 1625126400000 - status: COMPLETED - - createdAt: 1625126400000 - resourceId: 44fcead0-7053-4831-a53a-df7fb90d440f - id: 44fcead0-7053-4831-a53a-df7fb90d440f - eventType: transaction.created - updatedAt: 1625126400000 - status: COMPLETED + success: true properties: - data: - description: The data of the current page - items: - $ref: "#/components/schemas/Notification" - type: array - total: - description: The total number of notifications after all filters applied - (not returned when 'pageCursor' parameter is used) - example: 100 - nullable: true - type: number - next: - description: The ID of the next page - example: eJ0eXAiOiJKV1QiLCJhbGcOiJIUzI1NiJ9 - nullable: true - type: string + success: + description: Indicates whether the transfer was successful + type: boolean required: - - data + - success type: object - NotificationWithData: + ConvertAssetsRequest: example: - createdAt: 1625126400000 - resourceId: 44fcead0-7053-4831-a53a-df7fb90d440f - data: "{}" - id: 44fcead0-7053-4831-a53a-df7fb90d440f - eventType: transaction.created - updatedAt: 1625126400000 - status: COMPLETED + amount: 0.8008281904610115 + destAsset: destAsset + srcAsset: srcAsset properties: - id: - example: 44fcead0-7053-4831-a53a-df7fb90d440f - format: uuid + srcAsset: + description: Name of the source asset (must be in a currency that is supported + for conversions in the selected exchange type that corresponds to your + exchange ID) type: string - createdAt: - description: The creation date of the notification in milliseconds - example: 1625126400000 - format: int64 - type: integer - updatedAt: - description: The date when the notification was updated in milliseconds - example: 1625126400000 - format: int64 - type: integer - status: - $ref: "#/components/schemas/NotificationStatus" - eventType: - $ref: "#/components/schemas/WebhookEvent" - resourceId: - description: The resource id of the event which the Notification is listen - to - example: 44fcead0-7053-4831-a53a-df7fb90d440f - format: uuid - nullable: true + destAsset: + description: Name of the destination asset (must be in a currency that is + supported for conversions in the selected exchange type that corresponds + to your exchange ID) type: string - data: - description: notification data - type: object + amount: + description: The amount to transfer (in the currency of the source asset) + type: number required: - - createdAt - - eventType - - id - - status - - updatedAt + - amount + - destAsset + - srcAsset type: object - NotificationAttempt: + ConvertAssetsResponse: example: - duration: 130 - failureReason: TIMED_OUT - sentTime: 1625126400000 - responseCode: 200 + success: true properties: - sentTime: - description: The time when the attempt was sent in milliseconds. - example: 1625126400000 - format: int64 - type: integer - duration: - description: The duration of the attempt in milliseconds. - example: 130 - type: integer - responseCode: - description: "The response code of the attempt, when missing refer to failureReason." - example: 200 - type: integer - failureReason: - description: The request failure reason in case responseCode is missing. - enum: - - TIMED_OUT - - NO_RESPONSE - example: TIMED_OUT - type: string + success: + description: Indicates whether the conversion was successful + type: boolean required: - - duration - - sentTime + - success type: object - NotificationAttemptsPaginatedResponse: + FiatAccountType: + enum: + - BLINC + type: string + FiatAsset: example: - next: eJ0eXAiOiJKV1QiLCJhbGcOiJIUzI1NiJ9 - data: - - duration: 130 - failureReason: TIMED_OUT - sentTime: 1625126400000 - responseCode: 200 - - duration: 130 - failureReason: TIMED_OUT - sentTime: 1625126400000 - responseCode: 200 + balance: balance + id: id properties: - data: - description: The data of the current page - items: - $ref: "#/components/schemas/NotificationAttempt" - type: array - next: - description: The ID of the next page - example: eJ0eXAiOiJKV1QiLCJhbGcOiJIUzI1NiJ9 - nullable: true + id: + type: string + balance: type: string - required: - - data type: object - ResendNotificationsByResourceIdRequest: + FiatAccount: example: - resourceId: 44fcead0-7053-4831-a53a-df7fb90d440f - excludeStatuses: - - IN_PROGRESS - - FAILED + address: address + assets: + - balance: balance + id: id + - balance: balance + id: id + name: name + id: id + type: BLINC properties: - resourceId: - description: The resource id to resend notifications for - example: 44fcead0-7053-4831-a53a-df7fb90d440f - format: uuid + id: type: string - excludeStatuses: - description: | - (optional) List of notification statuses to exclude from the resend operation - - Empty array means all statuses will be included - - If you want to exclude some statuses, you can use the following example: [ IN_PROGRESS, FAILED ] - - Default if missing, means all statuses other than "COMPLETED" will be included - example: - - IN_PROGRESS - - FAILED + type: + $ref: "#/components/schemas/FiatAccountType" + name: + description: Display name of the fiat account + type: string + address: + nullable: true + type: string + assets: items: - $ref: "#/components/schemas/NotificationStatus" + $ref: "#/components/schemas/FiatAsset" type: array - required: - - resourceId type: object - ResendFailedNotificationsRequest: + GetFiatAccountsResponse: + items: + $ref: "#/components/schemas/FiatAccount" + type: array + Funds: example: - startTime: 1625097600000 - events: - - transaction.created - - transaction.status.updated + amount: 0.8008281904610115 properties: - startTime: - description: | - (optional) Start time for the resend window in milliseconds since epoch up to 24 hours before the current time - Default if missing means 24 hours before the current time in milliseconds since epoch - Maximum value is current time in milliseconds since epoch - Minimum value is 24 hours before the current time in milliseconds since epoch - example: 1625097600000 + amount: type: number - events: - description: | - (optional) Event types to resend, default is all event types - - Default if missing means all events will be included - - Empty array means all events will be included - example: - - transaction.created - - transaction.status.updated - items: - $ref: "#/components/schemas/WebhookEvent" - type: array type: object - ResendFailedNotificationsResponse: + RedeemFundsToLinkedDDAResponse: example: - total: 10 + success: true properties: - total: - description: The total number of failed notifications that are scheduled - to be resent. - example: 10 - type: number + success: + description: Indicates whether the funds were successfully redeemed to the + linked DDA + type: boolean + required: + - success type: object - ResendFailedNotificationsJobStatusResponse: + DepositFundsFromLinkedDDAResponse: example: - jobId: 123e4567-e89b-12d3-a456-426614174000 - processed: 100 - total: 1000 - status: COMPLETED + success: true properties: - jobId: - description: Bulk resend job ID - example: 123e4567-e89b-12d3-a456-426614174000 - type: string - status: - description: Bulk resend job status - enum: - - QUEUED - - IN_PROGRESS - - COMPLETED - - FAILED - example: COMPLETED - type: string - processed: - description: Number of notifications processed - example: 100 - type: number - total: - description: Total number of notifications to process - example: 1000 - type: number + success: + description: Indicates whether the funds were successfully deposited from + the linked DDA + type: boolean required: - - jobId - - processed - - status - - total + - success type: object - AuditorData: + NetworkChannel: + deprecated: true + description: Deprecated in the only used reference - NetworkConnectionResponse properties: - name: - type: string - imageURL: + networkId: type: string - link: + name: type: string - required: - - imageURL - - link - - name - type: object - ContractAttributes: - properties: - useCases: - items: - type: string - type: array - standards: - items: - type: string - type: array - auditor: - $ref: "#/components/schemas/AuditorData" - required: - - auditor - - standards - - useCases type: object - VendorDto: + NetworkConnectionStatus: + enum: + - WAITING_FOR_APPROVAL + - WAITING_FOR_PEER_APPROVAL + - APPROVED + - CANCELLED + - FAILED + - REJECTED + - REJECTED_BY_PEER + - REMOVED + - REMOVED_BY_PEER + type: string + NetworkId: + example: + name: name + id: id properties: id: - description: The unique identifier of the vendor of this contract template - example: b70701f4-d7b1-4795-a8ee-b09cdb5b4453 type: string name: - description: The name of the vendor of this contract template - example: Fireblocks type: string required: - id - name type: object - LeanContractDto: + CustomRoutingDest: example: - owner: b70701f4-d7b1-4795-a8ee-b09cdb5b850d - canDeploy: true - vendor: "" - name: My Contract - description: an ERC20 implementation - isPublic: true - attributes: - useCases: - - Stablecoin - - CBDC - standards: - - ERC-20 - - ERC-1400 - auditor: - name: MyAuditor - imageURL: https://my-images.com/my-image.jpg - link: https://my-auditor.com/my-audit-report - id: b70701f4-d7b1-4795-a8ee-b09cdb5b850d - type: FUNGIBLE_TOKEN + scheme: CUSTOM + dstId: dstId + dstType: FIAT_ACCOUNT properties: - id: - description: The unique identifier of the contract template - example: b70701f4-d7b1-4795-a8ee-b09cdb5b850d + scheme: + description: The network routing logic. + enum: + - CUSTOM type: string - name: - description: The name of the contract template - example: My Contract + dstType: + description: The account the funds are being sent to. + enum: + - FIAT_ACCOUNT + - VAULT + - EXCHANGE type: string - description: - description: A short description of the contract template - example: an ERC20 implementation + dstId: + description: The ID of the account the funds are being sent to. type: string - attributes: - allOf: - - $ref: "#/components/schemas/ContractAttributes" - description: The attributes related to this contract template. It will be - displayed in the tokenization page - example: - useCases: - - Stablecoin - - CBDC - standards: - - ERC-20 - - ERC-1400 - auditor: - name: MyAuditor - imageURL: https://my-images.com/my-image.jpg - link: https://my-auditor.com/my-audit-report - isPublic: - description: Is this a contract that is viewable by all fireblocks's users - or is it visible only for this workspace - example: true - type: boolean - canDeploy: - description: "True if the workspace allowed to deploy this contract, false\ - \ otherwise" - example: true - type: boolean - owner: - description: "The workspace id of the owner of this contract template. If\ - \ it's a private contract, only this workspace will be allowed to deploy\ - \ it" - example: b70701f4-d7b1-4795-a8ee-b09cdb5b850d + required: + - dstId + - dstType + - scheme + type: object + DefaultNetworkRoutingDest: + properties: + scheme: + description: The network routing logic. + enum: + - DEFAULT type: string - vendor: - allOf: - - $ref: "#/components/schemas/VendorDto" - description: The details of the vendor of this contract template. Applicable - only for public contract templates - type: + required: + - scheme + type: object + NoneNetworkRoutingDest: + properties: + scheme: + description: No network routing logic. enum: - - FUNGIBLE_TOKEN - - NON_FUNGIBLE_TOKEN - - NON_TOKEN - - TOKEN_EXTENSION - - TOKEN_UTILITY + - NONE type: string required: - - description - - id - - isPublic - - name + - scheme type: object - TemplatesPaginatedResponse: + NetworkConnectionRoutingPolicy: + additionalProperties: + $ref: "#/components/schemas/NetworkConnectionRoutingPolicy_value" + type: object + NetworkConnectionResponse: example: - next: eJ0eXAiOiJKV1QiLCJhbGcOiJIUzI1NiJ9 - data: - - owner: b70701f4-d7b1-4795-a8ee-b09cdb5b850d - canDeploy: true - vendor: "" - name: My Contract - description: an ERC20 implementation - isPublic: true - attributes: - useCases: - - Stablecoin - - CBDC - standards: - - ERC-20 - - ERC-1400 - auditor: - name: MyAuditor - imageURL: https://my-images.com/my-image.jpg - link: https://my-auditor.com/my-audit-report - id: b70701f4-d7b1-4795-a8ee-b09cdb5b850d - type: FUNGIBLE_TOKEN - - owner: b70701f4-d7b1-4795-a8ee-b09cdb5b850d - canDeploy: true - vendor: "" - name: My Contract - description: an ERC20 implementation - isPublic: true - attributes: - useCases: - - Stablecoin - - CBDC - standards: - - ERC-20 - - ERC-1400 - auditor: - name: MyAuditor - imageURL: https://my-images.com/my-image.jpg - link: https://my-auditor.com/my-audit-report - id: b70701f4-d7b1-4795-a8ee-b09cdb5b850d - type: FUNGIBLE_TOKEN + localNetworkId: + name: name + id: id + remoteNetworkId: + name: name + id: id + remoteChannel: "" + id: id + localChannel: "" + routingPolicy: + key: + scheme: CUSTOM + dstId: dstId + dstType: FIAT_ACCOUNT + status: WAITING_FOR_APPROVAL properties: - data: - description: The data of the current page - items: - $ref: "#/components/schemas/LeanContractDto" - type: array - next: - description: The ID of the next page - example: eJ0eXAiOiJKV1QiLCJhbGcOiJIUzI1NiJ9 - nullable: true + id: type: string + localChannel: + allOf: + - $ref: "#/components/schemas/NetworkChannel" + deprecated: true + description: Deprecated - Replaced by `localNetworkId` + remoteChannel: + allOf: + - $ref: "#/components/schemas/NetworkChannel" + deprecated: true + description: Deprecated - Replaced by `remoteNetworkId` + status: + $ref: "#/components/schemas/NetworkConnectionStatus" + localNetworkId: + $ref: "#/components/schemas/NetworkId" + remoteNetworkId: + $ref: "#/components/schemas/NetworkId" + routingPolicy: + additionalProperties: + $ref: "#/components/schemas/NetworkConnectionRoutingPolicy_value" + type: object required: - - data + - id + - localNetworkId + - remoteNetworkId + - routingPolicy + - status type: object - FunctionDoc: + GetNetworkConnectionsResponse: + items: + $ref: "#/components/schemas/NetworkConnectionResponse" + type: array + NetworkConnection: + example: + localNetworkId: localNetworkId + remoteNetworkId: remoteNetworkId + routingPolicy: + key: + scheme: CUSTOM + dstId: dstId + dstType: FIAT_ACCOUNT properties: - details: - description: A description of the function + localNetworkId: + description: The network ID of the profile trying to create the connection. type: string - params: + remoteNetworkId: + description: The network ID the profile is attempting to connect to. + type: string + routingPolicy: additionalProperties: - type: string - description: A description of the function parameters + $ref: "#/components/schemas/NetworkConnectionRoutingPolicy_value" type: object - returns: + required: + - localNetworkId + - remoteNetworkId + type: object + SetRoutingPolicyRequest: + example: + routingPolicy: + key: + scheme: CUSTOM + dstId: dstId + dstType: FIAT_ACCOUNT + properties: + routingPolicy: additionalProperties: - type: string - description: A description of the function return values. only for read - functions + $ref: "#/components/schemas/NetworkConnectionRoutingPolicy_value" type: object + required: + - routingPolicy type: object - ContractDoc: + SetRoutingPolicyResponse: + example: + success: true properties: - details: - description: A description of the contract - example: A token that can be minted and burned - type: string - events: - description: A description of the contract`s events - example: "Upgraded(address): {\"details\": \"Emitted when the implementation\ - \ is upgraded.\"}" - type: string - kind: - description: Is it devdoc or userdoc - example: dev + success: + type: boolean + required: + - success + type: object + ThirdPartyRouting: + example: + isThirdPartyRouting: true + description: description + properties: + isThirdPartyRouting: + type: boolean + description: type: string - methods: - additionalProperties: - $ref: "#/components/schemas/FunctionDoc" - description: The description of the contract functions - example: - constructor: - details: Initializes the contract - type: object - version: - description: The version of the contract - example: 1 - type: number + type: object + DeleteNetworkConnectionResponse: + example: + success: true + properties: + success: + type: boolean required: - - kind - - methods - - version + - success type: object - Parameter: + NetworkIdRoutingPolicy: + additionalProperties: + $ref: "#/components/schemas/NetworkIdRoutingPolicy_value" + type: object + NetworkIdResponse: + allOf: + - $ref: "#/components/schemas/NetworkId" + - properties: + routingPolicy: + $ref: "#/components/schemas/NetworkIdRoutingPolicy" + isDiscoverable: + description: The specific network is discoverable. + type: boolean + type: object example: - components: - - null - - null - name: _name - description: The name of the token - internalType: string - type: string + name: name + isDiscoverable: true + id: id + routingPolicy: null + GetNetworkIdsResponse: + items: + allOf: + - $ref: "#/components/schemas/NetworkIdResponse" + type: array + CreateNetworkIdRequest: + example: + name: name + routingPolicy: + key: + scheme: CUSTOM + dstId: dstId + dstType: FIAT_ACCOUNT properties: name: - description: The name of the parameter as it appears in the ABI - example: _name - type: string - description: - description: "A description of the parameter, fetched from the devdoc of\ - \ this contract" - example: The name of the token - type: string - internalType: - description: The internal type of the parameter as it appears in the ABI - example: string - type: string - type: - description: The type of the parameter as it appears in the ABI - example: string type: string - components: - items: - $ref: "#/components/schemas/Parameter" - type: array + routingPolicy: + additionalProperties: + $ref: "#/components/schemas/NetworkIdRoutingPolicy_value" + type: object required: - name - - type type: object - AbiFunction: + GetRoutingPolicyAssetGroupsResponse: + items: + type: string + type: array + DeleteNetworkIdResponse: example: - outputs: - - components: - - null - - null - name: _name - description: The name of the token - internalType: string - type: string - - components: - - null - - null - name: _name - description: The name of the token - internalType: string - type: string - inputs: - - components: - - null - - null - name: _name - description: The name of the token - internalType: string - type: string - - components: - - null - - null - name: _name - description: The name of the token - internalType: string - type: string - name: mint - stateMutability: pure - description: description - type: constructor + success: true properties: - name: - description: The name of the contract function as it appears in the ABI - example: mint - type: string - stateMutability: - description: The state mutability of the contract function as it appears - in the ABI - enum: - - pure - - view - - nonpayable - - payable - example: pure - type: string - type: - description: The type of the function - enum: - - constructor - - function - - error - - event - - receive - - fallback - example: constructor - type: string - inputs: - description: The parameters that this function/constructor posses - items: - $ref: "#/components/schemas/Parameter" - type: array - outputs: - description: The parameters that this 'read' function returns - items: - $ref: "#/components/schemas/Parameter" - type: array - description: - description: The documentation of this function (if has any) - type: string + success: + type: boolean required: - - type + - success type: object - ContractUploadRequest: + SetNetworkIdRoutingPolicyRequest: example: - longDescription: | - a full ERC20 implementation, containing the following: - - - mint - - burn - bytecode: bytecode - protocol: ETH - docs: - details: "This contract implements an upgradeable proxy. It is upgradeable\ - \ because calls are delegated to an implementation address that can be\ - \ changed. This address is stored in storage in the location specified\ - \ by https://eips.ethereum.org/EIPS/eip-1967[EIP1967], so that it doesn't\ - \ conflict with the storage layout of the implementation behind the proxy." - errors: - ERC1967NonPayable(): - - details: An upgrade function sees `msg.value > 0` that may be lost. - events: - Upgraded(address): - details: Emitted when the implementation is upgraded. - kind: dev - methods: - constructor: - details: "Initializes the upgradeable proxy with an initial implementation\ - \ specified by `implementation`. If `_data` is nonempty, it's used\ - \ as data in a delegate call to `implementation`. This will typically\ - \ be an encoded function call, and allows initializing the storage\ - \ of the proxy like a Solidity constructor. Requirements: - If `data`\ - \ is empty, `msg.value` must be zero." - version: 1 - name: My Contract - description: an ERC20 implementation - abi: - - inputs: - - internalType: address - name: implementation - type: address - - internalType: bytes - name: _data - type: bytes - stateMutability: payable - type: constructor - attributes: - useCases: - - Stablecoin - - CBDC - standards: - - ERC-20 - - ERC-1400 - auditor: - name: MyAuditor - imageURL: https://my-images.com/my-image.jpg - link: https://my-auditor.com/my-audit-report - type: FUNGIBLE_TOKEN - sourcecode: sourcecode - properties: - name: - description: The name of the contract template - example: My Contract - type: string - description: - description: A short description of the contract template - example: an ERC20 implementation - type: string - longDescription: - description: "A full description of the contract template. May contain \n\ - \ to break the lines" - example: | - a full ERC20 implementation, containing the following: - - - mint - - burn - type: string - bytecode: - description: The compiled artifact of this smart contract. Used for deployment - of this contract template - type: string - sourcecode: - description: The source code of the contract. Optional. - type: string - type: - description: The type of the contract template - enum: - - FUNGIBLE_TOKEN - - NON_FUNGIBLE_TOKEN - - NON_TOKEN - - TOKEN_EXTENSION - - TOKEN_UTILITY - example: FUNGIBLE_TOKEN - type: string - docs: - allOf: - - $ref: "#/components/schemas/ContractDoc" - description: A `natspec` compliant documentation json. Can be retrieved - from the output json after compilation - example: - details: "This contract implements an upgradeable proxy. It is upgradeable\ - \ because calls are delegated to an implementation address that can\ - \ be changed. This address is stored in storage in the location specified\ - \ by https://eips.ethereum.org/EIPS/eip-1967[EIP1967], so that it doesn't\ - \ conflict with the storage layout of the implementation behind the\ - \ proxy." - errors: - ERC1967NonPayable(): - - details: An upgrade function sees `msg.value > 0` that may be lost. - events: - Upgraded(address): - details: Emitted when the implementation is upgraded. - kind: dev - methods: - constructor: - details: "Initializes the upgradeable proxy with an initial implementation\ - \ specified by `implementation`. If `_data` is nonempty, it's used\ - \ as data in a delegate call to `implementation`. This will typically\ - \ be an encoded function call, and allows initializing the storage\ - \ of the proxy like a Solidity constructor. Requirements: - If `data`\ - \ is empty, `msg.value` must be zero." - version: 1 - abi: - description: The abi of the contract template. Necessary for displaying - and for after deployment encoding - example: - - inputs: - - internalType: address - name: implementation - type: address - - internalType: bytes - name: _data - type: bytes - stateMutability: payable - type: constructor - items: - $ref: "#/components/schemas/AbiFunction" - type: array - attributes: - allOf: - - $ref: "#/components/schemas/ContractAttributes" - description: The attributes related to this contract template. It will be - displayed in the tokenization page - example: - useCases: - - Stablecoin - - CBDC - standards: - - ERC-20 - - ERC-1400 - auditor: - name: MyAuditor - imageURL: https://my-images.com/my-image.jpg - link: https://my-auditor.com/my-audit-report - protocol: - description: The protocol that the template will be used for - enum: - - ETH - - SOL - example: ETH + routingPolicy: + key: + scheme: CUSTOM + dstId: dstId + dstType: FIAT_ACCOUNT + properties: + routingPolicy: + additionalProperties: + $ref: "#/components/schemas/NetworkIdRoutingPolicy_value" + type: object + required: + - routingPolicy + type: object + SetNetworkIdResponse: + example: + success: true + properties: + success: + type: boolean + required: + - success + type: object + SetNetworkIdDiscoverabilityRequest: + example: + isDiscoverable: true + properties: + isDiscoverable: + type: boolean + required: + - isDiscoverable + type: object + SetNetworkIdNameRequest: + example: + name: name + properties: + name: type: string required: - - abi - - bytecode - - description - name - - type type: object - ContractTemplateDto: + ConfigChangeRequestStatus: + enum: + - WAITING_FOR_APPROVAL + - APPROVED + - CANCELLED + - REJECTED + - FAILED + type: string + WalletAsset: example: - longDescription: | - a full ERC20 implementation, containing the following: - - - mint - - burn - owner: b70701f4-d7b1-4795-a8ee-b09cdb5b850d - description: an ERC20 implementation - abi: - - inputs: - - internalType: address - name: implementation - type: address - - internalType: bytes - name: _data - type: bytes - stateMutability: payable - type: constructor - initializationPhase: ON_DEPLOYMENT - type: FUNGIBLE_TOKEN - docs: - details: "This contract implements an upgradeable proxy. It is upgradeable\ - \ because calls are delegated to an implementation address that can be\ - \ changed. This address is stored in storage in the location specified\ - \ by https://eips.ethereum.org/EIPS/eip-1967[EIP1967], so that it doesn't\ - \ conflict with the storage layout of the implementation behind the proxy." - errors: - ERC1967NonPayable(): - - details: An upgrade function sees `msg.value > 0` that may be lost. - events: - Upgraded(address): - details: Emitted when the implementation is upgraded. - kind: dev - methods: - constructor: - details: "Initializes the upgradeable proxy with an initial implementation\ - \ specified by `implementation`. If `_data` is nonempty, it's used\ - \ as data in a delegate call to `implementation`. This will typically\ - \ be an encoded function call, and allows initializing the storage\ - \ of the proxy like a Solidity constructor. Requirements: - If `data`\ - \ is empty, `msg.value` must be zero." - version: 1 - canDeploy: true - vendor: "" - name: My Contract - implementationContractId: implementationContractId - isPublic: true - attributes: - useCases: - - Stablecoin - - CBDC - standards: - - ERC-20 - - ERC-1400 - auditor: - name: MyAuditor - imageURL: https://my-images.com/my-image.jpg - link: https://my-auditor.com/my-audit-report - id: b70701f4-d7b1-4795-a8ee-b09cdb5b850d + lockedAmount: lockedAmount + address: address + balance: balance + id: id + tag: tag + activationTime: activationTime + status: WAITING_FOR_APPROVAL properties: id: - description: The unique identifier of the contract template - example: b70701f4-d7b1-4795-a8ee-b09cdb5b850d type: string - name: - description: The name of the contract template - example: My Contract + balance: type: string - description: - description: A short description of the contract template - example: an ERC20 implementation + lockedAmount: type: string - longDescription: - description: "A full description of the contract template. May contain \n\ - \ to break the lines" - example: | - a full ERC20 implementation, containing the following: - - - mint - - burn + status: + $ref: "#/components/schemas/ConfigChangeRequestStatus" + address: type: string - abi: - description: The abi of the contract template. Necessary for displaying - and for after deployment encoding - example: - - inputs: - - internalType: address - name: implementation - type: address - - internalType: bytes - name: _data - type: bytes - stateMutability: payable - type: constructor - items: - $ref: "#/components/schemas/AbiFunction" - type: array - attributes: - allOf: - - $ref: "#/components/schemas/ContractAttributes" - description: The attributes related to this contract template. It will be - displayed in the tokenization page - example: - useCases: - - Stablecoin - - CBDC - standards: - - ERC-20 - - ERC-1400 - auditor: - name: MyAuditor - imageURL: https://my-images.com/my-image.jpg - link: https://my-auditor.com/my-audit-report - docs: - allOf: - - $ref: "#/components/schemas/ContractDoc" - description: A `natspec` compliant documentation json. Can be retrieved - from the output json after compilation - example: - details: "This contract implements an upgradeable proxy. It is upgradeable\ - \ because calls are delegated to an implementation address that can\ - \ be changed. This address is stored in storage in the location specified\ - \ by https://eips.ethereum.org/EIPS/eip-1967[EIP1967], so that it doesn't\ - \ conflict with the storage layout of the implementation behind the\ - \ proxy." - errors: - ERC1967NonPayable(): - - details: An upgrade function sees `msg.value > 0` that may be lost. - events: - Upgraded(address): - details: Emitted when the implementation is upgraded. - kind: dev - methods: - constructor: - details: "Initializes the upgradeable proxy with an initial implementation\ - \ specified by `implementation`. If `_data` is nonempty, it's used\ - \ as data in a delegate call to `implementation`. This will typically\ - \ be an encoded function call, and allows initializing the storage\ - \ of the proxy like a Solidity constructor. Requirements: - If `data`\ - \ is empty, `msg.value` must be zero." - version: 1 - owner: - description: "The workspace id of the owner of this contract template. If\ - \ it's a private contract, only this workspace will be allowed to deploy\ - \ it" - example: b70701f4-d7b1-4795-a8ee-b09cdb5b850d + tag: type: string - vendor: - allOf: - - $ref: "#/components/schemas/VendorDto" - description: The details of the vendor of this contract template. Applicable - only for public contract templates - isPublic: - description: Is this a contract that is viewable by all fireblocks's users - or is it visible only for this workspace - example: true - type: boolean - canDeploy: - description: "True if the workspace allowed to deploy this contract, false\ - \ otherwise" - example: true - type: boolean - type: - description: The type of the contract template - enum: - - FUNGIBLE_TOKEN - - NON_FUNGIBLE_TOKEN - - NON_TOKEN - - TOKEN_EXTENSION - - TOKEN_UTILITY - example: FUNGIBLE_TOKEN + activationTime: type: string - implementationContractId: + type: object + UnmanagedWallet: + example: + assets: + - lockedAmount: lockedAmount + address: address + balance: balance + id: id + tag: tag + activationTime: activationTime + status: WAITING_FOR_APPROVAL + - lockedAmount: lockedAmount + address: address + balance: balance + id: id + tag: tag + activationTime: activationTime + status: WAITING_FOR_APPROVAL + name: name + id: id + customerRefId: customerRefId + properties: + id: type: string - initializationPhase: - enum: - - ON_DEPLOYMENT - - POST_DEPLOYMENT + name: + type: string + customerRefId: type: string + assets: + items: + $ref: "#/components/schemas/WalletAsset" + type: array required: - - abi - - description + - assets - id - - initializationPhase - - isPublic - name type: object - HttpContractDoesNotExistError: + GetInternalWalletsResponse: + items: + $ref: "#/components/schemas/UnmanagedWallet" + type: array + CreateWalletRequest: example: - code: "404" - message: Contract does not exist + name: name + customerRefId: customerRefId properties: - message: - description: Not Found error code - example: Contract does not exist + name: + description: the wallet's display name type: string - code: - description: Error code - example: "404" + customerRefId: + description: Optional - Sets a customer reference ID type: string type: object - ParameterWithValue: + CreateInternalWalletAssetRequest: example: - components: - - components: - - null - - null - name: _name - description: The name of the token - internalType: string + address: address + tag: tag + properties: + address: + description: "The wallet's address or, for EOS wallets, the account name" type: string - - components: - - null - - null - name: _name - description: The name of the token - internalType: string + tag: + description: "for XRP wallets, the destination tag; for EOS, the memo; for\ + \ the fiat providers (BLINC by BCB Group), the Bank Transfer Description" type: string - name: _name - description: The name of the token - functionValue: "" - internalType: string - type: string - value: "true" + required: + - address + type: object + SigningKeyDto: + example: + createdAt: 124757537 + signingDeviceKeyId: MyKey1 + publicKeyPem: '-----BEGIN PUBLIC KEY ... END PUBLIC KEY-----' + agentUserId: d18847b5-1df6-4c46-8f99-5cce47284529 + keyId: 46a92767-5f93-4a46-9eed-f012196bb4fc + vaultAccountId: 10 + enabled: true + algorithm: ECDSA_SECP256K1 properties: - name: - description: The name of the parameter as it appears in the ABI - example: _name + keyId: + description: External signing key id set by Fireblocks. + example: 46a92767-5f93-4a46-9eed-f012196bb4fc + maxLength: 36 + minLength: 36 type: string - description: - description: "A description of the parameter, fetched from the devdoc of\ - \ this contract" - example: The name of the token + signingDeviceKeyId: + description: "The ID, name or label of the key specified on the customer's\ + \ signing device." + example: MyKey1 + maxLength: 256 type: string - internalType: - description: The internal type of the parameter as it appears in the ABI - example: string + publicKeyPem: + description: PEM encoded public key + example: '-----BEGIN PUBLIC KEY ... END PUBLIC KEY-----' type: string - type: - description: The type of the parameter as it appears in the ABI - example: string + algorithm: + description: "Algorithm and curve used for the signature. Can be: ECDSA_SECP256K1\ + \ or EDDSA_ED25519" + example: ECDSA_SECP256K1 type: string - components: - items: - $ref: "#/components/schemas/Parameter" - type: array - value: - description: The value of the parameter. can also be ParameterWithValue - example: "true" + enabled: + description: True if the signing key is enabled + example: true + type: boolean + vaultAccountId: + description: Id of the vault account which this key is linked to + example: 10 + nullable: true + type: number + agentUserId: + description: Id of user that represent agent servers that can sign with + the key + example: d18847b5-1df6-4c46-8f99-5cce47284529 + maxLength: 36 + minLength: 36 type: string - functionValue: - allOf: - - $ref: "#/components/schemas/LeanAbiFunction" - description: "The function value of this param (if has one). If this is\ - \ set, the `value` shouldn`t be. Used for proxies" + createdAt: + description: Creation date (timestamp) in milliseconds. + example: 124757537 + type: number required: - - name - - type + - agentUserId + - algorithm + - createdAt + - enabled + - keyId + - publicKeyPem + - signingDeviceKeyId + - vaultAccountId type: object - LeanAbiFunction: + GetSigningKeyResponseDto: + example: + next: next + data: + - createdAt: 124757537 + signingDeviceKeyId: MyKey1 + publicKeyPem: '-----BEGIN PUBLIC KEY ... END PUBLIC KEY-----' + agentUserId: d18847b5-1df6-4c46-8f99-5cce47284529 + keyId: 46a92767-5f93-4a46-9eed-f012196bb4fc + vaultAccountId: 10 + enabled: true + algorithm: ECDSA_SECP256K1 + - createdAt: 124757537 + signingDeviceKeyId: MyKey1 + publicKeyPem: '-----BEGIN PUBLIC KEY ... END PUBLIC KEY-----' + agentUserId: d18847b5-1df6-4c46-8f99-5cce47284529 + keyId: 46a92767-5f93-4a46-9eed-f012196bb4fc + vaultAccountId: 10 + enabled: true + algorithm: ECDSA_SECP256K1 properties: - name: - description: The function name - example: initialize - type: string - inputs: - description: The function inputs - items: - $ref: "#/components/schemas/ParameterWithValue" - type: array - outputs: - description: The function outputs + data: + description: Response object for getting external signing keys. items: - $ref: "#/components/schemas/ParameterWithValue" + $ref: "#/components/schemas/SigningKeyDto" type: array - stateMutability: - description: "The state mutability of the function (e.g., view, pure, nonpayable,\ - \ payable)" - enum: - - view - - pure - - nonpayable - - payable - example: nonpayable + next: + description: The ID of the next page type: string required: - - inputs + - data type: object - ContractDeployRequest: + CreateSigningKeyDto: example: - assetId: ETH_TEST5 - constructorParameters: - - internalType: string - name: name_ - type: string - value: TokenName - - internalType: string - name: symbol_ - type: string - value: TokenSymbol - useGasless: false - fee: "2000" - vaultAccountId: "0" - feeLevel: MEDIUM + signingDeviceKeyId: MyKey1 + agentUserId: d18847b5-1df6-4c46-8f99-5cce47284529 + signedCertPem: '-----BEGIN CERTIFICATE ... END CERTIFICATE-----' properties: - assetId: - description: The base asset identifier of the blockchain you want to deploy - to - example: ETH_TEST5 - type: string - vaultAccountId: - description: The vault account id you wish to deploy from - example: "0" + signingDeviceKeyId: + description: "The ID, name or label of the key specified on the customer's\ + \ signing device." + example: MyKey1 + maxLength: 256 type: string - constructorParameters: - description: The constructor parameters of this contract - example: - - internalType: string - name: name_ - type: string - value: TokenName - - internalType: string - name: symbol_ - type: string - value: TokenSymbol - items: - $ref: "#/components/schemas/ParameterWithValue" - type: array - useGasless: - description: "Indicates whether the token should be created in a gasless\ - \ manner, utilizing the ERC-2771 standard. When set to true, the transaction\ - \ will be relayed by a designated relayer. The workspace must be configured\ - \ to use Fireblocks gasless relay." - example: false - type: boolean - fee: - description: Max fee amount for the write function transaction. interchangeable - with the 'feeLevel' field - example: "2000" + signedCertPem: + description: "The signed certificate that includes the public key PEM of\ + \ the signing key, signed by a validation key." + example: '-----BEGIN CERTIFICATE ... END CERTIFICATE-----' type: string - feeLevel: - description: Fee level for the write function transaction. interchangeable - with the 'fee' field - enum: - - LOW - - MEDIUM - - HIGH - example: MEDIUM + agentUserId: + description: Id of user to which this key belongs + example: d18847b5-1df6-4c46-8f99-5cce47284529 + maxLength: 36 + minLength: 36 type: string required: - - assetId + - agentUserId + - signedCertPem + - signingDeviceKeyId + type: object + ModifySigningKeyDto: + example: + vaultAccountId: 123 + properties: + vaultAccountId: + example: 123 + minimum: 1 + type: number + required: - vaultAccountId type: object - ContractDeployResponse: + ModifySigningKeyAgentIdDto: example: - txId: b70701f4-d7b1-4795-a8ee-b09cdb5b850d + agentUserId: d18847b5-1df6-4c46-8f99-5cce47284529 properties: - txId: - description: The transaction id of the deployment request - example: b70701f4-d7b1-4795-a8ee-b09cdb5b850d + agentUserId: + description: Id of user that represent agent servers which signs with the + key + example: d18847b5-1df6-4c46-8f99-5cce47284529 + maxLength: 36 + minLength: 36 type: string required: - - txId + - agentUserId type: object - LeanDeployedContractResponseDto: + ValidationKeyDto: example: - contractTemplateId: b70701f4-d7b1-4795-a8ee-b09cdb5b850d - contractAddress: 0xC2c4e1Db41F0bB97996D0eD0542D2170d146FB66 - id: b70701f4-d7b1-4795-a8ee-b09cdb5b850d - blockchainId: blockchainId + createdAt: 12345633 + publicKeyPem: '-----BEGIN PUBLIC KEY ... END PUBLIC KEY-----' + daysTillExpired: 365 + keyId: 46a92767-5f93-4a46-9eed-f012196bb4fc + enabled: false properties: - id: - description: The deployed contract data identifier - example: b70701f4-d7b1-4795-a8ee-b09cdb5b850d - type: string - contractAddress: - description: The contract's onchain address - example: 0xC2c4e1Db41F0bB97996D0eD0542D2170d146FB66 - type: string - contractTemplateId: - description: The contract template identifier - example: b70701f4-d7b1-4795-a8ee-b09cdb5b850d + keyId: + description: External validation key id set by Fireblocks. + example: 46a92767-5f93-4a46-9eed-f012196bb4fc + maxLength: 36 + minLength: 36 type: string - blockchainId: + publicKeyPem: + description: PEM encoded public key used for the validation. + example: '-----BEGIN PUBLIC KEY ... END PUBLIC KEY-----' type: string + daysTillExpired: + example: 365 + minimum: 1 + type: number + enabled: + description: True if the validation key is enabled. + example: false + type: boolean + createdAt: + description: Creation date (timestamp) in milliseconds. + example: 12345633 + type: number required: - - blockchainId - - contractAddress - - contractTemplateId - - id + - createdAt + - daysTillExpired + - enabled + - keyId + - publicKeyPem type: object - DeployedContractsPaginatedResponse: + GetValidationKeyResponseDto: example: - next: eJ0eXAiOiJKV1QiLCJhbGcOiJIUzI1NiJ9 + next: next data: - - contractTemplateId: b70701f4-d7b1-4795-a8ee-b09cdb5b850d - contractAddress: 0xC2c4e1Db41F0bB97996D0eD0542D2170d146FB66 - id: b70701f4-d7b1-4795-a8ee-b09cdb5b850d - blockchainId: blockchainId - - contractTemplateId: b70701f4-d7b1-4795-a8ee-b09cdb5b850d - contractAddress: 0xC2c4e1Db41F0bB97996D0eD0542D2170d146FB66 - id: b70701f4-d7b1-4795-a8ee-b09cdb5b850d - blockchainId: blockchainId + - createdAt: 12345633 + publicKeyPem: '-----BEGIN PUBLIC KEY ... END PUBLIC KEY-----' + daysTillExpired: 365 + keyId: 46a92767-5f93-4a46-9eed-f012196bb4fc + enabled: false + - createdAt: 12345633 + publicKeyPem: '-----BEGIN PUBLIC KEY ... END PUBLIC KEY-----' + daysTillExpired: 365 + keyId: 46a92767-5f93-4a46-9eed-f012196bb4fc + enabled: false properties: data: - description: The data of the current page + description: Response object for getting external validation keys. items: - $ref: "#/components/schemas/LeanDeployedContractResponseDto" + $ref: "#/components/schemas/ValidationKeyDto" type: array next: description: The ID of the next page - example: eJ0eXAiOiJKV1QiLCJhbGcOiJIUzI1NiJ9 - nullable: true type: string required: - data type: object - GasslessStandardConfigurations: - description: The gasless configuration of the contract + CreateValidationKeyDto: example: - gaslessStandardConfigurations: - key: - forwarderAddresses: - - 0x2E7B54631e18E9eEcc2eb5219249cc8388586f66 - - 0x2E7B54631e18E9eEcc2eb5219249cc8388586f66 - lastOnChainCheck: 2024-09-09T04:17:46.918Z + publicKeyPem: '-----BEGIN PUBLIC KEY ... END PUBLIC KEY-----' + daysTillExpired: 365 properties: - gaslessStandardConfigurations: - additionalProperties: - $ref: "#/components/schemas/GasslessStandardConfigurations_gaslessStandardConfigurations_value" - type: object + publicKeyPem: + description: The PEM encoded public key of the validation key being added + example: '-----BEGIN PUBLIC KEY ... END PUBLIC KEY-----' + type: string + daysTillExpired: + description: The number of days from the date the validation key was added + until it expires + example: 365 + minimum: 1 + type: number + required: + - daysTillExpired + - publicKeyPem type: object - ParameterWithValueList: - items: - $ref: "#/components/schemas/ParameterWithValue" - type: array - MultichainDeploymentMetadata: - description: The multichain deployment metadata + CreateValidationKeyResponseDto: example: - address: 0x742d35Cc6634C0532925a3b844Bc454e4438f44e - initParams: - - components: - - components: - - null - - null - name: _name - description: The name of the token - internalType: string - type: string - - components: - - null - - null - name: _name - description: The name of the token - internalType: string - type: string - name: _name - description: The name of the token - functionValue: "" - internalType: string - type: string - value: "true" - - components: - - components: - - null - - null - name: _name - description: The name of the token - internalType: string - type: string - - components: - - null - - null - name: _name - description: The name of the token - internalType: string - type: string - name: _name - description: The name of the token - functionValue: "" - internalType: string - type: string - value: "true" - deploymentSalt: 0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef - id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - templateId: 0e4f5a3b-924e-7bb9-8e5b-c748270feb38 - encodedInitParams: 0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef + approvalThreshold: 0 + requestId: 1234 + validationKey: "" + admins: + - admins + - admins properties: - id: - description: The unique identifier of the deployment metadata - format: uuid - type: string - address: - description: The address of the deployed contract - example: 0x742d35Cc6634C0532925a3b844Bc454e4438f44e - type: string - templateId: - description: The unique identifier of the contract template - example: 0e4f5a3b-924e-7bb9-8e5b-c748270feb38 - format: uuid - type: string - deploymentSalt: - description: The salt used for the deployment - example: 0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef - type: string - initParams: + validationKey: + allOf: + - $ref: "#/components/schemas/ValidationKeyDto" + description: Created validation key + admins: + description: Admins who have to approve the validation key addition items: - $ref: "#/components/schemas/ParameterWithValue" + type: string type: array - encodedInitParams: - description: The encoded init params - example: 0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef - type: string + approvalThreshold: + description: Minimal number of approvers required. 0 for all + example: 0 + minimum: 0 + type: number + requestId: + description: Approval request id. Can be cancelled + example: 1234 + type: number + required: + - admins + - approvalThreshold + - requestId + - validationKey type: object - SolanaConfig: - description: The Solana configuration of the contract + ModifyValidationKeyDto: example: - extensions: - - metadataPointer - - transferHook - type: TOKEN2022 + enabled: false properties: - extensions: - description: The extensions that the contract implements. - example: - - metadataPointer - - transferHook - items: - type: string - type: array - type: - description: The type of the contract. - enum: - - SPL - - TOKEN2022 - - PROGRAM - example: TOKEN2022 - type: string + enabled: + description: Disable validation key + example: false + type: boolean + required: + - enabled type: object - DeployedContractResponseDto: + GetExternalWalletsResponse: + items: + $ref: "#/components/schemas/UnmanagedWallet" + type: array + WalletAssetAdditionalInfo: example: - baseAssetId: ETH_TEST5 - gaslessConfig: - gaslessStandardConfigurations: - key: - forwarderAddresses: - - 0x2E7B54631e18E9eEcc2eb5219249cc8388586f66 - - 0x2E7B54631e18E9eEcc2eb5219249cc8388586f66 - lastOnChainCheck: 2024-09-09T04:17:46.918Z - contractTemplateId: b70701f4-d7b1-4795-a8ee-b09cdb5b850d - solanaConfig: - extensions: - - metadataPointer - - transferHook - type: TOKEN2022 - contractAddress: 0xC2c4e1Db41F0bB97996D0eD0542D2170d146FB66 - vaultAccountId: "0" - multichainDeploymentMetadata: - address: 0x742d35Cc6634C0532925a3b844Bc454e4438f44e - initParams: - - components: - - components: - - null - - null - name: _name - description: The name of the token - internalType: string - type: string - - components: - - null - - null - name: _name - description: The name of the token - internalType: string - type: string - name: _name - description: The name of the token - functionValue: "" - internalType: string - type: string - value: "true" - - components: - - components: - - null - - null - name: _name - description: The name of the token - internalType: string - type: string - - components: - - null - - null - name: _name - description: The name of the token - internalType: string - type: string - name: _name - description: The name of the token - functionValue: "" - internalType: string - type: string - value: "true" - deploymentSalt: 0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef - id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - templateId: 0e4f5a3b-924e-7bb9-8e5b-c748270feb38 - encodedInitParams: 0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef - id: b70701f4-d7b1-4795-a8ee-b09cdb5b850d - blockchainId: blockchainId + accountHolderCity: accountHolderCity + ibanCity: ibanCity + abaRoutingNumber: abaRoutingNumber + accountHolderCountry: accountHolderCountry + accountHolderGivenName: accountHolderGivenName + speiName: speiName + accountHolderDistrict: accountHolderDistrict + abaAccountNumber: abaAccountNumber + accountHolderSurname: accountHolderSurname + accountHolderPostalCode: accountHolderPostalCode + iban: iban + ibanCountry: ibanCountry + accountHolderAddress2: accountHolderAddress2 + accountHolderAddress1: accountHolderAddress1 + speiClabe: speiClabe + abaCountry: abaCountry properties: - id: - description: The deployed contract data identifier - example: b70701f4-d7b1-4795-a8ee-b09cdb5b850d + accountHolderGivenName: + type: string + accountHolderSurname: + type: string + accountHolderCity: type: string - contractAddress: - description: The contract's onchain address - example: 0xC2c4e1Db41F0bB97996D0eD0542D2170d146FB66 + accountHolderCountry: type: string - contractTemplateId: - description: The contract template identifier - example: b70701f4-d7b1-4795-a8ee-b09cdb5b850d + accountHolderAddress1: type: string - vaultAccountId: - description: The vault account id this contract was deploy from - example: "0" + accountHolderAddress2: type: string - blockchainId: + accountHolderDistrict: type: string - baseAssetId: - description: The blockchain base assetId - example: ETH_TEST5 + accountHolderPostalCode: type: string - gaslessConfig: - $ref: "#/components/schemas/GasslessStandardConfigurations" - multichainDeploymentMetadata: - $ref: "#/components/schemas/MultichainDeploymentMetadata" - solanaConfig: - $ref: "#/components/schemas/SolanaConfig" - required: - - blockchainId - - contractAddress - - contractTemplateId - - id - type: object - FetchAbiRequestDto: - example: - baseAssetId: ETH - contractAddress: 0xC2c4e1Db41F0bB97996D0eD0542D2170d146FB66 - properties: - baseAssetId: - description: The blockchain base assetId - example: ETH + abaRoutingNumber: type: string - contractAddress: - description: The contract's onchain address - example: 0xC2c4e1Db41F0bB97996D0eD0542D2170d146FB66 + abaAccountNumber: + type: string + abaCountry: + type: string + iban: + type: string + ibanCity: + type: string + ibanCountry: + type: string + speiClabe: + type: string + speiName: type: string - required: - - baseAssetId - - contractAddress type: object - ContractWithAbiDto: + ExternalWalletAsset: example: - baseAssetId: ETH_TEST6 - implementation: 0xfff9976782d46cc05630d1f6ebab18b2324d6b14 - name: WETH9 - contractAddress: 0xfff9976782d46cc05630d1f6ebab18b2324d6b14 - abi: - - inputs: - - internalType: address - name: to - type: address - - internalType: uint256 - name: amount - type: uint256 - stateMutability: nonpayable - type: function - name: mint - isPublic: true - isProxy: true + address: address + lockedAmount: lockedAmount + balance: balance + additionalInfo: + - accountHolderCity: accountHolderCity + ibanCity: ibanCity + abaRoutingNumber: abaRoutingNumber + accountHolderCountry: accountHolderCountry + accountHolderGivenName: accountHolderGivenName + speiName: speiName + accountHolderDistrict: accountHolderDistrict + abaAccountNumber: abaAccountNumber + accountHolderSurname: accountHolderSurname + accountHolderPostalCode: accountHolderPostalCode + iban: iban + ibanCountry: ibanCountry + accountHolderAddress2: accountHolderAddress2 + accountHolderAddress1: accountHolderAddress1 + speiClabe: speiClabe + abaCountry: abaCountry + - accountHolderCity: accountHolderCity + ibanCity: ibanCity + abaRoutingNumber: abaRoutingNumber + accountHolderCountry: accountHolderCountry + accountHolderGivenName: accountHolderGivenName + speiName: speiName + accountHolderDistrict: accountHolderDistrict + abaAccountNumber: abaAccountNumber + accountHolderSurname: accountHolderSurname + accountHolderPostalCode: accountHolderPostalCode + iban: iban + ibanCountry: ibanCountry + accountHolderAddress2: accountHolderAddress2 + accountHolderAddress1: accountHolderAddress1 + speiClabe: speiClabe + abaCountry: abaCountry + id: id + tag: tag + activationTime: activationTime + status: WAITING_FOR_APPROVAL properties: - contractAddress: - description: The address of the contract - example: 0xfff9976782d46cc05630d1f6ebab18b2324d6b14 + id: type: string - baseAssetId: - description: The blockchain base assetId - example: ETH_TEST6 + status: + $ref: "#/components/schemas/ConfigChangeRequestStatus" + address: type: string - name: - description: The name of the contract - example: WETH9 + balance: type: string - abi: - description: The ABI of the contract - example: - - inputs: - - internalType: address - name: to - type: address - - internalType: uint256 - name: amount - type: uint256 - stateMutability: nonpayable - type: function - name: mint + lockedAmount: + type: string + tag: + type: string + activationTime: + type: string + additionalInfo: items: - $ref: "#/components/schemas/AbiFunction" + $ref: "#/components/schemas/WalletAssetAdditionalInfo" type: array - isProxy: - description: Whether the contract is a proxy contract - example: true - type: boolean - implementation: - description: The implementation contract address - example: 0xfff9976782d46cc05630d1f6ebab18b2324d6b14 - type: string - isPublic: - description: Whether the contract ABI is public - example: true - type: boolean - required: - - abi - - baseAssetId - - contractAddress - - isPublic - - name type: object - AddAbiRequestDto: + AddAssetToExternalWalletRequest: + oneOf: + - $ref: "#/components/schemas/AddAssetToExternalWalletRequest_oneOf" + - $ref: "#/components/schemas/AddAssetToExternalWalletRequest_oneOf_1" + GetContractsResponse: + items: + $ref: "#/components/schemas/UnmanagedWallet" + type: array + CreateContractRequest: example: - baseAssetId: ETH - name: MyContract - contractAddress: 0xfff9976782d46cc05630d1f6ebab18b2324d6b14 - abi: - - inputs: - - internalType: address - name: to - type: address - - internalType: uint256 - name: amount - type: uint256 - stateMutability: nonpayable - type: function - name: mint + name: name properties: - contractAddress: - description: The address of deployed contract - example: 0xfff9976782d46cc05630d1f6ebab18b2324d6b14 + name: + description: the contract's display name type: string - baseAssetId: - description: The blockchain base assetId - example: ETH + type: object + AddContractAssetRequest: + example: + address: address + tag: tag + properties: + address: + description: The contract's address (or xpub) of the wallet type: string - abi: - description: The ABI of the contract - example: - - inputs: - - internalType: address - name: to - type: address - - internalType: uint256 - name: amount - type: uint256 - stateMutability: nonpayable - type: function - name: mint - items: - $ref: "#/components/schemas/AbiFunction" - type: array - name: - description: The name of the contract - example: MyContract + tag: + description: "The destination tag, for XRP wallets" type: string required: - - abi - - baseAssetId - - contractAddress + - address type: object - AssetMetadataDto: + AssetTypeResponse: example: - symbol: MYT - holdersCount: 6 - totalSupply: "1000000000000000" - contractAddress: 0x1234567890abcdef1234567890abcdef12345678 - vaultAccountId: "0" - type: ERC20 - blockchain: ETH_TEST5 - assetId: BQ5R_MY_TOKEN - issuerAddress: rGyXjc5d7s17vvt3NtKKascvJrnSxV21kQ - decimals: 18 - name: MyToken - testnet: true - networkProtocol: ETH + nativeAsset: nativeAsset + decimals: 0.8008281904610115 + name: name + contractAddress: contractAddress + id: id + type: type properties: - assetId: - description: The Fireblocks` asset id - example: BQ5R_MY_TOKEN + id: type: string name: - description: The name of the token - example: MyToken - type: string - symbol: - description: The symbol of the token - example: MYT - type: string - networkProtocol: - description: The network protocol of the token - example: ETH type: string - totalSupply: - description: The total supply of the token - example: "1000000000000000" - type: string - holdersCount: - description: The number of holders of the token - example: 6 - type: number type: - description: The type of the token - example: ERC20 type: string contractAddress: - description: The address of the token contract - example: 0x1234567890abcdef1234567890abcdef12345678 type: string - issuerAddress: - description: "In case of Stellar or Ripple, the address of the issuer of\ - \ the token" - example: rGyXjc5d7s17vvt3NtKKascvJrnSxV21kQ + nativeAsset: + type: string + decimals: + type: number + required: + - id + - name + - type + type: object + GetSupportedAssetsResponse: + items: + $ref: "#/components/schemas/AssetTypeResponse" + type: array + RegisterNewAssetRequest: + example: + symbol: TST3 + address: 0xe7A9as1oa38bc4da0248s179E30aa94CcF453991 + blockchainId: "(ETH, ETH_TEST5, MATIC_POLYGON)" + properties: + blockchainId: + description: Native asset ID of the blockchain + example: "(ETH, ETH_TEST5, MATIC_POLYGON)" type: string - testnet: - description: Is it deployed on testnet or to mainnet - example: true - type: boolean - blockchain: - description: The blockchain native asset id which the token is deployed - on - example: ETH_TEST5 + address: + description: "Asset address. \n- For EVM based chains this should be the\ + \ token contract address.\n- For Stellar (XLM) this should be the issuer\ + \ address.\n- For Algorand (ALGO) this should be the asset ID.\n- For\ + \ TRON (TRX) this should be the token contract address.\n- For NEAR this\ + \ will be the token address.\n" + example: 0xe7A9as1oa38bc4da0248s179E30aa94CcF453991 type: string - decimals: - description: The number of decimals of the token - example: 18 - type: number - vaultAccountId: - description: The id of the vault account that initiated the request to issue - the token. Will be empty if token was issued outside of Fireblocks. - example: "0" + symbol: + description: "Required for Stellar only, asset code is expected." + example: TST3 type: string required: - - assetId + - address + - blockchainId type: object - CollectionMetadataDto: + AssetResponse: + example: + metadata: + scope: Global + deprecated: false + legacyId: TST3_ETH + assetClass: FT + onchain: + standard: ERC20 + symbol: TST3 + address: 0xe7A9as1oa38bc4da0248s179E30aa94CcF453991 + decimals: 18 + name: Test 3 properties: - fbCollectionId: - description: Fireblocks collection id - example: 911fe739f0d4d123c98fd366c3bed35c6e30c00e + legacyId: + example: TST3_ETH type: string - name: - description: Collection name - example: Rarible + assetClass: + enum: + - NATIVE + - FT + - NFT + - SFT + example: FT type: string - symbol: - description: Collection symbol - example: RARI + onchain: + $ref: "#/components/schemas/AssetResponse_onchain" + metadata: + $ref: "#/components/schemas/AssetResponse_metadata" + required: + - assetClass + - legacyId + - metadata + - onchain + type: object + AssetBadRequestErrorResponse: + example: + code: "3001" + message: Listing an asset on the requested blockchain is not supported + properties: + message: + description: Bad request error code + example: Listing an asset on the requested blockchain is not supported type: string - standard: - description: Collection contract standard - example: "[\"ERC721\",\"ERC1155\",\"FA2\"]" + code: + description: Error code + example: "3001" type: string - blockchainDescriptor: - description: Collection's blockchain - example: ETH + required: + - code + - message + type: object + AssetForbiddenErrorResponse: + example: + code: "3006" + message: Asset creation quota reached + properties: + message: + description: Forbidden error code + example: Asset creation quota reached type: string - contractAddress: - description: Collection contract address - example: 0x1723017329a804564bC8d215496C89eaBf1F3211 + code: + description: Error code + example: "3006" type: string required: - - blockchainDescriptor - - fbCollectionId + - code + - message type: object - ContractMetadataDto: + AssetNotFoundErrorResponse: + example: + code: "3009" + message: "Invalid address, could not get asset information" properties: - id: - description: The deployed contract ID - example: fbfbfbfb-fbfb-fbfb-fbfb-fbfbfbfbfbfb + message: + description: Not found error code + example: "Invalid address, could not get asset information" type: string - blockchainId: - description: The blockchain ID - example: B7QG017M + code: + description: Error code + example: "3009" type: string - contractAddress: - description: The address of the token contract - example: 0x1234567890abcdef1234567890abcdef12345678 + required: + - code + - message + type: object + AssetConflictErrorResponse: + example: + code: "3002" + message: Asset already listed + properties: + message: + description: Conflict error code + example: Asset already listed type: string - contractTemplateId: - description: The contract template ID - example: b70701f4-d7b1-4795-a8ee-b09cdb5b850d + code: + description: Error code + example: "3002" type: string - vaultAccountId: - description: The vault account ID that initiated the request to issue the - token - example: "0" + required: + - code + - message + type: object + AssetInternalServerErrorResponse: + example: + code: "3005" + message: Internal server error + properties: + message: + description: Internal server error code + example: Internal server error + type: string + code: + description: Error code + example: "3005" type: string required: - - blockchainId - - contractAddress - - contractTemplateId - - id + - code + - message type: object - TokenLinkDto: + GetTransactionOperation: + description: | + * `TRANSFER` - Transfers funds from one account to another. UTXO blockchains allow multi-input and multi-output transfers. All other blockchains allow transfers with one source address and one destination address. + * `MINT` - Mints new tokens. Supported for Stellar, Ripple and EVM-based blockchains. + * `BURN` - Burns tokens. Supported for Stellar, Ripple and EVM-based blockchains. + * `CONTRACT_CALL` - Calls a smart contract method for web3 operations on any EVM blockchain. The Fireblocks [development libraries](https://developers.fireblocks.com/docs/ethereum-development#convenience-libraries) are recommended for building contract call transactions. + * `TYPED_MESSAGE` - An off-chain message in either Ethereum Personal Message or EIP712 format. Use it to sign specific readable messages that are not actual transactions. [Learn more about typed messages](https://developers.fireblocks.com/docs/typed-message-signing). + * `RAW` - An off-chain message with no predefined format. Use it to sign any message with your private key, including protocols such as blockchains and custom transaction types that are not natively supported by Fireblocks. [Learn more about raw signing transactions.](https://developers.fireblocks.com/docs/raw-message-signing) + * `ENABLE_ASSET` - Algorand, DigitalBits, Solana, and Stellar require an on-chain transaction to create an asset wallet and enable the deposit address. This transaction is automatically created when adding assets on these blockchains at a vault account. + * `STAKE` - Assign assets to a staking pool managed by a staking validator. Supported for Stellar and EVM-based blockchains. This transaction is automatically created when performing staking operations. + * `UNSTAKE` - Remove assets from a staking pool managed by a staking validator. Supported for Stellar and EVM-based blockchains. This transaction is automatically created when performing staking operations. + * `WITHDRAW` - Transfer assets from a dedicated staking vault account to another address. Supported for Stellar and EVM-based blockchains. This transaction is automatically created when performing staking operations. + + **Note:** Fireblocks will rename this type from `WITHDRAW` to a different type name soon. There will be a 7-day notice regarding the new type name. + + * `SUPPLY_TO_COMPOUND` - Deprecated since April 1st, 2023. Older transactions may have this as their operation, in case users in the workspace have used the direct integration between Fireblocks and the Compound DeFI protocol. + * `REDEEM_FROM_COMPOUND` - Deprecated since April 1st, 2023. Older transactions may have this as their operation, in case users in the workspace have used the direct integration between Fireblocks and the Compound DeFI protocol. + enum: + - TRANSFER + - BURN + - CONTRACT_CALL + - MINT + - RAW + - TYPED_MESSAGE + - ENABLE_ASSET + - STAKE + - UNSTAKE + - WITHDRAW + - REDEEM_FROM_COMPOUND + - SUPPLY_TO_COMPOUND + type: string + TransferPeerPathType: + enum: + - VAULT_ACCOUNT + - EXCHANGE_ACCOUNT + - INTERNAL_WALLET + - EXTERNAL_WALLET + - CONTRACT + - NETWORK_CONNECTION + - FIAT_ACCOUNT + - COMPOUND + - GAS_STATION + - ONE_TIME_ADDRESS + - UNKNOWN + - END_USER_WALLET + type: string + SourceTransferPeerPathResponse: + description: Source of the transaction. example: - displayName: My Simple ERC20 Token - id: fbfbfbfb-fbfb-fbfb-fbfb-fbfbfbfbfbfb - refId: BQ5R_MY_TOKEN - type: NON_FUNGIBLE_TOKEN - tokenMetadata: - symbol: MYT - holdersCount: 6 - totalSupply: "1000000000000000" - contractAddress: 0x1234567890abcdef1234567890abcdef12345678 - vaultAccountId: "0" - type: ERC20 - blockchain: ETH_TEST5 - assetId: BQ5R_MY_TOKEN - issuerAddress: rGyXjc5d7s17vvt3NtKKascvJrnSxV21kQ - decimals: 18 - name: MyToken - testnet: true - networkProtocol: ETH - status: COMPLETED + walletId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + name: name + subType: subType + id: id + type: VAULT_ACCOUNT properties: - id: - description: The token link id - example: fbfbfbfb-fbfb-fbfb-fbfb-fbfbfbfbfbfb + type: + $ref: "#/components/schemas/TransferPeerPathType" + subType: + description: "In case the type is set to `EXCHANGE_ACCOUNT` or `FIAT_ACCOUNT`,\ + \ the specific exchange vendor name or fiat vendor name. In case the type\ + \ is set to `INTERNAL_WALLET` or `EXTERNAL_WALLET`, the subType is set\ + \ to `Internal` or `External`." type: string - status: - description: The token status - enum: - - PENDING - - COMPLETED - example: COMPLETED + id: + 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." + nullable: true type: string + name: + description: The name of the peer. + type: string + walletId: + format: uuid + type: string + required: + - type + type: object + DestinationTransferPeerPathResponse: + description: |- + Destination of the transaction. + + **Note:** In case the transaction is sent to multiple destinations, the `destinations` parameter is be used instead of this. + example: + walletId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + name: name + subType: subType + id: id + type: null + properties: type: - description: The type of token - enum: - - FUNGIBLE_TOKEN - - NON_FUNGIBLE_TOKEN - - TOKEN_UTILITY - - TOKEN_EXTENSION - example: NON_FUNGIBLE_TOKEN + $ref: "#/components/schemas/TransferPeerPathType" + subType: + description: "In case the type is set to `EXCHANGE_ACCOUNT` or `FIAT_ACCOUNT`,\ + \ the specific exchange vendor name or fiat vendor name.In case the type\ + \ is set to `INTERNAL_WALLET` or `EXTERNAL_WALLET`, the subType is set\ + \ to `Internal` or `External`." type: string - refId: - description: The Fireblocks' reference id - example: BQ5R_MY_TOKEN + id: + 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." + nullable: true type: string - displayName: - description: "The token display name. If was not provided, would be taken\ - \ from the contract template" - example: My Simple ERC20 Token + name: + description: The name of the peer. + type: string + walletId: + format: uuid type: string - tokenMetadata: - $ref: "#/components/schemas/TokenLinkDto_tokenMetadata" required: - - id - - status + - type type: object - TokensPaginatedResponse: + AmlScreeningResult: + description: The result of the AML screening. example: - next: eJ0eXAiOiJKV1QiLCJhbGcOiJIUzI1NiJ9 - data: - - displayName: My Simple ERC20 Token - id: fbfbfbfb-fbfb-fbfb-fbfb-fbfbfbfbfbfb - refId: BQ5R_MY_TOKEN - type: NON_FUNGIBLE_TOKEN - tokenMetadata: - symbol: MYT - holdersCount: 6 - totalSupply: "1000000000000000" - contractAddress: 0x1234567890abcdef1234567890abcdef12345678 - vaultAccountId: "0" - type: ERC20 - blockchain: ETH_TEST5 - assetId: BQ5R_MY_TOKEN - issuerAddress: rGyXjc5d7s17vvt3NtKKascvJrnSxV21kQ - decimals: 18 - name: MyToken - testnet: true - networkProtocol: ETH - status: COMPLETED - - displayName: My Simple ERC20 Token - id: fbfbfbfb-fbfb-fbfb-fbfb-fbfbfbfbfbfb - refId: BQ5R_MY_TOKEN - type: NON_FUNGIBLE_TOKEN - tokenMetadata: - symbol: MYT - holdersCount: 6 - totalSupply: "1000000000000000" - contractAddress: 0x1234567890abcdef1234567890abcdef12345678 - vaultAccountId: "0" - type: ERC20 - blockchain: ETH_TEST5 - assetId: BQ5R_MY_TOKEN - issuerAddress: rGyXjc5d7s17vvt3NtKKascvJrnSxV21kQ - decimals: 18 - name: MyToken - testnet: true - networkProtocol: ETH - status: COMPLETED + provider: provider + payload: "{}" properties: - data: - description: The data of the current page + provider: + type: string + payload: + type: object + type: object + AuthorizationGroups: + example: + th: 0.8008281904610115 + users: + key: PENDING_AUTHORIZATION + properties: + th: + type: number + users: + additionalProperties: + enum: + - PENDING_AUTHORIZATION + - APPROVED + - REJECTED + - NA + type: string + type: object + type: object + AuthorizationInfo: + description: "The information about your [Transaction Authorization Policy (TAP).](https://developers.fireblocks.com/docs/capabilities#transaction-authorization-policy-tap)" + example: + allowOperatorAsAuthorizer: true + groups: + - th: 0.8008281904610115 + users: + key: PENDING_AUTHORIZATION + - th: 0.8008281904610115 + users: + key: PENDING_AUTHORIZATION + logic: AND + properties: + allowOperatorAsAuthorizer: + type: boolean + logic: + enum: + - AND + - OR + type: string + groups: items: - $ref: "#/components/schemas/TokenLinkDto" + $ref: "#/components/schemas/AuthorizationGroups" type: array - next: - description: The ID of the next page - example: eJ0eXAiOiJKV1QiLCJhbGcOiJIUzI1NiJ9 - nullable: true - type: string - required: - - data type: object - EVMTokenCreateParamsDto: + TransactionResponseDestination: example: - deployFunctionParams: - - internalType: string + amount: amount + amountUSD: amountUSD + authorizationInfo: + allowOperatorAsAuthorizer: true + groups: + - th: 0.8008281904610115 + users: + key: PENDING_AUTHORIZATION + - th: 0.8008281904610115 + users: + key: PENDING_AUTHORIZATION + logic: AND + destinationAddress: "" + amlScreeningResult: + provider: provider + payload: "{}" + destination: + walletId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 name: name + subType: subType + id: id + type: null + destinationAddressDescription: "" + properties: + destinationAddress: + description: Address where the asset was transferred. + destinationAddressDescription: + description: Description of the address. + amount: + description: The amount to be sent to this destination. type: string - value: name - - internalType: string - name: symbol + amountUSD: + description: The USD value of the requested amount. type: string - value: symbol - - components: - - internalType: bool - name: _isMintable - type: bool - internalType: struct MyStruct - name: customConfigProps - type: tuple - value: - - internalType: bool - name: _isMintable - type: bool - value: false - contractId: b70701f4-d7b1-4795-a8ee-b09cdb5b850d + amlScreeningResult: + $ref: "#/components/schemas/AmlScreeningResult" + destination: + $ref: "#/components/schemas/DestinationTransferPeerPathResponse" + authorizationInfo: + $ref: "#/components/schemas/AuthorizationInfo" + type: object + AmountInfo: + description: The details of the requested amount to transfer. + example: + amount: amount + amountUSD: amountUSD + netAmount: netAmount + requestedAmount: requestedAmount properties: - contractId: - description: The id of the contract template that will be used to create - the token - example: b70701f4-d7b1-4795-a8ee-b09cdb5b850d + amount: + description: "If the transfer is a withdrawal from an exchange, the actual\ + \ amount that was requested to be transferred. Otherwise, the requested\ + \ amount." + type: string + requestedAmount: + description: The amount requested by the user. + type: string + netAmount: + description: "The net amount of the transaction, after fee deduction." + type: string + amountUSD: + description: The USD value of the requested amount. type: string - deployFunctionParams: - description: The deploy function parameters and values of the contract template - example: - - internalType: string - name: name - type: string - value: name - - internalType: string - name: symbol - type: string - value: symbol - - components: - - internalType: bool - name: _isMintable - type: bool - internalType: struct MyStruct - name: customConfigProps - type: tuple - value: - - internalType: bool - name: _isMintable - type: bool - value: false - items: - $ref: "#/components/schemas/ParameterWithValue" - type: array - required: - - contractId type: object - StellarRippleCreateParamsDto: + FeeInfo: + description: Details of the transaction's fee. + example: + serviceFee: serviceFee + networkFee: networkFee + gasPrice: gasPrice properties: - symbol: - description: The symbol of the token - example: MyUSDT + networkFee: + description: The fee paid to the network type: string - name: - description: The name of the token - example: My USD Tether + serviceFee: + description: The total fee deducted by the exchange from the actual requested + amount (serviceFee = amount - netAmount) type: string - issuerAddress: - description: The address of the issuer of this token. Will be part of the - identifier of this token on chain. - example: rnDV4JiwgRNhudPY2sm65AzECpRXaasL4r + gasPrice: type: string - required: - - issuerAddress - - name - - symbol type: object - SolanaSimpleCreateParams: + RewardInfo: + description: "This field is relevant only for Algorand transactions. Both `srcRewards`\ + \ and `destRewards` will appear only for Vault to Vault transactions, otherwise\ + \ you will receive only the Fireblocks’ side of the transaction." + example: + destRewards: destRewards + srcRewards: srcRewards properties: - name: - description: The name of the token or asset being created. - example: SolanaToken + srcRewards: type: string - symbol: - description: "The symbol for the token, typically an abbreviated representation." - example: SOL + destRewards: type: string - decimals: - description: "The number of decimal places the token supports (e.g., 9 for\ - \ typical Solana tokens)." - example: 9 - type: integer - required: - - decimals - - name - - symbol type: object - CreateTokenRequestDto: + NetworkRecord: example: - assetId: ETH_TEST5 - displayName: displayName - useGasless: false - fee: "2000" - vaultAccountId: "0" - feeLevel: MEDIUM - blockchainId: B7QG017M - createParams: - deployFunctionParams: - - internalType: string - name: name - type: string - value: name - - internalType: string - name: symbol - type: string - value: symbol - - components: - - internalType: bool - name: _isMintable - type: bool - internalType: struct MyStruct - name: customConfigProps - type: tuple - value: - - internalType: bool - name: _isMintable - type: bool - value: false - contractId: b70701f4-d7b1-4795-a8ee-b09cdb5b850d + amountUSD: amountUSD + destinationAddress: destinationAddress + sourceAddress: sourceAddress + netAmount: netAmount + networkFee: networkFee + destination: + walletId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + name: name + subType: subType + id: id + type: null + index: 6.027456183070403 + source: + walletId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + name: name + subType: subType + id: id + type: VAULT_ACCOUNT + type: type + isDropped: true + rewardInfo: + destRewards: destRewards + srcRewards: srcRewards + assetId: assetId + txHash: txHash properties: - blockchainId: - description: The id of the blockchain the request was initiated on - example: B7QG017M + source: + $ref: "#/components/schemas/SourceTransferPeerPathResponse" + destination: + $ref: "#/components/schemas/DestinationTransferPeerPathResponse" + txHash: type: string - assetId: - description: The base asset identifier of the blockchain you want to deploy - to - example: ETH_TEST5 + networkFee: type: string - vaultAccountId: - description: The id of the vault account that initiated the request to issue - the token - example: "0" + assetId: type: string - createParams: - $ref: "#/components/schemas/CreateTokenRequestDto_createParams" - displayName: + x-fb-entity: asset + netAmount: + description: "The net amount of the transaction, after fee deduction" type: string - useGasless: - description: "Indicates whether the token should be created in a gasless\ - \ manner, utilizing the ERC-2771 standard. When set to true, the transaction\ - \ will be relayed by a designated relayer. The workspace must be configured\ - \ to use Fireblocks gasless relay." - example: false + isDropped: type: boolean - fee: - description: Max fee amount for the write function transaction. interchangeable - with the 'feeLevel' field - example: "2000" + type: type: string - feeLevel: - description: Fee level for the write function transaction. interchangeable - with the 'fee' field + destinationAddress: + type: string + sourceAddress: + type: string + amountUSD: + type: string + index: + type: number + rewardInfo: + $ref: "#/components/schemas/RewardInfo" + type: object + ComplianceScreeningResult: + example: + provider: provider + payload: "{}" + bypassReason: bypassReason + screeningStatus: COMPLETED + timestamp: 5.637376656633329 + properties: + provider: + type: string + payload: + description: | + 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. + type: object + bypassReason: + type: string + screeningStatus: enum: - - LOW - - MEDIUM - - HIGH - example: MEDIUM + - COMPLETED + - PENDING + - BYPASSED + - FAILED + - FROZEN type: string - required: - - createParams - - vaultAccountId + timestamp: + format: date-time + type: number type: object - AssetAlreadyExistHttpError: + AmlRegistrationResult: example: - message: message - error: Conflict - statusCode: 409 + provider: provider + success: true + timestamp: 2.3021358869347655 properties: - statusCode: - description: HTTP status code - example: 409 - format: int32 - type: integer - message: - description: Error message + provider: type: string - error: - description: Short description of the HTTP error - example: Conflict + success: + type: boolean + timestamp: + type: number + type: object + ComplianceResult: + description: The result of the Compliance AML/Travel Rule screening. + example: + aml: + - provider: provider + payload: "{}" + bypassReason: bypassReason + screeningStatus: COMPLETED + timestamp: 5.637376656633329 + - provider: provider + payload: "{}" + bypassReason: bypassReason + screeningStatus: COMPLETED + timestamp: 5.637376656633329 + amlRegistration: + - provider: provider + success: true + timestamp: 2.3021358869347655 + - provider: provider + success: true + timestamp: 2.3021358869347655 + amlList: + - provider: provider + payload: "{}" + bypassReason: bypassReason + screeningStatus: COMPLETED + timestamp: 5.637376656633329 + - provider: provider + payload: "{}" + bypassReason: bypassReason + screeningStatus: COMPLETED + timestamp: 5.637376656633329 + tr: + - provider: provider + payload: "{}" + bypassReason: bypassReason + screeningStatus: COMPLETED + timestamp: 5.637376656633329 + - provider: provider + payload: "{}" + bypassReason: bypassReason + screeningStatus: COMPLETED + timestamp: 5.637376656633329 + status: Started + properties: + aml: + description: The end result of the AML screening. + items: + $ref: "#/components/schemas/ComplianceScreeningResult" + type: array + tr: + description: The result of the Travel Rule screening. + items: + $ref: "#/components/schemas/ComplianceScreeningResult" + type: array + amlList: + description: The list of all results of the AML screening. + items: + $ref: "#/components/schemas/ComplianceScreeningResult" + type: array + status: + description: Status of compliance result screening. + enum: + - Started + - AMLStarted + - AMLCompleted + - AMLFailed + - AMLInBackground + - TRStarted + - TRCompleted + - TRFailed + - Completed + - RegistrationStarted + - AMLRegistrationStarted + - AMLRegistrationCompleted + - TRUpdateStarted + - TRUpdateCompleted + - UpdateCompleted + - IncomingStarted + - AMLIncomingStarted + - AMLIncomingCompleted + - AMLIncomingFailed + - AMLIncomingInBackground + - TRIncomingStarted + - TRIncomingCompleted + - TRIncomingFailed + - IncomingCompleted type: string + amlRegistration: + description: The results of the AML address registration. + items: + $ref: "#/components/schemas/AmlRegistrationResult" + type: array type: object - TokenLinkRequestDto: + ExtraParameters: + description: | + Additional protocol / operation specific key-value parameters: + + For UTXO-based blockchain input selection, add the key `inputsSelection` with the value set the [input selection structure.](https://developers.fireblocks.com/reference/transaction-objects#inputsselection) The inputs can be retrieved from the [Retrieve Unspent Inputs endpoint.](https://developers.fireblocks.com/reference/get_vault-accounts-vaultaccountid-assetid-unspent-inputs) + + For `RAW` operations, add the key `rawMessageData` with the value set to the [raw message data structure.](https://developers.fireblocks.com/reference/raw-signing-objects#rawmessagedata) + + For `CONTRACT_CALL` operations, add the key `contractCallData` with the value set to the Ethereum smart contract Application Binary Interface (ABI) payload. The Fireblocks [development libraries](https://developers.fireblocks.com/docs/ethereum-development#convenience-libraries) are recommended for building contract call transactions. + properties: {} + type: object + SignedMessage: + description: A list of signed messages returned for raw signing. example: - baseAssetId: ETH_TEST3 - displayName: My Simple ERC20 Token - contractAddress: 0xC2c4e1Db41F0bB97996D0eD0542D2170d146FB66 - refId: USDC_ETH_TEST3_1XF5 - type: FUNGIBLE_TOKEN + derivationPath: + - 7.061401241503109 + - 7.061401241503109 + signature: + r: r + s: s + fullSig: fullSig + v: 9.301444243932576 + publicKey: publicKey + content: content + algorithm: MPC_ECDSA_SECP256K1 properties: - type: - description: The type of token being linked - enum: - - FUNGIBLE_TOKEN - - NON_FUNGIBLE_TOKEN - - TOKEN_UTILITY - - TOKEN_EXTENSION - type: string - refId: - description: "The Fireblocks' token link reference id. For example, 'BQ5R_BDESC_ABC'\ - \ if it's a fungible \n\t\t\t\t\tasset" - example: USDC_ETH_TEST3_1XF5 - type: string - displayName: - description: The token display name - example: My Simple ERC20 Token + content: type: string - baseAssetId: - description: The blockchain base assetId - example: ETH_TEST3 + algorithm: + enum: + - MPC_ECDSA_SECP256K1 + - MPC_EDDSA_ED25519 type: string - contractAddress: - description: The contract's onchain address - example: 0xC2c4e1Db41F0bB97996D0eD0542D2170d146FB66 + derivationPath: + items: + type: number + type: array + signature: + $ref: "#/components/schemas/SignedMessage_signature" + publicKey: type: string - required: - - type type: object - TokenLinkExistsHttpError: + SignedMessages: + items: + $ref: "#/components/schemas/SignedMessage" + type: array + BlockInfo: + description: |- + The block hash and height of the block that this transaction was mined in. + **Note**: If an outgoing transaction uses the destinations object with more than one value in the array, blockHash is set to null. example: - message: message - error: Conflict - statusCode: 409 + blockHash: blockHash + blockHeight: blockHeight properties: - statusCode: - description: HTTP status code - example: 409 - format: int32 - type: integer - message: - description: Error message + blockHeight: type: string - error: - description: Short description of the HTTP error - example: Conflict + blockHash: + nullable: true type: string type: object - NotFoundException: + SystemMessageInfo: example: - message: message - error: Not Found - statusCode: 404 + type: WARN + message: Slow transaction processing. Outgoing transactions might be stuck. properties: - statusCode: - description: HTTP status code - example: 404 - format: int32 - type: integer - message: - description: Error message + type: + enum: + - WARN + - BLOCK type: string - error: - description: Short description of the HTTP error - example: Not Found + message: + description: "A response from Fireblocks that communicates a message about\ + \ the health of the process being performed. If this object is returned\ + \ with data, you should expect potential delays or incomplete transaction\ + \ statuses." + example: Slow transaction processing. Outgoing transactions might be stuck. type: string type: object - GetDeployableAddressRequest: - description: Request body for calculating deterministic address + TransactionResponse: example: - chainDescriptor: ETH - initParams: - - internalType: string + note: note + authorizationInfo: + allowOperatorAsAuthorizer: true + groups: + - th: 0.8008281904610115 + users: + key: PENDING_AUTHORIZATION + - th: 0.8008281904610115 + users: + key: PENDING_AUTHORIZATION + logic: AND + amountUSD: 1.0246457001441578 + destinationAddress: destinationAddress + contractCallDecodedData: + functionCalls: + - "{}" + - "{}" + contractName: contractName + errorDescription: errorDescription + signedBy: + - signedBy + - signedBy + destinationTag: destinationTag + networkFee: 7.457744773683766 + fee: 6.84685269835264 + destination: + walletId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 name: name - type: string - value: name - - internalType: string - name: symbol - type: string - value: symbol - - components: - - internalType: bool - name: _isMintable - type: bool - internalType: struct MyStruct - value: - - internalType: bool - name: _isMintable - type: bool - value: false - salt: "123456789" - templateId: b70701f4-d7b1-4795-a8ee-b09cdb5b850d - properties: - chainDescriptor: - description: The base asset identifier of the blockchain (legacyId) to calculate - deterministic address - example: ETH - type: string - templateId: - description: The template identifier - example: b70701f4-d7b1-4795-a8ee-b09cdb5b850d - format: uuid - type: string - initParams: - description: The deploy function parameters and values of the contract template - example: - - internalType: string + subType: subType + id: id + type: null + feeCurrency: feeCurrency + extraParameters: "{}" + source: + walletId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + name: name + subType: subType + id: id + type: VAULT_ACCOUNT + externalTxId: externalTxId + networkRecords: + - amountUSD: amountUSD + destinationAddress: destinationAddress + sourceAddress: sourceAddress + netAmount: netAmount + networkFee: networkFee + destination: + walletId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + name: name + subType: subType + id: id + type: null + index: 6.027456183070403 + source: + walletId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + name: name + subType: subType + id: id + type: VAULT_ACCOUNT + type: type + isDropped: true + rewardInfo: + destRewards: destRewards + srcRewards: srcRewards + assetId: assetId + txHash: txHash + - amountUSD: amountUSD + destinationAddress: destinationAddress + sourceAddress: sourceAddress + netAmount: netAmount + networkFee: networkFee + destination: + walletId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + name: name + subType: subType + id: id + type: null + index: 6.027456183070403 + source: + walletId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + name: name + subType: subType + id: id + type: VAULT_ACCOUNT + type: type + isDropped: true + rewardInfo: + destRewards: destRewards + srcRewards: srcRewards + assetId: assetId + txHash: txHash + createdAt: 1.4658129805029452 + lastUpdated: 5.962133916683182 + feeInfo: + serviceFee: serviceFee + networkFee: networkFee + gasPrice: gasPrice + assetId: assetId + id: id + tag: tag + txHash: txHash + blockInfo: + blockHash: blockHash + blockHeight: blockHeight + serviceFee: 1.4894159098541704 + amount: 7.386281948385884 + sourceAddress: sourceAddress + netAmount: 1.2315135367772556 + addressType: "" + destinations: + - amount: amount + amountUSD: amountUSD + authorizationInfo: + allowOperatorAsAuthorizer: true + groups: + - th: 0.8008281904610115 + users: + key: PENDING_AUTHORIZATION + - th: 0.8008281904610115 + users: + key: PENDING_AUTHORIZATION + logic: AND + destinationAddress: "" + amlScreeningResult: + provider: provider + payload: "{}" + destination: + walletId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 name: name - type: string - value: name - - internalType: string - name: symbol - type: string - value: symbol - - components: - - internalType: bool - name: _isMintable - type: bool - internalType: struct MyStruct - value: - - internalType: bool - name: _isMintable - type: bool - value: false - items: - $ref: "#/components/schemas/ParameterWithValue" - type: array - salt: - description: "The salt to calculate the deterministic address. Must be a\ - \ number between 0 and 2^256 -1, for it to fit in the bytes32 parameter" - example: "123456789" - type: string - required: - - chainDescriptor - - initParams - - salt - - templateId - type: object - DeployableAddressResponse: - description: Response DTO containing a deployable address - example: - address: 0x1234567890abcdef1234567890abcdef12345678 + subType: subType + id: id + type: null + destinationAddressDescription: "" + - amount: amount + amountUSD: amountUSD + authorizationInfo: + allowOperatorAsAuthorizer: true + groups: + - th: 0.8008281904610115 + users: + key: PENDING_AUTHORIZATION + - th: 0.8008281904610115 + users: + key: PENDING_AUTHORIZATION + logic: AND + destinationAddress: "" + amlScreeningResult: + provider: provider + payload: "{}" + destination: + walletId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + name: name + subType: subType + id: id + type: null + destinationAddressDescription: "" + signedMessages: + - derivationPath: + - 7.061401241503109 + - 7.061401241503109 + signature: + r: r + s: s + fullSig: fullSig + v: 9.301444243932576 + publicKey: publicKey + content: content + algorithm: MPC_ECDSA_SECP256K1 + - derivationPath: + - 7.061401241503109 + - 7.061401241503109 + signature: + r: r + s: s + fullSig: fullSig + v: 9.301444243932576 + publicKey: publicKey + content: content + algorithm: MPC_ECDSA_SECP256K1 + index: 2.027123023002322 + amountInfo: + amount: amount + amountUSD: amountUSD + netAmount: netAmount + requestedAmount: requestedAmount + customerRefId: customerRefId + subStatus: subStatus + treatAsGrossAmount: true + systemMessages: + type: WARN + message: Slow transaction processing. Outgoing transactions might be stuck. + rejectedBy: rejectedBy + numOfConfirmations: 3.616076749251911 + createdBy: createdBy + exchangeTxId: exchangeTxId + rewardInfo: + destRewards: destRewards + srcRewards: srcRewards + amlScreeningResult: + provider: provider + payload: "{}" + destinationAddressDescription: destinationAddressDescription + requestedAmount: 4.145608029883936 + complianceResult: + aml: + - provider: provider + payload: "{}" + bypassReason: bypassReason + screeningStatus: COMPLETED + timestamp: 5.637376656633329 + - provider: provider + payload: "{}" + bypassReason: bypassReason + screeningStatus: COMPLETED + timestamp: 5.637376656633329 + amlRegistration: + - provider: provider + success: true + timestamp: 2.3021358869347655 + - provider: provider + success: true + timestamp: 2.3021358869347655 + amlList: + - provider: provider + payload: "{}" + bypassReason: bypassReason + screeningStatus: COMPLETED + timestamp: 5.637376656633329 + - provider: provider + payload: "{}" + bypassReason: bypassReason + screeningStatus: COMPLETED + timestamp: 5.637376656633329 + tr: + - provider: provider + payload: "{}" + bypassReason: bypassReason + screeningStatus: COMPLETED + timestamp: 5.637376656633329 + - provider: provider + payload: "{}" + bypassReason: bypassReason + screeningStatus: COMPLETED + timestamp: 5.637376656633329 + status: Started + operation: TRANSFER + status: status properties: - address: - description: The deployable address + id: + description: ID of the transaction. type: string - required: - - address - type: object - InvalidParamaterValueError: - example: - code: 400 - message: Invalid initParams. - properties: - message: - description: Bad request error message - example: Invalid initParams. + externalTxId: + description: "Unique transaction ID provided by the user. Fireblocks highly\ + \ recommends setting an `externalTxId` for every transaction created,\ + \ to avoid submitting the same transaction twice." type: string - code: - description: Error code - example: 400 - type: number - required: - - code - - message - type: object - AddressNotAvailableError: - example: - code: 409 - message: Address is already taken - properties: - message: - description: Conflict error message - example: Address is already taken + status: + description: "The primary status of the transaction. For details, see [Primary\ + \ transaction statuses](https://developers.fireblocks.com/reference/primary-transaction-statuses)." type: string - code: - description: Error code - example: 409 - type: number - required: - - code - - message - type: object - CreateMultichainTokenRequest: - example: - salt: "123456789" - chains: - - ETH - - POLYGON - displayName: displayName - useGasless: false - fee: "2000" - vaultAccountId: "0" - feeLevel: MEDIUM - createParams: - deployFunctionParams: - - internalType: string - name: name - type: string - value: name - - internalType: string - name: symbol - type: string - value: symbol - - components: - - internalType: bool - name: _isMintable - type: bool - internalType: struct MyStruct - name: customConfigProps - type: tuple - value: - - internalType: bool - name: _isMintable - type: bool - value: false - contractId: b70701f4-d7b1-4795-a8ee-b09cdb5b850d - properties: - vaultAccountId: - description: The id of the vault account that initiated the request to issue - the token - example: "0" + subStatus: + description: "See [Transaction substatuses](https://developers.fireblocks.com/reference/transaction-substatuses)\ + \ for the list of transaction sub statuses." type: string - createParams: - $ref: "#/components/schemas/EVMTokenCreateParamsDto" - salt: - description: "The salt to calculate the deterministic address. Must be a\ - \ number between 0 and 2^256 -1, for it to fit in the bytes32 parameter." - example: "123456789" + txHash: + description: |- + The hash of the transaction on the blockchain. + * This parameter exists if at least one of the following conditions is met: + + 1. The transaction’s source type is `UNKNOWN`, `WHITELISTED_ADDRESS`, `NETWORK_CONNECTION`, `ONE_TIME_ADDRESS`, `FIAT_ACCOUNT` or `GAS_STATION`. + + 2. The transaction’s source type is `VAULT` and the status is either: `CONFIRMING`, `COMPLETED`, or was in any of these statuses prior to changing to `FAILED` or `REJECTED`. In some instances, transactions in status `BROADCASTING` will include the txHash as well. + + 3. The transaction’s source type is `EXCHANGE_ACCOUNT` and the transaction’s destination type is `VAULT`, and the status is either: `CONFIRMING`, `COMPLETED`, or was in any of these status prior to changing to `FAILED`. + + + * In addition, the following conditions must be met: + + 1. The asset is a crypto asset (not fiat). + + 2. The transaction operation is not RAW or `TYPED_MESSAGE`. type: string - chains: - description: The base asset identifiers of the blockchains (legacyId) to - calculate deterministic addresses - example: - - ETH - - POLYGON - items: - type: string - type: array - displayName: + operation: + $ref: "#/components/schemas/GetTransactionOperation" + note: + description: "Custom note, not sent to the blockchain, that describes the\ + \ transaction at your Fireblocks workspace." type: string - useGasless: - description: "Indicates whether the token should be created in a gasless\ - \ manner, utilizing the ERC-2771 standard. When set to true, the transaction\ - \ will be relayed by a designated relayer. The workspace must be configured\ - \ to use Fireblocks gasless relay." - example: false - type: boolean - fee: - description: Max fee amount for the write function transaction. interchangeable - with the 'feeLevel' field - example: "2000" + assetId: + description: "The ID of the asset to transfer, for `TRANSFER`, `MINT`, `BURN`,\ + \ `ENABLE_ASSET`,`STAKE` ,`UNSTAKE` or `WITHDRAW` operations. [See the\ + \ list of supported assets and their IDs on Fireblocks.](https://developers.fireblocks.com/reference/get_supported-assets)" type: string - feeLevel: - description: Fee level for the write function transaction. interchangeable - with the 'fee' field - enum: - - LOW - - MEDIUM - - HIGH - example: MEDIUM + x-fb-entity: asset + source: + $ref: "#/components/schemas/SourceTransferPeerPathResponse" + sourceAddress: + description: |- + For account based assets only, the source address of the transaction. + **Note:** If the status is `CONFIRMING`, `COMPLETED`, or has been `CONFIRMING`; then moved forward to `FAILED` or `REJECTED`, then this parameter will contain the source address. In any other case, this parameter will be empty. type: string - required: - - chains - - createParams - - vaultAccountId - type: object - IssueTokenMultichainResponse: - description: Response schema for issuing tokens across multiple chains - items: - $ref: "#/components/schemas/TokenLinkDto" - type: array - ReissueMultichainTokenRequest: - example: - chains: - - ETH - - POLYGON - useGasless: true - fee: "2000" - vaultAccountId: "0" - feeLevel: MEDIUM - properties: - vaultAccountId: - description: The id of the vault account that initiated the request to issue - the token - example: "0" + tag: + description: "Source address tag for XRP, used as memo for EOS/XLM, or Bank\ + \ Transfer Description for the fiat provider BLINC (by BCB Group)." type: string - chains: - description: The base asset identifiers of the blockchains you want to deploy - to - example: - - ETH - - POLYGON + destination: + $ref: "#/components/schemas/DestinationTransferPeerPathResponse" + destinations: + description: |- + The transaction’s destinations. + **Note:** In case the transaction is sent to a single destination, the `destination` parameter is used instead of this. items: - type: string + $ref: "#/components/schemas/TransactionResponseDestination" type: array - useGasless: - description: Whether to use gasless deployment or not - example: true - type: boolean - fee: - description: Max fee amount for the deploy request. Interchangeable with - the 'feeLevel' field - example: "2000" + destinationAddress: + description: |- + Address where the asset were transferred. + Notes: + - For [Multi destination transactions](https://support.fireblocks.io/hc/en-us/articles/360018447980-Multi-destination-transactions), this parameter will be empty. In this case, you should refer to the destinations field. + - If the status is `CONFIRMING`, `COMPLETED`, or has been `CONFIRMING`; then moved forward to `FAILED` or `REJECTED`, then this parameter will contain the destination address. In any other case, this parameter will be empty. type: string - feeLevel: - description: Fee level for the deploy request. Interchangeable with the - 'fee' field - enum: - - LOW - - MEDIUM - - HIGH - example: MEDIUM + destinationAddressDescription: + description: Description of the address. type: string - required: - - chains - - vaultAccountId - type: object - TokenLinkNotMultichainCompatibleHttpError: - example: - code: 400 - message: Token link is not multichain compatible. - properties: - message: - description: Bad request error message - example: Token link is not multichain compatible. + destinationTag: + description: "Destination address tag for XRP, used as memo for EOS/XLM,\ + \ or Bank Transfer Description for the fiat provider BLINC (by BCB Group)." type: string - code: - description: Error code - example: 400 - type: number - required: - - code - - message - type: object - DeployedContractNotFoundError: - example: - code: 404 - message: Deployed contract not found - properties: - message: - description: Not Found error message - example: Deployed contract not found + contractCallDecodedData: + $ref: "#/components/schemas/TransactionResponse_contractCallDecodedData" + amountInfo: + $ref: "#/components/schemas/AmountInfo" + treatAsGrossAmount: + description: |- + For transactions initiated via this Fireblocks workspace, when set to `true`, the fee is deducted from the requested amount. + + **Note**: This parameter can only be considered if a transaction's asset is a base asset, such as ETH or MATIC. If the asset can't be used for transaction fees, like USDC, this parameter is ignored and the fee is deducted from the relevant base asset wallet in the source account. + type: boolean + feeInfo: + $ref: "#/components/schemas/FeeInfo" + feeCurrency: + description: "The asset which was withdrawn to pay the transaction fee,\ + \ for example ETH for EVM-based blockchains, BTC for Tether Omni." type: string - code: - description: Error code - example: 404 + networkRecords: + description: "In case a single transaction resulted with multiple transfers,\ + \ for example a result of a contract call, then this parameter specifies\ + \ each transfer that took place on the blockchain. In case of a single\ + \ transfer transaction, this parameter is empty." + items: + $ref: "#/components/schemas/NetworkRecord" + type: array + createdAt: + description: "The transaction’s creation date and time, in unix timestamp." type: number - required: - - code - - message - type: object - LayerZeroAdapterCreateParams: - example: - pauserAddress: 0xDEFABC123456789abcdef1234567890abcdef12345678 - defaultAdminAddress: 0xABC123456789abcdef1234567890abcdef12345678 - delegateAddress: 0xABCDEF123456789abcdef1234567890abcdef12345678 - tokenLinkId: 123-432-1234-1234-123456789012 - properties: - tokenLinkId: - description: The token link id of the base token to deploy the adapters - for - example: 123-432-1234-1234-123456789012 - type: string - delegateAddress: - description: Address that will receive `CONTRACT_ADMIN_ROLE`. - example: 0xABCDEF123456789abcdef1234567890abcdef12345678 + lastUpdated: + description: "The transaction’s last update date and time, in unix timestamp." + type: number + createdBy: + description: User ID of the initiator of the transaction. type: string - defaultAdminAddress: - description: Address that will receive `DEFAULT_ADMIN_ROLE` on the adapter - contract. - example: 0xABC123456789abcdef1234567890abcdef12345678 + signedBy: + description: User ID’s of the signers of the transaction. + items: + type: string + type: array + rejectedBy: + description: User ID of the user that rejected the transaction (in case + it was rejected). type: string - pauserAddress: - description: Address that will receive `PAUSER_ROLE`. - example: 0xDEFABC123456789abcdef1234567890abcdef12345678 + authorizationInfo: + $ref: "#/components/schemas/AuthorizationInfo" + exchangeTxId: + description: "If the transaction originated from an exchange, this is the\ + \ ID of this transaction at the exchange." type: string - required: - - defaultAdminAddress - - delegateAddress - - pauserAddress - - tokenLinkId - type: object - DeployLayerZeroAdaptersRequest: - example: - salt: "123456789" - displayName: LayerZero Adapter - useGasless: false - fee: "2000" - vaultAccountId: "0" - feeLevel: MEDIUM - createParams: - - pauserAddress: 0xDEFABC123456789abcdef1234567890abcdef12345678 - defaultAdminAddress: 0xABC123456789abcdef1234567890abcdef12345678 - delegateAddress: 0xABCDEF123456789abcdef1234567890abcdef12345678 - tokenLinkId: 123-432-1234-1234-123456789012 - - pauserAddress: 0xDEFABC123456789abcdef1234567890abcdef12345678 - defaultAdminAddress: 0xABC123456789abcdef1234567890abcdef12345678 - delegateAddress: 0xABCDEF123456789abcdef1234567890abcdef12345678 - tokenLinkId: 123-432-1234-1234-123456789012 - properties: - vaultAccountId: - description: The id of the vault account that initiated the request to deploy - adapter for the token - example: "0" + customerRefId: + description: The ID for AML providers to associate the owner of funds with + transactions. type: string - createParams: - description: "Array of creation parameters for LayerZero adapters, one per\ - \ tokenLink." + amlScreeningResult: + $ref: "#/components/schemas/AmlScreeningResult" + complianceResult: + $ref: "#/components/schemas/ComplianceResult" + extraParameters: + description: | + Additional protocol / operation specific key-value parameters: + + For UTXO-based blockchain input selection, add the key `inputsSelection` with the value set the [input selection structure.](https://developers.fireblocks.com/reference/transaction-objects#inputsselection) The inputs can be retrieved from the [Retrieve Unspent Inputs endpoint.](https://developers.fireblocks.com/reference/get_vault-accounts-vaultaccountid-assetid-unspent-inputs) + + For `RAW` operations, add the key `rawMessageData` with the value set to the [raw message data structure.](https://developers.fireblocks.com/reference/raw-signing-objects#rawmessagedata) + + For `CONTRACT_CALL` operations, add the key `contractCallData` with the value set to the Ethereum smart contract Application Binary Interface (ABI) payload. The Fireblocks [development libraries](https://developers.fireblocks.com/docs/ethereum-development#convenience-libraries) are recommended for building contract call transactions. + properties: {} + type: object + signedMessages: items: - $ref: "#/components/schemas/LayerZeroAdapterCreateParams" - minItems: 1 + $ref: "#/components/schemas/SignedMessage" type: array - displayName: - description: The display name of the contract - example: LayerZero Adapter - type: string - useGasless: - description: Whether to use gasless deployment or not - example: false - type: boolean - feeLevel: - description: Fee level for the write function transaction. interchangeable - with the 'fee' field + numOfConfirmations: + description: The number of confirmations of the transaction. The number + will increase until the transaction will be considered completed according + to the confirmation policy. + type: number + blockInfo: + $ref: "#/components/schemas/BlockInfo" + index: + description: |- + For UTXO based assets this is the vOut, for Ethereum based, this is the index of the event of the contract call. + **Note:** This field is not returned if a transaction uses the `destinations` object with more than one value. + type: number + rewardInfo: + $ref: "#/components/schemas/RewardInfo" + systemMessages: + $ref: "#/components/schemas/SystemMessageInfo" + addressType: enum: - - LOW - - MEDIUM - - HIGH - example: MEDIUM - type: string - fee: - description: Max fee amount for the write function transaction. interchangeable - with the 'feeLevel' field - example: "2000" - type: string - salt: - description: "The salt to calculate the deterministic address. Must be a\ - \ number between 0 and 2^256 -1, for it to fit in the bytes32 parameter" - example: "123456789" - type: string - required: - - createParams - - vaultAccountId - type: object - AdapterProcessingResult: - example: - inputTokenLinkId: inputTokenLinkId - adapterLinkId: adapterLinkId - properties: - inputTokenLinkId: - description: The input token link ID + - "" + - WHITELISTED + - ONE_TIME type: string - adapterLinkId: - description: The adapter link ID + requestedAmount: + deprecated: true + description: The amount requested by the user. Deprecated - please use the + `amountInfo` field for accuracy. + type: number + amount: + deprecated: true + description: "If the transfer is a withdrawal from an exchange, the actual\ + \ amount that was requested to be transferred. Otherwise, the requested\ + \ amount. Deprecated - please use the `amountInfo` field for accuracy." + type: number + netAmount: + deprecated: true + description: "The net amount of the transaction, after fee deduction. Deprecated\ + \ - please use the `amountInfo` field for accuracy." + type: number + amountUSD: + deprecated: true + description: The USD value of the requested amount. Deprecated - please + use the `amountInfo` field for accuracy. + nullable: true + type: number + serviceFee: + deprecated: true + description: The total fee deducted by the exchange from the actual requested + amount (`serviceFee` = `amount` - `netAmount`). Deprecated - please use + the `feeInfo` field for accuracy. + type: number + fee: + deprecated: true + description: Deprecated - please use the `feeInfo` field for accuracy. + type: number + networkFee: + deprecated: true + description: The fee paid to the network. Deprecated - please use the `feeInfo` + field for accuracy. + type: number + errorDescription: + description: The transaction's revert reason. This field will be returned + when `subStatus` = 'SMART_CONTRACT_EXECUTION_FAILED'. type: string - required: - - adapterLinkId - - inputTokenLinkId type: object - DeployLayerZeroAdaptersResponse: - description: Array of adapter processing results + GetTransactionsResponse: items: - $ref: "#/components/schemas/AdapterProcessingResult" + $ref: "#/components/schemas/TransactionResponse" type: array - RemoveLayerZeroAdaptersRequest: - example: - adapterTokenLinkIds: - - d290f1ee-6c54-4b01-90e6-d701748f0851 - - e290f1ee-6c54-4b01-90e6-d701748f0852 - vaultAccountId: "1" - properties: - vaultAccountId: - description: The vault account ID to use for signing the role revocation - transactions. - example: "1" - type: string - adapterTokenLinkIds: - description: A list of adapter token link IDs to be deactivated and unlinked. - example: - - d290f1ee-6c54-4b01-90e6-d701748f0851 - - e290f1ee-6c54-4b01-90e6-d701748f0852 - items: - format: uuid - type: string - minItems: 1 - type: array - required: - - adapterTokenLinkIds - - vaultAccountId - type: object - RemoveLayerZeroAdapterFailedResult: + TransactionOperation: + default: TRANSFER + description: | + * `TRANSFER` - The default value for an operation. Transfers funds from one account to another. UTXO blockchains allow multi-input and multi-output transfers. All other blockchains allow transfers with one source address and one destination address. + * `MINT` - Mints new tokens. Supported for Stellar, Ripple and EVM-based blockchains. + * `BURN` - Burns tokens. Supported for Stellar, Ripple and EVM-based blockchains. + * `CONTRACT_CALL` - Calls a smart contract method for web3 operations on any EVM blockchain. The Fireblocks [development libraries](https://developers.fireblocks.com/docs/ethereum-development#convenience-libraries) are recommended for building contract call transactions. + * `TYPED_MESSAGE` - An off-chain message in either Ethereum Personal Message or EIP712 format. Use it to sign specific readable messages that are not actual transactions. [Learn more about typed messages](https://developers.fireblocks.com/docs/typed-message-signing). + * `RAW` - An off-chain message with no predefined format. Use it to sign any message with your private key, including protocols such as blockchains and custom transaction types that are not natively supported by Fireblocks. [Learn more about raw signing transactions.](https://developers.fireblocks.com/docs/raw-message-signing) + enum: + - TRANSFER + - BURN + - CONTRACT_CALL + - MINT + - RAW + - TYPED_MESSAGE + type: string + TransferPeerPathSubType: + enum: + - BINANCE + - BINANCEUS + - BITFINEX + - BITHUMB + - BITMEX + - BITSO + - BITSTAMP + - BITTREX + - BLINC + - BYBIT + - CIRCLE + - COINBASEEXCHANGE + - COINBASEPRO + - COINMETRO + - COINSPRO + - CRYPTOCOM + - DERIBIT + - GEMINI + - HITBTC + - HUOBI + - INDEPENDENTRESERVE + - KORBIT + - KRAKEN + - KRAKENINTL + - KUCOIN + - LIQUID + - OKCOIN + - OKEX + - PAXOS + - POLONIEX + - External + - Internal + type: string + SourceTransferPeerPath: + description: The source of the transaction. example: - adapterTokenLinkId: adapterTokenLinkId + walletId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + name: name + subType: BINANCE + id: id + type: VAULT_ACCOUNT properties: - adapterTokenLinkId: - description: The adapter token link ID that failed to be removed + type: + $ref: "#/components/schemas/TransferPeerPathType" + subType: + $ref: "#/components/schemas/TransferPeerPathSubType" + id: type: string - required: - - adapterTokenLinkId - type: object - RemoveLayerZeroAdaptersResponse: - example: - failed: - - adapterTokenLinkId: adapterTokenLinkId - - adapterTokenLinkId: adapterTokenLinkId - deactivated: - - deactivated - - deactivated - properties: - deactivated: - description: List of successfully deactivated adapter token link IDs - items: - type: string - type: array - failed: - description: List of adapter token link IDs that failed to be removed - items: - $ref: "#/components/schemas/RemoveLayerZeroAdapterFailedResult" - type: array - required: - - deactivated - - failed - type: object - SetLayerZeroPeersRequest: - example: - bidirectional: true - destinationAdapterTokenLinkIds: - - 123-432-1234-1234-123456789012 - - 123-432-1234-1234-123456789012 - vaultAccountId: "0" - sourceAdapterTokenLinkId: 00000123-0432-1234-1234-123456789012 - properties: - vaultAccountId: - description: The id of the vault account that will be used to inititate - transactions ot set peers - example: "0" + name: type: string - sourceAdapterTokenLinkId: - description: '`token_link` ID of the source adapter contract' - example: 00000123-0432-1234-1234-123456789012 + walletId: format: uuid type: string - destinationAdapterTokenLinkIds: - description: Array of `token_link` IDs for destination adapter contracts - example: - - 123-432-1234-1234-123456789012 - - 123-432-1234-1234-123456789012 - items: - format: uuid - type: string - minItems: 1 - type: array - bidirectional: - description: "If true, also sets peers from destination(s) back to source" - example: true - type: boolean - required: - - bidirectional - - destinationAdapterTokenLinkIds - - sourceAdapterTokenLinkId - - vaultAccountId - type: object - SetLayerZeroPeersResponse: - example: - txnIds: - - 123-432-1234-1234-123456789012 - - 123-432-1234-1234-123456789012 - properties: - txnIds: - description: "Array of fireblocks transaction IDs, each corresponding to\ - \ an on-chain transaction to set peers" - example: - - 123-432-1234-1234-123456789012 - - 123-432-1234-1234-123456789012 - items: - format: uuid - type: string - minItems: 1 - type: array required: - - txnIds + - type type: object - RemoveLayerZeroPeersRequest: - allOf: - - $ref: "#/components/schemas/SetLayerZeroPeersRequest" - example: - bidirectional: true - destinationAdapterTokenLinkIds: - - 123-432-1234-1234-123456789012 - - 123-432-1234-1234-123456789012 - vaultAccountId: "0" - sourceAdapterTokenLinkId: 00000123-0432-1234-1234-123456789012 - RemoveLayerZeroPeersResponse: - allOf: - - $ref: "#/components/schemas/SetLayerZeroPeersResponse" + OneTimeAddress: example: - txnIds: - - 123-432-1234-1234-123456789012 - - 123-432-1234-1234-123456789012 - PeerAdapterInfo: + address: address + tag: tag properties: - adapterTokenLinkId: - description: The token link id of the adapter - example: b70701f4-d7b1-4795-a8ee-b09cdb5b850d - format: uuid - type: string - adapterAddress: - description: The adapter address - example: 0x1234567890abcdef1234567890abcdef12345678 - type: string - baseAssetId: - description: The base asset id for the base asset that the adapter is deployed - on - example: ETH_TEST6 - type: string - required: - - adapterAddress - - adapterTokenLinkId - - baseAssetId - type: object - GetLayerZeroPeersResponse: - example: - adapterTokenLinkId: b70701f4-d7b1-4795-a8ee-b09cdb5b850d - adapterAddress: 0x1234567890abcdef1234567890abcdef12345678 - peers: - - adapterTokenLinkId: b70701f4-d7b1-4795-a8ee-b09cdb5b850d - adapterAddress: 0x1234567890abcdef1234567890abcdef12345678 - baseAssetId: ETH_TEST6 - - adapterTokenLinkId: b70701f4-d7b1-4795-a8ee-b09cdb5b850d - adapterAddress: 0x1234567890abcdef1234567890abcdef12345678 - baseAssetId: ETH_TEST5 - properties: - adapterTokenLinkId: - description: The token link id of the adapter - example: b70701f4-d7b1-4795-a8ee-b09cdb5b850d - format: uuid + address: type: string - adapterAddress: - description: The adapter address - example: 0x1234567890abcdef1234567890abcdef12345678 + tag: type: string - peers: - description: The peers for the adapter - example: - - adapterTokenLinkId: b70701f4-d7b1-4795-a8ee-b09cdb5b850d - adapterAddress: 0x1234567890abcdef1234567890abcdef12345678 - baseAssetId: ETH_TEST6 - - adapterTokenLinkId: b70701f4-d7b1-4795-a8ee-b09cdb5b850d - adapterAddress: 0x1234567890abcdef1234567890abcdef12345678 - baseAssetId: ETH_TEST5 - items: - $ref: "#/components/schemas/PeerAdapterInfo" - type: array required: - - adapterAddress - - adapterTokenLinkId - - peers + - address type: object - DvnConfig: + DestinationTransferPeerPath: + description: The destination of the transaction. example: - optionalThreshold: 2 - dvnAddresses: - - 1.0284746938594775E54 - - 2.5101940177441514E50 - optionalDVNAddresses: - - 1.334824162533763E54 - properties: - dvnAddresses: - description: Array of required DVN Ethereum addresses that sign ULN messages. - example: - - 1.0284746938594775E54 - - 2.5101940177441514E50 - items: - type: string - minItems: 1 - type: array - optionalDVNAddresses: - description: Array of optional DVN Ethereum addresses that sign ULN messages. - example: - - 1.334824162533763E54 - items: - type: string - type: array - optionalThreshold: - description: Minimum number of DVN signatures required (M-of-N). - example: 2 - type: number - required: - - dvnAddresses - - optionalThreshold - type: object - SetLayerZeroDvnConfigRequest: - example: - sendConfig: - optionalThreshold: 2 - dvnAddresses: - - 1.0284746938594775E54 - - 2.5101940177441514E50 - optionalDVNAddresses: - - 1.334824162533763E54 - vaultAccountId: "0" - sourceAdapterTokenLinkId: b70701f4-d7b1-4795-a8ee-b09cdb5b850d - receiveConfig: - optionalThreshold: 2 - dvnAddresses: - - 1.0284746938594775E54 - - 2.5101940177441514E50 - optionalDVNAddresses: - - 1.334824162533763E54 - destinationAdapterTokenLinkId: 6add4f2a-b206-4114-8f94-2882618ffbb4 + oneTimeAddress: + address: address + tag: tag + walletId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + name: name + subType: null + id: id + type: null properties: - vaultAccountId: - description: Vault account that pays gas - example: "0" - type: string - sourceAdapterTokenLinkId: - description: Source adapter TokenLink ID - example: b70701f4-d7b1-4795-a8ee-b09cdb5b850d + type: + $ref: "#/components/schemas/TransferPeerPathType" + subType: + $ref: "#/components/schemas/TransferPeerPathSubType" + id: type: string - destinationAdapterTokenLinkId: - description: Destination adapter TokenLink ID - example: 6add4f2a-b206-4114-8f94-2882618ffbb4 + name: type: string - sendConfig: - $ref: "#/components/schemas/DvnConfig" - receiveConfig: - $ref: "#/components/schemas/DvnConfig" - required: - - destinationAdapterTokenLinkId - - receiveConfig - - sendConfig - - sourceAdapterTokenLinkId - - vaultAccountId - type: object - SetLayerZeroDvnConfigResponse: - example: - txnIds: - - txnIds - - txnIds - properties: - txnIds: - description: Transaction IDs submitted to the network - items: - type: string - type: array - required: - - txnIds - type: object - DvnConfigWithConfirmations: - properties: - dvnAddresses: - description: Array of required DVN Ethereum addresses that sign ULN messages. - example: - - 1.0284746938594775E54 - - 2.5101940177441514E50 - items: - type: string - minItems: 1 - type: array - optionalDVNAddresses: - description: Array of optional DVN Ethereum addresses that sign ULN messages. - example: - - 1.334824162533763E54 - items: - type: string - type: array - optionalThreshold: - description: Minimum number of DVN signatures required (M-of-N). - example: 2 - type: number - confirmations: - description: Number of block confirmations required - example: 12 - type: number - required: - - confirmations - - dvnAddresses - - optionalThreshold - type: object - ChannelDvnConfigWithConfirmations: - example: - sendConfig: "" - receiveConfig: "" - properties: - sendConfig: - allOf: - - $ref: "#/components/schemas/DvnConfigWithConfirmations" - description: Outbound (source → peer) DVN config with confirmations. - receiveConfig: - allOf: - - $ref: "#/components/schemas/DvnConfigWithConfirmations" - description: Inbound (peer → source) DVN config with confirmations. - type: object - GetLayerZeroDvnConfigResponse: - example: - channelConfigs: - - sendConfig: "" - receiveConfig: "" - - sendConfig: "" - receiveConfig: "" - sourceAdapterTokenLinkId: b70701f4-d7b1-4795-a8ee-b09cdb5b850d - properties: - sourceAdapterTokenLinkId: - description: Token-link ID of the adapter for which DVN configuration was - queried. - example: b70701f4-d7b1-4795-a8ee-b09cdb5b850d + walletId: format: uuid type: string - channelConfigs: - description: DVN configurations for each discovered (or explicitly requested) - channel between the source adapter and its peers. - items: - $ref: "#/components/schemas/ChannelDvnConfigWithConfirmations" - minItems: 1 - type: array + oneTimeAddress: + $ref: "#/components/schemas/OneTimeAddress" required: - - channelConfigs - - sourceAdapterTokenLinkId + - type type: object - ValidateLayerZeroChannelResponse: + TransactionRequestDestination: example: - correct: true - errors: - - Adapter not found - - Adapter missing role - - Adapter is not a peer + amount: amount + destination: + oneTimeAddress: + address: address + tag: tag + walletId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + name: name + subType: null + id: id + type: null properties: - correct: - description: Indicates whether the LayerZero channel configuration is valid. - example: true - type: boolean - errors: - description: List of errors found during validation. An empty array indicates - no errors. - example: - - Adapter not found - - Adapter missing role - - Adapter is not a peer - items: - type: string - type: array - required: - - correct - - errors - type: object - CollectionType: - description: The type of collection - enum: - - NON_FUNGIBLE_TOKEN - - SEMI_FUNGIBLE_TOKEN - type: string - CollectionLinkDto: - example: - collectionMetadata: "" - displayName: My Simple ERC721 Collection - id: fbfbfbfb-fbfb-fbfb-fbfb-fbfbfbfbfbfb - type: NON_FUNGIBLE_TOKEN - status: COMPLETED + amount: + type: string + destination: + $ref: "#/components/schemas/DestinationTransferPeerPath" + type: object + TravelRuleTransactionBlockchainInfo: properties: - id: - description: The collection id - example: fbfbfbfb-fbfb-fbfb-fbfb-fbfbfbfbfbfb + txHash: type: string - status: - description: The collection status - enum: - - PENDING - - COMPLETED - example: COMPLETED + origin: type: string - type: - allOf: - - $ref: "#/components/schemas/CollectionType" - example: NON_FUNGIBLE_TOKEN - displayName: - description: "The display name of the collection. If was not provided, would\ - \ be taken from the contract template" - example: My Simple ERC721 Collection + destination: type: string - collectionMetadata: - allOf: - - $ref: "#/components/schemas/CollectionMetadataDto" - description: The collection's metadata - required: - - id - - status - - type type: object - GetLinkedCollectionsPaginatedResponse: - example: - next: eJ0eXAiOiJKV1QiLCJhbGcOiJIUzI1NiJ9 - data: - - collectionMetadata: "" - displayName: My Simple ERC721 Collection - id: fbfbfbfb-fbfb-fbfb-fbfb-fbfbfbfbfbfb - type: NON_FUNGIBLE_TOKEN - status: COMPLETED - - collectionMetadata: "" - displayName: My Simple ERC721 Collection - id: fbfbfbfb-fbfb-fbfb-fbfb-fbfbfbfbfbfb - type: NON_FUNGIBLE_TOKEN - status: COMPLETED + TravelRulePiiIVMS: properties: - data: - description: The data of the current page - items: - $ref: "#/components/schemas/CollectionLinkDto" - type: array - next: - description: The ID of the next page - example: eJ0eXAiOiJKV1QiLCJhbGcOiJIUzI1NiJ9 - nullable: true + fullName: type: string - type: object - CollectionDeployRequestDto: - example: - baseAssetId: ETH - symbol: DAT - displayName: DigitalArtTokens - name: DigitalArtTokens - adminAddress: 0x5503766D27d1ED4525f5053222E18b29C38eDdB2 - vaultAccountId: "0" - type: NON_FUNGIBLE_TOKEN - properties: - baseAssetId: - description: The blockchain base assetId - example: ETH + dateOfBirth: type: string - vaultAccountId: - description: The id of the vault account that initiated the request to issue - the token - example: "0" + placeOfBirth: type: string - type: - allOf: - - $ref: "#/components/schemas/CollectionType" - example: NON_FUNGIBLE_TOKEN - name: - description: A string that represents the name of the collection - example: DigitalArtTokens + address: type: string - symbol: - description: A string that represents the symbol of the collection - example: DAT + identificationNumber: type: string - adminAddress: - description: The EVM address of the user that will be set as the admin user - of the collection - example: 0x5503766D27d1ED4525f5053222E18b29C38eDdB2 + nationality: type: string - displayName: - description: A string to display as a name of the collection - example: DigitalArtTokens + countryOfResidence: + type: string + taxIdentificationNumber: + type: string + customerNumber: type: string - required: - - adminAddress - - baseAssetId - - name - - symbol - - type - - vaultAccountId type: object - CollectionTokenMetadataAttributeDto: + TravelRuleOwnershipProof: properties: - trait_type: - description: Name of the trait - example: project_start - type: string - value: - description: Value of the trait - example: "30102000" + type: + description: Type of ownership proof + example: passport type: string - display_type: - description: A field indicating how you would like trait to be displayed - example: date + proof: + description: Identification number + example: "123456789" type: string - required: - - trait_type - - value type: object - CollectionTokenMetadataDto: + TravelRuleCreateTransactionRequest: + example: + originatorProof: "" + originator: "" + beneficiaryVASPname: beneficiaryVASPname + pii: "" + protocol: protocol + skipBeneficiaryDataValidation: true + beneficiary: "" + encrypted: encrypted + travelRuleBehavior: true + transactionBlockchainInfo: "" + beneficiaryProof: "" + originatorVASPdid: originatorVASPdid + beneficiaryVASPdid: beneficiaryVASPdid properties: - name: - description: Token's name - example: DigitalArtTokens + originatorVASPdid: + description: The VASP ID of the transaction originator type: string - description: - description: Token's description - example: Digital representation of a piece of art + beneficiaryVASPdid: + description: The VASP ID of the transaction beneficiary type: string - image: - description: Token's image URL - example: https://some_domain.com/image_filepath + beneficiaryVASPname: + description: The name of the VASP acting as the beneficiary type: string - animation_url: - description: Token's animation URL - example: https://some_domain.com/gif_filepath + transactionBlockchainInfo: + allOf: + - $ref: "#/components/schemas/TravelRuleTransactionBlockchainInfo" + description: Information about the blockchain transaction + originator: + allOf: + - $ref: "#/components/schemas/TravelRulePiiIVMS" + description: Information about the originator of the transaction + beneficiary: + allOf: + - $ref: "#/components/schemas/TravelRulePiiIVMS" + description: Information about the beneficiary of the transaction + encrypted: + description: Encrypted data related to the transaction type: string - external_url: - description: Token's external URL - example: https://some_domain.com/blob_filepath + protocol: + description: The protocol used to perform the travel rule type: string - attributes: - description: Token's metadata attributes - items: - $ref: "#/components/schemas/CollectionTokenMetadataAttributeDto" - type: array + skipBeneficiaryDataValidation: + description: Whether to skip validation of beneficiary data + type: boolean + travelRuleBehavior: + description: Whether to check if the transaction is a TRAVEL_RULE in the + beneficiary VASP's jurisdiction + type: boolean + originatorProof: + allOf: + - $ref: "#/components/schemas/TravelRuleOwnershipProof" + description: Ownership proof related to the originator of the transaction + beneficiaryProof: + allOf: + - $ref: "#/components/schemas/TravelRuleOwnershipProof" + description: Ownership proof related to the beneficiary of the transaction + pii: + allOf: + - $ref: "#/components/schemas/TravelRulePiiIVMS" + description: Personal identifiable information related to the transaction required: - - description - - name + - beneficiary + - originator type: object - CollectionMintRequestDto: + TransactionRequest: example: - amount: "1" - metadata: - name: MYTOKEN - description: description of MYTOKEN - tokenId: "1" - vaultAccountId: "0" - to: 0x5503766D27d1ED4525f5053222E18b29C38eDdB2 - metadataURI: ipfs://QmP4P6f7mDHzikhdwLBVSCxCPEgmjwcWSVBHbtSyfBYzBC + note: Ticket 123 + priorityFee: "2" + networkFee: TransactionRequest_networkFee + fee: TransactionRequest_fee + destination: + oneTimeAddress: + address: address + tag: tag + walletId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + name: name + subType: null + id: id + type: null + extraParameters: "{}" + source: + walletId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + name: name + subType: BINANCE + id: id + type: VAULT_ACCOUNT + maxFee: "120" + externalTxId: 00000000-0000-0000-0000-000000000000 + cpuStaking: null + gasLimit: "21000" + failOnLowFee: true + assetId: ETH + feeLevel: MEDIUM + gasPrice: TransactionRequest_gasPrice + forceSweep: false + amount: "0.02" + destinations: + - amount: amount + destination: + oneTimeAddress: + address: address + tag: tag + walletId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + name: name + subType: null + id: id + type: null + - amount: amount + destination: + oneTimeAddress: + address: address + tag: tag + walletId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + name: name + subType: null + id: id + type: null + travelRuleMessage: + originatorProof: "" + originator: "" + beneficiaryVASPname: beneficiaryVASPname + pii: "" + protocol: protocol + skipBeneficiaryDataValidation: true + beneficiary: "" + encrypted: encrypted + travelRuleBehavior: true + transactionBlockchainInfo: "" + beneficiaryProof: "" + originatorVASPdid: originatorVASPdid + beneficiaryVASPdid: beneficiaryVASPdid + customerRefId: abcdef + treatAsGrossAmount: false + networkStaking: TransactionRequest_networkStaking + autoStaking: true + operation: TRANSFER + replaceTxByHash: 00000000-0000-0000-0000-000000000000 properties: - vaultAccountId: - description: The id of the vault account that initiates the mint function. - example: "0" + operation: + $ref: "#/components/schemas/TransactionOperation" + note: + description: "Custom note, not sent to the blockchain, to describe the transaction\ + \ at your Fireblocks workspace." + example: Ticket 123 type: string - to: - description: 'The EVM address to mint to ' - example: 0x5503766D27d1ED4525f5053222E18b29C38eDdB2 + externalTxId: + description: "An optional but highly recommended parameter. Fireblocks will\ + \ reject future transactions with same ID. \nYou should set this to a\ + \ unique ID representing the transaction, to avoid submitting the same\ + \ transaction twice. This helps with cases where submitting the transaction\ + \ responds with an error code due to Internet interruptions, but the transaction\ + \ was actually sent and processed. To validate whether a transaction has\ + \ been processed, [Find a specific transaction by external transaction\ + \ ID](https://developers.fireblocks.com/reference/get_transactions-external-tx-id-externaltxid).\n\ + There is no specific format required for this parameter." + example: 00000000-0000-0000-0000-000000000000 type: string - tokenId: - description: "The token id, recommended to have numerical format and in\ - \ sequential order" - example: "1" + assetId: + description: "The ID of the asset to transfer, for `TRANSFER`, `MINT` or\ + \ `BURN` operations. [See the list of supported assets and their IDs on\ + \ Fireblocks.](https://developers.fireblocks.com/reference/get_supported-assets)" + example: ETH type: string + x-fb-entity: asset + source: + $ref: "#/components/schemas/SourceTransferPeerPath" + destination: + $ref: "#/components/schemas/DestinationTransferPeerPath" + destinations: + description: "For UTXO based blockchains, you can send a single transaction\ + \ to multiple destinations." + items: + $ref: "#/components/schemas/TransactionRequestDestination" + type: array amount: - description: "For ERC721, amount is optional or should always be 1 and for\ - \ ERC1155, amount should be 1 or greater" - example: "1" + $ref: "#/components/schemas/TransactionRequest_amount" + treatAsGrossAmount: + description: |- + "When set to `true`, the fee will be deducted from the requested amount." + + **Note**: This parameter can only be considered if a transaction’s asset is a base asset, such as ETH or MATIC. If the asset can’t be used for transaction fees, like USDC, this parameter is ignored and the fee is deducted from the relevant base asset wallet in the source account. + example: false + type: boolean + forceSweep: + description: |- + For Polkadot, Kusama and Westend transactions only. When set to true, Fireblocks will empty the asset wallet. + + **Note:** If set to true when the source account is exactly 1 DOT, the transaction will fail. Any amount more or less than 1 DOT succeeds. This is a Polkadot blockchain limitation. + example: false + type: boolean + feeLevel: + description: "For UTXO or EVM-based blockchains only. Defines the blockchain\ + \ fee level which will be payed for the transaction. Alternatively, specific\ + \ fee estimation parameters exist below." + enum: + - LOW + - MEDIUM + - HIGH + example: MEDIUM type: string - metadataURI: - description: "URL of metadata uploaded, skip uploading to IPFS if this field\ - \ is provided with any value" - example: ipfs://QmP4P6f7mDHzikhdwLBVSCxCPEgmjwcWSVBHbtSyfBYzBC + fee: + $ref: "#/components/schemas/TransactionRequest_fee" + priorityFee: + $ref: "#/components/schemas/TransactionRequest_priorityFee" + failOnLowFee: + description: "When set to `true`, in case the current `MEDIUM` fee level\ + \ is higher than the one specified in the transaction, the transaction\ + \ will fail to avoid getting stuck with no confirmations." + type: boolean + maxFee: + description: The maximum fee (gas price or fee per byte) that should be + payed for the transaction. In case the current value of the requested + `feeLevel` is higher than this requested maximum fee. Represented by + a numeric string for accurate precision. + example: "120" type: string - metadata: - allOf: - - $ref: "#/components/schemas/CollectionTokenMetadataDto" - description: Metadata to upload - example: - name: MYTOKEN - description: description of MYTOKEN - required: - - to - - tokenId - - vaultAccountId - type: object - CollectionMintResponseDto: - example: - txId: fbfbfbfb-fbfb-fbfb-fbfb-fbfbfbfbfbfb - properties: - txId: - description: Transaction Id for the mint operation - example: fbfbfbfb-fbfb-fbfb-fbfb-fbfbfbfbfbfb + gasLimit: + $ref: "#/components/schemas/TransactionRequest_gasLimit" + gasPrice: + $ref: "#/components/schemas/TransactionRequest_gasPrice" + networkFee: + $ref: "#/components/schemas/TransactionRequest_networkFee" + replaceTxByHash: + description: "For EVM-based blockchains only. In case a transaction is stuck,\ + \ specify the hash of the stuck transaction to replace it by this transaction\ + \ with a higher fee, or to replace it with this transaction with a zero\ + \ fee and drop it from the blockchain." + example: 00000000-0000-0000-0000-000000000000 type: string - required: - - txId + extraParameters: + description: | + Additional protocol / operation specific key-value parameters: + + For UTXO-based blockchain input selection, add the key `inputsSelection` with the value set the [input selection structure.](https://developers.fireblocks.com/reference/transaction-objects#inputsselection) The inputs can be retrieved from the [Retrieve Unspent Inputs endpoint.](https://developers.fireblocks.com/reference/get_vault-accounts-vaultaccountid-assetid-unspent-inputs) + + For `RAW` operations, add the key `rawMessageData` with the value set to the [raw message data structure.](https://developers.fireblocks.com/reference/raw-signing-objects#rawmessagedata) + + For `CONTRACT_CALL` operations, add the key `contractCallData` with the value set to the Ethereum smart contract Application Binary Interface (ABI) payload. The Fireblocks [development libraries](https://developers.fireblocks.com/docs/ethereum-development#convenience-libraries) are recommended for building contract call transactions. + properties: {} + type: object + customerRefId: + description: The ID for AML providers to associate the owner of funds with + transactions. + example: abcdef + type: string + travelRuleMessage: + $ref: "#/components/schemas/TravelRuleCreateTransactionRequest" + autoStaking: + deprecated: true + description: This feature is no longer supported. + type: boolean + networkStaking: + $ref: "#/components/schemas/TransactionRequest_networkStaking" + cpuStaking: + $ref: "#/components/schemas/TransactionRequest_networkStaking" type: object - CollectionBurnRequestDto: + CreateTransactionResponse: example: - amount: "1" - tokenId: "1" - vaultAccountId: "0" + systemMessages: + type: WARN + message: Slow transaction processing. Outgoing transactions might be stuck. + id: id + status: status properties: - vaultAccountId: - description: The id of the vault account that initiates the burn function - example: "0" - type: string - tokenId: - description: The token id - example: "1" + id: + description: The ID of the transaction. type: string - amount: - description: "For ERC721, amount is optional or should always be 1 and for\ - \ ERC1155, amount should be 1 or greater" - example: "1" + status: + description: "The primary status of the transaction. For details, see [Primary\ + \ transaction statuses.] (https://developers.fireblocks.com/reference/primary-transaction-statuses)" type: string - required: - - tokenId - - vaultAccountId + systemMessages: + $ref: "#/components/schemas/SystemMessageInfo" type: object - CollectionBurnResponseDto: + TransactionFee: example: - txId: fbfbfbfb-fbfb-fbfb-fbfb-fbfbfbfbfbfb + gasLimit: gasLimit + feePerByte: feePerByte + networkFee: networkFee + priorityFee: 1.4658129805029452 + l1Fee: l1Fee + baseFee: 6.027456183070403 + gasPrice: 0.8008281904610115 + maxFeePerGasDelta: maxFeePerGasDelta properties: - txId: - description: Transaction Id for the burn operation - example: fbfbfbfb-fbfb-fbfb-fbfb-fbfbfbfbfbfb + feePerByte: type: string - required: - - txId - type: object - SOLAccount: - description: The accounts involved in the instruction - properties: - name: - description: The name of the account - example: mint + gasPrice: + type: number + gasLimit: type: string - signer: - description: Indicates if the account needs to sign the instruction. If - true a signature for this account must be provided - example: false - type: boolean - writable: - description: Indicates if the account's data can be changed by the instruction. - example: true - type: boolean - address: - description: The address of the account - example: 4PVcDXAkAgQkVx4puiSXdZ5H8BrTqUzstJBKKWFy3XsH + networkFee: type: string - required: - - name - type: object - IdlType: - description: The type of the parameter - enum: - - bool - - u8 - - i8 - - u16 - - i16 - - u32 - - i32 - - f32 - - u64 - - i64 - - f64 - - u128 - - i128 - - u256 - - i256 - - bytes - - string - - pubkey - example: u8 - type: string - SolParameter: - description: The arguments of the instruction - properties: - name: - description: The name of the parameter - example: mint + baseFee: + description: (optional) Base Fee according to EIP-1559 (ETH assets) + type: number + priorityFee: + description: (optional) Priority Fee according to EIP-1559 (ETH assets) + type: number + maxFeePerGasDelta: + description: Max Fee Per Gas Delta added only for EIP-1559 (ETH assets) type: string - type: - $ref: "#/components/schemas/IdlType" - required: - - name - - type - type: object - SolanaInstruction: - properties: - name: - description: The name of the instruction - example: transfer + l1Fee: + description: Layer 1 fee for Layer 2 chains type: string - discriminator: - description: The discriminator for the instruction. Acts as a function selector - example: - - 13 - items: - type: number - type: array - accounts: - items: - $ref: "#/components/schemas/SOLAccount" - type: array - args: - items: - $ref: "#/components/schemas/SolParameter" - type: array - required: - - accounts - - args - - discriminator - - name type: object - ContractAbiResponseDto: + EstimatedTransactionFeeResponse: example: - abi: - - inputs: - - internalType: address - name: implementation - type: address - - internalType: bytes - name: _data - type: bytes - stateMutability: nonpayable - type: constructor - implementationAbi: - - inputs: - - internalType: address - name: to - type: address - - internalType: uint256 - name: amount - type: uint256 - stateMutability: nonpayable - type: function - name: mint + high: + gasLimit: gasLimit + feePerByte: feePerByte + networkFee: networkFee + priorityFee: 1.4658129805029452 + l1Fee: l1Fee + baseFee: 6.027456183070403 + gasPrice: 0.8008281904610115 + maxFeePerGasDelta: maxFeePerGasDelta + low: + gasLimit: gasLimit + feePerByte: feePerByte + networkFee: networkFee + priorityFee: 1.4658129805029452 + l1Fee: l1Fee + baseFee: 6.027456183070403 + gasPrice: 0.8008281904610115 + maxFeePerGasDelta: maxFeePerGasDelta + medium: + gasLimit: gasLimit + feePerByte: feePerByte + networkFee: networkFee + priorityFee: 1.4658129805029452 + l1Fee: l1Fee + baseFee: 6.027456183070403 + gasPrice: 0.8008281904610115 + maxFeePerGasDelta: maxFeePerGasDelta properties: - abi: - description: The abi of the contract - example: - - inputs: - - internalType: address - name: implementation - type: address - - internalType: bytes - name: _data - type: bytes - stateMutability: nonpayable - type: constructor - items: - $ref: "#/components/schemas/ContractAbiResponseDto_abi_inner" - type: array - implementationAbi: - description: The abi of the implementation contract if exists. Relevant - only for proxy patterns - example: - - inputs: - - internalType: address - name: to - type: address - - internalType: uint256 - name: amount - type: uint256 - stateMutability: nonpayable - type: function - name: mint - items: - $ref: "#/components/schemas/AbiFunction" - type: array + low: + $ref: "#/components/schemas/TransactionFee" + medium: + $ref: "#/components/schemas/TransactionFee" + high: + $ref: "#/components/schemas/TransactionFee" required: - - abi - type: object - ReadAbiFunction: - example: - outputs: - - components: - - null - - null - name: _name - description: The name of the token - internalType: string - type: string - - components: - - null - - null - name: _name - description: The name of the token - internalType: string - type: string - inputs: - - components: - - components: - - null - - null - name: _name - description: The name of the token - internalType: string - type: string - - components: - - null - - null - name: _name - description: The name of the token - internalType: string - type: string - name: _name - description: The name of the token - functionValue: "" - internalType: string - type: string - value: "true" - - components: - - components: - - null - - null - name: _name - description: The name of the token - internalType: string - type: string - - components: - - null - - null - name: _name - description: The name of the token - internalType: string - type: string - name: _name - description: The name of the token - functionValue: "" - internalType: string - type: string - value: "true" - name: name - stateMutability: pure - description: description - type: type + - high + - low + - medium + type: object + SetConfirmationsThresholdRequest: + example: + numOfConfirmations: 0.8008281904610115 properties: - stateMutability: - enum: - - pure - - view - example: pure - type: string - outputs: + numOfConfirmations: + type: number + type: object + SetConfirmationsThresholdResponse: + example: + success: true + transactions: + - transactions + - transactions + properties: + success: + type: boolean + transactions: items: - $ref: "#/components/schemas/Parameter" + type: string type: array - name: + type: object + DropTransactionRequest: + example: + txId: txId + feeLevel: feeLevel + gasPrice: gasPrice + properties: + txId: type: string - type: + feeLevel: type: string - inputs: - items: - $ref: "#/components/schemas/ParameterWithValue" - type: array - description: + gasPrice: type: string - required: - - inputs - - stateMutability - - type type: object - SOLAccountWithValue: + DropTransactionResponse: + example: + txStatus: txStatus + txId: txId + replacedTxHash: replacedTxHash properties: - name: - description: The name of the account - example: mint + txStatus: type: string - signer: - description: Indicates if the account needs to sign the instruction. If - true a signature for this account must be provided - example: false - type: boolean - writable: - description: Indicates if the account's data can be changed by the instruction. - example: true - type: boolean - address: - description: The address of the account - example: 4PVcDXAkAgQkVx4puiSXdZ5H8BrTqUzstJBKKWFy3XsH + txId: + type: string + replacedTxHash: type: string - required: - - address - - name type: object - SolParameterWithValue: + CancelTransactionResponse: + example: + success: true properties: - value: - description: The value of the parameter - example: "1000000" - type: string - name: - description: The name of the parameter - example: mint - type: string - type: - $ref: "#/components/schemas/IdlType" - required: - - name - - type - - value + success: + type: boolean type: object - SolanaInstructionWithValue: + FreezeTransactionResponse: + example: + success: true properties: - name: - description: The name of the instruction - example: approve - type: string - discriminator: - description: The discriminator for the instruction. Acts as a function selector - example: - - 13 - items: - type: number - type: array - accounts: - items: - $ref: "#/components/schemas/SOLAccountWithValue" - type: array - args: - description: The arguments of the instruction - items: - $ref: "#/components/schemas/SolParameterWithValue" - type: array - required: - - accounts - - args - - discriminator - - name + success: + type: boolean type: object - ReadCallFunctionDto: + UnfreezeTransactionResponse: example: - abiFunction: - outputs: - - components: - - null - - null - name: _name - description: The name of the token - internalType: string - type: string - - components: - - null - - null - name: _name - description: The name of the token - internalType: string - type: string - inputs: - - components: - - components: - - null - - null - name: _name - description: The name of the token - internalType: string - type: string - - components: - - null - - null - name: _name - description: The name of the token - internalType: string - type: string - name: _name - description: The name of the token - functionValue: "" - internalType: string - type: string - value: "true" - - components: - - components: - - null - - null - name: _name - description: The name of the token - internalType: string - type: string - - components: - - null - - null - name: _name - description: The name of the token - internalType: string - type: string - name: _name - description: The name of the token - functionValue: "" - internalType: string - type: string - value: "true" - name: name - stateMutability: pure - description: description - type: type + success: true properties: - abiFunction: - $ref: "#/components/schemas/ReadCallFunctionDto_abiFunction" - required: - - abiFunction + success: + type: boolean type: object - WriteAbiFunction: + ValidateAddressResponse: example: - outputs: - - components: - - null - - null - name: _name - description: The name of the token - internalType: string + isValid: true + requiresTag: true + isActive: true + properties: + isValid: + type: boolean + isActive: + type: boolean + requiresTag: + type: boolean + type: object + NetworkFee: + example: + feePerByte: feePerByte + networkFee: networkFee + priorityFee: priorityFee + baseFee: baseFee + gasPrice: gasPrice + properties: + feePerByte: type: string - - components: - - null - - null - name: _name - description: The name of the token - internalType: string + gasPrice: type: string - inputs: - - components: - - components: - - null - - null - name: _name - description: The name of the token - internalType: string - type: string - - components: - - null - - null - name: _name - description: The name of the token - internalType: string - type: string - name: _name - description: The name of the token - functionValue: "" - internalType: string + networkFee: type: string - value: "true" - - components: - - components: - - null - - null - name: _name - description: The name of the token - internalType: string - type: string - - components: - - null - - null - name: _name - description: The name of the token - internalType: string - type: string - name: _name - description: The name of the token - functionValue: "" - internalType: string + baseFee: + description: (optional) Base Fee according to EIP-1559 (ETH assets) type: string - value: "true" - name: name - stateMutability: nonpayable - description: description - type: function + priorityFee: + description: (optional) Priority Fee according to EIP-1559 (ETH assets) + type: string + type: object + EstimatedNetworkFeeResponse: + example: + high: + feePerByte: feePerByte + networkFee: networkFee + priorityFee: priorityFee + baseFee: baseFee + gasPrice: gasPrice + low: + feePerByte: feePerByte + networkFee: networkFee + priorityFee: priorityFee + baseFee: baseFee + gasPrice: gasPrice + medium: + feePerByte: feePerByte + networkFee: networkFee + priorityFee: priorityFee + baseFee: baseFee + gasPrice: gasPrice + properties: + low: + $ref: "#/components/schemas/NetworkFee" + medium: + $ref: "#/components/schemas/NetworkFee" + high: + $ref: "#/components/schemas/NetworkFee" + required: + - high + - low + - medium + type: object + PaymentAccountType: + enum: + - VAULT_ACCOUNT + - EXCHANGE_ACCOUNT + - FIAT_ACCOUNT + type: string + PaymentAccount: + example: + id: id + type: VAULT_ACCOUNT + properties: + id: + type: string + type: + $ref: "#/components/schemas/PaymentAccountType" + required: + - id + - type + type: object + PayeeAccountType: + description: "- VAULT_ACCOUNT \ta native Fireblocks vault account\n- EXCHANGE_ACCOUNT\ + \ \ta third-party exchange account\n- INTERNAL_WALLET \ta whitelisted address\ + \ marked as internal to the workspace/organization\n- EXTERNAL_WALLET\ta whitelisted\ + \ address marked as external\n- NETWORK_CONNECTION\ta member of the Fireblocks\ + \ network\n- FIAT_ACCOUNT\ta third-party account of a fiat bank (Signature,\ + \ BCB, etc)\n" + enum: + - VAULT_ACCOUNT + - EXCHANGE_ACCOUNT + - INTERNAL_WALLET + - EXTERNAL_WALLET + - NETWORK_CONNECTION + - FIAT_ACCOUNT + type: string + PayeeAccount: + example: + id: id + type: VAULT_ACCOUNT properties: - stateMutability: - enum: - - payable - - nonpayable - example: nonpayable + id: type: string - outputs: - items: - $ref: "#/components/schemas/Parameter" - type: array type: - enum: - - function - type: string - name: - type: string - inputs: - items: - $ref: "#/components/schemas/ParameterWithValue" - type: array - description: - type: string + $ref: "#/components/schemas/PayeeAccountType" required: - - inputs - - stateMutability + - id - type type: object - WriteCallFunctionDto: + InstructionAmount: example: - abiFunction: - outputs: - - components: - - null - - null - name: _name - description: The name of the token - internalType: string - type: string - - components: - - null - - null - name: _name - description: The name of the token - internalType: string - type: string - inputs: - - components: - - components: - - null - - null - name: _name - description: The name of the token - internalType: string - type: string - - components: - - null - - null - name: _name - description: The name of the token - internalType: string - type: string - name: _name - description: The name of the token - functionValue: "" - internalType: string - type: string - value: "true" - - components: - - components: - - null - - null - name: _name - description: The name of the token - internalType: string - type: string - - components: - - null - - null - name: _name - description: The name of the token - internalType: string - type: string - name: _name - description: The name of the token - functionValue: "" - internalType: string - type: string - value: "true" - name: name - stateMutability: nonpayable - description: description - type: function - note: note - amount: "12.345" - fee: "2000" - useGasless: false - vaultAccountId: "0" - externalId: 0192e4f5-924e-7bb9-8e5b-c748270feb38 - feeLevel: MEDIUM + amount: amount + assetId: assetId properties: - vaultAccountId: - description: The vault account id this contract was deploy from - example: "0" - type: string - abiFunction: - $ref: "#/components/schemas/WriteCallFunctionDto_abiFunction" amount: - description: Amount in base asset. Being used in payable functions - example: "12.345" - type: string - feeLevel: - description: Fee level for the write function transaction. interchangeable - with the 'fee' field - enum: - - LOW - - MEDIUM - - HIGH - example: MEDIUM - type: string - fee: - description: Max fee amount for the write function transaction. interchangeable - with the 'feeLevel' field - example: "2000" - type: string - note: - description: "Custom note, not sent to the blockchain, that describes the\ - \ transaction at your Fireblocks workspace" type: string - useGasless: - description: "Indicates whether the token should be created in a gasless\ - \ manner, utilizing the ERC-2771 standard. When set to true, the transaction\ - \ will be relayed by a designated relayer. The workspace must be configured\ - \ to use Fireblocks gasless relay." - example: false - type: boolean - externalId: - description: External id that can be used to identify the transaction in - your system. The unique identifier of the transaction outside of Fireblocks - with max length of 255 characters - example: 0192e4f5-924e-7bb9-8e5b-c748270feb38 + assetId: type: string required: - - abiFunction - - vaultAccountId + - amount + - assetId type: object - WriteCallFunctionResponseDto: + PayoutInstruction: example: - txId: txId + amount: + amount: amount + assetId: assetId + id: id + payeeAccount: + id: id + type: VAULT_ACCOUNT properties: - txId: + id: type: string + payeeAccount: + $ref: "#/components/schemas/PayeeAccount" + amount: + $ref: "#/components/schemas/InstructionAmount" required: - - txId + - amount + - payeeAccount type: object - TxLog: - example: - blockHash: 0x6e3c92a3d96f96e46b7f39c30244edb6e8e0f4b65d3846c9f8287f9dd5d1a3d2 - address: 0xC2c4e1Db41F0bB97996D0eD0542D2170d146FB66 - logIndex: 1 - data: 0x000000000000000000000000000000000000000000000000000000000000000a - removed: false - topics: - - 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef - - 0x000000000000000000000000a7d9ddbe1f17865597fbd27ec712455208b6b76d - - 0x000000000000000000000000c2c4e1db41f0bb97996d0ed0542d2170d146fb66 - blockNumber: 123456 - transactionIndex: 2 - transactionHash: 0x5a3b7f4b2c9e4a0b1f8a12c8e5f1d0e2a6b4c9d1f7e2b1a2b3c4d5e6f7a8b9c + CreatePayoutRequest: + example: + instructionSet: + - amount: + amount: amount + assetId: assetId + id: id + payeeAccount: + id: id + type: VAULT_ACCOUNT + - amount: + amount: amount + assetId: assetId + id: id + payeeAccount: + id: id + type: VAULT_ACCOUNT + paymentAccount: + id: id + type: VAULT_ACCOUNT properties: - address: - description: The log address - example: 0xC2c4e1Db41F0bB97996D0eD0542D2170d146FB66 - type: string - topics: - description: Array of log topics - example: - - 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef - - 0x000000000000000000000000a7d9ddbe1f17865597fbd27ec712455208b6b76d - - 0x000000000000000000000000c2c4e1db41f0bb97996d0ed0542d2170d146fb66 + paymentAccount: + $ref: "#/components/schemas/PaymentAccount" + instructionSet: items: - type: string + $ref: "#/components/schemas/PayoutInstruction" type: array - data: - description: The log data - example: 0x000000000000000000000000000000000000000000000000000000000000000a - type: string - blockNumber: - description: Block number where the log occurred - example: 123456 - type: integer - transactionHash: - description: Transaction hash associated with the log - example: 0x5a3b7f4b2c9e4a0b1f8a12c8e5f1d0e2a6b4c9d1f7e2b1a2b3c4d5e6f7a8b9c - type: string - transactionIndex: - description: Transaction index in the block - example: 2 - type: integer - blockHash: - description: The hash of the block - example: 0x6e3c92a3d96f96e46b7f39c30244edb6e8e0f4b65d3846c9f8287f9dd5d1a3d2 - type: string - logIndex: - description: Log index in the block - example: 1 - type: integer - removed: - description: Indicates if the log was removed - example: false - type: boolean required: - - address - - blockHash - - blockNumber - - data - - logIndex - - removed - - topics - - transactionHash - - transactionIndex + - instructionSet + - paymentAccount type: object - TransactionReceiptResponse: + PaymentAccountResponse: example: - blockHash: 0x6e3c92a3d96f96e46b7f39c30244edb6e8e0f4b65d3846c9f8287f9dd5d1a3d2 - logsBloom: 0x0000000000000000000000000000000000000000000000000000000000000000 - contractAddress: 0xC2c4e1Db41F0bB97996D0eD0542D2170d146FB66 - transactionIndex: 3 - type: 0x2 - transactionHash: 0x5a3b7f4b2c9e4a0b1f8a12c8e5f1d0e2a6b4c9d1f7e2b1a2b3c4d5e6f7a8b9c - gasUsed: 21000 - blockNumber: 123456 - cumulativeGasUsed: 21000 - from: 0xa7D9ddBE1f17865597Fbd27ec712455208B6b76D - to: 0x1eC4a8bB9bB9Afa24f79cC2e1423cD00B6cFf50 - effectiveGasPrice: 1000000000 - logs: - - blockHash: 0x6e3c92a3d96f96e46b7f39c30244edb6e8e0f4b65d3846c9f8287f9dd5d1a3d2 - address: 0xC2c4e1Db41F0bB97996D0eD0542D2170d146FB66 - logIndex: 1 - data: 0x000000000000000000000000000000000000000000000000000000000000000a - removed: false - topics: - - 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef - - 0x000000000000000000000000a7d9ddbe1f17865597fbd27ec712455208b6b76d - - 0x000000000000000000000000c2c4e1db41f0bb97996d0ed0542d2170d146fb66 - blockNumber: 123456 - transactionIndex: 2 - transactionHash: 0x5a3b7f4b2c9e4a0b1f8a12c8e5f1d0e2a6b4c9d1f7e2b1a2b3c4d5e6f7a8b9c - - blockHash: 0x6e3c92a3d96f96e46b7f39c30244edb6e8e0f4b65d3846c9f8287f9dd5d1a3d2 - address: 0xC2c4e1Db41F0bB97996D0eD0542D2170d146FB66 - logIndex: 1 - data: 0x000000000000000000000000000000000000000000000000000000000000000a - removed: false - topics: - - 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef - - 0x000000000000000000000000a7d9ddbe1f17865597fbd27ec712455208b6b76d - - 0x000000000000000000000000c2c4e1db41f0bb97996d0ed0542d2170d146fb66 - blockNumber: 123456 - transactionIndex: 2 - transactionHash: 0x5a3b7f4b2c9e4a0b1f8a12c8e5f1d0e2a6b4c9d1f7e2b1a2b3c4d5e6f7a8b9c - status: 1 + id: id + type: VAULT_ACCOUNT properties: - blockHash: - description: The block hash - example: 0x6e3c92a3d96f96e46b7f39c30244edb6e8e0f4b65d3846c9f8287f9dd5d1a3d2 - type: string - blockNumber: - description: The block number - example: 123456 - type: integer - contractAddress: - description: The address of deployed contract - example: 0xC2c4e1Db41F0bB97996D0eD0542D2170d146FB66 - nullable: true - type: string - cumulativeGasUsed: - description: The cumulative gas used in the transaction - example: 21000 - type: integer - effectiveGasPrice: - description: The effective gas price - example: 1000000000 - type: integer - from: - description: Sender address - example: 0xa7D9ddBE1f17865597Fbd27ec712455208B6b76D - type: string - gasUsed: - description: Gas used by the transaction - example: 21000 - type: integer - logs: - description: Array of transaction logs - items: - $ref: "#/components/schemas/TxLog" - type: array - logsBloom: - description: Logs bloom filter - example: 0x0000000000000000000000000000000000000000000000000000000000000000 - type: string - status: - description: "Transaction status (1 for success, 0 for failure)" - example: 1 - type: integer - to: - description: Recipient address - example: 0x1eC4a8bB9bB9Afa24f79cC2e1423cD00B6cFf50 - nullable: true - type: string - transactionHash: - description: The transaction hash - example: 0x5a3b7f4b2c9e4a0b1f8a12c8e5f1d0e2a6b4c9d1f7e2b1a2b3c4d5e6f7a8b9c + id: type: string - transactionIndex: - description: Transaction index in the block - example: 3 - type: integer type: - description: Type of transaction - example: 0x2 - type: string - required: - - blockHash - - blockNumber - - cumulativeGasUsed - - effectiveGasPrice - - from - - gasUsed - - logs - - logsBloom - - status - - transactionHash - - transactionIndex - - type + $ref: "#/components/schemas/PaymentAccountType" type: object - ContractDataEncodedDataString: - description: The encoded data to decode - example: 0x1234567890abcdef + PayoutState: + description: | + - CREATED - payout instruction set created with all its details + - FILE_FOUND - new file found in the FTP + - REQUESTED - payout requested with all its details + - TRANSLATED - payout instruction account IDs identified and translated + - PROCESSING - payout instruction set executed and is processing + - SUBMITTED - transactions submitted for payout instructions + - FINALIZED - payout finished processing, all transactions processed successfully + - INSUFFICIENT_BALANCE - insufficient balance in the payment account (can be a temporary state) + - FAILED - one or more of the payout instructions failed + enum: + - CREATED + - FILE_FOUND + - REQUESTED + - TRANSLATED + - PROCESSING + - SUBMITTED + - FINALIZED + - INSUFFICIENT_BALANCE + - FAILED type: string - ContractDataLogDataParam: - properties: - data: - description: "The data to decode, which can be a string or an object containing\ - \ the data and its type." - example: 0x1234567890abcdef - type: string - topics: - description: "The topics of the log, which is an array of strings." - example: - - 1311768467294899700 - - 12379813812177893000 - items: - type: string - type: array - required: - - data - - topics + PayoutStatus: + description: "- REQUESTED\tpayout requested with all its details\n- VERIFIED\t\ + payout instruction set details were verified\n- PROCESSING\tpayout instruction\ + \ set executed and is processing\n- FINALIZED\tpayout done (all payout instructions\ + \ completed successfully)\n- INSUFFICIENT_BALANCE\tinsufficient balance in\ + \ the payment account (can be a temporary state)\n- FAILED\tone or more of\ + \ the payout instructions failed\n" + enum: + - REGISTERED + - VERIFYING + - IN_PROGRESS + - DONE + - INSUFFICIENT_BALANCE + - FAILED + type: string + PayoutInitMethod: + enum: + - FILE + - API + type: string + PayeeAccountResponse: + example: + id: id + type: VAULT_ACCOUNT + properties: + id: + type: string + type: + $ref: "#/components/schemas/PayeeAccountType" type: object - ContractDataDecodeDataType: - description: The type of the data to decode. + PayoutInstructionState: + description: "- NOT_STARTED\t- waiting to start\n- TRANSACTION_SENT - an underlying\ + \ transaction was sent\n- COMPLETED\t- completed successfully\n- FAILED -\ + \ failed\n- TRANSLATION_ERROR -lookup of the destination failed (due to changes\ + \ in the underlying whitelisted external wallet or similar)\n- SKIPPED- no\ + \ transaction(s) created for this instruction\n" enum: - - ERROR - - LOG - - FUNCTION - example: FUNCTION + - NOT_STARTED + - TRANSACTION_SENT + - COMPLETED + - FAILED + - TRANSLATION_ERROR + - SKIPPED type: string - ContractDataDecodeRequest: + Transaction: example: - data: 0x1234567890abcdef - dataType: FUNCTION - abi: - - inputs: - - name: to - type: address - - name: amount - type: uint256 - stateMutability: nonpayable - type: function - name: transfer + instructionId: instructionId + id: id + state: SUBMITTED + timestamp: 6.027456183070403 properties: - data: - $ref: "#/components/schemas/ContractDataDecodeRequest_data" - dataType: - $ref: "#/components/schemas/ContractDataDecodeDataType" - abi: - description: The abi of the function/error/log to decode. - example: - - inputs: - - name: to - type: address - - name: amount - type: uint256 - stateMutability: nonpayable - type: function - name: transfer - items: - $ref: "#/components/schemas/AbiFunction" - type: array - required: - - data - - dataType - type: object - ContractDataDecodeResponseParams: - example: - args: - - components: - - components: - - null - - null - name: _name - description: The name of the token - internalType: string - type: string - - components: - - null - - null - name: _name - description: The name of the token - internalType: string - type: string - name: _name - description: The name of the token - functionValue: "" - internalType: string - type: string - value: "true" - - components: - - components: - - null - - null - name: _name - description: The name of the token - internalType: string - type: string - - components: - - null - - null - name: _name - description: The name of the token - internalType: string - type: string - name: _name - description: The name of the token - functionValue: "" - internalType: string + id: type: string - value: "true" - signature: "transfer(address,uint256)" - name: transfer - properties: - name: - description: The name of the contract function. - example: transfer + state: + enum: + - SUBMITTED + - QUEUED + - PENDING_AUTHORIZATION + - PENDING_SIGNATURE + - BROADCASTING + - PENDING_3RD_PARTY_MANUAL_APPROVAL + - PENDING_3RD_PARTY + - PENDING + - CONFIRMING + - CONFIRMED + - COMPLETED + - PARTIALLY_COMPLETED + - PENDING_AML_SCREENING + - CANCELLING + - CANCELLED + - REJECTED + - BLOCKED + - FAILED + - TIMEOUT type: string - signature: - description: The signature of the contract function. - example: "transfer(address,uint256)" + timestamp: + format: date-time + type: number + instructionId: type: string - args: - items: - $ref: "#/components/schemas/ParameterWithValue" - type: array required: - - args - - name - - signature + - id + - state type: object - ContractDataDecodedResponse: + PayoutInstructionResponse: example: - result: - - args: - - components: - - components: - - null - - null - name: _name - description: The name of the token - internalType: string - type: string - - components: - - null - - null - name: _name - description: The name of the token - internalType: string - type: string - name: _name - description: The name of the token - functionValue: "" - internalType: string - type: string - value: "true" - - components: - - components: - - null - - null - name: _name - description: The name of the token - internalType: string - type: string - - components: - - null - - null - name: _name - description: The name of the token - internalType: string - type: string - name: _name - description: The name of the token - functionValue: "" - internalType: string - type: string - value: "true" - signature: "transfer(address,uint256)" - name: transfer - - args: - - components: - - components: - - null - - null - name: _name - description: The name of the token - internalType: string - type: string - - components: - - null - - null - name: _name - description: The name of the token - internalType: string - type: string - name: _name - description: The name of the token - functionValue: "" - internalType: string - type: string - value: "true" - - components: - - components: - - null - - null - name: _name - description: The name of the token - internalType: string - type: string - - components: - - null - - null - name: _name - description: The name of the token - internalType: string - type: string - name: _name - description: The name of the token - functionValue: "" - internalType: string - type: string - value: "true" - signature: "transfer(address,uint256)" - name: transfer - type: FUNCTION + amount: + amount: amount + assetId: assetId + id: id + state: NOT_STARTED + payeeAccount: + id: id + type: VAULT_ACCOUNT + transactions: + - instructionId: instructionId + id: id + state: SUBMITTED + timestamp: 6.027456183070403 + - instructionId: instructionId + id: id + state: SUBMITTED + timestamp: 6.027456183070403 properties: - result: - description: The decoded parameters of the contract function call. + id: + type: string + payeeAccount: + $ref: "#/components/schemas/PayeeAccountResponse" + amount: + $ref: "#/components/schemas/InstructionAmount" + state: + $ref: "#/components/schemas/PayoutInstructionState" + transactions: items: - $ref: "#/components/schemas/ContractDataDecodeResponseParams" + $ref: "#/components/schemas/Transaction" type: array - type: - $ref: "#/components/schemas/ContractDataDecodeDataType" required: - - result - - type + - amount + - payeeAccount + - state + - transactions type: object - ContractDataDecodeError: + PayoutResponse: example: - code: 400 - message: "Error decoding data: Invalid ABI" + createdAt: 0.8008281904610115 + initMethod: FILE + reasonOfFailure: reasonOfFailure + instructionSet: + - amount: + amount: amount + assetId: assetId + id: id + state: NOT_STARTED + payeeAccount: + id: id + type: VAULT_ACCOUNT + transactions: + - instructionId: instructionId + id: id + state: SUBMITTED + timestamp: 6.027456183070403 + - instructionId: instructionId + id: id + state: SUBMITTED + timestamp: 6.027456183070403 + - amount: + amount: amount + assetId: assetId + id: id + state: NOT_STARTED + payeeAccount: + id: id + type: VAULT_ACCOUNT + transactions: + - instructionId: instructionId + id: id + state: SUBMITTED + timestamp: 6.027456183070403 + - instructionId: instructionId + id: id + state: SUBMITTED + timestamp: 6.027456183070403 + state: CREATED + reportUrl: reportUrl + payoutId: payoutId + paymentAccount: + id: id + type: VAULT_ACCOUNT + status: REGISTERED properties: - message: - description: Bad request error message - example: "Error decoding data: Invalid ABI" + payoutId: type: string - code: - description: Error code - example: 400 + paymentAccount: + $ref: "#/components/schemas/PaymentAccountResponse" + createdAt: type: number + state: + $ref: "#/components/schemas/PayoutState" + status: + $ref: "#/components/schemas/PayoutStatus" + reasonOfFailure: + description: "
    \n
  • INSUFFICIENT_BALANCE
  • \n
  • SOURCE_TRANSLATION
  • \n\ +
  • SOURCE_NOT_UNIQUE
  • \n
  • SOURCE_NOT_FOUND
  • \n
  • SOURCE_TYPE_NOT_SUPPORTED
  • \n\ +
  • EMPTY_SOURCE
  • \n
  • DESTINATION_TRANSLATION
  • \n
  • DESTINATION_NOT_UNIQUE
  • \n\ +
  • DESTINATION_NOT_FOUND
  • \n
  • EMPTY_DESTINATION
  • \n
  • PARSING\ + \
  • \n
  • UNKNOWN
  • \n
  • FIREBLOCKS_CLIENT
  • \n
  • TRANSACTION_SUBMISSION
  • \n\ +
\n" + type: string + initMethod: + $ref: "#/components/schemas/PayoutInitMethod" + instructionSet: + items: + $ref: "#/components/schemas/PayoutInstructionResponse" + type: array + reportUrl: + type: string required: - - code - - message - type: object - ChainDescriptor: - enum: - - ETH - - SOL - - MATIC - - ETH_TEST_HOODI - - ETH_TEST6 - - SOL_TEST - type: string - StakingGetChainsResponse: - example: - - ETH - - ETH_TEST6 - - ETH_TEST_HOODI - - SOL - - SOL_TEST - - MATIC - items: - $ref: "#/components/schemas/ChainDescriptor" - type: array - AdditionalInfo: - description: Additional information related to the blockchain. This may include - extra details about the blockchain network. + - createdAt + - instructionSet + - paymentAccount + - payoutId + - state + - status + type: object + ErrorResponse: example: - activationPeriod: 172800000 - estimatedAnnualReward: 6.48 - lockupPeriod: 172800000 + error: + type: INTERNAL + message: message properties: - estimatedAnnualReward: - description: "The estimated annual reward rate for the blockchain, represented\ - \ as a decimal percentage value." - example: 6.48 - type: number - lockupPeriod: - description: "The duration of the lockup period for certain actions on the\ - \ blockchain, measured in milliseconds." - example: 172800000 - type: number - activationPeriod: - description: "The duration of the activation period for certain actions\ - \ on the blockchain, measured in milliseconds." - example: 172800000 - type: number + error: + $ref: "#/components/schemas/ErrorResponse_error" required: - - activationPeriod - - estimatedAnnualReward - - lockupPeriod + - error type: object - ChainInfoResponse: + DispatchPayoutResponse: example: - chainDescriptor: SOL - epochElapsed: 0.31 - epochDuration: 172800000 - additionalInfo: - activationPeriod: 172800000 - estimatedAnnualReward: 6.48 - lockupPeriod: 172800000 - currentEpoch: 483 + payoutId: payoutId properties: - chainDescriptor: - description: The protocol identifier (e.g. "ETH"/"SOL"). - example: SOL + payoutId: type: string - currentEpoch: - description: The current epoch number of the blockchain network. - example: 483 - type: number - epochElapsed: - description: "The percentage of time that has elapsed within the current\ - \ epoch, represented as a decimal value between 0 and 1." - example: 0.31 - type: number - epochDuration: - description: The total duration in milliseconds of a single epoch. - example: 172800000 - type: number - additionalInfo: - $ref: "#/components/schemas/AdditionalInfo" required: - - additionalInfo - - chainDescriptor - - currentEpoch - - epochDuration - - epochElapsed + - payoutId type: object - StakingProvider: - description: The unique identifier of the staking provider - enum: - - kiln - - figment - - lido - - p2p - example: kiln - type: string - FeeLevel: - description: "Represents the fee level for a transaction, which can be set as\ - \ slow, medium, or fast. Only one of fee/feeLevel is required." + PreScreening: + properties: + enabled: + type: boolean + required: + - enabled + type: object + ConversionOperationType: enum: - - LOW - - MEDIUM - - HIGH - example: MEDIUM + - CONVERSION type: string - StakeRequest: - example: - vaultAccountId: "22" - providerId: kiln - stakeAmount: "100" - txNote: stake request id CcaHc2L43ZWjwCHART3oZoJvHLAe9hzT2DJNUpBzoTN1 of 100 - SOL created on 02.04.23 - feeLevel: MEDIUM + ConversionOperationConfigParams: properties: - vaultAccountId: - description: The source vault account to stake from - example: "22" + amount: type: string - providerId: - $ref: "#/components/schemas/StakingProvider" - stakeAmount: - description: Amount of tokens to stake - example: "32" + accountId: type: string - txNote: - description: The note to associate with the stake transactions. - example: stake request id CcaHc2L43ZWjwCHART3oZoJvHLAe9hzT2DJNUpBzoTN1 of - 32ETH created on 02.04.23 + srcAssetId: type: string - fee: - description: "Represents the fee for a transaction, which can be specified\ - \ as a percentage value. Only one of fee/feeLevel is required." - example: "7" + destAssetId: type: string - feeLevel: - $ref: "#/components/schemas/FeeLevel" + slippageBasisPoints: + maximum: 10000 + minimum: 0 + type: integer required: - - providerId - - stakeAmount - - vaultAccountId + - destAssetId type: object - StakeResponse: - example: - id: afedfd2e4-e3c9-4b70-90d6-eb0f74bfd4sd8 + CreateConversionConfigOperationRequest: properties: - id: - description: The unique identifier of the staking position - example: afedfd2e4-e3c9-4b70-90d6-eb0f74bfd4sd8 - type: string + type: + $ref: "#/components/schemas/ConversionOperationType" + params: + $ref: "#/components/schemas/ConversionOperationConfigParams" required: - - id + - params + - type type: object - UnstakeRequest: - example: - id: b70701f4-d7b1-4795-a8ee-b09cdb5b850d - txNote: "unstake request id b70701f4-d7b1-4795-a8ee-b09cdb5b850d #SOL" - feeLevel: MEDIUM + TransferOperationType: + enum: + - TRANSFER + type: string + AccountType: + enum: + - EXCHANGE_ACCOUNT + - UNMANAGED_WALLET + - VAULT_ACCOUNT + - NETWORK_CONNECTION + - FIAT_ACCOUNT + type: string + Account: properties: - id: - description: id of position to unstake - example: b70701f4-d7b1-4795-a8ee-b09cdb5b850e - type: string - fee: - description: "Represents the fee for a transaction, which can be specified\ - \ as a percentage value. Only one of fee/feeLevel is required." - example: "7" - type: string - feeLevel: - $ref: "#/components/schemas/FeeLevel" - txNote: - description: The note to associate with the transactions. - example: "unstake request id b70701f4-d7b1-4795-a8ee-b09cdb5b850d #ETH" - type: string - amount: - description: "The number of tokens to unstake. This optional field is applicable\ - \ only for liquid staking and allows for a partial unstake of the position.\ - \ If not provided, the entire position will be unstaked by default." - example: "75" + accountId: type: string + accountType: + $ref: "#/components/schemas/AccountType" required: - - id + - accountId + - accountType type: object - WithdrawRequest: - example: - id: b70701f4-d7b1-4795-a8ee-b09cdb5b850d - txNote: "withdraw request id b70701f4-d7b1-4795-a8ee-b09cdb5b850d #SOL" - feeLevel: MEDIUM + OneTimeAddressAccount: properties: - id: - description: id of position to withdraw - example: b70701f4-d7b1-4795-a8ee-b09cdb5b850f - type: string - fee: - description: "Represents the fee for a transaction, which can be specified\ - \ as a percentage value. Only one of fee/feeLevel is required." - example: "7" + oneTimeAddress: type: string - feeLevel: - $ref: "#/components/schemas/FeeLevel" - txNote: - description: The note to associate with the transactions. - example: "withdraw request id b70701f4-d7b1-4795-a8ee-b09cdb5b850d #ETH" + tag: type: string required: - - id + - oneTimeAddress type: object - ClaimRewardsRequest: - example: - id: b70701f4-d7b1-4795-a8ee-b09cdb5b850d - txNote: claim rewards request id b70701f4-d7b1-4795-a8ee-b09cdb5b850d - feeLevel: MEDIUM + Destination: + oneOf: + - $ref: "#/components/schemas/Account" + - $ref: "#/components/schemas/OneTimeAddressAccount" + TransferOperationConfigParams: properties: - id: - description: id of position to withdraw rewards from - example: b70701f4-d7b1-4795-a8ee-b09cdb5b850f - type: string - fee: - description: "Represents the fee for a transaction, which can be specified\ - \ as a percentage value. Only one of fee/feeLevel is required." - example: "7" + amount: type: string - feeLevel: - $ref: "#/components/schemas/FeeLevel" - txNote: - description: The note to associate with the transactions. - example: "claim rewards request id b70701f4-d7b1-4795-a8ee-b09cdb5b850d\ - \ #MATIC" + assetId: type: string + source: + $ref: "#/components/schemas/Account" + destination: + $ref: "#/components/schemas/Destination" required: - - id + - destination type: object - SplitRequest: - example: - id: b70701f4-d7b1-4795-a8ee-b09cdb5b850d - amount: "20" - txNote: "split 20 SOL out of 100 SOL, created on 02.04.23" - feeLevel: MEDIUM + CreateTransferConfigOperationRequest: properties: - id: - description: id of position to split - example: b70701f4-d7b1-4795-a8ee-b09cdb5b850f + type: + $ref: "#/components/schemas/TransferOperationType" + params: + $ref: "#/components/schemas/TransferOperationConfigParams" + required: + - params + - type + type: object + DisbursementOperationType: + enum: + - DISBURSEMENT + type: string + DisbursementAmountInstruction: + properties: + payeeAccount: + $ref: "#/components/schemas/Destination" + assetId: type: string amount: - description: Amount of tokens to be transferred to the new stake account. - example: "20" type: string - fee: - description: "Represents the fee for a transaction, which can be specified\ - \ as a percentage value. Only one of fee/feeLevel is required." - example: "7" + required: + - amount + - assetId + - payeeAccount + type: object + DisbursementPercentageInstruction: + properties: + payeeAccount: + $ref: "#/components/schemas/Destination" + assetId: type: string - feeLevel: - $ref: "#/components/schemas/FeeLevel" - txNote: - description: The note to associate with the transactions. - example: "split 20 SOL out of 100 SOL, created on 02.04.23" + percentage: type: string required: - - amount - - id + - assetId + - payeeAccount + - percentage + type: object + DisbursementInstruction: + oneOf: + - $ref: "#/components/schemas/DisbursementAmountInstruction" + - $ref: "#/components/schemas/DisbursementPercentageInstruction" + DisbursementOperationConfigParams: + properties: + paymentAccount: + $ref: "#/components/schemas/Account" + instructionSet: + items: + $ref: "#/components/schemas/DisbursementInstruction" + type: array + required: + - instructionSet type: object - SplitResponse: - example: - id: afedfd2e4-e3c9-4b70-90d6-eb0f74bfd4sd8 + CreateDisbursementConfigOperationRequest: properties: - id: - description: The unique identifier of the new staking position - example: b70701f4-d7b1-4795-a8ee-b09cdb5b850d - type: string + type: + $ref: "#/components/schemas/DisbursementOperationType" + params: + $ref: "#/components/schemas/DisbursementOperationConfigParams" required: - - id + - params + - type type: object - MergeStakeAccountsRequest: - example: - sourceId: b70701f4-d7b1-4795-a8ee-b09cdb5b850f - txNote: "split 20 SOL out of 100 SOL, created on 02.04.23" - fee: "7" - feeLevel: MEDIUM - destinationId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - properties: - sourceId: - description: Id of the source position to merge from - example: b70701f4-d7b1-4795-a8ee-b09cdb5b850f - format: uuid - type: string - destinationId: - description: Id of the destination position to merge into - format: uuid - type: string - fee: - description: "Represents the fee for a transaction, which can be specified\ - \ as a percentage value. Only one of fee/feeLevel is required." - example: "7" + CreateConfigOperationRequest: + oneOf: + - $ref: "#/components/schemas/CreateConversionConfigOperationRequest" + - $ref: "#/components/schemas/CreateTransferConfigOperationRequest" + - $ref: "#/components/schemas/CreateDisbursementConfigOperationRequest" + CorrelationData: + oneOf: + - additionalProperties: type: string - feeLevel: - $ref: "#/components/schemas/FeeLevel" - txNote: - description: The note to associate with the transactions. - example: "split 20 SOL out of 100 SOL, created on 02.04.23" + type: object + - type: string + x-internal: true + CreateWorkflowConfigurationRequest: + properties: + configName: type: string + preScreening: + $ref: "#/components/schemas/PreScreening" + configOperations: + items: + $ref: "#/components/schemas/CreateConfigOperationRequest" + type: array + externalCorrelationData: + $ref: "#/components/schemas/CorrelationData" required: - - destinationId - - sourceId + - configName + - configOperations type: object - MergeStakeAccountsResponse: - example: - id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + x-internal: true + WorkflowConfigStatus: + enum: + - PENDING + - VALIDATION_IN_PROGRESS + - VALIDATION_FAILED + - READY_FOR_EXECUTION + type: string + ConfigOperationStatus: + enum: + - PENDING + - VALIDATION_IN_PROGRESS + - READY_FOR_EXECUTION + - VALIDATION_FAILED + type: string + ConversionValidationFailure: properties: - id: - description: The unique identifier of the merge position (the id of the - destination position) - format: uuid + reason: + enum: + - ACCOUNT_NOT_FOUND + - ACCOUNT_TYPE_NOT_SUPPORTED + - INSUFFICIENT_BALANCE + - ASSET_NOT_FOUND + - ASSETS_CONTINUITY_MISMATCH + - EXCHANGE_BASKETS_MISMATCH + - ACCOUNTS_CONTINUITY_MISMATCH + - ONE_TIME_ADDRESS_CONTINUITY_NOT_ALLOWED + - EQUAL_ACCOUNTS_NOT_ALLOWED + - EQUAL_ASSETS_NOT_ALLOWED + - INVALID_AMOUNT + - UNMANAGED_WALLET_AS_SOURCE_NOT_ALLOWED + - MANAGED_OPERATION_PARAMS_INVALID_SCHEMA + - ACCOUNT_IS_NOT_EXCHANGE + - UNSUPPORTED_TRADING_METHOD + - ASSETS_CAN_NOT_CONVERTED type: string + data: + additionalProperties: {} + type: object required: - - id + - reason type: object - RelatedTransaction: + ConversionConfigOperation: properties: - txId: - description: The transaction ID - example: b70601f4-d7b1-4795-a8ee-b09cdb4r850d + operationId: type: string - completed: - description: Is the transaction completed or not - example: true - type: boolean + type: + $ref: "#/components/schemas/ConversionOperationType" + params: + $ref: "#/components/schemas/ConversionOperationConfigParams" + status: + $ref: "#/components/schemas/ConfigOperationStatus" + validationFailure: + $ref: "#/components/schemas/ConversionValidationFailure" required: - - completed - - txId + - operationId + - params + - status + - type type: object - SolanaBlockchainData: - description: "Additional fields per blockchain - can be empty or missing if\ - \ not initialized or no additional info exists. The type depends on the chainDescriptor\ - \ value. For Solana (SOL), stake account address. For Ethereum (ETH), an empty\ - \ object is returned as no specific data is available." - example: - stakeAccountAddress: 3Ru67FyzMTcdENmmRL4Eve4dtPd6AdpuypR21q5EQCdq + TransferValidationFailure: properties: - stakeAccountAddress: - description: The stake account address matching the stakeAccountId. - example: 3Ru67FyzMTcdENmmRL4Eve4dtPd6AdpuypR21q5EQCdq + reason: + enum: + - ACCOUNT_NOT_FOUND + - ACCOUNT_TYPE_NOT_SUPPORTED + - INSUFFICIENT_BALANCE + - ASSET_NOT_FOUND + - ASSETS_CONTINUITY_MISMATCH + - EXCHANGE_BASKETS_MISMATCH + - ACCOUNTS_CONTINUITY_MISMATCH + - ONE_TIME_ADDRESS_CONTINUITY_NOT_ALLOWED + - EQUAL_ACCOUNTS_NOT_ALLOWED + - EQUAL_ASSETS_NOT_ALLOWED + - INVALID_AMOUNT + - UNMANAGED_WALLET_AS_SOURCE_NOT_ALLOWED + - MANAGED_OPERATION_PARAMS_INVALID_SCHEMA type: string - stakeAccountDerivationChangeValue: - description: The value of the change level in the BIP44 path which was used - to derive the stake account address - example: 7 - type: number + data: + additionalProperties: true + type: object required: - - stakeAccountAddress - - stakeAccountDerivationChangeValue + - reason type: object - RelatedRequest: + TransferConfigOperation: properties: - status: - description: The status of the request - enum: - - deactivating - example: deactivating - type: string - inProgress: - description: Indicates whether there is an ongoing action for this position - related to this request - example: false - type: boolean - amount: - description: Amount of tokens to Unstake - example: "0.05" - type: string - txId: - description: The transaction ID of the ongoing request - example: c80601f4-d7b1-4795-a8ee-b09cdb5b450c + operationId: type: string + type: + $ref: "#/components/schemas/TransferOperationType" + params: + $ref: "#/components/schemas/TransferOperationConfigParams" + status: + $ref: "#/components/schemas/ConfigOperationStatus" + validationFailure: + $ref: "#/components/schemas/TransferValidationFailure" required: - - amount - - inProgress + - operationId + - params - status + - type type: object - Delegation: - example: - availableActions: - - unstake - blockchainPositionInfo: - stakeAccountAddress: 3Ru67FyzMTcdENmmRL4Eve4dtPd6AdpuypR21q5EQCdq - chainDescriptor: SOL - amount: "0.05" - relatedRequests: - - status: deactivating - inProgress: false - amount: "0.05" - txId: c80601f4-d7b1-4795-a8ee-b09cdb5b450c - inProgress: true - inProgressTxId: c80601f4-d7b1-4795-a8ee-b09cdb5b450c - validatorAddress: FwR3PbjS5iyqzLiLugrBqKSa5EKZ4vK9SKs7eQXtT59f - vaultAccountId: "2" - dateUpdated: 2023-07-13T15:55:34.256Z - rewardsAmount: "0.000856038" - dateCreated: 2023-07-13T15:55:34.256Z - providerId: kiln - validatorName: FwR3P......tT59f - id: b70701f4-d7b1-4795-a8ee-b09cdb5b850a - relatedTransactions: - - txId: b70601f4-d7b1-4795-a8ee-b09cdb4r850d - completed: true - - txId: c80601f4-d7b1-4795-a8ee-b09cdb5b450c - completed: false - providerName: Kiln - status: active + DisbursementValidationFailure: properties: - id: - description: The unique identifier of the staking position - example: b70701f4-d7b1-4795-a8ee-b09cdb5b850a - type: string - vaultAccountId: - description: The source vault account to stake from - example: "2" - type: string - validatorName: - description: The destination validator address name - example: FwR3P......tT59f - type: string - providerName: - description: The destination validator provider name - example: Kiln - type: string - chainDescriptor: - description: The protocol identifier (e.g. "ETH"/ "SOL") to use - example: SOL - type: string - amount: - description: "Amount of tokens to stake, measured in the staked asset unit." - example: "0.05" - type: string - rewardsAmount: - description: "The amount staked in the position, measured in the staked\ - \ asset unit." - example: "0.000856038" - type: string - dateCreated: - description: When was the request made (ISO Date). - example: 2023-07-13T15:55:34.256Z - format: date-time + reason: + enum: + - ACCOUNT_NOT_FOUND + - ACCOUNT_TYPE_NOT_SUPPORTED + - INSUFFICIENT_BALANCE + - ASSET_NOT_FOUND + - ASSETS_CONTINUITY_MISMATCH + - EXCHANGE_BASKETS_MISMATCH + - ACCOUNTS_CONTINUITY_MISMATCH + - ONE_TIME_ADDRESS_CONTINUITY_NOT_ALLOWED + - EQUAL_ACCOUNTS_NOT_ALLOWED + - EQUAL_ASSETS_NOT_ALLOWED + - INVALID_AMOUNT + - UNMANAGED_WALLET_AS_SOURCE_NOT_ALLOWED + - MANAGED_OPERATION_PARAMS_INVALID_SCHEMA + - INSTRUCTIONS_EXCEED_HUNDRED_PERCENT + - INSTRUCTIONS_ARRAY_EMPTY type: string - dateUpdated: - description: When has the position last changed (ISO Date). - example: 2023-07-13T15:55:34.256Z - format: date-time + data: + additionalProperties: {} + type: object + required: + - reason + type: object + DisbursementConfigOperation: + properties: + operationId: type: string + type: + $ref: "#/components/schemas/DisbursementOperationType" + params: + $ref: "#/components/schemas/DisbursementOperationConfigParams" status: - description: The current status. - example: active - type: string - relatedTransactions: - description: An array of transaction objects related to this position. Each - object includes a 'txId' representing the transaction ID and a 'completed' - boolean indicating if the transaction was completed. - example: - - txId: b70601f4-d7b1-4795-a8ee-b09cdb4r850d - completed: true - - txId: c80601f4-d7b1-4795-a8ee-b09cdb5b450c - completed: false - items: - $ref: "#/components/schemas/RelatedTransaction" - type: array - validatorAddress: - description: The destination address of the staking transaction. - example: FwR3PbjS5iyqzLiLugrBqKSa5EKZ4vK9SKs7eQXtT59f + $ref: "#/components/schemas/ConfigOperationStatus" + validationFailure: + $ref: "#/components/schemas/DisbursementValidationFailure" + required: + - operationId + - params + - status + - type + type: object + ConfigOperation: + oneOf: + - $ref: "#/components/schemas/ConversionConfigOperation" + - $ref: "#/components/schemas/TransferConfigOperation" + - $ref: "#/components/schemas/DisbursementConfigOperation" + WorkflowConfiguration: + properties: + configId: type: string - providerId: - $ref: "#/components/schemas/StakingProvider" - availableActions: - description: "An array of available actions that can be performed. for example,\ - \ actions like \"unstake\" or \"withdraw\"." - example: - - unstake - items: - type: string - type: array - inProgress: - description: "Indicates whether there is an ongoing action for this position\ - \ (true if ongoing, false if not)." - example: true - type: boolean - inProgressTxId: - description: The transaction ID of the ongoing request - example: c80601f4-d7b1-4795-a8ee-b09cdb5b450c + configName: type: string - blockchainPositionInfo: - $ref: "#/components/schemas/SolanaBlockchainData" - relatedRequests: - description: "An array of partial unstake requests for this position, relevant\ - \ only for the Lido provider. Each object includes the status of the unstake\ - \ request, a boolean indicating whether the action is in progress, the\ - \ amount of tokens to unstake, and the transaction ID of the request.\ - \ With Lido, a position may have multiple partial unstake requests in\ - \ different states. This field is optional and not applicable for other\ - \ providers." - example: - - status: deactivating - inProgress: false - amount: "0.05" - txId: c80601f4-d7b1-4795-a8ee-b09cdb5b450c + preScreening: + $ref: "#/components/schemas/PreScreening" + status: + $ref: "#/components/schemas/WorkflowConfigStatus" + createdAt: + type: number + configOperations: items: - $ref: "#/components/schemas/RelatedRequest" + $ref: "#/components/schemas/ConfigOperation" type: array + externalCorrelationData: + $ref: "#/components/schemas/CorrelationData" required: - - amount - - availableActions - - blockchainPositionInfo - - chainDescriptor - - dateCreated - - dateUpdated - - id - - inProgress - - providerId - - providerName - - relatedTransactions - - rewardsAmount + - configId + - configName + - configOperations + - createdAt - status - - validatorAddress - - validatorName - - vaultAccountId type: object - StakingGetAllDelegationsResponse: - items: - $ref: "#/components/schemas/Delegation" - type: array - AmountAndChainDescriptor: - example: - chainDescriptor: ETH - amount: "32.007149606" + x-internal: true + WorkflowConfigurationId: properties: - chainDescriptor: - description: The protocol identifier (e.g. "ETH"/"SOL") for summary - example: ETH - type: string - amount: - description: Cryptocurrency quantity - example: "32.007149606" + configId: type: string required: - - amount - - chainDescriptor + - configId type: object - DelegationSummary: - example: - rewardsAmount: - - chainDescriptor: ETH - amount: "32.007149606" - - chainDescriptor: ETH - amount: "32.007149606" - inactive: - - chainDescriptor: ETH - amount: "32.007149606" - - chainDescriptor: ETH - amount: "32.007149606" - active: - - chainDescriptor: ETH - amount: "32.007149606" - - chainDescriptor: ETH - amount: "32.007149606" - totalStaked: - - chainDescriptor: ETH - amount: "32.007149606" - - chainDescriptor: ETH - amount: "32.007149606" + ConversionOperationExecutionParams: properties: - active: - description: "An array of objects containing chain descriptors and associated\ - \ amounts, representing active positions." - items: - $ref: "#/components/schemas/AmountAndChainDescriptor" - type: array - inactive: - description: "An array of objects containing chain descriptors and associated\ - \ amounts, representing inactive positions." - items: - $ref: "#/components/schemas/AmountAndChainDescriptor" - type: array - rewardsAmount: - description: "An array of objects containing chain descriptors and associated\ - \ amounts, representing rewards positions." - items: - $ref: "#/components/schemas/AmountAndChainDescriptor" - type: array - totalStaked: - description: "An array of objects with chain descriptors and total staked\ - \ amounts, representing the combined staked totals of active and inactive\ - \ positions." - items: - $ref: "#/components/schemas/AmountAndChainDescriptor" - type: array + configOperationId: + type: string + executionParams: + $ref: "#/components/schemas/ConversionOperationExecutionParams_executionParams" required: - - active - - inactive - - rewardsAmount - - totalStaked - type: object - StakingGetSummaryByVaultResponse: - additionalProperties: - $ref: "#/components/schemas/DelegationSummary" + - configOperationId type: object - Validator: + TransferOperationExecutionParams: properties: - chainDescriptor: - description: The protocol identifier (e.g. "ETH"/"SOL") of the validator - example: SOL + configOperationId: type: string - feePercent: - description: The service fee as a percentage out of the earned rewards - example: 5 - type: number - isPrivate: - description: "Is the validator private, i.e created by the user" - example: true - type: boolean + executionParams: + $ref: "#/components/schemas/TransferOperationExecutionParams_executionParams" required: - - chainDescriptor - - feePercent + - configOperationId type: object - Provider: - example: - termsOfServiceUrl: https://www.kiln.fi/terms-and-conditions-for-fireblocks-customers - validators: - - chainDescriptor: ETH - feePercent: 5 - - chainDescriptor: SOL - feePercent: 7 - id: kiln - iconUrl: https://static.fireblocks.io/staking/validators/kiln_console.png - isPrivate: true - providerName: Kiln - isTermsOfServiceApproved: true - isLiquidStaking: true + DisbursementOperationExecutionParams: properties: - id: - description: The ID of the provider - example: kiln + configOperationId: type: string - providerName: - description: Name of the provider - example: Kiln + executionParams: + $ref: "#/components/schemas/DisbursementOperationExecutionParams_executionParams" + required: + - configOperationId + type: object + CreateWorkflowExecutionRequest: + properties: + configId: type: string - validators: - description: An array of objects that includes chain descriptors and the - corresponding fee percentages for validators supported by the provider - example: - - chainDescriptor: ETH - feePercent: 5 - - chainDescriptor: SOL - feePercent: 7 + preScreening: + $ref: "#/components/schemas/PreScreening" + params: items: - $ref: "#/components/schemas/Validator" + $ref: "#/components/schemas/CreateWorkflowExecutionRequest_params_inner" type: array - iconUrl: - description: URL to the validator's icon - example: https://static.fireblocks.io/staking/validators/kiln_console.png - type: string - termsOfServiceUrl: - description: URL to the terms of service - example: https://www.kiln.fi/terms-and-conditions-for-fireblocks-customers + externalCorrelationData: + $ref: "#/components/schemas/CorrelationData" + required: + - configId + - params + type: object + x-internal: true + ConfigConversionOperationSnapshot: + properties: + operationId: type: string - isTermsOfServiceApproved: - description: Indicates whether the terms of service are approved - example: true - type: boolean - isPrivate: - description: "Is the provider private, i.e created by the user" - example: true - type: boolean - isLiquidStaking: - description: Is the provider a liquid staking provider - example: true - type: boolean + type: + $ref: "#/components/schemas/ConversionOperationType" + params: + $ref: "#/components/schemas/ConversionOperationConfigParams" + required: + - operationId + - params + - type + type: object + ConfigTransferOperationSnapshot: + properties: + operationId: + type: string + type: + $ref: "#/components/schemas/TransferOperationType" + params: + $ref: "#/components/schemas/TransferOperationConfigParams" required: - - id - - isLiquidStaking - - isTermsOfServiceApproved - - providerName - - validators + - operationId + - params + - type type: object - StakingGetProvidersResponse: - items: - $ref: "#/components/schemas/Provider" - type: array - BaseProvider: - example: - id: prov_7b4e2d9f1c8a5e3b - name: Global Exchange Partners - logo: https://example.com/logos/global-exchange-partners.png - accountBased: false + ConfigDisbursementOperationSnapshot: properties: - id: - description: Unique identifier for the provider + operationId: type: string - name: - description: Display name of the provider + type: + $ref: "#/components/schemas/DisbursementOperationType" + params: + $ref: "#/components/schemas/DisbursementOperationConfigParams" + required: + - operationId + - params + - type + type: object + ConfigOperationSnapshot: + oneOf: + - $ref: "#/components/schemas/ConfigConversionOperationSnapshot" + - $ref: "#/components/schemas/ConfigTransferOperationSnapshot" + - $ref: "#/components/schemas/ConfigDisbursementOperationSnapshot" + WorkflowConfigurationSnapshot: + properties: + configId: type: string - logo: - description: URL to the logo image of the provider + configName: type: string - accountBased: - description: Indicates whether the provider access model is through accounts - or directly - type: boolean + createdAt: + type: number + configOperations: + items: + $ref: "#/components/schemas/ConfigOperationSnapshot" + type: array + externalCorrelationData: + $ref: "#/components/schemas/CorrelationData" required: - - accountBased - - id - - name + - configId + - configName + - configOperations + - createdAt type: object - Capability: + x-internal: true + ExecutionOperationStatus: + enum: + - PENDING + - VALIDATION_IN_PROGRESS + - VALIDATION_FAILED + - VALIDATION_COMPLETED + - PREVIEW_REQUESTED + - PREVIEW_IN_PROGRESS + - PREVIEW_FAILED + - READY_FOR_LAUNCH + - EXECUTION_REQUESTED + - EXECUTION_IN_PROGRESS + - EXECUTION_COMPLETED + - EXECUTION_FAILED + type: string + ScreeningOperationType: enum: - - WITHDRAWALS - - DEPOSITS - - TRADING - example: TRADING + - SCREENING type: string - Manifest: - example: - assetTypes: - - DIGITAL - - FIAT - capabilities: - - SPOT_TRADING - - LIMIT_ORDERS + ScreeningValidationFailure: properties: - assetTypes: - items: - enum: - - DIGITAL - - FIAT - type: string - type: array - capabilities: - items: - $ref: "#/components/schemas/Capability" - type: array + reason: + enum: + - SCREENING_DISABLED_IN_TENANT + type: string + data: + additionalProperties: {} + type: object required: - - assetTypes - - capabilities + - reason type: object - AccountBase: - example: - id: acc_9f4e2d8b1c6a5e73 - name: Main Trading Account + ScreeningVerdict: properties: - id: - description: The ID of the account + verdict: + enum: + - PASSED + - PASSED_WITH_ALERT + - REJECTED + - FAILED + - BYPASSED type: string - name: - description: The name of the account + executionOperationId: + type: string + account: + $ref: "#/components/schemas/Destination" + assetId: + type: string + amount: type: string + matchedRule: + $ref: "#/components/schemas/ScreeningVerdict_matchedRule" required: - - id - - name + - account + - amount + - assetId + - executionOperationId + - verdict type: object - AccountBasedAccessProvider: - allOf: - - $ref: "#/components/schemas/BaseProvider" - - properties: - manifest: - $ref: "#/components/schemas/Manifest" - connected: - description: Whether the provider is currently connected - type: boolean - accounts: - items: - $ref: "#/components/schemas/AccountBase" - type: array - required: - - accountBased - - connected - - manifest - type: object - example: - id: prov_9a2c4e8f7b1d3a6e - name: Premium Trading Co - logo: https://example.com/logos/premium-trading-co.png - accountBased: true - manifest: - assetTypes: - - DIGITAL - - FIAT - capabilities: - - SPOT_TRADING - connected: true - accounts: - - id: acc_5f8e2d9c1a7b4e36 - name: Trading Account 1 - description: Primary trading account - DirectAccessProvider: - allOf: - - $ref: "#/components/schemas/BaseProvider" - - properties: - approved: - description: Whether the provider was approved for use - type: boolean - hasTermsOfService: - description: Whether the provider has terms of service - type: boolean - termsOfServiceUrl: - description: URL to the terms of service document - type: string - required: - - accountBased - - hasTermsOfService - type: object - example: - id: prov_2f8e1d9b4c7a5e3f - name: DirectTrade Solutions - logo: https://example.com/logos/directtrade-solutions.png - accountBased: false - approved: true - hasTermsOfService: true - termsOfServiceUrl: https://directtrade.example.com/terms - TradingProvider: - oneOf: - - $ref: "#/components/schemas/AccountBasedAccessProvider" - - $ref: "#/components/schemas/DirectAccessProvider" - ProvidersListResponse: - example: - data: - - id: bridge-provider-001 - name: Bridge Provider - logo: https://example.com/logos/bridge.png - accountBased: true - manifest: - assetTypes: - - DIGITAL - - FIAT - capabilities: - - TRADING - - WITHDRAWALS - connected: true - accounts: - - id: acc_9f4e2d8b1c6a5e73 - name: Main Trading Account - - id: uniswap-v3-provider - name: Uniswap V3 - logo: https://example.com/logos/uniswap.png - accountBased: false - approved: true - hasTermsOfService: true - termsOfServiceUrl: https://uniswap.org/terms - total: 2 - next: cursor_abc123def456 + ScreeningOperationExecutionOutput: properties: - data: - description: List of available providers + verdicts: items: - $ref: "#/components/schemas/TradingProvider" + $ref: "#/components/schemas/ScreeningVerdict" type: array - total: - description: Total number of providers matching the query. - type: integer - next: - description: "A cursor for the next page of results, if available." + required: + - verdicts + type: object + ScreeningOperationFailure: + properties: + reason: + enum: + - AML_PROCESS_FAILED + - SCREENING_REJECTED type: string + data: + $ref: "#/components/schemas/ScreeningOperationExecutionOutput" required: - - data - - total + - reason type: object - ErrorCodes: - enum: - - INVALID_TOKEN - - MISSING_PARAMETER - - INVALID_PARAMETER - - RESOURCE_NOT_FOUND - - INVALID_TIME_RANGE - - UNAUTHORIZED - - ACCOUNT_NOT_ACTIVE - - UNMANAGED_WALLET_NOT_APPROVED - example: INVALID_PARAMETER - type: string - TradingErrorResponse: - example: - error: - type: VALIDATION - message: "Invalid base amount: must be greater than 0" - errorCode: INVALID_AMOUNT + ScreeningOperationExecution: properties: - error: - $ref: "#/components/schemas/TradingErrorResponse_error" + output: + $ref: "#/components/schemas/ScreeningOperationExecutionOutput" + startedAt: + type: number + finishedAt: + type: number + failure: + $ref: "#/components/schemas/ScreeningOperationFailure" required: - - error + - startedAt type: object - AccountProviderID: - example: - providerId: prov_8c3f1a4b2d6e9f7c - accountId: acc_5e9a2d1c4b7f3e8a + ExecutionScreeningOperation: properties: - providerId: - description: The ID of the provider associated with the account. - type: string - accountId: - description: The ID of the account associated with the provider. + operationId: type: string + status: + $ref: "#/components/schemas/ExecutionOperationStatus" + operationType: + $ref: "#/components/schemas/ScreeningOperationType" + validationFailure: + $ref: "#/components/schemas/ScreeningValidationFailure" + execution: + $ref: "#/components/schemas/ScreeningOperationExecution" required: - - accountId - - providerId + - operationId + - operationType + - status type: object - ProviderID: - example: - providerId: prov_8c3f1a4b2d6e9f7c + AssetAmount: properties: - providerId: - description: The ID of the provider associated with the account. + amount: + type: string + assetId: type: string required: - - providerId + - amount + - assetId type: object - TransferRail: - description: "Transfer rail: \n* **BLOCKCHAIN** - Transfer over the public blockchain\n\ - * **INTERNAL** - Internal transfer within the same account (e.g. sub-accounts\ - \ or same api key)\n* **PEER** - Peer transfer within the same provider network\n\ - * **SWIFT** - International wire transfer\n* **IBAN** - International Bank\ - \ Account Number transfer\n* **US_WIRE** - Domestic wire transfer within the\ - \ United States (e.g. FedWire)\n* **ACH** - Automated Clearing House transfer,\ - \ typically takes longer but not as expensive as wire transfers\n* **SEPA**\ - \ - Euro transfers within the SEPA zone\n* **SPEI** - Mexican interbank electronic\ - \ payment system\n* **PIX** - Brazilian instant payment system\n* **LOCAL_BANK_TRANSFER_AFRICA**\ - \ - Local bank transfers within Africa\n* **MOBILE_MONEY** - Mobile money\ - \ transfers (e.g. M-Pesa)\n" - enum: - - BLOCKCHAIN - - INTERNAL - - PEER - - SWIFT - - IBAN - - US_WIRE - - ACH - - SEPA - - SPEI - - PIX - - LOCAL_BANK_TRANSFER_AFRICA - - MOBILE_MONEY - example: BLOCKCHAIN - type: string - PlatformAccount: - example: - type: VAULT_ACCOUNT - accountId: vault_acc_5e9a2d1c4b7f3e8a + ConversionOperationPreviewOutput: properties: - type: - enum: - - VAULT_ACCOUNT - - CONNECTED_ACCOUNT - - FIAT_ACCOUNT - type: string - accountId: + amount: + $ref: "#/components/schemas/AssetAmount" + fee: + $ref: "#/components/schemas/AssetAmount" + conversionRate: type: string + timeSeconds: + type: number required: - - accountId - - type + - amount + - conversionRate + - fee + - timeSeconds type: object - ExternalAccount: - example: - type: EXTERNAL + ConversionOperationFailure: properties: - type: + reason: enum: - - EXTERNAL + - INVALID_AMOUNT + - SLIPPAGE_EXCEEDED + - AMOUNT_TOO_SMALL + - INSUFFICIENT_FUNDS type: string + data: + additionalProperties: {} + type: object required: - - type + - reason type: object - SettlementSourceAccount: - discriminator: - mapping: - VAULT_ACCOUNT: "#/components/schemas/PlatformAccount" - CONNECTED_ACCOUNT: "#/components/schemas/PlatformAccount" - FIAT_ACCOUNT: "#/components/schemas/PlatformAccount" - EXTERNAL: "#/components/schemas/ExternalAccount" - propertyName: type - oneOf: - - $ref: "#/components/schemas/PlatformAccount" - - $ref: "#/components/schemas/ExternalAccount" - PeerType: - enum: - - VAULT_ACCOUNT - - EXCHANGE_ACCOUNT - - INTERNAL_WALLET - - EXTERNAL_WALLET - - FIAT_ACCOUNT - example: VAULT_ACCOUNT - type: string - InternalReference: - example: - type: VAULT_ACCOUNT - accountId: vault_acc_9f3e2d1c4b8a7e5f + ConversionOperationPreview: + properties: + input: + $ref: "#/components/schemas/ConversionOperationConfigParams" + output: + $ref: "#/components/schemas/ConversionOperationPreviewOutput" + failure: + $ref: "#/components/schemas/ConversionOperationFailure" + required: + - input + type: object + ConversionOperationExecutionOutput: properties: - type: - $ref: "#/components/schemas/PeerType" - accountId: + amount: + $ref: "#/components/schemas/AssetAmount" + fee: + $ref: "#/components/schemas/AssetAmount" + conversionRate: type: string required: - - accountId - - type + - amount + - conversionRate + - fee type: object - OneTimeAddressReference: - example: - type: ONE_TIME_ADDRESS - address: 1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa - tag: destination-memo-123 + ConversionOperationExecution: properties: - type: - enum: - - ONE_TIME_ADDRESS - type: string - address: - type: string - tag: - type: string + input: + $ref: "#/components/schemas/ConversionOperationConfigParams" + output: + $ref: "#/components/schemas/ConversionOperationExecutionOutput" + startedAt: + type: number + finishedAt: + type: number + failure: + $ref: "#/components/schemas/ConversionOperationFailure" required: - - address - - type + - input + - startedAt type: object - AccountReference: - discriminator: - mapping: - VAULT_ACCOUNT: "#/components/schemas/InternalReference" - EXCHANGE_ACCOUNT: "#/components/schemas/InternalReference" - INTERNAL_WALLET: "#/components/schemas/InternalReference" - EXTERNAL_WALLET: "#/components/schemas/InternalReference" - FIAT_ACCOUNT: "#/components/schemas/InternalReference" - ONE_TIME_ADDRESS: "#/components/schemas/OneTimeAddressReference" - propertyName: type - oneOf: - - $ref: "#/components/schemas/InternalReference" - - $ref: "#/components/schemas/OneTimeAddressReference" - DVPSettlement: - description: Source/Destination accounts for the quote (must have for defi quotes) - example: - type: DVP - sourceAccount: - type: VAULT_ACCOUNT - id: vault_acc_3f7e1d9b2c5a8e4f - destinationAccount: - type: VAULT_ACCOUNT - id: vault_acc_7b2e5d8f1c4a9e3b + ExecutionConversionOperation: properties: - type: - enum: - - DVP + operationId: type: string - sourceAccount: - $ref: "#/components/schemas/SettlementSourceAccount" - destinationAccount: - $ref: "#/components/schemas/AccountReference" + status: + $ref: "#/components/schemas/ExecutionOperationStatus" + validationFailure: + $ref: "#/components/schemas/ConversionValidationFailure" + operationType: + $ref: "#/components/schemas/ConversionOperationType" + preview: + $ref: "#/components/schemas/ConversionOperationPreview" + execution: + $ref: "#/components/schemas/ConversionOperationExecution" required: - - destinationAccount - - sourceAccount - - type + - operationId + - operationType + - status type: object - CreateQuote: - example: - scope: - - providerId: prov_8c3f1a4b2d6e9f7c - accountId: acc_5e9a2d1c4b7f3e8a - baseAssetId: USD - baseAssetRail: FIAT_RAILS - quoteAssetId: BTC - quoteAssetRail: BLOCKCHAIN_RAILS - baseAmount: "1000.00" - side: BUY - slippageBps: 100 - settlement: - type: DVP - sourceAccount: - type: VAULT_ACCOUNT - id: vault_acc_3f7e1d9b2c5a8e4f - destinationAccount: - type: VAULT_ACCOUNT - id: vault_acc_7b2e5d8f1c4a9e3b + TransferOperationPreviewOutput: properties: - scope: - items: - $ref: "#/components/schemas/CreateQuote_scope_inner" - type: array - baseAssetId: - type: string - baseAssetRail: - $ref: "#/components/schemas/TransferRail" - quoteAssetId: - type: string - quoteAssetRail: - $ref: "#/components/schemas/TransferRail" - baseAmount: - description: The amount to convert from - example: "100.00" - pattern: ^\d+(\.\d+)?$ - type: string - slippageBps: - default: 50 - description: Slippage tolerance in basis points (bps) for defi quotes - - 1 is 0.01% and 10000 is 100% - maximum: 10000 - minimum: 1 + amount: + $ref: "#/components/schemas/AssetAmount" + fee: + $ref: "#/components/schemas/AssetAmount" + isSignRequired: + type: boolean + timeSeconds: type: number - settlement: - $ref: "#/components/schemas/DVPSettlement" - side: - description: Side of the order - enum: - - BUY - - SELL - type: string required: - - baseAmount - - baseAssetId - - quoteAssetId - - scope - - side + - amount + - fee + - isSignRequired + - timeSeconds type: object - AccountAccess: - example: - type: PROVIDER_ACCOUNT - providerId: bridge-provider-001 - accountId: acc_9f4e2d8b1c6a5e73 + TransferOperationFailure: properties: - type: - description: Indicates this uses account-based access + reason: enum: - - PROVIDER_ACCOUNT - type: string - providerId: - description: The ID of the provider - type: string - accountId: - description: The ID of the account + - INVALID_AMOUNT + - SUBMISSION_FAILED + - TRANSACTION_FAILED type: string + data: + $ref: "#/components/schemas/TransferOperationFailure_data" required: - - accountId - - type + - reason type: object - DirectAccess: - example: - type: PROVIDER - providerId: uniswap-v3-provider + TransferOperationPreview: properties: - type: - description: Indicates this uses direct provider access - enum: - - PROVIDER - type: string - providerId: - description: The ID of the provider - type: string + input: + $ref: "#/components/schemas/TransferOperationConfigParams" + output: + $ref: "#/components/schemas/TransferOperationPreviewOutput" + failure: + $ref: "#/components/schemas/TransferOperationFailure" required: - - providerId - - type + - input type: object - AccessType: - discriminator: - mapping: - PROVIDER_ACCOUNT: "#/components/schemas/AccountAccess" - PROVIDER: "#/components/schemas/DirectAccess" - propertyName: type - oneOf: - - $ref: "#/components/schemas/AccountAccess" - - $ref: "#/components/schemas/DirectAccess" - ExecutionStepType: - enum: - - APPROVE - - PERMIT - - CONTRACT_CALL - - EXECUTE - - SETTLEMENT - example: EXECUTE - type: string - FixedFee: - allOf: - - properties: - amountType: - enum: - - FIXED - type: string - amount: - description: The fixed amount of the fee - example: "0.01" - pattern: ^\d+(\.\d+)?$ - type: string - required: - - amount - - amountType - type: object - example: - amountType: FIXED - amount: "0.01" - BpsFee: - allOf: - - properties: - amountType: - enum: - - BPS - type: string - amount: - description: "Fee in basis points (1 = 0.01%, 10000 = 100%)" - example: 50 - maximum: 10000 - minimum: 0 - type: number - required: - - amount - - amountType - type: object - example: - amountType: BPS - amount: 50 - Fee: - allOf: - - properties: - feeType: - description: | - The type of fee, such as ORDER, NETWORK, or SPREAD. ORDER - Fee for executing the order. NETWORK - Fee for network transactions. SPREAD - Fee for the difference between buy and sell prices. - enum: - - ORDER - - NETWORK - - SPREAD - type: string - assetId: - description: The asset identifier for the fee. - type: string - amountType: - description: "The type of amount for the fee, either FIXED or BPS (basis\ - \ points)." - enum: - - FIXED - - BPS - type: string - required: - - amountType - - assetId - - feeType - type: object - - discriminator: - mapping: - FIXED: "#/components/schemas/FixedFee" - BPS: "#/components/schemas/BpsFee" - propertyName: amountType - oneOf: - - $ref: "#/components/schemas/FixedFee" - - $ref: "#/components/schemas/BpsFee" - ExecutionStepDetails: - example: - type: MARKET_EXECUTION - fee: - feeType: ORDER - assetId: USD - amountType: FIXED - amount: "2.50" + TransferOperationExecutionOutput: properties: - type: - $ref: "#/components/schemas/ExecutionStepType" + amount: + $ref: "#/components/schemas/AssetAmount" fee: - $ref: "#/components/schemas/Fee" + $ref: "#/components/schemas/AssetAmount" required: - - type + - amount + - fee type: object - CommittedQuoteType: - example: - type: COMMITTED - expiresAt: 2024-01-15T14:30:00.000Z + TransferOperationExecution: properties: - type: - description: Indicates this is a committed quote - enum: - - COMMITTED - type: string - expiresAt: - description: ISO 8601 timestamp of the expiration time of the quote. - format: date-time + input: + $ref: "#/components/schemas/TransferOperationConfigParams" + output: + $ref: "#/components/schemas/TransferOperationExecutionOutput" + txId: type: string + startedAt: + type: number + finishedAt: + type: number + failure: + $ref: "#/components/schemas/TransferOperationFailure" required: - - expiresAt - - type + - input + - startedAt type: object - IndicativeQuoteType: - example: - type: INDICATIVE + ExecutionTransferOperation: properties: - type: - description: Indicates this is an indicative quote - enum: - - INDICATIVE + operationId: type: string + status: + $ref: "#/components/schemas/ExecutionOperationStatus" + validationFailure: + $ref: "#/components/schemas/TransferValidationFailure" + operationType: + $ref: "#/components/schemas/TransferOperationType" + preview: + $ref: "#/components/schemas/TransferOperationPreview" + execution: + $ref: "#/components/schemas/TransferOperationExecution" required: - - type + - operationId + - operationType + - status type: object - Quote: - allOf: - - properties: - via: - $ref: "#/components/schemas/AccessType" - id: - type: string - type: - enum: - - COMMITTED - - INDICATIVE - type: string - quoteAssetId: - type: string - baseAssetId: - type: string - baseAmount: - type: string - quoteAmount: - type: string - priceImpact: - type: number - quoteMinAmount: - type: string - executionSteps: - items: - $ref: "#/components/schemas/ExecutionStepDetails" - type: array - generalFees: - items: - $ref: "#/components/schemas/Fee" - type: array - side: - description: Side of the order - enum: - - BUY - - SELL - type: string - required: - - baseAmount - - baseAssetId - - id - - quoteAmount - - quoteAssetId - - side - - type - - via - type: object - - discriminator: - mapping: - COMMITTED: "#/components/schemas/CommittedQuoteType" - INDICATIVE: "#/components/schemas/IndicativeQuoteType" - propertyName: type - oneOf: - - $ref: "#/components/schemas/CommittedQuoteType" - - $ref: "#/components/schemas/IndicativeQuoteType" - QuotesResponse: - example: - quotes: - - via: - type: PROVIDER_ACCOUNT - providerId: bridge-provider-001 - accountId: acc_9f4e2d8b1c6a5e73 - id: quote_8f2e4d1a9c5b7e3f - type: COMMITTED - baseAssetId: USDC - quoteAssetId: BTC - baseAmount: "1000.00" - quoteAmount: "0.02458" - priceImpact: 0.005 - quoteMinAmount: "0.02450" - expiresAt: 2024-01-15T10:35:00.000Z - executionSteps: - - type: EXECUTE - fee: - feeType: ORDER - assetId: USDC - amountType: FIXED - amount: "2.50" - generalFees: - - feeType: ORDER - assetId: USDC - amountType: FIXED - amount: "2.50" - properties: - quotes: + DisbursementOperationInput: + properties: + amount: + type: string + paymentAccount: + $ref: "#/components/schemas/Account" + instructionSet: items: - $ref: "#/components/schemas/Quote" + $ref: "#/components/schemas/DisbursementInstruction" type: array + required: + - instructionSet + - paymentAccount type: object - OrderStatus: - enum: - - CREATED - - PENDING_USER_ACTION - - PROCESSING - - CANCELED - - COMPLETED - - FAILED - example: PROCESSING - type: string - OrderSummary: - example: - id: ord_5f8e2d9c1a7b4e36 - via: - type: PROVIDER_ACCOUNT - providerId: prov_8c3f1a4b2d6e9f7c - accountId: acc_5e9a2d1c4b7f3e8a - side: BUY - baseAmount: "1000.00" - quoteAmount: "0.02458" - baseAssetId: USD - quoteAssetId: BTC - status: COMPLETED - destination: - type: VAULT_ACCOUNT - accountId: vault_acc_7b2e5d8f1c4a9e3b - source: - type: VAULT_ACCOUNT - accountId: vault_acc_3f7e1d9b2c5a8e4f - createdAt: 2024-01-15T10:30:00.000Z - properties: - id: - type: string - via: - $ref: "#/components/schemas/AccessType" - side: - description: Side of the order - enum: - - BUY - - SELL - type: string - baseAmount: - type: string - quoteAmount: - type: string - baseAssetId: - type: string - quoteAssetId: - type: string - status: - $ref: "#/components/schemas/OrderStatus" - destination: - $ref: "#/components/schemas/AccountReference" - source: - $ref: "#/components/schemas/SettlementSourceAccount" - createdAt: - format: date-time - type: string + DisbursementInstructionOutput: + properties: + amount: + $ref: "#/components/schemas/AssetAmount" + fee: + $ref: "#/components/schemas/AssetAmount" + payeeAccount: + $ref: "#/components/schemas/Destination" required: - - baseAmount - - baseAssetId - - createdAt - - destination - - id - - quoteAssetId - - side - - status - - via + - amount + - fee + - payeeAccount type: object - GetOrdersResponse: - example: - data: - - id: ord_5f8e2d9c1a7b4e36 - via: - type: PROVIDER_ACCOUNT - providerId: prov_8c3f1a4b2d6e9f7c - accountId: acc_5e9a2d1c4b7f3e8a - baseAmount: "1000.00" - quoteAmount: "0.02458" - baseAssetId: USD - quoteAssetId: BTC - status: COMPLETED - destination: - type: VAULT_ACCOUNT - accountId: vault_acc_7b2e5d8f1c4a9e3b - createdAt: 2024-01-15T10:30:00.000Z - total: 1 - next: cursor_next_page_token + DisbursementOperationPreviewOutput: properties: - data: + instructionSet: items: - $ref: "#/components/schemas/OrderSummary" + $ref: "#/components/schemas/DisbursementOperationPreviewOutput_instructionSet_inner" type: array - total: - description: Total number of orders matching the query. - type: integer - next: - description: "A cursor for the next page of results, if available." - type: string required: - - data - - total + - instructionSet type: object - TimeInForce: - description: Time in force for limit orders - enum: - - FOK - example: FOK - type: string - ExecutionRequestBaseDetails: - example: - side: BUY - baseAmount: "1000.00" - baseAssetId: USDC - baseAssetRail: BLOCKCHAIN - quoteAssetId: BTC - quoteAssetRail: BLOCKCHAIN - properties: - side: - default: BUY - description: Side of the order - enum: - - BUY - - SELL - type: string - baseAmount: - description: Amount to convert - type: string - baseAssetId: - description: Source asset identifier - type: string - baseAssetRail: - $ref: "#/components/schemas/TransferRail" - quoteAssetId: - description: Target asset identifier + OperationExecutionFailure: + properties: + reason: type: string - quoteAssetRail: - $ref: "#/components/schemas/TransferRail" + data: + additionalProperties: {} + type: object required: - - baseAmount - - baseAssetId - - quoteAssetId - - side + - reason type: object - LimitExecutionRequestDetails: - allOf: - - properties: - type: - description: Order type for limit orders - enum: - - LIMIT - type: string - timeInForce: - $ref: "#/components/schemas/TimeInForce" - limitPrice: - description: Price for limit orders - type: string - required: - - limitPrice - - timeInForce - - type - type: object - - $ref: "#/components/schemas/ExecutionRequestBaseDetails" - example: - type: LIMIT - timeInForce: GTC - limitPrice: "41000.00" - baseAssetId: USD - quoteAssetId: BTC - side: BUY - baseAmount: "1000.00" - MarketExecutionRequestDetails: - allOf: - - properties: - type: - description: Order type for market orders - enum: - - MARKET - type: string - required: - - type - type: object - - $ref: "#/components/schemas/ExecutionRequestBaseDetails" - example: - type: MARKET - baseAssetId: USD - quoteAssetId: BTC - side: BUY - baseAmount: "1000.00" - QuoteExecutionRequestDetails: - example: - type: QUOTE - quoteId: quote_8f2e4d1a9c5b7e3f + DisbursementOperationPreview: properties: - type: - description: Order type for quote orders - enum: - - QUOTE - type: string - quoteId: - description: Quote ID for quote orders - type: string + input: + $ref: "#/components/schemas/DisbursementOperationInput" + output: + $ref: "#/components/schemas/DisbursementOperationPreviewOutput" + failure: + $ref: "#/components/schemas/OperationExecutionFailure" required: - - quoteId - - type + - input type: object - MarketRequoteRequestDetails: - example: - type: MARKET + DisbursementOperationExecutionOutput: properties: - type: - description: Indicates that the order should be re-quoted if the original - quote is expired. This will lead to a market order. - enum: - - MARKET - type: string + instructionSet: + items: + $ref: "#/components/schemas/DisbursementInstructionOutput" + type: array required: - - type + - instructionSet type: object - RetryRequoteRequestDetails: - example: - type: RETRY - count: 1 - slippageBps: 50 + DisbursementOperationExecution: properties: - type: - description: "Indicates that the order should be re-quoted if the original\ - \ quote is expired, trying to match the original quote." - enum: - - RETRY + input: + $ref: "#/components/schemas/DisbursementOperationInput" + output: + $ref: "#/components/schemas/DisbursementOperationExecutionOutput" + payoutId: type: string - count: - description: "If quote is expired, how many times to re-generate new quotes\ - \ to try having the order executed as in the original quote." - maximum: 10 - minimum: 1 + startedAt: type: number - slippageBps: - default: 1 - description: Slippage tolerance in basis points (bps) for quote orders - - 1 is 0.01% and 10000 is 100% - maximum: 10000 - minimum: 1 + finishedAt: type: number + failure: + $ref: "#/components/schemas/OperationExecutionFailure" required: - - count - - type + - input + - startedAt type: object - QuoteExecutionWithRequoteRequestDetails: - allOf: - - $ref: "#/components/schemas/QuoteExecutionRequestDetails" - - properties: - reQuote: - $ref: "#/components/schemas/QuoteExecutionWithRequoteRequestDetails_allOf_reQuote" - type: object - example: - type: QUOTE - quoteId: quote_8f2e4d1a9c5b7e3f - reQuote: - type: RETRY - count: 1 - slippageBps: 50 - ExecutionRequestDetails: - description: Order execution details - discriminator: - mapping: - LIMIT: "#/components/schemas/LimitExecutionRequestDetails" - MARKET: "#/components/schemas/MarketExecutionRequestDetails" - QUOTE: "#/components/schemas/QuoteExecutionWithRequoteRequestDetails" - propertyName: type - oneOf: - - $ref: "#/components/schemas/LimitExecutionRequestDetails" - - $ref: "#/components/schemas/MarketExecutionRequestDetails" - - $ref: "#/components/schemas/QuoteExecutionWithRequoteRequestDetails" - PrefundedSettlement: - example: - type: PREFUNDED - destinationAccount: - type: VAULT_ACCOUNT - accountId: vault_acc_9f4e2d8b1c6a5e73 + ExecutionDisbursementOperation: properties: - type: - enum: - - PREFUNDED + operationId: type: string - destinationAccount: - $ref: "#/components/schemas/AccountReference" + status: + $ref: "#/components/schemas/ExecutionOperationStatus" + validationFailure: + $ref: "#/components/schemas/DisbursementValidationFailure" + operationType: + $ref: "#/components/schemas/DisbursementOperationType" + preview: + $ref: "#/components/schemas/DisbursementOperationPreview" + execution: + $ref: "#/components/schemas/DisbursementOperationExecution" required: - - destinationAccount - - type + - operationId + - operationType + - status type: object - PostOrderSettlement: - example: - type: POST_ORDER + WorkflowExecutionOperation: + oneOf: + - $ref: "#/components/schemas/ExecutionScreeningOperation" + - $ref: "#/components/schemas/ExecutionConversionOperation" + - $ref: "#/components/schemas/ExecutionTransferOperation" + - $ref: "#/components/schemas/ExecutionDisbursementOperation" + WorkflowExecution: properties: - type: + executionId: + type: string + preScreening: + $ref: "#/components/schemas/PreScreening" + configSnapshot: + $ref: "#/components/schemas/WorkflowConfigurationSnapshot" + executionOperations: + items: + $ref: "#/components/schemas/WorkflowExecutionOperation" + type: array + status: enum: - - POST_ORDER + - PENDING + - VALIDATION_IN_PROGRESS + - VALIDATION_FAILED + - VALIDATION_COMPLETED + - PREVIEW_IN_PROGRESS + - PREVIEW_FAILED + - READY_FOR_LAUNCH + - EXECUTION_IN_PROGRESS + - EXECUTION_COMPLETED + - EXECUTION_FAILED + type: string + triggeredBy: type: string + triggeredAt: + type: number + finishedAt: + type: number + externalCorrelationData: + $ref: "#/components/schemas/CorrelationData" required: - - type + - configSnapshot + - executionId + - executionOperations + - status type: object - Settlement: - description: Settlement configuration for the order - discriminator: - mapping: - PREFUNDED: "#/components/schemas/PrefundedSettlement" - DVP: "#/components/schemas/DVPSettlement" - POST_ORDER: "#/components/schemas/PostOrderSettlement" - propertyName: type - oneOf: - - $ref: "#/components/schemas/PrefundedSettlement" - - $ref: "#/components/schemas/DVPSettlement" - - $ref: "#/components/schemas/PostOrderSettlement" - ParticipantRelationshipType: - enum: - - FirstParty - - SecondParty - - ThirdParty - example: FirstParty - type: string - PostalAddress: + x-internal: true + GasStationConfigurationResponse: example: - streetName: Fifth Avenue - buildingNumber: "350" - postalCode: "10118" - city: New York - subdivision: NY - district: Manhattan - country: US + gasThreshold: gasThreshold + maxGasPrice: maxGasPrice + gasCap: gasCap properties: - streetName: - type: string - buildingNumber: - type: string - postalCode: - type: string - city: - type: string - subdivision: + gasThreshold: type: string - district: + gasCap: type: string - country: + maxGasPrice: + nullable: true type: string - required: - - buildingNumber - - city - - country - - district - - postalCode - - streetName - - subdivision type: object - PersonalIdentification: + GasStationPropertiesResponse: example: - externalReferenceId: person_ref_7f3e2d1c4b8a5e9f - entityType: INDIVIDUAL - participantRelationshipType: FirstParty - fullName: - firstName: Alexander - lastName: Johnson - dateOfBirth: 1985-03-15 - postalAddress: - streetName: Oak Street - buildingNumber: "742" - postalCode: "90210" - city: Beverly Hills - subdivision: CA - district: Los Angeles County - country: US - properties: - externalReferenceId: - type: string - entityType: - enum: - - INDIVIDUAL - type: string - participantRelationshipType: - $ref: "#/components/schemas/ParticipantRelationshipType" - fullName: - $ref: "#/components/schemas/PersonalIdentification_fullName" - dateOfBirth: - format: date - type: string - postalAddress: - $ref: "#/components/schemas/PostalAddress" - required: - - dateOfBirth - - entityType - - externalReferenceId - - fullName - - participantRelationshipType - - postalAddress - type: object - BusinessIdentification: - example: - externalReferenceId: bus_ref_9f3e2d1c4b8a7e5f - entityType: BUSINESS - participantRelationshipType: COUNTERPARTY - businessName: TechCorp Solutions LLC - registrationNumber: TC-2023-001547 - postalAddress: - streetAddress: 789 Innovation Drive - city: San Francisco - state: CA - postalCode: "94105" - country: US - properties: - externalReferenceId: - type: string - entityType: - enum: - - BUSINESS + balance: "{}" + configuration: + gasThreshold: gasThreshold + maxGasPrice: maxGasPrice + gasCap: gasCap + properties: + balance: + type: object + configuration: + $ref: "#/components/schemas/GasStationConfigurationResponse" + type: object + GasStationConfiguration: + example: + gasThreshold: gasThreshold + maxGasPrice: maxGasPrice + gasCap: gasCap + properties: + gasThreshold: type: string - participantRelationshipType: - $ref: "#/components/schemas/ParticipantRelationshipType" - businessName: + gasCap: type: string - registrationNumber: + maxGasPrice: type: string - postalAddress: - $ref: "#/components/schemas/PostalAddress" + type: object + EditGasStationConfigurationResponse: + example: + success: true + properties: + success: + description: Indicates whether editing the gas station configuration was + successful + type: boolean required: - - businessName - - entityType - - externalReferenceId - - participantRelationshipType - - postalAddress - - registrationNumber - type: object - Identification: - discriminator: - mapping: - INDIVIDUAL: "#/components/schemas/PersonalIdentification" - BUSINESS: "#/components/schemas/BusinessIdentification" - propertyName: entityType - oneOf: - - $ref: "#/components/schemas/PersonalIdentification" - - $ref: "#/components/schemas/BusinessIdentification" - ParticipantsIdentification: - description: KYC/AML participant identification + - success + type: object + UserGroupResponse: example: - originator: - externalReferenceId: user_123456 - entityType: INDIVIDUAL - participantRelationshipType: FirstParty - fullName: - firstName: John - lastName: Smith - dateOfBirth: 1985-03-15 - postalAddress: - streetName: Main Street - buildingNumber: "123" - postalCode: "10001" - city: New York - subdivision: NY - district: Manhattan - country: US - beneficiary: - externalReferenceId: user_789012 - entityType: INDIVIDUAL - participantRelationshipType: ThirdParty - fullName: - firstName: Alice - lastName: Johnson - dateOfBirth: 1990-07-22 - postalAddress: - streetName: Broadway - buildingNumber: "456" - postalCode: "10002" - city: New York - subdivision: NY - district: Manhattan - country: US + name: name + id: id + memberIds: + - memberIds + - memberIds + status: status properties: - originator: - $ref: "#/components/schemas/Identification" - beneficiary: - $ref: "#/components/schemas/Identification" - type: object - CreateOrderRequest: - example: - via: - type: PROVIDER_ACCOUNT - providerId: prov_8c3f1a4b2d6e9f7c - accountId: acc_5e9a2d1c4b7f3e8a - executionRequestDetails: - type: MARKET - baseAssetId: USD - quoteAssetId: BTC - side: BUY - baseAmount: "1000.00" - settlement: - type: DVP - sourceAccount: - type: VAULT_ACCOUNT - id: vault_acc_3f7e1d9b2c5a8e4f - destinationAccount: - type: VAULT_ACCOUNT - id: vault_acc_7b2e5d8f1c4a9e3b - customerInternalReferenceId: order_ref_2024_001 - note: Monthly investment order - properties: - via: - $ref: "#/components/schemas/AccessType" - executionRequestDetails: - $ref: "#/components/schemas/ExecutionRequestDetails" - settlement: - $ref: "#/components/schemas/Settlement" - participantsIdentification: - $ref: "#/components/schemas/ParticipantsIdentification" - customerInternalReferenceId: - description: Internal reference ID for the customer + id: type: string - note: - description: Optional note for the order - maxLength: 512 + name: type: string - required: - - executionRequestDetails - - settlement - - via + status: + type: string + memberIds: + items: + type: string + type: array type: object - BlockchainTransfer: + UserGroupsResponse: + items: + $ref: "#/components/schemas/UserGroupResponse" + type: array + UserGroupCreateRequest: example: - type: BLOCKCHAIN - txHash: 0x1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b - amount: "250.75" + groupName: groupName + memberIds: + - memberIds + - memberIds properties: - type: - enum: - - BLOCKCHAIN - type: string - txHash: - description: The hash of the transaction on the blockchain. - type: string - amount: - description: The amount of the transaction. + groupName: type: string - required: - - amount + memberIds: + items: + type: string + type: array type: object - FiatTransfer: + CreateUserGroupResponse: example: - type: FIAT - amount: "750.25" - referenceId: fiat_ref_2024_003_789 + name: name + id: id + memberIds: + - memberIds + - memberIds + status: status properties: - type: - enum: - - FIAT + id: type: string - amount: - description: The amount of the fiat transfer. + name: type: string - referenceId: - description: The reference ID for the fiat transfer. + memberIds: + items: + type: string + type: array + status: type: string - required: - - amount type: object - TransferReceipt: - discriminator: - mapping: - BLOCKCHAIN: "#/components/schemas/BlockchainTransfer" - FIAT: "#/components/schemas/FiatTransfer" - propertyName: type - oneOf: - - $ref: "#/components/schemas/BlockchainTransfer" - - $ref: "#/components/schemas/FiatTransfer" - ExecutionStepStatusEnum: - enum: - - WAITING - - PROCESSING - - COMPLETED - - FAILED - - CANCELLED - example: PROCESSING - type: string - ExecutionStepError: - enum: - - INTERNAL_ERROR - - QUOTE_EXPIRED - - INSUFFICIENT_OUTPUT_AMOUNT - - INSUFFICIENT_FUNDS - - LAST_TRANSACTION_FAILED - - SWAP_APPROVAL_FAILED - - PROVIDER_EXECUTION_ERROR - example: INSUFFICIENT_FUNDS - type: string - ExecutionStep: + UserGroupUpdateRequest: example: - type: EXECUTE - status: PROCESSING - fee: - feeType: NETWORK - assetId: ETH - amountType: FIXED - amount: "0.01" - txId: tx_abc123def456 + groupName: groupName + memberIds: + - memberIds + - memberIds properties: - type: - $ref: "#/components/schemas/ExecutionStepType" - status: - $ref: "#/components/schemas/ExecutionStepStatusEnum" - fee: - $ref: "#/components/schemas/Fee" - txId: - type: string - txHash: + groupName: type: string - error: - $ref: "#/components/schemas/ExecutionStepError" - required: - - status - - type + memberIds: + items: + type: string + type: array type: object - ExecutionResponseBaseDetails: + UserGroupCreateResponse: example: - side: BUY - baseAmount: "1000.00" - baseAssetId: USDC - baseAssetRail: BLOCKCHAIN - quoteAssetId: BTC - quoteAssetRail: BLOCKCHAIN + name: name + id: id + memberIds: + - memberIds + - memberIds + status: status properties: - side: - default: BUY - description: Side of the order - enum: - - BUY - - SELL - type: string - baseAmount: - description: Amount to convert + name: type: string - baseAssetId: - description: Source asset identifier + id: type: string - baseAssetRail: - $ref: "#/components/schemas/TransferRail" - quoteAssetId: - description: Target asset identifier + memberIds: + items: + type: string + type: array + status: type: string - quoteAssetRail: - $ref: "#/components/schemas/TransferRail" - required: - - baseAmount - - baseAssetId - - quoteAssetId - - side type: object - LimitExecutionResponseDetails: - allOf: - - properties: - type: - description: Order type for limit orders - enum: - - LIMIT - type: string - timeInForce: - $ref: "#/components/schemas/TimeInForce" - limitPrice: - description: Price for limit orders - type: string - required: - - limitPrice - - timeInForce - - type - type: object - - $ref: "#/components/schemas/ExecutionResponseBaseDetails" - example: - type: LIMIT - timeInForce: FOK - limitPrice: "41000.00" - side: BUY - baseAmount: "1000.00" - baseAssetId: USD - quoteAssetId: BTC - baseAssetRail: BLOCKCHAIN - quoteAssetRail: BLOCKCHAIN - MarketExecutionResponseDetails: - allOf: - - properties: - type: - description: Order type for market orders - enum: - - MARKET - type: string - required: - - type - type: object - - $ref: "#/components/schemas/ExecutionResponseBaseDetails" - example: - type: MARKET - side: BUY - baseAmount: "1000.00" - baseAssetId: USDC - baseAssetRail: BLOCKCHAIN - quoteAssetId: BTC - quoteAssetRail: BLOCKCHAIN - QuoteExecutionResponseDetails: - allOf: - - properties: - type: - description: Order type for quote orders - enum: - - QUOTE - type: string - quoteId: - description: Quote ID for quote orders - type: string - quoteAmount: - description: Quote amount for quote orders - type: string - required: - - quoteAmount - - quoteId - - type - type: object - - $ref: "#/components/schemas/ExecutionResponseBaseDetails" - example: - type: QUOTE - quoteId: quote_8f2e4d1a9c5b7e3f - quoteAmount: "0.02458" - side: BUY - baseAmount: "1000.00" - baseAssetId: USDC - baseAssetRail: BLOCKCHAIN - quoteAssetId: BTC - quoteAssetRail: BLOCKCHAIN - QuoteExecutionWithRequoteResponseDetails: - allOf: - - $ref: "#/components/schemas/QuoteExecutionResponseDetails" - - properties: - reQuote: - $ref: "#/components/schemas/QuoteExecutionWithRequoteResponseDetails_allOf_reQuote" - type: object + UserResponse: example: - type: QUOTE - quoteId: quote_8f2e4d1a9c5b7e3f - side: BUY - baseAmount: "1000.00" - baseAssetId: USDC - baseAssetRail: BLOCKCHAIN - quoteAssetId: BTC - quoteAssetRail: BLOCKCHAIN - reQuote: - type: RETRY - count: 1 - slippageBps: 50 - ExecutionResponseDetails: - discriminator: - mapping: - LIMIT: "#/components/schemas/LimitExecutionResponseDetails" - MARKET: "#/components/schemas/MarketExecutionResponseDetails" - QUOTE: "#/components/schemas/QuoteExecutionWithRequoteResponseDetails" - propertyName: type - oneOf: - - $ref: "#/components/schemas/LimitExecutionResponseDetails" - - $ref: "#/components/schemas/MarketExecutionResponseDetails" - - $ref: "#/components/schemas/QuoteExecutionWithRequoteResponseDetails" - AccountHolderDetails: - example: - name: John Smith - city: New York - country: US - subdivision: NY - address: "123 Wall Street, Apt 4B" - postalCode: "10005" + firstName: firstName + lastName: lastName + role: role + id: id + email: email + enabled: true properties: - name: - description: Full name of the account holder. - type: string - city: + id: type: string - country: - description: "Country code, as specified in ISO 3166-1 alpha-2." + firstName: type: string - subdivision: - description: "Country administrative subdivision, as specified in ISO 3166-2." + lastName: type: string - address: - description: Account holder street address. + role: type: string - postalCode: + email: type: string - required: - - name + enabled: + type: boolean type: object - PaymentInstructions: + GetUsersResponse: + items: + $ref: "#/components/schemas/UserResponse" + type: array + GetAuditLogsResponseDTO: example: - type: IBAN - address: - accountHolder: - name: John Smith - city: London - country: GB - subdivision: ENG - address: 123 King's Road - postalCode: SW3 4LX - iban: GB82WEST12345698765432 - referenceId: PAY_INST_abc123def456 + cursor: cursor + total: 0.8008281904610115 + data: + - "{}" + - "{}" properties: - type: - enum: - - IBAN - - SWIFT - - ACH - - US_WIRE - - SPEI - - SEPA - - PIX - - LOCAL_BANK_TRANSFER_AFRICA - - MOBILE_MONEY - type: string - address: - $ref: "#/components/schemas/AccountHolderDetails" - referenceId: + data: + items: + type: object + type: array + total: + type: number + cursor: + nullable: true type: string - required: - - address - - referenceId - - type type: object - OrderDetails: - example: - id: order_9f4e2d8b1c6a5e73 - via: - type: PROVIDER_ACCOUNT - providerId: bridge-provider-001 - accountId: acc_9f4e2d8b1c6a5e73 - status: PROCESSING - createdAt: 2024-01-15T10:30:00.000Z - updatedAt: 2024-01-15T10:30:30.000Z - receipt: - type: BLOCKCHAIN - txHash: 0x1234567890abcdef - amount: "0.02458" - generalFees: - - feeType: ORDER - assetId: USDC - amountType: FIXED - amount: "5.00" - executionSteps: - - type: EXECUTE - status: PROCESSING - fee: - feeType: NETWORK - assetId: ETH - amountType: FIXED - amount: "0.01" - txId: tx_abc123def456 - executionResponseDetails: - type: MARKET - side: BUY - baseAmount: "1000.00" - baseAssetId: USDC - quoteAssetId: BTC - settlement: - type: PREFUNDED - destinationAccount: - type: VAULT_ACCOUNT - accountId: vault_acc_9f4e2d8b1c6a5e73 - createdBy: user_123abc456def789 - customerInternalReferenceId: order_ref_2024_001 - note: Monthly investment order + AuditLogData: + example: + createdAt: createdAt + subject: subject + tenantId: tenantId + id: id + event: event + user: user + userId: userId + timestamp: timestamp properties: id: + description: The unique identifier of the audit log type: string - via: - $ref: "#/components/schemas/AccessType" - status: - $ref: "#/components/schemas/OrderStatus" - createdAt: - format: date-time + timestamp: + description: The timestamp of the audit log type: string - updatedAt: - format: date-time + createdAt: + description: The timestamp of the audit log creation type: string - receipt: - $ref: "#/components/schemas/TransferReceipt" - generalFees: - items: - $ref: "#/components/schemas/Fee" - type: array - executionSteps: - items: - $ref: "#/components/schemas/ExecutionStep" - type: array - executionResponseDetails: - $ref: "#/components/schemas/ExecutionResponseDetails" - settlement: - $ref: "#/components/schemas/Settlement" - participantsIdentification: - $ref: "#/components/schemas/ParticipantsIdentification" - paymentInstructions: - description: "Payment instructions for the order, the client can use one\ - \ of these to pay the order." - items: - $ref: "#/components/schemas/PaymentInstructions" - type: array - createdBy: - description: The ID of the user who created the order + user: + description: The user who performed the action type: string - customerInternalReferenceId: - description: Internal reference ID for the customer + subject: + description: The subject of the action type: string - note: - description: Optional note for the Order - maxLength: 512 + event: + description: The event that was performed type: string - expiresAt: - format: date-time + tenantId: + description: The tenant ID of the audit log type: string - required: - - createdAt - - createdBy - - executionResponseDetails - - executionSteps - - id - - settlement - - status - - via - type: object - SetAdminQuorumThresholdRequest: - properties: - adminQuorumThreshold: - description: The number of admins that will requires to approve an operation - type: number - type: object - SetAdminQuorumThresholdResponse: - properties: - message: - description: The message which indicates the result of the operation. - example: Admin quorum threshold request sent successfully. + userId: + description: The user ID of the audit log type: string - required: - - message type: object - Paging: + AuditLogsData: + items: + $ref: "#/components/schemas/AuditLogData" + type: array + GetAuditLogsResponse: example: - next: next + cursor: cursor + total: 0.8008281904610115 + data: + - createdAt: createdAt + subject: subject + tenantId: tenantId + id: id + event: event + user: user + userId: userId + timestamp: timestamp + - createdAt: createdAt + subject: subject + tenantId: tenantId + id: id + event: event + user: user + userId: userId + timestamp: timestamp properties: - next: - description: Cursor to the next page + data: + items: + $ref: "#/components/schemas/AuditLogData" + type: array + cursor: + description: The next id to start fetch audit logs from + nullable: true type: string - required: - - next + total: + description: The total number of audit logs + type: number type: object - MediaEntityResponse: + AddCollateralRequestBody: example: - contentType: IMAGE - url: url + isSrcCollateral: true + transactionRequest: + note: Ticket 123 + priorityFee: "2" + networkFee: TransactionRequest_networkFee + fee: TransactionRequest_fee + destination: + oneTimeAddress: + address: address + tag: tag + walletId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + name: name + subType: null + id: id + type: null + extraParameters: "{}" + source: + walletId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + name: name + subType: BINANCE + id: id + type: VAULT_ACCOUNT + maxFee: "120" + externalTxId: 00000000-0000-0000-0000-000000000000 + cpuStaking: null + gasLimit: "21000" + failOnLowFee: true + assetId: ETH + feeLevel: MEDIUM + gasPrice: TransactionRequest_gasPrice + forceSweep: false + amount: "0.02" + destinations: + - amount: amount + destination: + oneTimeAddress: + address: address + tag: tag + walletId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + name: name + subType: null + id: id + type: null + - amount: amount + destination: + oneTimeAddress: + address: address + tag: tag + walletId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + name: name + subType: null + id: id + type: null + travelRuleMessage: + originatorProof: "" + originator: "" + beneficiaryVASPname: beneficiaryVASPname + pii: "" + protocol: protocol + skipBeneficiaryDataValidation: true + beneficiary: "" + encrypted: encrypted + travelRuleBehavior: true + transactionBlockchainInfo: "" + beneficiaryProof: "" + originatorVASPdid: originatorVASPdid + beneficiaryVASPdid: beneficiaryVASPdid + customerRefId: abcdef + treatAsGrossAmount: false + networkStaking: TransactionRequest_networkStaking + autoStaking: true + operation: TRANSFER + replaceTxByHash: 00000000-0000-0000-0000-000000000000 properties: - url: - description: Cached accessible URL - type: string - contentType: - description: Media type - enum: - - IMAGE - - VIDEO - - ANIMATION - - THREE_D - - TEXT - - GIF - - UNKNOWN_TYPE - - SVG - - AUDIO - type: string - required: - - contentType - - url + transactionRequest: + $ref: "#/components/schemas/TransactionRequest" + isSrcCollateral: + description: optional + type: boolean type: object - SpamOwnershipResponse: + RemoveCollateralRequestBody: + example: + transactionRequest: + note: Ticket 123 + priorityFee: "2" + networkFee: TransactionRequest_networkFee + fee: TransactionRequest_fee + destination: + oneTimeAddress: + address: address + tag: tag + walletId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + name: name + subType: null + id: id + type: null + extraParameters: "{}" + source: + walletId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + name: name + subType: BINANCE + id: id + type: VAULT_ACCOUNT + maxFee: "120" + externalTxId: 00000000-0000-0000-0000-000000000000 + cpuStaking: null + gasLimit: "21000" + failOnLowFee: true + assetId: ETH + feeLevel: MEDIUM + gasPrice: TransactionRequest_gasPrice + forceSweep: false + amount: "0.02" + destinations: + - amount: amount + destination: + oneTimeAddress: + address: address + tag: tag + walletId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + name: name + subType: null + id: id + type: null + - amount: amount + destination: + oneTimeAddress: + address: address + tag: tag + walletId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + name: name + subType: null + id: id + type: null + travelRuleMessage: + originatorProof: "" + originator: "" + beneficiaryVASPname: beneficiaryVASPname + pii: "" + protocol: protocol + skipBeneficiaryDataValidation: true + beneficiary: "" + encrypted: encrypted + travelRuleBehavior: true + transactionBlockchainInfo: "" + beneficiaryProof: "" + originatorVASPdid: originatorVASPdid + beneficiaryVASPdid: beneficiaryVASPdid + customerRefId: abcdef + treatAsGrossAmount: false + networkStaking: TransactionRequest_networkStaking + autoStaking: true + operation: TRANSFER + replaceTxByHash: 00000000-0000-0000-0000-000000000000 + isDstCollateral: true properties: - result: - description: Token spam result + transactionRequest: + $ref: "#/components/schemas/TransactionRequest" + isDstCollateral: + description: optional type: boolean - source: - description: Source of Token's Spam status value - enum: - - OWNER - - SYSTEM - type: string - required: - - result - - source type: object - TokenCollectionResponse: + SettlementRequestBody: + example: + mainExchangeAccountId: mainExchangeAccountId properties: - id: - type: string - name: - type: string - symbol: + mainExchangeAccountId: type: string - required: - - id type: object - TokenOwnershipResponse: + ToExchangeTransaction: example: - standard: standard - ncwId: ncwId - tokenId: tokenId - cachedMetadataURI: cachedMetadataURI - vaultAccountId: vaultAccountId - description: description - media: - - contentType: IMAGE - url: url - - contentType: IMAGE - url: url - collection: "" - metadataURI: metadataURI - ownershipLastUpdateTime: 6.027456183070403 - blockchainDescriptor: ETH - ncwAccountId: ncwAccountId - balance: balance - ownershipStartTime: 0.8008281904610115 - name: name - id: id - spam: "" - status: LISTED + amount: amount + assetId: assetId + dstAddress: dstAddress + dstTag: dstTag properties: - id: - description: The Fireblocks NFT asset id - type: string - tokenId: - description: Token id within the contract/collection - type: string - standard: - description: ERC721 / ERC1155 - type: string - metadataURI: - description: URL of the original token JSON metadata - type: string - cachedMetadataURI: - description: URL of the cached token JSON metadata - type: string - media: - description: Media items extracted from metadata JSON - items: - $ref: "#/components/schemas/MediaEntityResponse" - type: array - spam: - allOf: - - $ref: "#/components/schemas/SpamOwnershipResponse" - description: Owned Token's Spam status - collection: - allOf: - - $ref: "#/components/schemas/TokenCollectionResponse" - description: Parent collection information - balance: + assetId: type: string - vaultAccountId: + amount: type: string - ownershipStartTime: - type: number - ownershipLastUpdateTime: - type: number - blockchainDescriptor: - enum: - - ETH - - ETH_TEST3 - - ETH_TEST5 - - ETH_TEST6 - - POLYGON - - POLYGON_TEST_MUMBAI - - AMOY_POLYGON_TEST - - XTZ - - XTZ_TEST - - BASECHAIN_ETH - - BASECHAIN_ETH_TEST3 - - BASECHAIN_ETH_TEST5 - - ETHERLINK - - ETHERLINK_TEST - - MANTLE - - MANTLE_TEST - - GUN_GUNZILLA - - GUN_GUNZILLA_TEST - - ETH_SONEIUM - - SONEIUM_MINATO_TEST - - IOTX_IOTEX - - KLAY_KAIA - - KLAY_KAIA_TEST - - APECHAIN - - APECHAIN_TEST + dstAddress: type: string - description: + dstTag: + description: optional type: string - name: + type: object + ToCollateralTransaction: + example: + amount: amount + srcTag: srcTag + fee: fee + srcAddress: srcAddress + asset: asset + properties: + asset: type: string - ncwId: - description: Ownership Non-Custodial Wallet ID + amount: type: string - ncwAccountId: - description: Ownership Non-Custodial Wallet's account ID + srcAddress: type: string - status: - description: Owned Token's status - enum: - - LISTED - - ARCHIVED + srcTag: + description: optional + type: string + fee: + description: optional type: string - required: - - balance - - blockchainDescriptor - - id - - ownershipLastUpdateTime - - ownershipStartTime - - standard - - status - - tokenId type: object - GetOwnershipTokensResponse: + ExchangeSettlementTransactionsResponse: example: - data: - - standard: standard - ncwId: ncwId - tokenId: tokenId - cachedMetadataURI: cachedMetadataURI - vaultAccountId: vaultAccountId - description: description - media: - - contentType: IMAGE - url: url - - contentType: IMAGE - url: url - collection: "" - metadataURI: metadataURI - ownershipLastUpdateTime: 6.027456183070403 - blockchainDescriptor: ETH - ncwAccountId: ncwAccountId - balance: balance - ownershipStartTime: 0.8008281904610115 - name: name - id: id - spam: "" - status: LISTED - - standard: standard - ncwId: ncwId - tokenId: tokenId - cachedMetadataURI: cachedMetadataURI - vaultAccountId: vaultAccountId - description: description - media: - - contentType: IMAGE - url: url - - contentType: IMAGE - url: url - collection: "" - metadataURI: metadataURI - ownershipLastUpdateTime: 6.027456183070403 - blockchainDescriptor: ETH - ncwAccountId: ncwAccountId - balance: balance - ownershipStartTime: 0.8008281904610115 - name: name - id: id - spam: "" - status: LISTED - paging: - next: next + toCollateral: + - amount: amount + srcTag: srcTag + fee: fee + srcAddress: srcAddress + asset: asset + - amount: amount + srcTag: srcTag + fee: fee + srcAddress: srcAddress + asset: asset + toExchange: + - amount: amount + assetId: assetId + dstAddress: dstAddress + dstTag: dstTag + - amount: amount + assetId: assetId + dstAddress: dstAddress + dstTag: dstTag properties: - paging: - $ref: "#/components/schemas/Paging" - data: + toExchange: items: - $ref: "#/components/schemas/TokenOwnershipResponse" + $ref: "#/components/schemas/ToExchangeTransaction" + type: array + toCollateral: + items: + $ref: "#/components/schemas/ToCollateralTransaction" type: array type: object - SpamTokenResponse: - properties: - result: - description: Token spam result - type: boolean - required: - - result - type: object - TokenResponse: + SettlementResponse: example: - standard: standard - blockchainDescriptor: ETH - tokenId: tokenId - cachedMetadataURI: cachedMetadataURI - name: name - description: description + fireblocksInitiatedTransactions: "{}" + initiator: initiator + exchangeRequestedTransactions: + toCollateral: + - amount: amount + srcTag: srcTag + fee: fee + srcAddress: srcAddress + asset: asset + - amount: amount + srcTag: srcTag + fee: fee + srcAddress: srcAddress + asset: asset + toExchange: + - amount: amount + assetId: assetId + dstAddress: dstAddress + dstTag: dstTag + - amount: amount + assetId: assetId + dstAddress: dstAddress + dstTag: dstTag id: id - media: - - contentType: IMAGE - url: url - - contentType: IMAGE - url: url - collection: "" - spam: "" - metadataURI: metadataURI + exchangeReply: exchangeReply properties: id: - description: The Fireblocks NFT asset id type: string - tokenId: - description: Token id within the contract/collection + initiator: type: string - standard: - description: ERC721 / ERC1155 + exchangeReply: type: string - metadataURI: - description: URL of the original token JSON metadata + fireblocksInitiatedTransactions: + type: object + exchangeRequestedTransactions: + $ref: "#/components/schemas/ExchangeSettlementTransactionsResponse" + type: object + ResendWebhooksResponse: + example: + messagesCount: 0.8008281904610115 + properties: + messagesCount: + type: number + type: object + ResendTransactionWebhooksRequest: + example: + resendCreated: true + resendStatusUpdated: true + properties: + resendCreated: + type: boolean + resendStatusUpdated: + type: boolean + type: object + ResendWebhooksByTransactionIdResponse: + example: + success: true + properties: + success: + description: Indicates whether the webhooks were successfully resent + type: boolean + required: + - success + type: object + AuditorData: + properties: + name: type: string - cachedMetadataURI: - description: URL of the cached token JSON metadata + imageURL: type: string - media: - description: Media items extracted from metadata JSON + link: + type: string + required: + - imageURL + - link + - name + type: object + ContractAttributes: + properties: + useCases: items: - $ref: "#/components/schemas/MediaEntityResponse" + type: string type: array - spam: - allOf: - - $ref: "#/components/schemas/SpamTokenResponse" - description: Token spam status - collection: - allOf: - - $ref: "#/components/schemas/TokenCollectionResponse" - description: Parent collection information - blockchainDescriptor: - enum: - - ETH - - ETH_TEST3 - - ETH_TEST5 - - ETH_TEST6 - - POLYGON - - POLYGON_TEST_MUMBAI - - AMOY_POLYGON_TEST - - XTZ - - XTZ_TEST - - BASECHAIN_ETH - - BASECHAIN_ETH_TEST3 - - BASECHAIN_ETH_TEST5 - - ETHERLINK - - ETHERLINK_TEST - - MANTLE - - MANTLE_TEST - - GUN_GUNZILLA - - GUN_GUNZILLA_TEST - - ETH_SONEIUM - - SONEIUM_MINATO_TEST - - IOTX_IOTEX - - KLAY_KAIA - - KLAY_KAIA_TEST - - APECHAIN - - APECHAIN_TEST - type: string - description: + standards: + items: + type: string + type: array + auditor: + $ref: "#/components/schemas/AuditorData" + required: + - auditor + - standards + - useCases + type: object + VendorDto: + properties: + id: + description: The unique identifier of the vendor of this contract template + example: b70701f4-d7b1-4795-a8ee-b09cdb5b4453 type: string name: + description: The name of the vendor of this contract template + example: Fireblocks type: string required: - - blockchainDescriptor - id - - standard - - tokenId - type: object - ListOwnedTokensResponse: - example: - data: - - standard: standard - blockchainDescriptor: ETH - tokenId: tokenId - cachedMetadataURI: cachedMetadataURI - name: name - description: description - id: id - media: - - contentType: IMAGE - url: url - - contentType: IMAGE - url: url - collection: "" - spam: "" - metadataURI: metadataURI - - standard: standard - blockchainDescriptor: ETH - tokenId: tokenId - cachedMetadataURI: cachedMetadataURI - name: name - description: description - id: id - media: - - contentType: IMAGE - url: url - - contentType: IMAGE - url: url - collection: "" - spam: "" - metadataURI: metadataURI - paging: - next: next - properties: - paging: - $ref: "#/components/schemas/Paging" - data: - items: - $ref: "#/components/schemas/TokenResponse" - type: array + - name type: object - CollectionOwnershipResponse: + LeanContractDto: example: - standard: standard - symbol: symbol - blockchainDescriptor: ETH - name: name - contractAddress: contractAddress - id: id + owner: b70701f4-d7b1-4795-a8ee-b09cdb5b850d + canDeploy: true + vendor: "" + name: My Contract + description: an ERC20 implementation + isPublic: true + attributes: + useCases: + - Stablecoin + - CBDC + standards: + - ERC-20 + - ERC-1400 + auditor: + name: MyAuditor + imageURL: https://my-images.com/my-image.jpg + link: https://my-auditor.com/my-audit-report + id: b70701f4-d7b1-4795-a8ee-b09cdb5b850d + type: FUNGIBLE_TOKEN properties: id: - description: Fireblocks collection id + description: The unique identifier of the contract template + example: b70701f4-d7b1-4795-a8ee-b09cdb5b850d type: string name: - description: Collection name + description: The name of the contract template + example: My Contract type: string - symbol: - description: Collection symbol + description: + description: A short description of the contract template + example: an ERC20 implementation type: string - standard: - description: Collection contract standard + attributes: + allOf: + - $ref: "#/components/schemas/ContractAttributes" + description: The attributes related to this contract template. It will be + displayed in the tokenization page + example: + useCases: + - Stablecoin + - CBDC + standards: + - ERC-20 + - ERC-1400 + auditor: + name: MyAuditor + imageURL: https://my-images.com/my-image.jpg + link: https://my-auditor.com/my-audit-report + isPublic: + description: Is this a contract that is viewable by all fireblocks's users + or is it visible only for this workspace + example: true + type: boolean + canDeploy: + description: "True if the workspace allowed to deploy this contract, false\ + \ otherwise" + example: true + type: boolean + owner: + description: "The workspace id of the owner of this contract template. If\ + \ it's a private contract, only this workspace will be allowed to deploy\ + \ it" + example: b70701f4-d7b1-4795-a8ee-b09cdb5b850d type: string - blockchainDescriptor: - description: Collection's blockchain + vendor: + allOf: + - $ref: "#/components/schemas/VendorDto" + description: The details of the vendor of this contract template. Applicable + only for public contract templates + type: enum: - - ETH - - ETH_TEST3 - - ETH_TEST5 - - ETH_TEST6 - - POLYGON - - POLYGON_TEST_MUMBAI - - AMOY_POLYGON_TEST - - XTZ - - XTZ_TEST - - BASECHAIN_ETH - - BASECHAIN_ETH_TEST3 - - BASECHAIN_ETH_TEST5 - - ETHERLINK - - ETHERLINK_TEST - - MANTLE - - MANTLE_TEST - - GUN_GUNZILLA - - GUN_GUNZILLA_TEST - - ETH_SONEIUM - - SONEIUM_MINATO_TEST - - IOTX_IOTEX - - KLAY_KAIA - - KLAY_KAIA_TEST - - APECHAIN - - APECHAIN_TEST - type: string - contractAddress: - description: Collection contract standard + - FUNGIBLE_TOKEN + - NON_FUNGIBLE_TOKEN + - NON_TOKEN + - TOKEN_EXTENSION + - TOKEN_UTILITY type: string required: - - blockchainDescriptor + - description - id + - isPublic + - name type: object - ListOwnedCollectionsResponse: - example: - data: - - standard: standard - symbol: symbol - blockchainDescriptor: ETH - name: name - contractAddress: contractAddress - id: id - - standard: standard - symbol: symbol - blockchainDescriptor: ETH - name: name - contractAddress: contractAddress - id: id - paging: - next: next - properties: - paging: - $ref: "#/components/schemas/Paging" - data: - items: - $ref: "#/components/schemas/CollectionOwnershipResponse" - type: array - type: object - GetNFTsResponse: + TemplatesPaginatedResponse: example: + next: eJ0eXAiOiJKV1QiLCJhbGcOiJIUzI1NiJ9 data: - - standard: standard - blockchainDescriptor: ETH - tokenId: tokenId - cachedMetadataURI: cachedMetadataURI - name: name - description: description - id: id - media: - - contentType: IMAGE - url: url - - contentType: IMAGE - url: url - collection: "" - spam: "" - metadataURI: metadataURI - - standard: standard - blockchainDescriptor: ETH - tokenId: tokenId - cachedMetadataURI: cachedMetadataURI - name: name - description: description - id: id - media: - - contentType: IMAGE - url: url - - contentType: IMAGE - url: url - collection: "" - spam: "" - metadataURI: metadataURI - paging: - next: next + - owner: b70701f4-d7b1-4795-a8ee-b09cdb5b850d + canDeploy: true + vendor: "" + name: My Contract + description: an ERC20 implementation + isPublic: true + attributes: + useCases: + - Stablecoin + - CBDC + standards: + - ERC-20 + - ERC-1400 + auditor: + name: MyAuditor + imageURL: https://my-images.com/my-image.jpg + link: https://my-auditor.com/my-audit-report + id: b70701f4-d7b1-4795-a8ee-b09cdb5b850d + type: FUNGIBLE_TOKEN + - owner: b70701f4-d7b1-4795-a8ee-b09cdb5b850d + canDeploy: true + vendor: "" + name: My Contract + description: an ERC20 implementation + isPublic: true + attributes: + useCases: + - Stablecoin + - CBDC + standards: + - ERC-20 + - ERC-1400 + auditor: + name: MyAuditor + imageURL: https://my-images.com/my-image.jpg + link: https://my-auditor.com/my-audit-report + id: b70701f4-d7b1-4795-a8ee-b09cdb5b850d + type: FUNGIBLE_TOKEN properties: - paging: - $ref: "#/components/schemas/Paging" data: + description: The data of the current page items: - $ref: "#/components/schemas/TokenResponse" + $ref: "#/components/schemas/LeanContractDto" type: array + next: + description: The ID of the next page + example: eJ0eXAiOiJKV1QiLCJhbGcOiJIUzI1NiJ9 + nullable: true + type: string + required: + - data type: object - UpdateTokenOwnershipStatusDto: - example: - status: LISTED + FunctionDoc: properties: - status: - enum: - - LISTED - - ARCHIVED + details: + description: A description of the function + type: string + params: + additionalProperties: + type: string + description: A description of the function parameters + type: object + returns: + additionalProperties: + type: string + description: A description of the function return values. only for read + functions + type: object + type: object + ContractDoc: + properties: + details: + description: A description of the contract + example: A token that can be minted and burned + type: string + events: + description: A description of the contract`s events + example: "Upgraded(address): {\"details\": \"Emitted when the implementation\ + \ is upgraded.\"}" + type: string + kind: + description: Is it devdoc or userdoc + example: dev + type: string + methods: + additionalProperties: + $ref: "#/components/schemas/FunctionDoc" + description: The description of the contract functions + example: + constructor: + details: Initializes the contract + type: object + version: + description: The version of the contract + example: "1" type: string required: - - status + - kind + - methods + - version type: object - TokenOwnershipStatusUpdatePayload: + Parameter: example: - assetId: NFT-abcdefabcdefabcdefabcdefabcdefabcdefabcd - status: ARCHIVED + components: + - null + - null + name: _name + description: The name of the token + internalType: string + type: string properties: - assetId: - description: Token's asset id - example: NFT-abcdefabcdefabcdefabcdefabcdefabcdefabcd + name: + description: The name of the parameter as it appears in the ABI + example: _name type: string - x-fb-entity: asset - status: - description: Token's ownership new status - enum: - - LISTED - - ARCHIVED - example: ARCHIVED + description: + description: "A description of the parameter, fetched from the devdoc of\ + \ this contract" + example: The name of the token + type: string + internalType: + description: The internal type of the parameter as it appears in the ABI + example: string + type: string + type: + description: The type of the parameter as it appears in the ABI + example: string type: string + components: + items: + $ref: "#/components/schemas/Parameter" + type: array required: - - assetId - - status + - name + - type type: object - UpdateTokensOwnershipStatusRequest: - items: - $ref: "#/components/schemas/TokenOwnershipStatusUpdatePayload" - type: array - TokenOwnershipSpamUpdatePayload: + AbiFunction: example: - assetId: NFT-abcdefabcdefabcdefabcdefabcdefabcdefabcd - spam: true + outputs: + - components: + - null + - null + name: _name + description: The name of the token + internalType: string + type: string + - components: + - null + - null + name: _name + description: The name of the token + internalType: string + type: string + inputs: + - components: + - null + - null + name: _name + description: The name of the token + internalType: string + type: string + - components: + - null + - null + name: _name + description: The name of the token + internalType: string + type: string + name: mint + stateMutability: pure + description: description + type: constructor properties: - assetId: - description: Token's asset id - example: NFT-abcdefabcdefabcdefabcdefabcdefabcdefabcd + name: + description: The name of the contract function as it appears in the ABI + example: mint + type: string + stateMutability: + description: The state mutability of the contract function as it appears + in the ABI + enum: + - pure + - view + - nonpayable + - payable + example: pure + type: string + type: + description: The type if the function + enum: + - function + - constructor + example: constructor + type: string + inputs: + description: The parameters that this function/constructor posses + items: + $ref: "#/components/schemas/Parameter" + type: array + outputs: + description: The parameters that this 'read' function returns + items: + $ref: "#/components/schemas/Parameter" + type: array + description: + description: The documentation of this function (if has any) type: string - x-fb-entity: asset - spam: - description: Token's ownership new spam value - example: true - type: boolean required: - - assetId - - spam + - inputs + - type type: object - UpdateTokensOwnershipSpamRequest: - items: - $ref: "#/components/schemas/TokenOwnershipSpamUpdatePayload" - type: array - SessionMetadata: + ContractUploadRequest: + example: + longDescription: | + a full ERC20 implementation, containing the following: + + - mint + - burn + bytecode: bytecode + docs: + details: "This contract implements an upgradeable proxy. It is upgradeable\ + \ because calls are delegated to an implementation address that can be\ + \ changed. This address is stored in storage in the location specified\ + \ by https://eips.ethereum.org/EIPS/eip-1967[EIP1967], so that it doesn't\ + \ conflict with the storage layout of the implementation behind the proxy." + errors: + ERC1967NonPayable(): + - details: An upgrade function sees `msg.value > 0` that may be lost. + events: + Upgraded(address): + details: Emitted when the implementation is upgraded. + kind: dev + methods: + constructor: + details: "Initializes the upgradeable proxy with an initial implementation\ + \ specified by `implementation`. If `_data` is nonempty, it's used\ + \ as data in a delegate call to `implementation`. This will typically\ + \ be an encoded function call, and allows initializing the storage\ + \ of the proxy like a Solidity constructor. Requirements: - If `data`\ + \ is empty, `msg.value` must be zero." + version: 1 + name: My Contract + description: an ERC20 implementation + abi: + - - inputs: + - internalType: address + name: implementation + type: address + - internalType: bytes + name: _data + type: bytes + stateMutability: payable + type: constructor + - - inputs: + - internalType: address + name: implementation + type: address + - internalType: bytes + name: _data + type: bytes + stateMutability: payable + type: constructor + attributes: + useCases: + - Stablecoin + - CBDC + standards: + - ERC-20 + - ERC-1400 + auditor: + name: MyAuditor + imageURL: https://my-images.com/my-image.jpg + link: https://my-auditor.com/my-audit-report + type: FUNGIBLE_TOKEN + sourcecode: sourcecode properties: - appUrl: - type: string - appName: + name: + description: The name of the contract template + example: My Contract type: string - appDescription: + description: + description: A short description of the contract template + example: an ERC20 implementation type: string - appIcon: + longDescription: + description: "A full description of the contract template. May contain \n\ + \ to break the lines" + example: | + a full ERC20 implementation, containing the following: + + - mint + - burn type: string - required: - - appUrl - type: object - SessionDTO: - example: - vaultAccountId: 1 - sessionMetadata: "" - chainIds: - - ETH - - ETH_TEST - - SOL - id: 4e9e7051-f3b2-48e9-8ee6-b12492552657 - feeLevel: MEDIUM - creationDate: 2000-01-23T04:56:07.000+00:00 - userId: userId - connectionType: WalletConnect - connectionMethod: API - properties: - id: - description: Id of the connection - example: 4e9e7051-f3b2-48e9-8ee6-b12492552657 + bytecode: + description: The compiled artifact of this smart contract. Used for deployment + of this contract template type: string - userId: - description: Id of the user that created the connection + sourcecode: + description: The source code of the contract. Optional. type: string - sessionMetadata: - allOf: - - $ref: "#/components/schemas/SessionMetadata" - description: Metadata of the connection (provided by the dapp) - vaultAccountId: - description: The vault to connect - example: 1 - type: number - feeLevel: - description: The default fee level + type: + description: The type of the contract template enum: - - MEDIUM - - HIGH - example: MEDIUM + - FUNGIBLE_TOKEN + - NON_FUNGIBLE_TOKEN + - NON_TOKEN + - TOKEN_EXTENSION + - TOKEN_UTILITY + example: FUNGIBLE_TOKEN type: string - chainIds: - description: The chains approved for the connection + docs: + allOf: + - $ref: "#/components/schemas/ContractDoc" + description: A `natspec` compliant documentation json. Can be retrieved + from the output json after compilation example: - - ETH - - ETH_TEST - - SOL - items: - type: string - type: array - connectionType: - description: The connection's type - enum: - - WalletConnect - example: WalletConnect - type: string - connectionMethod: - description: The method through which the connection was established - enum: - - DESKTOP - - MOBILE - - API - example: API - type: string - creationDate: - description: Timestamp of the session's creation - format: date-time - type: string - required: - - chainIds - - connectionMethod - - connectionType - - creationDate - - feeLevel - - id - - sessionMetadata - - userId - - vaultAccountId - type: object - GetConnectionsResponse: - example: - data: - - vaultAccountId: 1 - sessionMetadata: "" - chainIds: - - ETH - - ETH_TEST - - SOL - id: 4e9e7051-f3b2-48e9-8ee6-b12492552657 - feeLevel: MEDIUM - creationDate: 2000-01-23T04:56:07.000+00:00 - userId: userId - connectionType: WalletConnect - connectionMethod: API - - vaultAccountId: 1 - sessionMetadata: "" - chainIds: - - ETH - - ETH_TEST - - SOL - id: 4e9e7051-f3b2-48e9-8ee6-b12492552657 - feeLevel: MEDIUM - creationDate: 2000-01-23T04:56:07.000+00:00 - userId: userId - connectionType: WalletConnect - connectionMethod: API - paging: - next: next - properties: - data: - description: Array with the requested Web3 connection's data + details: "This contract implements an upgradeable proxy. It is upgradeable\ + \ because calls are delegated to an implementation address that can\ + \ be changed. This address is stored in storage in the location specified\ + \ by https://eips.ethereum.org/EIPS/eip-1967[EIP1967], so that it doesn't\ + \ conflict with the storage layout of the implementation behind the\ + \ proxy." + errors: + ERC1967NonPayable(): + - details: An upgrade function sees `msg.value > 0` that may be lost. + events: + Upgraded(address): + details: Emitted when the implementation is upgraded. + kind: dev + methods: + constructor: + details: "Initializes the upgradeable proxy with an initial implementation\ + \ specified by `implementation`. If `_data` is nonempty, it's used\ + \ as data in a delegate call to `implementation`. This will typically\ + \ be an encoded function call, and allows initializing the storage\ + \ of the proxy like a Solidity constructor. Requirements: - If `data`\ + \ is empty, `msg.value` must be zero." + version: 1 + abi: items: - $ref: "#/components/schemas/SessionDTO" + description: The abi of the contract template. Necessary for displaying + and for after deployment encoding + example: + - inputs: + - internalType: address + name: implementation + type: address + - internalType: bytes + name: _data + type: bytes + stateMutability: payable + type: constructor + items: + $ref: "#/components/schemas/AbiFunction" + type: array type: array - paging: - $ref: "#/components/schemas/Paging" + attributes: + allOf: + - $ref: "#/components/schemas/ContractAttributes" + description: The attributes related to this contract template. It will be + displayed in the tokenization page + example: + useCases: + - Stablecoin + - CBDC + standards: + - ERC-20 + - ERC-1400 + auditor: + name: MyAuditor + imageURL: https://my-images.com/my-image.jpg + link: https://my-auditor.com/my-audit-report required: - - data + - abi + - bytecode + - description + - name type: object - CreateVaultAccountConnectionRequest: + ContractTemplateDto: example: - vaultAccountId: 1 - chainIds: - - ETH - feeLevel: MEDIUM - uri: wc:77752975-906f-48f5-b59f-047826ee947e@1?bridge=https%3A%2F%2F0.bridge.walletconnect.org&key=64be99adc6086b7a729b0ec8c7e1f174927ab92e84f5c6f9527050225344a637 + longDescription: | + a full ERC20 implementation, containing the following: + + - mint + - burn + owner: b70701f4-d7b1-4795-a8ee-b09cdb5b850d + description: an ERC20 implementation + abi: + - - inputs: + - internalType: address + name: implementation + type: address + - internalType: bytes + name: _data + type: bytes + stateMutability: payable + type: constructor + - - inputs: + - internalType: address + name: implementation + type: address + - internalType: bytes + name: _data + type: bytes + stateMutability: payable + type: constructor + initializationPhase: ON_DEPLOYMENT + type: FUNGIBLE_TOKEN + docs: + details: "This contract implements an upgradeable proxy. It is upgradeable\ + \ because calls are delegated to an implementation address that can be\ + \ changed. This address is stored in storage in the location specified\ + \ by https://eips.ethereum.org/EIPS/eip-1967[EIP1967], so that it doesn't\ + \ conflict with the storage layout of the implementation behind the proxy." + errors: + ERC1967NonPayable(): + - details: An upgrade function sees `msg.value > 0` that may be lost. + events: + Upgraded(address): + details: Emitted when the implementation is upgraded. + kind: dev + methods: + constructor: + details: "Initializes the upgradeable proxy with an initial implementation\ + \ specified by `implementation`. If `_data` is nonempty, it's used\ + \ as data in a delegate call to `implementation`. This will typically\ + \ be an encoded function call, and allows initializing the storage\ + \ of the proxy like a Solidity constructor. Requirements: - If `data`\ + \ is empty, `msg.value` must be zero." + version: 1 + canDeploy: true + vendor: "" + name: My Contract + implementationContractId: implementationContractId + isPublic: true + attributes: + useCases: + - Stablecoin + - CBDC + standards: + - ERC-20 + - ERC-1400 + auditor: + name: MyAuditor + imageURL: https://my-images.com/my-image.jpg + link: https://my-auditor.com/my-audit-report + id: b70701f4-d7b1-4795-a8ee-b09cdb5b850d properties: - vaultAccountId: - description: The ID of the vault to connect to the dApp. - example: 1 - type: number - feeLevel: - description: The default fee level. Valid values are `MEDIUM` and `HIGH`. - enum: - - MEDIUM - - HIGH - example: MEDIUM + id: + description: The unique identifier of the contract template + example: b70701f4-d7b1-4795-a8ee-b09cdb5b850d type: string - uri: - description: The WalletConnect uri provided by the dapp. - example: wc:77752975-906f-48f5-b59f-047826ee947e@1?bridge=https%3A%2F%2F0.bridge.walletconnect.org&key=64be99adc6086b7a729b0ec8c7e1f174927ab92e84f5c6f9527050225344a637 + name: + description: The name of the contract template + example: My Contract type: string - chainIds: - description: The IDs of the blockchain networks used in the Web3 connection - (Currently required in V1 connections only). - example: - - ETH + description: + description: A short description of the contract template + example: an ERC20 implementation + type: string + longDescription: + description: "A full description of the contract template. May contain \n\ + \ to break the lines" + example: | + a full ERC20 implementation, containing the following: + + - mint + - burn + type: string + abi: items: - type: string + description: The abi of the contract template. Necessary for displaying + and for after deployment encoding + example: + - inputs: + - internalType: address + name: implementation + type: address + - internalType: bytes + name: _data + type: bytes + stateMutability: payable + type: constructor + items: + $ref: "#/components/schemas/AbiFunction" + type: array type: array - required: - - feeLevel - - uri - - vaultAccountId - type: object - CreateNcwConnectionRequest: - properties: - ncwId: - description: The ID of the Non-Custodial Wallet to connect to the dApp. - example: b8337f1d-bd61-4d6c-afc1-4c9d60aa2132 + attributes: + allOf: + - $ref: "#/components/schemas/ContractAttributes" + description: The attributes related to this contract template. It will be + displayed in the tokenization page + example: + useCases: + - Stablecoin + - CBDC + standards: + - ERC-20 + - ERC-1400 + auditor: + name: MyAuditor + imageURL: https://my-images.com/my-image.jpg + link: https://my-auditor.com/my-audit-report + docs: + allOf: + - $ref: "#/components/schemas/ContractDoc" + description: A `natspec` compliant documentation json. Can be retrieved + from the output json after compilation + example: + details: "This contract implements an upgradeable proxy. It is upgradeable\ + \ because calls are delegated to an implementation address that can\ + \ be changed. This address is stored in storage in the location specified\ + \ by https://eips.ethereum.org/EIPS/eip-1967[EIP1967], so that it doesn't\ + \ conflict with the storage layout of the implementation behind the\ + \ proxy." + errors: + ERC1967NonPayable(): + - details: An upgrade function sees `msg.value > 0` that may be lost. + events: + Upgraded(address): + details: Emitted when the implementation is upgraded. + kind: dev + methods: + constructor: + details: "Initializes the upgradeable proxy with an initial implementation\ + \ specified by `implementation`. If `_data` is nonempty, it's used\ + \ as data in a delegate call to `implementation`. This will typically\ + \ be an encoded function call, and allows initializing the storage\ + \ of the proxy like a Solidity constructor. Requirements: - If `data`\ + \ is empty, `msg.value` must be zero." + version: 1 + owner: + description: "The workspace id of the owner of this contract template. If\ + \ it's a private contract, only this workspace will be allowed to deploy\ + \ it" + example: b70701f4-d7b1-4795-a8ee-b09cdb5b850d type: string - ncwAccountId: - description: The NCW account ID to connect to the dApp. - example: 1 - type: number - feeLevel: - description: The default fee level. Valid values are `MEDIUM` and `HIGH`. + vendor: + allOf: + - $ref: "#/components/schemas/VendorDto" + description: The details of the vendor of this contract template. Applicable + only for public contract templates + isPublic: + description: Is this a contract that is viewable by all fireblocks's users + or is it visible only for this workspace + example: true + type: boolean + canDeploy: + description: "True if the workspace allowed to deploy this contract, false\ + \ otherwise" + example: true + type: boolean + type: + description: The type of the contract template enum: - - MEDIUM - - HIGH - example: MEDIUM + - FUNGIBLE_TOKEN + - NON_FUNGIBLE_TOKEN + - NON_TOKEN + - TOKEN_EXTENSION + - TOKEN_UTILITY + example: FUNGIBLE_TOKEN type: string - uri: - description: The WalletConnect uri provided by the dapp. - example: wc:77752975-906f-48f5-b59f-047826ee947e@1?bridge=https%3A%2F%2F0.bridge.walletconnect.org&key=64be99adc6086b7a729b0ec8c7e1f174927ab92e84f5c6f9527050225344a637 + implementationContractId: type: string - chainIds: - description: The IDs of the blockchain networks used in the Web3 connection - (Currently required in V1 connections only). - example: - - ETH - items: - type: string - type: array - required: - - feeLevel - - ncwAccountId - - ncwId - - uri - type: object - CreateConnectionRequest: - oneOf: - - $ref: "#/components/schemas/CreateVaultAccountConnectionRequest" - - $ref: "#/components/schemas/CreateNcwConnectionRequest" - CreateConnectionResponse: - example: - sessionMetadata: "" - id: 4e9e7051-f3b2-48e9-8ee6-b12492552657 - properties: - id: - description: The ID of the Web3 connection initiated. - example: 4e9e7051-f3b2-48e9-8ee6-b12492552657 + initializationPhase: + enum: + - ON_DEPLOYMENT + - POST_DEPLOYMENT type: string - sessionMetadata: - allOf: - - $ref: "#/components/schemas/SessionMetadata" - description: Metadata of the Web3 connection (provided by the DApp). required: + - abi + - description - id - - sessionMetadata + - initializationPhase + - isPublic + - name type: object - RespondToConnectionRequest: + HttpContractDoesNotExistError: example: - approve: true - properties: - approve: - description: Approval of the initiated Web3 connection. - example: true - type: boolean - required: - - approve - type: object - TravelRuleNotationEnum: - items: - enum: - - fireblocks - - notabene - type: string - type: array - TravelRuleAddress: + code: "404" + message: Contract does not exist properties: - street: - description: Street address - example: 1234 Example St - type: string - city: - description: City - example: New York - type: string - state: - description: State or province - example: NY + message: + description: Not Found error code + example: Contract does not exist type: string - postalCode: - description: Postal or ZIP code - example: "10001" + code: + description: Error code + example: "404" type: string type: object - TravelRuleValidateTransactionRequest: - properties: - transactionAsset: - description: "Transaction asset symbol (BTC,ETH)" - example: BTC - type: string - destination: - description: Transaction destination address - example: bc1qxy2kgdygjrsqtzq2n0yrf1234p83kkfjhx0wlh + ParameterWithValue: + example: + components: + - components: + - null + - null + name: _name + description: The name of the token + internalType: string type: string - transactionAmount: - description: Transaction amount in the transaction asset - example: "10" + - components: + - null + - null + name: _name + description: The name of the token + internalType: string type: string - transactionAssetDecimals: - description: Number of decimals in the transaction asset. This is used to - convert the transaction amount to the smallest unit of the asset - example: 8 - type: number - originatorVASPdid: - description: This is the identifier assigned to your VASP - example: did:ethr:0x44957e75d6ce4a5bf37aae117da86422c848f7c2 + name: _name + description: The name of the token + functionValue: "" + internalType: string + type: string + value: "true" + properties: + name: + description: The name of the parameter as it appears in the ABI + example: _name type: string - originatorEqualsBeneficiary: - description: '"True" if the originator and beneficiary is the same person - and you therefore do not need to collect any information. "False" if it - is a third-party transfer.' - example: false - type: boolean - travelRuleBehavior: - description: This will also check if the transaction is a TRAVEL_RULE in - the beneficiary VASP's jurisdiction - example: true - type: boolean - beneficiaryVASPdid: - description: This is the identifier assigned to the VASP the funds are being - sent to - example: did:ethr:0x46a7ed5813ce735387df2bfb245bd7722e0de992 + description: + description: "A description of the parameter, fetched from the devdoc of\ + \ this contract" + example: The name of the token type: string - beneficiaryVASPname: - description: Beneficiary VASP name - example: HelloCrypto + internalType: + description: The internal type of the parameter as it appears in the ABI + example: string type: string - beneficiaryName: - description: Beneficiary name - example: John Doe + type: + description: The type of the parameter as it appears in the ABI + example: string type: string - beneficiaryAccountNumber: - description: Beneficiary name - example: 1234-1234-1234-12234 + components: + items: + $ref: "#/components/schemas/Parameter" + type: array + value: + description: The value of the parameter. can also be ParameterWithValue + example: "true" type: string - beneficiaryAddress: - $ref: "#/components/schemas/TravelRuleAddress" + functionValue: + allOf: + - $ref: "#/components/schemas/LeanAbiFunction" + description: "The function value of this param (if has one). If this is\ + \ set, the `value` shouldn`t be. Used for proxies" required: - - destination - - originatorEqualsBeneficiary - - originatorVASPdid - - transactionAmount - - transactionAsset + - name + - type type: object - TravelRuleValidateTransactionResponse: - example: - beneficiaryVASPname: Fireblocks - addressSource: UNKNOWN - beneficiaryAddressType: UNKNOWN - isValid: true - warnings: - - optional-beneficiaryAccountNumber - type: TRAVELRULE - beneficiaryVASPdid: did:ethr:0x46a7ed5813ce735387df2bfb245bd7722e0de992 + LeanAbiFunction: properties: - isValid: - description: "\"isValid\" will tell you if you have collected all the information\ - \ needed for the travel rule data transfer. Once this field = \"true\"\ - , you can move on to the next step which is to transfer the front-end\ - \ information to your back-end and perform Travel Rule Transaction create" - example: true - type: boolean - type: - description: "\"type\" will tell you if the virtual asset value converted\ - \ to FIAT value of the withdrawal request is above (=TRAVELRULE) or below\ - \ (=BELOW_THRESHOLD) the threshold in your jurisdiction. If it is to an\ - \ unhosted wallet which does not require travel rule information to be\ - \ sent and only collected, it will say NON_CUSTODIAL." - example: TRAVELRULE + name: + description: The function name + example: initialize type: string - beneficiaryAddressType: - description: '"beneficiaryAddressType" will tell you if your blockchain - analytics provider or internal address book has been able to identify - the wallet address.' - enum: - - UNKNOWN - - HOSTED - - UNHOSTED - example: UNKNOWN + inputs: + description: The function inputs + items: + $ref: "#/components/schemas/ParameterWithValue" + type: array + required: + - inputs + type: object + ContractDeployRequest: + example: + assetId: ETH_TEST5 + constructorParameters: + - internalType: string + name: name_ type: string - addressSource: - description: '"addressSource" will tell you if the address was found in - your internal address book or identified by the blockchain analytics provider.' - enum: - - UNKNOWN - - ADDRESS_HASH - - ADDRESS_GRAPH - - CHAINALYSIS - - ELLIPTIC - - CRYSTAL - example: UNKNOWN + value: TokenName + - internalType: string + name: symbol_ type: string - beneficiaryVASPdid: - description: The VASP DID of the beneficiary VASP - example: did:ethr:0x46a7ed5813ce735387df2bfb245bd7722e0de992 + value: TokenSymbol + vaultAccountId: "0" + properties: + assetId: + description: The base asset identifier of the blockchain you want to deploy + to + example: ETH_TEST5 type: string - beneficiaryVASPname: - description: '"beneficiaryVASPname" will tell you the name of the VASP that - has been identified as the owner of the wallet address. This name is used - in a subsequent call to get its DID.' - example: Fireblocks + vaultAccountId: + description: The vault account id you wish to deploy from + example: "0" type: string - warnings: - description: '"errors/warnings" will tell you what information about the - beneficiary you need to collect from the sender.' + constructorParameters: + description: The constructor parameters of this contract example: - - optional-beneficiaryAccountNumber - items: + - internalType: string + name: name_ + type: string + value: TokenName + - internalType: string + name: symbol_ type: string + value: TokenSymbol + items: + $ref: "#/components/schemas/ParameterWithValue" type: array required: - - addressSource - - beneficiaryAddressType - - beneficiaryVASPdid - - beneficiaryVASPname - - isValid - - type - - warnings + - assetId + - vaultAccountId type: object - TravelRuleValidateNaturalNameIdentifier: - example: - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - properties: - primaryIdentifier: - description: The primary identifier of the name - example: John - type: string - secondaryIdentifier: - description: The secondary identifier of the name - example: Doe - type: string - nameIdentifierType: - description: "Specifies the type of name for a natural person. Acceptable\ - \ values are: - 'ALIA': Alias name, a name other than the legal name by\ - \ which a natural person is also known. - 'BIRT': Name at birth, the name\ - \ given to a natural person at birth. - 'MAID': Maiden name, the original\ - \ name of a natural person who has changed their name after marriage.\ - \ - 'LEGL': Legal name, the name that identifies a natural person for\ - \ legal, official, or administrative purposes. - 'MISC': Unspecified,\ - \ a name by which a natural person may be known but cannot otherwise be\ - \ categorized." - enum: - - ALIA - - BIRT - - MAID - - LEGL - - MISC - example: LEGL - type: string - type: object - TravelRuleValidateNaturalPersonNameIdentifier: - example: - localNameIdentifier: - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - phoneticNameIdentifier: - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - nameIdentifier: - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - properties: - nameIdentifier: - items: - $ref: "#/components/schemas/TravelRuleValidateNaturalNameIdentifier" - type: array - localNameIdentifier: - items: - $ref: "#/components/schemas/TravelRuleValidateNaturalNameIdentifier" - type: array - phoneticNameIdentifier: - items: - $ref: "#/components/schemas/TravelRuleValidateNaturalNameIdentifier" - type: array + ContractDeployResponse: + example: + txId: b70701f4-d7b1-4795-a8ee-b09cdb5b850d + properties: + txId: + description: The transaction id of the deployment request + example: b70701f4-d7b1-4795-a8ee-b09cdb5b850d + type: string + required: + - txId type: object - TravelRuleValidateGeographicAddress: - example: - country: US - townName: New York - townLocationName: Downtown - districtName: Manhattan - countrySubDivision: New York - postBox: "123" - addressType: HOME - subDepartment: Security - addressLine: - - 123 Main St - - New York - - NY 12345 - room: "101" - buildingName: Acme Building - streetName: 123 Main St - buildingNumber: "123" - postCode: "12345" - department: IT - floor: "1" - properties: - streetName: - description: Name of a street or thoroughfare - example: 123 Main St - type: string - townName: - description: "Name of a built-up area, with defined boundaries, and a local\ - \ government" - example: New York + LeanDeployedContractResponseDto: + example: + contractTemplateId: b70701f4-d7b1-4795-a8ee-b09cdb5b850d + contractAddress: 0xC2c4e1Db41F0bB97996D0eD0542D2170d146FB66 + id: b70701f4-d7b1-4795-a8ee-b09cdb5b850d + blockchainId: blockchainId + properties: + id: + description: The deployed contract data identifier + example: b70701f4-d7b1-4795-a8ee-b09cdb5b850d type: string - country: - description: Nation with its own government (ISO-3166 Alpha-2 country code) - example: US + contractAddress: + description: The contract's onchain address + example: 0xC2c4e1Db41F0bB97996D0eD0542D2170d146FB66 type: string - buildingNumber: - description: Number that identifies the position of a building on a street - example: "123" + contractTemplateId: + description: The contract template identifier + example: b70701f4-d7b1-4795-a8ee-b09cdb5b850d type: string - postCode: - description: Identifier consisting of a group of letters and/or numbers - added to a postal address to assist the sorting of mail - example: "12345" + blockchainId: type: string - addressType: - description: "Specifies the type of address. Acceptable values are: - 'HOME':\ - \ Residential, the home address - 'BIZZ': Business, the business address\ - \ - 'GEOG': Geographic, an unspecified physical (geographical) address" - enum: - - HOME - - BIZZ - - GEOG - example: HOME - type: string - department: - description: Identification of a division of a large organisation or building - example: IT - type: string - subDepartment: - description: Identification of a sub-division of a large organisation or - building - example: Security - type: string - buildingName: - description: Name of the building or house - example: Acme Building - type: string - floor: - description: Floor or storey within a building - example: "1" + required: + - blockchainId + - contractAddress + - contractTemplateId + - id + type: object + DeployedContractsPaginatedResponse: + example: + next: eJ0eXAiOiJKV1QiLCJhbGcOiJIUzI1NiJ9 + data: + - contractTemplateId: b70701f4-d7b1-4795-a8ee-b09cdb5b850d + contractAddress: 0xC2c4e1Db41F0bB97996D0eD0542D2170d146FB66 + id: b70701f4-d7b1-4795-a8ee-b09cdb5b850d + blockchainId: blockchainId + - contractTemplateId: b70701f4-d7b1-4795-a8ee-b09cdb5b850d + contractAddress: 0xC2c4e1Db41F0bB97996D0eD0542D2170d146FB66 + id: b70701f4-d7b1-4795-a8ee-b09cdb5b850d + blockchainId: blockchainId + properties: + data: + description: The data of the current page + items: + $ref: "#/components/schemas/LeanDeployedContractResponseDto" + type: array + next: + description: The ID of the next page + example: eJ0eXAiOiJKV1QiLCJhbGcOiJIUzI1NiJ9 + nullable: true type: string - postBox: - description: Numbered box in a post office - example: "123" + required: + - data + type: object + DeployedContractResponseDto: + example: + contractTemplateId: b70701f4-d7b1-4795-a8ee-b09cdb5b850d + contractAddress: 0xC2c4e1Db41F0bB97996D0eD0542D2170d146FB66 + vaultAccountId: "0" + id: b70701f4-d7b1-4795-a8ee-b09cdb5b850d + blockchainId: blockchainId + properties: + id: + description: The deployed contract data identifier + example: b70701f4-d7b1-4795-a8ee-b09cdb5b850d type: string - room: - description: Building room number - example: "101" + contractAddress: + description: The contract's onchain address + example: 0xC2c4e1Db41F0bB97996D0eD0542D2170d146FB66 type: string - townLocationName: - description: Specific location name within the town - example: Downtown + contractTemplateId: + description: The contract template identifier + example: b70701f4-d7b1-4795-a8ee-b09cdb5b850d type: string - districtName: - description: Identifies a subdivision within a country subdivision - example: Manhattan + vaultAccountId: + description: The vault account id this contract was deploy from + example: "0" type: string - countrySubDivision: - description: "Identifies a subdivision of a country such as state, region,\ - \ or province" - example: New York + blockchainId: type: string - addressLine: - description: "Information that locates and identifies a specific address,\ - \ presented in free format text" - example: - - 123 Main St - - New York - - NY 12345 - items: - type: string - type: array + required: + - blockchainId + - contractAddress + - contractTemplateId + - id type: object - TravelRuleValidateNationalIdentification: - description: Represents a national identifier for a person or entity + AssetMetadataDto: example: - nationalIdentifierType: NATIONAL_ID - countryOfIssue: US - registrationAuthority: RA123456 - nationalIdentifier: "123456789" + symbol: MYT + holdersCount: 6 + totalSupply: "1000000000000000" + contractAddress: 0x1234567890abcdef1234567890abcdef12345678 + vaultAccountId: "0" + type: ERC20 + blockchain: ETH_TEST5 + assetId: BQ5R_MY_TOKEN + issuerAddress: rGyXjc5d7s17vvt3NtKKascvJrnSxV21kQ + decimals: 18 + name: MyToken + testnet: true + networkProtocol: ETH properties: - countryOfIssue: - description: Country that issued the national identifier (ISO-3166 Alpha-2 - country code) - example: US - type: string - nationalIdentifier: - description: National identifier (max 35 characters) - example: "123456789" - maxLength: 35 + assetId: + description: The Fireblocks` asset id + example: BQ5R_MY_TOKEN type: string - nationalIdentifierType: - description: "Type of national identifier. Acceptable values include: -\ - \ 'PASSPORT': Passport number - 'NATIONAL_ID': National identification\ - \ number - 'TAX_ID': Tax identification number - 'SOCIAL_SECURITY': Social\ - \ security number" - enum: - - PASSPORT - - NATIONAL_ID - - TAX_ID - - SOCIAL_SECURITY - example: NATIONAL_ID + name: + description: The name of the token + example: MyToken type: string - registrationAuthority: - description: Registration authority (format -> RA followed by 6 digits) - example: RA123456 - pattern: "^RA\\d{6}$" + symbol: + description: The symbol of the token + example: MYT type: string - type: object - TravelRuleValidateDateAndPlaceOfBirth: - description: Represents the date and place of birth for a natural person - example: - placeOfBirth: "New York, USA" - dateOfBirth: 1990-01-01 - properties: - dateOfBirth: - description: Date of birth in ISO 8601 format (YYYY-MM-DD) - example: 1990-01-01 + networkProtocol: + description: The network protocol of the token + example: ETH type: string - placeOfBirth: - description: Place of birth - example: "New York, USA" + totalSupply: + description: The total supply of the token + example: "1000000000000000" type: string - type: object - TravelRuleValidateNaturalPerson: - example: - dateAndPlaceOfBirth: - placeOfBirth: "New York, USA" - dateOfBirth: 1990-01-01 - name: - - localNameIdentifier: - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - phoneticNameIdentifier: - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - nameIdentifier: - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - localNameIdentifier: - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - phoneticNameIdentifier: - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - nameIdentifier: - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - nationalIdentification: - nationalIdentifierType: NATIONAL_ID - countryOfIssue: US - registrationAuthority: RA123456 - nationalIdentifier: "123456789" - geographicAddress: - - country: US - townName: New York - townLocationName: Downtown - districtName: Manhattan - countrySubDivision: New York - postBox: "123" - addressType: HOME - subDepartment: Security - addressLine: - - 123 Main St - - New York - - NY 12345 - room: "101" - buildingName: Acme Building - streetName: 123 Main St - buildingNumber: "123" - postCode: "12345" - department: IT - floor: "1" - - country: US - townName: New York - townLocationName: Downtown - districtName: Manhattan - countrySubDivision: New York - postBox: "123" - addressType: HOME - subDepartment: Security - addressLine: - - 123 Main St - - New York - - NY 12345 - room: "101" - buildingName: Acme Building - streetName: 123 Main St - buildingNumber: "123" - postCode: "12345" - department: IT - floor: "1" - countryOfResidence: US - customerNumber: "123456789" - customerIdentification: CUST123456 - properties: - name: - description: "An array of structured name identifiers for the natural person,\ - \ referencing the TravelRuleNaturalPersonNameIdentifier schema." - items: - $ref: "#/components/schemas/TravelRuleValidateNaturalPersonNameIdentifier" - type: array - geographicAddress: - description: "An array of geographic addresses associated with the natural\ - \ person, referencing the TravelRuleGeographicAddress schema." - items: - $ref: "#/components/schemas/TravelRuleValidateGeographicAddress" - type: array - nationalIdentification: - $ref: "#/components/schemas/TravelRuleValidateNationalIdentification" - dateAndPlaceOfBirth: - $ref: "#/components/schemas/TravelRuleValidateDateAndPlaceOfBirth" - customerIdentification: - description: A unique identifier for the customer within the organization's - context. - example: CUST123456 + holdersCount: + description: The number of holders of the token + example: 6 + type: number + type: + description: The type of the token + example: ERC20 type: string - countryOfResidence: - description: The ISO-3166 Alpha-2 country code of the natural person's residence. - example: US + contractAddress: + description: The address of the token contract + example: 0x1234567890abcdef1234567890abcdef12345678 type: string - customerNumber: - description: A distinct identifier that uniquely identifies the customer - within the organization. - example: "123456789" + issuerAddress: + description: "In case of Stellar or Ripple, the address of the issuer of\ + \ the token" + example: rGyXjc5d7s17vvt3NtKKascvJrnSxV21kQ type: string - type: object - TravelRuleValidateLegalPersonNameIdentifier: - example: - legalPersonNameIdentifierType: REGISTERED - legalPersonName: Acme Corporation - properties: - legalPersonName: - description: Name by which the legal person is known. - example: Acme Corporation - maxLength: 100 + testnet: + description: Is it deployed on testnet or to mainnet + example: true + type: boolean + blockchain: + description: The blockchain native asset id which the token is deployed + on + example: ETH_TEST5 type: string - legalPersonNameIdentifierType: - description: "Specifies the type of name for a legal person. Acceptable\ - \ values are: - 'REGISTERED': The official registered name. - 'TRADE':\ - \ A trading name or DBA (Doing Business As) name. - 'OTHER': Any other\ - \ type of name." - enum: - - REGISTERED - - TRADE - - OTHER - example: REGISTERED + decimals: + description: The number of decimals of the token + example: 18 + type: number + vaultAccountId: + description: The id of the vault account that initiated the request to issue + the token. Will be empty if token was issued outside of Fireblocks. + example: "0" type: string + required: + - assetId type: object - TravelRuleValidateLegalPerson: - example: - name: - legalPersonNameIdentifierType: REGISTERED - legalPersonName: Acme Corporation - nationalIdentification: - nationalIdentifierType: NATIONAL_ID - countryOfIssue: US - registrationAuthority: RA123456 - nationalIdentifier: "123456789" - geographicAddress: - - country: US - townName: New York - townLocationName: Downtown - districtName: Manhattan - countrySubDivision: New York - postBox: "123" - addressType: HOME - subDepartment: Security - addressLine: - - 123 Main St - - New York - - NY 12345 - room: "101" - buildingName: Acme Building - streetName: 123 Main St - buildingNumber: "123" - postCode: "12345" - department: IT - floor: "1" - - country: US - townName: New York - townLocationName: Downtown - districtName: Manhattan - countrySubDivision: New York - postBox: "123" - addressType: HOME - subDepartment: Security - addressLine: - - 123 Main St - - New York - - NY 12345 - room: "101" - buildingName: Acme Building - streetName: 123 Main St - buildingNumber: "123" - postCode: "12345" - department: IT - floor: "1" - customerNumber: "123456789" - customerIdentification: CUST987654 - countryOfRegistration: US + CollectionMetadataDto: properties: + fbCollectionId: + description: Fireblocks collection id + example: 911fe739f0d4d123c98fd366c3bed35c6e30c00e + type: string name: - $ref: "#/components/schemas/TravelRuleValidateLegalPersonNameIdentifier" - geographicAddress: - description: The array of geographic addresses associated with the legal - person. - items: - $ref: "#/components/schemas/TravelRuleValidateGeographicAddress" - type: array - nationalIdentification: - $ref: "#/components/schemas/TravelRuleValidateNationalIdentification" - customerIdentification: - description: A unique identifier that identifies the customer in the organization's - context. - example: CUST987654 + description: Collection name + example: Rarible type: string - customerNumber: - description: A distinct identifier that uniquely identifies the customer - within the organization. - example: "123456789" + symbol: + description: Collection symbol + example: RARI type: string - countryOfRegistration: - description: The ISO-3166 Alpha-2 country code where the legal person is - registered. - example: US + standard: + description: Collection contract standard + example: ERC721 type: string + blockchainDescriptor: + description: Collection's blockchain + example: ETH_TEST5 + type: string + contractAddress: + description: Collection contract address + example: 0x1723017329a804564bC8d215496C89eaBf1F3211 + type: string + required: + - blockchainDescriptor + - fbCollectionId type: object - TravelRuleValidatePerson: - example: - legalPerson: - name: - legalPersonNameIdentifierType: REGISTERED - legalPersonName: Acme Corporation - nationalIdentification: - nationalIdentifierType: NATIONAL_ID - countryOfIssue: US - registrationAuthority: RA123456 - nationalIdentifier: "123456789" - geographicAddress: - - country: US - townName: New York - townLocationName: Downtown - districtName: Manhattan - countrySubDivision: New York - postBox: "123" - addressType: HOME - subDepartment: Security - addressLine: - - 123 Main St - - New York - - NY 12345 - room: "101" - buildingName: Acme Building - streetName: 123 Main St - buildingNumber: "123" - postCode: "12345" - department: IT - floor: "1" - - country: US - townName: New York - townLocationName: Downtown - districtName: Manhattan - countrySubDivision: New York - postBox: "123" - addressType: HOME - subDepartment: Security - addressLine: - - 123 Main St - - New York - - NY 12345 - room: "101" - buildingName: Acme Building - streetName: 123 Main St - buildingNumber: "123" - postCode: "12345" - department: IT - floor: "1" - customerNumber: "123456789" - customerIdentification: CUST987654 - countryOfRegistration: US - naturalPerson: - dateAndPlaceOfBirth: - placeOfBirth: "New York, USA" - dateOfBirth: 1990-01-01 - name: - - localNameIdentifier: - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - phoneticNameIdentifier: - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - nameIdentifier: - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - localNameIdentifier: - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - phoneticNameIdentifier: - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - nameIdentifier: - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - nationalIdentification: - nationalIdentifierType: NATIONAL_ID - countryOfIssue: US - registrationAuthority: RA123456 - nationalIdentifier: "123456789" - geographicAddress: - - country: US - townName: New York - townLocationName: Downtown - districtName: Manhattan - countrySubDivision: New York - postBox: "123" - addressType: HOME - subDepartment: Security - addressLine: - - 123 Main St - - New York - - NY 12345 - room: "101" - buildingName: Acme Building - streetName: 123 Main St - buildingNumber: "123" - postCode: "12345" - department: IT - floor: "1" - - country: US - townName: New York - townLocationName: Downtown - districtName: Manhattan - countrySubDivision: New York - postBox: "123" - addressType: HOME - subDepartment: Security - addressLine: - - 123 Main St - - New York - - NY 12345 - room: "101" - buildingName: Acme Building - streetName: 123 Main St - buildingNumber: "123" - postCode: "12345" - department: IT - floor: "1" - countryOfResidence: US - customerNumber: "123456789" - customerIdentification: CUST123456 - properties: - naturalPerson: - $ref: "#/components/schemas/TravelRuleValidateNaturalPerson" - legalPerson: - $ref: "#/components/schemas/TravelRuleValidateLegalPerson" - type: object - TravelRuleValidatePiiIVMS: - description: Information about the originator of the transaction. - example: - originatorPersons: - - legalPerson: - name: - legalPersonNameIdentifierType: REGISTERED - legalPersonName: Acme Corporation - nationalIdentification: - nationalIdentifierType: NATIONAL_ID - countryOfIssue: US - registrationAuthority: RA123456 - nationalIdentifier: "123456789" - geographicAddress: - - country: US - townName: New York - townLocationName: Downtown - districtName: Manhattan - countrySubDivision: New York - postBox: "123" - addressType: HOME - subDepartment: Security - addressLine: - - 123 Main St - - New York - - NY 12345 - room: "101" - buildingName: Acme Building - streetName: 123 Main St - buildingNumber: "123" - postCode: "12345" - department: IT - floor: "1" - - country: US - townName: New York - townLocationName: Downtown - districtName: Manhattan - countrySubDivision: New York - postBox: "123" - addressType: HOME - subDepartment: Security - addressLine: - - 123 Main St - - New York - - NY 12345 - room: "101" - buildingName: Acme Building - streetName: 123 Main St - buildingNumber: "123" - postCode: "12345" - department: IT - floor: "1" - customerNumber: "123456789" - customerIdentification: CUST987654 - countryOfRegistration: US - naturalPerson: - dateAndPlaceOfBirth: - placeOfBirth: "New York, USA" - dateOfBirth: 1990-01-01 - name: - - localNameIdentifier: - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - phoneticNameIdentifier: - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - nameIdentifier: - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - localNameIdentifier: - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - phoneticNameIdentifier: - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - nameIdentifier: - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - nationalIdentification: - nationalIdentifierType: NATIONAL_ID - countryOfIssue: US - registrationAuthority: RA123456 - nationalIdentifier: "123456789" - geographicAddress: - - country: US - townName: New York - townLocationName: Downtown - districtName: Manhattan - countrySubDivision: New York - postBox: "123" - addressType: HOME - subDepartment: Security - addressLine: - - 123 Main St - - New York - - NY 12345 - room: "101" - buildingName: Acme Building - streetName: 123 Main St - buildingNumber: "123" - postCode: "12345" - department: IT - floor: "1" - - country: US - townName: New York - townLocationName: Downtown - districtName: Manhattan - countrySubDivision: New York - postBox: "123" - addressType: HOME - subDepartment: Security - addressLine: - - 123 Main St - - New York - - NY 12345 - room: "101" - buildingName: Acme Building - streetName: 123 Main St - buildingNumber: "123" - postCode: "12345" - department: IT - floor: "1" - countryOfResidence: US - customerNumber: "123456789" - customerIdentification: CUST123456 - - legalPerson: - name: - legalPersonNameIdentifierType: REGISTERED - legalPersonName: Acme Corporation - nationalIdentification: - nationalIdentifierType: NATIONAL_ID - countryOfIssue: US - registrationAuthority: RA123456 - nationalIdentifier: "123456789" - geographicAddress: - - country: US - townName: New York - townLocationName: Downtown - districtName: Manhattan - countrySubDivision: New York - postBox: "123" - addressType: HOME - subDepartment: Security - addressLine: - - 123 Main St - - New York - - NY 12345 - room: "101" - buildingName: Acme Building - streetName: 123 Main St - buildingNumber: "123" - postCode: "12345" - department: IT - floor: "1" - - country: US - townName: New York - townLocationName: Downtown - districtName: Manhattan - countrySubDivision: New York - postBox: "123" - addressType: HOME - subDepartment: Security - addressLine: - - 123 Main St - - New York - - NY 12345 - room: "101" - buildingName: Acme Building - streetName: 123 Main St - buildingNumber: "123" - postCode: "12345" - department: IT - floor: "1" - customerNumber: "123456789" - customerIdentification: CUST987654 - countryOfRegistration: US - naturalPerson: - dateAndPlaceOfBirth: - placeOfBirth: "New York, USA" - dateOfBirth: 1990-01-01 - name: - - localNameIdentifier: - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - phoneticNameIdentifier: - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - nameIdentifier: - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - localNameIdentifier: - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - phoneticNameIdentifier: - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - nameIdentifier: - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - nationalIdentification: - nationalIdentifierType: NATIONAL_ID - countryOfIssue: US - registrationAuthority: RA123456 - nationalIdentifier: "123456789" - geographicAddress: - - country: US - townName: New York - townLocationName: Downtown - districtName: Manhattan - countrySubDivision: New York - postBox: "123" - addressType: HOME - subDepartment: Security - addressLine: - - 123 Main St - - New York - - NY 12345 - room: "101" - buildingName: Acme Building - streetName: 123 Main St - buildingNumber: "123" - postCode: "12345" - department: IT - floor: "1" - - country: US - townName: New York - townLocationName: Downtown - districtName: Manhattan - countrySubDivision: New York - postBox: "123" - addressType: HOME - subDepartment: Security - addressLine: - - 123 Main St - - New York - - NY 12345 - room: "101" - buildingName: Acme Building - streetName: 123 Main St - buildingNumber: "123" - postCode: "12345" - department: IT - floor: "1" - countryOfResidence: US - customerNumber: "123456789" - customerIdentification: CUST123456 - beneficiaryPersons: - - legalPerson: - name: - legalPersonNameIdentifierType: REGISTERED - legalPersonName: Acme Corporation - nationalIdentification: - nationalIdentifierType: NATIONAL_ID - countryOfIssue: US - registrationAuthority: RA123456 - nationalIdentifier: "123456789" - geographicAddress: - - country: US - townName: New York - townLocationName: Downtown - districtName: Manhattan - countrySubDivision: New York - postBox: "123" - addressType: HOME - subDepartment: Security - addressLine: - - 123 Main St - - New York - - NY 12345 - room: "101" - buildingName: Acme Building - streetName: 123 Main St - buildingNumber: "123" - postCode: "12345" - department: IT - floor: "1" - - country: US - townName: New York - townLocationName: Downtown - districtName: Manhattan - countrySubDivision: New York - postBox: "123" - addressType: HOME - subDepartment: Security - addressLine: - - 123 Main St - - New York - - NY 12345 - room: "101" - buildingName: Acme Building - streetName: 123 Main St - buildingNumber: "123" - postCode: "12345" - department: IT - floor: "1" - customerNumber: "123456789" - customerIdentification: CUST987654 - countryOfRegistration: US - naturalPerson: - dateAndPlaceOfBirth: - placeOfBirth: "New York, USA" - dateOfBirth: 1990-01-01 - name: - - localNameIdentifier: - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - phoneticNameIdentifier: - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - nameIdentifier: - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - localNameIdentifier: - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - phoneticNameIdentifier: - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - nameIdentifier: - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - nationalIdentification: - nationalIdentifierType: NATIONAL_ID - countryOfIssue: US - registrationAuthority: RA123456 - nationalIdentifier: "123456789" - geographicAddress: - - country: US - townName: New York - townLocationName: Downtown - districtName: Manhattan - countrySubDivision: New York - postBox: "123" - addressType: HOME - subDepartment: Security - addressLine: - - 123 Main St - - New York - - NY 12345 - room: "101" - buildingName: Acme Building - streetName: 123 Main St - buildingNumber: "123" - postCode: "12345" - department: IT - floor: "1" - - country: US - townName: New York - townLocationName: Downtown - districtName: Manhattan - countrySubDivision: New York - postBox: "123" - addressType: HOME - subDepartment: Security - addressLine: - - 123 Main St - - New York - - NY 12345 - room: "101" - buildingName: Acme Building - streetName: 123 Main St - buildingNumber: "123" - postCode: "12345" - department: IT - floor: "1" - countryOfResidence: US - customerNumber: "123456789" - customerIdentification: CUST123456 - - legalPerson: - name: - legalPersonNameIdentifierType: REGISTERED - legalPersonName: Acme Corporation - nationalIdentification: - nationalIdentifierType: NATIONAL_ID - countryOfIssue: US - registrationAuthority: RA123456 - nationalIdentifier: "123456789" - geographicAddress: - - country: US - townName: New York - townLocationName: Downtown - districtName: Manhattan - countrySubDivision: New York - postBox: "123" - addressType: HOME - subDepartment: Security - addressLine: - - 123 Main St - - New York - - NY 12345 - room: "101" - buildingName: Acme Building - streetName: 123 Main St - buildingNumber: "123" - postCode: "12345" - department: IT - floor: "1" - - country: US - townName: New York - townLocationName: Downtown - districtName: Manhattan - countrySubDivision: New York - postBox: "123" - addressType: HOME - subDepartment: Security - addressLine: - - 123 Main St - - New York - - NY 12345 - room: "101" - buildingName: Acme Building - streetName: 123 Main St - buildingNumber: "123" - postCode: "12345" - department: IT - floor: "1" - customerNumber: "123456789" - customerIdentification: CUST987654 - countryOfRegistration: US - naturalPerson: - dateAndPlaceOfBirth: - placeOfBirth: "New York, USA" - dateOfBirth: 1990-01-01 - name: - - localNameIdentifier: - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - phoneticNameIdentifier: - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - nameIdentifier: - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - localNameIdentifier: - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - phoneticNameIdentifier: - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - nameIdentifier: - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - nationalIdentification: - nationalIdentifierType: NATIONAL_ID - countryOfIssue: US - registrationAuthority: RA123456 - nationalIdentifier: "123456789" - geographicAddress: - - country: US - townName: New York - townLocationName: Downtown - districtName: Manhattan - countrySubDivision: New York - postBox: "123" - addressType: HOME - subDepartment: Security - addressLine: - - 123 Main St - - New York - - NY 12345 - room: "101" - buildingName: Acme Building - streetName: 123 Main St - buildingNumber: "123" - postCode: "12345" - department: IT - floor: "1" - - country: US - townName: New York - townLocationName: Downtown - districtName: Manhattan - countrySubDivision: New York - postBox: "123" - addressType: HOME - subDepartment: Security - addressLine: - - 123 Main St - - New York - - NY 12345 - room: "101" - buildingName: Acme Building - streetName: 123 Main St - buildingNumber: "123" - postCode: "12345" - department: IT - floor: "1" - countryOfResidence: US - customerNumber: "123456789" - customerIdentification: CUST123456 - accountNumber: - - accountNumber - - accountNumber - properties: - originatorPersons: - description: Information about the originator of the transaction - items: - $ref: "#/components/schemas/TravelRuleValidatePerson" - type: array - beneficiaryPersons: - description: Information about the beneficiary of the transaction - items: - $ref: "#/components/schemas/TravelRuleValidatePerson" - type: array - accountNumber: - description: Beneficiary account number - items: - type: string - type: array - type: object - TravelRuleValidateFullTransactionRequest: - example: - originatorRef: ORG123456 - travelRuleBehaviorRef: TRB987654 - originatorProof: - attestation: I certify that ETH account 0x896B...0b9b belongs to me. - address: 0x896B...0b9b - proof: 0x3dd4a17a...ce4a2bcd1b - type: eip-191 - wallet_provider: Metamask - confirmed: true - url: https://example.com/uploaded_image.png - isNonCustodial: true - transactionAsset: BTC - beneficiaryRef: BEN654321 - originator: - originatorPersons: - - legalPerson: - name: - legalPersonNameIdentifierType: REGISTERED - legalPersonName: Acme Corporation - nationalIdentification: - nationalIdentifierType: NATIONAL_ID - countryOfIssue: US - registrationAuthority: RA123456 - nationalIdentifier: "123456789" - geographicAddress: - - country: US - townName: New York - townLocationName: Downtown - districtName: Manhattan - countrySubDivision: New York - postBox: "123" - addressType: HOME - subDepartment: Security - addressLine: - - 123 Main St - - New York - - NY 12345 - room: "101" - buildingName: Acme Building - streetName: 123 Main St - buildingNumber: "123" - postCode: "12345" - department: IT - floor: "1" - - country: US - townName: New York - townLocationName: Downtown - districtName: Manhattan - countrySubDivision: New York - postBox: "123" - addressType: HOME - subDepartment: Security - addressLine: - - 123 Main St - - New York - - NY 12345 - room: "101" - buildingName: Acme Building - streetName: 123 Main St - buildingNumber: "123" - postCode: "12345" - department: IT - floor: "1" - customerNumber: "123456789" - customerIdentification: CUST987654 - countryOfRegistration: US - naturalPerson: - dateAndPlaceOfBirth: - placeOfBirth: "New York, USA" - dateOfBirth: 1990-01-01 - name: - - localNameIdentifier: - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - phoneticNameIdentifier: - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - nameIdentifier: - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - localNameIdentifier: - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - phoneticNameIdentifier: - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - nameIdentifier: - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - nationalIdentification: - nationalIdentifierType: NATIONAL_ID - countryOfIssue: US - registrationAuthority: RA123456 - nationalIdentifier: "123456789" - geographicAddress: - - country: US - townName: New York - townLocationName: Downtown - districtName: Manhattan - countrySubDivision: New York - postBox: "123" - addressType: HOME - subDepartment: Security - addressLine: - - 123 Main St - - New York - - NY 12345 - room: "101" - buildingName: Acme Building - streetName: 123 Main St - buildingNumber: "123" - postCode: "12345" - department: IT - floor: "1" - - country: US - townName: New York - townLocationName: Downtown - districtName: Manhattan - countrySubDivision: New York - postBox: "123" - addressType: HOME - subDepartment: Security - addressLine: - - 123 Main St - - New York - - NY 12345 - room: "101" - buildingName: Acme Building - streetName: 123 Main St - buildingNumber: "123" - postCode: "12345" - department: IT - floor: "1" - countryOfResidence: US - customerNumber: "123456789" - customerIdentification: CUST123456 - - legalPerson: - name: - legalPersonNameIdentifierType: REGISTERED - legalPersonName: Acme Corporation - nationalIdentification: - nationalIdentifierType: NATIONAL_ID - countryOfIssue: US - registrationAuthority: RA123456 - nationalIdentifier: "123456789" - geographicAddress: - - country: US - townName: New York - townLocationName: Downtown - districtName: Manhattan - countrySubDivision: New York - postBox: "123" - addressType: HOME - subDepartment: Security - addressLine: - - 123 Main St - - New York - - NY 12345 - room: "101" - buildingName: Acme Building - streetName: 123 Main St - buildingNumber: "123" - postCode: "12345" - department: IT - floor: "1" - - country: US - townName: New York - townLocationName: Downtown - districtName: Manhattan - countrySubDivision: New York - postBox: "123" - addressType: HOME - subDepartment: Security - addressLine: - - 123 Main St - - New York - - NY 12345 - room: "101" - buildingName: Acme Building - streetName: 123 Main St - buildingNumber: "123" - postCode: "12345" - department: IT - floor: "1" - customerNumber: "123456789" - customerIdentification: CUST987654 - countryOfRegistration: US - naturalPerson: - dateAndPlaceOfBirth: - placeOfBirth: "New York, USA" - dateOfBirth: 1990-01-01 - name: - - localNameIdentifier: - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - phoneticNameIdentifier: - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - nameIdentifier: - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - localNameIdentifier: - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - phoneticNameIdentifier: - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - nameIdentifier: - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - nationalIdentification: - nationalIdentifierType: NATIONAL_ID - countryOfIssue: US - registrationAuthority: RA123456 - nationalIdentifier: "123456789" - geographicAddress: - - country: US - townName: New York - townLocationName: Downtown - districtName: Manhattan - countrySubDivision: New York - postBox: "123" - addressType: HOME - subDepartment: Security - addressLine: - - 123 Main St - - New York - - NY 12345 - room: "101" - buildingName: Acme Building - streetName: 123 Main St - buildingNumber: "123" - postCode: "12345" - department: IT - floor: "1" - - country: US - townName: New York - townLocationName: Downtown - districtName: Manhattan - countrySubDivision: New York - postBox: "123" - addressType: HOME - subDepartment: Security - addressLine: - - 123 Main St - - New York - - NY 12345 - room: "101" - buildingName: Acme Building - streetName: 123 Main St - buildingNumber: "123" - postCode: "12345" - department: IT - floor: "1" - countryOfResidence: US - customerNumber: "123456789" - customerIdentification: CUST123456 - beneficiaryPersons: - - legalPerson: - name: - legalPersonNameIdentifierType: REGISTERED - legalPersonName: Acme Corporation - nationalIdentification: - nationalIdentifierType: NATIONAL_ID - countryOfIssue: US - registrationAuthority: RA123456 - nationalIdentifier: "123456789" - geographicAddress: - - country: US - townName: New York - townLocationName: Downtown - districtName: Manhattan - countrySubDivision: New York - postBox: "123" - addressType: HOME - subDepartment: Security - addressLine: - - 123 Main St - - New York - - NY 12345 - room: "101" - buildingName: Acme Building - streetName: 123 Main St - buildingNumber: "123" - postCode: "12345" - department: IT - floor: "1" - - country: US - townName: New York - townLocationName: Downtown - districtName: Manhattan - countrySubDivision: New York - postBox: "123" - addressType: HOME - subDepartment: Security - addressLine: - - 123 Main St - - New York - - NY 12345 - room: "101" - buildingName: Acme Building - streetName: 123 Main St - buildingNumber: "123" - postCode: "12345" - department: IT - floor: "1" - customerNumber: "123456789" - customerIdentification: CUST987654 - countryOfRegistration: US - naturalPerson: - dateAndPlaceOfBirth: - placeOfBirth: "New York, USA" - dateOfBirth: 1990-01-01 - name: - - localNameIdentifier: - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - phoneticNameIdentifier: - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - nameIdentifier: - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - localNameIdentifier: - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - phoneticNameIdentifier: - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - nameIdentifier: - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - nationalIdentification: - nationalIdentifierType: NATIONAL_ID - countryOfIssue: US - registrationAuthority: RA123456 - nationalIdentifier: "123456789" - geographicAddress: - - country: US - townName: New York - townLocationName: Downtown - districtName: Manhattan - countrySubDivision: New York - postBox: "123" - addressType: HOME - subDepartment: Security - addressLine: - - 123 Main St - - New York - - NY 12345 - room: "101" - buildingName: Acme Building - streetName: 123 Main St - buildingNumber: "123" - postCode: "12345" - department: IT - floor: "1" - - country: US - townName: New York - townLocationName: Downtown - districtName: Manhattan - countrySubDivision: New York - postBox: "123" - addressType: HOME - subDepartment: Security - addressLine: - - 123 Main St - - New York - - NY 12345 - room: "101" - buildingName: Acme Building - streetName: 123 Main St - buildingNumber: "123" - postCode: "12345" - department: IT - floor: "1" - countryOfResidence: US - customerNumber: "123456789" - customerIdentification: CUST123456 - - legalPerson: - name: - legalPersonNameIdentifierType: REGISTERED - legalPersonName: Acme Corporation - nationalIdentification: - nationalIdentifierType: NATIONAL_ID - countryOfIssue: US - registrationAuthority: RA123456 - nationalIdentifier: "123456789" - geographicAddress: - - country: US - townName: New York - townLocationName: Downtown - districtName: Manhattan - countrySubDivision: New York - postBox: "123" - addressType: HOME - subDepartment: Security - addressLine: - - 123 Main St - - New York - - NY 12345 - room: "101" - buildingName: Acme Building - streetName: 123 Main St - buildingNumber: "123" - postCode: "12345" - department: IT - floor: "1" - - country: US - townName: New York - townLocationName: Downtown - districtName: Manhattan - countrySubDivision: New York - postBox: "123" - addressType: HOME - subDepartment: Security - addressLine: - - 123 Main St - - New York - - NY 12345 - room: "101" - buildingName: Acme Building - streetName: 123 Main St - buildingNumber: "123" - postCode: "12345" - department: IT - floor: "1" - customerNumber: "123456789" - customerIdentification: CUST987654 - countryOfRegistration: US - naturalPerson: - dateAndPlaceOfBirth: - placeOfBirth: "New York, USA" - dateOfBirth: 1990-01-01 - name: - - localNameIdentifier: - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - phoneticNameIdentifier: - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - nameIdentifier: - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - localNameIdentifier: - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - phoneticNameIdentifier: - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - nameIdentifier: - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - nationalIdentification: - nationalIdentifierType: NATIONAL_ID - countryOfIssue: US - registrationAuthority: RA123456 - nationalIdentifier: "123456789" - geographicAddress: - - country: US - townName: New York - townLocationName: Downtown - districtName: Manhattan - countrySubDivision: New York - postBox: "123" - addressType: HOME - subDepartment: Security - addressLine: - - 123 Main St - - New York - - NY 12345 - room: "101" - buildingName: Acme Building - streetName: 123 Main St - buildingNumber: "123" - postCode: "12345" - department: IT - floor: "1" - - country: US - townName: New York - townLocationName: Downtown - districtName: Manhattan - countrySubDivision: New York - postBox: "123" - addressType: HOME - subDepartment: Security - addressLine: - - 123 Main St - - New York - - NY 12345 - room: "101" - buildingName: Acme Building - streetName: 123 Main St - buildingNumber: "123" - postCode: "12345" - department: IT - floor: "1" - countryOfResidence: US - customerNumber: "123456789" - customerIdentification: CUST123456 - accountNumber: - - accountNumber - - accountNumber - notificationEmail: notificationEmail - originatorVASPname: Originator VASP Ltd. - beneficiaryVASPname: Beneficiary VASP Inc. - pii: - originatorPersons: - - legalPerson: - name: - legalPersonNameIdentifierType: QmPevsa5xdkxf6Lgt7f9YweRBdgseeAkWVaYyssKF3Q86e - legalPersonName: QmVXXj5BJchhqQTU27uEkeghYMnxR6aVjZxJP9jS6uCg9Q - nationalIdentification: - nationalIdentifierType: QmUKTg3aFJFhMz1o9gPqA3MgTRwd2LvDLwWTPHYUoMEYVi - countryOfIssue: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - registrationAuthority: QmV9KJMyT9RJzpYfhME5xNCZ4G67fEkzTpRMyJzp9kTNYk - nationalIdentifier: QmdR6qLnZ7Kwf5cBaXG8QFQenEvRg9JNZeoPranVuGd63z - geographicAddress: - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - customerNumber: QmXvyML3AJUFpBbJqL5NVp7Vn7xNkuedTsSMk93duLCNW8 - customerIdentification: QmRY9AA4Uit2JRTxDzfzshrJdTK86Kf5HriA3dXDnihDmy - countryOfRegistration: QmeoTk6UPruEAYNbJEAHdQYc53ap9BXmpnPMcuvs8wutdr - naturalPerson: - dateAndPlaceOfBirth: - placeOfBirth: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - dateOfBirth: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - name: - - localNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - phoneticNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - localNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - phoneticNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nationalIdentification: - nationalIdentifierType: QmUKTg3aFJFhMz1o9gPqA3MgTRwd2LvDLwWTPHYUoMEYVi - countryOfIssue: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - registrationAuthority: QmV9KJMyT9RJzpYfhME5xNCZ4G67fEkzTpRMyJzp9kTNYk - nationalIdentifier: QmdR6qLnZ7Kwf5cBaXG8QFQenEvRg9JNZeoPranVuGd63z - geographicAddress: - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - countryOfResidence: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - customerNumber: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - customerIdentification: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - - legalPerson: - name: - legalPersonNameIdentifierType: QmPevsa5xdkxf6Lgt7f9YweRBdgseeAkWVaYyssKF3Q86e - legalPersonName: QmVXXj5BJchhqQTU27uEkeghYMnxR6aVjZxJP9jS6uCg9Q - nationalIdentification: - nationalIdentifierType: QmUKTg3aFJFhMz1o9gPqA3MgTRwd2LvDLwWTPHYUoMEYVi - countryOfIssue: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - registrationAuthority: QmV9KJMyT9RJzpYfhME5xNCZ4G67fEkzTpRMyJzp9kTNYk - nationalIdentifier: QmdR6qLnZ7Kwf5cBaXG8QFQenEvRg9JNZeoPranVuGd63z - geographicAddress: - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - customerNumber: QmXvyML3AJUFpBbJqL5NVp7Vn7xNkuedTsSMk93duLCNW8 - customerIdentification: QmRY9AA4Uit2JRTxDzfzshrJdTK86Kf5HriA3dXDnihDmy - countryOfRegistration: QmeoTk6UPruEAYNbJEAHdQYc53ap9BXmpnPMcuvs8wutdr - naturalPerson: - dateAndPlaceOfBirth: - placeOfBirth: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - dateOfBirth: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - name: - - localNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - phoneticNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - localNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - phoneticNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nationalIdentification: - nationalIdentifierType: QmUKTg3aFJFhMz1o9gPqA3MgTRwd2LvDLwWTPHYUoMEYVi - countryOfIssue: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - registrationAuthority: QmV9KJMyT9RJzpYfhME5xNCZ4G67fEkzTpRMyJzp9kTNYk - nationalIdentifier: QmdR6qLnZ7Kwf5cBaXG8QFQenEvRg9JNZeoPranVuGd63z - geographicAddress: - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - countryOfResidence: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - customerNumber: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - customerIdentification: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - beneficiaryPersons: - - legalPerson: - name: - legalPersonNameIdentifierType: QmPevsa5xdkxf6Lgt7f9YweRBdgseeAkWVaYyssKF3Q86e - legalPersonName: QmVXXj5BJchhqQTU27uEkeghYMnxR6aVjZxJP9jS6uCg9Q - nationalIdentification: - nationalIdentifierType: QmUKTg3aFJFhMz1o9gPqA3MgTRwd2LvDLwWTPHYUoMEYVi - countryOfIssue: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - registrationAuthority: QmV9KJMyT9RJzpYfhME5xNCZ4G67fEkzTpRMyJzp9kTNYk - nationalIdentifier: QmdR6qLnZ7Kwf5cBaXG8QFQenEvRg9JNZeoPranVuGd63z - geographicAddress: - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - customerNumber: QmXvyML3AJUFpBbJqL5NVp7Vn7xNkuedTsSMk93duLCNW8 - customerIdentification: QmRY9AA4Uit2JRTxDzfzshrJdTK86Kf5HriA3dXDnihDmy - countryOfRegistration: QmeoTk6UPruEAYNbJEAHdQYc53ap9BXmpnPMcuvs8wutdr - naturalPerson: - dateAndPlaceOfBirth: - placeOfBirth: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - dateOfBirth: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - name: - - localNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - phoneticNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - localNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - phoneticNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nationalIdentification: - nationalIdentifierType: QmUKTg3aFJFhMz1o9gPqA3MgTRwd2LvDLwWTPHYUoMEYVi - countryOfIssue: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - registrationAuthority: QmV9KJMyT9RJzpYfhME5xNCZ4G67fEkzTpRMyJzp9kTNYk - nationalIdentifier: QmdR6qLnZ7Kwf5cBaXG8QFQenEvRg9JNZeoPranVuGd63z - geographicAddress: - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - countryOfResidence: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - customerNumber: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - customerIdentification: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - - legalPerson: - name: - legalPersonNameIdentifierType: QmPevsa5xdkxf6Lgt7f9YweRBdgseeAkWVaYyssKF3Q86e - legalPersonName: QmVXXj5BJchhqQTU27uEkeghYMnxR6aVjZxJP9jS6uCg9Q - nationalIdentification: - nationalIdentifierType: QmUKTg3aFJFhMz1o9gPqA3MgTRwd2LvDLwWTPHYUoMEYVi - countryOfIssue: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - registrationAuthority: QmV9KJMyT9RJzpYfhME5xNCZ4G67fEkzTpRMyJzp9kTNYk - nationalIdentifier: QmdR6qLnZ7Kwf5cBaXG8QFQenEvRg9JNZeoPranVuGd63z - geographicAddress: - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - customerNumber: QmXvyML3AJUFpBbJqL5NVp7Vn7xNkuedTsSMk93duLCNW8 - customerIdentification: QmRY9AA4Uit2JRTxDzfzshrJdTK86Kf5HriA3dXDnihDmy - countryOfRegistration: QmeoTk6UPruEAYNbJEAHdQYc53ap9BXmpnPMcuvs8wutdr - naturalPerson: - dateAndPlaceOfBirth: - placeOfBirth: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - dateOfBirth: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - name: - - localNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - phoneticNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - localNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - phoneticNameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nameIdentifier: - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - - nameIdentifierType: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - secondaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - primaryIdentifier: QmP6wx8bx3SVNG3hd3SZKnS5pDjUan4y9H1VtyRqu7tsAv - nationalIdentification: - nationalIdentifierType: QmUKTg3aFJFhMz1o9gPqA3MgTRwd2LvDLwWTPHYUoMEYVi - countryOfIssue: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - registrationAuthority: QmV9KJMyT9RJzpYfhME5xNCZ4G67fEkzTpRMyJzp9kTNYk - nationalIdentifier: QmdR6qLnZ7Kwf5cBaXG8QFQenEvRg9JNZeoPranVuGd63z - geographicAddress: - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - - country: QmRGHdoxQfSi6tevyvaYGzs8BVStfqJqEyrMYqUfzXxkmm - townName: QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - townLocationName: QmNpZTyXJXnT9K6EYZpQxYNYMkC5p4kGEfhnkMJzpYT9Jm - districtName: QmT9p6ERKyNYXnTyhbpMYJ4zpYT9kMJZT9QmEMGZ5kMhCy - countrySubDivision: QmK9yTbXaZpMYJYTYp6NT9QmEMGZT9p9kMJfhyGE4Z7k5C - postBox: QmTkfYRGK54xFqXyJYNZyE9kY9zpMKytJnXy5z9EME9sJ - addressType: Qmdr9LcChZsoivS6uAhe7Qk7cGLDAx73wBZTVvq4WoU71H - subDepartment: QmTkfyGh54tXNqFxyEGK9NyTJZYpQ6RZ9zpNykxykME8s - addressLine: - - QmNp9kMjfhGZ5kMJzpNYXZTy6NQmZYEMGZ4kZT9Y6pNYT - room: QmRYXnT9KyhbXaEMZpMyxMkZ9zpYNYTJ4ME5kCGE7fhMJ - buildingName: QmXJfGk85t6RKyhbXaEK9Nz4MEeMKypq6EY9zpJyC9nM9 - streetName: QmZGXXsKPk5iPS97LLjXB5e8Qs555ocdzcpbPMXvt84Ji9 - buildingNumber: QmUFpNkxdsVtebDSUz5eP51kzoysXmqj2gBgeH11PD7SVP - postCode: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - department: QmN7fb65x5MyA7RKyhbXaUKvJ7U4Y9eqpEZTmJYpNyEG8 - floor: QmZP5G7fhZpMyQxXnT9KyR6ybXaEM9zpJy4ME9MkTJGE1 - countryOfResidence: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - customerNumber: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - customerIdentification: QmTJsK3sc3fPEVwvAp97UUiVoFhjzQhYX3sCda1JxuCnXj - accountNumber: - - QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - - QmNkEt9VdnhjefQMXo3ZaZAs765ugoWiazaqcY9skHMjCt - protocol: TRLight - skipBeneficiaryDataValidation: false - beneficiary: - originatorPersons: - - legalPerson: - name: - legalPersonNameIdentifierType: REGISTERED - legalPersonName: Acme Corporation - nationalIdentification: - nationalIdentifierType: NATIONAL_ID - countryOfIssue: US - registrationAuthority: RA123456 - nationalIdentifier: "123456789" - geographicAddress: - - country: US - townName: New York - townLocationName: Downtown - districtName: Manhattan - countrySubDivision: New York - postBox: "123" - addressType: HOME - subDepartment: Security - addressLine: - - 123 Main St - - New York - - NY 12345 - room: "101" - buildingName: Acme Building - streetName: 123 Main St - buildingNumber: "123" - postCode: "12345" - department: IT - floor: "1" - - country: US - townName: New York - townLocationName: Downtown - districtName: Manhattan - countrySubDivision: New York - postBox: "123" - addressType: HOME - subDepartment: Security - addressLine: - - 123 Main St - - New York - - NY 12345 - room: "101" - buildingName: Acme Building - streetName: 123 Main St - buildingNumber: "123" - postCode: "12345" - department: IT - floor: "1" - customerNumber: "123456789" - customerIdentification: CUST987654 - countryOfRegistration: US - naturalPerson: - dateAndPlaceOfBirth: - placeOfBirth: "New York, USA" - dateOfBirth: 1990-01-01 - name: - - localNameIdentifier: - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - phoneticNameIdentifier: - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - nameIdentifier: - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - localNameIdentifier: - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - phoneticNameIdentifier: - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - nameIdentifier: - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - nationalIdentification: - nationalIdentifierType: NATIONAL_ID - countryOfIssue: US - registrationAuthority: RA123456 - nationalIdentifier: "123456789" - geographicAddress: - - country: US - townName: New York - townLocationName: Downtown - districtName: Manhattan - countrySubDivision: New York - postBox: "123" - addressType: HOME - subDepartment: Security - addressLine: - - 123 Main St - - New York - - NY 12345 - room: "101" - buildingName: Acme Building - streetName: 123 Main St - buildingNumber: "123" - postCode: "12345" - department: IT - floor: "1" - - country: US - townName: New York - townLocationName: Downtown - districtName: Manhattan - countrySubDivision: New York - postBox: "123" - addressType: HOME - subDepartment: Security - addressLine: - - 123 Main St - - New York - - NY 12345 - room: "101" - buildingName: Acme Building - streetName: 123 Main St - buildingNumber: "123" - postCode: "12345" - department: IT - floor: "1" - countryOfResidence: US - customerNumber: "123456789" - customerIdentification: CUST123456 - - legalPerson: - name: - legalPersonNameIdentifierType: REGISTERED - legalPersonName: Acme Corporation - nationalIdentification: - nationalIdentifierType: NATIONAL_ID - countryOfIssue: US - registrationAuthority: RA123456 - nationalIdentifier: "123456789" - geographicAddress: - - country: US - townName: New York - townLocationName: Downtown - districtName: Manhattan - countrySubDivision: New York - postBox: "123" - addressType: HOME - subDepartment: Security - addressLine: - - 123 Main St - - New York - - NY 12345 - room: "101" - buildingName: Acme Building - streetName: 123 Main St - buildingNumber: "123" - postCode: "12345" - department: IT - floor: "1" - - country: US - townName: New York - townLocationName: Downtown - districtName: Manhattan - countrySubDivision: New York - postBox: "123" - addressType: HOME - subDepartment: Security - addressLine: - - 123 Main St - - New York - - NY 12345 - room: "101" - buildingName: Acme Building - streetName: 123 Main St - buildingNumber: "123" - postCode: "12345" - department: IT - floor: "1" - customerNumber: "123456789" - customerIdentification: CUST987654 - countryOfRegistration: US - naturalPerson: - dateAndPlaceOfBirth: - placeOfBirth: "New York, USA" - dateOfBirth: 1990-01-01 - name: - - localNameIdentifier: - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - phoneticNameIdentifier: - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - nameIdentifier: - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - localNameIdentifier: - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - phoneticNameIdentifier: - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - nameIdentifier: - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - nationalIdentification: - nationalIdentifierType: NATIONAL_ID - countryOfIssue: US - registrationAuthority: RA123456 - nationalIdentifier: "123456789" - geographicAddress: - - country: US - townName: New York - townLocationName: Downtown - districtName: Manhattan - countrySubDivision: New York - postBox: "123" - addressType: HOME - subDepartment: Security - addressLine: - - 123 Main St - - New York - - NY 12345 - room: "101" - buildingName: Acme Building - streetName: 123 Main St - buildingNumber: "123" - postCode: "12345" - department: IT - floor: "1" - - country: US - townName: New York - townLocationName: Downtown - districtName: Manhattan - countrySubDivision: New York - postBox: "123" - addressType: HOME - subDepartment: Security - addressLine: - - 123 Main St - - New York - - NY 12345 - room: "101" - buildingName: Acme Building - streetName: 123 Main St - buildingNumber: "123" - postCode: "12345" - department: IT - floor: "1" - countryOfResidence: US - customerNumber: "123456789" - customerIdentification: CUST123456 - beneficiaryPersons: - - legalPerson: - name: - legalPersonNameIdentifierType: REGISTERED - legalPersonName: Acme Corporation - nationalIdentification: - nationalIdentifierType: NATIONAL_ID - countryOfIssue: US - registrationAuthority: RA123456 - nationalIdentifier: "123456789" - geographicAddress: - - country: US - townName: New York - townLocationName: Downtown - districtName: Manhattan - countrySubDivision: New York - postBox: "123" - addressType: HOME - subDepartment: Security - addressLine: - - 123 Main St - - New York - - NY 12345 - room: "101" - buildingName: Acme Building - streetName: 123 Main St - buildingNumber: "123" - postCode: "12345" - department: IT - floor: "1" - - country: US - townName: New York - townLocationName: Downtown - districtName: Manhattan - countrySubDivision: New York - postBox: "123" - addressType: HOME - subDepartment: Security - addressLine: - - 123 Main St - - New York - - NY 12345 - room: "101" - buildingName: Acme Building - streetName: 123 Main St - buildingNumber: "123" - postCode: "12345" - department: IT - floor: "1" - customerNumber: "123456789" - customerIdentification: CUST987654 - countryOfRegistration: US - naturalPerson: - dateAndPlaceOfBirth: - placeOfBirth: "New York, USA" - dateOfBirth: 1990-01-01 - name: - - localNameIdentifier: - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - phoneticNameIdentifier: - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - nameIdentifier: - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - localNameIdentifier: - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - phoneticNameIdentifier: - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - nameIdentifier: - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - nationalIdentification: - nationalIdentifierType: NATIONAL_ID - countryOfIssue: US - registrationAuthority: RA123456 - nationalIdentifier: "123456789" - geographicAddress: - - country: US - townName: New York - townLocationName: Downtown - districtName: Manhattan - countrySubDivision: New York - postBox: "123" - addressType: HOME - subDepartment: Security - addressLine: - - 123 Main St - - New York - - NY 12345 - room: "101" - buildingName: Acme Building - streetName: 123 Main St - buildingNumber: "123" - postCode: "12345" - department: IT - floor: "1" - - country: US - townName: New York - townLocationName: Downtown - districtName: Manhattan - countrySubDivision: New York - postBox: "123" - addressType: HOME - subDepartment: Security - addressLine: - - 123 Main St - - New York - - NY 12345 - room: "101" - buildingName: Acme Building - streetName: 123 Main St - buildingNumber: "123" - postCode: "12345" - department: IT - floor: "1" - countryOfResidence: US - customerNumber: "123456789" - customerIdentification: CUST123456 - - legalPerson: - name: - legalPersonNameIdentifierType: REGISTERED - legalPersonName: Acme Corporation - nationalIdentification: - nationalIdentifierType: NATIONAL_ID - countryOfIssue: US - registrationAuthority: RA123456 - nationalIdentifier: "123456789" - geographicAddress: - - country: US - townName: New York - townLocationName: Downtown - districtName: Manhattan - countrySubDivision: New York - postBox: "123" - addressType: HOME - subDepartment: Security - addressLine: - - 123 Main St - - New York - - NY 12345 - room: "101" - buildingName: Acme Building - streetName: 123 Main St - buildingNumber: "123" - postCode: "12345" - department: IT - floor: "1" - - country: US - townName: New York - townLocationName: Downtown - districtName: Manhattan - countrySubDivision: New York - postBox: "123" - addressType: HOME - subDepartment: Security - addressLine: - - 123 Main St - - New York - - NY 12345 - room: "101" - buildingName: Acme Building - streetName: 123 Main St - buildingNumber: "123" - postCode: "12345" - department: IT - floor: "1" - customerNumber: "123456789" - customerIdentification: CUST987654 - countryOfRegistration: US - naturalPerson: - dateAndPlaceOfBirth: - placeOfBirth: "New York, USA" - dateOfBirth: 1990-01-01 - name: - - localNameIdentifier: - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - phoneticNameIdentifier: - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - nameIdentifier: - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - localNameIdentifier: - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - phoneticNameIdentifier: - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - nameIdentifier: - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - - nameIdentifierType: LEGL - secondaryIdentifier: Doe - primaryIdentifier: John - nationalIdentification: - nationalIdentifierType: NATIONAL_ID - countryOfIssue: US - registrationAuthority: RA123456 - nationalIdentifier: "123456789" - geographicAddress: - - country: US - townName: New York - townLocationName: Downtown - districtName: Manhattan - countrySubDivision: New York - postBox: "123" - addressType: HOME - subDepartment: Security - addressLine: - - 123 Main St - - New York - - NY 12345 - room: "101" - buildingName: Acme Building - streetName: 123 Main St - buildingNumber: "123" - postCode: "12345" - department: IT - floor: "1" - - country: US - townName: New York - townLocationName: Downtown - districtName: Manhattan - countrySubDivision: New York - postBox: "123" - addressType: HOME - subDepartment: Security - addressLine: - - 123 Main St - - New York - - NY 12345 - room: "101" - buildingName: Acme Building - streetName: 123 Main St - buildingNumber: "123" - postCode: "12345" - department: IT - floor: "1" - countryOfResidence: US - customerNumber: "123456789" - customerIdentification: CUST123456 - accountNumber: - - accountNumber - - accountNumber - encrypted: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9... - originatorDid: did:key:z6Mkf12345Zabcdef12345 - transactionAmount: "10" - travelRuleBehavior: true - transactionBlockchainInfo: - origin: 8.41132469470587E+47 - destination: 8.41132469470587E+47 - txHash: 6.685730843558756E+76 - pii_url: pii_url - beneficiaryProof: - attestation: I certify that ETH account 0x896B...0b9b belongs to me. - address: 0x896B...0b9b - proof: 0x3dd4a17a...ce4a2bcd1b - type: eip-191 - wallet_provider: Metamask - confirmed: true - url: https://example.com/uploaded_image.png - originatorVASPdid: did:ethr:0x44957e75d6ce4a5bf37aae117da86422c848f7c2 - beneficiaryDid: did:key:z6Mkf67890Zghijkl67890 - beneficiaryVASPdid: did:ethr:0x17fe2dd11a2daa7f6c1fdf22532a4763f963aea6 + ContractMetadataDto: properties: - originatorVASPdid: - description: The Decentralized Identifier (DID) of the exchange (VASP) that - is sending the virtual assets. This identifier is unique to the exchange - and is generated when the exchange's account is created in the Notabene - network. - example: did:ethr:0x44957e75d6ce4a5bf37aae117da86422c848f7c2 - type: string - beneficiaryVASPdid: - description: The Decentralized Identifier (DID) of the exchange (VASP) that - is receiving the virtual assets. This identifier is unique to the exchange - and is generated when the exchange's account is created in the Notabene - network. - example: did:ethr:0x17fe2dd11a2daa7f6c1fdf22532a4763f963aea6 + id: + description: The deployed contract ID + example: fbfbfbfb-fbfb-fbfb-fbfb-fbfbfbfbfbfb type: string - transactionAsset: - description: "Transaction asset symbol (e.g., BTC, ETH, USDC). By using\ - \ the `notation` query string, users can select the type of asset notation:\ - \ - `fireblocks`: Converts asset symbols to Fireblocks notation. - `notabene`:\ - \ Retains the original Notabene asset symbol format." - example: BTC + blockchainId: + description: The blockchain ID + example: B7QG017M type: string - transactionAmount: - description: "Transaction amount in the transaction asset. For example,\ - \ if the asset is BTC, the amount is the value in BTC units. By using\ - \ the `notation` query string, users can select the type of amount notation:\ - \ - `fireblocks`: Converts the amount to Fireblocks notation (e.g., adjusted\ - \ for decimals). - `notabene`: Retains the original Notabene amount format." - example: "10" + contractAddress: + description: The address of the token contract + example: 0x1234567890abcdef1234567890abcdef12345678 type: string - originatorVASPname: - description: The name of the VASP acting as the transaction originator. - example: Originator VASP Ltd. + contractTemplateId: + description: The contract template ID + example: b70701f4-d7b1-4795-a8ee-b09cdb5b850d type: string - beneficiaryVASPname: - description: The name of the VASP acting as the transaction beneficiary. - example: Beneficiary VASP Inc. + vaultAccountId: + description: The vault account ID that initiated the request to issue the + token + example: "0" type: string - transactionBlockchainInfo: - $ref: "#/components/schemas/TravelRuleTransactionBlockchainInfo" - originator: - $ref: "#/components/schemas/TravelRuleValidatePiiIVMS" - beneficiary: - $ref: "#/components/schemas/TravelRuleValidatePiiIVMS" - encrypted: - description: Encrypted data related to the transaction. - example: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9... + required: + - blockchainId + - contractAddress + - contractTemplateId + - id + type: object + TokenLinkDto: + example: + displayName: My Simple ERC20 Token + id: fbfbfbfb-fbfb-fbfb-fbfb-fbfbfbfbfbfb + refId: BQ5R_MY_TOKEN + type: FUNGIBLE_TOKEN + tokenMetadata: + symbol: MYT + holdersCount: 6 + totalSupply: "1000000000000000" + contractAddress: 0x1234567890abcdef1234567890abcdef12345678 + vaultAccountId: "0" + type: ERC20 + blockchain: ETH_TEST5 + assetId: BQ5R_MY_TOKEN + issuerAddress: rGyXjc5d7s17vvt3NtKKascvJrnSxV21kQ + decimals: 18 + name: MyToken + testnet: true + networkProtocol: ETH + status: COMPLETED + properties: + id: + description: The token link id + example: fbfbfbfb-fbfb-fbfb-fbfb-fbfbfbfbfbfb type: string - protocol: - description: The protocol used to perform the travel rule. + status: + description: The token status enum: - - TRLight - - TRP - - OpenVASP - - GTR - example: TRLight - type: string - skipBeneficiaryDataValidation: - description: Whether to skip validation of beneficiary data. - example: false - type: boolean - travelRuleBehavior: - description: Whether to check if the transaction complies with the travel - rule in the beneficiary VASP's jurisdiction. - example: true - type: boolean - originatorRef: - description: A reference ID related to the originator of the transaction. - example: ORG123456 - type: string - beneficiaryRef: - description: A reference ID related to the beneficiary of the transaction. - example: BEN654321 - type: string - travelRuleBehaviorRef: - description: A reference ID related to the travel rule behavior. - example: TRB987654 - type: string - originatorProof: - $ref: "#/components/schemas/TravelRuleOwnershipProof" - beneficiaryProof: - $ref: "#/components/schemas/TravelRuleOwnershipProof" - beneficiaryDid: - description: "The Decentralized Identifier (DID) of the person at the receiving\ - \ exchange (VASP). This identifier is generated when the customer is\ - \ registered in the Notabene network, or automatically created based\ - \ on the `beneficiaryRef`. - If neither `beneficiaryRef` nor `beneficiaryDid`\ - \ is provided in the `txCreate` payload, \n a new random DID is generated\ - \ for every transaction." - example: did:key:z6Mkf67890Zghijkl67890 + - PENDING + - COMPLETED + example: COMPLETED type: string - originatorDid: - description: "The Decentralized Identifier (DID) of the person at the exchange\ - \ (VASP) who is requesting the withdrawal. This identifier is generated\ - \ when the customer is registered in the Notabene network or automatically\ - \ created based on the `originatorRef`. - If neither `originatorRef`\ - \ nor `originatorDid` is provided in the `txCreate` payload, \n a new\ - \ random DID is generated for every transaction." - example: did:key:z6Mkf12345Zabcdef12345 - type: string - isNonCustodial: - description: Indicates if the transaction involves a non-custodial wallet. - example: true - type: boolean - notificationEmail: - description: The email address where a notification should be sent upon - completion of the travel rule + type: + description: The type of token + enum: + - FUNGIBLE_TOKEN + - NON_FUNGIBLE_TOKEN + - TOKEN_UTILITY + - TOKEN_EXTENSION + example: FUNGIBLE_TOKEN type: string - pii: - $ref: "#/components/schemas/TravelRulePiiIVMS" - pii_url: - description: The URL of the personal identifiable information related to - the transaction + refId: + description: "The Fireblocks' reference id. Can be a Fireblocks' supported\ + \ asset, collectionId or contractId" + example: BQ5R_MY_TOKEN + type: string + displayName: + description: "The token display name. If was not provided, would be taken\ + \ from the contract template name" + example: My Simple ERC20 Token type: string + tokenMetadata: + $ref: "#/components/schemas/TokenLinkDto_tokenMetadata" required: - - beneficiary - - originator + - id + - status type: object - TravelRuleFieldsEnum: - example: - - name - - country - - website - items: - enum: - - did - - name - - verificationStatus - - addressLine1 - - addressLine2 - - city - - country - - emailDomains - - website - - logo - - legalStructure - - legalName - - yearFounded - - incorporationCountry - - isRegulated - - otherNames - - identificationType - - identificationCountry - - businessNumber - - regulatoryAuthorities - - jurisdictions - - street - - number - - unit - - postCode - - state - - certificates - - description - - travelRule_OPENVASP - - travelRule_SYGNA - - travelRule_TRISA - - travelRule_TRLIGHT - - travelRule_EMAIL - - travelRule_TRP - - travelRule_SHYFT - - travelRule_USTRAVELRULEWG - - createdAt - - createdBy - - updatedAt - - updatedBy - - lastSentDate - - lastReceivedDate - - documents - - hasAdmin - - isNotifiable - - issuers - type: string - type: array - TravelRuleIssuer: + TokensPaginatedResponse: example: - issuerDid: issuerDid + next: eJ0eXAiOiJKV1QiLCJhbGcOiJIUzI1NiJ9 + data: + - displayName: My Simple ERC20 Token + id: fbfbfbfb-fbfb-fbfb-fbfb-fbfbfbfbfbfb + refId: BQ5R_MY_TOKEN + type: FUNGIBLE_TOKEN + tokenMetadata: + symbol: MYT + holdersCount: 6 + totalSupply: "1000000000000000" + contractAddress: 0x1234567890abcdef1234567890abcdef12345678 + vaultAccountId: "0" + type: ERC20 + blockchain: ETH_TEST5 + assetId: BQ5R_MY_TOKEN + issuerAddress: rGyXjc5d7s17vvt3NtKKascvJrnSxV21kQ + decimals: 18 + name: MyToken + testnet: true + networkProtocol: ETH + status: COMPLETED + - displayName: My Simple ERC20 Token + id: fbfbfbfb-fbfb-fbfb-fbfb-fbfbfbfbfbfb + refId: BQ5R_MY_TOKEN + type: FUNGIBLE_TOKEN + tokenMetadata: + symbol: MYT + holdersCount: 6 + totalSupply: "1000000000000000" + contractAddress: 0x1234567890abcdef1234567890abcdef12345678 + vaultAccountId: "0" + type: ERC20 + blockchain: ETH_TEST5 + assetId: BQ5R_MY_TOKEN + issuerAddress: rGyXjc5d7s17vvt3NtKKascvJrnSxV21kQ + decimals: 18 + name: MyToken + testnet: true + networkProtocol: ETH + status: COMPLETED properties: - issuerDid: + data: + description: The data of the current page + items: + $ref: "#/components/schemas/TokenLinkDto" + type: array + next: + description: The ID of the next page + example: eJ0eXAiOiJKV1QiLCJhbGcOiJIUzI1NiJ9 + nullable: true type: string required: - - issuerDid + - data type: object - TravelRuleIssuers: + EVMTokenCreateParamsDto: example: - country: - issuerDid: issuerDid - website: - issuerDid: issuerDid - city: - issuerDid: issuerDid - isRegulated: - issuerDid: issuerDid - description: - issuerDid: issuerDid - businessNumber: - issuerDid: issuerDid - yearFounded: - issuerDid: issuerDid - legalName: - issuerDid: issuerDid - legalStructure: - issuerDid: issuerDid - regulatoryAuthorities: - issuerDid: issuerDid - name: - issuerDid: issuerDid - logo: - issuerDid: issuerDid - addressLine1: - issuerDid: issuerDid - incorporationCountry: - issuerDid: issuerDid + contractId: b70701f4-d7b1-4795-a8ee-b09cdb5b850d + constructorParams: + - internalType: string + name: name + type: string + value: name + - internalType: string + name: symbol + type: string + value: symbol + - components: + - internalType: bool + name: _isMintable + type: bool + internalType: struct MyStruct + name: customConfigProps + type: tuple + value: + - internalType: bool + name: _isMintable + type: bool + value: false properties: - yearFounded: - $ref: "#/components/schemas/TravelRuleIssuer" - isRegulated: - $ref: "#/components/schemas/TravelRuleIssuer" - regulatoryAuthorities: - $ref: "#/components/schemas/TravelRuleIssuer" + contractId: + description: The id of the contract template that will be used to create + the token + example: b70701f4-d7b1-4795-a8ee-b09cdb5b850d + type: string + constructorParams: + description: The constructor parameters and values of the contract template + example: + - internalType: string + name: name + type: string + value: name + - internalType: string + name: symbol + type: string + value: symbol + - components: + - internalType: bool + name: _isMintable + type: bool + internalType: struct MyStruct + name: customConfigProps + type: tuple + value: + - internalType: bool + name: _isMintable + type: bool + value: false + items: + items: + $ref: "#/components/schemas/ParameterWithValue" + type: array + type: array + required: + - contractId + type: object + StellarRippleCreateParamsDto: + properties: + symbol: + description: The symbol of the token + example: MyUSDT + type: string name: - $ref: "#/components/schemas/TravelRuleIssuer" - logo: - $ref: "#/components/schemas/TravelRuleIssuer" - website: - $ref: "#/components/schemas/TravelRuleIssuer" - legalName: - $ref: "#/components/schemas/TravelRuleIssuer" - legalStructure: - $ref: "#/components/schemas/TravelRuleIssuer" - incorporationCountry: - $ref: "#/components/schemas/TravelRuleIssuer" - businessNumber: - $ref: "#/components/schemas/TravelRuleIssuer" - addressLine1: - $ref: "#/components/schemas/TravelRuleIssuer" - city: - $ref: "#/components/schemas/TravelRuleIssuer" - country: - $ref: "#/components/schemas/TravelRuleIssuer" - description: - $ref: "#/components/schemas/TravelRuleIssuer" + description: The name of the token + example: My USD Tether + type: string + issuerAddress: + description: The address of the issuer of this token. Will be part of the + identifier of this token on chain. + example: rnDV4JiwgRNhudPY2sm65AzECpRXaasL4r + type: string required: - - addressLine1 - - businessNumber - - city - - country - - description - - incorporationCountry - - isRegulated - - legalName - - legalStructure - - logo + - issuerAddress - name - - regulatoryAuthorities - - website - - yearFounded + - symbol type: object - TravelRuleVASP: + CreateTokenRequestDto: example: - country: US - travelRule_TRISA: pending - travelRule_TRP: active - isNotifiable: true - city: New York - documents: "['license.pdf', 'compliance.pdf']" - isRegulated: "YES" - travelRule_EMAIL: inactive - description: A leading provider of crypto security solutions. - identificationType: Business License - identificationCountry: US - travelRule_SYGNA: inactive - lastReceivedDate: 2024-03-20T11:45:30.212Z - legalName: Fireblocks Inc. - number: "10" - createdAt: 2023-09-19T12:23:59.711Z - legalStructure: CORPORATION - street: Wall Street - travelRule_SHYFT: inactive - regulatoryAuthorities: "SEC, FINCEN" - addressLine1: 657 Campfire Street - logo: https://fireblocks.com/logo.png - addressLine2: Suite 10 - state: NY - jurisdictions: "US, EU" - travelRule_TRLIGHT: active - updatedAt: 2024-08-29T08:23:51.416Z - website: https://fireblocks.com - hasAdmin: true - updatedBy: system - verificationStatus: VERIFIED - emailDomains: "fireblocks.com,example.com" - businessNumber: "123456789" - yearFounded: "2019" - issuers: - country: - issuerDid: issuerDid - website: - issuerDid: issuerDid - city: - issuerDid: issuerDid - isRegulated: - issuerDid: issuerDid - description: - issuerDid: issuerDid - businessNumber: - issuerDid: issuerDid - yearFounded: - issuerDid: issuerDid - legalName: - issuerDid: issuerDid - legalStructure: - issuerDid: issuerDid - regulatoryAuthorities: - issuerDid: issuerDid - name: - issuerDid: issuerDid - logo: - issuerDid: issuerDid - addressLine1: - issuerDid: issuerDid - incorporationCountry: - issuerDid: issuerDid - travelRule_OPENVASP: active - travelRule_USTRAVELRULEWG: pending - unit: Apt 2B - otherNames: Fireblocks Test VASP - certificates: ISO 27001 - lastSentDate: 2024-03-18T09:26:07.988Z - createdBy: admin - name: Fireblocks TST - postCode: "10005" - did: did:ethr:0x17fe2dd11a2daa7f6c1fdf22532a4763f963aea6 - incorporationCountry: US + assetId: ETH_TEST5 + displayName: displayName + vaultAccountId: "0" + blockchainId: B7QG017M + createParams: + contractId: b70701f4-d7b1-4795-a8ee-b09cdb5b850d + constructorParams: + - internalType: string + name: name + type: string + value: name + - internalType: string + name: symbol + type: string + value: symbol + - components: + - internalType: bool + name: _isMintable + type: bool + internalType: struct MyStruct + name: customConfigProps + type: tuple + value: + - internalType: bool + name: _isMintable + type: bool + value: false properties: - did: - description: The Decentralized Identifier (DID) of the VASP. - example: did:ethr:0x17fe2dd11a2daa7f6c1fdf22532a4763f963aea6 - type: string - name: - description: The name of the VASP. - example: Fireblocks TST - type: string - verificationStatus: - description: The current verification status of the VASP. - example: VERIFIED - type: string - addressLine1: - description: The first line of the VASP's address. - example: 657 Campfire Street - type: string - addressLine2: - description: The second line of the VASP's address (if applicable). - example: Suite 10 - type: string - city: - description: The city where the VASP is located. - example: New York + blockchainId: + description: The id of the blockchain the request was initiated on + example: B7QG017M type: string - country: - description: The country where the VASP is registered (ISO-3166 Alpha-2 - code). - example: US + assetId: + description: The base asset identifier of the blockchain you want to deploy + to + example: ETH_TEST5 type: string - emailDomains: - description: Comma-separated list of email domains associated with the VASP. - example: "fireblocks.com,example.com" + vaultAccountId: + description: The id of the vault account that initiated the request to issue + the token + example: "0" type: string - website: - description: The official website of the VASP. - example: https://fireblocks.com + createParams: + $ref: "#/components/schemas/CreateTokenRequestDto_createParams" + displayName: type: string - logo: - description: URL to the logo of the VASP. - example: https://fireblocks.com/logo.png + required: + - createParams + - vaultAccountId + type: object + AssetAlreadyExistHttpError: + example: + message: message + error: Conflict + statusCode: 409 + properties: + statusCode: + description: HTTP status code + example: 409 + format: int32 + type: integer + message: + description: Error message type: string - legalStructure: - description: "The legal structure of the VASP (e.g., Corporation, LLC)." - example: CORPORATION + error: + description: Short description of the HTTP error + example: Conflict type: string - legalName: - description: The legal name of the VASP. - example: Fireblocks Inc. + type: object + TokenLinkRequestDto: + example: + displayName: My Simple ERC20 Token + refId: USDC_ETH_TEST5_1XF5 + type: FUNGIBLE_TOKEN + properties: + type: + description: The type of token being linked + enum: + - FUNGIBLE_TOKEN + - NON_FUNGIBLE_TOKEN + - TOKEN_UTILITY + - TOKEN_EXTENSION type: string - yearFounded: - description: The year the VASP was founded. - example: "2019" + refId: + description: "The Fireblocks' token link reference id. For example, 'BQ5R_BDESC_ABC'\ + \ if it's a fungible \n\t\t\t\t\tasset" + example: USDC_ETH_TEST5_1XF5 type: string - incorporationCountry: - description: The country where the VASP is incorporated (ISO-3166 Alpha-2 - code). - example: US + displayName: + description: The token display name + example: My Simple ERC20 Token type: string - isRegulated: - description: Indicates whether the VASP is regulated. - example: "YES" + required: + - refId + - type + type: object + AssetDoesNotExistHttpError: + example: + message: message + error: Not Found + statusCode: 404 + properties: + statusCode: + description: HTTP status code + example: 404 + format: int32 + type: integer + message: + description: Error message type: string - otherNames: - description: Other names the VASP is known by. - example: Fireblocks Test VASP + error: + description: Short description of the HTTP error + example: Not Found type: string - identificationType: - description: The type of identification used by the VASP. - example: Business License + type: object + TokenLinkExistsHttpError: + example: + message: message + error: Conflict + statusCode: 409 + properties: + statusCode: + description: HTTP status code + example: 409 + format: int32 + type: integer + message: + description: Error message type: string - identificationCountry: - description: The country of identification for the VASP (ISO-3166 Alpha-2 - code). - example: US + error: + description: Short description of the HTTP error + example: Conflict type: string - businessNumber: - description: The business registration number of the VASP. - example: "123456789" + type: object + NotFoundException: + example: + message: message + error: Not Found + statusCode: 404 + properties: + statusCode: + description: HTTP status code + example: 404 + format: int32 + type: integer + message: + description: Error message type: string - regulatoryAuthorities: - description: The regulatory authorities overseeing the VASP. - example: "SEC, FINCEN" + error: + description: Short description of the HTTP error + example: Not Found type: string - jurisdictions: - description: The jurisdictions where the VASP operates. - example: "US, EU" + type: object + ContractAbiResponseDto: + example: + abi: + - inputs: + - internalType: address + name: implementation + type: address + - internalType: bytes + name: _data + type: bytes + stateMutability: nonpayable + type: constructor + implementationAbi: + - inputs: + - internalType: address + name: to + type: address + - internalType: uint256 + name: amount + type: uint256 + stateMutability: nonpayable + type: function + name: mint + properties: + abi: + description: The abi of the contract + example: + - inputs: + - internalType: address + name: implementation + type: address + - internalType: bytes + name: _data + type: bytes + stateMutability: nonpayable + type: constructor + items: + $ref: "#/components/schemas/AbiFunction" + type: array + implementationAbi: + description: The abi of the implementation contract if exists. Relevant + only for proxy patterns + example: + - inputs: + - internalType: address + name: to + type: address + - internalType: uint256 + name: amount + type: uint256 + stateMutability: nonpayable + type: function + name: mint + items: + $ref: "#/components/schemas/AbiFunction" + type: array + required: + - abi + type: object + ReadAbiFunction: + properties: + stateMutability: + enum: + - pure + - view + example: pure type: string - street: - description: The street name where the VASP is located. - example: Wall Street + outputs: + items: + $ref: "#/components/schemas/Parameter" + type: array + name: type: string - number: - description: The building number of the VASP's address. - example: "10" + type: type: string - unit: - description: The unit or suite number of the VASP's address. - example: Apt 2B + inputs: + items: + $ref: "#/components/schemas/ParameterWithValue" + type: array + description: type: string - postCode: - description: The postal code of the VASP's location. - example: "10005" + required: + - inputs + - stateMutability + - type + type: object + ReadCallFunctionDto: + example: + abiFunction: + - inputs: [] + stateMutability: view + type: function + name: decimals + outputs: + - name: "" + type: uint8 + internalType: uint8 + properties: + abiFunction: + description: The abi of the read function you wish to call + example: + - inputs: [] + stateMutability: view + type: function + name: decimals + outputs: + - name: "" + type: uint8 + internalType: uint8 + items: + $ref: "#/components/schemas/ReadAbiFunction" + type: array + required: + - abiFunction + type: object + ParameterWithValueList: + items: + $ref: "#/components/schemas/ParameterWithValue" + type: array + WriteAbiFunction: + properties: + stateMutability: + enum: + - payable + - nonpayable + example: nonpayable type: string - state: - description: The state or region where the VASP is located. - example: NY + outputs: + items: + $ref: "#/components/schemas/Parameter" + type: array + type: + enum: + - function type: string - certificates: - description: Certificates or licenses held by the VASP. - example: ISO 27001 + name: type: string + inputs: + items: + $ref: "#/components/schemas/ParameterWithValue" + type: array description: - description: A brief description of the VASP. - example: A leading provider of crypto security solutions. - type: string - travelRule_OPENVASP: - description: Travel rule compliance status for OpenVASP. - example: active - type: string - travelRule_SYGNA: - description: Travel rule compliance status for Sygna. - example: inactive - type: string - travelRule_TRISA: - description: Travel rule compliance status for TRISA. - example: pending - type: string - travelRule_TRLIGHT: - description: Travel rule compliance status for TRLight. - example: active - type: string - travelRule_EMAIL: - description: Travel rule compliance status for EMAIL. - example: inactive - type: string - travelRule_TRP: - description: Travel rule compliance status for TRP. - example: active - type: string - travelRule_SHYFT: - description: Travel rule compliance status for Shyft. - example: inactive - type: string - travelRule_USTRAVELRULEWG: - description: Travel rule compliance status for US Travel Rule WG. - example: pending - type: string - createdAt: - description: Timestamp when the VASP record was created. - example: 2023-09-19T12:23:59.711Z type: string - createdBy: - description: User or system that created the VASP record. - example: admin + required: + - inputs + - stateMutability + - type + type: object + WriteCallFunctionDto: + example: + abiFunction: + - inputs: + - name: to + type: address + internalType: address + value: 0xC2c4e1Db41F0bB97996D0eD0542D2170d146FB66 + - name: amount + type: uint256 + internalType: uint256 + value: 1000000 + stateMutability: nonpayable + type: function + name: mint + note: note + amount: "12.345" + fee: "2000" + vaultAccountId: "0" + feeLevel: MEDIUM + properties: + vaultAccountId: + description: The vault account id this contract was deploy from + example: "0" type: string - updatedAt: - description: Timestamp of the last update to the VASP record. - example: 2024-08-29T08:23:51.416Z + abiFunction: + description: The abi of the read function you wish to call + example: + - inputs: + - name: to + type: address + internalType: address + value: 0xC2c4e1Db41F0bB97996D0eD0542D2170d146FB66 + - name: amount + type: uint256 + internalType: uint256 + value: 1000000 + stateMutability: nonpayable + type: function + name: mint + items: + $ref: "#/components/schemas/WriteAbiFunction" + type: array + amount: + description: Amount in base asset. Being used in payable functions + example: "12.345" type: string - updatedBy: - description: User or system that last updated the VASP record. - example: system + feeLevel: + description: Fee level for the write function transaction. interchangeable + with the 'fee' field + enum: + - LOW + - MEDIUM + - HIGH + example: MEDIUM type: string - lastSentDate: - description: The last date a transaction was sent by the VASP. - example: 2024-03-18T09:26:07.988Z + fee: + description: Max fee amount for the write function transaction. interchangeable + with the 'feeLevel' field + example: "2000" type: string - lastReceivedDate: - description: The last date a transaction was received by the VASP. - example: 2024-03-20T11:45:30.212Z + note: + description: "Custom note, not sent to the blockchain, that describes the\ + \ transaction at your Fireblocks workspace" type: string - documents: - description: Documents associated with the VASP. - example: "['license.pdf', 'compliance.pdf']" + required: + - abiFunction + - vaultAccountId + type: object + WriteCallFunctionResponseDto: + example: + txId: txId + properties: + txId: type: string - hasAdmin: - description: Indicates if the VASP has an admin. - example: true - type: boolean - isNotifiable: - description: Indicates if the VASP is notifiable for compliance reasons. - example: true - type: boolean - issuers: - $ref: "#/components/schemas/TravelRuleIssuers" required: - - addressLine1 - - city - - country - - createdAt - - did - - emailDomains - - hasAdmin - - incorporationCountry - - isNotifiable - - isRegulated - - issuers - - jurisdictions - - legalName - - legalStructure - - name - - travelRule_TRLIGHT - - verificationStatus - - website - - yearFounded + - txId type: object - TravelRuleGetAllVASPsResponse: + StakingGetChainsResponse: + items: + type: string + type: array + AdditionalInfoDto: + properties: + estimatedAnnualReward: + description: "The estimated annual reward rate for the blockchain, represented\ + \ as a decimal percentage value." + example: 6.48 + type: number + lockupPeriod: + description: "The duration of the lockup period for certain actions on the\ + \ blockchain, measured in milliseconds." + example: 172800000 + type: number + activationPeriod: + description: "The duration of the activation period for certain actions\ + \ on the blockchain, measured in milliseconds." + example: 172800000 + type: number + required: + - activationPeriod + - estimatedAnnualReward + - lockupPeriod + type: object + ChainInfoResponseDto: example: - next: eJ0eXAiOiJKV1QiLCJhbGcOiJIUzI1NiJ9 - total: 2 - data: - - country: US - travelRule_TRISA: pending - travelRule_TRP: active - isNotifiable: true - city: New York - documents: "['license.pdf', 'compliance.pdf']" - isRegulated: "YES" - travelRule_EMAIL: inactive - description: A leading provider of crypto security solutions. - identificationType: Business License - identificationCountry: US - travelRule_SYGNA: inactive - lastReceivedDate: 2024-03-20T11:45:30.212Z - legalName: Fireblocks Inc. - number: "10" - createdAt: 2023-09-19T12:23:59.711Z - legalStructure: CORPORATION - street: Wall Street - travelRule_SHYFT: inactive - regulatoryAuthorities: "SEC, FINCEN" - addressLine1: 657 Campfire Street - logo: https://fireblocks.com/logo.png - addressLine2: Suite 10 - state: NY - jurisdictions: "US, EU" - travelRule_TRLIGHT: active - updatedAt: 2024-08-29T08:23:51.416Z - website: https://fireblocks.com - hasAdmin: true - updatedBy: system - verificationStatus: VERIFIED - emailDomains: "fireblocks.com,example.com" - businessNumber: "123456789" - yearFounded: "2019" - issuers: - country: - issuerDid: issuerDid - website: - issuerDid: issuerDid - city: - issuerDid: issuerDid - isRegulated: - issuerDid: issuerDid - description: - issuerDid: issuerDid - businessNumber: - issuerDid: issuerDid - yearFounded: - issuerDid: issuerDid - legalName: - issuerDid: issuerDid - legalStructure: - issuerDid: issuerDid - regulatoryAuthorities: - issuerDid: issuerDid - name: - issuerDid: issuerDid - logo: - issuerDid: issuerDid - addressLine1: - issuerDid: issuerDid - incorporationCountry: - issuerDid: issuerDid - travelRule_OPENVASP: active - travelRule_USTRAVELRULEWG: pending - unit: Apt 2B - otherNames: Fireblocks Test VASP - certificates: ISO 27001 - lastSentDate: 2024-03-18T09:26:07.988Z - createdBy: admin - name: Fireblocks TST - postCode: "10005" - did: did:ethr:0x17fe2dd11a2daa7f6c1fdf22532a4763f963aea6 - incorporationCountry: US - - country: US - travelRule_TRISA: pending - travelRule_TRP: active - isNotifiable: true - city: New York - documents: "['license.pdf', 'compliance.pdf']" - isRegulated: "YES" - travelRule_EMAIL: inactive - description: A leading provider of crypto security solutions. - identificationType: Business License - identificationCountry: US - travelRule_SYGNA: inactive - lastReceivedDate: 2024-03-20T11:45:30.212Z - legalName: Fireblocks Inc. - number: "10" - createdAt: 2023-09-19T12:23:59.711Z - legalStructure: CORPORATION - street: Wall Street - travelRule_SHYFT: inactive - regulatoryAuthorities: "SEC, FINCEN" - addressLine1: 657 Campfire Street - logo: https://fireblocks.com/logo.png - addressLine2: Suite 10 - state: NY - jurisdictions: "US, EU" - travelRule_TRLIGHT: active - updatedAt: 2024-08-29T08:23:51.416Z - website: https://fireblocks.com - hasAdmin: true - updatedBy: system - verificationStatus: VERIFIED - emailDomains: "fireblocks.com,example.com" - businessNumber: "123456789" - yearFounded: "2019" - issuers: - country: - issuerDid: issuerDid - website: - issuerDid: issuerDid - city: - issuerDid: issuerDid - isRegulated: - issuerDid: issuerDid - description: - issuerDid: issuerDid - businessNumber: - issuerDid: issuerDid - yearFounded: - issuerDid: issuerDid - legalName: - issuerDid: issuerDid - legalStructure: - issuerDid: issuerDid - regulatoryAuthorities: - issuerDid: issuerDid - name: - issuerDid: issuerDid - logo: - issuerDid: issuerDid - addressLine1: - issuerDid: issuerDid - incorporationCountry: - issuerDid: issuerDid - travelRule_OPENVASP: active - travelRule_USTRAVELRULEWG: pending - unit: Apt 2B - otherNames: Fireblocks Test VASP - certificates: ISO 27001 - lastSentDate: 2024-03-18T09:26:07.988Z - createdBy: admin - name: Fireblocks TST - postCode: "10005" - did: did:ethr:0x17fe2dd11a2daa7f6c1fdf22532a4763f963aea6 - incorporationCountry: US + chainDescriptor: SOL + epochElapsed: 0.31 + epochDuration: 172800000 + additionalInfo: "" + currentEpoch: 483 + properties: + chainDescriptor: + description: The protocol identifier (e.g. "ETH"/"SOL"). + example: SOL + type: string + currentEpoch: + description: The current epoch number of the blockchain network. + example: 483 + type: number + epochElapsed: + description: "The percentage of time that has elapsed within the current\ + \ epoch, represented as a decimal value between 0 and 1." + example: 0.31 + type: number + epochDuration: + description: The total duration in milliseconds of a single epoch. + example: 172800000 + type: number + additionalInfo: + allOf: + - $ref: "#/components/schemas/AdditionalInfoDto" + description: Additional information related to the blockchain. This may + include extra details about the blockchain network. + required: + - additionalInfo + - chainDescriptor + - currentEpoch + - epochDuration + - epochElapsed + type: object + StakeRequestDto: + example: + stakeAmount: "32" + txNote: stake request id CcaHc2L43ZWjwCHART3oZoJvHLAe9hzT2DJNUpBzoTN1 of 32ETH + created on 02.04.23 + providerId: kiln + fee: "7" + vaultAccountId: "22" + feeLevel: MEDIUM properties: - data: - description: "An array of VASP objects, referencing the TravelRuleVASP schema." - items: - $ref: "#/components/schemas/TravelRuleVASP" - type: array - total: - description: The total number of VASPs. - example: 2 - type: integer - next: - description: The URL for the next page of results. - example: eJ0eXAiOiJKV1QiLCJhbGcOiJIUzI1NiJ9 - nullable: true + vaultAccountId: + description: The source vault account to stake from + example: "22" + type: string + providerId: + description: The ID of the provider + example: kiln + type: string + stakeAmount: + description: Amount of tokens to stake + example: "32" + type: string + txNote: + description: The note to associate with the stake transactions. + example: stake request id CcaHc2L43ZWjwCHART3oZoJvHLAe9hzT2DJNUpBzoTN1 of + 32ETH created on 02.04.23 + type: string + fee: + description: "Represents the fee for a transaction, which can be specified\ + \ as a percentage value. Only one of fee/feeLevel is required." + example: "7" + type: string + feeLevel: + description: "Represents the fee level for a transaction, which can be set\ + \ as slow, medium, or fast. Only one of fee/feeLevel is required." + example: MEDIUM type: string required: - - data + - providerId + - stakeAmount + - vaultAccountId type: object - TravelRuleUpdateVASPDetails: - example: - pii_didkey: did:key:z6Mks5CZRaiooKYhq5TwtXQC1gWhwiZnmiKfFrMnYY62MhYf - did: did:ethr:0x44957e75d6ce4a5bf37aae117da86422c848f7c2 + UnstakeRequestDto: properties: - did: - description: The decentralized identifier of the VASP - example: did:ethr:0x44957e75d6ce4a5bf37aae117da86422c848f7c2 + id: + description: id of position to unstake + example: b70701f4-d7b1-4795-a8ee-b09cdb5b850e type: string - pii_didkey: - description: The PII DID key of the VASP - example: did:key:z6Mks5CZRaiooKYhq5TwtXQC1gWhwiZnmiKfFrMnYY62MhYf + fee: + description: "Represents the fee for a transaction, which can be specified\ + \ as a percentage value. Only one of fee/feeLevel is required." + example: "7" + type: string + feeLevel: + description: "Represents the fee level for a transaction, which can be set\ + \ as slow, medium, or fast. Only one of fee/feeLevel is required." + example: MEDIUM + type: string + txNote: + description: The note to associate with the transactions. + example: "unstake request id b70701f4-d7b1-4795-a8ee-b09cdb5b850d #ETH" type: string required: - - did - - pii_didkey + - id type: object - TravelRuleVaspForVault: - example: - vaspDid: did:ethr:0x5dddec8dd669c49304ddbcba36ccc6e0798534dc + WithdrawRequestDto: properties: - vaspDid: - description: VASP DID - example: did:ethr:0x5dddec8dd669c49304ddbcba36ccc6e0798534dc + id: + description: id of position to withdraw + example: b70701f4-d7b1-4795-a8ee-b09cdb5b850f + type: string + fee: + description: "Represents the fee for a transaction, which can be specified\ + \ as a percentage value. Only one of fee/feeLevel is required." + example: "7" + type: string + feeLevel: + description: "Represents the fee level for a transaction, which can be set\ + \ as slow, medium, or fast. Only one of fee/feeLevel is required." + example: MEDIUM + type: string + txNote: + description: The note to associate with the transactions. + example: "withdraw request id b70701f4-d7b1-4795-a8ee-b09cdb5b850d #ETH" type: string + required: + - id type: object - TravelRulePolicyRuleResponse: + ExecuteActionRequest: + oneOf: + - $ref: "#/components/schemas/StakeRequestDto" + - $ref: "#/components/schemas/UnstakeRequestDto" + - $ref: "#/components/schemas/WithdrawRequestDto" + StakeResponseDto: example: - sourceId: sourceId - amount: 0.8008281904610115 - amountUSD: 6.027456183070403 - baseAsset: baseAsset - destType: destType - destId: destId - sourceType: sourceType - destSubType: destSubType - destAddress: destAddress - action: SCREEN - sourceSubType: sourceSubType - asset: asset - operation: operation - networkProtocol: ETH + id: b70701f4-d7b1-4795-a8ee-b09cdb5b850d properties: - sourceType: - type: string - sourceSubType: + id: + description: The unique identifier of the staking position + example: b70701f4-d7b1-4795-a8ee-b09cdb5b850d type: string - destType: + required: + - id + type: object + UnstakeResponseDto: + properties: {} + type: object + WithdrawResponseDto: + properties: {} + type: object + ExecuteActionResponse: + oneOf: + - $ref: "#/components/schemas/StakeResponseDto" + - $ref: "#/components/schemas/UnstakeResponseDto" + - $ref: "#/components/schemas/WithdrawResponseDto" + RelatedTransactionDto: + properties: + txId: + description: The transaction ID + example: b70601f4-d7b1-4795-a8ee-b09cdb4r850d type: string - destSubType: + completed: + description: Is the transaction completed or not + example: true + type: boolean + required: + - completed + - txId + type: object + SolanaBlockchainDataDto: + properties: + stakeAccountAddress: + description: The stake account address matching the stakeAccountId. + example: 3Ru67FyzMTcdENmmRL4Eve4dtPd6AdpuypR21q5EQCdq type: string - destAddress: + required: + - stakeAccountAddress + type: object + DelegationDto: + example: + availableActions: + - unstake + blockchainPositionInfo: + stakeAccountAddress: 3Ru67FyzMTcdENmmRL4Eve4dtPd6AdpuypR21q5EQCdq + chainDescriptor: SOL + amount: "0.05" + inProgress: true + inProgressTxId: c80601f4-d7b1-4795-a8ee-b09cdb5b450c + validatorAddress: FwR3PbjS5iyqzLiLugrBqKSa5EKZ4vK9SKs7eQXtT59f + vaultAccountId: "2" + rewardsAmount: "0.000856038" + dateCreated: 2023-07-13T15:55:34.256Z + providerId: kiln + validatorName: FwR3P......tT59f + id: b70701f4-d7b1-4795-a8ee-b09cdb5b850a + relatedTransactions: + - txId: b70601f4-d7b1-4795-a8ee-b09cdb4r850d + completed: true + - txId: c80601f4-d7b1-4795-a8ee-b09cdb5b450c + completed: false + providerName: Kiln + status: active + properties: + id: + description: The unique identifier of the staking position + example: b70701f4-d7b1-4795-a8ee-b09cdb5b850a type: string - sourceId: + vaultAccountId: + description: The source vault account to stake from + example: "2" type: string - destId: + validatorName: + description: The destination validator address name + example: FwR3P......tT59f type: string - asset: + providerName: + description: The destination validator provider name + example: Kiln type: string - baseAsset: + chainDescriptor: + description: The protocol identifier (e.g. "ETH"/ "SOL") to use + example: SOL type: string amount: - type: number - amountUSD: - type: number - networkProtocol: - description: The network protocol of the token - example: ETH + description: "Amount of tokens to stake, measured in the staked asset unit." + example: "0.05" type: string - operation: + rewardsAmount: + description: "The amount staked in the position, measured in the staked\ + \ asset unit." + example: "0.000856038" type: string - action: - enum: - - SCREEN - - PASS - - FREEZE + dateCreated: + description: When was the request made (ISO Date). + example: 2023-07-13T15:55:34.256Z type: string - required: - - action - type: object - ScreeningPolicyResponse: - example: - isDefault: true - lastUpdate: 2000-01-23T04:56:07.000+00:00 - policyStatus: policyStatus - policy: - sourceId: sourceId - amount: 0.8008281904610115 - amountUSD: 6.027456183070403 - baseAsset: baseAsset - destType: destType - destId: destId - sourceType: sourceType - destSubType: destSubType - destAddress: destAddress - action: SCREEN - sourceSubType: sourceSubType - asset: asset - operation: operation - networkProtocol: ETH - createDate: 2000-01-23T04:56:07.000+00:00 - properties: - policy: - $ref: "#/components/schemas/TravelRulePolicyRuleResponse" - policyStatus: + status: + description: The current status. + example: active + type: string + relatedTransactions: + description: An array of transaction objects related to this position. Each + object includes a 'txId' representing the transaction ID and a 'completed' + boolean indicating if the transaction was completed. + example: + - txId: b70601f4-d7b1-4795-a8ee-b09cdb4r850d + completed: true + - txId: c80601f4-d7b1-4795-a8ee-b09cdb5b450c + completed: false + items: + $ref: "#/components/schemas/RelatedTransactionDto" + type: array + validatorAddress: + description: The destination address of the staking transaction. + example: FwR3PbjS5iyqzLiLugrBqKSa5EKZ4vK9SKs7eQXtT59f type: string - isDefault: - type: boolean - createDate: - format: date-time + providerId: + description: The unique identifier of the staking provider + example: kiln type: string - lastUpdate: - format: date-time + availableActions: + description: "An array of available actions that can be performed. for example,\ + \ actions like \"unstake\" or \"withdraw\"." + example: + - unstake + items: + type: string + type: array + inProgress: + description: "Indicates whether there is an ongoing action for this position\ + \ (true if ongoing, false if not)." + example: true + type: boolean + inProgressTxId: + description: The transaction ID of the ongoing request + example: c80601f4-d7b1-4795-a8ee-b09cdb5b450c type: string + blockchainPositionInfo: + allOf: + - $ref: "#/components/schemas/SolanaBlockchainDataDto" + description: "Additional fields per blockchain - can be empty or missing\ + \ if not initialized or no additional info exists. The type depends on\ + \ the chainDescriptor value. For Solana (SOL), stake account address.\ + \ For Ethereum (ETH), an empty object is returned as no specific data\ + \ is available." + example: + stakeAccountAddress: 3Ru67FyzMTcdENmmRL4Eve4dtPd6AdpuypR21q5EQCdq required: - - isDefault - - lastUpdate - - policy + - amount + - availableActions + - blockchainPositionInfo + - chainDescriptor + - dateCreated + - id + - inProgress + - providerId + - providerName + - relatedTransactions + - rewardsAmount + - status + - validatorAddress + - validatorName + - vaultAccountId type: object - ScreeningProviderRulesConfigurationResponse: + StakingGetAllDelegationsResponse: + items: + $ref: "#/components/schemas/DelegationDto" + type: array + AmountAndChainDescriptor: example: - amountUSD: 0.8008281904610115 - amount: 6.027456183070403 - action: ACCEPT - asset: asset - direction: INBOUND - status: COMPLETED + chainDescriptor: ETH + amount: "32.007149606" properties: - direction: - enum: - - INBOUND - - OUTBOUND - type: string - status: - enum: - - COMPLETED - - PENDING - - REJECTED - - FAILED - - CANCELED - - BLOCKING_TIME_EXPIRED + chainDescriptor: + description: The protocol identifier (e.g. "ETH"/"SOL") for summary + example: ETH type: string - amountUSD: - type: number amount: - type: number - asset: - type: string - action: - enum: - - ACCEPT - - REJECT - - ALERT - - WAIT - - FREEZE - - CANCEL + description: Cryptocurrency quantity + example: "32.007149606" type: string required: - - action + - amount + - chainDescriptor type: object - ScreeningConfigurationsRequest: + DelegationSummaryDto: example: - inboundTransactionDelay: 0.8008281904610115 - bypassScreeningDuringServiceOutages: true - outboundTransactionDelay: 6.027456183070403 + rewardsAmount: + - chainDescriptor: ETH + amount: "32.007149606" + - chainDescriptor: ETH + amount: "32.007149606" + inactive: + - chainDescriptor: ETH + amount: "32.007149606" + - chainDescriptor: ETH + amount: "32.007149606" + active: + - chainDescriptor: ETH + amount: "32.007149606" + - chainDescriptor: ETH + amount: "32.007149606" + totalStaked: + - chainDescriptor: ETH + amount: "32.007149606" + - chainDescriptor: ETH + amount: "32.007149606" properties: - bypassScreeningDuringServiceOutages: - description: Flag to enable or disable bypass screening during service outages. - type: boolean - inboundTransactionDelay: - description: Inbound transaction delay in seconds. - type: number - outboundTransactionDelay: - description: Outbound transaction delay in seconds. - type: number + active: + description: "An array of objects containing chain descriptors and associated\ + \ amounts, representing active positions." + items: + $ref: "#/components/schemas/AmountAndChainDescriptor" + type: array + inactive: + description: "An array of objects containing chain descriptors and associated\ + \ amounts, representing inactive positions." + items: + $ref: "#/components/schemas/AmountAndChainDescriptor" + type: array + rewardsAmount: + description: "An array of objects containing chain descriptors and associated\ + \ amounts, representing rewards positions." + items: + $ref: "#/components/schemas/AmountAndChainDescriptor" + type: array + totalStaked: + description: "An array of objects with chain descriptors and total staked\ + \ amounts, representing the combined staked totals of active and inactive\ + \ positions." + items: + $ref: "#/components/schemas/AmountAndChainDescriptor" + type: array + required: + - active + - inactive + - rewardsAmount + - totalStaked type: object - ScreeningUpdateConfigurations: - example: - disableUnfreeze: true - disableBypass: true - properties: - disableBypass: - description: Flag to enable or disable bypass screening on tenant configuration. - type: boolean - disableUnfreeze: - description: Flag to enable or disable unfreeze of transaction frozen by - policy rule on tenant configuration. - type: boolean + StakingGetSummaryByVaultResponse: + additionalProperties: + $ref: "#/components/schemas/DelegationSummaryDto" type: object - ComplianceScreeningResultFullPayload: - description: The result of the Travel Rule screening. - example: - provider: provider - payload: "{}" - bypassReason: bypassReason - screeningStatus: COMPLETED - timestamp: 0.8008281904610115 + ValidatorDto: properties: - provider: - type: string - payload: - description: | - 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. - type: object - bypassReason: - type: string - screeningStatus: - enum: - - COMPLETED - - PENDING - - BYPASSED - - FAILED - - FROZEN + chainDescriptor: + description: The protocol identifier (e.g. "ETH"/"SOL") of the validator + example: SOL type: string - timestamp: - format: date-time + feePercent: + description: The service fee as a percentage out of the earned rewards + example: 5 type: number + required: + - chainDescriptor + - feePercent type: object - AmlRegistrationResultFullPayload: - description: The results of the AML address registration. + ProviderDto: example: - provider: provider - success: true - timestamp: 6.027456183070403 + termsOfServiceUrl: https://www.kiln.fi/terms-and-conditions-for-fireblocks-customers + validators: + - chainDescriptor: SOL + feePercent: 5 + - chainDescriptor: ETH + feePercent: 7 + id: kiln + iconUrl: https://static.fireblocks.io/staking/validators/kiln_console.png + providerName: Kiln + isTermsOfServiceApproved: true properties: - provider: + id: + description: The ID of the provider + example: kiln type: string - success: - type: boolean - timestamp: - type: number - type: object - ComplianceResultFullPayload: - description: The result of the Compliance AML/Travel Rule screening. - example: - aml: - provider: provider - payload: "{}" - bypassReason: bypassReason - screeningStatus: COMPLETED - timestamp: 0.8008281904610115 - amlRegistration: - provider: provider - success: true - timestamp: 6.027456183070403 - amlList: - - provider: provider - payload: "{}" - bypassReason: bypassReason - screeningStatus: COMPLETED - timestamp: 0.8008281904610115 - - provider: provider - payload: "{}" - bypassReason: bypassReason - screeningStatus: COMPLETED - timestamp: 0.8008281904610115 - tr: - provider: provider - payload: "{}" - bypassReason: bypassReason - screeningStatus: COMPLETED - timestamp: 0.8008281904610115 - status: Started - properties: - aml: - $ref: "#/components/schemas/ComplianceScreeningResultFullPayload" - tr: - $ref: "#/components/schemas/ComplianceScreeningResultFullPayload" - amlList: - description: The list of all results of the AML screening. + providerName: + description: Name of the provider + example: Kiln + type: string + validators: + description: An array of objects that includes chain descriptors and the + corresponding fee percentages for validators supported by the provider + example: + - chainDescriptor: SOL + feePercent: 5 + - chainDescriptor: ETH + feePercent: 7 items: - $ref: "#/components/schemas/ComplianceScreeningResultFullPayload" + $ref: "#/components/schemas/ValidatorDto" type: array - status: - $ref: "#/components/schemas/ComplianceResultStatusesEnum" - amlRegistration: - $ref: "#/components/schemas/AmlRegistrationResultFullPayload" - type: object - AmlVerdictManualRequest: - example: - verdict: ACCEPT - txId: 550e8400-e29b-41d4-a716-446655440000 - properties: - verdict: - description: The AML verdict to set for the transaction - enum: - - ACCEPT - - REJECT - example: ACCEPT + iconUrl: + description: URL to the validator's icon + example: https://static.fireblocks.io/staking/validators/kiln_console.png type: string - txId: - description: The transaction ID to set the verdict for - example: 550e8400-e29b-41d4-a716-446655440000 - format: uuid + termsOfServiceUrl: + description: URL to the terms of service + example: https://www.kiln.fi/terms-and-conditions-for-fireblocks-customers type: string + isTermsOfServiceApproved: + description: Indicates whether the terms of service are approved + example: true + type: boolean required: - - txId - - verdict + - iconUrl + - id + - isTermsOfServiceApproved + - providerName + - termsOfServiceUrl + - validators type: object - AmlVerdictManualResponse: - example: - success: true - message: AML verdict set successfully + StakingGetProvidersResponse: + items: + $ref: "#/components/schemas/ProviderDto" + type: array + ProvidersResponseDto: + properties: {} + type: object + SetAdminQuorumThresholdRequest: + properties: + adminQuorumThreshold: + description: The number of admins that will requires to approve an operation + type: number + type: object + SetAdminQuorumThresholdResponse: properties: - success: - example: true - type: boolean message: - example: AML verdict set successfully + description: The message which indicates the result of the operation. + example: Admin quorum threshold request sent successfully. type: string required: - message - - success type: object - GetOtaStatusResponse: + Paging: example: - enabled: true + next: next properties: - enabled: - description: Current OTA status - type: boolean + next: + description: Cursor to the next page + type: string + required: + - next type: object - SetOtaStatusRequest: + MediaEntityResponse: example: - enabled: true + contentType: IMAGE + url: url properties: - enabled: - description: Set true or false to enable or disable OTA transactions - type: boolean + url: + description: Cached accessible URL + type: string + contentType: + description: Media type + enum: + - IMAGE + - VIDEO + - ANIMATION + - THREE_D + - TEXT + - GIF + - UNKNOWN_TYPE + - SVG + - AUDIO + type: string + required: + - contentType + - url type: object - SetOtaStatusResponse: - oneOf: - - $ref: "#/components/schemas/SetOtaStatusResponse_oneOf" - - description: Message indicating the result of the operation when config was - successfully updated - example: Accepted - type: string - GetWorkspaceStatusResponse: - example: - status: status + SpamOwnershipResponse: properties: - status: - description: Current workspace status + result: + description: Token spam result + type: boolean + source: + description: Source of Token's Spam status value + enum: + - OWNER + - SYSTEM type: string - type: object - LegacyPolicySrcOrDestType: - description: | - * EXCHANGE - A third-party exchange account connected to your workspace - * UNMANAGED - A unmanaged wallet outside of Fireblocks workspace - * VAULT - An account in your Fireblocks Vault - * NETWORK_CONNECTION - A connection in your Fireblocks network - * COMPOUND - (deprecated) An asset retrieved by using the Compound DeFI protocol - * FIAT_ACCOUNT - A third-party fiat account connected to your workspace - * ONE_TIME_ADDRESS - A non-whitelisted asset from your Fireblocks Workspace - * "*" - All types - enum: - - EXCHANGE - - UNMANAGED - - VAULT - - NETWORK_CONNECTION - - COMPOUND - - FIAT_ACCOUNT - - ONE_TIME_ADDRESS - - '*' - type: string - LegacyPolicySrcOrDestSubType: - description: | - * EXTERNAL - A whitelisted wallet assigned as external is typically used for addresses managed by your clients and counterparties - * INTERNAL - A whitelisted wallet assigned as internal, is typically used for addresses that you control outside of your Fireblocks workspace - * CONTRACT - A whitelisted wallet assigned as contract is for identifying and managing external smart contracts - * EXCHANGETEST - Exchanges which operate only on testnet assets - * "*" - All subtypes - enum: - - EXTERNAL - - INTERNAL - - CONTRACT - - EXCHANGETEST - - '*' - type: string - LegacyPolicySrcOrDestId: - description: | - Defines the account id, options are - * "*" - All accounts - * Specific account id - type: string - LegacySrcOrDestAttributes: - description: | - Defines source or destination component, options are: - * id only - * id and type - first item in the array MUST be id. - * id, type and subtype - first item in the array MUST be id and second item MUST be type. - items: - $ref: "#/components/schemas/LegacySrcOrDestAttributes_inner" - maxItems: 3 - minItems: 1 - type: array - LegacyAmountAggregationTimePeriodMethod: - description: | - * PER_SINGLE_MATCH - Apply the limit to each listed entity - * ACROSS_ALL_MATCHES - Apply the limit to the sum of all listed entities - enum: - - PER_SINGLE_MATCH - - ACROSS_ALL_MATCHES - type: string - LegacyPolicyRule: - description: Policy rule which is enforced on transactions - example: - dst: - ids: - - null - - null - designatedSigner: designatedSigner - dstAddressType: WHITELISTED - designatedSigners: - usersGroups: - - usersGroups - - usersGroups - users: - - users - - users - type: TRANSFER - operator: operator - applyForApprove: true - operators: - usersGroups: - - usersGroups - - usersGroups - services: - - services - - services - users: - - users - - users - wildcard: '*' - periodSec: 0.8008281904610115 - srcId: "" - action: ALLOW - dstSubType: "" - authorizationGroups: - allowOperatorAsAuthorizer: true - groups: - - usersGroups: - - usersGroups - - usersGroups - th: 1.4658129805029452 - users: - - users - - users - - usersGroups: - - usersGroups - - usersGroups - th: 1.4658129805029452 - users: - - users - - users - logic: AND - amountCurrency: USD - amount: LegacyPolicyRule_amount - src: - ids: - - - null - - null - - null - - - null - - null - - null - authorizersCount: 6.027456183070403 - dstType: "" - srcType: "" - transactionType: TRANSFER - externalDescriptor: externalDescriptor - srcSubType: "" - applyForTypedMessage: true - dstId: "" - authorizers: - - authorizers - - authorizers - rawMessageSigning: - derivationPath: - path: - - 5.962133916683182 - - 5.962133916683182 - algorithm: algorithm - asset: asset - amountAggregation: - dstTransferPeers: null - operators: PER_SINGLE_MATCH - srcTransferPeers: null - amountScope: SINGLE_TX + required: + - result + - source + type: object + TokenCollectionResponse: properties: - operator: - deprecated: true - description: (deprecated - replaced by "operators") | Defines users who - can initiate the type of transaction to which the rule applies. options - are * "*" - All users are allowed * Specific User id + id: type: string - operators: - $ref: "#/components/schemas/LegacyPolicyRule_operators" - transactionType: - description: | - Defines the type of transaction to which the rule applies. - * TRANSFER - Default. Transfers funds from one account to another - * CONTRACT_CALL - Calls a smart contract, mainly for DeFi operations. - * APPROVE - Allows a smart contract to withdraw from a designated wallet. - * MINT - Perform a mint operation (increase supply) on a supported token - * BURN - Perform a burn operation (reduce supply) on a supported token - * SUPPLY - Use for DeFi to lend assets - * REDEEM - Use for DeFi to get lending back - * STAKE - Allows you to allocate and lock certain assets for earning staking rewards. - * RAW - An off-chain message with no predefined format, use it to sign any message with your private key. - * TYPED_MESSAGE - An off-chain message type that follows a predefined format, used to sign specific messages that are not actual transactions. - * PROGRAM_CALL - In Solana refers to invoking on-chain programs (smart contracts) to execute transactions and interact with the blockchain. - enum: - - TRANSFER - - CONTRACT_CALL - - APPROVE - - MINT - - BURN - - SUPPLY - - REDEEM - - STAKE - - RAW - - TYPED_MESSAGE - - PROGRAM_CALL + name: type: string - designatedSigner: - deprecated: true - description: (deprecated - replaced by "designatedSigners") Id representing - the user who signs transactions that match a specific rule + symbol: type: string - designatedSigners: - $ref: "#/components/schemas/LegacyPolicyRule_designatedSigners" - type: - description: Policy rule type - enum: - - TRANSFER + required: + - id + type: object + TokenOwnershipResponse: + example: + standard: standard + ncwId: ncwId + tokenId: tokenId + cachedMetadataURI: cachedMetadataURI + vaultAccountId: vaultAccountId + description: description + media: + - contentType: IMAGE + url: url + - contentType: IMAGE + url: url + collection: "" + metadataURI: metadataURI + ownershipLastUpdateTime: 6.027456183070403 + blockchainDescriptor: ETH + ncwAccountId: ncwAccountId + balance: balance + ownershipStartTime: 0.8008281904610115 + name: name + id: id + spam: "" + status: LISTED + properties: + id: + description: The Fireblocks NFT asset id type: string - action: - description: "Defines what occurs when a transaction meets the rule's criteria\n\ - * ALLOW - The transaction goes through and can be signed without requiring\ - \ additional approvals\n* BLOCK - The transaction is automatically blocked\n\ - * 2-TIER - Only these users or user groups can approve \n If\ - \ any of them reject the transaction before the required approval threshold\ - \ is met, the transaction doesn't go through\n The list of entities\ - \ are set is \"authorizationGroups\" field\n" - enum: - - ALLOW - - BLOCK - - 2-TIER + tokenId: + description: Token id within the contract/collection type: string - asset: - description: | - Defines the type of asset being transacted, options are - * "*" - All assets - * Specific asset + standard: + description: ERC721 / ERC1155 type: string - srcType: - allOf: - - $ref: "#/components/schemas/LegacyPolicySrcOrDestType" - deprecated: true - description: (deprecated - replaced by "src") source account type - srcSubType: - allOf: - - $ref: "#/components/schemas/LegacyPolicySrcOrDestSubType" - deprecated: true - description: (deprecated - replaced by "src") source sub account type - srcId: - allOf: - - $ref: "#/components/schemas/LegacyPolicySrcOrDestId" - deprecated: true - description: (deprecated - replaced by "src") source account id - src: - $ref: "#/components/schemas/LegacyPolicyRule_src" - dstType: - allOf: - - $ref: "#/components/schemas/LegacyPolicySrcOrDestType" - deprecated: true - description: (deprecated - replaced by "dst") destination account type - dstSubType: + metadataURI: + description: URL of the original token JSON metadata + type: string + cachedMetadataURI: + description: URL of the cached token JSON metadata + type: string + media: + description: Media items extracted from metadata JSON + items: + $ref: "#/components/schemas/MediaEntityResponse" + type: array + spam: allOf: - - $ref: "#/components/schemas/LegacyPolicySrcOrDestSubType" - deprecated: true - description: (deprecated - replaced by "dst") destination sub account type - dstId: + - $ref: "#/components/schemas/SpamOwnershipResponse" + description: Owned Token's Spam status + collection: allOf: - - $ref: "#/components/schemas/LegacyPolicySrcOrDestId" - deprecated: true - description: (deprecated - replaced by "dst") destination account id - dst: - $ref: "#/components/schemas/LegacyPolicyRule_dst" - dstAddressType: - description: | - Defines whether the destination to which you are sending funds must be whitelisted, to allow one-time transfers to non-whitelisted external addresses, or both. - By default, you can only transfer to an external address after it’s whitelisted. - * WHITELISTED - Can only be sent to whitelisted addresses. - * ONE_TIME - Can only be sent to non-whitelisted external addresses. - * "*" - can be sent to whitelisted addresses or non-whitelisted external - enum: - - WHITELISTED - - ONE_TIME - - '*' + - $ref: "#/components/schemas/TokenCollectionResponse" + description: Parent collection information + balance: type: string - amountCurrency: - description: | - * USD - Limits the amount of any asset users can transfer based on the USD equivalent of the asset. - * EUR - Limits the amount of any asset users can transfer based on the EURO equivalent of the asset. - * NATIVE - Limits the amount of an asset a user can transfer when using a specific asset. + vaultAccountId: + type: string + ownershipStartTime: + type: number + ownershipLastUpdateTime: + type: number + blockchainDescriptor: enum: - - USD - - EUR - - NATIVE + - ETH + - ETH_TEST3 + - ETH_TEST5 + - ETH_TEST6 + - POLYGON + - POLYGON_TEST_MUMBAI + - AMOY_POLYGON_TEST + - XTZ + - XTZ_TEST + - BASECHAIN_ETH type: string - amountScope: - description: | - * SINGLE_TX - limit applies to a single transaction - * TIMEFRAME - limit applies to all transactions within the defined time period + description: + type: string + name: + type: string + ncwId: + description: Ownership Non-Custodial Wallet ID + type: string + ncwAccountId: + description: Ownership Non-Custodial Wallet's account ID + type: string + status: + description: Owned Token's status enum: - - SINGLE_TX - - TIMEFRAME + - LISTED + - ARCHIVED type: string - amount: - $ref: "#/components/schemas/LegacyPolicyRule_amount" - periodSec: - description: | - Time period in seconds applied by the amountScope field to accumulate transferred amounts in transactions that match the rule, until the total exceeds the value you specify under Minimum. - When the specified amount is reached within that period, whether by one or many transactions, further transactions in that period either fail or require more approvals. - type: number - authorizers: - deprecated: true - description: (deprecated - replaced by "authorizationGroups") Allowed entities - which can approves a transaction + required: + - balance + - blockchainDescriptor + - id + - ownershipLastUpdateTime + - ownershipStartTime + - standard + - status + - tokenId + type: object + GetOwnershipTokensResponse: + example: + data: + - standard: standard + ncwId: ncwId + tokenId: tokenId + cachedMetadataURI: cachedMetadataURI + vaultAccountId: vaultAccountId + description: description + media: + - contentType: IMAGE + url: url + - contentType: IMAGE + url: url + collection: "" + metadataURI: metadataURI + ownershipLastUpdateTime: 6.027456183070403 + blockchainDescriptor: ETH + ncwAccountId: ncwAccountId + balance: balance + ownershipStartTime: 0.8008281904610115 + name: name + id: id + spam: "" + status: LISTED + - standard: standard + ncwId: ncwId + tokenId: tokenId + cachedMetadataURI: cachedMetadataURI + vaultAccountId: vaultAccountId + description: description + media: + - contentType: IMAGE + url: url + - contentType: IMAGE + url: url + collection: "" + metadataURI: metadataURI + ownershipLastUpdateTime: 6.027456183070403 + blockchainDescriptor: ETH + ncwAccountId: ncwAccountId + balance: balance + ownershipStartTime: 0.8008281904610115 + name: name + id: id + spam: "" + status: LISTED + paging: + next: next + properties: + paging: + $ref: "#/components/schemas/Paging" + data: items: - type: string + $ref: "#/components/schemas/TokenOwnershipResponse" type: array - authorizersCount: - deprecated: true - description: (deprecated - replaced by "authorizationGroups") Min amount - of entities which are needed to approve a transaction - type: number - authorizationGroups: - $ref: "#/components/schemas/LegacyPolicyRule_authorizationGroups" - amountAggregation: - $ref: "#/components/schemas/LegacyPolicyRule_amountAggregation" - rawMessageSigning: - $ref: "#/components/schemas/LegacyPolicyRule_rawMessageSigning" - applyForApprove: - description: Applying this rule over APPROVE type transactions (can only - be enabled when rule's transaction type is TRANSFER) - type: boolean - applyForTypedMessage: - description: Applying this rule over TYPED_MESSAGE type transactions (can - only be enabled when rule's transaction type is CONTRACT_CALL) + type: object + SpamTokenResponse: + properties: + result: + description: Token spam result type: boolean - externalDescriptor: - description: A unique id identifying the rule - type: string required: - - action - - amount - - amountCurrency - - amountScope - - asset - - periodSec - - type + - result type: object - LegacyPolicyMetadata: - description: Policy related metadata + TokenResponse: example: - publishedBy: publishedBy - editedBy: editedBy - publishedAt: publishedAt - editedAt: editedAt + standard: standard + blockchainDescriptor: ETH + tokenId: tokenId + cachedMetadataURI: cachedMetadataURI + name: name + description: description + id: id + media: + - contentType: IMAGE + url: url + - contentType: IMAGE + url: url + collection: "" + spam: "" + metadataURI: metadataURI properties: - editedBy: - description: The user id of the user who last edited the policy - type: string - editedAt: - description: The timestamp of the last edit of the policy + id: + description: The Fireblocks NFT asset id type: string - publishedBy: - description: The user id of the user who last published the policy + tokenId: + description: Token id within the contract/collection type: string - publishedAt: - description: The timestamp of the last publish of the policy + standard: + description: ERC721 / ERC1155 type: string - type: object - LegacyPolicyResponse: - description: Response object for policy operations - example: - metadata: - publishedBy: publishedBy - editedBy: editedBy - publishedAt: publishedAt - editedAt: editedAt - rules: - - dst: - ids: - - null - - null - designatedSigner: designatedSigner - dstAddressType: WHITELISTED - designatedSigners: - usersGroups: - - usersGroups - - usersGroups - users: - - users - - users - type: TRANSFER - operator: operator - applyForApprove: true - operators: - usersGroups: - - usersGroups - - usersGroups - services: - - services - - services - users: - - users - - users - wildcard: '*' - periodSec: 0.8008281904610115 - srcId: "" - action: ALLOW - dstSubType: "" - authorizationGroups: - allowOperatorAsAuthorizer: true - groups: - - usersGroups: - - usersGroups - - usersGroups - th: 1.4658129805029452 - users: - - users - - users - - usersGroups: - - usersGroups - - usersGroups - th: 1.4658129805029452 - users: - - users - - users - logic: AND - amountCurrency: USD - amount: LegacyPolicyRule_amount - src: - ids: - - - null - - null - - null - - - null - - null - - null - authorizersCount: 6.027456183070403 - dstType: "" - srcType: "" - transactionType: TRANSFER - externalDescriptor: externalDescriptor - srcSubType: "" - applyForTypedMessage: true - dstId: "" - authorizers: - - authorizers - - authorizers - rawMessageSigning: - derivationPath: - path: - - 5.962133916683182 - - 5.962133916683182 - algorithm: algorithm - asset: asset - amountAggregation: - dstTransferPeers: null - operators: PER_SINGLE_MATCH - srcTransferPeers: null - amountScope: SINGLE_TX - - dst: - ids: - - null - - null - designatedSigner: designatedSigner - dstAddressType: WHITELISTED - designatedSigners: - usersGroups: - - usersGroups - - usersGroups - users: - - users - - users - type: TRANSFER - operator: operator - applyForApprove: true - operators: - usersGroups: - - usersGroups - - usersGroups - services: - - services - - services - users: - - users - - users - wildcard: '*' - periodSec: 0.8008281904610115 - srcId: "" - action: ALLOW - dstSubType: "" - authorizationGroups: - allowOperatorAsAuthorizer: true - groups: - - usersGroups: - - usersGroups - - usersGroups - th: 1.4658129805029452 - users: - - users - - users - - usersGroups: - - usersGroups - - usersGroups - th: 1.4658129805029452 - users: - - users - - users - logic: AND - amountCurrency: USD - amount: LegacyPolicyRule_amount - src: - ids: - - - null - - null - - null - - - null - - null - - null - authorizersCount: 6.027456183070403 - dstType: "" - srcType: "" - transactionType: TRANSFER - externalDescriptor: externalDescriptor - srcSubType: "" - applyForTypedMessage: true - dstId: "" - authorizers: - - authorizers - - authorizers - rawMessageSigning: - derivationPath: - path: - - 5.962133916683182 - - 5.962133916683182 - algorithm: algorithm - asset: asset - amountAggregation: - dstTransferPeers: null - operators: PER_SINGLE_MATCH - srcTransferPeers: null - amountScope: SINGLE_TX - properties: - rules: - description: A set of policy rules + metadataURI: + description: URL of the original token JSON metadata + type: string + cachedMetadataURI: + description: URL of the cached token JSON metadata + type: string + media: + description: Media items extracted from metadata JSON items: - $ref: "#/components/schemas/LegacyPolicyRule" + $ref: "#/components/schemas/MediaEntityResponse" type: array - metadata: - $ref: "#/components/schemas/LegacyPolicyMetadata" + spam: + allOf: + - $ref: "#/components/schemas/SpamTokenResponse" + description: Token spam status + collection: + allOf: + - $ref: "#/components/schemas/TokenCollectionResponse" + description: Parent collection information + blockchainDescriptor: + enum: + - ETH + - ETH_TEST3 + - ETH_TEST5 + - ETH_TEST6 + - POLYGON + - POLYGON_TEST_MUMBAI + - AMOY_POLYGON_TEST + - XTZ + - XTZ_TEST + - BASECHAIN_ETH + type: string + description: + type: string + name: + type: string required: - - metadata - - rules + - blockchainDescriptor + - id + - standard + - tokenId type: object - LegacyPolicyRuleError: - description: Rule validation result error + ListOwnedTokensResponse: example: - errorCodeName: errorCodeName - errorField: operator - errorMessage: errorMessage - errorCode: 7.061401241503109 + data: + - standard: standard + blockchainDescriptor: ETH + tokenId: tokenId + cachedMetadataURI: cachedMetadataURI + name: name + description: description + id: id + media: + - contentType: IMAGE + url: url + - contentType: IMAGE + url: url + collection: "" + spam: "" + metadataURI: metadataURI + - standard: standard + blockchainDescriptor: ETH + tokenId: tokenId + cachedMetadataURI: cachedMetadataURI + name: name + description: description + id: id + media: + - contentType: IMAGE + url: url + - contentType: IMAGE + url: url + collection: "" + spam: "" + metadataURI: metadataURI + paging: + next: next properties: - errorMessage: - description: Error message + paging: + $ref: "#/components/schemas/Paging" + data: + items: + $ref: "#/components/schemas/TokenResponse" + type: array + type: object + CollectionOwnershipResponse: + example: + standard: standard + symbol: symbol + blockchainDescriptor: ETH + name: name + contractAddress: contractAddress + id: id + properties: + id: + description: Fireblocks collection id type: string - errorCode: - description: error code - type: number - errorCodeName: - description: error code name + name: + description: Collection name type: string - errorField: - description: | - The field which the error relates to - * operator - transaction initiator - * operators - transaction initiators - * authorizationGroups - transaction authorizer groups - * designatedSigner - transaction signer - * designatedSigners - transaction signers - * contractMethods - contract methods - * amountAggregation - transaction amount aggregation configuration - * src - transaction source asset configuration - * dst - transaction destination asset configuration + symbol: + description: Collection symbol + type: string + standard: + description: Collection contract standard + type: string + blockchainDescriptor: + description: Collection's blockchain enum: - - operator - - operators - - authorizationGroups - - designatedSigner - - designatedSigners - - contractMethods - - amountAggregation - - src - - dst + - ETH + - ETH_TEST3 + - ETH_TEST5 + - ETH_TEST6 + - POLYGON + - POLYGON_TEST_MUMBAI + - AMOY_POLYGON_TEST + - XTZ + - XTZ_TEST + - BASECHAIN_ETH + type: string + contractAddress: + description: Collection contract standard type: string required: - - errorCode - - errorCodeName - - errorField - - errorMessage + - blockchainDescriptor + - id type: object - LegacyPolicyRuleCheckResult: - description: The rule validation result + ListOwnedCollectionsResponse: example: - index: 2.3021358869347655 - errors: - - errorCodeName: errorCodeName - errorField: operator - errorMessage: errorMessage - errorCode: 7.061401241503109 - - errorCodeName: errorCodeName - errorField: operator - errorMessage: errorMessage - errorCode: 7.061401241503109 - status: ok + data: + - standard: standard + symbol: symbol + blockchainDescriptor: ETH + name: name + contractAddress: contractAddress + id: id + - standard: standard + symbol: symbol + blockchainDescriptor: ETH + name: name + contractAddress: contractAddress + id: id + paging: + next: next properties: - index: - description: Rule index number in the policy - type: number - status: - description: Validation status - enum: - - ok - - failure - type: string - errors: - description: A set of rule validation error objects + paging: + $ref: "#/components/schemas/Paging" + data: items: - $ref: "#/components/schemas/LegacyPolicyRuleError" + $ref: "#/components/schemas/CollectionOwnershipResponse" type: array - required: - - errors - - index - - status type: object - LegacyPolicyCheckResult: - description: Policy rules validation result + GetNFTsResponse: example: - results: - - index: 2.3021358869347655 - errors: - - errorCodeName: errorCodeName - errorField: operator - errorMessage: errorMessage - errorCode: 7.061401241503109 - - errorCodeName: errorCodeName - errorField: operator - errorMessage: errorMessage - errorCode: 7.061401241503109 - status: ok - - index: 2.3021358869347655 - errors: - - errorCodeName: errorCodeName - errorField: operator - errorMessage: errorMessage - errorCode: 7.061401241503109 - - errorCodeName: errorCodeName - errorField: operator - errorMessage: errorMessage - errorCode: 7.061401241503109 - status: ok - errors: 5.637376656633329 + data: + - standard: standard + blockchainDescriptor: ETH + tokenId: tokenId + cachedMetadataURI: cachedMetadataURI + name: name + description: description + id: id + media: + - contentType: IMAGE + url: url + - contentType: IMAGE + url: url + collection: "" + spam: "" + metadataURI: metadataURI + - standard: standard + blockchainDescriptor: ETH + tokenId: tokenId + cachedMetadataURI: cachedMetadataURI + name: name + description: description + id: id + media: + - contentType: IMAGE + url: url + - contentType: IMAGE + url: url + collection: "" + spam: "" + metadataURI: metadataURI + paging: + next: next properties: - errors: - description: Number of errors - type: number - results: - description: A set of validation results + paging: + $ref: "#/components/schemas/Paging" + data: items: - $ref: "#/components/schemas/LegacyPolicyRuleCheckResult" + $ref: "#/components/schemas/TokenResponse" type: array - required: - - errors - - results type: object - LegacyPolicyValidation: - description: Policy validation object + UpdateTokenOwnershipStatusDto: example: - checkResult: - results: - - index: 2.3021358869347655 - errors: - - errorCodeName: errorCodeName - errorField: operator - errorMessage: errorMessage - errorCode: 7.061401241503109 - - errorCodeName: errorCodeName - errorField: operator - errorMessage: errorMessage - errorCode: 7.061401241503109 - status: ok - - index: 2.3021358869347655 - errors: - - errorCodeName: errorCodeName - errorField: operator - errorMessage: errorMessage - errorCode: 7.061401241503109 - - errorCodeName: errorCodeName - errorField: operator - errorMessage: errorMessage - errorCode: 7.061401241503109 - status: ok - errors: 5.637376656633329 - status: status + status: LISTED properties: status: - description: Validation status - type: string - checkResult: - $ref: "#/components/schemas/LegacyPolicyCheckResult" - required: - - checkResult - - status - type: object - LegacyPolicyAndValidationResponse: - description: Policy validation - example: - validation: - checkResult: - results: - - index: 2.3021358869347655 - errors: - - errorCodeName: errorCodeName - errorField: operator - errorMessage: errorMessage - errorCode: 7.061401241503109 - - errorCodeName: errorCodeName - errorField: operator - errorMessage: errorMessage - errorCode: 7.061401241503109 - status: ok - - index: 2.3021358869347655 - errors: - - errorCodeName: errorCodeName - errorField: operator - errorMessage: errorMessage - errorCode: 7.061401241503109 - - errorCodeName: errorCodeName - errorField: operator - errorMessage: errorMessage - errorCode: 7.061401241503109 - status: ok - errors: 5.637376656633329 - status: status - policy: - metadata: - publishedBy: publishedBy - editedBy: editedBy - publishedAt: publishedAt - editedAt: editedAt - rules: - - dst: - ids: - - null - - null - designatedSigner: designatedSigner - dstAddressType: WHITELISTED - designatedSigners: - usersGroups: - - usersGroups - - usersGroups - users: - - users - - users - type: TRANSFER - operator: operator - applyForApprove: true - operators: - usersGroups: - - usersGroups - - usersGroups - services: - - services - - services - users: - - users - - users - wildcard: '*' - periodSec: 0.8008281904610115 - srcId: "" - action: ALLOW - dstSubType: "" - authorizationGroups: - allowOperatorAsAuthorizer: true - groups: - - usersGroups: - - usersGroups - - usersGroups - th: 1.4658129805029452 - users: - - users - - users - - usersGroups: - - usersGroups - - usersGroups - th: 1.4658129805029452 - users: - - users - - users - logic: AND - amountCurrency: USD - amount: LegacyPolicyRule_amount - src: - ids: - - - null - - null - - null - - - null - - null - - null - authorizersCount: 6.027456183070403 - dstType: "" - srcType: "" - transactionType: TRANSFER - externalDescriptor: externalDescriptor - srcSubType: "" - applyForTypedMessage: true - dstId: "" - authorizers: - - authorizers - - authorizers - rawMessageSigning: - derivationPath: - path: - - 5.962133916683182 - - 5.962133916683182 - algorithm: algorithm - asset: asset - amountAggregation: - dstTransferPeers: null - operators: PER_SINGLE_MATCH - srcTransferPeers: null - amountScope: SINGLE_TX - - dst: - ids: - - null - - null - designatedSigner: designatedSigner - dstAddressType: WHITELISTED - designatedSigners: - usersGroups: - - usersGroups - - usersGroups - users: - - users - - users - type: TRANSFER - operator: operator - applyForApprove: true - operators: - usersGroups: - - usersGroups - - usersGroups - services: - - services - - services - users: - - users - - users - wildcard: '*' - periodSec: 0.8008281904610115 - srcId: "" - action: ALLOW - dstSubType: "" - authorizationGroups: - allowOperatorAsAuthorizer: true - groups: - - usersGroups: - - usersGroups - - usersGroups - th: 1.4658129805029452 - users: - - users - - users - - usersGroups: - - usersGroups - - usersGroups - th: 1.4658129805029452 - users: - - users - - users - logic: AND - amountCurrency: USD - amount: LegacyPolicyRule_amount - src: - ids: - - - null - - null - - null - - - null - - null - - null - authorizersCount: 6.027456183070403 - dstType: "" - srcType: "" - transactionType: TRANSFER - externalDescriptor: externalDescriptor - srcSubType: "" - applyForTypedMessage: true - dstId: "" - authorizers: - - authorizers - - authorizers - rawMessageSigning: - derivationPath: - path: - - 5.962133916683182 - - 5.962133916683182 - algorithm: algorithm - asset: asset - amountAggregation: - dstTransferPeers: null - operators: PER_SINGLE_MATCH - srcTransferPeers: null - amountScope: SINGLE_TX - properties: - policy: - $ref: "#/components/schemas/LegacyPolicyResponse" - validation: - $ref: "#/components/schemas/LegacyPolicyValidation" + enum: + - LISTED + - ARCHIVED + type: string required: - - policy - - validation + - status type: object - LegacyDraftResponse: - description: Response object for draft operations + TokenOwnershipStatusUpdatePayload: example: - draftId: draftId - metadata: - publishedBy: publishedBy - editedBy: editedBy - publishedAt: publishedAt - editedAt: editedAt - rules: - - dst: - ids: - - null - - null - designatedSigner: designatedSigner - dstAddressType: WHITELISTED - designatedSigners: - usersGroups: - - usersGroups - - usersGroups - users: - - users - - users - type: TRANSFER - operator: operator - applyForApprove: true - operators: - usersGroups: - - usersGroups - - usersGroups - services: - - services - - services - users: - - users - - users - wildcard: '*' - periodSec: 0.8008281904610115 - srcId: "" - action: ALLOW - dstSubType: "" - authorizationGroups: - allowOperatorAsAuthorizer: true - groups: - - usersGroups: - - usersGroups - - usersGroups - th: 1.4658129805029452 - users: - - users - - users - - usersGroups: - - usersGroups - - usersGroups - th: 1.4658129805029452 - users: - - users - - users - logic: AND - amountCurrency: USD - amount: LegacyPolicyRule_amount - src: - ids: - - - null - - null - - null - - - null - - null - - null - authorizersCount: 6.027456183070403 - dstType: "" - srcType: "" - transactionType: TRANSFER - externalDescriptor: externalDescriptor - srcSubType: "" - applyForTypedMessage: true - dstId: "" - authorizers: - - authorizers - - authorizers - rawMessageSigning: - derivationPath: - path: - - 5.962133916683182 - - 5.962133916683182 - algorithm: algorithm - asset: asset - amountAggregation: - dstTransferPeers: null - operators: PER_SINGLE_MATCH - srcTransferPeers: null - amountScope: SINGLE_TX - - dst: - ids: - - null - - null - designatedSigner: designatedSigner - dstAddressType: WHITELISTED - designatedSigners: - usersGroups: - - usersGroups - - usersGroups - users: - - users - - users - type: TRANSFER - operator: operator - applyForApprove: true - operators: - usersGroups: - - usersGroups - - usersGroups - services: - - services - - services - users: - - users - - users - wildcard: '*' - periodSec: 0.8008281904610115 - srcId: "" - action: ALLOW - dstSubType: "" - authorizationGroups: - allowOperatorAsAuthorizer: true - groups: - - usersGroups: - - usersGroups - - usersGroups - th: 1.4658129805029452 - users: - - users - - users - - usersGroups: - - usersGroups - - usersGroups - th: 1.4658129805029452 - users: - - users - - users - logic: AND - amountCurrency: USD - amount: LegacyPolicyRule_amount - src: - ids: - - - null - - null - - null - - - null - - null - - null - authorizersCount: 6.027456183070403 - dstType: "" - srcType: "" - transactionType: TRANSFER - externalDescriptor: externalDescriptor - srcSubType: "" - applyForTypedMessage: true - dstId: "" - authorizers: - - authorizers - - authorizers - rawMessageSigning: - derivationPath: - path: - - 5.962133916683182 - - 5.962133916683182 - algorithm: algorithm - asset: asset - amountAggregation: - dstTransferPeers: null - operators: PER_SINGLE_MATCH - srcTransferPeers: null - amountScope: SINGLE_TX - status: status + assetId: NFT-abcdefabcdefabcdefabcdefabcdefabcdefabcd + status: ARCHIVED properties: + assetId: + description: Token's asset id + example: NFT-abcdefabcdefabcdefabcdefabcdefabcdefabcd + type: string + x-fb-entity: asset status: - description: Operation status + description: Token's ownership new status + enum: + - LISTED + - ARCHIVED + example: ARCHIVED + type: string + required: + - assetId + - status + type: object + UpdateTokensOwnershipStatusRequest: + items: + $ref: "#/components/schemas/TokenOwnershipStatusUpdatePayload" + type: array + TokenOwnershipSpamUpdatePayload: + example: + assetId: NFT-abcdefabcdefabcdefabcdefabcdefabcdefabcd + spam: true + properties: + assetId: + description: Token's asset id + example: NFT-abcdefabcdefabcdefabcdefabcdefabcdefabcd + type: string + x-fb-entity: asset + spam: + description: Token's ownership new spam value + example: true + type: boolean + required: + - assetId + - spam + type: object + UpdateTokensOwnershipSpamRequest: + items: + $ref: "#/components/schemas/TokenOwnershipSpamUpdatePayload" + type: array + SessionMetadata: + properties: + appUrl: + type: string + appName: + type: string + appDescription: + type: string + appIcon: + type: string + required: + - appUrl + type: object + SessionDTO: + example: + vaultAccountId: 1 + sessionMetadata: "" + chainIds: + - ETH + - ETH_TEST + - SOL + id: 4e9e7051-f3b2-48e9-8ee6-b12492552657 + feeLevel: MEDIUM + creationDate: 2000-01-23T04:56:07.000+00:00 + userId: userId + connectionType: WalletConnect + connectionMethod: API + properties: + id: + description: Id of the connection + example: 4e9e7051-f3b2-48e9-8ee6-b12492552657 + type: string + userId: + description: Id of the user that created the connection + type: string + sessionMetadata: + allOf: + - $ref: "#/components/schemas/SessionMetadata" + description: Metadata of the connection (provided by the dapp) + vaultAccountId: + description: The vault to connect + example: 1 + type: number + feeLevel: + description: The default fee level + enum: + - MEDIUM + - HIGH + example: MEDIUM type: string - rules: - description: Draft rules + chainIds: + description: The chains approved for the connection + example: + - ETH + - ETH_TEST + - SOL items: - $ref: "#/components/schemas/LegacyPolicyRule" + type: string type: array - draftId: - description: Draft unique id + connectionType: + description: The connection's type + enum: + - WalletConnect + example: WalletConnect + type: string + connectionMethod: + description: The method through which the connection was established + enum: + - DESKTOP + - MOBILE + - API + example: API + type: string + creationDate: + description: Timestamp of the session's creation + format: date-time type: string - metadata: - $ref: "#/components/schemas/LegacyPolicyMetadata" required: - - draftId - - metadata - - rules - - status - type: object - LegacyDraftReviewAndValidationResponse: - description: Draft validation - example: - draftResponse: - draftId: draftId - metadata: - publishedBy: publishedBy - editedBy: editedBy - publishedAt: publishedAt - editedAt: editedAt - rules: - - dst: - ids: - - null - - null - designatedSigner: designatedSigner - dstAddressType: WHITELISTED - designatedSigners: - usersGroups: - - usersGroups - - usersGroups - users: - - users - - users - type: TRANSFER - operator: operator - applyForApprove: true - operators: - usersGroups: - - usersGroups - - usersGroups - services: - - services - - services - users: - - users - - users - wildcard: '*' - periodSec: 0.8008281904610115 - srcId: "" - action: ALLOW - dstSubType: "" - authorizationGroups: - allowOperatorAsAuthorizer: true - groups: - - usersGroups: - - usersGroups - - usersGroups - th: 1.4658129805029452 - users: - - users - - users - - usersGroups: - - usersGroups - - usersGroups - th: 1.4658129805029452 - users: - - users - - users - logic: AND - amountCurrency: USD - amount: LegacyPolicyRule_amount - src: - ids: - - - null - - null - - null - - - null - - null - - null - authorizersCount: 6.027456183070403 - dstType: "" - srcType: "" - transactionType: TRANSFER - externalDescriptor: externalDescriptor - srcSubType: "" - applyForTypedMessage: true - dstId: "" - authorizers: - - authorizers - - authorizers - rawMessageSigning: - derivationPath: - path: - - 5.962133916683182 - - 5.962133916683182 - algorithm: algorithm - asset: asset - amountAggregation: - dstTransferPeers: null - operators: PER_SINGLE_MATCH - srcTransferPeers: null - amountScope: SINGLE_TX - - dst: - ids: - - null - - null - designatedSigner: designatedSigner - dstAddressType: WHITELISTED - designatedSigners: - usersGroups: - - usersGroups - - usersGroups - users: - - users - - users - type: TRANSFER - operator: operator - applyForApprove: true - operators: - usersGroups: - - usersGroups - - usersGroups - services: - - services - - services - users: - - users - - users - wildcard: '*' - periodSec: 0.8008281904610115 - srcId: "" - action: ALLOW - dstSubType: "" - authorizationGroups: - allowOperatorAsAuthorizer: true - groups: - - usersGroups: - - usersGroups - - usersGroups - th: 1.4658129805029452 - users: - - users - - users - - usersGroups: - - usersGroups - - usersGroups - th: 1.4658129805029452 - users: - - users - - users - logic: AND - amountCurrency: USD - amount: LegacyPolicyRule_amount - src: - ids: - - - null - - null - - null - - - null - - null - - null - authorizersCount: 6.027456183070403 - dstType: "" - srcType: "" - transactionType: TRANSFER - externalDescriptor: externalDescriptor - srcSubType: "" - applyForTypedMessage: true - dstId: "" - authorizers: - - authorizers - - authorizers - rawMessageSigning: - derivationPath: - path: - - 5.962133916683182 - - 5.962133916683182 - algorithm: algorithm - asset: asset - amountAggregation: - dstTransferPeers: null - operators: PER_SINGLE_MATCH - srcTransferPeers: null - amountScope: SINGLE_TX - status: status - validation: - checkResult: - results: - - index: 2.3021358869347655 - errors: - - errorCodeName: errorCodeName - errorField: operator - errorMessage: errorMessage - errorCode: 7.061401241503109 - - errorCodeName: errorCodeName - errorField: operator - errorMessage: errorMessage - errorCode: 7.061401241503109 - status: ok - - index: 2.3021358869347655 - errors: - - errorCodeName: errorCodeName - errorField: operator - errorMessage: errorMessage - errorCode: 7.061401241503109 - - errorCodeName: errorCodeName - errorField: operator - errorMessage: errorMessage - errorCode: 7.061401241503109 - status: ok - errors: 5.637376656633329 - status: status + - chainIds + - connectionMethod + - connectionType + - creationDate + - feeLevel + - id + - sessionMetadata + - userId + - vaultAccountId + type: object + GetConnectionsResponse: + example: + data: + - vaultAccountId: 1 + sessionMetadata: "" + chainIds: + - ETH + - ETH_TEST + - SOL + id: 4e9e7051-f3b2-48e9-8ee6-b12492552657 + feeLevel: MEDIUM + creationDate: 2000-01-23T04:56:07.000+00:00 + userId: userId + connectionType: WalletConnect + connectionMethod: API + - vaultAccountId: 1 + sessionMetadata: "" + chainIds: + - ETH + - ETH_TEST + - SOL + id: 4e9e7051-f3b2-48e9-8ee6-b12492552657 + feeLevel: MEDIUM + creationDate: 2000-01-23T04:56:07.000+00:00 + userId: userId + connectionType: WalletConnect + connectionMethod: API + paging: + next: next properties: - draftResponse: - $ref: "#/components/schemas/LegacyDraftResponse" - validation: - $ref: "#/components/schemas/LegacyPolicyValidation" + data: + description: Array with the requested Web3 connection's data + items: + $ref: "#/components/schemas/SessionDTO" + type: array + paging: + $ref: "#/components/schemas/Paging" required: - - draftResponse - - validation + - data type: object - LegacyPolicyRules: + CreateVaultAccountConnectionRequest: example: - rules: - - dst: - ids: - - null - - null - designatedSigner: designatedSigner - dstAddressType: WHITELISTED - designatedSigners: - usersGroups: - - usersGroups - - usersGroups - users: - - users - - users - type: TRANSFER - operator: operator - applyForApprove: true - operators: - usersGroups: - - usersGroups - - usersGroups - services: - - services - - services - users: - - users - - users - wildcard: '*' - periodSec: 0.8008281904610115 - srcId: "" - action: ALLOW - dstSubType: "" - authorizationGroups: - allowOperatorAsAuthorizer: true - groups: - - usersGroups: - - usersGroups - - usersGroups - th: 1.4658129805029452 - users: - - users - - users - - usersGroups: - - usersGroups - - usersGroups - th: 1.4658129805029452 - users: - - users - - users - logic: AND - amountCurrency: USD - amount: LegacyPolicyRule_amount - src: - ids: - - - null - - null - - null - - - null - - null - - null - authorizersCount: 6.027456183070403 - dstType: "" - srcType: "" - transactionType: TRANSFER - externalDescriptor: externalDescriptor - srcSubType: "" - applyForTypedMessage: true - dstId: "" - authorizers: - - authorizers - - authorizers - rawMessageSigning: - derivationPath: - path: - - 5.962133916683182 - - 5.962133916683182 - algorithm: algorithm - asset: asset - amountAggregation: - dstTransferPeers: null - operators: PER_SINGLE_MATCH - srcTransferPeers: null - amountScope: SINGLE_TX - - dst: - ids: - - null - - null - designatedSigner: designatedSigner - dstAddressType: WHITELISTED - designatedSigners: - usersGroups: - - usersGroups - - usersGroups - users: - - users - - users - type: TRANSFER - operator: operator - applyForApprove: true - operators: - usersGroups: - - usersGroups - - usersGroups - services: - - services - - services - users: - - users - - users - wildcard: '*' - periodSec: 0.8008281904610115 - srcId: "" - action: ALLOW - dstSubType: "" - authorizationGroups: - allowOperatorAsAuthorizer: true - groups: - - usersGroups: - - usersGroups - - usersGroups - th: 1.4658129805029452 - users: - - users - - users - - usersGroups: - - usersGroups - - usersGroups - th: 1.4658129805029452 - users: - - users - - users - logic: AND - amountCurrency: USD - amount: LegacyPolicyRule_amount - src: - ids: - - - null - - null - - null - - - null - - null - - null - authorizersCount: 6.027456183070403 - dstType: "" - srcType: "" - transactionType: TRANSFER - externalDescriptor: externalDescriptor - srcSubType: "" - applyForTypedMessage: true - dstId: "" - authorizers: - - authorizers - - authorizers - rawMessageSigning: - derivationPath: - path: - - 5.962133916683182 - - 5.962133916683182 - algorithm: algorithm - asset: asset - amountAggregation: - dstTransferPeers: null - operators: PER_SINGLE_MATCH - srcTransferPeers: null - amountScope: SINGLE_TX + vaultAccountId: 1 + chainIds: + - ETH + feeLevel: MEDIUM + uri: wc:77752975-906f-48f5-b59f-047826ee947e@1?bridge=https%3A%2F%2F0.bridge.walletconnect.org&key=64be99adc6086b7a729b0ec8c7e1f174927ab92e84f5c6f9527050225344a637 properties: - rules: - description: Policy rules + vaultAccountId: + description: The ID of the vault to connect to the dApp. + example: 1 + type: number + feeLevel: + description: The default fee level. Valid values are `MEDIUM` and `HIGH`. + enum: + - MEDIUM + - HIGH + example: MEDIUM + type: string + uri: + description: The WalletConnect uri provided by the dapp. + example: wc:77752975-906f-48f5-b59f-047826ee947e@1?bridge=https%3A%2F%2F0.bridge.walletconnect.org&key=64be99adc6086b7a729b0ec8c7e1f174927ab92e84f5c6f9527050225344a637 + type: string + chainIds: + description: The IDs of the blockchain networks used in the Web3 connection + (Currently required in V1 connections only). + example: + - ETH + items: + type: string + type: array + required: + - feeLevel + - uri + - vaultAccountId + type: object + CreateNcwConnectionRequest: + properties: + ncwId: + description: The ID of the Non-Custodial Wallet to connect to the dApp. + example: b8337f1d-bd61-4d6c-afc1-4c9d60aa2132 + type: string + ncwAccountId: + description: The NCW account ID to connect to the dApp. + example: 1 + type: number + feeLevel: + description: The default fee level. Valid values are `MEDIUM` and `HIGH`. + enum: + - MEDIUM + - HIGH + example: MEDIUM + type: string + uri: + description: The WalletConnect uri provided by the dapp. + example: wc:77752975-906f-48f5-b59f-047826ee947e@1?bridge=https%3A%2F%2F0.bridge.walletconnect.org&key=64be99adc6086b7a729b0ec8c7e1f174927ab92e84f5c6f9527050225344a637 + type: string + chainIds: + description: The IDs of the blockchain networks used in the Web3 connection + (Currently required in V1 connections only). + example: + - ETH items: - $ref: "#/components/schemas/LegacyPolicyRule" + type: string type: array + required: + - feeLevel + - ncwAccountId + - ncwId + - uri type: object - LegacyPublishDraftRequest: + CreateConnectionRequest: + oneOf: + - $ref: "#/components/schemas/CreateVaultAccountConnectionRequest" + - $ref: "#/components/schemas/CreateNcwConnectionRequest" + CreateConnectionResponse: example: - draftId: draftId + sessionMetadata: "" + id: 4e9e7051-f3b2-48e9-8ee6-b12492552657 properties: - draftId: - description: draft unique identifier + id: + description: The ID of the Web3 connection initiated. + example: 4e9e7051-f3b2-48e9-8ee6-b12492552657 type: string + sessionMetadata: + allOf: + - $ref: "#/components/schemas/SessionMetadata" + description: Metadata of the Web3 connection (provided by the DApp). + required: + - id + - sessionMetadata type: object - LegacyPolicyStatus: - description: | - * SUCCESS - success - * UNVALIDATED - not validated yet - * INVALID_CONFIGURATION - at least one rule is invalid - * PENDING - pending approval - * PENDING_CONSOLE_APPROVAL - pending approval from the console app - * AWAITING_QUORUM - pending quorum approval - * UNHANDLED_ERROR - unhandled error - enum: - - SUCCESS - - UNVALIDATED - - INVALID_CONFIGURATION - - PENDING - - PENDING_CONSOLE_APPROVAL - - AWAITING_QUORUM - - UNHANDLED_ERROR - type: string - LegacyPublishResult: - description: Response object of the publish policy operation + RespondToConnectionRequest: example: - metadata: - publishedBy: publishedBy - editedBy: editedBy - publishedAt: publishedAt - editedAt: editedAt - rules: - - dst: - ids: - - null - - null - designatedSigner: designatedSigner - dstAddressType: WHITELISTED - designatedSigners: - usersGroups: - - usersGroups - - usersGroups - users: - - users - - users - type: TRANSFER - operator: operator - applyForApprove: true - operators: - usersGroups: - - usersGroups - - usersGroups - services: - - services - - services - users: - - users - - users - wildcard: '*' - periodSec: 0.8008281904610115 - srcId: "" - action: ALLOW - dstSubType: "" - authorizationGroups: - allowOperatorAsAuthorizer: true - groups: - - usersGroups: - - usersGroups - - usersGroups - th: 1.4658129805029452 - users: - - users - - users - - usersGroups: - - usersGroups - - usersGroups - th: 1.4658129805029452 - users: - - users - - users - logic: AND - amountCurrency: USD - amount: LegacyPolicyRule_amount - src: - ids: - - - null - - null - - null - - - null - - null - - null - authorizersCount: 6.027456183070403 - dstType: "" - srcType: "" - transactionType: TRANSFER - externalDescriptor: externalDescriptor - srcSubType: "" - applyForTypedMessage: true - dstId: "" - authorizers: - - authorizers - - authorizers - rawMessageSigning: - derivationPath: - path: - - 5.962133916683182 - - 5.962133916683182 - algorithm: algorithm - asset: asset - amountAggregation: - dstTransferPeers: null - operators: PER_SINGLE_MATCH - srcTransferPeers: null - amountScope: SINGLE_TX - - dst: - ids: - - null - - null - designatedSigner: designatedSigner - dstAddressType: WHITELISTED - designatedSigners: - usersGroups: - - usersGroups - - usersGroups - users: - - users - - users - type: TRANSFER - operator: operator - applyForApprove: true - operators: - usersGroups: - - usersGroups - - usersGroups - services: - - services - - services - users: - - users - - users - wildcard: '*' - periodSec: 0.8008281904610115 - srcId: "" - action: ALLOW - dstSubType: "" - authorizationGroups: - allowOperatorAsAuthorizer: true - groups: - - usersGroups: - - usersGroups - - usersGroups - th: 1.4658129805029452 - users: - - users - - users - - usersGroups: - - usersGroups - - usersGroups - th: 1.4658129805029452 - users: - - users - - users - logic: AND - amountCurrency: USD - amount: LegacyPolicyRule_amount - src: - ids: - - - null - - null - - null - - - null - - null - - null - authorizersCount: 6.027456183070403 - dstType: "" - srcType: "" - transactionType: TRANSFER - externalDescriptor: externalDescriptor - srcSubType: "" - applyForTypedMessage: true - dstId: "" - authorizers: - - authorizers - - authorizers - rawMessageSigning: - derivationPath: - path: - - 5.962133916683182 - - 5.962133916683182 - algorithm: algorithm - asset: asset - amountAggregation: - dstTransferPeers: null - operators: PER_SINGLE_MATCH - srcTransferPeers: null - amountScope: SINGLE_TX - checkResult: - results: - - index: 2.3021358869347655 - errors: - - errorCodeName: errorCodeName - errorField: operator - errorMessage: errorMessage - errorCode: 7.061401241503109 - - errorCodeName: errorCodeName - errorField: operator - errorMessage: errorMessage - errorCode: 7.061401241503109 - status: ok - - index: 2.3021358869347655 - errors: - - errorCodeName: errorCodeName - errorField: operator - errorMessage: errorMessage - errorCode: 7.061401241503109 - - errorCodeName: errorCodeName - errorField: operator - errorMessage: errorMessage - errorCode: 7.061401241503109 - status: ok - errors: 5.637376656633329 - status: SUCCESS + approve: true + properties: + approve: + description: Approval of the initiated Web3 connection. + example: true + type: boolean + required: + - approve + type: object + TravelRuleAddress: properties: - status: - $ref: "#/components/schemas/LegacyPolicyStatus" - rules: + street: + description: Street address + example: 1234 Example St + type: string + city: + description: City + example: New York + type: string + state: + description: State or province + example: NY + type: string + postalCode: + description: Postal or ZIP code + example: "10001" + type: string + required: + - city + - postalCode + - state + - street + type: object + TravelRuleValidateTransactionRequest: + example: + beneficiaryVASPname: HelloCrypto + transactionAsset: BTC + originatorEqualsBeneficiary: false + beneficiaryAccountNumber: 1234-1234-1234-12234 + beneficiaryName: John Doe + transactionAmount: "10" + travelRuleBehavior: true + destination: bc1qxy2kgdygjrsqtzq2n0yrf1234p83kkfjhx0wlh + beneficiaryAddress: "{\"addressLine: [Wayne Manor, Gotham City, New York,\ + \ USA]\"}" + originatorVASPdid: did:ethr:0x44957e75d6ce4a5bf37aae117da86422c848f7c2 + beneficiaryVASPdid: did:ethr:0x46a7ed5813ce735387df2bfb245bd7722e0de992 + properties: + transactionAsset: + description: "Transaction asset symbol BTC,ETH)" + example: BTC + type: string + destination: + description: Transaction destination address + example: bc1qxy2kgdygjrsqtzq2n0yrf1234p83kkfjhx0wlh + type: string + transactionAmount: + description: Transaction amount in the transaction asset + example: "10" + type: string + originatorVASPdid: + description: This is the identifier assigned to your VASP + example: did:ethr:0x44957e75d6ce4a5bf37aae117da86422c848f7c2 + type: string + originatorEqualsBeneficiary: + description: '"True" if the originator and beneficiary is the same person + and you therefore do not need to collect any information. "False" if it + is a third-party transfer.' + example: false + type: boolean + travelRuleBehavior: + description: This will also check if the transaction is a TRAVEL_RULE in + the beneficiary VASP's jurisdiction + example: true + type: boolean + beneficiaryVASPdid: + description: This is the identifier assigned to the VASP the funds are being + sent to + example: did:ethr:0x46a7ed5813ce735387df2bfb245bd7722e0de992 + type: string + beneficiaryVASPname: + description: Beneficiary VASP name + example: HelloCrypto + type: string + beneficiaryName: + description: Beneficiary name + example: John Doe + type: string + beneficiaryAccountNumber: + description: Beneficiary name + example: 1234-1234-1234-12234 + type: string + beneficiaryAddress: + allOf: + - $ref: "#/components/schemas/TravelRuleAddress" + description: Beneficiary name + example: "{\"addressLine: [Wayne Manor, Gotham City, New York, USA]\"}" + required: + - destination + - originatorEqualsBeneficiary + - originatorVASPdid + - transactionAmount + - transactionAsset + type: object + TravelRuleValidateTransactionResponse: + example: + beneficiaryVASPname: Fireblocks + addressSource: UNKNOWN + beneficiaryAddressType: UNKNOWN + isValid: true + warnings: + - optional-beneficiaryAccountNumber + type: TRAVELRULE + beneficiaryVASPdid: did:ethr:0x46a7ed5813ce735387df2bfb245bd7722e0de992 + properties: + isValid: + description: "\"isValid\" will tell you if you have collected all the information\ + \ needed for the travel rule data transfer. Once this field = \"true\"\ + , you can move on to the next step which is to transfer the front-end\ + \ information to your back-end and perform Travel Rule Transaction create" + example: true + type: boolean + type: + description: "\"type\" will tell you if the virtual asset value converted\ + \ to FIAT value of the withdrawal request is above (=TRAVELRULE) or below\ + \ (=BELOW_THRESHOLD) the threshold in your jurisdiction. If it is to an\ + \ unhosted wallet which does not require travel rule information to be\ + \ sent and only collected, it will say NON_CUSTODIAL." + example: TRAVELRULE + type: string + beneficiaryAddressType: + description: '"beneficiaryAddressType" will tell you if your blockchain + analytics provider or internal address book has been able to identify + the wallet address.' + example: UNKNOWN + type: string + addressSource: + description: '"addressSource" will tell you if the address was found in + your internal address book or identified by the blockchain analytics provider.' + example: UNKNOWN + type: string + beneficiaryVASPdid: + description: The VASP DID of the beneficiary VASP + example: did:ethr:0x46a7ed5813ce735387df2bfb245bd7722e0de992 + type: string + beneficiaryVASPname: + description: '"beneficiaryVASPname" will tell you the name of the VASP that + has been identified as the owner of the wallet address. This name is used + in a subsequent call to get its DID.' + example: Fireblocks + type: string + warnings: + description: '"errors/warnings" will tell you what information about the + beneficiary you need to collect from the sender.' + example: + - optional-beneficiaryAccountNumber items: - $ref: "#/components/schemas/LegacyPolicyRule" + type: string type: array - checkResult: - $ref: "#/components/schemas/LegacyPolicyCheckResult" - metadata: - $ref: "#/components/schemas/LegacyPolicyMetadata" required: - - checkResult - - metadata - - rules - - status + - addressSource + - beneficiaryAddressType + - beneficiaryVASPdid + - beneficiaryVASPname + - isValid + - type + - warnings + type: object + TravelRuleValidateFullTransactionRequest: + example: + originatorProof: "" + transactionAsset: transactionAsset + originator: "" + notificationEmail: notificationEmail + beneficiaryVASPname: beneficiaryVASPname + pii: "" + protocol: protocol + skipBeneficiaryDataValidation: true + originatorDid: originatorDid + beneficiary: "" + encrypted: encrypted + transactionAmount: transactionAmount + travelRuleBehavior: true + transactionBlockchainInfo: "" + beneficiaryProof: "" + beneficiaryDid: beneficiaryDid + originatorVASPdid: originatorVASPdid + beneficiaryVASPdid: beneficiaryVASPdid + properties: + transactionAsset: + description: The asset involved in the transaction + type: string + transactionAmount: + description: The amount of the transaction + type: string + originatorDid: + description: The DID of the transaction originator + type: string + beneficiaryDid: + description: The DID of the transaction beneficiary + type: string + originatorVASPdid: + description: The VASP ID of the transaction originator + type: string + beneficiaryVASPdid: + description: The VASP ID of the transaction beneficiary + type: string + beneficiaryVASPname: + description: The name of the VASP acting as the beneficiary + type: string + transactionBlockchainInfo: + allOf: + - $ref: "#/components/schemas/TravelRuleTransactionBlockchainInfo" + description: Information about the blockchain transaction + originator: + allOf: + - $ref: "#/components/schemas/TravelRulePiiIVMS" + description: Information about the originator of the transaction + beneficiary: + allOf: + - $ref: "#/components/schemas/TravelRulePiiIVMS" + description: Information about the beneficiary of the transaction + encrypted: + description: Encrypted data related to the transaction + type: string + protocol: + description: The protocol used to perform the travel rule + type: string + notificationEmail: + description: The email address where a notification should be sent upon + completion of the travel rule + type: string + skipBeneficiaryDataValidation: + description: Whether to skip validation of beneficiary data + type: boolean + travelRuleBehavior: + description: Whether to check if the transaction is a TRAVEL_RULE in the + beneficiary VASP's jurisdiction + type: boolean + originatorProof: + allOf: + - $ref: "#/components/schemas/TravelRuleOwnershipProof" + description: Ownership proof related to the originator of the transaction + beneficiaryProof: + allOf: + - $ref: "#/components/schemas/TravelRuleOwnershipProof" + description: Ownership proof related to the beneficiary of the transaction + pii: + allOf: + - $ref: "#/components/schemas/TravelRulePiiIVMS" + description: Personal identifiable information related to the transaction + required: + - beneficiary + - originator + type: object + TravelRuleIssuer: + example: + issuerDid: issuerDid + properties: + issuerDid: + type: string + required: + - issuerDid + type: object + TravelRuleIssuers: + example: + country: + issuerDid: issuerDid + website: + issuerDid: issuerDid + city: + issuerDid: issuerDid + isRegulated: + issuerDid: issuerDid + description: + issuerDid: issuerDid + businessNumber: + issuerDid: issuerDid + yearFounded: + issuerDid: issuerDid + legalName: + issuerDid: issuerDid + legalStructure: + issuerDid: issuerDid + regulatoryAuthorities: + issuerDid: issuerDid + name: + issuerDid: issuerDid + logo: + issuerDid: issuerDid + addressLine1: + issuerDid: issuerDid + incorporationCountry: + issuerDid: issuerDid + properties: + yearFounded: + $ref: "#/components/schemas/TravelRuleIssuer" + isRegulated: + $ref: "#/components/schemas/TravelRuleIssuer" + regulatoryAuthorities: + $ref: "#/components/schemas/TravelRuleIssuer" + name: + $ref: "#/components/schemas/TravelRuleIssuer" + logo: + $ref: "#/components/schemas/TravelRuleIssuer" + website: + $ref: "#/components/schemas/TravelRuleIssuer" + legalName: + $ref: "#/components/schemas/TravelRuleIssuer" + legalStructure: + $ref: "#/components/schemas/TravelRuleIssuer" + incorporationCountry: + $ref: "#/components/schemas/TravelRuleIssuer" + businessNumber: + $ref: "#/components/schemas/TravelRuleIssuer" + addressLine1: + $ref: "#/components/schemas/TravelRuleIssuer" + city: + $ref: "#/components/schemas/TravelRuleIssuer" + country: + $ref: "#/components/schemas/TravelRuleIssuer" + description: + $ref: "#/components/schemas/TravelRuleIssuer" + required: + - addressLine1 + - businessNumber + - city + - country + - description + - incorporationCountry + - isRegulated + - legalName + - legalStructure + - logo + - name + - regulatoryAuthorities + - website + - yearFounded type: object - PolicyType: - description: Policy type enumeration - enum: - - TRANSFER - - STAKE - - CONTRACT_CALL - - TYPED_MESSAGE - - APPROVE - - MINT - - BURN - - RAW - - COMPLIANCE - - DEPLOYMENT - - PROGRAM_CALL - - DAPP_CONNECTION - - UPGRADE - - ORDER - - AML_CHAINALYSIS_V2_SCREENING - - AML_CHAINALYSIS_V2_POST_SCREENING - - AML_ELLIPTIC_HOLISTIC_SCREENING - - AML_ELLIPTIC_HOLISTIC_POST_SCREENING - - TR_NOTABENE_SCREENING - - TR_NOTABENE_POST_SCREENING - example: TRANSFER - type: string - PolicyUserIds: - description: List of user IDs + TravelRuleVASP: example: - - user1 - - user2 - items: - type: string - type: array - PolicyGroupIds: - description: List of policy group IDs + country: country + travelRule_TRISA: travelRule_TRISA + travelRule_TRP: travelRule_TRP + isNotifiable: true + city: city + documents: documents + isRegulated: isRegulated + travelRule_EMAIL: travelRule_EMAIL + description: description + identificationType: identificationType + identificationCountry: identificationCountry + travelRule_SYGNA: travelRule_SYGNA + lastReceivedDate: lastReceivedDate + legalName: legalName + number: number + createdAt: createdAt + legalStructure: legalStructure + street: street + travelRule_SHYFT: travelRule_SHYFT + regulatoryAuthorities: regulatoryAuthorities + addressLine1: addressLine1 + logo: logo + addressLine2: addressLine2 + state: state + jurisdictions: jurisdictions + travelRule_TRLIGHT: travelRule_TRLIGHT + updatedAt: updatedAt + website: website + hasAdmin: true + updatedBy: updatedBy + verificationStatus: verificationStatus + emailDomains: emailDomains + businessNumber: businessNumber + yearFounded: yearFounded + issuers: + country: + issuerDid: issuerDid + website: + issuerDid: issuerDid + city: + issuerDid: issuerDid + isRegulated: + issuerDid: issuerDid + description: + issuerDid: issuerDid + businessNumber: + issuerDid: issuerDid + yearFounded: + issuerDid: issuerDid + legalName: + issuerDid: issuerDid + legalStructure: + issuerDid: issuerDid + regulatoryAuthorities: + issuerDid: issuerDid + name: + issuerDid: issuerDid + logo: + issuerDid: issuerDid + addressLine1: + issuerDid: issuerDid + incorporationCountry: + issuerDid: issuerDid + travelRule_OPENVASP: travelRule_OPENVASP + travelRule_USTRAVELRULEWG: travelRule_USTRAVELRULEWG + unit: unit + otherNames: otherNames + certificates: certificates + lastSentDate: lastSentDate + createdBy: createdBy + name: name + postCode: postCode + did: did + incorporationCountry: incorporationCountry + properties: + did: + type: string + name: + type: string + verificationStatus: + type: string + addressLine1: + type: string + addressLine2: + type: string + city: + type: string + country: + type: string + emailDomains: + type: string + website: + type: string + logo: + type: string + legalStructure: + type: string + legalName: + type: string + yearFounded: + type: string + incorporationCountry: + type: string + isRegulated: + type: string + otherNames: + type: string + identificationType: + type: string + identificationCountry: + type: string + businessNumber: + type: string + regulatoryAuthorities: + type: string + jurisdictions: + type: string + street: + type: string + number: + type: string + unit: + type: string + postCode: + type: string + state: + type: string + certificates: + type: string + description: + type: string + travelRule_OPENVASP: + type: string + travelRule_SYGNA: + type: string + travelRule_TRISA: + type: string + travelRule_TRLIGHT: + type: string + travelRule_EMAIL: + type: string + travelRule_TRP: + type: string + travelRule_SHYFT: + type: string + travelRule_USTRAVELRULEWG: + type: string + createdAt: + type: string + createdBy: + type: string + updatedAt: + type: string + updatedBy: + type: string + lastSentDate: + type: string + lastReceivedDate: + type: string + documents: + type: string + hasAdmin: + type: boolean + isNotifiable: + type: boolean + issuers: + $ref: "#/components/schemas/TravelRuleIssuers" + required: + - addressLine1 + - addressLine2 + - businessNumber + - certificates + - city + - country + - createdAt + - createdBy + - description + - did + - documents + - emailDomains + - hasAdmin + - identificationCountry + - identificationType + - incorporationCountry + - isNotifiable + - isRegulated + - issuers + - jurisdictions + - lastReceivedDate + - lastSentDate + - legalName + - legalStructure + - logo + - name + - number + - otherNames + - postCode + - regulatoryAuthorities + - state + - street + - travelRule_EMAIL + - travelRule_OPENVASP + - travelRule_SHYFT + - travelRule_SYGNA + - travelRule_TRISA + - travelRule_TRLIGHT + - travelRule_TRP + - travelRule_USTRAVELRULEWG + - unit + - updatedAt + - updatedBy + - verificationStatus + - website + - yearFounded + type: object + TravelRuleGetAllVASPsResponse: example: - - group1 - - group2 - items: - type: string - type: array - PolicyOperator: - description: Operator for selection - enum: - - INCLUDES - - EXCLUDES - example: INCLUDES - type: string - InitiatorConfig: - description: Policy rule initiator configuration + vasps: + - country: country + travelRule_TRISA: travelRule_TRISA + travelRule_TRP: travelRule_TRP + isNotifiable: true + city: city + documents: documents + isRegulated: isRegulated + travelRule_EMAIL: travelRule_EMAIL + description: description + identificationType: identificationType + identificationCountry: identificationCountry + travelRule_SYGNA: travelRule_SYGNA + lastReceivedDate: lastReceivedDate + legalName: legalName + number: number + createdAt: createdAt + legalStructure: legalStructure + street: street + travelRule_SHYFT: travelRule_SHYFT + regulatoryAuthorities: regulatoryAuthorities + addressLine1: addressLine1 + logo: logo + addressLine2: addressLine2 + state: state + jurisdictions: jurisdictions + travelRule_TRLIGHT: travelRule_TRLIGHT + updatedAt: updatedAt + website: website + hasAdmin: true + updatedBy: updatedBy + verificationStatus: verificationStatus + emailDomains: emailDomains + businessNumber: businessNumber + yearFounded: yearFounded + issuers: + country: + issuerDid: issuerDid + website: + issuerDid: issuerDid + city: + issuerDid: issuerDid + isRegulated: + issuerDid: issuerDid + description: + issuerDid: issuerDid + businessNumber: + issuerDid: issuerDid + yearFounded: + issuerDid: issuerDid + legalName: + issuerDid: issuerDid + legalStructure: + issuerDid: issuerDid + regulatoryAuthorities: + issuerDid: issuerDid + name: + issuerDid: issuerDid + logo: + issuerDid: issuerDid + addressLine1: + issuerDid: issuerDid + incorporationCountry: + issuerDid: issuerDid + travelRule_OPENVASP: travelRule_OPENVASP + travelRule_USTRAVELRULEWG: travelRule_USTRAVELRULEWG + unit: unit + otherNames: otherNames + certificates: certificates + lastSentDate: lastSentDate + createdBy: createdBy + name: name + postCode: postCode + did: did + incorporationCountry: incorporationCountry + - country: country + travelRule_TRISA: travelRule_TRISA + travelRule_TRP: travelRule_TRP + isNotifiable: true + city: city + documents: documents + isRegulated: isRegulated + travelRule_EMAIL: travelRule_EMAIL + description: description + identificationType: identificationType + identificationCountry: identificationCountry + travelRule_SYGNA: travelRule_SYGNA + lastReceivedDate: lastReceivedDate + legalName: legalName + number: number + createdAt: createdAt + legalStructure: legalStructure + street: street + travelRule_SHYFT: travelRule_SHYFT + regulatoryAuthorities: regulatoryAuthorities + addressLine1: addressLine1 + logo: logo + addressLine2: addressLine2 + state: state + jurisdictions: jurisdictions + travelRule_TRLIGHT: travelRule_TRLIGHT + updatedAt: updatedAt + website: website + hasAdmin: true + updatedBy: updatedBy + verificationStatus: verificationStatus + emailDomains: emailDomains + businessNumber: businessNumber + yearFounded: yearFounded + issuers: + country: + issuerDid: issuerDid + website: + issuerDid: issuerDid + city: + issuerDid: issuerDid + isRegulated: + issuerDid: issuerDid + description: + issuerDid: issuerDid + businessNumber: + issuerDid: issuerDid + yearFounded: + issuerDid: issuerDid + legalName: + issuerDid: issuerDid + legalStructure: + issuerDid: issuerDid + regulatoryAuthorities: + issuerDid: issuerDid + name: + issuerDid: issuerDid + logo: + issuerDid: issuerDid + addressLine1: + issuerDid: issuerDid + incorporationCountry: + issuerDid: issuerDid + travelRule_OPENVASP: travelRule_OPENVASP + travelRule_USTRAVELRULEWG: travelRule_USTRAVELRULEWG + unit: unit + otherNames: otherNames + certificates: certificates + lastSentDate: lastSentDate + createdBy: createdBy + name: name + postCode: postCode + did: did + incorporationCountry: incorporationCountry properties: - users: - description: List of user IDs - example: - - user1 - - user2 - items: - type: string - type: array - groups: - description: List of policy group IDs - example: - - group1 - - group2 - items: - type: string - type: array - services: - items: - type: string - type: array - fbAdminGroups: - items: - type: string - type: array - exchange: - items: - type: string - type: array - operator: - $ref: "#/components/schemas/PolicyOperator" - required: - - operator - type: object - InitiatorConfigPattern: - oneOf: - - description: All users are allowed - enum: - - '*' - example: '*' - type: string - - $ref: "#/components/schemas/InitiatorConfig" - AssetTypesConfig: - description: List of asset types - example: - - FUNGIBLE - - NFT - - '*' - items: - $ref: "#/components/schemas/AssetTypesConfig_inner" - type: array - AssetConfig: - description: Policy asset configuration - example: - assetTypes: - - FUNGIBLE - - NFT - - '*' - nftTransfer: false - operator: INCLUDES - properties: - nftTransfer: - description: Whether this is an NFT transfer - example: false - type: boolean - assetTypes: - description: List of asset types - example: - - FUNGIBLE - - NFT - - '*' + vasps: items: - $ref: "#/components/schemas/AssetTypesConfig_inner" + $ref: "#/components/schemas/TravelRuleVASP" type: array - operator: - $ref: "#/components/schemas/PolicyOperator" required: - - nftTransfer + - vasps type: object - AccountType-2: - description: Type of account - enum: - - EXCHANGE - - UNMANAGED - - VAULT - - GLOBAL_WHITELIST - - NETWORK_CONNECTION - - FIAT_ACCOUNT - - CONNECTED_ACCOUNT - - ONE_TIME_ADDRESS - - SRC_DST_NA - - MULTIPLE_VENUES - - END_USER_WALLET - - OEC_PARTNER - - CONTRACT - - INTERNAL - - EXTERNAL - - DAPP_CONNECTION - - UNKNOWN - - '*' - - ANY - example: VAULT - type: string - AccountIdentifier: - description: "Account identifier with type, ID, subtype, and address" + TravelRuleUpdateVASPDetails: example: - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT + pii_didkey: did:key:z6Mks5CZRaiooKYhq5TwtXQC1gWhwiZnmiKfFrMnYY62MhYf + did: did:ethr:0x44957e75d6ce4a5bf37aae117da86422c848f7c2 properties: - type: - $ref: "#/components/schemas/AccountType-2" - id: - description: Account ID - example: account123 - type: string - subType: - description: Account subtype - example: INTERNAL + did: + description: The decentralized identifier of the VASP + example: did:ethr:0x44957e75d6ce4a5bf37aae117da86422c848f7c2 type: string - address: - description: Account address - example: 0x123... + pii_didkey: + description: The PII DID key of the VASP + example: did:key:z6Mks5CZRaiooKYhq5TwtXQC1gWhwiZnmiKfFrMnYY62MhYf type: string required: - - type + - did + - pii_didkey type: object - AccountConfig: - description: Policy source/destination configuration + TravelRulePolicyRuleResponse: example: - ids: - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - subType: - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - type: VAULT - matchFrom: ACCOUNT - operator: INCLUDES + sourceId: sourceId + amount: 0.8008281904610115 + amountUSD: 6.027456183070403 + baseAsset: baseAsset + destType: destType + destId: destId + sourceType: sourceType + destSubType: destSubType + destAddress: destAddress + action: SCREEN + sourceSubType: sourceSubType + asset: asset + operation: operation + networkProtocol: networkProtocol properties: - type: - $ref: "#/components/schemas/AccountType-2" - subType: - items: - $ref: "#/components/schemas/AccountIdentifier" - type: array - ids: - items: - $ref: "#/components/schemas/AccountIdentifier" - type: array - operator: - $ref: "#/components/schemas/PolicyOperator" - matchFrom: - description: Whether to match from account or source + sourceType: + type: string + sourceSubType: + type: string + destType: + type: string + destSubType: + type: string + destAddress: + type: string + sourceId: + type: string + destId: + type: string + asset: + type: string + baseAsset: + type: string + amount: + type: number + amountUSD: + type: number + networkProtocol: + type: string + operation: + type: string + action: enum: - - ACCOUNT - - SOURCE - example: ACCOUNT + - SCREEN + - PASS + - FREEZE type: string required: - - operator - - type + - action type: object - DestinationConfig: - description: Destination configuration for policy rules + ScreeningPolicyResponse: example: - type: - - EXTERNAL - operator: INCLUDES - addressType: WHITELISTED + isDefault: true + lastUpdate: 2000-01-23T04:56:07.000+00:00 + policyStatus: policyStatus + policy: + sourceId: sourceId + amount: 0.8008281904610115 + amountUSD: 6.027456183070403 + baseAsset: baseAsset + destType: destType + destId: destId + sourceType: sourceType + destSubType: destSubType + destAddress: destAddress + action: SCREEN + sourceSubType: sourceSubType + asset: asset + operation: operation + networkProtocol: networkProtocol + createDate: 2000-01-23T04:56:07.000+00:00 properties: - type: - $ref: "#/components/schemas/AccountType-2" - subType: - items: - $ref: "#/components/schemas/AccountIdentifier" - type: array - ids: - items: - $ref: "#/components/schemas/AccountIdentifier" - type: array - operator: - $ref: "#/components/schemas/PolicyOperator" - matchFrom: - description: Whether to match from account or source - enum: - - ACCOUNT - - SOURCE - example: ACCOUNT + policy: + $ref: "#/components/schemas/TravelRulePolicyRuleResponse" + policyStatus: type: string - addressType: - description: Type of destination addresses allowed - enum: - - ALL - - '*' - - WHITELISTED - - ONE_TIME - - OEC_PARTNER - example: WHITELISTED + isDefault: + type: boolean + createDate: + format: date-time + type: string + lastUpdate: + format: date-time type: string required: - - addressType - - operator - - type + - isDefault + - lastUpdate + - policy type: object - ApproversConfig: - description: Approvers configuration + ScreeningProviderRulesConfigurationResponse: example: - canInitiatorApprove: false - approvalGroups: - - threshold: 2 - users: - - user1 - - user2 - allowOperatorAsAuthorizer: false - operator: AND + amountUSD: 0.8008281904610115 + amount: 6.027456183070403 + action: ACCEPT + asset: asset + direction: INBOUND + status: COMPLETED properties: - canInitiatorApprove: - description: Whether initiator can approve - example: false - type: boolean - operator: - description: Operator for approval groups + direction: enum: - - AND - - OR - example: AND + - INBOUND + - OUTBOUND type: string - allowOperatorAsAuthorizer: - description: Whether operator can be authorizer - example: false - type: boolean - approvalGroups: - description: List of approval groups - example: - - threshold: 2 - users: - - user1 - - user2 - items: - $ref: "#/components/schemas/ApproversConfig_approvalGroups_inner" - type: array - type: object - DesignatedSignersConfig: - description: Designated signers configuration - example: - groups: - - group1 - - group2 - type: SINGLE - users: - - user1 - - user2 - properties: - type: - description: Type of designated signers + status: enum: - - SINGLE - - MULTIPLE - - INITIATOR - example: SINGLE + - COMPLETED + - PENDING + - REJECTED + - FAILED + - CANCELED + - BLOCKING_TIME_EXPIRED + type: string + amountUSD: + type: number + amount: + type: number + asset: type: string - users: - description: List of user IDs - example: - - user1 - - user2 - items: - type: string - type: array - groups: - description: List of policy group IDs - example: - - group1 - - group2 - items: - type: string - type: array - required: - - type - type: object - VerdictConfig: - description: Verdict configuration - example: - designatedSigners: - groups: - - group1 - - group2 - type: SINGLE - users: - - user1 - - user2 - action: ALLOW - approvers: - canInitiatorApprove: false - approvalGroups: - - threshold: 2 - users: - - user1 - - user2 - allowOperatorAsAuthorizer: false - operator: AND - properties: action: - description: Verdict action enum: - - ALLOW - - BLOCK - - 2-TIER - ACCEPT - REJECT - ALERT - - SCREEN - - PASS - WAIT - FREEZE - CANCEL - example: ALLOW type: string - approvers: - $ref: "#/components/schemas/ApproversConfig" - designatedSigners: - $ref: "#/components/schemas/DesignatedSignersConfig" required: - action type: object - TimePeriodMatchType: - description: Type of match for time period application - enum: - - PER_SINGLE_MATCH - - ACROSS_ALL_MATCHES - example: PER_SINGLE_MATCH - type: string - TimePeriodConfig: - description: Time period configuration + ScreeningConfigurationsRequest: example: - seconds: "86400" - initiator: PER_SINGLE_MATCH - destination: PER_SINGLE_MATCH - source: PER_SINGLE_MATCH + inboundTransactionDelay: 0.8008281904610115 + bypassScreeningDuringServiceOutages: true + outboundTransactionDelay: 6.027456183070403 properties: - seconds: - description: Time period in seconds - example: "86400" - type: string - initiator: - $ref: "#/components/schemas/TimePeriodMatchType" - source: - $ref: "#/components/schemas/TimePeriodMatchType" - destination: - $ref: "#/components/schemas/TimePeriodMatchType" - required: - - destination - - initiator - - seconds - - source + bypassScreeningDuringServiceOutages: + description: Flag to enable or disable bypass screening during service outages. + type: boolean + inboundTransactionDelay: + description: Inbound transaction delay in seconds. + type: number + outboundTransactionDelay: + description: Outbound transaction delay in seconds. + type: number type: object - AmountOverTimeConfig: - description: Amount over time configuration - example: - timePeriod: - seconds: "86400" - initiator: PER_SINGLE_MATCH - destination: PER_SINGLE_MATCH - source: PER_SINGLE_MATCH - range: - min: "100" - max: "10000" - currency: USD - properties: - range: - $ref: "#/components/schemas/AmountOverTimeConfig_range" - currency: - description: Currency for the amount - enum: - - NATIVE - - USD - - EUR - example: USD - type: string - timePeriod: - $ref: "#/components/schemas/TimePeriodConfig" - required: - - range - - timePeriod + ScreeningUpdateConfigurationsRequest: + example: + disableUnfreeze: true + disableBypass: true + properties: + disableBypass: + description: Flag to enable or disable bypass screening on tenant configuration. + type: boolean + disableUnfreeze: + description: Flag to enable or disable unfreeze of transaction frozen by + policy rule on tenant configuration. + type: boolean type: object - AmountRange: - description: Amount range configuration + GetOtaStatusResponse: example: - min: "100" - max: "10000" - currency: USD + enabled: true properties: - min: - description: Minimum amount - example: "100" - type: string - max: - description: Maximum amount - example: "10000" - type: string - currency: - description: Currency for the amount - example: USD - type: string - required: - - currency - - max - - min + enabled: + description: Current OTA status + type: boolean type: object - ContractMethodConfig: - description: Contract method configuration + SetOtaStatusRequest: example: - methodCalls: - - transfer - - approve - operator: EITHER + enabled: true properties: - methodCalls: - items: - type: string - type: array - operator: - description: Operator for method calls - enum: - - EITHER - - EXACT - example: EITHER - type: string - payloadSuffix: - description: Payload suffix for method calls - example: 0x123... - type: string - required: - - methodCalls - - operator + enabled: + description: Set true or false to enable or disable OTA transactions + type: boolean type: object - ContractMethodPattern: + SetOtaStatusResponse: oneOf: - - description: All methods allowed - enum: - - '*' - example: '*' + - $ref: "#/components/schemas/SetOtaStatusResponse_oneOf" + - description: Message indicating the result of the operation when config was + successfully updated + example: Accepted type: string - - $ref: "#/components/schemas/ContractMethodConfig" - ProgramCallConfig: - description: Program call configuration + GetWorkspaceStatusResponse: example: - allowedSolanaProgramCalls: WHITELISTED + status: status properties: - allowedSolanaProgramCalls: - description: Whether Solana program calls are allowed - enum: - - '*' - - WHITELISTED - example: WHITELISTED + status: + description: Current workspace status type: string - required: - - allowedSolanaProgramCalls type: object - ScreeningMetadataConfig: - description: Screening metadata configuration + PolicySrcOrDestType: + description: | + * EXCHANGE - A third-party exchange account connected to your workspace + * UNMANAGED - A unmanaged wallet outside of Fireblocks workspace + * VAULT - An account in your Fireblocks Vault + * NETWORK_CONNECTION - A connection in your Fireblocks network + * COMPOUND - (deprecated) An asset retrieved by using the Compound DeFI protocol + * FIAT_ACCOUNT - A third-party fiat account connected to your workspace + * ONE_TIME_ADDRESS - A non-whitelisted asset from your Fireblocks Workspace + * "*" - All types + enum: + - EXCHANGE + - UNMANAGED + - VAULT + - NETWORK_CONNECTION + - COMPOUND + - FIAT_ACCOUNT + - ONE_TIME_ADDRESS + - '*' + type: string + PolicySrcOrDestSubType: + description: | + * EXTERNAL - A whitelisted wallet assigned as external is typically used for addresses managed by your clients and counterparties + * INTERNAL - A whitelisted wallet assigned as internal, is typically used for addresses that you control outside of your Fireblocks workspace + * CONTRACT - A whitelisted wallet assigned as contract is for identifying and managing external smart contracts + * EXCHANGETEST - Exchanges which operate only on testnet assets + * "*" - All subtypes + enum: + - EXTERNAL + - INTERNAL + - CONTRACT + - EXCHANGETEST + - '*' + type: string + PolicySrcOrDestId: + description: | + Defines the account id, options are + * "*" - All accounts + * Specific account id + type: string + SrcOrDestAttributes: + description: | + Defines source or destination component, options are: + * id only + * id and type - first item in the array MUST be id. + * id, type and subtype - first item in the array MUST be id and second item MUST be type. + items: + $ref: "#/components/schemas/SrcOrDestAttributes_inner" + maxItems: 3 + minItems: 1 + type: array + AmountAggregationTimePeriodMethod: + description: | + * PER_SINGLE_MATCH - Apply the limit to each listed entity + * ACROSS_ALL_MATCHES - Apply the limit to the sum of all listed entities + enum: + - PER_SINGLE_MATCH + - ACROSS_ALL_MATCHES + type: string + PolicyRule: + description: Policy rule which is enforced on transactions example: - sourceAddress: 0x123... - provider: CHAINALYSIS - exposureType: DIRECT - destAddress: 0x456... - name: - - name - - name - riskScore: "0.8" - category: - - category - - category - riskRating: MEDIUM - categoryId: - - categoryId - - categoryId - direction: OUTBOUND - status: COMPLETED + dst: + ids: + - null + - null + designatedSigner: designatedSigner + dstAddressType: WHITELISTED + designatedSigners: + usersGroups: + - usersGroups + - usersGroups + users: + - users + - users + type: TRANSFER + operator: operator + applyForApprove: true + operators: + usersGroups: + - usersGroups + - usersGroups + services: + - services + - services + users: + - users + - users + wildcard: '*' + periodSec: 0.8008281904610115 + srcId: "" + action: ALLOW + dstSubType: "" + authorizationGroups: + allowOperatorAsAuthorizer: true + groups: + - usersGroups: + - usersGroups + - usersGroups + th: 1.4658129805029452 + users: + - users + - users + - usersGroups: + - usersGroups + - usersGroups + th: 1.4658129805029452 + users: + - users + - users + logic: AND + amountCurrency: USD + amount: PolicyRule_amount + src: + ids: + - - null + - null + - null + - - null + - null + - null + authorizersCount: 6.027456183070403 + dstType: "" + srcType: "" + transactionType: TRANSFER + externalDescriptor: externalDescriptor + srcSubType: "" + applyForTypedMessage: true + dstId: "" + authorizers: + - authorizers + - authorizers + rawMessageSigning: + derivationPath: + path: + - 5.962133916683182 + - 5.962133916683182 + algorithm: algorithm + asset: asset + amountAggregation: + dstTransferPeers: null + operators: PER_SINGLE_MATCH + srcTransferPeers: null + amountScope: SINGLE_TX properties: - direction: - description: Direction of transaction + operator: + deprecated: true + description: (deprecated - replaced by "operators") | Defines users who + can initiate the type of transaction to which the rule applies. options + are * "*" - All users are allowed * Specific User id + type: string + operators: + $ref: "#/components/schemas/PolicyRule_operators" + transactionType: + description: | + Defines the type of transaction to which the rule applies. + * TRANSFER - Default. Transfers funds from one account to another + * CONTRACT_CALL - Calls a smart contract, mainly for DeFi operations. + * APPROVE - Allows a smart contract to withdraw from a designated wallet. + * MINT - Perform a mint operation (increase supply) on a supported token + * BURN - Perform a burn operation (reduce supply) on a supported token + * SUPPLY - Use for DeFi to lend assets + * REDEEM - Use for DeFi to get lending back + * STAKE - Allows you to allocate and lock certain assets for earning staking rewards. + * RAW - An off-chain message with no predefined format, use it to sign any message with your private key. + * TYPED_MESSAGE - An off-chain message type that follows a predefined format, used to sign specific messages that are not actual transactions. enum: - - INBOUND - - OUTBOUND - - ANY - example: OUTBOUND + - TRANSFER + - CONTRACT_CALL + - APPROVE + - MINT + - BURN + - SUPPLY + - REDEEM + - STAKE + - RAW + - TYPED_MESSAGE + type: string + designatedSigner: + deprecated: true + description: (deprecated - replaced by "designatedSigners") Id representing + the user who signs transactions that match a specific rule type: string - provider: - description: Screening provider + designatedSigners: + $ref: "#/components/schemas/PolicyRule_designatedSigners" + type: + description: Policy rule type enum: - - CHAINALYSIS - - CHAINALYSIS_V2 - - ELLIPTIC - - ELLIPTIC_HOLISTIC - - NOTABENE - example: CHAINALYSIS - nullable: true + - TRANSFER type: string - riskRating: - description: Risk rating threshold + action: + description: "Defines what occurs when a transaction meets the rule's criteria\n\ + * ALLOW - The transaction goes through and can be signed without requiring\ + \ additional approvals\n* BLOCK - The transaction is automatically blocked\n\ + * 2-TIER - Only these users or user groups can approve \n If\ + \ any of them reject the transaction before the required approval threshold\ + \ is met, the transaction doesn't go through\n The list of entities\ + \ are set is \"authorizationGroups\" field\n" enum: - - LOW - - MEDIUM - - HIGH - - SEVERE - - ANY - example: MEDIUM + - ALLOW + - BLOCK + - 2-TIER type: string - riskScore: - description: Risk score threshold - example: "0.8" + asset: + description: | + Defines the type of asset being transacted, options are + * "*" - All assets + * Specific asset type: string - exposureType: - description: Exposure type + srcType: + allOf: + - $ref: "#/components/schemas/PolicySrcOrDestType" + deprecated: true + description: (deprecated - replaced by "src") source account type + srcSubType: + allOf: + - $ref: "#/components/schemas/PolicySrcOrDestSubType" + deprecated: true + description: (deprecated - replaced by "src") source sub account type + srcId: + allOf: + - $ref: "#/components/schemas/PolicySrcOrDestId" + deprecated: true + description: (deprecated - replaced by "src") source account id + src: + $ref: "#/components/schemas/PolicyRule_src" + dstType: + allOf: + - $ref: "#/components/schemas/PolicySrcOrDestType" + deprecated: true + description: (deprecated - replaced by "dst") destination account type + dstSubType: + allOf: + - $ref: "#/components/schemas/PolicySrcOrDestSubType" + deprecated: true + description: (deprecated - replaced by "dst") destination sub account type + dstId: + allOf: + - $ref: "#/components/schemas/PolicySrcOrDestId" + deprecated: true + description: (deprecated - replaced by "dst") destination account id + dst: + $ref: "#/components/schemas/PolicyRule_dst" + dstAddressType: + description: | + Defines whether the destination to which you are sending funds must be whitelisted, to allow one-time transfers to non-whitelisted external addresses, or both. + By default, you can only transfer to an external address after it’s whitelisted. + * WHITELISTED - Can only be sent to whitelisted addresses. + * ONE_TIME - Can only be sent to non-whitelisted external addresses. + * "*" - can be sent to whitelisted addresses or non-whitelisted external enum: - - DIRECT - - INDIRECT - - ANY - example: DIRECT + - WHITELISTED + - ONE_TIME + - '*' type: string - category: - items: - type: string - type: array - name: - items: - type: string - type: array - categoryId: - items: - type: string - type: array - status: - description: Transaction status + amountCurrency: + description: | + * USD - Limits the amount of any asset users can transfer based on the USD equivalent of the asset. + * EUR - Limits the amount of any asset users can transfer based on the EURO equivalent of the asset. + * NATIVE - Limits the amount of an asset a user can transfer when using a specific asset. enum: - - COMPLETED - - PENDING - - REJECTED - - FAILED - - CANCELED - - BLOCKING_TIME_EXPIRED - example: COMPLETED - type: string - sourceAddress: - description: Source address - example: 0x123... + - USD + - EUR + - NATIVE type: string - destAddress: - description: Destination address - example: 0x456... + amountScope: + description: | + * SINGLE_TX - limit applies to a single transaction + * TIMEFRAME - limit applies to all transactions within the defined time period + enum: + - SINGLE_TX + - TIMEFRAME type: string - required: - - direction - type: object - DerivationPathConfig: - description: Derivation path configuration - example: - path: - - 44 - - 0 - - 0 - - 0 - - 0 - partial: false - properties: - path: - description: Derivation path as array of numbers - example: - - 44 - - 0 - - 0 - - 0 - - 0 + amount: + $ref: "#/components/schemas/PolicyRule_amount" + periodSec: + description: | + Time period in seconds applied by the amountScope field to accumulate transferred amounts in transactions that match the rule, until the total exceeds the value you specify under Minimum. + When the specified amount is reached within that period, whether by one or many transactions, further transactions in that period either fail or require more approvals. + type: number + authorizers: + deprecated: true + description: (deprecated - replaced by "authorizationGroups") Allowed entities + which can approves a transaction items: - type: number + type: string type: array - partial: - description: Whether this is a partial path - example: false + authorizersCount: + deprecated: true + description: (deprecated - replaced by "authorizationGroups") Min amount + of entities which are needed to approve a transaction + type: number + authorizationGroups: + $ref: "#/components/schemas/PolicyRule_authorizationGroups" + amountAggregation: + $ref: "#/components/schemas/PolicyRule_amountAggregation" + rawMessageSigning: + $ref: "#/components/schemas/PolicyRule_rawMessageSigning" + applyForApprove: + description: Applying this rule over APPROVE type transactions (can only + be enabled when rule's transaction type is TRANSFER) + type: boolean + applyForTypedMessage: + description: Applying this rule over TYPED_MESSAGE type transactions (can + only be enabled when rule's transaction type is CONTRACT_CALL) type: boolean - required: - - path - type: object - PolicyRule: - description: V2 Policy rule which is enforced on transactions - example: - amount: - min: "100" - max: "10000" - currency: USD - method: '*' - screeningMetadata: - sourceAddress: 0x123... - provider: CHAINALYSIS - exposureType: DIRECT - destAddress: 0x456... - name: - - name - - name - riskScore: "0.8" - category: - - category - - category - riskRating: MEDIUM - categoryId: - - categoryId - - categoryId - direction: OUTBOUND - status: COMPLETED - derivationPath: - path: - - 44 - - 0 - - 0 - - 0 - - 0 - partial: false - initiator: '*' - destination: - type: - - EXTERNAL - operator: INCLUDES - addressType: WHITELISTED - policyEngineVersion: v2 - index: 1 - source: - ids: - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - subType: - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - type: VAULT - matchFrom: ACCOUNT - operator: INCLUDES - baseAsset: - assetTypes: - - FUNGIBLE - - NFT - - '*' - nftTransfer: false - operator: INCLUDES - type: TRANSFER - amountOverTime: - timePeriod: - seconds: "86400" - initiator: PER_SINGLE_MATCH - destination: PER_SINGLE_MATCH - source: PER_SINGLE_MATCH - range: - min: "100" - max: "10000" - currency: USD - baseAmount: - min: "100" - max: "10000" - currency: USD - externalDescriptor: High value transfer policy for institutional clients - programCall: - allowedSolanaProgramCalls: WHITELISTED - verdict: - designatedSigners: - groups: - - group1 - - group2 - type: SINGLE - users: - - user1 - - user2 - action: ALLOW - approvers: - canInitiatorApprove: false - approvalGroups: - - threshold: 2 - users: - - user1 - - user2 - allowOperatorAsAuthorizer: false - operator: AND - name: High Value Transfer Policy - quoteAmount: - min: "100" - max: "10000" - currency: USD - subType: TRANSFER - id: policy_rule_001 - isGlobalPolicy: false - asset: - assetTypes: - - FUNGIBLE - - NFT - - '*' - nftTransfer: false - operator: INCLUDES - account: - ids: - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - subType: - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - type: VAULT - matchFrom: ACCOUNT - operator: INCLUDES - quoteAsset: - assetTypes: - - FUNGIBLE - - NFT - - '*' - nftTransfer: false - operator: INCLUDES - properties: - name: - description: Name of the policy rule - example: High Value Transfer Policy - type: string - id: - description: Unique identifier for the policy rule - example: policy_rule_001 - type: string - policyEngineVersion: - description: Policy engine version - enum: - - v2 - example: v2 - type: string - type: - $ref: "#/components/schemas/PolicyType" - subType: - $ref: "#/components/schemas/PolicyType" - initiator: - $ref: "#/components/schemas/InitiatorConfigPattern" - asset: - $ref: "#/components/schemas/AssetConfig" - source: - $ref: "#/components/schemas/AccountConfig" - destination: - $ref: "#/components/schemas/DestinationConfig" - account: - $ref: "#/components/schemas/AccountConfig" - verdict: - $ref: "#/components/schemas/VerdictConfig" - amountOverTime: - $ref: "#/components/schemas/AmountOverTimeConfig" - amount: - $ref: "#/components/schemas/AmountRange" externalDescriptor: - description: External descriptor for the rule - example: High value transfer policy for institutional clients + description: A unique id identifying the rule type: string - method: - $ref: "#/components/schemas/ContractMethodPattern" - isGlobalPolicy: - description: Whether this is a global policy - example: false - type: boolean - programCall: - $ref: "#/components/schemas/ProgramCallConfig" - screeningMetadata: - $ref: "#/components/schemas/ScreeningMetadataConfig" - quoteAsset: - $ref: "#/components/schemas/AssetConfig" - baseAsset: - $ref: "#/components/schemas/AssetConfig" - quoteAmount: - $ref: "#/components/schemas/AmountRange" - baseAmount: - $ref: "#/components/schemas/AmountRange" - derivationPath: - $ref: "#/components/schemas/DerivationPathConfig" - index: - description: Index for the policy rule - example: 1 - type: number required: + - action + - amount + - amountCurrency + - amountScope - asset - - id - - initiator - - name - - policyEngineVersion - - source + - periodSec - type - - verdict type: object PolicyMetadata: - description: Policy metadata + description: Policy related metadata example: - publishedBy: user456 - editedBy: user123 - publishedAt: 2024-01-15T11:00:00Z - policyType: TRANSFER - editedAt: 2024-01-15T10:30:00Z + publishedBy: publishedBy + editedBy: editedBy + publishedAt: publishedAt + editedAt: editedAt properties: editedBy: - description: The user ID of the user who last edited the policy - example: user123 + description: The user id of the user who last edited the policy type: string editedAt: description: The timestamp of the last edit of the policy - example: 2024-01-15T10:30:00Z type: string publishedBy: - description: The user ID of the user who last published the policy - example: user456 + description: The user id of the user who last published the policy type: string publishedAt: description: The timestamp of the last publish of the policy - example: 2024-01-15T11:00:00Z type: string - policyType: - $ref: "#/components/schemas/PolicyType" - required: - - policyType type: object PolicyResponse: description: Response object for policy operations example: metadata: - publishedBy: user456 - editedBy: user123 - publishedAt: 2024-01-15T11:00:00Z - policyType: TRANSFER - editedAt: 2024-01-15T10:30:00Z + publishedBy: publishedBy + editedBy: editedBy + publishedAt: publishedAt + editedAt: editedAt rules: - - amount: - min: "100" - max: "10000" - currency: USD - method: '*' - screeningMetadata: - sourceAddress: 0x123... - provider: CHAINALYSIS - exposureType: DIRECT - destAddress: 0x456... - name: - - name - - name - riskScore: "0.8" - category: - - category - - category - riskRating: MEDIUM - categoryId: - - categoryId - - categoryId - direction: OUTBOUND - status: COMPLETED - derivationPath: - path: - - 44 - - 0 - - 0 - - 0 - - 0 - partial: false - initiator: '*' - destination: - type: - - EXTERNAL - operator: INCLUDES - addressType: WHITELISTED - policyEngineVersion: v2 - index: 1 - source: + - dst: ids: - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - subType: - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - type: VAULT - matchFrom: ACCOUNT - operator: INCLUDES - baseAsset: - assetTypes: - - FUNGIBLE - - NFT - - '*' - nftTransfer: false - operator: INCLUDES + - null + - null + designatedSigner: designatedSigner + dstAddressType: WHITELISTED + designatedSigners: + usersGroups: + - usersGroups + - usersGroups + users: + - users + - users type: TRANSFER - amountOverTime: - timePeriod: - seconds: "86400" - initiator: PER_SINGLE_MATCH - destination: PER_SINGLE_MATCH - source: PER_SINGLE_MATCH - range: - min: "100" - max: "10000" - currency: USD - baseAmount: - min: "100" - max: "10000" - currency: USD - externalDescriptor: High value transfer policy for institutional clients - programCall: - allowedSolanaProgramCalls: WHITELISTED - verdict: - designatedSigners: - groups: - - group1 - - group2 - type: SINGLE + operator: operator + applyForApprove: true + operators: + usersGroups: + - usersGroups + - usersGroups + services: + - services + - services + users: + - users + - users + wildcard: '*' + periodSec: 0.8008281904610115 + srcId: "" + action: ALLOW + dstSubType: "" + authorizationGroups: + allowOperatorAsAuthorizer: true + groups: + - usersGroups: + - usersGroups + - usersGroups + th: 1.4658129805029452 + users: + - users + - users + - usersGroups: + - usersGroups + - usersGroups + th: 1.4658129805029452 users: - - user1 - - user2 - action: ALLOW - approvers: - canInitiatorApprove: false - approvalGroups: - - threshold: 2 - users: - - user1 - - user2 - allowOperatorAsAuthorizer: false - operator: AND - name: High Value Transfer Policy - quoteAmount: - min: "100" - max: "10000" - currency: USD - subType: TRANSFER - id: policy_rule_001 - isGlobalPolicy: false - asset: - assetTypes: - - FUNGIBLE - - NFT - - '*' - nftTransfer: false - operator: INCLUDES - account: + - users + - users + logic: AND + amountCurrency: USD + amount: PolicyRule_amount + src: ids: - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - subType: - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - type: VAULT - matchFrom: ACCOUNT - operator: INCLUDES - quoteAsset: - assetTypes: - - FUNGIBLE - - NFT - - '*' - nftTransfer: false - operator: INCLUDES - - amount: - min: "100" - max: "10000" - currency: USD - method: '*' - screeningMetadata: - sourceAddress: 0x123... - provider: CHAINALYSIS - exposureType: DIRECT - destAddress: 0x456... - name: - - name - - name - riskScore: "0.8" - category: - - category - - category - riskRating: MEDIUM - categoryId: - - categoryId - - categoryId - direction: OUTBOUND - status: COMPLETED - derivationPath: - path: - - 44 - - 0 - - 0 - - 0 - - 0 - partial: false - initiator: '*' - destination: - type: - - EXTERNAL - operator: INCLUDES - addressType: WHITELISTED - policyEngineVersion: v2 - index: 1 - source: + - - null + - null + - null + - - null + - null + - null + authorizersCount: 6.027456183070403 + dstType: "" + srcType: "" + transactionType: TRANSFER + externalDescriptor: externalDescriptor + srcSubType: "" + applyForTypedMessage: true + dstId: "" + authorizers: + - authorizers + - authorizers + rawMessageSigning: + derivationPath: + path: + - 5.962133916683182 + - 5.962133916683182 + algorithm: algorithm + asset: asset + amountAggregation: + dstTransferPeers: null + operators: PER_SINGLE_MATCH + srcTransferPeers: null + amountScope: SINGLE_TX + - dst: ids: - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - subType: - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - type: VAULT - matchFrom: ACCOUNT - operator: INCLUDES - baseAsset: - assetTypes: - - FUNGIBLE - - NFT - - '*' - nftTransfer: false - operator: INCLUDES + - null + - null + designatedSigner: designatedSigner + dstAddressType: WHITELISTED + designatedSigners: + usersGroups: + - usersGroups + - usersGroups + users: + - users + - users type: TRANSFER - amountOverTime: - timePeriod: - seconds: "86400" - initiator: PER_SINGLE_MATCH - destination: PER_SINGLE_MATCH - source: PER_SINGLE_MATCH - range: - min: "100" - max: "10000" - currency: USD - baseAmount: - min: "100" - max: "10000" - currency: USD - externalDescriptor: High value transfer policy for institutional clients - programCall: - allowedSolanaProgramCalls: WHITELISTED - verdict: - designatedSigners: - groups: - - group1 - - group2 - type: SINGLE + operator: operator + applyForApprove: true + operators: + usersGroups: + - usersGroups + - usersGroups + services: + - services + - services + users: + - users + - users + wildcard: '*' + periodSec: 0.8008281904610115 + srcId: "" + action: ALLOW + dstSubType: "" + authorizationGroups: + allowOperatorAsAuthorizer: true + groups: + - usersGroups: + - usersGroups + - usersGroups + th: 1.4658129805029452 users: - - user1 - - user2 - action: ALLOW - approvers: - canInitiatorApprove: false - approvalGroups: - - threshold: 2 - users: - - user1 - - user2 - allowOperatorAsAuthorizer: false - operator: AND - name: High Value Transfer Policy - quoteAmount: - min: "100" - max: "10000" - currency: USD - subType: TRANSFER - id: policy_rule_001 - isGlobalPolicy: false - asset: - assetTypes: - - FUNGIBLE - - NFT - - '*' - nftTransfer: false - operator: INCLUDES - account: + - users + - users + - usersGroups: + - usersGroups + - usersGroups + th: 1.4658129805029452 + users: + - users + - users + logic: AND + amountCurrency: USD + amount: PolicyRule_amount + src: ids: - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - subType: - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - type: VAULT - matchFrom: ACCOUNT - operator: INCLUDES - quoteAsset: - assetTypes: - - FUNGIBLE - - NFT - - '*' - nftTransfer: false - operator: INCLUDES + - - null + - null + - null + - - null + - null + - null + authorizersCount: 6.027456183070403 + dstType: "" + srcType: "" + transactionType: TRANSFER + externalDescriptor: externalDescriptor + srcSubType: "" + applyForTypedMessage: true + dstId: "" + authorizers: + - authorizers + - authorizers + rawMessageSigning: + derivationPath: + path: + - 5.962133916683182 + - 5.962133916683182 + algorithm: algorithm + asset: asset + amountAggregation: + dstTransferPeers: null + operators: PER_SINGLE_MATCH + srcTransferPeers: null + amountScope: SINGLE_TX properties: rules: description: A set of policy rules @@ -53715,7 +23124,7 @@ components: errorCodeName: errorCodeName errorField: operator errorMessage: errorMessage - errorCode: 1.4658129805029452 + errorCode: 7.061401241503109 properties: errorMessage: description: Error message @@ -53758,16 +23167,16 @@ components: PolicyRuleCheckResult: description: The rule validation result example: - index: 6.027456183070403 + index: 2.3021358869347655 errors: - errorCodeName: errorCodeName errorField: operator errorMessage: errorMessage - errorCode: 1.4658129805029452 + errorCode: 7.061401241503109 - errorCodeName: errorCodeName errorField: operator errorMessage: errorMessage - errorCode: 1.4658129805029452 + errorCode: 7.061401241503109 status: ok properties: index: @@ -53793,29 +23202,29 @@ components: description: Policy rules validation result example: results: - - index: 6.027456183070403 + - index: 2.3021358869347655 errors: - errorCodeName: errorCodeName errorField: operator errorMessage: errorMessage - errorCode: 1.4658129805029452 + errorCode: 7.061401241503109 - errorCodeName: errorCodeName errorField: operator errorMessage: errorMessage - errorCode: 1.4658129805029452 + errorCode: 7.061401241503109 status: ok - - index: 6.027456183070403 + - index: 2.3021358869347655 errors: - errorCodeName: errorCodeName errorField: operator errorMessage: errorMessage - errorCode: 1.4658129805029452 + errorCode: 7.061401241503109 - errorCodeName: errorCodeName errorField: operator errorMessage: errorMessage - errorCode: 1.4658129805029452 + errorCode: 7.061401241503109 status: ok - errors: 0.8008281904610115 + errors: 5.637376656633329 properties: errors: description: Number of errors @@ -53834,29 +23243,29 @@ components: example: checkResult: results: - - index: 6.027456183070403 + - index: 2.3021358869347655 errors: - errorCodeName: errorCodeName errorField: operator errorMessage: errorMessage - errorCode: 1.4658129805029452 + errorCode: 7.061401241503109 - errorCodeName: errorCodeName errorField: operator errorMessage: errorMessage - errorCode: 1.4658129805029452 + errorCode: 7.061401241503109 status: ok - - index: 6.027456183070403 + - index: 2.3021358869347655 errors: - errorCodeName: errorCodeName errorField: operator errorMessage: errorMessage - errorCode: 1.4658129805029452 + errorCode: 7.061401241503109 - errorCodeName: errorCodeName errorField: operator errorMessage: errorMessage - errorCode: 1.4658129805029452 + errorCode: 7.061401241503109 status: ok - errors: 0.8008281904610115 + errors: 5.637376656633329 status: status properties: status: @@ -53874,336 +23283,201 @@ components: validation: checkResult: results: - - index: 6.027456183070403 + - index: 2.3021358869347655 errors: - errorCodeName: errorCodeName errorField: operator errorMessage: errorMessage - errorCode: 1.4658129805029452 + errorCode: 7.061401241503109 - errorCodeName: errorCodeName errorField: operator errorMessage: errorMessage - errorCode: 1.4658129805029452 + errorCode: 7.061401241503109 status: ok - - index: 6.027456183070403 + - index: 2.3021358869347655 errors: - errorCodeName: errorCodeName errorField: operator errorMessage: errorMessage - errorCode: 1.4658129805029452 + errorCode: 7.061401241503109 - errorCodeName: errorCodeName errorField: operator errorMessage: errorMessage - errorCode: 1.4658129805029452 + errorCode: 7.061401241503109 status: ok - errors: 0.8008281904610115 + errors: 5.637376656633329 status: status policy: metadata: - publishedBy: user456 - editedBy: user123 - publishedAt: 2024-01-15T11:00:00Z - policyType: TRANSFER - editedAt: 2024-01-15T10:30:00Z + publishedBy: publishedBy + editedBy: editedBy + publishedAt: publishedAt + editedAt: editedAt rules: - - amount: - min: "100" - max: "10000" - currency: USD - method: '*' - screeningMetadata: - sourceAddress: 0x123... - provider: CHAINALYSIS - exposureType: DIRECT - destAddress: 0x456... - name: - - name - - name - riskScore: "0.8" - category: - - category - - category - riskRating: MEDIUM - categoryId: - - categoryId - - categoryId - direction: OUTBOUND - status: COMPLETED - derivationPath: - path: - - 44 - - 0 - - 0 - - 0 - - 0 - partial: false - initiator: '*' - destination: - type: - - EXTERNAL - operator: INCLUDES - addressType: WHITELISTED - policyEngineVersion: v2 - index: 1 - source: + - dst: + ids: + - null + - null + designatedSigner: designatedSigner + dstAddressType: WHITELISTED + designatedSigners: + usersGroups: + - usersGroups + - usersGroups + users: + - users + - users + type: TRANSFER + operator: operator + applyForApprove: true + operators: + usersGroups: + - usersGroups + - usersGroups + services: + - services + - services + users: + - users + - users + wildcard: '*' + periodSec: 0.8008281904610115 + srcId: "" + action: ALLOW + dstSubType: "" + authorizationGroups: + allowOperatorAsAuthorizer: true + groups: + - usersGroups: + - usersGroups + - usersGroups + th: 1.4658129805029452 + users: + - users + - users + - usersGroups: + - usersGroups + - usersGroups + th: 1.4658129805029452 + users: + - users + - users + logic: AND + amountCurrency: USD + amount: PolicyRule_amount + src: + ids: + - - null + - null + - null + - - null + - null + - null + authorizersCount: 6.027456183070403 + dstType: "" + srcType: "" + transactionType: TRANSFER + externalDescriptor: externalDescriptor + srcSubType: "" + applyForTypedMessage: true + dstId: "" + authorizers: + - authorizers + - authorizers + rawMessageSigning: + derivationPath: + path: + - 5.962133916683182 + - 5.962133916683182 + algorithm: algorithm + asset: asset + amountAggregation: + dstTransferPeers: null + operators: PER_SINGLE_MATCH + srcTransferPeers: null + amountScope: SINGLE_TX + - dst: ids: - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - subType: - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - type: VAULT - matchFrom: ACCOUNT - operator: INCLUDES - baseAsset: - assetTypes: - - FUNGIBLE - - NFT - - '*' - nftTransfer: false - operator: INCLUDES + - null + - null + designatedSigner: designatedSigner + dstAddressType: WHITELISTED + designatedSigners: + usersGroups: + - usersGroups + - usersGroups + users: + - users + - users type: TRANSFER - amountOverTime: - timePeriod: - seconds: "86400" - initiator: PER_SINGLE_MATCH - destination: PER_SINGLE_MATCH - source: PER_SINGLE_MATCH - range: - min: "100" - max: "10000" - currency: USD - baseAmount: - min: "100" - max: "10000" - currency: USD - externalDescriptor: High value transfer policy for institutional clients - programCall: - allowedSolanaProgramCalls: WHITELISTED - verdict: - designatedSigners: - groups: - - group1 - - group2 - type: SINGLE + operator: operator + applyForApprove: true + operators: + usersGroups: + - usersGroups + - usersGroups + services: + - services + - services + users: + - users + - users + wildcard: '*' + periodSec: 0.8008281904610115 + srcId: "" + action: ALLOW + dstSubType: "" + authorizationGroups: + allowOperatorAsAuthorizer: true + groups: + - usersGroups: + - usersGroups + - usersGroups + th: 1.4658129805029452 users: - - user1 - - user2 - action: ALLOW - approvers: - canInitiatorApprove: false - approvalGroups: - - threshold: 2 - users: - - user1 - - user2 - allowOperatorAsAuthorizer: false - operator: AND - name: High Value Transfer Policy - quoteAmount: - min: "100" - max: "10000" - currency: USD - subType: TRANSFER - id: policy_rule_001 - isGlobalPolicy: false - asset: - assetTypes: - - FUNGIBLE - - NFT - - '*' - nftTransfer: false - operator: INCLUDES - account: - ids: - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - subType: - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - type: VAULT - matchFrom: ACCOUNT - operator: INCLUDES - quoteAsset: - assetTypes: - - FUNGIBLE - - NFT - - '*' - nftTransfer: false - operator: INCLUDES - - amount: - min: "100" - max: "10000" - currency: USD - method: '*' - screeningMetadata: - sourceAddress: 0x123... - provider: CHAINALYSIS - exposureType: DIRECT - destAddress: 0x456... - name: - - name - - name - riskScore: "0.8" - category: - - category - - category - riskRating: MEDIUM - categoryId: - - categoryId - - categoryId - direction: OUTBOUND - status: COMPLETED - derivationPath: - path: - - 44 - - 0 - - 0 - - 0 - - 0 - partial: false - initiator: '*' - destination: - type: - - EXTERNAL - operator: INCLUDES - addressType: WHITELISTED - policyEngineVersion: v2 - index: 1 - source: - ids: - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - subType: - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - type: VAULT - matchFrom: ACCOUNT - operator: INCLUDES - baseAsset: - assetTypes: - - FUNGIBLE - - NFT - - '*' - nftTransfer: false - operator: INCLUDES - type: TRANSFER - amountOverTime: - timePeriod: - seconds: "86400" - initiator: PER_SINGLE_MATCH - destination: PER_SINGLE_MATCH - source: PER_SINGLE_MATCH - range: - min: "100" - max: "10000" - currency: USD - baseAmount: - min: "100" - max: "10000" - currency: USD - externalDescriptor: High value transfer policy for institutional clients - programCall: - allowedSolanaProgramCalls: WHITELISTED - verdict: - designatedSigners: - groups: - - group1 - - group2 - type: SINGLE + - users + - users + - usersGroups: + - usersGroups + - usersGroups + th: 1.4658129805029452 users: - - user1 - - user2 - action: ALLOW - approvers: - canInitiatorApprove: false - approvalGroups: - - threshold: 2 - users: - - user1 - - user2 - allowOperatorAsAuthorizer: false - operator: AND - name: High Value Transfer Policy - quoteAmount: - min: "100" - max: "10000" - currency: USD - subType: TRANSFER - id: policy_rule_001 - isGlobalPolicy: false - asset: - assetTypes: - - FUNGIBLE - - NFT - - '*' - nftTransfer: false - operator: INCLUDES - account: + - users + - users + logic: AND + amountCurrency: USD + amount: PolicyRule_amount + src: ids: - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - subType: - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - type: VAULT - matchFrom: ACCOUNT - operator: INCLUDES - quoteAsset: - assetTypes: - - FUNGIBLE - - NFT - - '*' - nftTransfer: false - operator: INCLUDES + - - null + - null + - null + - - null + - null + - null + authorizersCount: 6.027456183070403 + dstType: "" + srcType: "" + transactionType: TRANSFER + externalDescriptor: externalDescriptor + srcSubType: "" + applyForTypedMessage: true + dstId: "" + authorizers: + - authorizers + - authorizers + rawMessageSigning: + derivationPath: + path: + - 5.962133916683182 + - 5.962133916683182 + algorithm: algorithm + asset: asset + amountAggregation: + dstTransferPeers: null + operators: PER_SINGLE_MATCH + srcTransferPeers: null + amountScope: SINGLE_TX properties: policy: $ref: "#/components/schemas/PolicyResponse" @@ -54218,310 +23492,175 @@ components: example: draftId: draftId metadata: - publishedBy: user456 - editedBy: user123 - publishedAt: 2024-01-15T11:00:00Z - policyType: TRANSFER - editedAt: 2024-01-15T10:30:00Z + publishedBy: publishedBy + editedBy: editedBy + publishedAt: publishedAt + editedAt: editedAt rules: - - amount: - min: "100" - max: "10000" - currency: USD - method: '*' - screeningMetadata: - sourceAddress: 0x123... - provider: CHAINALYSIS - exposureType: DIRECT - destAddress: 0x456... - name: - - name - - name - riskScore: "0.8" - category: - - category - - category - riskRating: MEDIUM - categoryId: - - categoryId - - categoryId - direction: OUTBOUND - status: COMPLETED - derivationPath: - path: - - 44 - - 0 - - 0 - - 0 - - 0 - partial: false - initiator: '*' - destination: - type: - - EXTERNAL - operator: INCLUDES - addressType: WHITELISTED - policyEngineVersion: v2 - index: 1 - source: + - dst: ids: - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - subType: - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - type: VAULT - matchFrom: ACCOUNT - operator: INCLUDES - baseAsset: - assetTypes: - - FUNGIBLE - - NFT - - '*' - nftTransfer: false - operator: INCLUDES + - null + - null + designatedSigner: designatedSigner + dstAddressType: WHITELISTED + designatedSigners: + usersGroups: + - usersGroups + - usersGroups + users: + - users + - users type: TRANSFER - amountOverTime: - timePeriod: - seconds: "86400" - initiator: PER_SINGLE_MATCH - destination: PER_SINGLE_MATCH - source: PER_SINGLE_MATCH - range: - min: "100" - max: "10000" - currency: USD - baseAmount: - min: "100" - max: "10000" - currency: USD - externalDescriptor: High value transfer policy for institutional clients - programCall: - allowedSolanaProgramCalls: WHITELISTED - verdict: - designatedSigners: - groups: - - group1 - - group2 - type: SINGLE + operator: operator + applyForApprove: true + operators: + usersGroups: + - usersGroups + - usersGroups + services: + - services + - services + users: + - users + - users + wildcard: '*' + periodSec: 0.8008281904610115 + srcId: "" + action: ALLOW + dstSubType: "" + authorizationGroups: + allowOperatorAsAuthorizer: true + groups: + - usersGroups: + - usersGroups + - usersGroups + th: 1.4658129805029452 users: - - user1 - - user2 - action: ALLOW - approvers: - canInitiatorApprove: false - approvalGroups: - - threshold: 2 - users: - - user1 - - user2 - allowOperatorAsAuthorizer: false - operator: AND - name: High Value Transfer Policy - quoteAmount: - min: "100" - max: "10000" - currency: USD - subType: TRANSFER - id: policy_rule_001 - isGlobalPolicy: false - asset: - assetTypes: - - FUNGIBLE - - NFT - - '*' - nftTransfer: false - operator: INCLUDES - account: + - users + - users + - usersGroups: + - usersGroups + - usersGroups + th: 1.4658129805029452 + users: + - users + - users + logic: AND + amountCurrency: USD + amount: PolicyRule_amount + src: ids: - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - subType: - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - type: VAULT - matchFrom: ACCOUNT - operator: INCLUDES - quoteAsset: - assetTypes: - - FUNGIBLE - - NFT - - '*' - nftTransfer: false - operator: INCLUDES - - amount: - min: "100" - max: "10000" - currency: USD - method: '*' - screeningMetadata: - sourceAddress: 0x123... - provider: CHAINALYSIS - exposureType: DIRECT - destAddress: 0x456... - name: - - name - - name - riskScore: "0.8" - category: - - category - - category - riskRating: MEDIUM - categoryId: - - categoryId - - categoryId - direction: OUTBOUND - status: COMPLETED - derivationPath: - path: - - 44 - - 0 - - 0 - - 0 - - 0 - partial: false - initiator: '*' - destination: - type: - - EXTERNAL - operator: INCLUDES - addressType: WHITELISTED - policyEngineVersion: v2 - index: 1 - source: + - - null + - null + - null + - - null + - null + - null + authorizersCount: 6.027456183070403 + dstType: "" + srcType: "" + transactionType: TRANSFER + externalDescriptor: externalDescriptor + srcSubType: "" + applyForTypedMessage: true + dstId: "" + authorizers: + - authorizers + - authorizers + rawMessageSigning: + derivationPath: + path: + - 5.962133916683182 + - 5.962133916683182 + algorithm: algorithm + asset: asset + amountAggregation: + dstTransferPeers: null + operators: PER_SINGLE_MATCH + srcTransferPeers: null + amountScope: SINGLE_TX + - dst: ids: - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - subType: - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - type: VAULT - matchFrom: ACCOUNT - operator: INCLUDES - baseAsset: - assetTypes: - - FUNGIBLE - - NFT - - '*' - nftTransfer: false - operator: INCLUDES + - null + - null + designatedSigner: designatedSigner + dstAddressType: WHITELISTED + designatedSigners: + usersGroups: + - usersGroups + - usersGroups + users: + - users + - users type: TRANSFER - amountOverTime: - timePeriod: - seconds: "86400" - initiator: PER_SINGLE_MATCH - destination: PER_SINGLE_MATCH - source: PER_SINGLE_MATCH - range: - min: "100" - max: "10000" - currency: USD - baseAmount: - min: "100" - max: "10000" - currency: USD - externalDescriptor: High value transfer policy for institutional clients - programCall: - allowedSolanaProgramCalls: WHITELISTED - verdict: - designatedSigners: - groups: - - group1 - - group2 - type: SINGLE + operator: operator + applyForApprove: true + operators: + usersGroups: + - usersGroups + - usersGroups + services: + - services + - services + users: + - users + - users + wildcard: '*' + periodSec: 0.8008281904610115 + srcId: "" + action: ALLOW + dstSubType: "" + authorizationGroups: + allowOperatorAsAuthorizer: true + groups: + - usersGroups: + - usersGroups + - usersGroups + th: 1.4658129805029452 users: - - user1 - - user2 - action: ALLOW - approvers: - canInitiatorApprove: false - approvalGroups: - - threshold: 2 - users: - - user1 - - user2 - allowOperatorAsAuthorizer: false - operator: AND - name: High Value Transfer Policy - quoteAmount: - min: "100" - max: "10000" - currency: USD - subType: TRANSFER - id: policy_rule_001 - isGlobalPolicy: false - asset: - assetTypes: - - FUNGIBLE - - NFT - - '*' - nftTransfer: false - operator: INCLUDES - account: + - users + - users + - usersGroups: + - usersGroups + - usersGroups + th: 1.4658129805029452 + users: + - users + - users + logic: AND + amountCurrency: USD + amount: PolicyRule_amount + src: ids: - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - subType: - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - type: VAULT - matchFrom: ACCOUNT - operator: INCLUDES - quoteAsset: - assetTypes: - - FUNGIBLE - - NFT - - '*' - nftTransfer: false - operator: INCLUDES + - - null + - null + - null + - - null + - null + - null + authorizersCount: 6.027456183070403 + dstType: "" + srcType: "" + transactionType: TRANSFER + externalDescriptor: externalDescriptor + srcSubType: "" + applyForTypedMessage: true + dstId: "" + authorizers: + - authorizers + - authorizers + rawMessageSigning: + derivationPath: + path: + - 5.962133916683182 + - 5.962133916683182 + algorithm: algorithm + asset: asset + amountAggregation: + dstTransferPeers: null + operators: PER_SINGLE_MATCH + srcTransferPeers: null + amountScope: SINGLE_TX status: status properties: status: @@ -54549,337 +23688,202 @@ components: draftResponse: draftId: draftId metadata: - publishedBy: user456 - editedBy: user123 - publishedAt: 2024-01-15T11:00:00Z - policyType: TRANSFER - editedAt: 2024-01-15T10:30:00Z + publishedBy: publishedBy + editedBy: editedBy + publishedAt: publishedAt + editedAt: editedAt rules: - - amount: - min: "100" - max: "10000" - currency: USD - method: '*' - screeningMetadata: - sourceAddress: 0x123... - provider: CHAINALYSIS - exposureType: DIRECT - destAddress: 0x456... - name: - - name - - name - riskScore: "0.8" - category: - - category - - category - riskRating: MEDIUM - categoryId: - - categoryId - - categoryId - direction: OUTBOUND - status: COMPLETED - derivationPath: - path: - - 44 - - 0 - - 0 - - 0 - - 0 - partial: false - initiator: '*' - destination: - type: - - EXTERNAL - operator: INCLUDES - addressType: WHITELISTED - policyEngineVersion: v2 - index: 1 - source: + - dst: ids: - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - subType: - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - type: VAULT - matchFrom: ACCOUNT - operator: INCLUDES - baseAsset: - assetTypes: - - FUNGIBLE - - NFT - - '*' - nftTransfer: false - operator: INCLUDES + - null + - null + designatedSigner: designatedSigner + dstAddressType: WHITELISTED + designatedSigners: + usersGroups: + - usersGroups + - usersGroups + users: + - users + - users type: TRANSFER - amountOverTime: - timePeriod: - seconds: "86400" - initiator: PER_SINGLE_MATCH - destination: PER_SINGLE_MATCH - source: PER_SINGLE_MATCH - range: - min: "100" - max: "10000" - currency: USD - baseAmount: - min: "100" - max: "10000" - currency: USD - externalDescriptor: High value transfer policy for institutional clients - programCall: - allowedSolanaProgramCalls: WHITELISTED - verdict: - designatedSigners: - groups: - - group1 - - group2 - type: SINGLE + operator: operator + applyForApprove: true + operators: + usersGroups: + - usersGroups + - usersGroups + services: + - services + - services + users: + - users + - users + wildcard: '*' + periodSec: 0.8008281904610115 + srcId: "" + action: ALLOW + dstSubType: "" + authorizationGroups: + allowOperatorAsAuthorizer: true + groups: + - usersGroups: + - usersGroups + - usersGroups + th: 1.4658129805029452 + users: + - users + - users + - usersGroups: + - usersGroups + - usersGroups + th: 1.4658129805029452 users: - - user1 - - user2 - action: ALLOW - approvers: - canInitiatorApprove: false - approvalGroups: - - threshold: 2 - users: - - user1 - - user2 - allowOperatorAsAuthorizer: false - operator: AND - name: High Value Transfer Policy - quoteAmount: - min: "100" - max: "10000" - currency: USD - subType: TRANSFER - id: policy_rule_001 - isGlobalPolicy: false - asset: - assetTypes: - - FUNGIBLE - - NFT - - '*' - nftTransfer: false - operator: INCLUDES - account: + - users + - users + logic: AND + amountCurrency: USD + amount: PolicyRule_amount + src: ids: - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - subType: - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - type: VAULT - matchFrom: ACCOUNT - operator: INCLUDES - quoteAsset: - assetTypes: - - FUNGIBLE - - NFT - - '*' - nftTransfer: false - operator: INCLUDES - - amount: - min: "100" - max: "10000" - currency: USD - method: '*' - screeningMetadata: - sourceAddress: 0x123... - provider: CHAINALYSIS - exposureType: DIRECT - destAddress: 0x456... - name: - - name - - name - riskScore: "0.8" - category: - - category - - category - riskRating: MEDIUM - categoryId: - - categoryId - - categoryId - direction: OUTBOUND - status: COMPLETED - derivationPath: - path: - - 44 - - 0 - - 0 - - 0 - - 0 - partial: false - initiator: '*' - destination: - type: - - EXTERNAL - operator: INCLUDES - addressType: WHITELISTED - policyEngineVersion: v2 - index: 1 - source: + - - null + - null + - null + - - null + - null + - null + authorizersCount: 6.027456183070403 + dstType: "" + srcType: "" + transactionType: TRANSFER + externalDescriptor: externalDescriptor + srcSubType: "" + applyForTypedMessage: true + dstId: "" + authorizers: + - authorizers + - authorizers + rawMessageSigning: + derivationPath: + path: + - 5.962133916683182 + - 5.962133916683182 + algorithm: algorithm + asset: asset + amountAggregation: + dstTransferPeers: null + operators: PER_SINGLE_MATCH + srcTransferPeers: null + amountScope: SINGLE_TX + - dst: ids: - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - subType: - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - type: VAULT - matchFrom: ACCOUNT - operator: INCLUDES - baseAsset: - assetTypes: - - FUNGIBLE - - NFT - - '*' - nftTransfer: false - operator: INCLUDES + - null + - null + designatedSigner: designatedSigner + dstAddressType: WHITELISTED + designatedSigners: + usersGroups: + - usersGroups + - usersGroups + users: + - users + - users type: TRANSFER - amountOverTime: - timePeriod: - seconds: "86400" - initiator: PER_SINGLE_MATCH - destination: PER_SINGLE_MATCH - source: PER_SINGLE_MATCH - range: - min: "100" - max: "10000" - currency: USD - baseAmount: - min: "100" - max: "10000" - currency: USD - externalDescriptor: High value transfer policy for institutional clients - programCall: - allowedSolanaProgramCalls: WHITELISTED - verdict: - designatedSigners: - groups: - - group1 - - group2 - type: SINGLE + operator: operator + applyForApprove: true + operators: + usersGroups: + - usersGroups + - usersGroups + services: + - services + - services + users: + - users + - users + wildcard: '*' + periodSec: 0.8008281904610115 + srcId: "" + action: ALLOW + dstSubType: "" + authorizationGroups: + allowOperatorAsAuthorizer: true + groups: + - usersGroups: + - usersGroups + - usersGroups + th: 1.4658129805029452 + users: + - users + - users + - usersGroups: + - usersGroups + - usersGroups + th: 1.4658129805029452 users: - - user1 - - user2 - action: ALLOW - approvers: - canInitiatorApprove: false - approvalGroups: - - threshold: 2 - users: - - user1 - - user2 - allowOperatorAsAuthorizer: false - operator: AND - name: High Value Transfer Policy - quoteAmount: - min: "100" - max: "10000" - currency: USD - subType: TRANSFER - id: policy_rule_001 - isGlobalPolicy: false - asset: - assetTypes: - - FUNGIBLE - - NFT - - '*' - nftTransfer: false - operator: INCLUDES - account: + - users + - users + logic: AND + amountCurrency: USD + amount: PolicyRule_amount + src: ids: - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - subType: - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - type: VAULT - matchFrom: ACCOUNT - operator: INCLUDES - quoteAsset: - assetTypes: - - FUNGIBLE - - NFT - - '*' - nftTransfer: false - operator: INCLUDES + - - null + - null + - null + - - null + - null + - null + authorizersCount: 6.027456183070403 + dstType: "" + srcType: "" + transactionType: TRANSFER + externalDescriptor: externalDescriptor + srcSubType: "" + applyForTypedMessage: true + dstId: "" + authorizers: + - authorizers + - authorizers + rawMessageSigning: + derivationPath: + path: + - 5.962133916683182 + - 5.962133916683182 + algorithm: algorithm + asset: asset + amountAggregation: + dstTransferPeers: null + operators: PER_SINGLE_MATCH + srcTransferPeers: null + amountScope: SINGLE_TX status: status validation: checkResult: results: - - index: 6.027456183070403 + - index: 2.3021358869347655 errors: - errorCodeName: errorCodeName errorField: operator errorMessage: errorMessage - errorCode: 1.4658129805029452 + errorCode: 7.061401241503109 - errorCodeName: errorCodeName errorField: operator errorMessage: errorMessage - errorCode: 1.4658129805029452 + errorCode: 7.061401241503109 status: ok - - index: 6.027456183070403 + - index: 2.3021358869347655 errors: - errorCodeName: errorCodeName errorField: operator errorMessage: errorMessage - errorCode: 1.4658129805029452 + errorCode: 7.061401241503109 - errorCodeName: errorCodeName errorField: operator errorMessage: errorMessage - errorCode: 1.4658129805029452 + errorCode: 7.061401241503109 status: ok - errors: 0.8008281904610115 + errors: 5.637376656633329 status: status properties: draftResponse: @@ -54890,345 +23894,187 @@ components: - draftResponse - validation type: object - UpdateDraftRequest: - description: Request schema for updating draft with policy types and rules + PolicyRules: example: rules: - - amount: - min: "100" - max: "10000" - currency: USD - method: '*' - screeningMetadata: - sourceAddress: 0x123... - provider: CHAINALYSIS - exposureType: DIRECT - destAddress: 0x456... - name: - - name - - name - riskScore: "0.8" - category: - - category - - category - riskRating: MEDIUM - categoryId: - - categoryId - - categoryId - direction: OUTBOUND - status: COMPLETED - derivationPath: - path: - - 44 - - 0 - - 0 - - 0 - - 0 - partial: false - initiator: '*' - destination: - type: - - EXTERNAL - operator: INCLUDES - addressType: WHITELISTED - policyEngineVersion: v2 - index: 1 - source: + - dst: + ids: + - null + - null + designatedSigner: designatedSigner + dstAddressType: WHITELISTED + designatedSigners: + usersGroups: + - usersGroups + - usersGroups + users: + - users + - users + type: TRANSFER + operator: operator + applyForApprove: true + operators: + usersGroups: + - usersGroups + - usersGroups + services: + - services + - services + users: + - users + - users + wildcard: '*' + periodSec: 0.8008281904610115 + srcId: "" + action: ALLOW + dstSubType: "" + authorizationGroups: + allowOperatorAsAuthorizer: true + groups: + - usersGroups: + - usersGroups + - usersGroups + th: 1.4658129805029452 + users: + - users + - users + - usersGroups: + - usersGroups + - usersGroups + th: 1.4658129805029452 + users: + - users + - users + logic: AND + amountCurrency: USD + amount: PolicyRule_amount + src: + ids: + - - null + - null + - null + - - null + - null + - null + authorizersCount: 6.027456183070403 + dstType: "" + srcType: "" + transactionType: TRANSFER + externalDescriptor: externalDescriptor + srcSubType: "" + applyForTypedMessage: true + dstId: "" + authorizers: + - authorizers + - authorizers + rawMessageSigning: + derivationPath: + path: + - 5.962133916683182 + - 5.962133916683182 + algorithm: algorithm + asset: asset + amountAggregation: + dstTransferPeers: null + operators: PER_SINGLE_MATCH + srcTransferPeers: null + amountScope: SINGLE_TX + - dst: ids: - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - subType: - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - type: VAULT - matchFrom: ACCOUNT - operator: INCLUDES - baseAsset: - assetTypes: - - FUNGIBLE - - NFT - - '*' - nftTransfer: false - operator: INCLUDES + - null + - null + designatedSigner: designatedSigner + dstAddressType: WHITELISTED + designatedSigners: + usersGroups: + - usersGroups + - usersGroups + users: + - users + - users type: TRANSFER - amountOverTime: - timePeriod: - seconds: "86400" - initiator: PER_SINGLE_MATCH - destination: PER_SINGLE_MATCH - source: PER_SINGLE_MATCH - range: - min: "100" - max: "10000" - currency: USD - baseAmount: - min: "100" - max: "10000" - currency: USD - externalDescriptor: High value transfer policy for institutional clients - programCall: - allowedSolanaProgramCalls: WHITELISTED - verdict: - designatedSigners: - groups: - - group1 - - group2 - type: SINGLE + operator: operator + applyForApprove: true + operators: + usersGroups: + - usersGroups + - usersGroups + services: + - services + - services + users: + - users + - users + wildcard: '*' + periodSec: 0.8008281904610115 + srcId: "" + action: ALLOW + dstSubType: "" + authorizationGroups: + allowOperatorAsAuthorizer: true + groups: + - usersGroups: + - usersGroups + - usersGroups + th: 1.4658129805029452 users: - - user1 - - user2 - action: ALLOW - approvers: - canInitiatorApprove: false - approvalGroups: - - threshold: 2 - users: - - user1 - - user2 - allowOperatorAsAuthorizer: false - operator: AND - name: High Value Transfer Policy - quoteAmount: - min: "100" - max: "10000" - currency: USD - subType: TRANSFER - id: policy_rule_001 - isGlobalPolicy: false - asset: - assetTypes: - - FUNGIBLE - - NFT - - '*' - nftTransfer: false - operator: INCLUDES - account: - ids: - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - subType: - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - type: VAULT - matchFrom: ACCOUNT - operator: INCLUDES - quoteAsset: - assetTypes: - - FUNGIBLE - - NFT - - '*' - nftTransfer: false - operator: INCLUDES - - amount: - min: "100" - max: "10000" - currency: USD - method: '*' - screeningMetadata: - sourceAddress: 0x123... - provider: CHAINALYSIS - exposureType: DIRECT - destAddress: 0x456... - name: - - name - - name - riskScore: "0.8" - category: - - category - - category - riskRating: MEDIUM - categoryId: - - categoryId - - categoryId - direction: OUTBOUND - status: COMPLETED - derivationPath: - path: - - 44 - - 0 - - 0 - - 0 - - 0 - partial: false - initiator: '*' - destination: - type: - - EXTERNAL - operator: INCLUDES - addressType: WHITELISTED - policyEngineVersion: v2 - index: 1 - source: - ids: - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - subType: - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - type: VAULT - matchFrom: ACCOUNT - operator: INCLUDES - baseAsset: - assetTypes: - - FUNGIBLE - - NFT - - '*' - nftTransfer: false - operator: INCLUDES - type: TRANSFER - amountOverTime: - timePeriod: - seconds: "86400" - initiator: PER_SINGLE_MATCH - destination: PER_SINGLE_MATCH - source: PER_SINGLE_MATCH - range: - min: "100" - max: "10000" - currency: USD - baseAmount: - min: "100" - max: "10000" - currency: USD - externalDescriptor: High value transfer policy for institutional clients - programCall: - allowedSolanaProgramCalls: WHITELISTED - verdict: - designatedSigners: - groups: - - group1 - - group2 - type: SINGLE + - users + - users + - usersGroups: + - usersGroups + - usersGroups + th: 1.4658129805029452 users: - - user1 - - user2 - action: ALLOW - approvers: - canInitiatorApprove: false - approvalGroups: - - threshold: 2 - users: - - user1 - - user2 - allowOperatorAsAuthorizer: false - operator: AND - name: High Value Transfer Policy - quoteAmount: - min: "100" - max: "10000" - currency: USD - subType: TRANSFER - id: policy_rule_001 - isGlobalPolicy: false - asset: - assetTypes: - - FUNGIBLE - - NFT - - '*' - nftTransfer: false - operator: INCLUDES - account: + - users + - users + logic: AND + amountCurrency: USD + amount: PolicyRule_amount + src: ids: - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - subType: - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - type: VAULT - matchFrom: ACCOUNT - operator: INCLUDES - quoteAsset: - assetTypes: - - FUNGIBLE - - NFT - - '*' - nftTransfer: false - operator: INCLUDES - policyTypes: - - TRANSFER - - TRANSFER - properties: - policyTypes: - items: - $ref: "#/components/schemas/PolicyType" - type: array + - - null + - null + - null + - - null + - null + - null + authorizersCount: 6.027456183070403 + dstType: "" + srcType: "" + transactionType: TRANSFER + externalDescriptor: externalDescriptor + srcSubType: "" + applyForTypedMessage: true + dstId: "" + authorizers: + - authorizers + - authorizers + rawMessageSigning: + derivationPath: + path: + - 5.962133916683182 + - 5.962133916683182 + algorithm: algorithm + asset: asset + amountAggregation: + dstTransferPeers: null + operators: PER_SINGLE_MATCH + srcTransferPeers: null + amountScope: SINGLE_TX + properties: rules: - description: Array of policy rules + description: Policy rules items: $ref: "#/components/schemas/PolicyRule" type: array - required: - - policyTypes - - rules type: object PublishDraftRequest: - description: Request schema for publishing draft with policy types and draft - ID example: - draftId: draft-123 - policyTypes: - - TRANSFER - - TRANSFER + draftId: draftId properties: - policyTypes: - items: - $ref: "#/components/schemas/PolicyType" - type: array draftId: - description: The ID of the draft to publish - example: draft-123 + description: draft unique identifier type: string - required: - - draftId - - policyTypes type: object PolicyStatus: description: | @@ -55252,335 +24098,200 @@ components: description: Response object of the publish policy operation example: metadata: - publishedBy: user456 - editedBy: user123 - publishedAt: 2024-01-15T11:00:00Z - policyType: TRANSFER - editedAt: 2024-01-15T10:30:00Z + publishedBy: publishedBy + editedBy: editedBy + publishedAt: publishedAt + editedAt: editedAt rules: - - amount: - min: "100" - max: "10000" - currency: USD - method: '*' - screeningMetadata: - sourceAddress: 0x123... - provider: CHAINALYSIS - exposureType: DIRECT - destAddress: 0x456... - name: - - name - - name - riskScore: "0.8" - category: - - category - - category - riskRating: MEDIUM - categoryId: - - categoryId - - categoryId - direction: OUTBOUND - status: COMPLETED - derivationPath: - path: - - 44 - - 0 - - 0 - - 0 - - 0 - partial: false - initiator: '*' - destination: - type: - - EXTERNAL - operator: INCLUDES - addressType: WHITELISTED - policyEngineVersion: v2 - index: 1 - source: + - dst: ids: - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - subType: - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - type: VAULT - matchFrom: ACCOUNT - operator: INCLUDES - baseAsset: - assetTypes: - - FUNGIBLE - - NFT - - '*' - nftTransfer: false - operator: INCLUDES + - null + - null + designatedSigner: designatedSigner + dstAddressType: WHITELISTED + designatedSigners: + usersGroups: + - usersGroups + - usersGroups + users: + - users + - users type: TRANSFER - amountOverTime: - timePeriod: - seconds: "86400" - initiator: PER_SINGLE_MATCH - destination: PER_SINGLE_MATCH - source: PER_SINGLE_MATCH - range: - min: "100" - max: "10000" - currency: USD - baseAmount: - min: "100" - max: "10000" - currency: USD - externalDescriptor: High value transfer policy for institutional clients - programCall: - allowedSolanaProgramCalls: WHITELISTED - verdict: - designatedSigners: - groups: - - group1 - - group2 - type: SINGLE + operator: operator + applyForApprove: true + operators: + usersGroups: + - usersGroups + - usersGroups + services: + - services + - services + users: + - users + - users + wildcard: '*' + periodSec: 0.8008281904610115 + srcId: "" + action: ALLOW + dstSubType: "" + authorizationGroups: + allowOperatorAsAuthorizer: true + groups: + - usersGroups: + - usersGroups + - usersGroups + th: 1.4658129805029452 users: - - user1 - - user2 - action: ALLOW - approvers: - canInitiatorApprove: false - approvalGroups: - - threshold: 2 - users: - - user1 - - user2 - allowOperatorAsAuthorizer: false - operator: AND - name: High Value Transfer Policy - quoteAmount: - min: "100" - max: "10000" - currency: USD - subType: TRANSFER - id: policy_rule_001 - isGlobalPolicy: false - asset: - assetTypes: - - FUNGIBLE - - NFT - - '*' - nftTransfer: false - operator: INCLUDES - account: + - users + - users + - usersGroups: + - usersGroups + - usersGroups + th: 1.4658129805029452 + users: + - users + - users + logic: AND + amountCurrency: USD + amount: PolicyRule_amount + src: ids: - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - subType: - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - type: VAULT - matchFrom: ACCOUNT - operator: INCLUDES - quoteAsset: - assetTypes: - - FUNGIBLE - - NFT - - '*' - nftTransfer: false - operator: INCLUDES - - amount: - min: "100" - max: "10000" - currency: USD - method: '*' - screeningMetadata: - sourceAddress: 0x123... - provider: CHAINALYSIS - exposureType: DIRECT - destAddress: 0x456... - name: - - name - - name - riskScore: "0.8" - category: - - category - - category - riskRating: MEDIUM - categoryId: - - categoryId - - categoryId - direction: OUTBOUND - status: COMPLETED - derivationPath: - path: - - 44 - - 0 - - 0 - - 0 - - 0 - partial: false - initiator: '*' - destination: - type: - - EXTERNAL - operator: INCLUDES - addressType: WHITELISTED - policyEngineVersion: v2 - index: 1 - source: + - - null + - null + - null + - - null + - null + - null + authorizersCount: 6.027456183070403 + dstType: "" + srcType: "" + transactionType: TRANSFER + externalDescriptor: externalDescriptor + srcSubType: "" + applyForTypedMessage: true + dstId: "" + authorizers: + - authorizers + - authorizers + rawMessageSigning: + derivationPath: + path: + - 5.962133916683182 + - 5.962133916683182 + algorithm: algorithm + asset: asset + amountAggregation: + dstTransferPeers: null + operators: PER_SINGLE_MATCH + srcTransferPeers: null + amountScope: SINGLE_TX + - dst: ids: - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - subType: - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - type: VAULT - matchFrom: ACCOUNT - operator: INCLUDES - baseAsset: - assetTypes: - - FUNGIBLE - - NFT - - '*' - nftTransfer: false - operator: INCLUDES + - null + - null + designatedSigner: designatedSigner + dstAddressType: WHITELISTED + designatedSigners: + usersGroups: + - usersGroups + - usersGroups + users: + - users + - users type: TRANSFER - amountOverTime: - timePeriod: - seconds: "86400" - initiator: PER_SINGLE_MATCH - destination: PER_SINGLE_MATCH - source: PER_SINGLE_MATCH - range: - min: "100" - max: "10000" - currency: USD - baseAmount: - min: "100" - max: "10000" - currency: USD - externalDescriptor: High value transfer policy for institutional clients - programCall: - allowedSolanaProgramCalls: WHITELISTED - verdict: - designatedSigners: - groups: - - group1 - - group2 - type: SINGLE + operator: operator + applyForApprove: true + operators: + usersGroups: + - usersGroups + - usersGroups + services: + - services + - services + users: + - users + - users + wildcard: '*' + periodSec: 0.8008281904610115 + srcId: "" + action: ALLOW + dstSubType: "" + authorizationGroups: + allowOperatorAsAuthorizer: true + groups: + - usersGroups: + - usersGroups + - usersGroups + th: 1.4658129805029452 users: - - user1 - - user2 - action: ALLOW - approvers: - canInitiatorApprove: false - approvalGroups: - - threshold: 2 - users: - - user1 - - user2 - allowOperatorAsAuthorizer: false - operator: AND - name: High Value Transfer Policy - quoteAmount: - min: "100" - max: "10000" - currency: USD - subType: TRANSFER - id: policy_rule_001 - isGlobalPolicy: false - asset: - assetTypes: - - FUNGIBLE - - NFT - - '*' - nftTransfer: false - operator: INCLUDES - account: + - users + - users + - usersGroups: + - usersGroups + - usersGroups + th: 1.4658129805029452 + users: + - users + - users + logic: AND + amountCurrency: USD + amount: PolicyRule_amount + src: ids: - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - subType: - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - - address: 0x123... - subType: INTERNAL - id: account123 - type: VAULT - type: VAULT - matchFrom: ACCOUNT - operator: INCLUDES - quoteAsset: - assetTypes: - - FUNGIBLE - - NFT - - '*' - nftTransfer: false - operator: INCLUDES + - - null + - null + - null + - - null + - null + - null + authorizersCount: 6.027456183070403 + dstType: "" + srcType: "" + transactionType: TRANSFER + externalDescriptor: externalDescriptor + srcSubType: "" + applyForTypedMessage: true + dstId: "" + authorizers: + - authorizers + - authorizers + rawMessageSigning: + derivationPath: + path: + - 5.962133916683182 + - 5.962133916683182 + algorithm: algorithm + asset: asset + amountAggregation: + dstTransferPeers: null + operators: PER_SINGLE_MATCH + srcTransferPeers: null + amountScope: SINGLE_TX checkResult: results: - - index: 6.027456183070403 + - index: 2.3021358869347655 errors: - errorCodeName: errorCodeName errorField: operator errorMessage: errorMessage - errorCode: 1.4658129805029452 + errorCode: 7.061401241503109 - errorCodeName: errorCodeName errorField: operator errorMessage: errorMessage - errorCode: 1.4658129805029452 + errorCode: 7.061401241503109 status: ok - - index: 6.027456183070403 + - index: 2.3021358869347655 errors: - errorCodeName: errorCodeName errorField: operator errorMessage: errorMessage - errorCode: 1.4658129805029452 + errorCode: 7.061401241503109 - errorCodeName: errorCodeName errorField: operator errorMessage: errorMessage - errorCode: 1.4658129805029452 + errorCode: 7.061401241503109 status: ok - errors: 0.8008281904610115 + errors: 5.637376656633329 status: SUCCESS properties: status: @@ -55833,7 +24544,6 @@ components: toNetworkId: 5d009697-c29b-48e0-aff8-1f4305d19dc2 txStatus: COMPLETED createdAt: 2023-03-01T11:23:00Z - dvpSrcDstVaultId: "1" id: 84601ee2-b10f-4aa8-be9c-dba259a3533a fromNetworkId: 947c6115-1f5f-4fb4-9fd6-a1f9dee14670 toNetworkIdName: Destination network profile name @@ -55861,10 +24571,6 @@ components: description: Amount example: "133.789161216184" type: string - dvpSrcDstVaultId: - description: Identifier of the source and destination vault for DVP execution - example: "1" - type: string amountUsd: description: Amount USD example: "1333.789161216184" @@ -55960,7 +24666,6 @@ components: example: note: Random note externalRefId: 2631ffb9d8fe47c6b0825b5be28297da - orderCreatedByNetworkId: 3eaa94c5-128b-4835-bb08-3111bb6564c7 type: ASYNC createdByNetworkId: 3eaa94c5-128b-4835-bb08-3111bb6564c7 expiresAt: 2023-03-01T11:23:00Z @@ -55969,7 +24674,6 @@ components: createdAt: 2023-03-01T11:23:00Z fulfilledAt: 2023-03-01T11:23:00Z createdByMe: true - dvpExecutionStatus: STARTED terms: - id: 84601ee2-b10f-4aa8-be9c-dba259a3533a ticketId: 118320d2-761f-46c7-96cf-65e71a370b36 @@ -56021,10 +24725,9 @@ components: example: 118320d2-761f-46c7-96cf-65e71a370b36 type: string type: - description: Kind of Smart Transfer. Can be either `ASYNC` or `DVP` + description: Kind of Smart Transfer. Can be either `ASYNC` or `ATOMIC` enum: - ASYNC - - DVP example: ASYNC type: string direction: @@ -56048,22 +24751,6 @@ components: - CANCELED example: DRAFT type: string - dvpExecutionStatus: - description: Current status of DVP execution - enum: - - STARTED - - CREATING_ORDER - - ORDER_CREATED - - FULFILLING - - FULFILLING_ORDER_FAILED - - CREATING_ORDER_FAILED - - FULFILLED - example: STARTED - type: string - orderCreatedByNetworkId: - description: ID of network profile that created order - example: 3eaa94c5-128b-4835-bb08-3111bb6564c7 - type: string terms: description: Ticket terms (legs) example: @@ -56183,7 +24870,6 @@ components: data: - note: Random note externalRefId: 2631ffb9d8fe47c6b0825b5be28297da - orderCreatedByNetworkId: 3eaa94c5-128b-4835-bb08-3111bb6564c7 type: ASYNC createdByNetworkId: 3eaa94c5-128b-4835-bb08-3111bb6564c7 expiresAt: 2023-03-01T11:23:00Z @@ -56192,7 +24878,6 @@ components: createdAt: 2023-03-01T11:23:00Z fulfilledAt: 2023-03-01T11:23:00Z createdByMe: true - dvpExecutionStatus: STARTED terms: - id: 84601ee2-b10f-4aa8-be9c-dba259a3533a ticketId: 118320d2-761f-46c7-96cf-65e71a370b36 @@ -56239,7 +24924,6 @@ components: updatedAt: 2023-03-01T11:23:00Z - note: Random note externalRefId: 2631ffb9d8fe47c6b0825b5be28297da - orderCreatedByNetworkId: 3eaa94c5-128b-4835-bb08-3111bb6564c7 type: ASYNC createdByNetworkId: 3eaa94c5-128b-4835-bb08-3111bb6564c7 expiresAt: 2023-03-01T11:23:00Z @@ -56248,7 +24932,6 @@ components: createdAt: 2023-03-01T11:23:00Z fulfilledAt: 2023-03-01T11:23:00Z createdByMe: true - dvpExecutionStatus: STARTED terms: - id: 84601ee2-b10f-4aa8-be9c-dba259a3533a ticketId: 118320d2-761f-46c7-96cf-65e71a370b36 @@ -56385,7 +25068,6 @@ components: type: enum: - ASYNC - - DVP type: string expiresIn: description: Number of hours after which an OPEN ticket will expire if no @@ -56414,7 +25096,6 @@ components: data: note: Random note externalRefId: 2631ffb9d8fe47c6b0825b5be28297da - orderCreatedByNetworkId: 3eaa94c5-128b-4835-bb08-3111bb6564c7 type: ASYNC createdByNetworkId: 3eaa94c5-128b-4835-bb08-3111bb6564c7 expiresAt: 2023-03-01T11:23:00Z @@ -56423,7 +25104,6 @@ components: createdAt: 2023-03-01T11:23:00Z fulfilledAt: 2023-03-01T11:23:00Z createdByMe: true - dvpExecutionStatus: STARTED terms: - id: 84601ee2-b10f-4aa8-be9c-dba259a3533a ticketId: 118320d2-761f-46c7-96cf-65e71a370b36 @@ -56554,29 +25234,6 @@ components: minimum: 1 type: number type: object - SmartTransferFundDvpTicket: - example: - note: Transaction note - fee: "0.001" - feeLevel: MEDIUM - properties: - fee: - description: Transaction fee - example: "0.001" - type: string - feeLevel: - description: Transaction fee level. - enum: - - LOW - - MEDIUM - - HIGH - example: MEDIUM - type: string - note: - description: Transaction note - example: Transaction note - type: string - type: object SmartTransferTicketTermResponse: example: data: @@ -56587,7 +25244,6 @@ components: toNetworkId: 5d009697-c29b-48e0-aff8-1f4305d19dc2 txStatus: COMPLETED createdAt: 2023-03-01T11:23:00Z - dvpSrcDstVaultId: "1" id: 84601ee2-b10f-4aa8-be9c-dba259a3533a fromNetworkId: 947c6115-1f5f-4fb4-9fd6-a1f9dee14670 toNetworkIdName: Destination network profile name @@ -56689,49 +25345,6 @@ components: - srcId - srcType type: object - SmartTransferApproveTerm: - example: - note: Transaction note - amount: "133.789161216184" - srcId: "2" - fee: "0.001" - feeLevel: MEDIUM - asset: USDC - properties: - asset: - description: Asset name - example: USDC - type: string - x-fb-entity: asset - amount: - description: Amount - example: "133.789161216184" - type: string - srcId: - description: Id of the vault that is used as the source of the asset. - example: "2" - type: string - fee: - description: Transaction fee - example: "0.001" - type: string - feeLevel: - description: Transaction fee level. - enum: - - LOW - - MEDIUM - - HIGH - example: MEDIUM - type: string - note: - description: Transaction note - example: Transaction note - type: string - required: - - amount - - asset - - srcId - type: object SmartTransferManuallyFundTerm: example: txHash: txHash @@ -56790,57 +25403,6 @@ components: required: - userGroupIds type: object - SmartTransferCoinStatistic: - description: Smart transfer coin statistic - example: - amount: "15" - asset: BTC - properties: - asset: - example: BTC - type: string - amount: - example: "15" - type: string - type: object - SmartTransferStatistic: - description: Smart transfers statistic - example: - outflow: - ticketCount: 4 - coins: - - amount: "15" - asset: BTC - - amount: "15" - asset: BTC - totalInactiveTickets: 5 - inflow: - ticketCount: 4 - coins: - - amount: "15" - asset: BTC - - amount: "15" - asset: BTC - totalActiveTickets: 5 - properties: - inflow: - $ref: "#/components/schemas/SmartTransferStatistic_inflow" - outflow: - $ref: "#/components/schemas/SmartTransferStatistic_outflow" - totalActiveTickets: - description: Number of total active tickets - example: 5 - type: integer - totalInactiveTickets: - description: "Number of total inactive tickets (expired, canceled, completed)" - example: 5 - type: integer - required: - - inflow - - outflow - - totalActiveTickets - - totalInactiveTickets - type: object Task: example: jobId: jobId @@ -56918,79 +25480,11 @@ components: items: $ref: "#/components/schemas/Task" type: array - TagsPagedResponse: - example: - next: MjAyNS0wNy0wOSAxMDo1MzoxMy40NTI=:NA== - data: - - description: Tag for VIP customers - id: df4c0987-30da-4976-8dcf-bc2dd41ae331 - label: VIP - - description: Tag for VIP customers - id: df4c0987-30da-4976-8dcf-bc2dd41ae331 - label: VIP - properties: - data: - items: - $ref: "#/components/schemas/Tag" - type: array - next: - description: Cursor to the next page - example: MjAyNS0wNy0wOSAxMDo1MzoxMy40NTI=:NA== - nullable: true - type: string - required: - - data - - next - type: object - CreateTagRequest: - example: - description: Tag for VIP customers - label: VIP - properties: - label: - description: The tag label - example: VIP - type: string - description: - description: Description for the tag - example: Tag for VIP customers - type: string - required: - - label - type: object - UpdateTagRequest: - example: - description: Tag for VIP customers - label: VIP - properties: - label: - description: The tag label - example: VIP - type: string - description: - description: Description for the tag - example: Tag for VIP customers - type: string - type: object - Version: - example: - hash: a1b2c3d4 - properties: - hash: - description: The version hash of the cosigner - example: a1b2c3d4 - type: string - required: - - hash - type: object Cosigner: example: archived: false name: My Cosigner 1 id: 44fcead0-7053-4831-a53a-df7fb90d440f - type: SGX - version: - hash: a1b2c3d4 properties: archived: description: Whether the cosigner is archived @@ -57004,19 +25498,8 @@ components: name: description: The name of the cosigner example: My Cosigner 1 + nullable: true type: string - type: - description: The type of the cosigner - enum: - - SANDBOX - - SGX - - GCP-CONFSPACE - - AWS-NITRO - - PLAIN - example: SGX - type: string - version: - $ref: "#/components/schemas/Version" required: - archived - id @@ -57028,15 +25511,9 @@ components: - archived: false name: My Cosigner 1 id: 44fcead0-7053-4831-a53a-df7fb90d440f - type: SGX - version: - hash: a1b2c3d4 - archived: false name: My Cosigner 1 id: 44fcead0-7053-4831-a53a-df7fb90d440f - type: SGX - version: - hash: a1b2c3d4 properties: data: description: The data of the current page @@ -57051,63 +25528,6 @@ components: required: - data type: object - AddCosignerRequest: - example: - existingCosigner: false - name: My Cosigner 1 - apiKeyId: 123e4567-e89b-12d3-a456-426614174000 - properties: - apiKeyId: - description: The id of the API key to be paired with the cosigner - example: 123e4567-e89b-12d3-a456-426614174000 - format: uuid - type: string - name: - description: The name of the cosigner - example: My Cosigner 1 - minLength: 1 - type: string - existingCosigner: - default: false - description: Whether the cosigner already exists in another workspace - example: false - type: boolean - required: - - apiKeyId - - name - type: object - AddCosignerResponse: - example: - pendingCosignerId: 44fcead0-7053-4831-a53a-df7fb90d440f - existingCosigner: false - name: My Cosigner 1 - apiKeyId: 123e4567-e89b-12d3-a456-426614174000 - properties: - apiKeyId: - description: The id of the API key to be paired with the cosigner - example: 123e4567-e89b-12d3-a456-426614174000 - format: uuid - type: string - name: - description: The name of the cosigner - example: My Cosigner 1 - minLength: 1 - type: string - existingCosigner: - default: false - description: Whether the cosigner already exists in another workspace - example: false - type: boolean - pendingCosignerId: - description: The unique identifier of a pending cosigner - example: 44fcead0-7053-4831-a53a-df7fb90d440f - format: uuid - type: string - required: - - apiKeyId - - name - - pendingCosignerId - type: object RenameCosigner: example: name: My Cosigner 1 @@ -57115,44 +25535,11 @@ components: name: description: The new name of the cosigner example: My Cosigner 1 + nullable: true type: string type: object - CallbackHandler: - example: - certPublicKeyHash: certPublicKeyHash - publicKey: |- - -----BEGIN PUBLIC KEY----- - ... truncated ... - -----END PUBLIC KEY----- - url: https://example.com/callback-handler - properties: - url: - description: The callback handler's URL - example: https://example.com/callback-handler - type: string - publicKey: - description: The callback handler's public key - example: |- - -----BEGIN PUBLIC KEY----- - ... truncated ... - -----END PUBLIC KEY----- - type: string - certPublicKeyHash: - description: A hashed representation of the public key of the callback handler's - certificate - type: string - required: - - url - type: object ApiKey: example: - callbackHandler: - certPublicKeyHash: certPublicKeyHash - publicKey: |- - -----BEGIN PUBLIC KEY----- - ... truncated ... - -----END PUBLIC KEY----- - url: https://example.com/callback-handler lastSeen: 2021-07-01T00:00:00Z id: 44fcead0-7053-4831-a53a-df7fb90d440f properties: @@ -57166,180 +25553,31 @@ components: example: 2021-07-01T00:00:00Z format: date-time type: string - callbackHandler: - $ref: "#/components/schemas/CallbackHandler" required: - id + - lastSeen type: object ApiKeysPaginatedResponse: example: next: eJ0eXAiOiJKV1QiLCJhbGcOiJIUzI1NiJ9 data: - - callbackHandler: - certPublicKeyHash: certPublicKeyHash - publicKey: |- - -----BEGIN PUBLIC KEY----- - ... truncated ... - -----END PUBLIC KEY----- - url: https://example.com/callback-handler - lastSeen: 2021-07-01T00:00:00Z + - lastSeen: 2021-07-01T00:00:00Z id: 44fcead0-7053-4831-a53a-df7fb90d440f - - callbackHandler: - certPublicKeyHash: certPublicKeyHash - publicKey: |- - -----BEGIN PUBLIC KEY----- - ... truncated ... - -----END PUBLIC KEY----- - url: https://example.com/callback-handler - lastSeen: 2021-07-01T00:00:00Z + - lastSeen: 2021-07-01T00:00:00Z id: 44fcead0-7053-4831-a53a-df7fb90d440f properties: data: description: The data of the current page items: $ref: "#/components/schemas/ApiKey" - type: array - next: - description: The ID of the next page - example: eJ0eXAiOiJKV1QiLCJhbGcOiJIUzI1NiJ9 - nullable: true - type: string - required: - - data - type: object - CallbackHandlerRequest: - example: - cert: |- - -----BEGIN CERTIFICATE----- - ... truncated ... - -----END CERTIFICATE----- - publicKey: |- - -----BEGIN PUBLIC KEY----- - ... truncated ...-----END PUBLIC KEY----- - url: https://example.com/callback-handler - properties: - url: - description: The callback handler's URL - example: https://example.com/callback-handler - type: string - publicKey: - description: The callback handler's public key - example: |- - -----BEGIN PUBLIC KEY----- - ... truncated ...-----END PUBLIC KEY----- - type: string - cert: - description: The callback handler's certificate - example: |- - -----BEGIN CERTIFICATE----- - ... truncated ... - -----END CERTIFICATE----- - type: string - required: - - url - type: object - PairApiKeyRequest: - example: - callbackHandler: - cert: |- - -----BEGIN CERTIFICATE----- - ... truncated ... - -----END CERTIFICATE----- - publicKey: |- - -----BEGIN PUBLIC KEY----- - ... truncated ...-----END PUBLIC KEY----- - url: https://example.com/callback-handler - properties: - callbackHandler: - $ref: "#/components/schemas/CallbackHandlerRequest" - type: object - PairApiKeyResponse: - example: - callbackHandler: - cert: |- - -----BEGIN CERTIFICATE----- - ... truncated ... - -----END CERTIFICATE----- - publicKey: |- - -----BEGIN PUBLIC KEY----- - ... truncated ...-----END PUBLIC KEY----- - url: https://example.com/callback-handler - id: 44fcead0-7053-4831-a53a-df7fb90d440f - properties: - id: - description: The unique identifier of the API key - example: 44fcead0-7053-4831-a53a-df7fb90d440f - format: uuid - type: string - callbackHandler: - $ref: "#/components/schemas/CallbackHandlerRequest" - required: - - id - type: object - UpdateCallbackHandlerRequest: - example: - callbackHandler: - cert: |- - -----BEGIN CERTIFICATE----- - ... truncated ... - -----END CERTIFICATE----- - publicKey: |- - -----BEGIN PUBLIC KEY----- - ... truncated ...-----END PUBLIC KEY----- - url: https://example.com/callback-handler - properties: - callbackHandler: - $ref: "#/components/schemas/CallbackHandlerRequest" - type: object - UpdateCallbackHandlerResponse: - example: - callbackHandler: - cert: |- - -----BEGIN CERTIFICATE----- - ... truncated ... - -----END CERTIFICATE----- - publicKey: |- - -----BEGIN PUBLIC KEY----- - ... truncated ...-----END PUBLIC KEY----- - url: https://example.com/callback-handler - id: 44fcead0-7053-4831-a53a-df7fb90d440f - properties: - id: - description: The unique identifier of the API key - example: 44fcead0-7053-4831-a53a-df7fb90d440f - format: uuid - type: string - callbackHandler: - $ref: "#/components/schemas/CallbackHandlerRequest" - required: - - id - type: object - Status: - example: - type: PAIR_API_KEY - status: COMPLETED - properties: - status: - description: The status of the command - enum: - - WAITING_FOR_APPROVAL - - APPROVED - - CANCELLED - - REJECTED - - COMPLETED - example: COMPLETED - type: string - type: - description: The type of the command - enum: - - PAIR_API_KEY - - UPDATE_CALLBACK_HANDLER - - UNPAIR_API_KEY - example: PAIR_API_KEY + type: array + next: + description: The ID of the next page + example: eJ0eXAiOiJKV1QiLCJhbGcOiJIUzI1NiJ9 + nullable: true type: string required: - - status - - type + - data type: object get_filter_parameter: properties: @@ -57400,23 +25638,6 @@ components: the next page of results. type: string type: object - EmbeddedWalletDeviceKeySetupResponse_setupStatus_inner: - properties: - algorithmName: - $ref: "#/components/schemas/EmbeddedWalletAlgoritm" - confirmed: - description: confirmed - example: true - type: boolean - backedUp: - description: backedUp - example: true - type: boolean - required: - - algorithmName - - backedUp - - confirmed - type: object ExchangeAccountsPaged_paging: example: before: before @@ -57438,50 +25659,164 @@ components: oneOf: - $ref: "#/components/schemas/CustomRoutingDest" - $ref: "#/components/schemas/NoneNetworkRoutingDest" - CreateSigningKeyDto_proofOfOwnership: - description: An object containing proof of ownership for the signing key. + AddAssetToExternalWalletRequest_oneOf: example: - signature: signature - message: message + address: address + tag: tag properties: - message: - description: The message to be signed by the key as proof of ownership. - 64 to 1024 bytes in hexadecimal format. - maxLength: 2048 - minLength: 64 + address: + description: The wallet's address (or xpub) of the wallet type: string - signature: - description: The signature of the message. 64 bytes in hexadecimal format. - maxLength: 128 - minLength: 64 + tag: + description: "For XRP wallets, the destination tag; for EOS/XLM, the memo;\ + \ for the fiat providers (BLINC by BCB Group), the Bank Transfer Description" type: string required: - - message - - signature + - address + type: object + AddAssetToExternalWalletRequest_oneOf_1_additionalInfo_oneOf: + properties: + accountHolderGivenName: + type: string + accountHolderSurname: + type: string + accountHolderCity: + type: string + accountHolderCountry: + type: string + accountHolderAddress1: + type: string + accountHolderAddress2: + type: string + accountHolderDistrict: + type: string + accountHolderPostalCode: + type: string + iban: + type: string + ibanCity: + type: string + ibanCountry: + type: string + required: + - accountHolderAddress1 + - accountHolderCity + - accountHolderCountry + - accountHolderGivenName + - accountHolderPostalCode + - iban + - ibanCity + - ibanCountry + type: object + AddAssetToExternalWalletRequest_oneOf_1_additionalInfo_oneOf_1: + properties: + accountHolderGivenName: + type: string + accountHolderSurname: + type: string + accountHolderCity: + type: string + accountHolderCountry: + type: string + accountHolderAddress1: + type: string + accountHolderAddress2: + type: string + accountHolderDistrict: + type: string + accountHolderPostalCode: + type: string + abaRoutingNumber: + type: string + abaAccountNumber: + type: string + abaCountry: + type: string + required: + - abaAccountNumber + - abaCountry + - abaRoutingNumber + - accountHolderAddress1 + - accountHolderCity + - accountHolderCountry + - accountHolderGivenName + - accountHolderPostalCode + type: object + AddAssetToExternalWalletRequest_oneOf_1_additionalInfo_oneOf_2: + properties: + speiClabe: + type: string + speiName: + type: string + required: + - speiClabe type: object - AdditionalInfoRequest_additionalInfo: - description: Additional payment information based on the payment rail type + AddAssetToExternalWalletRequest_oneOf_1_additionalInfo: oneOf: - - $ref: "#/components/schemas/IbanPaymentInfo" - - $ref: "#/components/schemas/AbaPaymentInfo" - - $ref: "#/components/schemas/SpeiBasicPaymentInfo" - - $ref: "#/components/schemas/SpeiAdvancedPaymentInfo" - - $ref: "#/components/schemas/PixPaymentInfo" - - $ref: "#/components/schemas/SepaPaymentInfo" - - $ref: "#/components/schemas/AchPaymentInfo" - - $ref: "#/components/schemas/UsWirePaymentInfo" - - $ref: "#/components/schemas/MomoPaymentInfo" - - $ref: "#/components/schemas/LbtPaymentInfo" - type: object - AssetMedia_attributes: - description: Media attributes - example: - monochrome: true - properties: - monochrome: - description: Monochrome flag - example: true + - $ref: "#/components/schemas/AddAssetToExternalWalletRequest_oneOf_1_additionalInfo_oneOf" + - $ref: "#/components/schemas/AddAssetToExternalWalletRequest_oneOf_1_additionalInfo_oneOf_1" + - $ref: "#/components/schemas/AddAssetToExternalWalletRequest_oneOf_1_additionalInfo_oneOf_2" + type: object + AddAssetToExternalWalletRequest_oneOf_1: + properties: + additionalInfo: + $ref: "#/components/schemas/AddAssetToExternalWalletRequest_oneOf_1_additionalInfo" + required: + - additionalInfo + type: object + AssetResponse_onchain: + example: + standard: ERC20 + symbol: TST3 + address: 0xe7A9as1oa38bc4da0248s179E30aa94CcF453991 + decimals: 18 + name: Test 3 + properties: + symbol: + description: The asset symbol + example: TST3 + type: string + name: + description: The asset name + example: Test 3 + type: string + address: + description: The asset address + example: 0xe7A9as1oa38bc4da0248s179E30aa94CcF453991 + type: string + decimals: + description: Number of decimals + example: 18 + type: number + standard: + description: The asset standard + example: ERC20 + type: string + required: + - decimals + - name + - standard + - symbol + type: object + AssetResponse_metadata: + example: + scope: Global + deprecated: false + properties: + scope: + description: The scope of the asset + enum: + - Global + - Local + example: Global + type: string + deprecated: + description: Is asset deprecated + example: false type: boolean + required: + - deprecated + - scope type: object SignedMessage_signature: example: @@ -57590,40 +25925,6 @@ components: type: string - description: Number (deprecated) type: number - FeeBreakdown_oneOf: - description: Solana-specific fee breakdown - example: - totalFee: totalFee - priorityFee: priorityFee - baseFee: baseFee - rent: rent - properties: - baseFee: - description: Base fee for Solana transaction - type: string - priorityFee: - description: Priority fee for Solana transaction - type: string - rent: - description: Rent fee for Solana account creation/storage - type: string - totalFee: - description: Total fee amount - type: string - type: object - FeeBreakdown_oneOf_1: - description: Generic fee breakdown for other blockchains - properties: - baseFee: - description: Base fee component - type: string - priorityFee: - description: Priority fee component - type: string - totalFee: - description: Total fee amount - type: string - type: object ErrorResponse_error: example: type: INTERNAL @@ -57717,23 +26018,6 @@ components: required: - timeSeconds type: object - GasslessStandardConfigurations_gaslessStandardConfigurations_value: - example: - forwarderAddresses: - - 0x2E7B54631e18E9eEcc2eb5219249cc8388586f66 - - 0x2E7B54631e18E9eEcc2eb5219249cc8388586f66 - lastOnChainCheck: 2024-09-09T04:17:46.918Z - properties: - lastOnChainCheck: - example: 2024-09-09T04:17:46.918Z - format: date-time - type: string - forwarderAddresses: - items: - example: 0x2E7B54631e18E9eEcc2eb5219249cc8388586f66 - type: string - type: array - type: object TokenLinkDto_tokenMetadata: description: The token's metadata oneOf: @@ -57744,78 +26028,6 @@ components: oneOf: - $ref: "#/components/schemas/EVMTokenCreateParamsDto" - $ref: "#/components/schemas/StellarRippleCreateParamsDto" - - $ref: "#/components/schemas/SolanaSimpleCreateParams" - ContractAbiResponseDto_abi_inner: - oneOf: - - $ref: "#/components/schemas/AbiFunction" - - $ref: "#/components/schemas/SolanaInstruction" - ReadCallFunctionDto_abiFunction: - oneOf: - - $ref: "#/components/schemas/ReadAbiFunction" - - $ref: "#/components/schemas/SolanaInstructionWithValue" - WriteCallFunctionDto_abiFunction: - oneOf: - - $ref: "#/components/schemas/WriteAbiFunction" - - $ref: "#/components/schemas/SolanaInstructionWithValue" - ContractDataDecodeRequest_data: - description: "The data to decode, which can be a string or an object containing\ - \ the data and its type." - example: 0x1234567890abcdef - oneOf: - - $ref: "#/components/schemas/ContractDataEncodedDataString" - - $ref: "#/components/schemas/ContractDataLogDataParam" - TradingErrorResponse_error: - properties: - type: - enum: - - INTERNAL - - AUTHENTICATION - - AUTHORIZATION - - VALIDATION - - NOT_FOUND - - UNPROCESSABLE_ENTITY - - FORBIDDEN - type: string - message: - type: string - errorCode: - $ref: "#/components/schemas/ErrorCodes" - required: - - message - - type - type: object - CreateQuote_scope_inner: - oneOf: - - $ref: "#/components/schemas/AccountProviderID" - - $ref: "#/components/schemas/ProviderID" - QuoteExecutionWithRequoteRequestDetails_allOf_reQuote: - discriminator: - mapping: - MARKET: "#/components/schemas/MarketRequoteRequestDetails" - RETRY: "#/components/schemas/RetryRequoteRequestDetails" - propertyName: type - oneOf: - - $ref: "#/components/schemas/MarketRequoteRequestDetails" - - $ref: "#/components/schemas/RetryRequoteRequestDetails" - PersonalIdentification_fullName: - properties: - firstName: - type: string - lastName: - type: string - required: - - firstName - - lastName - type: object - QuoteExecutionWithRequoteResponseDetails_allOf_reQuote: - discriminator: - mapping: - MARKET: "#/components/schemas/MarketRequoteRequestDetails" - RETRY: "#/components/schemas/RetryRequoteRequestDetails" - propertyName: type - oneOf: - - $ref: "#/components/schemas/MarketRequoteRequestDetails" - - $ref: "#/components/schemas/RetryRequoteRequestDetails" SetOtaStatusResponse_oneOf: example: message: No change needed. The current status is false @@ -57826,12 +26038,12 @@ components: example: No change needed. The current status is false type: string type: object - LegacySrcOrDestAttributes_inner: + SrcOrDestAttributes_inner: anyOf: - - $ref: "#/components/schemas/LegacyPolicySrcOrDestId" - - $ref: "#/components/schemas/LegacyPolicySrcOrDestType" - - $ref: "#/components/schemas/LegacyPolicySrcOrDestSubType" - LegacyPolicyRule_operators: + - $ref: "#/components/schemas/PolicySrcOrDestId" + - $ref: "#/components/schemas/PolicySrcOrDestType" + - $ref: "#/components/schemas/PolicySrcOrDestSubType" + PolicyRule_operators: description: Defines users/groups who can initiate the type of transaction to which the rule applies. example: @@ -57869,7 +26081,7 @@ components: type: string type: array type: object - LegacyPolicyRule_designatedSigners: + PolicyRule_designatedSigners: description: Set of ids representing the users who signs transactions that match a specific rule example: @@ -57891,7 +26103,7 @@ components: type: string type: array type: object - LegacyPolicyRule_src: + PolicyRule_src: description: Defines source accounts the rule allows transfers to originate from example: @@ -57906,10 +26118,10 @@ components: ids: description: A set of ids in a tuple format items: - $ref: "#/components/schemas/LegacySrcOrDestAttributes" + $ref: "#/components/schemas/SrcOrDestAttributes" type: array type: object - LegacyPolicyRule_dst: + PolicyRule_dst: description: Defines the destination accounts the rule allows transfers to example: ids: @@ -57919,10 +26131,10 @@ components: ids: description: A set of ids in a tuple format items: - $ref: "#/components/schemas/LegacySrcOrDestAttributes" + $ref: "#/components/schemas/SrcOrDestAttributes" type: array type: object - LegacyPolicyRule_amount: + PolicyRule_amount: anyOf: - description: Numeric string (recommended) type: string @@ -57930,7 +26142,7 @@ components: type: number description: Defines the value a transaction must exceed for the rule to apply to it (according to the amountCurrency field) - LegacyPolicyRule_authorizationGroups_groups_inner: + PolicyRule_authorizationGroups_groups_inner: example: usersGroups: - usersGroups @@ -57955,7 +26167,7 @@ components: \ approve the transaction, default is 1." type: number type: object - LegacyPolicyRule_authorizationGroups: + PolicyRule_authorizationGroups: description: Defines the transaction approval terms example: allowOperatorAsAuthorizer: true @@ -57992,10 +26204,10 @@ components: groups: description: Groups of entities which can approve the transaction items: - $ref: "#/components/schemas/LegacyPolicyRule_authorizationGroups_groups_inner" + $ref: "#/components/schemas/PolicyRule_authorizationGroups_groups_inner" type: array type: object - LegacyPolicyRule_amountAggregation: + PolicyRule_amountAggregation: description: | Defines the method by which the Policy Engine calculates accumulation. It uses the Initiator, Source, and Destination to calculate accumulation toward the value under Minimum, for the time under Time Period. @@ -58005,13 +26217,13 @@ components: srcTransferPeers: null properties: operators: - $ref: "#/components/schemas/LegacyAmountAggregationTimePeriodMethod" + $ref: "#/components/schemas/AmountAggregationTimePeriodMethod" srcTransferPeers: - $ref: "#/components/schemas/LegacyAmountAggregationTimePeriodMethod" + $ref: "#/components/schemas/AmountAggregationTimePeriodMethod" dstTransferPeers: - $ref: "#/components/schemas/LegacyAmountAggregationTimePeriodMethod" + $ref: "#/components/schemas/AmountAggregationTimePeriodMethod" type: object - LegacyPolicyRule_rawMessageSigning_derivationPath: + PolicyRule_rawMessageSigning_derivationPath: example: path: - 5.962133916683182 @@ -58022,7 +26234,7 @@ components: type: number type: array type: object - LegacyPolicyRule_rawMessageSigning: + PolicyRule_rawMessageSigning: description: Raw message signing configuration example: derivationPath: @@ -58034,91 +26246,7 @@ components: algorithm: type: string derivationPath: - $ref: "#/components/schemas/LegacyPolicyRule_rawMessageSigning_derivationPath" - type: object - AssetTypesConfig_inner: - oneOf: - - type: string - - enum: - - '*' - type: string - ApproversConfig_approvalGroups_inner: - properties: - threshold: - description: Approval threshold - example: 2 - type: number - users: - description: List of user IDs - example: - - user1 - - user2 - items: - type: string - type: array - groups: - description: List of policy group IDs - example: - - group1 - - group2 - items: - type: string - type: array - required: - - threshold - type: object - AmountOverTimeConfig_range: - description: Amount range configuration - example: - min: "100" - max: "10000" - properties: - min: - description: Minimum amount - example: "100" - type: string - max: - description: Maximum amount (optional) - example: "10000" - type: string - required: - - min - type: object - SmartTransferStatistic_inflow: - description: Inflow tickets data - example: - ticketCount: 4 - coins: - - amount: "15" - asset: BTC - - amount: "15" - asset: BTC - properties: - coins: - items: - $ref: "#/components/schemas/SmartTransferCoinStatistic" - type: array - ticketCount: - example: 4 - type: integer - type: object - SmartTransferStatistic_outflow: - description: Outflow tickets data - example: - ticketCount: 4 - coins: - - amount: "15" - asset: BTC - - amount: "15" - asset: BTC - properties: - coins: - items: - $ref: "#/components/schemas/SmartTransferCoinStatistic" - type: array - ticketCount: - example: 4 - type: integer + $ref: "#/components/schemas/PolicyRule_rawMessageSigning_derivationPath" type: object securitySchemes: bearerTokenAuth: diff --git a/build.gradle b/build.gradle index 72baeb97..62baedca 100644 --- a/build.gradle +++ b/build.gradle @@ -3,7 +3,7 @@ apply plugin: 'eclipse' apply plugin: 'com.diffplug.spotless' group = 'com.fireblocks.sdk' -version = '12.1.0' +version = '0.0.0' buildscript { repositories { diff --git a/docs/AbaPaymentInfo.md b/docs/AbaPaymentInfo.md deleted file mode 100644 index 0454544e..00000000 --- a/docs/AbaPaymentInfo.md +++ /dev/null @@ -1,24 +0,0 @@ - - -# AbaPaymentInfo - -ABA payment information for US bank transfers - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**accountHolderGivenName** | **String** | The given name (first name) of the account holder | | -|**accountHolderSurname** | **String** | The surname (last name) of the account holder | [optional] | -|**accountHolderCity** | **String** | The city where the account holder resides | | -|**accountHolderCountry** | **String** | The country where the account holder resides (ISO 3166-1 alpha-2 code) | | -|**accountHolderAddress1** | **String** | The primary address line of the account holder | | -|**accountHolderAddress2** | **String** | The secondary address line of the account holder (optional) | [optional] | -|**accountHolderDistrict** | **String** | The district or region where the account holder resides | [optional] | -|**accountHolderPostalCode** | **String** | The postal code of the account holder's address | | -|**abaRoutingNumber** | **String** | The ABA routing number for the bank | | -|**abaAccountNumber** | **String** | The account number at the bank | | -|**abaCountry** | **String** | The country for the ABA transfer (ISO 3166-1 alpha-2 code) | | - - - diff --git a/docs/AbiFunction.md b/docs/AbiFunction.md index fde3624a..cbbd131a 100644 --- a/docs/AbiFunction.md +++ b/docs/AbiFunction.md @@ -9,8 +9,8 @@ |------------ | ------------- | ------------- | -------------| |**name** | **String** | The name of the contract function as it appears in the ABI | [optional] | |**stateMutability** | [**StateMutabilityEnum**](#StateMutabilityEnum) | The state mutability of the contract function as it appears in the ABI | [optional] | -|**type** | [**TypeEnum**](#TypeEnum) | The type of the function | | -|**inputs** | [**List<Parameter>**](Parameter.md) | The parameters that this function/constructor posses | [optional] | +|**type** | [**TypeEnum**](#TypeEnum) | The type if the function | | +|**inputs** | [**List<Parameter>**](Parameter.md) | The parameters that this function/constructor posses | | |**outputs** | [**List<Parameter>**](Parameter.md) | The parameters that this 'read' function returns | [optional] | |**description** | **String** | The documentation of this function (if has any) | [optional] | @@ -31,12 +31,8 @@ | Name | Value | |---- | -----| -| CONSTRUCTOR | "constructor" | | FUNCTION | "function" | -| ERROR | "error" | -| EVENT | "event" | -| RECEIVE | "receive" | -| FALLBACK | "fallback" | +| CONSTRUCTOR | "constructor" | diff --git a/docs/AccessType.md b/docs/AccessType.md deleted file mode 100644 index cbef0d85..00000000 --- a/docs/AccessType.md +++ /dev/null @@ -1,37 +0,0 @@ - - -# AccessType - -## oneOf schemas -* [AccountAccess](AccountAccess.md) -* [DirectAccess](DirectAccess.md) - -## Example -```java -// Import classes: -import com.fireblocks.sdk.model.AccessType; -import com.fireblocks.sdk.model.AccountAccess; -import com.fireblocks.sdk.model.DirectAccess; - -public class Example { - public static void main(String[] args) { - AccessType exampleAccessType = new AccessType(); - - // create a new AccountAccess - AccountAccess exampleAccountAccess = new AccountAccess(); - // set AccessType to AccountAccess - exampleAccessType.setActualInstance(exampleAccountAccess); - // to get back the AccountAccess set earlier - AccountAccess testAccountAccess = (AccountAccess) exampleAccessType.getActualInstance(); - - // create a new DirectAccess - DirectAccess exampleDirectAccess = new DirectAccess(); - // set AccessType to DirectAccess - exampleAccessType.setActualInstance(exampleDirectAccess); - // to get back the DirectAccess set earlier - DirectAccess testDirectAccess = (DirectAccess) exampleAccessType.getActualInstance(); - } -} -``` - - diff --git a/docs/AccountAccess.md b/docs/AccountAccess.md deleted file mode 100644 index 6b1d2797..00000000 --- a/docs/AccountAccess.md +++ /dev/null @@ -1,23 +0,0 @@ - - -# AccountAccess - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**type** | [**TypeEnum**](#TypeEnum) | Indicates this uses account-based access | | -|**providerId** | **String** | The ID of the provider | [optional] | -|**accountId** | **String** | The ID of the account | | - - - -## Enum: TypeEnum - -| Name | Value | -|---- | -----| -| PROVIDER_ACCOUNT | "PROVIDER_ACCOUNT" | - - - diff --git a/docs/AccountBase.md b/docs/AccountBase.md deleted file mode 100644 index f09957fb..00000000 --- a/docs/AccountBase.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# AccountBase - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**id** | **String** | The ID of the account | | -|**name** | **String** | The name of the account | | - - - diff --git a/docs/AccountBasedAccessProvider.md b/docs/AccountBasedAccessProvider.md deleted file mode 100644 index 4273f56f..00000000 --- a/docs/AccountBasedAccessProvider.md +++ /dev/null @@ -1,19 +0,0 @@ - - -# AccountBasedAccessProvider - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**id** | **String** | Unique identifier for the provider | | -|**name** | **String** | Display name of the provider | | -|**logo** | **String** | URL to the logo image of the provider | [optional] | -|**accountBased** | **Boolean** | Indicates whether the provider access model is through accounts or directly | | -|**manifest** | [**Manifest**](Manifest.md) | | | -|**connected** | **Boolean** | Whether the provider is currently connected | | -|**accounts** | [**List<AccountBase>**](AccountBase.md) | | [optional] | - - - diff --git a/docs/AccountConfig.md b/docs/AccountConfig.md deleted file mode 100644 index 703183ca..00000000 --- a/docs/AccountConfig.md +++ /dev/null @@ -1,27 +0,0 @@ - - -# AccountConfig - -Policy source/destination configuration - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**type** | **AccountType2** | | | -|**subType** | [**List<AccountIdentifier>**](AccountIdentifier.md) | | [optional] | -|**ids** | [**List<AccountIdentifier>**](AccountIdentifier.md) | | [optional] | -|**operator** | **PolicyOperator** | | | -|**matchFrom** | [**MatchFromEnum**](#MatchFromEnum) | Whether to match from account or source | [optional] | - - - -## Enum: MatchFromEnum - -| Name | Value | -|---- | -----| -| ACCOUNT | "ACCOUNT" | -| SOURCE | "SOURCE" | - - - diff --git a/docs/AccountHolderDetails.md b/docs/AccountHolderDetails.md deleted file mode 100644 index 03956e64..00000000 --- a/docs/AccountHolderDetails.md +++ /dev/null @@ -1,18 +0,0 @@ - - -# AccountHolderDetails - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**name** | **String** | Full name of the account holder. | | -|**city** | **String** | | [optional] | -|**country** | **String** | Country code, as specified in ISO 3166-1 alpha-2. | [optional] | -|**subdivision** | **String** | Country administrative subdivision, as specified in ISO 3166-2. | [optional] | -|**address** | **String** | Account holder street address. | [optional] | -|**postalCode** | **String** | | [optional] | - - - diff --git a/docs/AccountIdentifier.md b/docs/AccountIdentifier.md deleted file mode 100644 index ba2bb74b..00000000 --- a/docs/AccountIdentifier.md +++ /dev/null @@ -1,17 +0,0 @@ - - -# AccountIdentifier - -Account identifier with type, ID, subtype, and address - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**type** | **AccountType2** | | | -|**id** | **String** | Account ID | [optional] | -|**subType** | **String** | Account subtype | [optional] | -|**address** | **String** | Account address | [optional] | - - - diff --git a/docs/AccountProviderID.md b/docs/AccountProviderID.md deleted file mode 100644 index 8c1464ad..00000000 --- a/docs/AccountProviderID.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# AccountProviderID - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**providerId** | **String** | The ID of the provider associated with the account. | | -|**accountId** | **String** | The ID of the account associated with the provider. | | - - - diff --git a/docs/AccountReference.md b/docs/AccountReference.md deleted file mode 100644 index f10819a2..00000000 --- a/docs/AccountReference.md +++ /dev/null @@ -1,37 +0,0 @@ - - -# AccountReference - -## oneOf schemas -* [InternalReference](InternalReference.md) -* [OneTimeAddressReference](OneTimeAddressReference.md) - -## Example -```java -// Import classes: -import com.fireblocks.sdk.model.AccountReference; -import com.fireblocks.sdk.model.InternalReference; -import com.fireblocks.sdk.model.OneTimeAddressReference; - -public class Example { - public static void main(String[] args) { - AccountReference exampleAccountReference = new AccountReference(); - - // create a new InternalReference - InternalReference exampleInternalReference = new InternalReference(); - // set AccountReference to InternalReference - exampleAccountReference.setActualInstance(exampleInternalReference); - // to get back the InternalReference set earlier - InternalReference testInternalReference = (InternalReference) exampleAccountReference.getActualInstance(); - - // create a new OneTimeAddressReference - OneTimeAddressReference exampleOneTimeAddressReference = new OneTimeAddressReference(); - // set AccountReference to OneTimeAddressReference - exampleAccountReference.setActualInstance(exampleOneTimeAddressReference); - // to get back the OneTimeAddressReference set earlier - OneTimeAddressReference testOneTimeAddressReference = (OneTimeAddressReference) exampleAccountReference.getActualInstance(); - } -} -``` - - diff --git a/docs/AccountType2.md b/docs/AccountType2.md deleted file mode 100644 index e52113c3..00000000 --- a/docs/AccountType2.md +++ /dev/null @@ -1,47 +0,0 @@ - - -# AccountType2 - -## Enum - - -* `EXCHANGE` (value: `"EXCHANGE"`) - -* `UNMANAGED` (value: `"UNMANAGED"`) - -* `VAULT` (value: `"VAULT"`) - -* `GLOBAL_WHITELIST` (value: `"GLOBAL_WHITELIST"`) - -* `NETWORK_CONNECTION` (value: `"NETWORK_CONNECTION"`) - -* `FIAT_ACCOUNT` (value: `"FIAT_ACCOUNT"`) - -* `CONNECTED_ACCOUNT` (value: `"CONNECTED_ACCOUNT"`) - -* `ONE_TIME_ADDRESS` (value: `"ONE_TIME_ADDRESS"`) - -* `SRC_DST_NA` (value: `"SRC_DST_NA"`) - -* `MULTIPLE_VENUES` (value: `"MULTIPLE_VENUES"`) - -* `END_USER_WALLET` (value: `"END_USER_WALLET"`) - -* `OEC_PARTNER` (value: `"OEC_PARTNER"`) - -* `CONTRACT` (value: `"CONTRACT"`) - -* `INTERNAL` (value: `"INTERNAL"`) - -* `EXTERNAL` (value: `"EXTERNAL"`) - -* `DAPP_CONNECTION` (value: `"DAPP_CONNECTION"`) - -* `UNKNOWN` (value: `"UNKNOWN"`) - -* `STAR` (value: `"*"`) - -* `ANY` (value: `"ANY"`) - - - diff --git a/docs/AchPaymentInfo.md b/docs/AchPaymentInfo.md deleted file mode 100644 index 49f8e7af..00000000 --- a/docs/AchPaymentInfo.md +++ /dev/null @@ -1,46 +0,0 @@ - - -# AchPaymentInfo - -ACH payment information for US Automated Clearing House transfers - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**rail** | [**RailEnum**](#RailEnum) | The payment rail type for ACH transfers | | -|**addressingSystem** | [**AddressingSystemEnum**](#AddressingSystemEnum) | The addressing system used for ACH transfers | | -|**accountHolderGivenName** | **String** | The given name (first name) of the account holder | | -|**accountHolderSurname** | **String** | The surname (last name) of the account holder | | -|**country** | **String** | The country for the transfer (ISO 3166-1 alpha-2 code) | | -|**accountNumber** | **String** | The bank account number | | -|**routingNumber** | **String** | The bank routing number (ABA routing number) | | -|**accountType** | [**AccountTypeEnum**](#AccountTypeEnum) | The type of bank account | | - - - -## Enum: RailEnum - -| Name | Value | -|---- | -----| -| ACH | "ACH" | - - - -## Enum: AddressingSystemEnum - -| Name | Value | -|---- | -----| -| ACH | "ACH" | - - - -## Enum: AccountTypeEnum - -| Name | Value | -|---- | -----| -| CHECKING | "CHECKING" | -| SAVINGS | "SAVINGS" | - - - diff --git a/docs/AdapterProcessingResult.md b/docs/AdapterProcessingResult.md deleted file mode 100644 index 7122c74a..00000000 --- a/docs/AdapterProcessingResult.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# AdapterProcessingResult - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**inputTokenLinkId** | **String** | The input token link ID | | -|**adapterLinkId** | **String** | The adapter link ID | | - - - diff --git a/docs/AddAbiRequestDto.md b/docs/AddAbiRequestDto.md deleted file mode 100644 index 8f539efa..00000000 --- a/docs/AddAbiRequestDto.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# AddAbiRequestDto - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**contractAddress** | **String** | The address of deployed contract | | -|**baseAssetId** | **String** | The blockchain base assetId | | -|**abi** | [**List<AbiFunction>**](AbiFunction.md) | The ABI of the contract | | -|**name** | **String** | The name of the contract | [optional] | - - - diff --git a/docs/AddAssetToExternalWalletRequest.md b/docs/AddAssetToExternalWalletRequest.md index d2a79ec3..eaabe373 100644 --- a/docs/AddAssetToExternalWalletRequest.md +++ b/docs/AddAssetToExternalWalletRequest.md @@ -2,36 +2,34 @@ # AddAssetToExternalWalletRequest -Request schema for adding an asset to an external wallet - ## oneOf schemas -* [AdditionalInfoRequest](AdditionalInfoRequest.md) -* [BasicAddressRequest](BasicAddressRequest.md) +* [AddAssetToExternalWalletRequestOneOf](AddAssetToExternalWalletRequestOneOf.md) +* [AddAssetToExternalWalletRequestOneOf1](AddAssetToExternalWalletRequestOneOf1.md) ## Example ```java // Import classes: import com.fireblocks.sdk.model.AddAssetToExternalWalletRequest; -import com.fireblocks.sdk.model.AdditionalInfoRequest; -import com.fireblocks.sdk.model.BasicAddressRequest; +import com.fireblocks.sdk.model.AddAssetToExternalWalletRequestOneOf; +import com.fireblocks.sdk.model.AddAssetToExternalWalletRequestOneOf1; public class Example { public static void main(String[] args) { AddAssetToExternalWalletRequest exampleAddAssetToExternalWalletRequest = new AddAssetToExternalWalletRequest(); - // create a new AdditionalInfoRequest - AdditionalInfoRequest exampleAdditionalInfoRequest = new AdditionalInfoRequest(); - // set AddAssetToExternalWalletRequest to AdditionalInfoRequest - exampleAddAssetToExternalWalletRequest.setActualInstance(exampleAdditionalInfoRequest); - // to get back the AdditionalInfoRequest set earlier - AdditionalInfoRequest testAdditionalInfoRequest = (AdditionalInfoRequest) exampleAddAssetToExternalWalletRequest.getActualInstance(); - - // create a new BasicAddressRequest - BasicAddressRequest exampleBasicAddressRequest = new BasicAddressRequest(); - // set AddAssetToExternalWalletRequest to BasicAddressRequest - exampleAddAssetToExternalWalletRequest.setActualInstance(exampleBasicAddressRequest); - // to get back the BasicAddressRequest set earlier - BasicAddressRequest testBasicAddressRequest = (BasicAddressRequest) exampleAddAssetToExternalWalletRequest.getActualInstance(); + // create a new AddAssetToExternalWalletRequestOneOf + AddAssetToExternalWalletRequestOneOf exampleAddAssetToExternalWalletRequestOneOf = new AddAssetToExternalWalletRequestOneOf(); + // set AddAssetToExternalWalletRequest to AddAssetToExternalWalletRequestOneOf + exampleAddAssetToExternalWalletRequest.setActualInstance(exampleAddAssetToExternalWalletRequestOneOf); + // to get back the AddAssetToExternalWalletRequestOneOf set earlier + AddAssetToExternalWalletRequestOneOf testAddAssetToExternalWalletRequestOneOf = (AddAssetToExternalWalletRequestOneOf) exampleAddAssetToExternalWalletRequest.getActualInstance(); + + // create a new AddAssetToExternalWalletRequestOneOf1 + AddAssetToExternalWalletRequestOneOf1 exampleAddAssetToExternalWalletRequestOneOf1 = new AddAssetToExternalWalletRequestOneOf1(); + // set AddAssetToExternalWalletRequest to AddAssetToExternalWalletRequestOneOf1 + exampleAddAssetToExternalWalletRequest.setActualInstance(exampleAddAssetToExternalWalletRequestOneOf1); + // to get back the AddAssetToExternalWalletRequestOneOf1 set earlier + AddAssetToExternalWalletRequestOneOf1 testAddAssetToExternalWalletRequestOneOf1 = (AddAssetToExternalWalletRequestOneOf1) exampleAddAssetToExternalWalletRequest.getActualInstance(); } } ``` diff --git a/docs/BasicAddressRequest.md b/docs/AddAssetToExternalWalletRequestOneOf.md similarity index 77% rename from docs/BasicAddressRequest.md rename to docs/AddAssetToExternalWalletRequestOneOf.md index e60e9f86..fe75d6d4 100644 --- a/docs/BasicAddressRequest.md +++ b/docs/AddAssetToExternalWalletRequestOneOf.md @@ -1,14 +1,13 @@ -# BasicAddressRequest +# AddAssetToExternalWalletRequestOneOf -Basic external wallet request with address information ## Properties | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**address** | **String** | The wallet's address (or xpub) of the external wallet | | +|**address** | **String** | The wallet's address (or xpub) of the wallet | | |**tag** | **String** | For XRP wallets, the destination tag; for EOS/XLM, the memo; for the fiat providers (BLINC by BCB Group), the Bank Transfer Description | [optional] | diff --git a/docs/AddAssetToExternalWalletRequestOneOf1.md b/docs/AddAssetToExternalWalletRequestOneOf1.md new file mode 100644 index 00000000..bfea689a --- /dev/null +++ b/docs/AddAssetToExternalWalletRequestOneOf1.md @@ -0,0 +1,13 @@ + + +# AddAssetToExternalWalletRequestOneOf1 + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**additionalInfo** | [**AddAssetToExternalWalletRequestOneOf1AdditionalInfo**](AddAssetToExternalWalletRequestOneOf1AdditionalInfo.md) | | | + + + diff --git a/docs/AddAssetToExternalWalletRequestOneOf1AdditionalInfo.md b/docs/AddAssetToExternalWalletRequestOneOf1AdditionalInfo.md new file mode 100644 index 00000000..beee8415 --- /dev/null +++ b/docs/AddAssetToExternalWalletRequestOneOf1AdditionalInfo.md @@ -0,0 +1,46 @@ + + +# AddAssetToExternalWalletRequestOneOf1AdditionalInfo + +## oneOf schemas +* [AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf](AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf.md) +* [AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1](AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1.md) +* [AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2](AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2.md) + +## Example +```java +// Import classes: +import com.fireblocks.sdk.model.AddAssetToExternalWalletRequestOneOf1AdditionalInfo; +import com.fireblocks.sdk.model.AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf; +import com.fireblocks.sdk.model.AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1; +import com.fireblocks.sdk.model.AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2; + +public class Example { + public static void main(String[] args) { + AddAssetToExternalWalletRequestOneOf1AdditionalInfo exampleAddAssetToExternalWalletRequestOneOf1AdditionalInfo = new AddAssetToExternalWalletRequestOneOf1AdditionalInfo(); + + // create a new AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf + AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf exampleAddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf = new AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf(); + // set AddAssetToExternalWalletRequestOneOf1AdditionalInfo to AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf + exampleAddAssetToExternalWalletRequestOneOf1AdditionalInfo.setActualInstance(exampleAddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf); + // to get back the AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf set earlier + AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf testAddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf = (AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf) exampleAddAssetToExternalWalletRequestOneOf1AdditionalInfo.getActualInstance(); + + // create a new AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 + AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 exampleAddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 = new AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1(); + // set AddAssetToExternalWalletRequestOneOf1AdditionalInfo to AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 + exampleAddAssetToExternalWalletRequestOneOf1AdditionalInfo.setActualInstance(exampleAddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1); + // to get back the AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 set earlier + AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 testAddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 = (AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1) exampleAddAssetToExternalWalletRequestOneOf1AdditionalInfo.getActualInstance(); + + // create a new AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2 + AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2 exampleAddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2 = new AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2(); + // set AddAssetToExternalWalletRequestOneOf1AdditionalInfo to AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2 + exampleAddAssetToExternalWalletRequestOneOf1AdditionalInfo.setActualInstance(exampleAddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2); + // to get back the AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2 set earlier + AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2 testAddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2 = (AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2) exampleAddAssetToExternalWalletRequestOneOf1AdditionalInfo.getActualInstance(); + } +} +``` + + diff --git a/docs/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf.md b/docs/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf.md new file mode 100644 index 00000000..19dbdcee --- /dev/null +++ b/docs/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf.md @@ -0,0 +1,23 @@ + + +# AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**accountHolderGivenName** | **String** | | | +|**accountHolderSurname** | **String** | | [optional] | +|**accountHolderCity** | **String** | | | +|**accountHolderCountry** | **String** | | | +|**accountHolderAddress1** | **String** | | | +|**accountHolderAddress2** | **String** | | [optional] | +|**accountHolderDistrict** | **String** | | [optional] | +|**accountHolderPostalCode** | **String** | | | +|**iban** | **String** | | | +|**ibanCity** | **String** | | | +|**ibanCountry** | **String** | | | + + + diff --git a/docs/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1.md b/docs/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1.md new file mode 100644 index 00000000..334ba64c --- /dev/null +++ b/docs/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1.md @@ -0,0 +1,23 @@ + + +# AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**accountHolderGivenName** | **String** | | | +|**accountHolderSurname** | **String** | | [optional] | +|**accountHolderCity** | **String** | | | +|**accountHolderCountry** | **String** | | | +|**accountHolderAddress1** | **String** | | | +|**accountHolderAddress2** | **String** | | [optional] | +|**accountHolderDistrict** | **String** | | [optional] | +|**accountHolderPostalCode** | **String** | | | +|**abaRoutingNumber** | **String** | | | +|**abaAccountNumber** | **String** | | | +|**abaCountry** | **String** | | | + + + diff --git a/docs/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2.md b/docs/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2.md new file mode 100644 index 00000000..1cecf675 --- /dev/null +++ b/docs/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2.md @@ -0,0 +1,14 @@ + + +# AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2 + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**speiClabe** | **String** | | | +|**speiName** | **String** | | [optional] | + + + diff --git a/docs/AddCosignerRequest.md b/docs/AddCosignerRequest.md deleted file mode 100644 index 57fd31a0..00000000 --- a/docs/AddCosignerRequest.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# AddCosignerRequest - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**apiKeyId** | **UUID** | The id of the API key to be paired with the cosigner | | -|**name** | **String** | The name of the cosigner | | -|**existingCosigner** | **Boolean** | Whether the cosigner already exists in another workspace | [optional] | - - - diff --git a/docs/AddCosignerResponse.md b/docs/AddCosignerResponse.md deleted file mode 100644 index 0d6119e3..00000000 --- a/docs/AddCosignerResponse.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# AddCosignerResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**apiKeyId** | **UUID** | The id of the API key to be paired with the cosigner | | -|**name** | **String** | The name of the cosigner | | -|**existingCosigner** | **Boolean** | Whether the cosigner already exists in another workspace | [optional] | -|**pendingCosignerId** | **UUID** | The unique identifier of a pending cosigner | | - - - diff --git a/docs/AddExchangeAccountRequest.md b/docs/AddExchangeAccountRequest.md deleted file mode 100644 index eb0fa62e..00000000 --- a/docs/AddExchangeAccountRequest.md +++ /dev/null @@ -1,17 +0,0 @@ - - -# AddExchangeAccountRequest - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**exchangeType** | **ExchangeType** | | | -|**name** | **String** | Display name of the exchange account | | -|**creds** | **String** | Encrypted credentials | [optional] | -|**key** | **String** | Api key of the exchange | [optional] | -|**mainAccountId** | **String** | Optional - main account id of the exchange | [optional] | - - - diff --git a/docs/AddExchangeAccountResponse.md b/docs/AddExchangeAccountResponse.md deleted file mode 100644 index 27b186c4..00000000 --- a/docs/AddExchangeAccountResponse.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# AddExchangeAccountResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**id** | **String** | Exchange account's identifier | [optional] | -|**name** | **String** | Display name of the exchange account | [optional] | -|**exchangeType** | **ExchangeType** | | [optional] | - - - diff --git a/docs/AdditionalInfo.md b/docs/AdditionalInfoDto.md similarity index 81% rename from docs/AdditionalInfo.md rename to docs/AdditionalInfoDto.md index a333cecb..96431bdb 100644 --- a/docs/AdditionalInfo.md +++ b/docs/AdditionalInfoDto.md @@ -1,8 +1,7 @@ -# AdditionalInfo +# AdditionalInfoDto -Additional information related to the blockchain. This may include extra details about the blockchain network. ## Properties diff --git a/docs/AdditionalInfoRequest.md b/docs/AdditionalInfoRequest.md deleted file mode 100644 index 886e6326..00000000 --- a/docs/AdditionalInfoRequest.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# AdditionalInfoRequest - -External wallet request with additional payment information for various payment rails - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**additionalInfo** | [**AdditionalInfoRequestAdditionalInfo**](AdditionalInfoRequestAdditionalInfo.md) | | | - - - diff --git a/docs/AdditionalInfoRequestAdditionalInfo.md b/docs/AdditionalInfoRequestAdditionalInfo.md deleted file mode 100644 index 3165bdce..00000000 --- a/docs/AdditionalInfoRequestAdditionalInfo.md +++ /dev/null @@ -1,111 +0,0 @@ - - -# AdditionalInfoRequestAdditionalInfo - -Additional payment information based on the payment rail type - -## oneOf schemas -* [AbaPaymentInfo](AbaPaymentInfo.md) -* [AchPaymentInfo](AchPaymentInfo.md) -* [IbanPaymentInfo](IbanPaymentInfo.md) -* [LbtPaymentInfo](LbtPaymentInfo.md) -* [MomoPaymentInfo](MomoPaymentInfo.md) -* [PixPaymentInfo](PixPaymentInfo.md) -* [SepaPaymentInfo](SepaPaymentInfo.md) -* [SpeiAdvancedPaymentInfo](SpeiAdvancedPaymentInfo.md) -* [SpeiBasicPaymentInfo](SpeiBasicPaymentInfo.md) -* [UsWirePaymentInfo](UsWirePaymentInfo.md) - -## Example -```java -// Import classes: -import com.fireblocks.sdk.model.AdditionalInfoRequestAdditionalInfo; -import com.fireblocks.sdk.model.AbaPaymentInfo; -import com.fireblocks.sdk.model.AchPaymentInfo; -import com.fireblocks.sdk.model.IbanPaymentInfo; -import com.fireblocks.sdk.model.LbtPaymentInfo; -import com.fireblocks.sdk.model.MomoPaymentInfo; -import com.fireblocks.sdk.model.PixPaymentInfo; -import com.fireblocks.sdk.model.SepaPaymentInfo; -import com.fireblocks.sdk.model.SpeiAdvancedPaymentInfo; -import com.fireblocks.sdk.model.SpeiBasicPaymentInfo; -import com.fireblocks.sdk.model.UsWirePaymentInfo; - -public class Example { - public static void main(String[] args) { - AdditionalInfoRequestAdditionalInfo exampleAdditionalInfoRequestAdditionalInfo = new AdditionalInfoRequestAdditionalInfo(); - - // create a new AbaPaymentInfo - AbaPaymentInfo exampleAbaPaymentInfo = new AbaPaymentInfo(); - // set AdditionalInfoRequestAdditionalInfo to AbaPaymentInfo - exampleAdditionalInfoRequestAdditionalInfo.setActualInstance(exampleAbaPaymentInfo); - // to get back the AbaPaymentInfo set earlier - AbaPaymentInfo testAbaPaymentInfo = (AbaPaymentInfo) exampleAdditionalInfoRequestAdditionalInfo.getActualInstance(); - - // create a new AchPaymentInfo - AchPaymentInfo exampleAchPaymentInfo = new AchPaymentInfo(); - // set AdditionalInfoRequestAdditionalInfo to AchPaymentInfo - exampleAdditionalInfoRequestAdditionalInfo.setActualInstance(exampleAchPaymentInfo); - // to get back the AchPaymentInfo set earlier - AchPaymentInfo testAchPaymentInfo = (AchPaymentInfo) exampleAdditionalInfoRequestAdditionalInfo.getActualInstance(); - - // create a new IbanPaymentInfo - IbanPaymentInfo exampleIbanPaymentInfo = new IbanPaymentInfo(); - // set AdditionalInfoRequestAdditionalInfo to IbanPaymentInfo - exampleAdditionalInfoRequestAdditionalInfo.setActualInstance(exampleIbanPaymentInfo); - // to get back the IbanPaymentInfo set earlier - IbanPaymentInfo testIbanPaymentInfo = (IbanPaymentInfo) exampleAdditionalInfoRequestAdditionalInfo.getActualInstance(); - - // create a new LbtPaymentInfo - LbtPaymentInfo exampleLbtPaymentInfo = new LbtPaymentInfo(); - // set AdditionalInfoRequestAdditionalInfo to LbtPaymentInfo - exampleAdditionalInfoRequestAdditionalInfo.setActualInstance(exampleLbtPaymentInfo); - // to get back the LbtPaymentInfo set earlier - LbtPaymentInfo testLbtPaymentInfo = (LbtPaymentInfo) exampleAdditionalInfoRequestAdditionalInfo.getActualInstance(); - - // create a new MomoPaymentInfo - MomoPaymentInfo exampleMomoPaymentInfo = new MomoPaymentInfo(); - // set AdditionalInfoRequestAdditionalInfo to MomoPaymentInfo - exampleAdditionalInfoRequestAdditionalInfo.setActualInstance(exampleMomoPaymentInfo); - // to get back the MomoPaymentInfo set earlier - MomoPaymentInfo testMomoPaymentInfo = (MomoPaymentInfo) exampleAdditionalInfoRequestAdditionalInfo.getActualInstance(); - - // create a new PixPaymentInfo - PixPaymentInfo examplePixPaymentInfo = new PixPaymentInfo(); - // set AdditionalInfoRequestAdditionalInfo to PixPaymentInfo - exampleAdditionalInfoRequestAdditionalInfo.setActualInstance(examplePixPaymentInfo); - // to get back the PixPaymentInfo set earlier - PixPaymentInfo testPixPaymentInfo = (PixPaymentInfo) exampleAdditionalInfoRequestAdditionalInfo.getActualInstance(); - - // create a new SepaPaymentInfo - SepaPaymentInfo exampleSepaPaymentInfo = new SepaPaymentInfo(); - // set AdditionalInfoRequestAdditionalInfo to SepaPaymentInfo - exampleAdditionalInfoRequestAdditionalInfo.setActualInstance(exampleSepaPaymentInfo); - // to get back the SepaPaymentInfo set earlier - SepaPaymentInfo testSepaPaymentInfo = (SepaPaymentInfo) exampleAdditionalInfoRequestAdditionalInfo.getActualInstance(); - - // create a new SpeiAdvancedPaymentInfo - SpeiAdvancedPaymentInfo exampleSpeiAdvancedPaymentInfo = new SpeiAdvancedPaymentInfo(); - // set AdditionalInfoRequestAdditionalInfo to SpeiAdvancedPaymentInfo - exampleAdditionalInfoRequestAdditionalInfo.setActualInstance(exampleSpeiAdvancedPaymentInfo); - // to get back the SpeiAdvancedPaymentInfo set earlier - SpeiAdvancedPaymentInfo testSpeiAdvancedPaymentInfo = (SpeiAdvancedPaymentInfo) exampleAdditionalInfoRequestAdditionalInfo.getActualInstance(); - - // create a new SpeiBasicPaymentInfo - SpeiBasicPaymentInfo exampleSpeiBasicPaymentInfo = new SpeiBasicPaymentInfo(); - // set AdditionalInfoRequestAdditionalInfo to SpeiBasicPaymentInfo - exampleAdditionalInfoRequestAdditionalInfo.setActualInstance(exampleSpeiBasicPaymentInfo); - // to get back the SpeiBasicPaymentInfo set earlier - SpeiBasicPaymentInfo testSpeiBasicPaymentInfo = (SpeiBasicPaymentInfo) exampleAdditionalInfoRequestAdditionalInfo.getActualInstance(); - - // create a new UsWirePaymentInfo - UsWirePaymentInfo exampleUsWirePaymentInfo = new UsWirePaymentInfo(); - // set AdditionalInfoRequestAdditionalInfo to UsWirePaymentInfo - exampleAdditionalInfoRequestAdditionalInfo.setActualInstance(exampleUsWirePaymentInfo); - // to get back the UsWirePaymentInfo set earlier - UsWirePaymentInfo testUsWirePaymentInfo = (UsWirePaymentInfo) exampleAdditionalInfoRequestAdditionalInfo.getActualInstance(); - } -} -``` - - diff --git a/docs/AddressNotAvailableError.md b/docs/AddressNotAvailableError.md deleted file mode 100644 index d1bcb510..00000000 --- a/docs/AddressNotAvailableError.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# AddressNotAvailableError - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**message** | **String** | Conflict error message | | -|**code** | **BigDecimal** | Error code | | - - - diff --git a/docs/AmlRegistrationResultFullPayload.md b/docs/AmlRegistrationResultFullPayload.md deleted file mode 100644 index 6b99d7f2..00000000 --- a/docs/AmlRegistrationResultFullPayload.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# AmlRegistrationResultFullPayload - -The results of the AML address registration. - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**provider** | **String** | | [optional] | -|**success** | **Boolean** | | [optional] | -|**timestamp** | **BigDecimal** | | [optional] | - - - diff --git a/docs/AmlVerdictManualRequest.md b/docs/AmlVerdictManualRequest.md deleted file mode 100644 index 68871243..00000000 --- a/docs/AmlVerdictManualRequest.md +++ /dev/null @@ -1,23 +0,0 @@ - - -# AmlVerdictManualRequest - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**verdict** | [**VerdictEnum**](#VerdictEnum) | The AML verdict to set for the transaction | | -|**txId** | **UUID** | The transaction ID to set the verdict for | | - - - -## Enum: VerdictEnum - -| Name | Value | -|---- | -----| -| ACCEPT | "ACCEPT" | -| REJECT | "REJECT" | - - - diff --git a/docs/AmlVerdictManualResponse.md b/docs/AmlVerdictManualResponse.md deleted file mode 100644 index b79cfd61..00000000 --- a/docs/AmlVerdictManualResponse.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# AmlVerdictManualResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**success** | **Boolean** | | | -|**message** | **String** | | | - - - diff --git a/docs/TimePeriodMatchType.md b/docs/AmountAggregationTimePeriodMethod.md similarity index 77% rename from docs/TimePeriodMatchType.md rename to docs/AmountAggregationTimePeriodMethod.md index 0bd0d892..08ab1d72 100644 --- a/docs/TimePeriodMatchType.md +++ b/docs/AmountAggregationTimePeriodMethod.md @@ -1,6 +1,6 @@ -# TimePeriodMatchType +# AmountAggregationTimePeriodMethod ## Enum diff --git a/docs/AmountOverTimeConfig.md b/docs/AmountOverTimeConfig.md deleted file mode 100644 index ebe17b26..00000000 --- a/docs/AmountOverTimeConfig.md +++ /dev/null @@ -1,26 +0,0 @@ - - -# AmountOverTimeConfig - -Amount over time configuration - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**range** | [**AmountOverTimeConfigRange**](AmountOverTimeConfigRange.md) | | | -|**currency** | [**CurrencyEnum**](#CurrencyEnum) | Currency for the amount | [optional] | -|**timePeriod** | [**TimePeriodConfig**](TimePeriodConfig.md) | | | - - - -## Enum: CurrencyEnum - -| Name | Value | -|---- | -----| -| NATIVE | "NATIVE" | -| USD | "USD" | -| EUR | "EUR" | - - - diff --git a/docs/AmountOverTimeConfigRange.md b/docs/AmountOverTimeConfigRange.md deleted file mode 100644 index 6f75ee49..00000000 --- a/docs/AmountOverTimeConfigRange.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# AmountOverTimeConfigRange - -Amount range configuration - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**min** | **String** | Minimum amount | | -|**max** | **String** | Maximum amount (optional) | [optional] | - - - diff --git a/docs/AmountRange.md b/docs/AmountRange.md deleted file mode 100644 index eb081d64..00000000 --- a/docs/AmountRange.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# AmountRange - -Amount range configuration - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**min** | **String** | Minimum amount | | -|**max** | **String** | Maximum amount | | -|**currency** | **String** | Currency for the amount | | - - - diff --git a/docs/ApiKey.md b/docs/ApiKey.md index 5d3dd02f..e892019e 100644 --- a/docs/ApiKey.md +++ b/docs/ApiKey.md @@ -8,8 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**id** | **UUID** | The unique identifier of the API key | | -|**lastSeen** | **OffsetDateTime** | The date the API key was last seen | [optional] | -|**callbackHandler** | [**CallbackHandler**](CallbackHandler.md) | | [optional] | +|**lastSeen** | **OffsetDateTime** | The date the API key was last seen | | diff --git a/docs/ApproversConfig.md b/docs/ApproversConfig.md deleted file mode 100644 index 862f917f..00000000 --- a/docs/ApproversConfig.md +++ /dev/null @@ -1,26 +0,0 @@ - - -# ApproversConfig - -Approvers configuration - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**canInitiatorApprove** | **Boolean** | Whether initiator can approve | [optional] | -|**operator** | [**OperatorEnum**](#OperatorEnum) | Operator for approval groups | [optional] | -|**allowOperatorAsAuthorizer** | **Boolean** | Whether operator can be authorizer | [optional] | -|**approvalGroups** | [**List<ApproversConfigApprovalGroupsInner>**](ApproversConfigApprovalGroupsInner.md) | List of approval groups | [optional] | - - - -## Enum: OperatorEnum - -| Name | Value | -|---- | -----| -| AND | "AND" | -| OR | "OR" | - - - diff --git a/docs/ApproversConfigApprovalGroupsInner.md b/docs/ApproversConfigApprovalGroupsInner.md deleted file mode 100644 index 053af629..00000000 --- a/docs/ApproversConfigApprovalGroupsInner.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# ApproversConfigApprovalGroupsInner - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**threshold** | **BigDecimal** | Approval threshold | | -|**users** | **List<String>** | List of user IDs | [optional] | -|**groups** | **List<String>** | List of policy group IDs | [optional] | - - - diff --git a/docs/Asset.md b/docs/Asset.md deleted file mode 100644 index 794a0c04..00000000 --- a/docs/Asset.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# Asset - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**id** | **String** | The ID of the asset | | -|**legacyId** | **String** | The Legacy ID of the asset | | -|**blockchainId** | **String** | The ID of the asset's blockchain | [optional] | -|**displayName** | **String** | Asset's display name | | -|**displaySymbol** | **String** | Asset's display symbol | | -|**assetClass** | **AssetClass** | | | -|**onchain** | [**AssetDetailsOnchain**](AssetDetailsOnchain.md) | | [optional] | -|**metadata** | [**AssetDetailsMetadata**](AssetDetailsMetadata.md) | | | - - - diff --git a/docs/AssetBadRequestErrorResponse.md b/docs/AssetBadRequestErrorResponse.md index c0ea2fa4..79f87310 100644 --- a/docs/AssetBadRequestErrorResponse.md +++ b/docs/AssetBadRequestErrorResponse.md @@ -8,7 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**message** | **String** | Bad request error code | | -|**code** | **BigDecimal** | Error code | | +|**code** | **String** | Error code | | diff --git a/docs/AssetClass.md b/docs/AssetClass.md deleted file mode 100644 index 7e02b428..00000000 --- a/docs/AssetClass.md +++ /dev/null @@ -1,19 +0,0 @@ - - -# AssetClass - -## Enum - - -* `NATIVE` (value: `"NATIVE"`) - -* `FT` (value: `"FT"`) - -* `FIAT` (value: `"FIAT"`) - -* `NFT` (value: `"NFT"`) - -* `SFT` (value: `"SFT"`) - - - diff --git a/docs/AssetConfig.md b/docs/AssetConfig.md deleted file mode 100644 index 46e0fc7b..00000000 --- a/docs/AssetConfig.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# AssetConfig - -Policy asset configuration - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**nftTransfer** | **Boolean** | Whether this is an NFT transfer | | -|**assetTypes** | [**List<AssetTypesConfigInner>**](AssetTypesConfigInner.md) | List of asset types | [optional] | -|**operator** | **PolicyOperator** | | [optional] | - - - diff --git a/docs/AssetConflictErrorResponse.md b/docs/AssetConflictErrorResponse.md index b48b6d87..063daa00 100644 --- a/docs/AssetConflictErrorResponse.md +++ b/docs/AssetConflictErrorResponse.md @@ -8,7 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**message** | **String** | Conflict error code | | -|**code** | **BigDecimal** | Error code | | +|**code** | **String** | Error code | | diff --git a/docs/AssetDetailsMetadata.md b/docs/AssetDetailsMetadata.md deleted file mode 100644 index ddf1cf3e..00000000 --- a/docs/AssetDetailsMetadata.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# AssetDetailsMetadata - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**scope** | **AssetScope** | | | -|**verified** | **Boolean** | Is asset verified by Fireblocks | | -|**deprecated** | **Boolean** | Is asset deprecated | | -|**deprecationReferralId** | **String** | New asset ID replacement | [optional] | -|**website** | **String** | Vendor’s website | [optional] | -|**media** | [**List<AssetMedia>**](AssetMedia.md) | Asset’s media | [optional] | -|**note** | [**AssetNote**](AssetNote.md) | | [optional] | -|**features** | **List<AssetFeature>** | Asset features | [optional] | - - - diff --git a/docs/AssetDetailsOnchain.md b/docs/AssetDetailsOnchain.md deleted file mode 100644 index ea0106f2..00000000 --- a/docs/AssetDetailsOnchain.md +++ /dev/null @@ -1,17 +0,0 @@ - - -# AssetDetailsOnchain - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**symbol** | **String** | The asset symbol | | -|**name** | **String** | The asset name | | -|**address** | **String** | The asset address | [optional] | -|**decimals** | **BigDecimal** | Number of decimals | | -|**standards** | **List<String>** | Supported standards | [optional] | - - - diff --git a/docs/AssetDoesNotExistHttpError.md b/docs/AssetDoesNotExistHttpError.md new file mode 100644 index 00000000..3586ebee --- /dev/null +++ b/docs/AssetDoesNotExistHttpError.md @@ -0,0 +1,15 @@ + + +# AssetDoesNotExistHttpError + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**statusCode** | **Integer** | HTTP status code | [optional] | +|**message** | **String** | Error message | [optional] | +|**error** | **String** | Short description of the HTTP error | [optional] | + + + diff --git a/docs/AssetFeature.md b/docs/AssetFeature.md deleted file mode 100644 index 6689b6db..00000000 --- a/docs/AssetFeature.md +++ /dev/null @@ -1,11 +0,0 @@ - - -# AssetFeature - -## Enum - - -* `STABLECOIN` (value: `"STABLECOIN"`) - - - diff --git a/docs/AssetForbiddenErrorResponse.md b/docs/AssetForbiddenErrorResponse.md index f6682b3b..f92b9d26 100644 --- a/docs/AssetForbiddenErrorResponse.md +++ b/docs/AssetForbiddenErrorResponse.md @@ -8,7 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**message** | **String** | Forbidden error code | | -|**code** | **BigDecimal** | Error code | | +|**code** | **String** | Error code | | diff --git a/docs/AssetInternalServerErrorResponse.md b/docs/AssetInternalServerErrorResponse.md index 5202f56e..f1ddcb6b 100644 --- a/docs/AssetInternalServerErrorResponse.md +++ b/docs/AssetInternalServerErrorResponse.md @@ -8,7 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**message** | **String** | Internal server error code | | -|**code** | **BigDecimal** | Error code | | +|**code** | **String** | Error code | | diff --git a/docs/AssetMedia.md b/docs/AssetMedia.md deleted file mode 100644 index 78df9db8..00000000 --- a/docs/AssetMedia.md +++ /dev/null @@ -1,24 +0,0 @@ - - -# AssetMedia - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**url** | **String** | Media URL | | -|**type** | [**TypeEnum**](#TypeEnum) | Media type | | -|**attributes** | [**AssetMediaAttributes**](AssetMediaAttributes.md) | | [optional] | - - - -## Enum: TypeEnum - -| Name | Value | -|---- | -----| -| IMAGE_SVG_XML | "image/svg+xml" | -| IMAGE_PNG | "image/png" | - - - diff --git a/docs/AssetMediaAttributes.md b/docs/AssetMediaAttributes.md deleted file mode 100644 index c05b780e..00000000 --- a/docs/AssetMediaAttributes.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# AssetMediaAttributes - -Media attributes - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**monochrome** | **Boolean** | Monochrome flag | [optional] | - - - diff --git a/docs/AssetMetadataRequest.md b/docs/AssetMetadataRequest.md deleted file mode 100644 index 35c5fbbc..00000000 --- a/docs/AssetMetadataRequest.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# AssetMetadataRequest - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**note** | [**AssetNoteRequest**](AssetNoteRequest.md) | | [optional] | - - - diff --git a/docs/AssetNotFoundErrorResponse.md b/docs/AssetNotFoundErrorResponse.md index a98c9838..de220c6b 100644 --- a/docs/AssetNotFoundErrorResponse.md +++ b/docs/AssetNotFoundErrorResponse.md @@ -8,7 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**message** | **String** | Not found error code | | -|**code** | **BigDecimal** | Error code | | +|**code** | **String** | Error code | | diff --git a/docs/AssetNote.md b/docs/AssetNote.md deleted file mode 100644 index d02d985c..00000000 --- a/docs/AssetNote.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# AssetNote - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**text** | **String** | Note content | | -|**userId** | **UUID** | Who updated the note (uuid) | | -|**userName** | **String** | User name | | -|**updatedAt** | **OffsetDateTime** | ISO Timestamp when last updated | | - - - diff --git a/docs/AssetNoteRequest.md b/docs/AssetNoteRequest.md deleted file mode 100644 index 9e1426f0..00000000 --- a/docs/AssetNoteRequest.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# AssetNoteRequest - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**text** | **String** | Asset user note | [optional] | - - - diff --git a/docs/AssetPriceForbiddenErrorResponse.md b/docs/AssetPriceForbiddenErrorResponse.md deleted file mode 100644 index 4dd22af9..00000000 --- a/docs/AssetPriceForbiddenErrorResponse.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# AssetPriceForbiddenErrorResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**message** | **String** | Forbidden error message | | -|**code** | **BigDecimal** | Error code | | - - - diff --git a/docs/AssetPriceNotFoundErrorResponse.md b/docs/AssetPriceNotFoundErrorResponse.md deleted file mode 100644 index 06146c06..00000000 --- a/docs/AssetPriceNotFoundErrorResponse.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# AssetPriceNotFoundErrorResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**message** | **String** | Not found error message | | -|**code** | **BigDecimal** | Error code | | - - - diff --git a/docs/AssetPriceResponse.md b/docs/AssetPriceResponse.md deleted file mode 100644 index ca210947..00000000 --- a/docs/AssetPriceResponse.md +++ /dev/null @@ -1,26 +0,0 @@ - - -# AssetPriceResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**legacyId** | **String** | The ID of the asset | | -|**lastUpdateAt** | **BigDecimal** | Time of last price update | | -|**currency** | **String** | Currency (according to ISO 4217 currency codes) | | -|**price** | **BigDecimal** | Price in currency | | -|**source** | [**SourceEnum**](#SourceEnum) | Source of the price data | | - - - -## Enum: SourceEnum - -| Name | Value | -|---- | -----| -| PUBLIC | "PUBLIC" | -| PRIVATE | "PRIVATE" | - - - diff --git a/docs/AssetResponse.md b/docs/AssetResponse.md index 025bbd5c..7142e693 100644 --- a/docs/AssetResponse.md +++ b/docs/AssetResponse.md @@ -9,8 +9,8 @@ |------------ | ------------- | ------------- | -------------| |**legacyId** | **String** | | | |**assetClass** | [**AssetClassEnum**](#AssetClassEnum) | | | -|**onchain** | [**AssetOnchain**](AssetOnchain.md) | | | -|**metadata** | [**AssetMetadata**](AssetMetadata.md) | | | +|**onchain** | [**AssetResponseOnchain**](AssetResponseOnchain.md) | | | +|**metadata** | [**AssetResponseMetadata**](AssetResponseMetadata.md) | | | diff --git a/docs/AssetMetadata.md b/docs/AssetResponseMetadata.md similarity index 93% rename from docs/AssetMetadata.md rename to docs/AssetResponseMetadata.md index f78cdda8..f9cd177c 100644 --- a/docs/AssetMetadata.md +++ b/docs/AssetResponseMetadata.md @@ -1,6 +1,6 @@ -# AssetMetadata +# AssetResponseMetadata ## Properties diff --git a/docs/AssetOnchain.md b/docs/AssetResponseOnchain.md similarity index 80% rename from docs/AssetOnchain.md rename to docs/AssetResponseOnchain.md index c52e9da6..d963320d 100644 --- a/docs/AssetOnchain.md +++ b/docs/AssetResponseOnchain.md @@ -1,6 +1,6 @@ -# AssetOnchain +# AssetResponseOnchain ## Properties @@ -11,7 +11,7 @@ |**name** | **String** | The asset name | | |**address** | **String** | The asset address | [optional] | |**decimals** | **BigDecimal** | Number of decimals | | -|**standard** | **String** | The asset standard | [optional] | +|**standard** | **String** | The asset standard | | diff --git a/docs/AssetScope.md b/docs/AssetScope.md deleted file mode 100644 index 87ff99a2..00000000 --- a/docs/AssetScope.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# AssetScope - -## Enum - - -* `GLOBAL` (value: `"GLOBAL"`) - -* `LOCAL` (value: `"LOCAL"`) - - - diff --git a/docs/AssetTypesConfigInner.md b/docs/AssetTypesConfigInner.md deleted file mode 100644 index cfe60ed9..00000000 --- a/docs/AssetTypesConfigInner.md +++ /dev/null @@ -1,28 +0,0 @@ - - -# AssetTypesConfigInner - -## oneOf schemas -* [String](String.md) - -## Example -```java -// Import classes: -import com.fireblocks.sdk.model.AssetTypesConfigInner; -import com.fireblocks.sdk.model.String; - -public class Example { - public static void main(String[] args) { - AssetTypesConfigInner exampleAssetTypesConfigInner = new AssetTypesConfigInner(); - - // create a new String - String exampleString = new String(); - // set AssetTypesConfigInner to String - exampleAssetTypesConfigInner.setActualInstance(exampleString); - // to get back the String set earlier - String testString = (String) exampleAssetTypesConfigInner.getActualInstance(); - } -} -``` - - diff --git a/docs/AuditLogData.md b/docs/AuditLogData.md index 0b89ac31..7642dc07 100644 --- a/docs/AuditLogData.md +++ b/docs/AuditLogData.md @@ -8,8 +8,8 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**id** | **String** | The unique identifier of the audit log | [optional] | -|**timestamp** | **BigDecimal** | The timestamp of the audit log | [optional] | -|**createdAt** | **BigDecimal** | The timestamp of the audit log creation | [optional] | +|**timestamp** | **String** | The timestamp of the audit log | [optional] | +|**createdAt** | **String** | The timestamp of the audit log creation | [optional] | |**user** | **String** | The user who performed the action | [optional] | |**subject** | **String** | The subject of the action | [optional] | |**event** | **String** | The event that was performed | [optional] | diff --git a/docs/AuditLogsApi.md b/docs/AuditLogsApi.md index a47dbab6..9666625d 100644 --- a/docs/AuditLogsApi.md +++ b/docs/AuditLogsApi.md @@ -5,6 +5,7 @@ All URIs are relative to https://developers.fireblocks.com/reference/ | Method | HTTP request | Description | |------------- | ------------- | -------------| | [**getAuditLogs**](AuditLogsApi.md#getAuditLogs) | **GET** /management/audit_logs | Get audit logs | +| [**getAudits**](AuditLogsApi.md#getAudits) | **GET** /audits | Get audit logs | @@ -92,3 +93,86 @@ No authorization required | **200** | Audit logs from requested time period | * X-Request-ID -
| | **0** | Error Response | * X-Request-ID -
| + +## getAudits + +> CompletableFuture> getAudits getAudits(timePeriod) + +Get audit logs + +Get all audits + +### Example + +```java +// Import classes: +import com.fireblocks.sdk.ApiClient; +import com.fireblocks.sdk.ApiException; +import com.fireblocks.sdk.ApiResponse; +import com.fireblocks.sdk.BasePath; +import com.fireblocks.sdk.Fireblocks; +import com.fireblocks.sdk.ConfigurationOptions; +import com.fireblocks.sdk.model.*; +import com.fireblocks.sdk.api.AuditLogsApi; +import java.util.concurrent.CompletableFuture; +import java.util.concurrent.ExecutionException; + +public class Example { + public static void main(String[] args) { + ConfigurationOptions configurationOptions = new ConfigurationOptions() + .basePath(BasePath.Sandbox) + .apiKey("my-api-key") + .secretKey("my-secret-key"); + Fireblocks fireblocks = new Fireblocks(configurationOptions); + + String timePeriod = "DAY"; // String | The last time period to fetch audit logs + try { + CompletableFuture> response = fireblocks.auditLogs().getAudits(timePeriod); + System.out.println("Status code: " + response.get().getStatusCode()); + System.out.println("Response headers: " + response.get().getHeaders()); + System.out.println("Response body: " + response.get().getData()); + } catch (InterruptedException | ExecutionException e) { + ApiException apiException = (ApiException)e.getCause(); + System.err.println("Exception when calling AuditLogsApi#getAudits"); + System.err.println("Status code: " + apiException.getCode()); + System.err.println("Response headers: " + apiException.getResponseHeaders()); + System.err.println("Reason: " + apiException.getResponseBody()); + e.printStackTrace(); + } catch (ApiException e) { + System.err.println("Exception when calling AuditLogsApi#getAudits"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Response headers: " + e.getResponseHeaders()); + System.err.println("Reason: " + e.getResponseBody()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **timePeriod** | **String**| The last time period to fetch audit logs | [optional] [enum: DAY, WEEK] | + +### Return type + +CompletableFuture> + + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Audit logs from requested time period | * X-Request-ID -
| +| **0** | Error Response | * X-Request-ID -
| + diff --git a/docs/BaseProvider.md b/docs/BaseProvider.md deleted file mode 100644 index 50b9722c..00000000 --- a/docs/BaseProvider.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# BaseProvider - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**id** | **String** | Unique identifier for the provider | | -|**name** | **String** | Display name of the provider | | -|**logo** | **String** | URL to the logo image of the provider | [optional] | -|**accountBased** | **Boolean** | Indicates whether the provider access model is through accounts or directly | | - - - diff --git a/docs/BlockchainExplorer.md b/docs/BlockchainExplorer.md deleted file mode 100644 index 292019fd..00000000 --- a/docs/BlockchainExplorer.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# BlockchainExplorer - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**base** | **String** | Explorer base url | | -|**address** | **String** | Explorer address url | [optional] | -|**tx** | **String** | Explorer transaction url | [optional] | -|**token** | **String** | Explorer token url | [optional] | - - - diff --git a/docs/BlockchainMedia.md b/docs/BlockchainMedia.md deleted file mode 100644 index 0b14d5a8..00000000 --- a/docs/BlockchainMedia.md +++ /dev/null @@ -1,23 +0,0 @@ - - -# BlockchainMedia - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**url** | **String** | Media URL | | -|**type** | [**TypeEnum**](#TypeEnum) | Media type | | - - - -## Enum: TypeEnum - -| Name | Value | -|---- | -----| -| IMAGE_SVG_XML | "image/svg+xml" | -| IMAGE_PNG | "image/png" | - - - diff --git a/docs/BlockchainMetadata.md b/docs/BlockchainMetadata.md deleted file mode 100644 index 9ffaf898..00000000 --- a/docs/BlockchainMetadata.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# BlockchainMetadata - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**scope** | **AssetScope** | | | -|**deprecated** | **Boolean** | Is blockchain deprecated | | -|**media** | [**List<BlockchainMedia>**](BlockchainMedia.md) | Blockchain’s media | [optional] | -|**explorer** | [**BlockchainExplorer**](BlockchainExplorer.md) | | [optional] | - - - diff --git a/docs/BlockchainNotFoundErrorResponse.md b/docs/BlockchainNotFoundErrorResponse.md deleted file mode 100644 index b4f17f05..00000000 --- a/docs/BlockchainNotFoundErrorResponse.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# BlockchainNotFoundErrorResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**message** | **String** | Not found error code | | -|**code** | **BigDecimal** | Error code | | - - - diff --git a/docs/BlockchainOnchain.md b/docs/BlockchainOnchain.md deleted file mode 100644 index 6935cf65..00000000 --- a/docs/BlockchainOnchain.md +++ /dev/null @@ -1,25 +0,0 @@ - - -# BlockchainOnchain - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**protocol** | **String** | The protocol of the blockchain | | -|**chainId** | **String** | Network/chain ID | [optional] | -|**test** | **Boolean** | Is test blockchain | | -|**signingAlgo** | [**SigningAlgoEnum**](#SigningAlgoEnum) | Signing alghorithm | | - - - -## Enum: SigningAlgoEnum - -| Name | Value | -|---- | -----| -| ECDSA_SECP256_K1 | "ECDSA_SECP256K1" | -| EDDSA_ED25519 | "EDDSA_ED25519" | - - - diff --git a/docs/BlockchainResponse.md b/docs/BlockchainResponse.md deleted file mode 100644 index 0a55f0b2..00000000 --- a/docs/BlockchainResponse.md +++ /dev/null @@ -1,18 +0,0 @@ - - -# BlockchainResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**id** | **String** | The ID of the blockchain | | -|**legacyId** | **String** | The old blockchain ID representation of the blockchain | | -|**displayName** | **String** | The name of the blockchain | | -|**nativeAssetId** | **String** | Native asset ID of this blockchain | | -|**onchain** | [**BlockchainOnchain**](BlockchainOnchain.md) | | | -|**metadata** | [**BlockchainMetadata**](BlockchainMetadata.md) | | | - - - diff --git a/docs/BlockchainTransfer.md b/docs/BlockchainTransfer.md deleted file mode 100644 index 3cc160b8..00000000 --- a/docs/BlockchainTransfer.md +++ /dev/null @@ -1,23 +0,0 @@ - - -# BlockchainTransfer - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**type** | [**TypeEnum**](#TypeEnum) | | [optional] | -|**txHash** | **String** | The hash of the transaction on the blockchain. | [optional] | -|**amount** | **String** | The amount of the transaction. | | - - - -## Enum: TypeEnum - -| Name | Value | -|---- | -----| -| BLOCKCHAIN | "BLOCKCHAIN" | - - - diff --git a/docs/BlockchainsAssetsApi.md b/docs/BlockchainsAssetsApi.md index 2b012940..12dd5741 100644 --- a/docs/BlockchainsAssetsApi.md +++ b/docs/BlockchainsAssetsApi.md @@ -4,196 +4,18 @@ All URIs are relative to https://developers.fireblocks.com/reference/ | Method | HTTP request | Description | |------------- | ------------- | -------------| -| [**getAsset**](BlockchainsAssetsApi.md#getAsset) | **GET** /assets/{id} | Get an asset | -| [**getBlockchain**](BlockchainsAssetsApi.md#getBlockchain) | **GET** /blockchains/{id} | Get an blockchain | -| [**getSupportedAssets**](BlockchainsAssetsApi.md#getSupportedAssets) | **GET** /supported_assets | List all asset types supported by Fireblocks - legacy endpoint | -| [**listAssets**](BlockchainsAssetsApi.md#listAssets) | **GET** /assets | List assets | -| [**listBlockchains**](BlockchainsAssetsApi.md#listBlockchains) | **GET** /blockchains | List blockchains | +| [**getSupportedAssets**](BlockchainsAssetsApi.md#getSupportedAssets) | **GET** /supported_assets | List all asset types supported by Fireblocks | | [**registerNewAsset**](BlockchainsAssetsApi.md#registerNewAsset) | **POST** /assets | Register an asset | -| [**setAssetPrice**](BlockchainsAssetsApi.md#setAssetPrice) | **POST** /assets/prices/{id} | Set asset price | -| [**updateAssetUserMetadata**](BlockchainsAssetsApi.md#updateAssetUserMetadata) | **PATCH** /assets/{id} | Update the user’s metadata for an asset | -## getAsset - -> CompletableFuture> getAsset getAsset(id, idempotencyKey) - -Get an asset - -Returns an asset by ID or legacyID.</br> **Note**: - We will continue displaying and supporting the legacy ID (API ID). Since not all Fireblocks services fully support the new Assets UUID, please use only the legacy ID until further notice. - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.BlockchainsAssetsApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - String id = "ETH"; // String | The ID or legacyId of the asset - String idempotencyKey = "idempotencyKey_example"; // String | 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. - try { - CompletableFuture> response = fireblocks.blockchainsAssets().getAsset(id, idempotencyKey); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling BlockchainsAssetsApi#getAsset"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling BlockchainsAssetsApi#getAsset"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **id** | **String**| The ID or legacyId of the asset | | -| **idempotencyKey** | **String**| 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. | [optional] | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Asset with requested identification | * X-Request-ID -
| -| **404** | - Asset with specified ID or legacy ID is not found. Error code 1504 | - | -| **500** | Error occurred while getting an asset | - | -| **0** | Error Response | * X-Request-ID -
| - - -## getBlockchain - -> CompletableFuture> getBlockchain getBlockchain(id) - -Get an blockchain - -Returns an blockchain by ID or legacyID. - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.BlockchainsAssetsApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - String id = "ETH"; // String | The ID or legacyId of the blockchain - try { - CompletableFuture> response = fireblocks.blockchainsAssets().getBlockchain(id); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling BlockchainsAssetsApi#getBlockchain"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling BlockchainsAssetsApi#getBlockchain"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **id** | **String**| The ID or legacyId of the blockchain | | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Blockchain with requested identification | * X-Request-ID -
| -| **404** | - Blockchain with specified ID or legacy ID is not found. Error code 1505 | - | -| **500** | Error occurred while getting an blockchain | - | -| **0** | Error Response | * X-Request-ID -
| - - ## getSupportedAssets > CompletableFuture>> getSupportedAssets getSupportedAssets() -List all asset types supported by Fireblocks - legacy endpoint +List all asset types supported by Fireblocks -Legacy Endpoint – Retrieves all assets supported by Fireblocks in your workspace without extended information.</br> **Note**: - This endpoint will remain available for the foreseeable future and is not deprecated.</br> - The `listAssets` endpoint provides more detailed asset information and improved performance.</br> - We recommend transitioning to the `listAssets` endpoint for better results. +Returns all asset types supported by Fireblocks. ### Example @@ -266,207 +88,13 @@ No authorization required | **0** | Error Response | * X-Request-ID -
| -## listAssets - -> CompletableFuture> listAssets listAssets(blockchainId, assetClass, symbol, scope, deprecated, ids, pageCursor, pageSize, idempotencyKey) - -List assets - -Retrieves all assets supported by Fireblocks in your workspace, providing extended information and enhanced performance compared to the legacy `supported_assets` endpoint.</br> **Note**: - We will continue displaying and supporting the legacy ID (API ID). Since not all Fireblocks services fully support the new Assets UUID, please use only the legacy ID until further notice.</br> - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.BlockchainsAssetsApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - String blockchainId = "0f672204-a28b-464a-b318-a387abd3d3c7"; // String | Blockchain id of the assets - AssetClass assetClass = AssetClass.fromValue("NATIVE"); // AssetClass | Assets class - String symbol = "ETH"; // String | Assets onchain symbol - AssetScope scope = AssetScope.fromValue("GLOBAL"); // AssetScope | Scope of the assets - Boolean deprecated = false; // Boolean | Are assets deprecated - List ids = Arrays.asList(); // List | A list of asset IDs (max 100) - String pageCursor = "MjAyMy0xMi0xMyAyMDozNjowOC4zMDI=:MTEwMA=="; // String | Next page cursor to fetch - BigDecimal pageSize = new BigDecimal("500"); // BigDecimal | Items per page - String idempotencyKey = "idempotencyKey_example"; // String | 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. - try { - CompletableFuture> response = fireblocks.blockchainsAssets().listAssets(blockchainId, assetClass, symbol, scope, deprecated, ids, pageCursor, pageSize, idempotencyKey); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling BlockchainsAssetsApi#listAssets"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling BlockchainsAssetsApi#listAssets"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **blockchainId** | **String**| Blockchain id of the assets | [optional] | -| **assetClass** | [**AssetClass**](.md)| Assets class | [optional] [enum: NATIVE, FT, FIAT, NFT, SFT] | -| **symbol** | **String**| Assets onchain symbol | [optional] | -| **scope** | [**AssetScope**](.md)| Scope of the assets | [optional] [enum: GLOBAL, LOCAL] | -| **deprecated** | **Boolean**| Are assets deprecated | [optional] | -| **ids** | [**List<String>**](String.md)| A list of asset IDs (max 100) | [optional] | -| **pageCursor** | **String**| Next page cursor to fetch | [optional] | -| **pageSize** | **BigDecimal**| Items per page | [optional] [default to 500] | -| **idempotencyKey** | **String**| 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. | [optional] | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | List of assets | - | -| **500** | Error occurred while listing assets | - | -| **0** | Error Response | * X-Request-ID -
| - - -## listBlockchains - -> CompletableFuture> listBlockchains listBlockchains(protocol, deprecated, test, ids, pageCursor, pageSize) - -List blockchains - -Returns all blockchains supported by Fireblocks. - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.BlockchainsAssetsApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - String protocol = "SOL"; // String | Blockchain protocol - Boolean deprecated = false; // Boolean | Is blockchain deprecated - Boolean test = false; // Boolean | Is test blockchain - List ids = Arrays.asList(); // List | A list of blockchain IDs (max 100) - String pageCursor = "MjAyMy0xMi0xMyAyMDozNjowOC4zMDI=:MTEwMA=="; // String | Page cursor to fetch - BigDecimal pageSize = new BigDecimal("500"); // BigDecimal | Items per page (max 500) - try { - CompletableFuture> response = fireblocks.blockchainsAssets().listBlockchains(protocol, deprecated, test, ids, pageCursor, pageSize); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling BlockchainsAssetsApi#listBlockchains"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling BlockchainsAssetsApi#listBlockchains"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **protocol** | **String**| Blockchain protocol | [optional] | -| **deprecated** | **Boolean**| Is blockchain deprecated | [optional] | -| **test** | **Boolean**| Is test blockchain | [optional] | -| **ids** | [**List<String>**](String.md)| A list of blockchain IDs (max 100) | [optional] | -| **pageCursor** | **String**| Page cursor to fetch | [optional] | -| **pageSize** | **BigDecimal**| Items per page (max 500) | [optional] [default to 500] | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | List of supported blockchains | - | -| **500** | Error occurred while listing blockchains | - | -| **0** | Error Response | * X-Request-ID -
| - - ## registerNewAsset > CompletableFuture> registerNewAsset registerNewAsset(registerNewAssetRequest, idempotencyKey) 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 - Solana +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 ### Example @@ -542,188 +170,9 @@ 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 - Blockchain is deprecated. Error code: 1006 - The asset's standard is not supported. Error code: 1007 - Unable to get expected metadata: decimals | name | symbol. Error code: 1010 | - | -| **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 | - | +| **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 | - | | **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 | - | -| **0** | Error Response | * X-Request-ID -
| - - -## setAssetPrice - -> CompletableFuture> setAssetPrice setAssetPrice(id, setAssetPriceRequest, idempotencyKey) - -Set asset price - -Set asset price for the given asset id. Returns the asset price response. - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.BlockchainsAssetsApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - String id = "ETH"; // String | The ID of the asset - SetAssetPriceRequest setAssetPriceRequest = new SetAssetPriceRequest(); // SetAssetPriceRequest | - String idempotencyKey = "idempotencyKey_example"; // String | 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. - try { - CompletableFuture> response = fireblocks.blockchainsAssets().setAssetPrice(id, setAssetPriceRequest, idempotencyKey); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling BlockchainsAssetsApi#setAssetPrice"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling BlockchainsAssetsApi#setAssetPrice"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **id** | **String**| The ID of the asset | | -| **setAssetPriceRequest** | [**SetAssetPriceRequest**](SetAssetPriceRequest.md)| | [optional] | -| **idempotencyKey** | **String**| 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. | [optional] | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Asset price has been set successfully. | - | -| **403** | - Tenant is not allowed to set rate. Error code: 1002. | - | -| **404** | - Currency not found. Error code 1001 | - | -| **0** | Error Response | * X-Request-ID -
| - - -## updateAssetUserMetadata - -> CompletableFuture> updateAssetUserMetadata updateAssetUserMetadata(id, updateAssetUserMetadataRequest, idempotencyKey) - -Update the user’s metadata for an asset - -Update the user’s metadata for an asset. Endpoint Permission: Owner, Admin, Non-Signing Admin, NCW Admin, Signer, Editor. - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.BlockchainsAssetsApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - String id = "ETH"; // String | The ID or legacyId of the asset - UpdateAssetUserMetadataRequest updateAssetUserMetadataRequest = new UpdateAssetUserMetadataRequest(); // UpdateAssetUserMetadataRequest | - String idempotencyKey = "idempotencyKey_example"; // String | 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. - try { - CompletableFuture> response = fireblocks.blockchainsAssets().updateAssetUserMetadata(id, updateAssetUserMetadataRequest, idempotencyKey); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling BlockchainsAssetsApi#updateAssetUserMetadata"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling BlockchainsAssetsApi#updateAssetUserMetadata"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **id** | **String**| The ID or legacyId of the asset | | -| **updateAssetUserMetadataRequest** | [**UpdateAssetUserMetadataRequest**](UpdateAssetUserMetadataRequest.md)| | [optional] | -| **idempotencyKey** | **String**| 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. | [optional] | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Updated asset user metadata | * X-Request-ID -
| -| **404** | - Asset with specified ID or legacy ID is not found. Error code 1504 | - | -| **500** | Error occurred while updating asset user metadata | - | -| **0** | Error Response | * X-Request-ID -
| diff --git a/docs/BpsFee.md b/docs/BpsFee.md deleted file mode 100644 index 3836490d..00000000 --- a/docs/BpsFee.md +++ /dev/null @@ -1,22 +0,0 @@ - - -# BpsFee - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**amountType** | [**AmountTypeEnum**](#AmountTypeEnum) | | | -|**amount** | **BigDecimal** | Fee in basis points (1 = 0.01%, 10000 = 100%) | | - - - -## Enum: AmountTypeEnum - -| Name | Value | -|---- | -----| -| BPS | "BPS" | - - - diff --git a/docs/BusinessIdentification.md b/docs/BusinessIdentification.md deleted file mode 100644 index 22847e81..00000000 --- a/docs/BusinessIdentification.md +++ /dev/null @@ -1,26 +0,0 @@ - - -# BusinessIdentification - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**externalReferenceId** | **String** | | | -|**entityType** | [**EntityTypeEnum**](#EntityTypeEnum) | | | -|**participantRelationshipType** | **ParticipantRelationshipType** | | | -|**businessName** | **String** | | | -|**registrationNumber** | **String** | | | -|**postalAddress** | [**PostalAddress**](PostalAddress.md) | | | - - - -## Enum: EntityTypeEnum - -| Name | Value | -|---- | -----| -| BUSINESS | "BUSINESS" | - - - diff --git a/docs/CallbackHandler.md b/docs/CallbackHandler.md deleted file mode 100644 index b9658ada..00000000 --- a/docs/CallbackHandler.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# CallbackHandler - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**url** | **String** | The callback handler's URL | | -|**publicKey** | **String** | The callback handler's public key | [optional] | -|**certPublicKeyHash** | **String** | A hashed representation of the public key of the callback handler's certificate | [optional] | - - - diff --git a/docs/CallbackHandlerRequest.md b/docs/CallbackHandlerRequest.md deleted file mode 100644 index 2e99b438..00000000 --- a/docs/CallbackHandlerRequest.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# CallbackHandlerRequest - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**url** | **String** | The callback handler's URL | | -|**publicKey** | **String** | The callback handler's public key | [optional] | -|**cert** | **String** | The callback handler's certificate | [optional] | - - - diff --git a/docs/Capability.md b/docs/Capability.md deleted file mode 100644 index a567b4b1..00000000 --- a/docs/Capability.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# Capability - -## Enum - - -* `WITHDRAWALS` (value: `"WITHDRAWALS"`) - -* `DEPOSITS` (value: `"DEPOSITS"`) - -* `TRADING` (value: `"TRADING"`) - - - diff --git a/docs/ChainDescriptor.md b/docs/ChainDescriptor.md deleted file mode 100644 index 40df159e..00000000 --- a/docs/ChainDescriptor.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# ChainDescriptor - -## Enum - - -* `ETH` (value: `"ETH"`) - -* `SOL` (value: `"SOL"`) - -* `MATIC` (value: `"MATIC"`) - -* `ETH_TEST_HOODI` (value: `"ETH_TEST_HOODI"`) - -* `ETH_TEST6` (value: `"ETH_TEST6"`) - -* `SOL_TEST` (value: `"SOL_TEST"`) - - - diff --git a/docs/ChainInfoResponse.md b/docs/ChainInfoResponseDto.md similarity index 73% rename from docs/ChainInfoResponse.md rename to docs/ChainInfoResponseDto.md index 3030464f..d6465b76 100644 --- a/docs/ChainInfoResponse.md +++ b/docs/ChainInfoResponseDto.md @@ -1,6 +1,6 @@ -# ChainInfoResponse +# ChainInfoResponseDto ## Properties @@ -11,7 +11,7 @@ |**currentEpoch** | **BigDecimal** | The current epoch number of the blockchain network. | | |**epochElapsed** | **BigDecimal** | The percentage of time that has elapsed within the current epoch, represented as a decimal value between 0 and 1. | | |**epochDuration** | **BigDecimal** | The total duration in milliseconds of a single epoch. | | -|**additionalInfo** | [**AdditionalInfo**](AdditionalInfo.md) | | | +|**additionalInfo** | [**AdditionalInfoDto**](AdditionalInfoDto.md) | Additional information related to the blockchain. This may include extra details about the blockchain network. | | diff --git a/docs/ChannelDvnConfigWithConfirmations.md b/docs/ChannelDvnConfigWithConfirmations.md deleted file mode 100644 index a1eb4a7c..00000000 --- a/docs/ChannelDvnConfigWithConfirmations.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# ChannelDvnConfigWithConfirmations - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**sendConfig** | [**DvnConfigWithConfirmations**](DvnConfigWithConfirmations.md) | Outbound (source → peer) DVN config with confirmations. | [optional] | -|**receiveConfig** | [**DvnConfigWithConfirmations**](DvnConfigWithConfirmations.md) | Inbound (peer → source) DVN config with confirmations. | [optional] | - - - diff --git a/docs/CollectionBurnRequestDto.md b/docs/CollectionBurnRequestDto.md deleted file mode 100644 index 04791e6b..00000000 --- a/docs/CollectionBurnRequestDto.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# CollectionBurnRequestDto - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**vaultAccountId** | **String** | The id of the vault account that initiates the burn function | | -|**tokenId** | **String** | The token id | | -|**amount** | **String** | For ERC721, amount is optional or should always be 1 and for ERC1155, amount should be 1 or greater | [optional] | - - - diff --git a/docs/CollectionBurnResponseDto.md b/docs/CollectionBurnResponseDto.md deleted file mode 100644 index f53cbe12..00000000 --- a/docs/CollectionBurnResponseDto.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# CollectionBurnResponseDto - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**txId** | **String** | Transaction Id for the burn operation | | - - - diff --git a/docs/CollectionDeployRequestDto.md b/docs/CollectionDeployRequestDto.md deleted file mode 100644 index e95aebdb..00000000 --- a/docs/CollectionDeployRequestDto.md +++ /dev/null @@ -1,19 +0,0 @@ - - -# CollectionDeployRequestDto - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**baseAssetId** | **String** | The blockchain base assetId | | -|**vaultAccountId** | **String** | The id of the vault account that initiated the request to issue the token | | -|**type** | **CollectionType** | | | -|**name** | **String** | A string that represents the name of the collection | | -|**symbol** | **String** | A string that represents the symbol of the collection | | -|**adminAddress** | **String** | The EVM address of the user that will be set as the admin user of the collection | | -|**displayName** | **String** | A string to display as a name of the collection | [optional] | - - - diff --git a/docs/CollectionLinkDto.md b/docs/CollectionLinkDto.md deleted file mode 100644 index 8641264d..00000000 --- a/docs/CollectionLinkDto.md +++ /dev/null @@ -1,26 +0,0 @@ - - -# CollectionLinkDto - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**id** | **String** | The collection id | | -|**status** | [**StatusEnum**](#StatusEnum) | The collection status | | -|**type** | **CollectionType** | | | -|**displayName** | **String** | The display name of the collection. If was not provided, would be taken from the contract template | [optional] | -|**collectionMetadata** | [**CollectionMetadataDto**](CollectionMetadataDto.md) | The collection's metadata | [optional] | - - - -## Enum: StatusEnum - -| Name | Value | -|---- | -----| -| PENDING | "PENDING" | -| COMPLETED | "COMPLETED" | - - - diff --git a/docs/CollectionMintRequestDto.md b/docs/CollectionMintRequestDto.md deleted file mode 100644 index 58a60b2c..00000000 --- a/docs/CollectionMintRequestDto.md +++ /dev/null @@ -1,18 +0,0 @@ - - -# CollectionMintRequestDto - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**vaultAccountId** | **String** | The id of the vault account that initiates the mint function. | | -|**to** | **String** | The EVM address to mint to | | -|**tokenId** | **String** | The token id, recommended to have numerical format and in sequential order | | -|**amount** | **String** | For ERC721, amount is optional or should always be 1 and for ERC1155, amount should be 1 or greater | [optional] | -|**metadataURI** | **String** | URL of metadata uploaded, skip uploading to IPFS if this field is provided with any value | [optional] | -|**metadata** | [**CollectionTokenMetadataDto**](CollectionTokenMetadataDto.md) | Metadata to upload | [optional] | - - - diff --git a/docs/CollectionMintResponseDto.md b/docs/CollectionMintResponseDto.md deleted file mode 100644 index 1a5411c9..00000000 --- a/docs/CollectionMintResponseDto.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# CollectionMintResponseDto - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**txId** | **String** | Transaction Id for the mint operation | | - - - diff --git a/docs/CollectionOwnershipResponse.md b/docs/CollectionOwnershipResponse.md index f956974c..2c6f32d5 100644 --- a/docs/CollectionOwnershipResponse.md +++ b/docs/CollectionOwnershipResponse.md @@ -30,21 +30,6 @@ | XTZ | "XTZ" | | XTZ_TEST | "XTZ_TEST" | | BASECHAIN_ETH | "BASECHAIN_ETH" | -| BASECHAIN_ETH_TEST3 | "BASECHAIN_ETH_TEST3" | -| BASECHAIN_ETH_TEST5 | "BASECHAIN_ETH_TEST5" | -| ETHERLINK | "ETHERLINK" | -| ETHERLINK_TEST | "ETHERLINK_TEST" | -| MANTLE | "MANTLE" | -| MANTLE_TEST | "MANTLE_TEST" | -| GUN_GUNZILLA | "GUN_GUNZILLA" | -| GUN_GUNZILLA_TEST | "GUN_GUNZILLA_TEST" | -| ETH_SONEIUM | "ETH_SONEIUM" | -| SONEIUM_MINATO_TEST | "SONEIUM_MINATO_TEST" | -| IOTX_IOTEX | "IOTX_IOTEX" | -| KLAY_KAIA | "KLAY_KAIA" | -| KLAY_KAIA_TEST | "KLAY_KAIA_TEST" | -| APECHAIN | "APECHAIN" | -| APECHAIN_TEST | "APECHAIN_TEST" | diff --git a/docs/CollectionTokenMetadataAttributeDto.md b/docs/CollectionTokenMetadataAttributeDto.md deleted file mode 100644 index b29f53ae..00000000 --- a/docs/CollectionTokenMetadataAttributeDto.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# CollectionTokenMetadataAttributeDto - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**traitType** | **String** | Name of the trait | | -|**value** | **String** | Value of the trait | | -|**displayType** | **String** | A field indicating how you would like trait to be displayed | [optional] | - - - diff --git a/docs/CollectionTokenMetadataDto.md b/docs/CollectionTokenMetadataDto.md deleted file mode 100644 index 425683bb..00000000 --- a/docs/CollectionTokenMetadataDto.md +++ /dev/null @@ -1,18 +0,0 @@ - - -# CollectionTokenMetadataDto - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**name** | **String** | Token's name | | -|**description** | **String** | Token's description | | -|**image** | **String** | Token's image URL | [optional] | -|**animationUrl** | **String** | Token's animation URL | [optional] | -|**externalUrl** | **String** | Token's external URL | [optional] | -|**attributes** | [**List<CollectionTokenMetadataAttributeDto>**](CollectionTokenMetadataAttributeDto.md) | Token's metadata attributes | [optional] | - - - diff --git a/docs/CollectionType.md b/docs/CollectionType.md deleted file mode 100644 index e17a77aa..00000000 --- a/docs/CollectionType.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# CollectionType - -## Enum - - -* `NON_FUNGIBLE_TOKEN` (value: `"NON_FUNGIBLE_TOKEN"`) - -* `SEMI_FUNGIBLE_TOKEN` (value: `"SEMI_FUNGIBLE_TOKEN"`) - - - diff --git a/docs/CommittedQuoteType.md b/docs/CommittedQuoteType.md deleted file mode 100644 index a14fda20..00000000 --- a/docs/CommittedQuoteType.md +++ /dev/null @@ -1,22 +0,0 @@ - - -# CommittedQuoteType - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**type** | [**TypeEnum**](#TypeEnum) | Indicates this is a committed quote | | -|**expiresAt** | **OffsetDateTime** | ISO 8601 timestamp of the expiration time of the quote. | | - - - -## Enum: TypeEnum - -| Name | Value | -|---- | -----| -| COMMITTED | "COMMITTED" | - - - diff --git a/docs/ComplianceApi.md b/docs/ComplianceApi.md index 88b74211..cdcb7d34 100644 --- a/docs/ComplianceApi.md +++ b/docs/ComplianceApi.md @@ -7,10 +7,7 @@ All URIs are relative to https://developers.fireblocks.com/reference/ | [**getAmlPostScreeningPolicy**](ComplianceApi.md#getAmlPostScreeningPolicy) | **GET** /screening/aml/post_screening_policy | AML - View Post-Screening Policy | | [**getAmlScreeningPolicy**](ComplianceApi.md#getAmlScreeningPolicy) | **GET** /screening/aml/screening_policy | AML - View Screening Policy | | [**getPostScreeningPolicy**](ComplianceApi.md#getPostScreeningPolicy) | **GET** /screening/travel_rule/post_screening_policy | Travel Rule - View Post-Screening Policy | -| [**getScreeningFullDetails**](ComplianceApi.md#getScreeningFullDetails) | **GET** /screening/transaction/{txId} | Provides all the compliance details for the given screened transaction. | | [**getScreeningPolicy**](ComplianceApi.md#getScreeningPolicy) | **GET** /screening/travel_rule/screening_policy | Travel Rule - View Screening Policy | -| [**retryRejectedTransactionBypassScreeningChecks**](ComplianceApi.md#retryRejectedTransactionBypassScreeningChecks) | **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 | -| [**setAmlVerdict**](ComplianceApi.md#setAmlVerdict) | **POST** /screening/aml/verdict/manual | Set AML Verdict for Manual Screening Verdict. | | [**updateAmlScreeningConfiguration**](ComplianceApi.md#updateAmlScreeningConfiguration) | **PUT** /screening/aml/policy_configuration | Update AML Configuration | | [**updateScreeningConfiguration**](ComplianceApi.md#updateScreeningConfiguration) | **PUT** /screening/configurations | Tenant - Screening Configuration | | [**updateTravelRuleConfig**](ComplianceApi.md#updateTravelRuleConfig) | **PUT** /screening/travel_rule/policy_configuration | Update Travel Rule Configuration | @@ -251,89 +248,6 @@ No authorization required | **200** | Post-screening policy retrieved successfully. | - | -## getScreeningFullDetails - -> CompletableFuture> getScreeningFullDetails getScreeningFullDetails(txId) - -Provides all the compliance details for the given screened transaction. - -Provides all the compliance details for the given screened transaction. - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.ComplianceApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - String txId = "550e8400-e29b-41d4-a716-446655440000"; // String | Fireblocks transaction ID of the screened transaction - try { - CompletableFuture> response = fireblocks.compliance().getScreeningFullDetails(txId); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling ComplianceApi#getScreeningFullDetails"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling ComplianceApi#getScreeningFullDetails"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **txId** | **String**| Fireblocks transaction ID of the screened transaction | | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | A compliance object | * X-Request-ID -
| -| **0** | Error Response | * X-Request-ID -
| - - ## getScreeningPolicy > CompletableFuture> getScreeningPolicy getScreeningPolicy() @@ -412,179 +326,6 @@ No authorization required | **200** | Screening policy retrieved successfully. | - | -## retryRejectedTransactionBypassScreeningChecks - -> CompletableFuture> retryRejectedTransactionBypassScreeningChecks retryRejectedTransactionBypassScreeningChecks(txId, idempotencyKey) - -Calling the \"Bypass Screening Policy\" API endpoint triggers a new transaction, with the API user as the initiator, bypassing the screening policy check - -This endpoint is restricted to Admin API users and is only applicable to outgoing transactions. - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.ComplianceApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - String txId = "550e8400-e29b-41d4-a716-446655440000"; // String | The transaction id that was rejected by screening checks - String idempotencyKey = "idempotencyKey_example"; // String | 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. - try { - CompletableFuture> response = fireblocks.compliance().retryRejectedTransactionBypassScreeningChecks(txId, idempotencyKey); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling ComplianceApi#retryRejectedTransactionBypassScreeningChecks"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling ComplianceApi#retryRejectedTransactionBypassScreeningChecks"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **txId** | **String**| The transaction id that was rejected by screening checks | | -| **idempotencyKey** | **String**| 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. | [optional] | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **201** | A transaction object | * X-Request-ID -
| -| **0** | Error Response | * X-Request-ID -
| - - -## setAmlVerdict - -> CompletableFuture> setAmlVerdict setAmlVerdict(amlVerdictManualRequest, idempotencyKey) - -Set AML Verdict for Manual Screening Verdict. - -Set AML verdict for incoming transactions when Manual Screening Verdict feature is enabled. - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.ComplianceApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - AmlVerdictManualRequest amlVerdictManualRequest = new AmlVerdictManualRequest(); // AmlVerdictManualRequest | - String idempotencyKey = "idempotencyKey_example"; // String | 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. - try { - CompletableFuture> response = fireblocks.compliance().setAmlVerdict(amlVerdictManualRequest, idempotencyKey); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling ComplianceApi#setAmlVerdict"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling ComplianceApi#setAmlVerdict"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **amlVerdictManualRequest** | [**AmlVerdictManualRequest**](AmlVerdictManualRequest.md)| | | -| **idempotencyKey** | **String**| 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. | [optional] | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | AML verdict set successfully. | - | -| **400** | Feature not enabled for tenant. | * X-Request-ID -
| -| **425** | Too Early - transaction not yet in pending screening. | * X-Request-ID -
| -| **500** | Internal server error. | * X-Request-ID -
| -| **0** | Error Response | * X-Request-ID -
| - - ## updateAmlScreeningConfiguration > CompletableFuture> updateAmlScreeningConfiguration updateAmlScreeningConfiguration(idempotencyKey) @@ -669,7 +410,7 @@ No authorization required ## updateScreeningConfiguration -> CompletableFuture> updateScreeningConfiguration updateScreeningConfiguration(screeningUpdateConfigurations, idempotencyKey) +> CompletableFuture> updateScreeningConfiguration updateScreeningConfiguration(idempotencyKey) Tenant - Screening Configuration @@ -698,10 +439,9 @@ public class Example { .secretKey("my-secret-key"); Fireblocks fireblocks = new Fireblocks(configurationOptions); - ScreeningUpdateConfigurations screeningUpdateConfigurations = new ScreeningUpdateConfigurations(); // ScreeningUpdateConfigurations | String idempotencyKey = "idempotencyKey_example"; // String | 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. try { - CompletableFuture> response = fireblocks.compliance().updateScreeningConfiguration(screeningUpdateConfigurations, idempotencyKey); + CompletableFuture> response = fireblocks.compliance().updateScreeningConfiguration(idempotencyKey); System.out.println("Status code: " + response.get().getStatusCode()); System.out.println("Response headers: " + response.get().getHeaders()); System.out.println("Response body: " + response.get().getData()); @@ -728,12 +468,11 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **screeningUpdateConfigurations** | [**ScreeningUpdateConfigurations**](ScreeningUpdateConfigurations.md)| | | | **idempotencyKey** | **String**| 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. | [optional] | ### Return type -CompletableFuture> +CompletableFuture> ### Authorization @@ -742,7 +481,7 @@ No authorization required ### HTTP request headers -- **Content-Type**: application/json +- **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details diff --git a/docs/ComplianceResult.md b/docs/ComplianceResult.md new file mode 100644 index 00000000..39fd6ce8 --- /dev/null +++ b/docs/ComplianceResult.md @@ -0,0 +1,49 @@ + + +# ComplianceResult + +The result of the Compliance AML/Travel Rule screening. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**aml** | [**List<ComplianceScreeningResult>**](ComplianceScreeningResult.md) | The end result of the AML screening. | [optional] | +|**tr** | [**List<ComplianceScreeningResult>**](ComplianceScreeningResult.md) | The result of the Travel Rule screening. | [optional] | +|**amlList** | [**List<ComplianceScreeningResult>**](ComplianceScreeningResult.md) | The list of all results of the AML screening. | [optional] | +|**status** | [**StatusEnum**](#StatusEnum) | Status of compliance result screening. | [optional] | +|**amlRegistration** | [**List<AmlRegistrationResult>**](AmlRegistrationResult.md) | The results of the AML address registration. | [optional] | + + + +## Enum: StatusEnum + +| Name | Value | +|---- | -----| +| STARTED | "Started" | +| AML_STARTED | "AMLStarted" | +| AML_COMPLETED | "AMLCompleted" | +| AML_FAILED | "AMLFailed" | +| AMLIN_BACKGROUND | "AMLInBackground" | +| TR_STARTED | "TRStarted" | +| TR_COMPLETED | "TRCompleted" | +| TR_FAILED | "TRFailed" | +| COMPLETED | "Completed" | +| REGISTRATION_STARTED | "RegistrationStarted" | +| AML_REGISTRATION_STARTED | "AMLRegistrationStarted" | +| AML_REGISTRATION_COMPLETED | "AMLRegistrationCompleted" | +| TR_UPDATE_STARTED | "TRUpdateStarted" | +| TR_UPDATE_COMPLETED | "TRUpdateCompleted" | +| UPDATE_COMPLETED | "UpdateCompleted" | +| INCOMING_STARTED | "IncomingStarted" | +| AML_INCOMING_STARTED | "AMLIncomingStarted" | +| AML_INCOMING_COMPLETED | "AMLIncomingCompleted" | +| AML_INCOMING_FAILED | "AMLIncomingFailed" | +| AML_INCOMING_IN_BACKGROUND | "AMLIncomingInBackground" | +| TR_INCOMING_STARTED | "TRIncomingStarted" | +| TR_INCOMING_COMPLETED | "TRIncomingCompleted" | +| TR_INCOMING_FAILED | "TRIncomingFailed" | +| INCOMING_COMPLETED | "IncomingCompleted" | + + + diff --git a/docs/ComplianceResultFullPayload.md b/docs/ComplianceResultFullPayload.md deleted file mode 100644 index 0af47384..00000000 --- a/docs/ComplianceResultFullPayload.md +++ /dev/null @@ -1,18 +0,0 @@ - - -# ComplianceResultFullPayload - -The result of the Compliance AML/Travel Rule screening. - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**aml** | [**ComplianceScreeningResultFullPayload**](ComplianceScreeningResultFullPayload.md) | | [optional] | -|**tr** | [**ComplianceScreeningResultFullPayload**](ComplianceScreeningResultFullPayload.md) | | [optional] | -|**amlList** | [**List<ComplianceScreeningResultFullPayload>**](ComplianceScreeningResultFullPayload.md) | The list of all results of the AML screening. | [optional] | -|**status** | **ComplianceResultStatusesEnum** | | [optional] | -|**amlRegistration** | [**AmlRegistrationResultFullPayload**](AmlRegistrationResultFullPayload.md) | | [optional] | - - - diff --git a/docs/ComplianceResultStatusesEnum.md b/docs/ComplianceResultStatusesEnum.md deleted file mode 100644 index b9b7c830..00000000 --- a/docs/ComplianceResultStatusesEnum.md +++ /dev/null @@ -1,55 +0,0 @@ - - -# ComplianceResultStatusesEnum - -## Enum - - -* `STARTED` (value: `"Started"`) - -* `NETWORK_CONNECTION_ADDRESS_RESOLVE` (value: `"NetworkConnectionAddressResolve"`) - -* `SCREENING_PREPARE` (value: `"ScreeningPrepare"`) - -* `AML_STARTED` (value: `"AMLStarted"`) - -* `AML_COMPLETED` (value: `"AMLCompleted"`) - -* `AML_FAILED` (value: `"AMLFailed"`) - -* `AMLIN_BACKGROUND` (value: `"AMLInBackground"`) - -* `TR_PRECONDITION_CHECKS` (value: `"TRPreconditionChecks"`) - -* `TR_STARTED` (value: `"TRStarted"`) - -* `TR_COMPLETED` (value: `"TRCompleted"`) - -* `TR_FAILED` (value: `"TRFailed"`) - -* `COMPLETED` (value: `"Completed"`) - -* `INCOMING_STARTED` (value: `"IncomingStarted"`) - -* `INCOMING_SCREENING_PREPARE` (value: `"IncomingScreeningPrepare"`) - -* `INCOMING_WAIT_FOR_FIRST_CONFIRMATION` (value: `"IncomingWaitForFirstConfirmation"`) - -* `AML_INCOMING_STARTED` (value: `"AMLIncomingStarted"`) - -* `AML_INCOMING_COMPLETED` (value: `"AMLIncomingCompleted"`) - -* `AML_INCOMING_FAILED` (value: `"AMLIncomingFailed"`) - -* `AML_INCOMING_IN_BACKGROUND` (value: `"AMLIncomingInBackground"`) - -* `TR_INCOMING_STARTED` (value: `"TRIncomingStarted"`) - -* `TR_INCOMING_COMPLETED` (value: `"TRIncomingCompleted"`) - -* `TR_INCOMING_FAILED` (value: `"TRIncomingFailed"`) - -* `INCOMING_COMPLETED` (value: `"IncomingCompleted"`) - - - diff --git a/docs/ComplianceResults.md b/docs/ComplianceResults.md deleted file mode 100644 index 24db872c..00000000 --- a/docs/ComplianceResults.md +++ /dev/null @@ -1,18 +0,0 @@ - - -# ComplianceResults - -The result of the Compliance AML/Travel Rule screening. - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**aml** | [**ComplianceScreeningResult**](ComplianceScreeningResult.md) | | [optional] | -|**tr** | [**ComplianceScreeningResult**](ComplianceScreeningResult.md) | | [optional] | -|**amlList** | [**List<ComplianceScreeningResult>**](ComplianceScreeningResult.md) | The list of all results of the AML screening. | [optional] | -|**status** | **ComplianceResultStatusesEnum** | | [optional] | -|**amlRegistration** | [**AmlRegistrationResult**](AmlRegistrationResult.md) | | [optional] | - - - diff --git a/docs/ComplianceScreeningResultFullPayload.md b/docs/ComplianceScreeningResultFullPayload.md deleted file mode 100644 index cab44711..00000000 --- a/docs/ComplianceScreeningResultFullPayload.md +++ /dev/null @@ -1,30 +0,0 @@ - - -# ComplianceScreeningResultFullPayload - -The result of the Travel Rule screening. - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**provider** | **String** | | [optional] | -|**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] | -|**bypassReason** | **String** | | [optional] | -|**screeningStatus** | [**ScreeningStatusEnum**](#ScreeningStatusEnum) | | [optional] | -|**timestamp** | **BigDecimal** | | [optional] | - - - -## Enum: ScreeningStatusEnum - -| Name | Value | -|---- | -----| -| COMPLETED | "COMPLETED" | -| PENDING | "PENDING" | -| BYPASSED | "BYPASSED" | -| FAILED | "FAILED" | -| FROZEN | "FROZEN" | - - - diff --git a/docs/ConnectedAccount.md b/docs/ConnectedAccount.md deleted file mode 100644 index efa39d39..00000000 --- a/docs/ConnectedAccount.md +++ /dev/null @@ -1,19 +0,0 @@ - - -# ConnectedAccount - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**id** | **String** | Unique identifier of the connected account. | | -|**name** | **String** | Human-readable name of the connected account. | | -|**providerId** | **String** | The ID of the venue the account belongs to. | | -|**status** | **ConnectedAccountApprovalStatus** | | | -|**totalBalance** | [**ConnectedAccountTotalBalance**](ConnectedAccountTotalBalance.md) | | | -|**manifest** | [**ConnectedAccountManifest**](ConnectedAccountManifest.md) | | | -|**parentId** | **String** | The ID of the parent main account, if this is a sub account. | [optional] | - - - diff --git a/docs/ConnectedAccountApprovalStatus.md b/docs/ConnectedAccountApprovalStatus.md deleted file mode 100644 index 4c5a5242..00000000 --- a/docs/ConnectedAccountApprovalStatus.md +++ /dev/null @@ -1,19 +0,0 @@ - - -# ConnectedAccountApprovalStatus - -## Enum - - -* `WAITING_FOR_APPROVAL` (value: `"WAITING_FOR_APPROVAL"`) - -* `APPROVED` (value: `"APPROVED"`) - -* `REJECTED` (value: `"REJECTED"`) - -* `CANCELLED` (value: `"CANCELLED"`) - -* `FAILED` (value: `"FAILED"`) - - - diff --git a/docs/ConnectedAccountAssetType.md b/docs/ConnectedAccountAssetType.md deleted file mode 100644 index e8f2ea8d..00000000 --- a/docs/ConnectedAccountAssetType.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# ConnectedAccountAssetType - -## Enum - - -* `DIGITAL` (value: `"DIGITAL"`) - -* `FIAT` (value: `"FIAT"`) - - - diff --git a/docs/ConnectedAccountBalances.md b/docs/ConnectedAccountBalances.md deleted file mode 100644 index caf70c17..00000000 --- a/docs/ConnectedAccountBalances.md +++ /dev/null @@ -1,19 +0,0 @@ - - -# ConnectedAccountBalances - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**assetId** | **String** | Asset identifier (e.g., BTC, ETH, USDC). | | -|**availableAmount** | **String** | Amount available for use. | | -|**totalAmount** | **String** | Total amount including locked/held balances. | | -|**lockedAmount** | **String** | Amount currently locked/held. | [optional] | -|**creditAmount** | **String** | Credit line amount, if applicable (0 when not used). | [optional] | -|**balanceType** | **String** | Wallet type/category (e.g., SPOT, MARGIN, FUNDING). | | -|**balanceName** | **String** | Display name for the balance type (at the provider) | [optional] | - - - diff --git a/docs/ConnectedAccountBalancesResponse.md b/docs/ConnectedAccountBalancesResponse.md deleted file mode 100644 index 8d33b5c0..00000000 --- a/docs/ConnectedAccountBalancesResponse.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# ConnectedAccountBalancesResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**data** | [**List<ConnectedAccountBalances>**](ConnectedAccountBalances.md) | Flat balance row for a single asset within an account and wallet type. One row per (assetId, balanceType). | | -|**total** | **Integer** | Total number of balance rows by query. | [optional] | -|**next** | **String** | A cursor for the next page of results, if available. | [optional] | - - - diff --git a/docs/ConnectedAccountCapability.md b/docs/ConnectedAccountCapability.md deleted file mode 100644 index b8cafc9c..00000000 --- a/docs/ConnectedAccountCapability.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# ConnectedAccountCapability - -## Enum - - -* `WITHDRAWALS` (value: `"WITHDRAWALS"`) - -* `DEPOSITS` (value: `"DEPOSITS"`) - -* `TRADING` (value: `"TRADING"`) - - - diff --git a/docs/ConnectedAccountManifest.md b/docs/ConnectedAccountManifest.md deleted file mode 100644 index 7fc338f7..00000000 --- a/docs/ConnectedAccountManifest.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# ConnectedAccountManifest - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**assetTypes** | **List<ConnectedAccountAssetType>** | Asset types supported by the connected account. | | -|**capabilities** | **List<ConnectedAccountCapability>** | Features supported for the connected account. Logic: - If account capabilities include ramp -> TRADING - If account capabilities include transfers -> DEPOSITS - If account capabilities include transfersBlockchain / transfersFiat / transfersPeerAccounts / transfersInternal -> WITHDRAWALS | | - - - diff --git a/docs/ConnectedAccountRateResponse.md b/docs/ConnectedAccountRateResponse.md deleted file mode 100644 index 313037d8..00000000 --- a/docs/ConnectedAccountRateResponse.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# ConnectedAccountRateResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**accountId** | **String** | The ID of the account that generated the quote. | | -|**baseAssetId** | **String** | The source asset identifier | | -|**quoteAssetId** | **String** | The target asset identifier | | -|**rate** | **String** | The exchange rate value | | - - - diff --git a/docs/ConnectedAccountTotalBalance.md b/docs/ConnectedAccountTotalBalance.md deleted file mode 100644 index 47871eaf..00000000 --- a/docs/ConnectedAccountTotalBalance.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# ConnectedAccountTotalBalance - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**amount** | **String** | The denominated currency value of the account. | | -|**denominatedAssetId** | **String** | The asset ID of the total balance. | | -|**hasFullAssetCoverage** | **Boolean** | Indicates whether the total amount represents the complete balance of all assets in the account. When true, all asset balances have been successfully converted to the denominated currency. When false, some assets could not be included in the total due to missing exchange rates or non-convertible assets. | | - - - diff --git a/docs/ConnectedAccountTradingPair.md b/docs/ConnectedAccountTradingPair.md deleted file mode 100644 index 4b4e32c4..00000000 --- a/docs/ConnectedAccountTradingPair.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# ConnectedAccountTradingPair - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**id** | **String** | The ID of the trading pair. | | -|**baseAssetId** | **String** | The Symbol of the base asset. | | -|**quoteAssetId** | **String** | The symbol of the quote asset. | | -|**supportedTypes** | **List<ConnectedAccountTradingPairSupportedType>** | | | - - - diff --git a/docs/ConnectedAccountTradingPairSupportedType.md b/docs/ConnectedAccountTradingPairSupportedType.md deleted file mode 100644 index 65ce9a2b..00000000 --- a/docs/ConnectedAccountTradingPairSupportedType.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# ConnectedAccountTradingPairSupportedType - -## Enum - - -* `QUOTE` (value: `"QUOTE"`) - -* `MARKET` (value: `"MARKET"`) - -* `LIMIT` (value: `"LIMIT"`) - - - diff --git a/docs/ConnectedAccountTradingPairsResponse.md b/docs/ConnectedAccountTradingPairsResponse.md deleted file mode 100644 index 6ef190fd..00000000 --- a/docs/ConnectedAccountTradingPairsResponse.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# ConnectedAccountTradingPairsResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**data** | [**List<ConnectedAccountTradingPair>**](ConnectedAccountTradingPair.md) | | | -|**total** | **Integer** | Total number of asset pairs matching the query. | [optional] | -|**next** | **String** | A cursor for the next page of results, if available. | [optional] | - - - diff --git a/docs/ConnectedAccountsBetaApi.md b/docs/ConnectedAccountsBetaApi.md deleted file mode 100644 index 88bdd8c8..00000000 --- a/docs/ConnectedAccountsBetaApi.md +++ /dev/null @@ -1,444 +0,0 @@ -# ConnectedAccountsBetaApi - -All URIs are relative to https://developers.fireblocks.com/reference/ - -| Method | HTTP request | Description | -|------------- | ------------- | -------------| -| [**getConnectedAccount**](ConnectedAccountsBetaApi.md#getConnectedAccount) | **GET** /connected_accounts/{accountId} | Get connected account | -| [**getConnectedAccountBalances**](ConnectedAccountsBetaApi.md#getConnectedAccountBalances) | **GET** /connected_accounts/{accountId}/balances | Get balances for an account | -| [**getConnectedAccountRates**](ConnectedAccountsBetaApi.md#getConnectedAccountRates) | **GET** /connected_accounts/{accountId}/rates | Get exchange rates for an account | -| [**getConnectedAccountTradingPairs**](ConnectedAccountsBetaApi.md#getConnectedAccountTradingPairs) | **GET** /connected_accounts/{accountId}/manifest/capabilities/trading/pairs | Get supported trading pairs for an account | -| [**getConnectedAccounts**](ConnectedAccountsBetaApi.md#getConnectedAccounts) | **GET** /connected_accounts | Get connected accounts | - - - -## getConnectedAccount - -> CompletableFuture> getConnectedAccount getConnectedAccount(accountId) - -Get connected account - -Retrieve detailed information about a specific connected account by ID. </br> **Note**: - This endpoint is currently in beta and might be subject to changes. - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.ConnectedAccountsBetaApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - String accountId = "accountId_example"; // String | The ID of the account to fetch. - try { - CompletableFuture> response = fireblocks.connectedAccountsBeta().getConnectedAccount(accountId); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling ConnectedAccountsBetaApi#getConnectedAccount"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling ConnectedAccountsBetaApi#getConnectedAccount"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **accountId** | **String**| The ID of the account to fetch. | | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Account response | * X-Request-ID -
| -| **0** | Error Response | * X-Request-ID -
| - - -## getConnectedAccountBalances - -> CompletableFuture> getConnectedAccountBalances getConnectedAccountBalances(accountId, pageSize, pageCursor) - -Get balances for an account - -Retrieve current asset balances for a specific connected account as a flat list (one row per assetId, balanceType) </br> **Note**: - This endpoint is currently in beta and might be subject to changes. - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.ConnectedAccountsBetaApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - String accountId = "accountId_example"; // String | The ID of the account to fetch balances for. - Integer pageSize = 56; // Integer | Page size for pagination. - String pageCursor = "pageCursor_example"; // String | Page cursor for pagination. - try { - CompletableFuture> response = fireblocks.connectedAccountsBeta().getConnectedAccountBalances(accountId, pageSize, pageCursor); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling ConnectedAccountsBetaApi#getConnectedAccountBalances"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling ConnectedAccountsBetaApi#getConnectedAccountBalances"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **accountId** | **String**| The ID of the account to fetch balances for. | | -| **pageSize** | **Integer**| Page size for pagination. | [optional] | -| **pageCursor** | **String**| Page cursor for pagination. | [optional] | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Account balances response | * X-Request-ID -
| -| **0** | Error Response | * X-Request-ID -
| - - -## getConnectedAccountRates - -> CompletableFuture> getConnectedAccountRates getConnectedAccountRates(accountId, baseAssetId, quoteAssetId) - -Get exchange rates for an account - -Retrieve current exchange rates for converting between specific assets in a connected account. - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.ConnectedAccountsBetaApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - String accountId = "accountId_example"; // String | The ID of the account to fetch rates for. - String baseAssetId = "baseAssetId_example"; // String | The ID of the asset to fetch rates for. - String quoteAssetId = "quoteAssetId_example"; // String | The ID of the asset to get the rates nominally. - try { - CompletableFuture> response = fireblocks.connectedAccountsBeta().getConnectedAccountRates(accountId, baseAssetId, quoteAssetId); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling ConnectedAccountsBetaApi#getConnectedAccountRates"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling ConnectedAccountsBetaApi#getConnectedAccountRates"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **accountId** | **String**| The ID of the account to fetch rates for. | | -| **baseAssetId** | **String**| The ID of the asset to fetch rates for. | | -| **quoteAssetId** | **String**| The ID of the asset to get the rates nominally. | | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Rates response | * X-Request-ID -
| -| **0** | Error Response | * X-Request-ID -
| - - -## getConnectedAccountTradingPairs - -> CompletableFuture> getConnectedAccountTradingPairs getConnectedAccountTradingPairs(accountId, pageSize, pageCursor) - -Get supported trading pairs for an account - -Retrieve all asset trading pairs supported by a specific connected account, including the pair type (quote, market, onOffRamp). - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.ConnectedAccountsBetaApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - String accountId = "accountId_example"; // String | The ID of the account to fetch supported pairs for. - Integer pageSize = 100; // Integer | Page size for pagination. - String pageCursor = "pageCursor_example"; // String | Page cursor for pagination. - try { - CompletableFuture> response = fireblocks.connectedAccountsBeta().getConnectedAccountTradingPairs(accountId, pageSize, pageCursor); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling ConnectedAccountsBetaApi#getConnectedAccountTradingPairs"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling ConnectedAccountsBetaApi#getConnectedAccountTradingPairs"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **accountId** | **String**| The ID of the account to fetch supported pairs for. | | -| **pageSize** | **Integer**| Page size for pagination. | [optional] [default to 100] | -| **pageCursor** | **String**| Page cursor for pagination. | [optional] | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Supported pairs response | * X-Request-ID -
| -| **0** | Error Response | * X-Request-ID -
| - - -## getConnectedAccounts - -> CompletableFuture> getConnectedAccounts getConnectedAccounts(mainAccounts, pageSize, pageCursor) - -Get connected accounts - -Returns all connected accounts </br> **Note**: - This endpoint is currently in beta and might be subject to changes. - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.ConnectedAccountsBetaApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - Boolean mainAccounts = false; // Boolean | Whether to include only main accounts in the response. - Integer pageSize = 56; // Integer | Page size for pagination. - String pageCursor = "pageCursor_example"; // String | Page cursor for pagination. - try { - CompletableFuture> response = fireblocks.connectedAccountsBeta().getConnectedAccounts(mainAccounts, pageSize, pageCursor); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling ConnectedAccountsBetaApi#getConnectedAccounts"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling ConnectedAccountsBetaApi#getConnectedAccounts"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **mainAccounts** | **Boolean**| Whether to include only main accounts in the response. | [optional] [default to false] | -| **pageSize** | **Integer**| Page size for pagination. | [optional] | -| **pageCursor** | **String**| Page cursor for pagination. | [optional] | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Get accounts response | * X-Request-ID -
| -| **0** | Error Response | * X-Request-ID -
| - diff --git a/docs/ConnectedAccountsResponse.md b/docs/ConnectedAccountsResponse.md deleted file mode 100644 index 443f61b8..00000000 --- a/docs/ConnectedAccountsResponse.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# ConnectedAccountsResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**data** | [**List<ConnectedAccount>**](ConnectedAccount.md) | List of connected accounts matching the query. | | -|**total** | **Integer** | Total number of accounts by query. | [optional] | -|**next** | **String** | A cursor for the next page of results, if available. | [optional] | - - - diff --git a/docs/ConnectedSingleAccount.md b/docs/ConnectedSingleAccount.md deleted file mode 100644 index e836e24f..00000000 --- a/docs/ConnectedSingleAccount.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# ConnectedSingleAccount - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**subAccountsIds** | **List<String>** | IDs of sub-accounts associated with this connected account. | [optional] | - - - diff --git a/docs/ConnectedSingleAccountResponse.md b/docs/ConnectedSingleAccountResponse.md deleted file mode 100644 index 3a095d75..00000000 --- a/docs/ConnectedSingleAccountResponse.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# ConnectedSingleAccountResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**id** | **String** | Unique identifier of the connected account. | | -|**name** | **String** | Human-readable name of the connected account. | | -|**providerId** | **String** | The ID of the venue the account belongs to. | | -|**status** | **ConnectedAccountApprovalStatus** | | | -|**totalBalance** | [**ConnectedAccountTotalBalance**](ConnectedAccountTotalBalance.md) | | | -|**manifest** | [**ConnectedAccountManifest**](ConnectedAccountManifest.md) | | | -|**parentId** | **String** | The ID of the parent main account, if this is a sub account. | [optional] | -|**subAccountsIds** | **List<String>** | IDs of sub-accounts associated with this connected account. | [optional] | - - - diff --git a/docs/ContractAbiResponseDto.md b/docs/ContractAbiResponseDto.md index 41cf5a1b..901458cd 100644 --- a/docs/ContractAbiResponseDto.md +++ b/docs/ContractAbiResponseDto.md @@ -7,7 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**abi** | [**List<ContractAbiResponseDtoAbiInner>**](ContractAbiResponseDtoAbiInner.md) | The abi of the contract | | +|**abi** | [**List<AbiFunction>**](AbiFunction.md) | The abi of the contract | | |**implementationAbi** | [**List<AbiFunction>**](AbiFunction.md) | The abi of the implementation contract if exists. Relevant only for proxy patterns | [optional] | diff --git a/docs/ContractAbiResponseDtoAbiInner.md b/docs/ContractAbiResponseDtoAbiInner.md deleted file mode 100644 index a8d2b8cf..00000000 --- a/docs/ContractAbiResponseDtoAbiInner.md +++ /dev/null @@ -1,37 +0,0 @@ - - -# ContractAbiResponseDtoAbiInner - -## oneOf schemas -* [AbiFunction](AbiFunction.md) -* [SolanaInstruction](SolanaInstruction.md) - -## Example -```java -// Import classes: -import com.fireblocks.sdk.model.ContractAbiResponseDtoAbiInner; -import com.fireblocks.sdk.model.AbiFunction; -import com.fireblocks.sdk.model.SolanaInstruction; - -public class Example { - public static void main(String[] args) { - ContractAbiResponseDtoAbiInner exampleContractAbiResponseDtoAbiInner = new ContractAbiResponseDtoAbiInner(); - - // create a new AbiFunction - AbiFunction exampleAbiFunction = new AbiFunction(); - // set ContractAbiResponseDtoAbiInner to AbiFunction - exampleContractAbiResponseDtoAbiInner.setActualInstance(exampleAbiFunction); - // to get back the AbiFunction set earlier - AbiFunction testAbiFunction = (AbiFunction) exampleContractAbiResponseDtoAbiInner.getActualInstance(); - - // create a new SolanaInstruction - SolanaInstruction exampleSolanaInstruction = new SolanaInstruction(); - // set ContractAbiResponseDtoAbiInner to SolanaInstruction - exampleContractAbiResponseDtoAbiInner.setActualInstance(exampleSolanaInstruction); - // to get back the SolanaInstruction set earlier - SolanaInstruction testSolanaInstruction = (SolanaInstruction) exampleContractAbiResponseDtoAbiInner.getActualInstance(); - } -} -``` - - diff --git a/docs/ContractDataDecodeDataType.md b/docs/ContractDataDecodeDataType.md deleted file mode 100644 index 34376662..00000000 --- a/docs/ContractDataDecodeDataType.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# ContractDataDecodeDataType - -## Enum - - -* `ERROR` (value: `"ERROR"`) - -* `LOG` (value: `"LOG"`) - -* `FUNCTION` (value: `"FUNCTION"`) - - - diff --git a/docs/ContractDataDecodeError.md b/docs/ContractDataDecodeError.md deleted file mode 100644 index c08a4296..00000000 --- a/docs/ContractDataDecodeError.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# ContractDataDecodeError - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**message** | **String** | Bad request error message | | -|**code** | **BigDecimal** | Error code | | - - - diff --git a/docs/ContractDataDecodeRequest.md b/docs/ContractDataDecodeRequest.md deleted file mode 100644 index aac9e9d5..00000000 --- a/docs/ContractDataDecodeRequest.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# ContractDataDecodeRequest - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**data** | [**ContractDataDecodeRequestData**](ContractDataDecodeRequestData.md) | | | -|**dataType** | **ContractDataDecodeDataType** | | | -|**abi** | [**List<AbiFunction>**](AbiFunction.md) | The abi of the function/error/log to decode. | [optional] | - - - diff --git a/docs/ContractDataDecodeRequestData.md b/docs/ContractDataDecodeRequestData.md deleted file mode 100644 index 09381ec4..00000000 --- a/docs/ContractDataDecodeRequestData.md +++ /dev/null @@ -1,39 +0,0 @@ - - -# ContractDataDecodeRequestData - -The data to decode, which can be a string or an object containing the data and its type. - -## oneOf schemas -* [ContractDataLogDataParam](ContractDataLogDataParam.md) -* [String](String.md) - -## Example -```java -// Import classes: -import com.fireblocks.sdk.model.ContractDataDecodeRequestData; -import com.fireblocks.sdk.model.ContractDataLogDataParam; -import com.fireblocks.sdk.model.String; - -public class Example { - public static void main(String[] args) { - ContractDataDecodeRequestData exampleContractDataDecodeRequestData = new ContractDataDecodeRequestData(); - - // create a new ContractDataLogDataParam - ContractDataLogDataParam exampleContractDataLogDataParam = new ContractDataLogDataParam(); - // set ContractDataDecodeRequestData to ContractDataLogDataParam - exampleContractDataDecodeRequestData.setActualInstance(exampleContractDataLogDataParam); - // to get back the ContractDataLogDataParam set earlier - ContractDataLogDataParam testContractDataLogDataParam = (ContractDataLogDataParam) exampleContractDataDecodeRequestData.getActualInstance(); - - // create a new String - String exampleString = new String(); - // set ContractDataDecodeRequestData to String - exampleContractDataDecodeRequestData.setActualInstance(exampleString); - // to get back the String set earlier - String testString = (String) exampleContractDataDecodeRequestData.getActualInstance(); - } -} -``` - - diff --git a/docs/ContractDataDecodeResponseParams.md b/docs/ContractDataDecodeResponseParams.md deleted file mode 100644 index 7f34df16..00000000 --- a/docs/ContractDataDecodeResponseParams.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# ContractDataDecodeResponseParams - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**name** | **String** | The name of the contract function. | | -|**signature** | **String** | The signature of the contract function. | | -|**args** | [**List<ParameterWithValue>**](ParameterWithValue.md) | | | - - - diff --git a/docs/ContractDataDecodedResponse.md b/docs/ContractDataDecodedResponse.md deleted file mode 100644 index d1ef2b09..00000000 --- a/docs/ContractDataDecodedResponse.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# ContractDataDecodedResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**result** | [**List<ContractDataDecodeResponseParams>**](ContractDataDecodeResponseParams.md) | The decoded parameters of the contract function call. | | -|**type** | **ContractDataDecodeDataType** | | | - - - diff --git a/docs/ContractDataLogDataParam.md b/docs/ContractDataLogDataParam.md deleted file mode 100644 index 7e64021b..00000000 --- a/docs/ContractDataLogDataParam.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# ContractDataLogDataParam - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**data** | **String** | The data to decode, which can be a string or an object containing the data and its type. | | -|**topics** | **List<String>** | The topics of the log, which is an array of strings. | | - - - diff --git a/docs/ContractDeployRequest.md b/docs/ContractDeployRequest.md index eec1c92b..309d78da 100644 --- a/docs/ContractDeployRequest.md +++ b/docs/ContractDeployRequest.md @@ -10,19 +10,6 @@ |**assetId** | **String** | The base asset identifier of the blockchain you want to deploy to | | |**vaultAccountId** | **String** | The vault account id you wish to deploy from | | |**constructorParameters** | [**List<ParameterWithValue>**](ParameterWithValue.md) | The constructor parameters of this contract | [optional] | -|**useGasless** | **Boolean** | Indicates whether the token should be created in a gasless manner, utilizing the ERC-2771 standard. When set to true, the transaction will be relayed by a designated relayer. The workspace must be configured to use Fireblocks gasless relay. | [optional] | -|**fee** | **String** | Max fee amount for the write function transaction. interchangeable with the 'feeLevel' field | [optional] | -|**feeLevel** | [**FeeLevelEnum**](#FeeLevelEnum) | Fee level for the write function transaction. interchangeable with the 'fee' field | [optional] | - - - -## Enum: FeeLevelEnum - -| Name | Value | -|---- | -----| -| LOW | "LOW" | -| MEDIUM | "MEDIUM" | -| HIGH | "HIGH" | diff --git a/docs/ContractDoc.md b/docs/ContractDoc.md index 2fed5278..5a9873ba 100644 --- a/docs/ContractDoc.md +++ b/docs/ContractDoc.md @@ -11,7 +11,7 @@ |**events** | **String** | A description of the contract`s events | [optional] | |**kind** | **String** | Is it devdoc or userdoc | | |**methods** | [**Map<String, FunctionDoc>**](FunctionDoc.md) | The description of the contract functions | | -|**version** | **BigDecimal** | The version of the contract | | +|**version** | **String** | The version of the contract | | diff --git a/docs/ContractInteractionsApi.md b/docs/ContractInteractionsApi.md index dfe7657c..36e336e0 100644 --- a/docs/ContractInteractionsApi.md +++ b/docs/ContractInteractionsApi.md @@ -4,107 +4,15 @@ All URIs are relative to https://developers.fireblocks.com/reference/ | Method | HTTP request | Description | |------------- | ------------- | -------------| -| [**decodeContractData**](ContractInteractionsApi.md#decodeContractData) | **POST** /contract_interactions/base_asset_id/{baseAssetId}/contract_address/{contractAddress}/decode | Decode a function call data, error, or event log | -| [**getDeployedContractAbi**](ContractInteractionsApi.md#getDeployedContractAbi) | **GET** /contract_interactions/base_asset_id/{baseAssetId}/contract_address/{contractAddress}/functions | Return deployed contract's ABI | -| [**getTransactionReceipt**](ContractInteractionsApi.md#getTransactionReceipt) | **GET** /contract_interactions/base_asset_id/{baseAssetId}/tx_hash/{txHash}/receipt | Get transaction receipt | -| [**readCallFunction**](ContractInteractionsApi.md#readCallFunction) | **POST** /contract_interactions/base_asset_id/{baseAssetId}/contract_address/{contractAddress}/functions/read | Call a read function on a deployed contract | -| [**writeCallFunction**](ContractInteractionsApi.md#writeCallFunction) | **POST** /contract_interactions/base_asset_id/{baseAssetId}/contract_address/{contractAddress}/functions/write | Call a write function on a deployed contract | +| [**getDeployedContractAbi**](ContractInteractionsApi.md#getDeployedContractAbi) | **GET** /contract_interactions/base_asset_id/{assetId}/contract_address/{contractAddress}/functions | Return deployed contract's ABI | +| [**readCallFunction**](ContractInteractionsApi.md#readCallFunction) | **POST** /contract_interactions/base_asset_id/{assetId}/contract_address/{contractAddress}/functions/read | Call a read function on a deployed contract | +| [**writeCallFunction**](ContractInteractionsApi.md#writeCallFunction) | **POST** /contract_interactions/base_asset_id/{assetId}/contract_address/{contractAddress}/functions/write | Call a write function on a deployed contract | -## decodeContractData - -> CompletableFuture> decodeContractData decodeContractData(contractDataDecodeRequest, contractAddress, baseAssetId, idempotencyKey) - -Decode a function call data, error, or event log - -Decode a function call data, error, or event log from a deployed contract by blockchain native asset id and contract address. - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.ContractInteractionsApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - ContractDataDecodeRequest contractDataDecodeRequest = new ContractDataDecodeRequest(); // ContractDataDecodeRequest | - String contractAddress = "0xC2c4e1Db41F0bB97996D0eD0542D2170d146FB66"; // String | The contract's onchain address - String baseAssetId = "ETH"; // String | The blockchain native asset identifier - String idempotencyKey = "idempotencyKey_example"; // String | 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. - try { - CompletableFuture> response = fireblocks.contractInteractions().decodeContractData(contractDataDecodeRequest, contractAddress, baseAssetId, idempotencyKey); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling ContractInteractionsApi#decodeContractData"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling ContractInteractionsApi#decodeContractData"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **contractDataDecodeRequest** | [**ContractDataDecodeRequest**](ContractDataDecodeRequest.md)| | | -| **contractAddress** | **String**| The contract's onchain address | | -| **baseAssetId** | **String**| The blockchain native asset identifier | | -| **idempotencyKey** | **String**| 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. | [optional] | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Decoded data retrieved successfully | - | -| **400** | Bad request, invalid input data or parameters | - | -| **0** | Error Response | * X-Request-ID -
| - - ## getDeployedContractAbi -> CompletableFuture> getDeployedContractAbi getDeployedContractAbi(contractAddress, baseAssetId, idempotencyKey) +> CompletableFuture> getDeployedContractAbi getDeployedContractAbi(contractAddress, assetId, idempotencyKey) Return deployed contract's ABI @@ -134,10 +42,10 @@ public class Example { Fireblocks fireblocks = new Fireblocks(configurationOptions); String contractAddress = "0xC2c4e1Db41F0bB97996D0eD0542D2170d146FB66"; // String | The contract's onchain address - String baseAssetId = "baseAssetId_example"; // String | + String assetId = "assetId_example"; // String | String idempotencyKey = "idempotencyKey_example"; // String | 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. try { - CompletableFuture> response = fireblocks.contractInteractions().getDeployedContractAbi(contractAddress, baseAssetId, idempotencyKey); + CompletableFuture> response = fireblocks.contractInteractions().getDeployedContractAbi(contractAddress, assetId, idempotencyKey); System.out.println("Status code: " + response.get().getStatusCode()); System.out.println("Response headers: " + response.get().getHeaders()); System.out.println("Response body: " + response.get().getData()); @@ -165,7 +73,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **contractAddress** | **String**| The contract's onchain address | | -| **baseAssetId** | **String**| | | +| **assetId** | **String**| | | | **idempotencyKey** | **String**| 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. | [optional] | ### Return type @@ -189,94 +97,9 @@ No authorization required | **0** | Error Response | * X-Request-ID -
| -## getTransactionReceipt - -> CompletableFuture> getTransactionReceipt getTransactionReceipt(baseAssetId, txHash) - -Get transaction receipt - -Retrieve the transaction receipt by blockchain native asset ID and transaction hash - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.ContractInteractionsApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - String baseAssetId = "ETH_TEST6"; // String | The blockchain base assetId - String txHash = "0x3b015ca0518c55d7bff4e3f5aa5d0431705771553ba8a95cf20e34cb597f57f6"; // String | The transaction hash - try { - CompletableFuture> response = fireblocks.contractInteractions().getTransactionReceipt(baseAssetId, txHash); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling ContractInteractionsApi#getTransactionReceipt"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling ContractInteractionsApi#getTransactionReceipt"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **baseAssetId** | **String**| The blockchain base assetId | | -| **txHash** | **String**| The transaction hash | | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Retrieved The Transaction Receipt Successfully | - | -| **0** | Error Response | * X-Request-ID -
| - - ## readCallFunction -> CompletableFuture>> readCallFunction readCallFunction(readCallFunctionDto, contractAddress, baseAssetId, idempotencyKey) +> CompletableFuture>> readCallFunction readCallFunction(readCallFunctionDto, contractAddress, assetId, idempotencyKey) Call a read function on a deployed contract @@ -307,10 +130,10 @@ public class Example { ReadCallFunctionDto readCallFunctionDto = new ReadCallFunctionDto(); // ReadCallFunctionDto | String contractAddress = "0xC2c4e1Db41F0bB97996D0eD0542D2170d146FB66"; // String | The contract's onchain address - String baseAssetId = "baseAssetId_example"; // String | + String assetId = "assetId_example"; // String | String idempotencyKey = "idempotencyKey_example"; // String | 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. try { - CompletableFuture>> response = fireblocks.contractInteractions().readCallFunction(readCallFunctionDto, contractAddress, baseAssetId, idempotencyKey); + CompletableFuture>> response = fireblocks.contractInteractions().readCallFunction(readCallFunctionDto, contractAddress, assetId, idempotencyKey); System.out.println("Status code: " + response.get().getStatusCode()); System.out.println("Response headers: " + response.get().getHeaders()); System.out.println("Response body: " + response.get().getData()); @@ -339,7 +162,7 @@ public class Example { |------------- | ------------- | ------------- | -------------| | **readCallFunctionDto** | [**ReadCallFunctionDto**](ReadCallFunctionDto.md)| | | | **contractAddress** | **String**| The contract's onchain address | | -| **baseAssetId** | **String**| | | +| **assetId** | **String**| | | | **idempotencyKey** | **String**| 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. | [optional] | ### Return type @@ -365,7 +188,7 @@ No authorization required ## writeCallFunction -> CompletableFuture> writeCallFunction writeCallFunction(writeCallFunctionDto, contractAddress, baseAssetId, idempotencyKey) +> CompletableFuture> writeCallFunction writeCallFunction(writeCallFunctionDto, contractAddress, assetId, idempotencyKey) Call a write function on a deployed contract @@ -396,10 +219,10 @@ public class Example { WriteCallFunctionDto writeCallFunctionDto = new WriteCallFunctionDto(); // WriteCallFunctionDto | String contractAddress = "0xC2c4e1Db41F0bB97996D0eD0542D2170d146FB66"; // String | The contract's onchain address - String baseAssetId = "baseAssetId_example"; // String | + String assetId = "assetId_example"; // String | String idempotencyKey = "idempotencyKey_example"; // String | 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. try { - CompletableFuture> response = fireblocks.contractInteractions().writeCallFunction(writeCallFunctionDto, contractAddress, baseAssetId, idempotencyKey); + CompletableFuture> response = fireblocks.contractInteractions().writeCallFunction(writeCallFunctionDto, contractAddress, assetId, idempotencyKey); System.out.println("Status code: " + response.get().getStatusCode()); System.out.println("Response headers: " + response.get().getHeaders()); System.out.println("Response body: " + response.get().getData()); @@ -428,7 +251,7 @@ public class Example { |------------- | ------------- | ------------- | -------------| | **writeCallFunctionDto** | [**WriteCallFunctionDto**](WriteCallFunctionDto.md)| | | | **contractAddress** | **String**| The contract's onchain address | | -| **baseAssetId** | **String**| | | +| **assetId** | **String**| | | | **idempotencyKey** | **String**| 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. | [optional] | ### Return type diff --git a/docs/ContractMethodConfig.md b/docs/ContractMethodConfig.md deleted file mode 100644 index ffb7348b..00000000 --- a/docs/ContractMethodConfig.md +++ /dev/null @@ -1,25 +0,0 @@ - - -# ContractMethodConfig - -Contract method configuration - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**methodCalls** | **List<String>** | | | -|**operator** | [**OperatorEnum**](#OperatorEnum) | Operator for method calls | | -|**payloadSuffix** | **String** | Payload suffix for method calls | [optional] | - - - -## Enum: OperatorEnum - -| Name | Value | -|---- | -----| -| EITHER | "EITHER" | -| EXACT | "EXACT" | - - - diff --git a/docs/ContractMethodPattern.md b/docs/ContractMethodPattern.md deleted file mode 100644 index 1bed451f..00000000 --- a/docs/ContractMethodPattern.md +++ /dev/null @@ -1,37 +0,0 @@ - - -# ContractMethodPattern - -## oneOf schemas -* [ContractMethodConfig](ContractMethodConfig.md) -* [String](String.md) - -## Example -```java -// Import classes: -import com.fireblocks.sdk.model.ContractMethodPattern; -import com.fireblocks.sdk.model.ContractMethodConfig; -import com.fireblocks.sdk.model.String; - -public class Example { - public static void main(String[] args) { - ContractMethodPattern exampleContractMethodPattern = new ContractMethodPattern(); - - // create a new ContractMethodConfig - ContractMethodConfig exampleContractMethodConfig = new ContractMethodConfig(); - // set ContractMethodPattern to ContractMethodConfig - exampleContractMethodPattern.setActualInstance(exampleContractMethodConfig); - // to get back the ContractMethodConfig set earlier - ContractMethodConfig testContractMethodConfig = (ContractMethodConfig) exampleContractMethodPattern.getActualInstance(); - - // create a new String - String exampleString = new String(); - // set ContractMethodPattern to String - exampleContractMethodPattern.setActualInstance(exampleString); - // to get back the String set earlier - String testString = (String) exampleContractMethodPattern.getActualInstance(); - } -} -``` - - diff --git a/docs/ContractTemplateDto.md b/docs/ContractTemplateDto.md index f1f85c09..48b46bbd 100644 --- a/docs/ContractTemplateDto.md +++ b/docs/ContractTemplateDto.md @@ -11,7 +11,7 @@ |**name** | **String** | The name of the contract template | | |**description** | **String** | A short description of the contract template | | |**longDescription** | **String** | A full description of the contract template. May contain to break the lines | [optional] | -|**abi** | [**List<AbiFunction>**](AbiFunction.md) | The abi of the contract template. Necessary for displaying and for after deployment encoding | | +|**abi** | **List<List<AbiFunction>>** | | | |**attributes** | [**ContractAttributes**](ContractAttributes.md) | The attributes related to this contract template. It will be displayed in the tokenization page | [optional] | |**docs** | [**ContractDoc**](ContractDoc.md) | A `natspec` compliant documentation json. Can be retrieved from the output json after compilation | [optional] | |**owner** | **String** | The workspace id of the owner of this contract template. If it's a private contract, only this workspace will be allowed to deploy it | [optional] | diff --git a/docs/ContractUploadRequest.md b/docs/ContractUploadRequest.md index aa721c2d..85603dd4 100644 --- a/docs/ContractUploadRequest.md +++ b/docs/ContractUploadRequest.md @@ -12,11 +12,10 @@ |**longDescription** | **String** | A full description of the contract template. May contain to break the lines | [optional] | |**bytecode** | **String** | The compiled artifact of this smart contract. Used for deployment of this contract template | | |**sourcecode** | **String** | The source code of the contract. Optional. | [optional] | -|**type** | [**TypeEnum**](#TypeEnum) | The type of the contract template | | +|**type** | [**TypeEnum**](#TypeEnum) | The type of the contract template | [optional] | |**docs** | [**ContractDoc**](ContractDoc.md) | A `natspec` compliant documentation json. Can be retrieved from the output json after compilation | [optional] | -|**abi** | [**List<AbiFunction>**](AbiFunction.md) | The abi of the contract template. Necessary for displaying and for after deployment encoding | | +|**abi** | **List<List<AbiFunction>>** | | | |**attributes** | [**ContractAttributes**](ContractAttributes.md) | The attributes related to this contract template. It will be displayed in the tokenization page | [optional] | -|**protocol** | [**ProtocolEnum**](#ProtocolEnum) | The protocol that the template will be used for | [optional] | @@ -32,12 +31,3 @@ -## Enum: ProtocolEnum - -| Name | Value | -|---- | -----| -| ETH | "ETH" | -| SOL | "SOL" | - - - diff --git a/docs/ContractWithAbiDto.md b/docs/ContractWithAbiDto.md deleted file mode 100644 index e1e9530c..00000000 --- a/docs/ContractWithAbiDto.md +++ /dev/null @@ -1,19 +0,0 @@ - - -# ContractWithAbiDto - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**contractAddress** | **String** | The address of the contract | | -|**baseAssetId** | **String** | The blockchain base assetId | | -|**name** | **String** | The name of the contract | | -|**abi** | [**List<AbiFunction>**](AbiFunction.md) | The ABI of the contract | | -|**isProxy** | **Boolean** | Whether the contract is a proxy contract | [optional] | -|**implementation** | **String** | The implementation contract address | [optional] | -|**isPublic** | **Boolean** | Whether the contract ABI is public | | - - - diff --git a/docs/Cosigner.md b/docs/Cosigner.md index fce2a645..4820b317 100644 --- a/docs/Cosigner.md +++ b/docs/Cosigner.md @@ -10,20 +10,6 @@ |**archived** | **Boolean** | Whether the cosigner is archived | | |**id** | **UUID** | The unique identifier of the cosigner | | |**name** | **String** | The name of the cosigner | [optional] | -|**type** | [**TypeEnum**](#TypeEnum) | The type of the cosigner | [optional] | -|**version** | [**Version**](Version.md) | | [optional] | - - - -## Enum: TypeEnum - -| Name | Value | -|---- | -----| -| SANDBOX | "SANDBOX" | -| SGX | "SGX" | -| GCP_CONFSPACE | "GCP-CONFSPACE" | -| AWS_NITRO | "AWS-NITRO" | -| PLAIN | "PLAIN" | diff --git a/docs/CosignersBetaApi.md b/docs/CosignersBetaApi.md index 20461d7b..e56246a0 100644 --- a/docs/CosignersBetaApi.md +++ b/docs/CosignersBetaApi.md @@ -4,104 +4,14 @@ All URIs are relative to https://developers.fireblocks.com/reference/ | Method | HTTP request | Description | |------------- | ------------- | -------------| -| [**addCosigner**](CosignersBetaApi.md#addCosigner) | **POST** /cosigners | Add cosigner | | [**getApiKey**](CosignersBetaApi.md#getApiKey) | **GET** /cosigners/{cosignerId}/api_keys/{apiKeyId} | Get API key | | [**getApiKeys**](CosignersBetaApi.md#getApiKeys) | **GET** /cosigners/{cosignerId}/api_keys | Get all API keys | | [**getCosigner**](CosignersBetaApi.md#getCosigner) | **GET** /cosigners/{cosignerId} | Get cosigner | | [**getCosigners**](CosignersBetaApi.md#getCosigners) | **GET** /cosigners | Get all cosigners | -| [**getRequestStatus**](CosignersBetaApi.md#getRequestStatus) | **GET** /cosigners/{cosignerId}/api_keys/{apiKeyId}/{requestId} | Get request status | -| [**pairApiKey**](CosignersBetaApi.md#pairApiKey) | **PUT** /cosigners/{cosignerId}/api_keys/{apiKeyId} | Pair API key | | [**renameCosigner**](CosignersBetaApi.md#renameCosigner) | **PATCH** /cosigners/{cosignerId} | Rename cosigner | -| [**unpairApiKey**](CosignersBetaApi.md#unpairApiKey) | **DELETE** /cosigners/{cosignerId}/api_keys/{apiKeyId} | Unpair API key | -| [**updateCallbackHandler**](CosignersBetaApi.md#updateCallbackHandler) | **PATCH** /cosigners/{cosignerId}/api_keys/{apiKeyId} | Update API key callback handler | -## addCosigner - -> CompletableFuture> addCosigner addCosigner(addCosignerRequest, idempotencyKey) - -Add cosigner - -Add a new cosigner. The cosigner will be pending pairing until the API key is manually paired - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.CosignersBetaApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - AddCosignerRequest addCosignerRequest = new AddCosignerRequest(); // AddCosignerRequest | - String idempotencyKey = "idempotencyKey_example"; // String | 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. - try { - CompletableFuture> response = fireblocks.cosignersBeta().addCosigner(addCosignerRequest, idempotencyKey); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling CosignersBetaApi#addCosigner"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling CosignersBetaApi#addCosigner"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **addCosignerRequest** | [**AddCosignerRequest**](AddCosignerRequest.md)| | | -| **idempotencyKey** | **String**| 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. | [optional] | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **201** | Pending cosigner added | * X-Request-ID -
| -| **0** | Error Response | * X-Request-ID -
| - - ## getApiKey > CompletableFuture> getApiKey getApiKey(cosignerId, apiKeyId) @@ -193,7 +103,7 @@ No authorization required Get all API keys -Get all cosigner paired API keys (paginated) +Get all cosigner paired API keys (paginated) **Note:** These endpoints are currently in beta and might be subject to changes. ### Example @@ -446,182 +356,6 @@ No authorization required | **0** | Error Response | * X-Request-ID -
| -## getRequestStatus - -> CompletableFuture> getRequestStatus getRequestStatus(cosignerId, apiKeyId, requestId) - -Get request status - -Get the status of an asynchronous request - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.CosignersBetaApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - UUID cosignerId = UUID.fromString("44fcead0-7053-4831-a53a-df7fb90d440f"); // UUID | The unique identifier of the cosigner - String apiKeyId = "44fcead0-7053-4831-a53a-df7fb90d440f"; // String | The unique identifier of the API key - String requestId = "requestId_example"; // String | - try { - CompletableFuture> response = fireblocks.cosignersBeta().getRequestStatus(cosignerId, apiKeyId, requestId); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling CosignersBetaApi#getRequestStatus"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling CosignersBetaApi#getRequestStatus"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **cosignerId** | **UUID**| The unique identifier of the cosigner | | -| **apiKeyId** | **String**| The unique identifier of the API key | | -| **requestId** | **String**| | | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | The status of the request | * X-Request-ID -
| -| **0** | Error Response | * X-Request-ID -
| - - -## pairApiKey - -> CompletableFuture> pairApiKey pairApiKey(pairApiKeyRequest, cosignerId, apiKeyId, idempotencyKey) - -Pair API key - -Pair an API key to a cosigner - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.CosignersBetaApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - PairApiKeyRequest pairApiKeyRequest = new PairApiKeyRequest(); // PairApiKeyRequest | - UUID cosignerId = UUID.fromString("44fcead0-7053-4831-a53a-df7fb90d440f"); // UUID | The unique identifier of the cosigner - String apiKeyId = "44fcead0-7053-4831-a53a-df7fb90d440f"; // String | The unique identifier of the API key - String idempotencyKey = "idempotencyKey_example"; // String | 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. - try { - CompletableFuture> response = fireblocks.cosignersBeta().pairApiKey(pairApiKeyRequest, cosignerId, apiKeyId, idempotencyKey); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling CosignersBetaApi#pairApiKey"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling CosignersBetaApi#pairApiKey"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **pairApiKeyRequest** | [**PairApiKeyRequest**](PairApiKeyRequest.md)| | | -| **cosignerId** | **UUID**| The unique identifier of the cosigner | | -| **apiKeyId** | **String**| The unique identifier of the API key | | -| **idempotencyKey** | **String**| 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. | [optional] | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **202** | The API key object to be paired | * X-Request-ID -
* Location -
| -| **0** | Error Response | * X-Request-ID -
| - - ## renameCosigner > CompletableFuture> renameCosigner renameCosigner(renameCosigner, cosignerId) @@ -706,175 +440,3 @@ No authorization required | **200** | A cosigner object | * X-Request-ID -
| | **0** | Error Response | * X-Request-ID -
| - -## unpairApiKey - -> CompletableFuture> unpairApiKey unpairApiKey(cosignerId, apiKeyId) - -Unpair API key - -Unpair an API key from a cosigner - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.CosignersBetaApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - UUID cosignerId = UUID.fromString("44fcead0-7053-4831-a53a-df7fb90d440f"); // UUID | The unique identifier of the cosigner - String apiKeyId = "44fcead0-7053-4831-a53a-df7fb90d440f"; // String | The unique identifier of the API key - try { - CompletableFuture> response = fireblocks.cosignersBeta().unpairApiKey(cosignerId, apiKeyId); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling CosignersBetaApi#unpairApiKey"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling CosignersBetaApi#unpairApiKey"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **cosignerId** | **UUID**| The unique identifier of the cosigner | | -| **apiKeyId** | **String**| The unique identifier of the API key | | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **202** | The API key object to be unpaired | * X-Request-ID -
* Location -
| -| **0** | Error Response | * X-Request-ID -
| - - -## updateCallbackHandler - -> CompletableFuture> updateCallbackHandler updateCallbackHandler(updateCallbackHandlerRequest, cosignerId, apiKeyId) - -Update API key callback handler - -Update the callback handler of an API key - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.CosignersBetaApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - UpdateCallbackHandlerRequest updateCallbackHandlerRequest = new UpdateCallbackHandlerRequest(); // UpdateCallbackHandlerRequest | - UUID cosignerId = UUID.fromString("44fcead0-7053-4831-a53a-df7fb90d440f"); // UUID | The unique identifier of the cosigner - String apiKeyId = "44fcead0-7053-4831-a53a-df7fb90d440f"; // String | The unique identifier of the API key - try { - CompletableFuture> response = fireblocks.cosignersBeta().updateCallbackHandler(updateCallbackHandlerRequest, cosignerId, apiKeyId); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling CosignersBetaApi#updateCallbackHandler"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling CosignersBetaApi#updateCallbackHandler"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **updateCallbackHandlerRequest** | [**UpdateCallbackHandlerRequest**](UpdateCallbackHandlerRequest.md)| | | -| **cosignerId** | **UUID**| The unique identifier of the cosigner | | -| **apiKeyId** | **String**| The unique identifier of the API key | | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **202** | The API key object with the new callback handler | * X-Request-ID -
* Location -
| -| **0** | Error Response | * X-Request-ID -
| - diff --git a/docs/CreateInternalTransferRequest.md b/docs/CreateInternalTransferRequest.md index 220c3a64..d26e2b58 100644 --- a/docs/CreateInternalTransferRequest.md +++ b/docs/CreateInternalTransferRequest.md @@ -7,10 +7,10 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**asset** | **String** | | | -|**amount** | **String** | | | -|**sourceType** | **TradingAccountType** | | | -|**destType** | **TradingAccountType** | | | +|**asset** | **String** | | [optional] | +|**amount** | **String** | | [optional] | +|**sourceType** | **TradingAccountType** | | [optional] | +|**destType** | **TradingAccountType** | | [optional] | diff --git a/docs/CreateMultichainTokenRequest.md b/docs/CreateMultichainTokenRequest.md deleted file mode 100644 index 7b0fa0d6..00000000 --- a/docs/CreateMultichainTokenRequest.md +++ /dev/null @@ -1,30 +0,0 @@ - - -# CreateMultichainTokenRequest - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**vaultAccountId** | **String** | The id of the vault account that initiated the request to issue the token | | -|**createParams** | [**EVMTokenCreateParamsDto**](EVMTokenCreateParamsDto.md) | | | -|**salt** | **String** | The salt to calculate the deterministic address. Must be a number between 0 and 2^256 -1, for it to fit in the bytes32 parameter. | [optional] | -|**chains** | **List<String>** | The base asset identifiers of the blockchains (legacyId) to calculate deterministic addresses | | -|**displayName** | **String** | | [optional] | -|**useGasless** | **Boolean** | Indicates whether the token should be created in a gasless manner, utilizing the ERC-2771 standard. When set to true, the transaction will be relayed by a designated relayer. The workspace must be configured to use Fireblocks gasless relay. | [optional] | -|**fee** | **String** | Max fee amount for the write function transaction. interchangeable with the 'feeLevel' field | [optional] | -|**feeLevel** | [**FeeLevelEnum**](#FeeLevelEnum) | Fee level for the write function transaction. interchangeable with the 'fee' field | [optional] | - - - -## Enum: FeeLevelEnum - -| Name | Value | -|---- | -----| -| LOW | "LOW" | -| MEDIUM | "MEDIUM" | -| HIGH | "HIGH" | - - - diff --git a/docs/CreateMultipleAccountsRequest.md b/docs/CreateMultipleAccountsRequest.md index bcb27cfa..57aba1b1 100644 --- a/docs/CreateMultipleAccountsRequest.md +++ b/docs/CreateMultipleAccountsRequest.md @@ -7,11 +7,8 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**count** | **Integer** | Count | | -|**baseAssetIds** | **List<String>** | Array of base asset IDs | | -|**names** | **List<String>** | Names to assign to vault accounts. if vaultAccountNamesStartingIndex or prefix is used it'll fail | [optional] | -|**vaultAccountNamesStartingIndex** | **Integer** | Copy vault accounts names starting from this index. If names array is used it'll fail | [optional] | -|**prefix** | **String** | When copying from existing vault accounts (vaultAccountNamesStartingIndex) then adding a prefix to the names. If names array is used it'll fail | [optional] | +|**count** | **Integer** | Count | [optional] | +|**assetIds** | **List<String>** | Array of asset IDs | [optional] | diff --git a/docs/CreateMultipleDepositAddressesJobStatus.md b/docs/CreateMultipleDepositAddressesJobStatus.md deleted file mode 100644 index c0e58fc9..00000000 --- a/docs/CreateMultipleDepositAddressesJobStatus.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# CreateMultipleDepositAddressesJobStatus - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **String** | | | -|**addresses** | [**List<NewAddress>**](NewAddress.md) | | [optional] | -|**errorMessage** | **String** | | [optional] | - - - diff --git a/docs/CreateMultipleDepositAddressesRequest.md b/docs/CreateMultipleDepositAddressesRequest.md deleted file mode 100644 index e3855733..00000000 --- a/docs/CreateMultipleDepositAddressesRequest.md +++ /dev/null @@ -1,18 +0,0 @@ - - -# CreateMultipleDepositAddressesRequest - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**vaultAccountId** | **Integer** | Existing Vault account ID to add deposit addresses to | | -|**assetId** | **String** | asset ID | | -|**count** | **Integer** | Count of deposit addresses to issue | | -|**descriptions** | **List<String>** | Desctiptions of the newly created addresses | [optional] | -|**vaultAccountToCopyDescFrom** | **Integer** | Existing Vault Account ID to copy deposit addresses descriptions from in case no descriptions were provided | [optional] | -|**vaultAccountToCopyDescFromIndex** | **Integer** | Existing length within the vault account to copy deposit addresses descriptions from | [optional] | - - - diff --git a/docs/CreateMultipleVaultAccountsJobStatus.md b/docs/CreateMultipleVaultAccountsJobStatus.md deleted file mode 100644 index 196d010f..00000000 --- a/docs/CreateMultipleVaultAccountsJobStatus.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# CreateMultipleVaultAccountsJobStatus - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **String** | | | -|**vaultAccounts** | **Map<String, Map<String, String>>** | Mapping between VaultAccountId to a mapping of asset to address | [optional] | -|**errorMessage** | **String** | | [optional] | - - - diff --git a/docs/CreateOrderRequest.md b/docs/CreateOrderRequest.md deleted file mode 100644 index d2136342..00000000 --- a/docs/CreateOrderRequest.md +++ /dev/null @@ -1,18 +0,0 @@ - - -# CreateOrderRequest - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**via** | [**AccessType**](AccessType.md) | | | -|**executionRequestDetails** | [**ExecutionRequestDetails**](ExecutionRequestDetails.md) | | | -|**settlement** | [**Settlement**](Settlement.md) | | | -|**participantsIdentification** | [**ParticipantsIdentification**](ParticipantsIdentification.md) | | [optional] | -|**customerInternalReferenceId** | **String** | Internal reference ID for the customer | [optional] | -|**note** | **String** | Optional note for the order | [optional] | - - - diff --git a/docs/CreateQuote.md b/docs/CreateQuote.md deleted file mode 100644 index fbb15f57..00000000 --- a/docs/CreateQuote.md +++ /dev/null @@ -1,30 +0,0 @@ - - -# CreateQuote - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**scope** | [**List<CreateQuoteScopeInner>**](CreateQuoteScopeInner.md) | | | -|**baseAssetId** | **String** | | | -|**baseAssetRail** | **TransferRail** | | [optional] | -|**quoteAssetId** | **String** | | | -|**quoteAssetRail** | **TransferRail** | | [optional] | -|**baseAmount** | **String** | The amount to convert from | | -|**slippageBps** | **BigDecimal** | Slippage tolerance in basis points (bps) for defi quotes - 1 is 0.01% and 10000 is 100% | [optional] | -|**settlement** | [**DVPSettlement**](DVPSettlement.md) | | [optional] | -|**side** | [**SideEnum**](#SideEnum) | Side of the order | | - - - -## Enum: SideEnum - -| Name | Value | -|---- | -----| -| BUY | "BUY" | -| SELL | "SELL" | - - - diff --git a/docs/CreateQuoteScopeInner.md b/docs/CreateQuoteScopeInner.md deleted file mode 100644 index 67df5885..00000000 --- a/docs/CreateQuoteScopeInner.md +++ /dev/null @@ -1,37 +0,0 @@ - - -# CreateQuoteScopeInner - -## oneOf schemas -* [AccountProviderID](AccountProviderID.md) -* [ProviderID](ProviderID.md) - -## Example -```java -// Import classes: -import com.fireblocks.sdk.model.CreateQuoteScopeInner; -import com.fireblocks.sdk.model.AccountProviderID; -import com.fireblocks.sdk.model.ProviderID; - -public class Example { - public static void main(String[] args) { - CreateQuoteScopeInner exampleCreateQuoteScopeInner = new CreateQuoteScopeInner(); - - // create a new AccountProviderID - AccountProviderID exampleAccountProviderID = new AccountProviderID(); - // set CreateQuoteScopeInner to AccountProviderID - exampleCreateQuoteScopeInner.setActualInstance(exampleAccountProviderID); - // to get back the AccountProviderID set earlier - AccountProviderID testAccountProviderID = (AccountProviderID) exampleCreateQuoteScopeInner.getActualInstance(); - - // create a new ProviderID - ProviderID exampleProviderID = new ProviderID(); - // set CreateQuoteScopeInner to ProviderID - exampleCreateQuoteScopeInner.setActualInstance(exampleProviderID); - // to get back the ProviderID set earlier - ProviderID testProviderID = (ProviderID) exampleCreateQuoteScopeInner.getActualInstance(); - } -} -``` - - diff --git a/docs/CreateSigningKeyDto.md b/docs/CreateSigningKeyDto.md index a2828398..5238851a 100644 --- a/docs/CreateSigningKeyDto.md +++ b/docs/CreateSigningKeyDto.md @@ -10,7 +10,6 @@ |**signingDeviceKeyId** | **String** | The ID, name or label of the key specified on the customer's signing device. | | |**signedCertPem** | **String** | The signed certificate that includes the public key PEM of the signing key, signed by a validation key. | | |**agentUserId** | **String** | Id of user to which this key belongs | | -|**proofOfOwnership** | [**CreateSigningKeyDtoProofOfOwnership**](CreateSigningKeyDtoProofOfOwnership.md) | | [optional] | diff --git a/docs/CreateSigningKeyDtoProofOfOwnership.md b/docs/CreateSigningKeyDtoProofOfOwnership.md deleted file mode 100644 index ab3487fd..00000000 --- a/docs/CreateSigningKeyDtoProofOfOwnership.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# CreateSigningKeyDtoProofOfOwnership - -An object containing proof of ownership for the signing key. - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**message** | **String** | The message to be signed by the key as proof of ownership. 64 to 1024 bytes in hexadecimal format. | | -|**signature** | **String** | The signature of the message. 64 bytes in hexadecimal format. | | - - - diff --git a/docs/CreateTagRequest.md b/docs/CreateTagRequest.md deleted file mode 100644 index faac3d4b..00000000 --- a/docs/CreateTagRequest.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# CreateTagRequest - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**label** | **String** | The tag label | | -|**description** | **String** | Description for the tag | [optional] | - - - diff --git a/docs/CreateTokenRequestDto.md b/docs/CreateTokenRequestDto.md index c32627fd..96c6cbc4 100644 --- a/docs/CreateTokenRequestDto.md +++ b/docs/CreateTokenRequestDto.md @@ -12,19 +12,6 @@ |**vaultAccountId** | **String** | The id of the vault account that initiated the request to issue the token | | |**createParams** | [**CreateTokenRequestDtoCreateParams**](CreateTokenRequestDtoCreateParams.md) | | | |**displayName** | **String** | | [optional] | -|**useGasless** | **Boolean** | Indicates whether the token should be created in a gasless manner, utilizing the ERC-2771 standard. When set to true, the transaction will be relayed by a designated relayer. The workspace must be configured to use Fireblocks gasless relay. | [optional] | -|**fee** | **String** | Max fee amount for the write function transaction. interchangeable with the 'feeLevel' field | [optional] | -|**feeLevel** | [**FeeLevelEnum**](#FeeLevelEnum) | Fee level for the write function transaction. interchangeable with the 'fee' field | [optional] | - - - -## Enum: FeeLevelEnum - -| Name | Value | -|---- | -----| -| LOW | "LOW" | -| MEDIUM | "MEDIUM" | -| HIGH | "HIGH" | diff --git a/docs/CreateTokenRequestDtoCreateParams.md b/docs/CreateTokenRequestDtoCreateParams.md index 7a01f874..de35004d 100644 --- a/docs/CreateTokenRequestDtoCreateParams.md +++ b/docs/CreateTokenRequestDtoCreateParams.md @@ -4,7 +4,6 @@ ## oneOf schemas * [EVMTokenCreateParamsDto](EVMTokenCreateParamsDto.md) -* [SolanaSimpleCreateParams](SolanaSimpleCreateParams.md) * [StellarRippleCreateParamsDto](StellarRippleCreateParamsDto.md) ## Example @@ -12,7 +11,6 @@ // Import classes: import com.fireblocks.sdk.model.CreateTokenRequestDtoCreateParams; import com.fireblocks.sdk.model.EVMTokenCreateParamsDto; -import com.fireblocks.sdk.model.SolanaSimpleCreateParams; import com.fireblocks.sdk.model.StellarRippleCreateParamsDto; public class Example { @@ -26,13 +24,6 @@ public class Example { // to get back the EVMTokenCreateParamsDto set earlier EVMTokenCreateParamsDto testEVMTokenCreateParamsDto = (EVMTokenCreateParamsDto) exampleCreateTokenRequestDtoCreateParams.getActualInstance(); - // create a new SolanaSimpleCreateParams - SolanaSimpleCreateParams exampleSolanaSimpleCreateParams = new SolanaSimpleCreateParams(); - // set CreateTokenRequestDtoCreateParams to SolanaSimpleCreateParams - exampleCreateTokenRequestDtoCreateParams.setActualInstance(exampleSolanaSimpleCreateParams); - // to get back the SolanaSimpleCreateParams set earlier - SolanaSimpleCreateParams testSolanaSimpleCreateParams = (SolanaSimpleCreateParams) exampleCreateTokenRequestDtoCreateParams.getActualInstance(); - // create a new StellarRippleCreateParamsDto StellarRippleCreateParamsDto exampleStellarRippleCreateParamsDto = new StellarRippleCreateParamsDto(); // set CreateTokenRequestDtoCreateParams to StellarRippleCreateParamsDto diff --git a/docs/CreateVaultAccountRequest.md b/docs/CreateVaultAccountRequest.md index dd7f824e..ecd19ce6 100644 --- a/docs/CreateVaultAccountRequest.md +++ b/docs/CreateVaultAccountRequest.md @@ -11,17 +11,6 @@ |**hiddenOnUI** | **Boolean** | Optional - if true, the created account and all related transactions will not be shown on Fireblocks console | [optional] | |**customerRefId** | **String** | Optional - Sets a customer reference ID | [optional] | |**autoFuel** | **Boolean** | Optional - Sets the autoFuel property of the vault account | [optional] | -|**vaultType** | [**VaultTypeEnum**](#VaultTypeEnum) | Type of vault account. The default type will be set to MPC.<br/> If the workspace does not support the selected type, it will return an error. | [optional] | -|**autoAssign** | **Boolean** | Applicable only when the vault account type is KEY_LINK. For MPC, this parameter will be ignored.<br/> If set to true and there are available keys, random keys will be assigned to the newly created vault account.<br/> If set to true and there are no available keys to be assigned, it will return an error.<br/> If set to false, the vault account will be created without any keys. | [optional] | - - - -## Enum: VaultTypeEnum - -| Name | Value | -|---- | -----| -| MPC | "MPC" | -| KEY_LINK | "KEY_LINK" | diff --git a/docs/CreateWebhookRequest.md b/docs/CreateWebhookRequest.md deleted file mode 100644 index 41a52a98..00000000 --- a/docs/CreateWebhookRequest.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# CreateWebhookRequest - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**url** | **String** | The url of the webhook where notifications will be sent. URL must be valid, unique and https. | | -|**description** | **String** | description of the webhook. should not contain special characters. | [optional] | -|**events** | **List<WebhookEvent>** | event types the webhook will subscribe to | | -|**enabled** | **Boolean** | The status of the webhook. If false, the webhook will not receive notifications. | [optional] | - - - diff --git a/docs/DVPSettlement.md b/docs/DVPSettlement.md deleted file mode 100644 index 656593f4..00000000 --- a/docs/DVPSettlement.md +++ /dev/null @@ -1,24 +0,0 @@ - - -# DVPSettlement - -Source/Destination accounts for the quote (must have for defi quotes) - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**type** | [**TypeEnum**](#TypeEnum) | | | -|**sourceAccount** | [**SettlementSourceAccount**](SettlementSourceAccount.md) | | | -|**destinationAccount** | [**AccountReference**](AccountReference.md) | | | - - - -## Enum: TypeEnum - -| Name | Value | -|---- | -----| -| DVP | "DVP" | - - - diff --git a/docs/Delegation.md b/docs/DelegationDto.md similarity index 53% rename from docs/Delegation.md rename to docs/DelegationDto.md index 196eda90..a09ca771 100644 --- a/docs/Delegation.md +++ b/docs/DelegationDto.md @@ -1,6 +1,6 @@ -# Delegation +# DelegationDto ## Properties @@ -14,17 +14,15 @@ |**chainDescriptor** | **String** | The protocol identifier (e.g. \"ETH\"/ \"SOL\") to use | | |**amount** | **String** | Amount of tokens to stake, measured in the staked asset unit. | | |**rewardsAmount** | **String** | The amount staked in the position, measured in the staked asset unit. | | -|**dateCreated** | **OffsetDateTime** | When was the request made (ISO Date). | | -|**dateUpdated** | **OffsetDateTime** | When has the position last changed (ISO Date). | | +|**dateCreated** | **String** | When was the request made (ISO Date). | | |**status** | **String** | The current status. | | -|**relatedTransactions** | [**List<RelatedTransaction>**](RelatedTransaction.md) | An array of transaction objects related to this position. Each object includes a 'txId' representing the transaction ID and a 'completed' boolean indicating if the transaction was completed. | | +|**relatedTransactions** | [**List<RelatedTransactionDto>**](RelatedTransactionDto.md) | An array of transaction objects related to this position. Each object includes a 'txId' representing the transaction ID and a 'completed' boolean indicating if the transaction was completed. | | |**validatorAddress** | **String** | The destination address of the staking transaction. | | -|**providerId** | **StakingProvider** | | | +|**providerId** | **String** | The unique identifier of the staking provider | | |**availableActions** | **List<String>** | An array of available actions that can be performed. for example, actions like \"unstake\" or \"withdraw\". | | |**inProgress** | **Boolean** | Indicates whether there is an ongoing action for this position (true if ongoing, false if not). | | |**inProgressTxId** | **String** | The transaction ID of the ongoing request | [optional] | -|**blockchainPositionInfo** | [**SolanaBlockchainData**](SolanaBlockchainData.md) | | | -|**relatedRequests** | [**List<RelatedRequest>**](RelatedRequest.md) | An array of partial unstake requests for this position, relevant only for the Lido provider. Each object includes the status of the unstake request, a boolean indicating whether the action is in progress, the amount of tokens to unstake, and the transaction ID of the request. With Lido, a position may have multiple partial unstake requests in different states. This field is optional and not applicable for other providers. | [optional] | +|**blockchainPositionInfo** | [**SolanaBlockchainDataDto**](SolanaBlockchainDataDto.md) | Additional fields per blockchain - can be empty or missing if not initialized or no additional info exists. The type depends on the chainDescriptor value. For Solana (SOL), stake account address. For Ethereum (ETH), an empty object is returned as no specific data is available. | | diff --git a/docs/DelegationSummary.md b/docs/DelegationSummaryDto.md similarity index 97% rename from docs/DelegationSummary.md rename to docs/DelegationSummaryDto.md index 74c710b8..f792b4da 100644 --- a/docs/DelegationSummary.md +++ b/docs/DelegationSummaryDto.md @@ -1,6 +1,6 @@ -# DelegationSummary +# DelegationSummaryDto ## Properties diff --git a/docs/DeployLayerZeroAdaptersRequest.md b/docs/DeployLayerZeroAdaptersRequest.md deleted file mode 100644 index 19f51ba2..00000000 --- a/docs/DeployLayerZeroAdaptersRequest.md +++ /dev/null @@ -1,29 +0,0 @@ - - -# DeployLayerZeroAdaptersRequest - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**vaultAccountId** | **String** | The id of the vault account that initiated the request to deploy adapter for the token | | -|**createParams** | [**List<LayerZeroAdapterCreateParams>**](LayerZeroAdapterCreateParams.md) | Array of creation parameters for LayerZero adapters, one per tokenLink. | | -|**displayName** | **String** | The display name of the contract | [optional] | -|**useGasless** | **Boolean** | Whether to use gasless deployment or not | [optional] | -|**feeLevel** | [**FeeLevelEnum**](#FeeLevelEnum) | Fee level for the write function transaction. interchangeable with the 'fee' field | [optional] | -|**fee** | **String** | Max fee amount for the write function transaction. interchangeable with the 'feeLevel' field | [optional] | -|**salt** | **String** | The salt to calculate the deterministic address. Must be a number between 0 and 2^256 -1, for it to fit in the bytes32 parameter | [optional] | - - - -## Enum: FeeLevelEnum - -| Name | Value | -|---- | -----| -| LOW | "LOW" | -| MEDIUM | "MEDIUM" | -| HIGH | "HIGH" | - - - diff --git a/docs/DeployableAddressResponse.md b/docs/DeployableAddressResponse.md deleted file mode 100644 index 0606c12b..00000000 --- a/docs/DeployableAddressResponse.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# DeployableAddressResponse - -Response DTO containing a deployable address - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**address** | **String** | The deployable address | | - - - diff --git a/docs/DeployedContractNotFoundError.md b/docs/DeployedContractNotFoundError.md deleted file mode 100644 index 6eb85f11..00000000 --- a/docs/DeployedContractNotFoundError.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# DeployedContractNotFoundError - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**message** | **String** | Not Found error message | | -|**code** | **BigDecimal** | Error code | | - - - diff --git a/docs/DeployedContractResponseDto.md b/docs/DeployedContractResponseDto.md index 87b27809..a506f50f 100644 --- a/docs/DeployedContractResponseDto.md +++ b/docs/DeployedContractResponseDto.md @@ -12,10 +12,6 @@ |**contractTemplateId** | **String** | The contract template identifier | | |**vaultAccountId** | **String** | The vault account id this contract was deploy from | [optional] | |**blockchainId** | **String** | | | -|**baseAssetId** | **String** | The blockchain base assetId | [optional] | -|**gaslessConfig** | [**GasslessStandardConfigurations**](GasslessStandardConfigurations.md) | | [optional] | -|**multichainDeploymentMetadata** | [**MultichainDeploymentMetadata**](MultichainDeploymentMetadata.md) | | [optional] | -|**solanaConfig** | [**SolanaConfig**](SolanaConfig.md) | | [optional] | diff --git a/docs/DeployedContractsApi.md b/docs/DeployedContractsApi.md index 47edae5a..64f81db3 100644 --- a/docs/DeployedContractsApi.md +++ b/docs/DeployedContractsApi.md @@ -4,186 +4,12 @@ All URIs are relative to https://developers.fireblocks.com/reference/ | Method | HTTP request | Description | |------------- | ------------- | -------------| -| [**addContractABI**](DeployedContractsApi.md#addContractABI) | **POST** /tokenization/contracts/abi | Save contract ABI | -| [**fetchContractAbi**](DeployedContractsApi.md#fetchContractAbi) | **POST** /tokenization/contracts/fetch_abi | Fetch the contract ABI | | [**getDeployedContractByAddress**](DeployedContractsApi.md#getDeployedContractByAddress) | **GET** /tokenization/contracts/{assetId}/{contractAddress} | Return deployed contract data | | [**getDeployedContractById**](DeployedContractsApi.md#getDeployedContractById) | **GET** /tokenization/contracts/{id} | Return deployed contract data by id | | [**getDeployedContracts**](DeployedContractsApi.md#getDeployedContracts) | **GET** /tokenization/contracts | List deployed contracts data | -## addContractABI - -> CompletableFuture> addContractABI addContractABI(addAbiRequestDto, idempotencyKey) - -Save contract ABI - -Save contract ABI for the tenant - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.DeployedContractsApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - AddAbiRequestDto addAbiRequestDto = new AddAbiRequestDto(); // AddAbiRequestDto | - String idempotencyKey = "idempotencyKey_example"; // String | 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. - try { - CompletableFuture> response = fireblocks.deployedContracts().addContractABI(addAbiRequestDto, idempotencyKey); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling DeployedContractsApi#addContractABI"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling DeployedContractsApi#addContractABI"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **addAbiRequestDto** | [**AddAbiRequestDto**](AddAbiRequestDto.md)| | | -| **idempotencyKey** | **String**| 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. | [optional] | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Contract ABI created (or updated) for the tenant | - | -| **409** | Contract ABI already exists. | - | -| **0** | Error Response | * X-Request-ID -
| - - -## fetchContractAbi - -> CompletableFuture> fetchContractAbi fetchContractAbi(fetchAbiRequestDto, idempotencyKey) - -Fetch the contract ABI - -Fetch the ABI. If not found fetch the ABI from the block explorer - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.DeployedContractsApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - FetchAbiRequestDto fetchAbiRequestDto = new FetchAbiRequestDto(); // FetchAbiRequestDto | - String idempotencyKey = "idempotencyKey_example"; // String | 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. - try { - CompletableFuture> response = fireblocks.deployedContracts().fetchContractAbi(fetchAbiRequestDto, idempotencyKey); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling DeployedContractsApi#fetchContractAbi"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling DeployedContractsApi#fetchContractAbi"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **fetchAbiRequestDto** | [**FetchAbiRequestDto**](FetchAbiRequestDto.md)| | | -| **idempotencyKey** | **String**| 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. | [optional] | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Contract ABI found. | - | -| **404** | Contract ABI not found | - | -| **0** | Error Response | * X-Request-ID -
| - - ## getDeployedContractByAddress > CompletableFuture> getDeployedContractByAddress getDeployedContractByAddress(contractAddress, assetId) @@ -354,7 +180,7 @@ No authorization required ## getDeployedContracts -> CompletableFuture> getDeployedContracts getDeployedContracts(pageCursor, pageSize, contractAddress, baseAssetId, contractTemplateId) +> CompletableFuture> getDeployedContracts getDeployedContracts(pageCursor, pageSize, contractAddress, assetId, templateId) List deployed contracts data @@ -386,10 +212,10 @@ public class Example { String pageCursor = "MjAyMy0xMi0xMyAyMDozNjowOC4zMDI=:MTEwMA=="; // String | Page cursor to get the next page BigDecimal pageSize = new BigDecimal("10"); // BigDecimal | Number of items per page, requesting more then max will return max items String contractAddress = "0xC2c4e1Db41F0bB97996D0eD0542D2170d146FB66"; // String | The contract's onchain address - String baseAssetId = "baseAssetId_example"; // String | - String contractTemplateId = "contractTemplateId_example"; // String | + String assetId = "assetId_example"; // String | + String templateId = "templateId_example"; // String | try { - CompletableFuture> response = fireblocks.deployedContracts().getDeployedContracts(pageCursor, pageSize, contractAddress, baseAssetId, contractTemplateId); + CompletableFuture> response = fireblocks.deployedContracts().getDeployedContracts(pageCursor, pageSize, contractAddress, assetId, templateId); System.out.println("Status code: " + response.get().getStatusCode()); System.out.println("Response headers: " + response.get().getHeaders()); System.out.println("Response body: " + response.get().getData()); @@ -419,8 +245,8 @@ public class Example { | **pageCursor** | **String**| Page cursor to get the next page | [optional] | | **pageSize** | **BigDecimal**| Number of items per page, requesting more then max will return max items | [optional] | | **contractAddress** | **String**| The contract's onchain address | [optional] | -| **baseAssetId** | **String**| | [optional] | -| **contractTemplateId** | **String**| | [optional] | +| **assetId** | **String**| | [optional] | +| **templateId** | **String**| | [optional] | ### Return type diff --git a/docs/DerivationPathConfig.md b/docs/DerivationPathConfig.md deleted file mode 100644 index 6493e682..00000000 --- a/docs/DerivationPathConfig.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# DerivationPathConfig - -Derivation path configuration - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**path** | **List<BigDecimal>** | Derivation path as array of numbers | | -|**partial** | **Boolean** | Whether this is a partial path | [optional] | - - - diff --git a/docs/DesignatedSignersConfig.md b/docs/DesignatedSignersConfig.md deleted file mode 100644 index c9e43c14..00000000 --- a/docs/DesignatedSignersConfig.md +++ /dev/null @@ -1,26 +0,0 @@ - - -# DesignatedSignersConfig - -Designated signers configuration - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**type** | [**TypeEnum**](#TypeEnum) | Type of designated signers | | -|**users** | **List<String>** | List of user IDs | [optional] | -|**groups** | **List<String>** | List of policy group IDs | [optional] | - - - -## Enum: TypeEnum - -| Name | Value | -|---- | -----| -| SINGLE | "SINGLE" | -| MULTIPLE | "MULTIPLE" | -| INITIATOR | "INITIATOR" | - - - diff --git a/docs/DestinationConfig.md b/docs/DestinationConfig.md deleted file mode 100644 index f6c73a76..00000000 --- a/docs/DestinationConfig.md +++ /dev/null @@ -1,40 +0,0 @@ - - -# DestinationConfig - -Destination configuration for policy rules - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**type** | **AccountType2** | | | -|**subType** | [**List<AccountIdentifier>**](AccountIdentifier.md) | | [optional] | -|**ids** | [**List<AccountIdentifier>**](AccountIdentifier.md) | | [optional] | -|**operator** | **PolicyOperator** | | | -|**matchFrom** | [**MatchFromEnum**](#MatchFromEnum) | Whether to match from account or source | [optional] | -|**addressType** | [**AddressTypeEnum**](#AddressTypeEnum) | Type of destination addresses allowed | | - - - -## Enum: MatchFromEnum - -| Name | Value | -|---- | -----| -| ACCOUNT | "ACCOUNT" | -| SOURCE | "SOURCE" | - - - -## Enum: AddressTypeEnum - -| Name | Value | -|---- | -----| -| ALL | "ALL" | -| STAR | "*" | -| WHITELISTED | "WHITELISTED" | -| ONE_TIME | "ONE_TIME" | -| OEC_PARTNER | "OEC_PARTNER" | - - - diff --git a/docs/DestinationTransferPeerPath.md b/docs/DestinationTransferPeerPath.md index 276ab8e7..82d69f38 100644 --- a/docs/DestinationTransferPeerPath.md +++ b/docs/DestinationTransferPeerPath.md @@ -14,7 +14,6 @@ The destination of the transaction. |**name** | **String** | | [optional] | |**walletId** | **UUID** | | [optional] | |**oneTimeAddress** | [**OneTimeAddress**](OneTimeAddress.md) | | [optional] | -|**isCollateral** | **Boolean** | indicate if the destination is collateral account | [optional] | diff --git a/docs/DestinationTransferPeerPathResponse.md b/docs/DestinationTransferPeerPathResponse.md index 34f5e756..bbbe489d 100644 --- a/docs/DestinationTransferPeerPathResponse.md +++ b/docs/DestinationTransferPeerPathResponse.md @@ -10,10 +10,9 @@ Destination of the transaction. **Note:** In case the transaction is sent to mu |------------ | ------------- | ------------- | -------------| |**type** | **TransferPeerPathType** | | | |**subType** | **String** | In case the type is set to `EXCHANGE_ACCOUNT` or `FIAT_ACCOUNT`, the specific exchange vendor name or fiat vendor name.In case the type is set to `INTERNAL_WALLET` or `EXTERNAL_WALLET`, the subType is set to `Internal` or `External`. | [optional] | -|**id** | **String** | 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/getpagedvaultaccounts), [listing exchange account](https://developers.fireblocks.com/reference/getexchangeaccounts), [listing fiat accounts](https://developers.fireblocks.com/reference/getfiataccounts), [listing internal wallets](https://developers.fireblocks.com/reference/getinternalwallets), [listing external wallets](https://developers.fireblocks.com/reference/getexternalwallets), [listing network connections](https://developers.fireblocks.com/reference/getnetworkconnections). For the other types, this parameter is not needed. | [optional] | +|**id** | **String** | 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** | **String** | The name of the peer. | [optional] | |**walletId** | **UUID** | | [optional] | -|**tradingAccount** | **String** | If this transaction is an exchange internal transfer, this field will be populated with the type of that trading account. | [optional] | diff --git a/docs/DirectAccess.md b/docs/DirectAccess.md deleted file mode 100644 index a94b6b52..00000000 --- a/docs/DirectAccess.md +++ /dev/null @@ -1,22 +0,0 @@ - - -# DirectAccess - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**type** | [**TypeEnum**](#TypeEnum) | Indicates this uses direct provider access | | -|**providerId** | **String** | The ID of the provider | | - - - -## Enum: TypeEnum - -| Name | Value | -|---- | -----| -| PROVIDER | "PROVIDER" | - - - diff --git a/docs/DirectAccessProvider.md b/docs/DirectAccessProvider.md deleted file mode 100644 index 416c2ef2..00000000 --- a/docs/DirectAccessProvider.md +++ /dev/null @@ -1,19 +0,0 @@ - - -# DirectAccessProvider - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**id** | **String** | Unique identifier for the provider | | -|**name** | **String** | Display name of the provider | | -|**logo** | **String** | URL to the logo image of the provider | [optional] | -|**accountBased** | **Boolean** | Indicates whether the provider access model is through accounts or directly | | -|**approved** | **Boolean** | Whether the provider was approved for use | [optional] | -|**hasTermsOfService** | **Boolean** | Whether the provider has terms of service | | -|**termsOfServiceUrl** | **String** | URL to the terms of service document | [optional] | - - - diff --git a/docs/DvnConfig.md b/docs/DvnConfig.md deleted file mode 100644 index 5fddde54..00000000 --- a/docs/DvnConfig.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# DvnConfig - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**dvnAddresses** | **List<String>** | Array of required DVN Ethereum addresses that sign ULN messages. | | -|**optionalDVNAddresses** | **List<String>** | Array of optional DVN Ethereum addresses that sign ULN messages. | [optional] | -|**optionalThreshold** | **BigDecimal** | Minimum number of DVN signatures required (M-of-N). | | - - - diff --git a/docs/DvnConfigWithConfirmations.md b/docs/DvnConfigWithConfirmations.md deleted file mode 100644 index f575304a..00000000 --- a/docs/DvnConfigWithConfirmations.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# DvnConfigWithConfirmations - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**dvnAddresses** | **List<String>** | Array of required DVN Ethereum addresses that sign ULN messages. | | -|**optionalDVNAddresses** | **List<String>** | Array of optional DVN Ethereum addresses that sign ULN messages. | [optional] | -|**optionalThreshold** | **BigDecimal** | Minimum number of DVN signatures required (M-of-N). | | -|**confirmations** | **BigDecimal** | Number of block confirmations required | | - - - diff --git a/docs/EVMTokenCreateParamsDto.md b/docs/EVMTokenCreateParamsDto.md index 03c3b001..72d59a10 100644 --- a/docs/EVMTokenCreateParamsDto.md +++ b/docs/EVMTokenCreateParamsDto.md @@ -8,7 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**contractId** | **String** | The id of the contract template that will be used to create the token | | -|**deployFunctionParams** | [**List<ParameterWithValue>**](ParameterWithValue.md) | The deploy function parameters and values of the contract template | [optional] | +|**constructorParams** | **List<List<ParameterWithValue>>** | The constructor parameters and values of the contract template | [optional] | diff --git a/docs/EmbeddedWallet.md b/docs/EmbeddedWallet.md deleted file mode 100644 index a7fbfcbb..00000000 --- a/docs/EmbeddedWallet.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# EmbeddedWallet - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**walletId** | **String** | walletId | | -|**enabled** | **Boolean** | enabled | | - - - diff --git a/docs/EmbeddedWalletAccount.md b/docs/EmbeddedWalletAccount.md deleted file mode 100644 index 99a3af39..00000000 --- a/docs/EmbeddedWalletAccount.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# EmbeddedWalletAccount - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**accountId** | **String** | The ID of the account | | -|**walletId** | **String** | Unique identifier of the Non-Custodial Wallet (UUID) | | - - - diff --git a/docs/EmbeddedWalletAddressDetails.md b/docs/EmbeddedWalletAddressDetails.md deleted file mode 100644 index 06dd98f6..00000000 --- a/docs/EmbeddedWalletAddressDetails.md +++ /dev/null @@ -1,49 +0,0 @@ - - -# EmbeddedWalletAddressDetails - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**accountName** | **String** | accountName | | -|**accountId** | **String** | accountId | | -|**asset** | **String** | asset | | -|**address** | **String** | address | | -|**addressType** | [**AddressTypeEnum**](#AddressTypeEnum) | addressType | | -|**addressDescription** | **String** | addressDescription | | -|**tag** | **String** | tag | | -|**addressIndex** | **BigDecimal** | addressIndex | [optional] | -|**change** | **BigDecimal** | change | [optional] | -|**coinType** | **BigDecimal** | Unique identifier of an asset (0 for BTC, 60 for ETH, etc.) | [optional] | -|**customerRefId** | **String** | customerRefId | [optional] | -|**addressFormat** | **String** | addressFormat | [optional] | -|**legacyAddress** | **String** | legacyAddress | [optional] | -|**paymentAddress** | **String** | paymentAddress | [optional] | -|**userDefined** | **Boolean** | userDefined | [optional] | -|**state** | [**StateEnum**](#StateEnum) | state | [optional] | - - - -## Enum: AddressTypeEnum - -| Name | Value | -|---- | -----| -| PERMANENT | "PERMANENT" | -| CHANGE | "CHANGE" | -| DEFAULT | "DEFAULT" | -| ADDRESS | "ADDRESS" | - - - -## Enum: StateEnum - -| Name | Value | -|---- | -----| -| PENDING_ACTIVATION | "PENDING_ACTIVATION" | -| ACTIVATION_FAILED | "ACTIVATION_FAILED" | -| READY | "READY" | - - - diff --git a/docs/EmbeddedWalletAlgoritm.md b/docs/EmbeddedWalletAlgoritm.md deleted file mode 100644 index 1da313ae..00000000 --- a/docs/EmbeddedWalletAlgoritm.md +++ /dev/null @@ -1,23 +0,0 @@ - - -# EmbeddedWalletAlgoritm - -algorithm name - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**algorithm** | [**AlgorithmEnum**](#AlgorithmEnum) | algorithm | | - - - -## Enum: AlgorithmEnum - -| Name | Value | -|---- | -----| -| MPC_ECDSA_SECP256_K1 | "MPC_ECDSA_SECP256K1" | -| MPC_EDDSA_ED25519 | "MPC_EDDSA_ED25519" | - - - diff --git a/docs/EmbeddedWalletAssetBalance.md b/docs/EmbeddedWalletAssetBalance.md deleted file mode 100644 index faebdf1d..00000000 --- a/docs/EmbeddedWalletAssetBalance.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# EmbeddedWalletAssetBalance - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**id** | **String** | Unique identifier of the asset balance entry | | -|**total** | **String** | Total balance amount for the asset in the account (including pending, locked, and available) | | -|**available** | **String** | The balance available for use or withdrawal | | -|**pending** | **String** | Amount pending confirmation from blockchain (e.g., unconfirmed deposits) | | -|**frozen** | **String** | Balance that is frozen due to policy or regulatory lock | | -|**lockedAmount** | **String** | Funds locked for operations such as staking or delegation | | -|**blockHeight** | **String** | Latest known blockchain height when balance was fetched | [optional] | -|**blockHash** | **String** | Hash of the blockchain block associated with the current balance state | [optional] | -|**rewardInfo** | [**EmbeddedWalletAssetRewardInfo**](EmbeddedWalletAssetRewardInfo.md) | | [optional] | - - - diff --git a/docs/EmbeddedWalletAssetResponse.md b/docs/EmbeddedWalletAssetResponse.md deleted file mode 100644 index 13d9779d..00000000 --- a/docs/EmbeddedWalletAssetResponse.md +++ /dev/null @@ -1,38 +0,0 @@ - - -# EmbeddedWalletAssetResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**id** | **String** | | | -|**symbol** | **String** | The asset symbol | | -|**name** | **String** | The asset name | | -|**decimals** | **BigDecimal** | Number of decimals | | -|**networkProtocol** | **String** | Netowrk protocol of the blockchain (BTC, ETH) | | -|**testnet** | **Boolean** | Is in testnet | | -|**hasFee** | **Boolean** | Has fee | | -|**baseAsset** | **String** | Base asset symbol BTC_TEST, ETH_TEST5) | | -|**ethNetwork** | **String** | | [optional] | -|**ethContractAddress** | **String** | | [optional] | -|**issuerAddress** | **String** | The address of the issuer of this token. Will be part of the identifier of this token on chain. | [optional] | -|**blockchainSymbol** | **String** | Name of blockchain | [optional] | -|**deprecated** | **Boolean** | Is blockchain deprecated | [optional] | -|**coinType** | **BigDecimal** | Unique identifier of an asset (0 for BTC, 60 for ETH, etc.) | | -|**blockchain** | **String** | The blockchain native asset id which the token is deployed on | | -|**blockchainDisplayName** | **String** | Name of blockchain | [optional] | -|**algorithm** | [**AlgorithmEnum**](#AlgorithmEnum) | | [optional] | - - - -## Enum: AlgorithmEnum - -| Name | Value | -|---- | -----| -| MPC_ECDSA_SECP256_K1 | "MPC_ECDSA_SECP256K1" | -| MPC_EDDSA_ED25519 | "MPC_EDDSA_ED25519" | - - - diff --git a/docs/EmbeddedWalletAssetRewardInfo.md b/docs/EmbeddedWalletAssetRewardInfo.md deleted file mode 100644 index 408dff42..00000000 --- a/docs/EmbeddedWalletAssetRewardInfo.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# EmbeddedWalletAssetRewardInfo - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**pendingRewards** | **String** | Amount that is pending for rewards | | - - - diff --git a/docs/EmbeddedWalletDevice.md b/docs/EmbeddedWalletDevice.md deleted file mode 100644 index 3fabfdec..00000000 --- a/docs/EmbeddedWalletDevice.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# EmbeddedWalletDevice - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**deviceId** | **String** | deviceId | | -|**enabled** | **Boolean** | enabled | | -|**physicalDeviceId** | **String** | physicalDeviceId | | - - - diff --git a/docs/EmbeddedWalletDeviceKeySetupResponse.md b/docs/EmbeddedWalletDeviceKeySetupResponse.md deleted file mode 100644 index b38f8a71..00000000 --- a/docs/EmbeddedWalletDeviceKeySetupResponse.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# EmbeddedWalletDeviceKeySetupResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | [**EmbeddedWalletSetUpStatus**](EmbeddedWalletSetUpStatus.md) | | | -|**deviceId** | **String** | deviceId | | -|**enabled** | **Boolean** | enabled | | -|**setupStatus** | [**List<EmbeddedWalletDeviceKeySetupResponseSetupStatusInner>**](EmbeddedWalletDeviceKeySetupResponseSetupStatusInner.md) | setupStatus | | - - - diff --git a/docs/EmbeddedWalletDeviceKeySetupResponseSetupStatusInner.md b/docs/EmbeddedWalletDeviceKeySetupResponseSetupStatusInner.md deleted file mode 100644 index 3ea7a25d..00000000 --- a/docs/EmbeddedWalletDeviceKeySetupResponseSetupStatusInner.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# EmbeddedWalletDeviceKeySetupResponseSetupStatusInner - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**algorithmName** | [**EmbeddedWalletAlgoritm**](EmbeddedWalletAlgoritm.md) | | | -|**confirmed** | **Boolean** | confirmed | | -|**backedUp** | **Boolean** | backedUp | | - - - diff --git a/docs/EmbeddedWalletLatestBackupKey.md b/docs/EmbeddedWalletLatestBackupKey.md deleted file mode 100644 index 14d60669..00000000 --- a/docs/EmbeddedWalletLatestBackupKey.md +++ /dev/null @@ -1,26 +0,0 @@ - - -# EmbeddedWalletLatestBackupKey - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**deviceId** | **String** | deviceId | | -|**publicKey** | **String** | publicKey | | -|**keyId** | **String** | keyId | | -|**algorithm** | [**AlgorithmEnum**](#AlgorithmEnum) | algorithm | | - - - -## Enum: AlgorithmEnum - -| Name | Value | -|---- | -----| -| MPC_CMP_ECDSA_SECP256_K1 | "MPC_CMP_ECDSA_SECP256K1" | -| MPC_CMP_EDDSA_ED25519 | "MPC_CMP_EDDSA_ED25519" | -| MPC_ECDSA_SECP256_K1 | "MPC_ECDSA_SECP256K1" | - - - diff --git a/docs/EmbeddedWalletLatestBackupResponse.md b/docs/EmbeddedWalletLatestBackupResponse.md deleted file mode 100644 index d92959fa..00000000 --- a/docs/EmbeddedWalletLatestBackupResponse.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# EmbeddedWalletLatestBackupResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**passphraseId** | **String** | passphraseId | | -|**createdAt** | **BigDecimal** | createdAt | | -|**keys** | [**List<EmbeddedWalletLatestBackupKey>**](EmbeddedWalletLatestBackupKey.md) | keys | | - - - diff --git a/docs/EmbeddedWalletPaginatedAddressesResponse.md b/docs/EmbeddedWalletPaginatedAddressesResponse.md deleted file mode 100644 index fda5f750..00000000 --- a/docs/EmbeddedWalletPaginatedAddressesResponse.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# EmbeddedWalletPaginatedAddressesResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**data** | [**List<EmbeddedWalletAddressDetails>**](EmbeddedWalletAddressDetails.md) | The data of the current page | | -|**next** | **String** | The ID of the next page | [optional] | - - - diff --git a/docs/EmbeddedWalletPaginatedAssetsResponse.md b/docs/EmbeddedWalletPaginatedAssetsResponse.md deleted file mode 100644 index b197a88d..00000000 --- a/docs/EmbeddedWalletPaginatedAssetsResponse.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# EmbeddedWalletPaginatedAssetsResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**data** | [**List<EmbeddedWalletAssetResponse>**](EmbeddedWalletAssetResponse.md) | The data of the current page | | -|**next** | **String** | The ID of the next page | [optional] | - - - diff --git a/docs/EmbeddedWalletPaginatedWalletsResponse.md b/docs/EmbeddedWalletPaginatedWalletsResponse.md deleted file mode 100644 index 4d2ced06..00000000 --- a/docs/EmbeddedWalletPaginatedWalletsResponse.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# EmbeddedWalletPaginatedWalletsResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**data** | [**List<EmbeddedWallet>**](EmbeddedWallet.md) | The data of the current page | | -|**next** | **String** | The ID of the next page | [optional] | - - - diff --git a/docs/EmbeddedWalletSetUpStatus.md b/docs/EmbeddedWalletSetUpStatus.md deleted file mode 100644 index f33ec6c9..00000000 --- a/docs/EmbeddedWalletSetUpStatus.md +++ /dev/null @@ -1,23 +0,0 @@ - - -# EmbeddedWalletSetUpStatus - -embedded wallet setup status - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | [**StatusEnum**](#StatusEnum) | status | | - - - -## Enum: StatusEnum - -| Name | Value | -|---- | -----| -| COMPLETE | "COMPLETE" | -| INCOMPLETE | "INCOMPLETE" | - - - diff --git a/docs/EmbeddedWalletsApi.md b/docs/EmbeddedWalletsApi.md deleted file mode 100644 index 4d534f3a..00000000 --- a/docs/EmbeddedWalletsApi.md +++ /dev/null @@ -1,1426 +0,0 @@ -# EmbeddedWalletsApi - -All URIs are relative to https://developers.fireblocks.com/reference/ - -| Method | HTTP request | Description | -|------------- | ------------- | -------------| -| [**addEmbeddedWalletAsset**](EmbeddedWalletsApi.md#addEmbeddedWalletAsset) | **POST** /ncw/wallets/{walletId}/accounts/{accountId}/assets/{assetId} | Add asset to account | -| [**createEmbeddedWallet**](EmbeddedWalletsApi.md#createEmbeddedWallet) | **POST** /ncw/wallets | Create a new wallet | -| [**createEmbeddedWalletAccount**](EmbeddedWalletsApi.md#createEmbeddedWalletAccount) | **POST** /ncw/wallets/{walletId}/accounts | Create a new account | -| [**getEmbeddedWallet**](EmbeddedWalletsApi.md#getEmbeddedWallet) | **GET** /ncw/wallets/{walletId} | Get a wallet | -| [**getEmbeddedWalletAccount**](EmbeddedWalletsApi.md#getEmbeddedWalletAccount) | **GET** /ncw/wallets/{walletId}/accounts/{accountId} | Get a account | -| [**getEmbeddedWalletAddresses**](EmbeddedWalletsApi.md#getEmbeddedWalletAddresses) | **GET** /ncw/wallets/{walletId}/accounts/{accountId}/assets/{assetId}/addresses | Retrieve asset addresses | -| [**getEmbeddedWalletAsset**](EmbeddedWalletsApi.md#getEmbeddedWalletAsset) | **GET** /ncw/wallets/{walletId}/accounts/{accountId}/assets/{assetId} | Retrieve asset | -| [**getEmbeddedWalletAssetBalance**](EmbeddedWalletsApi.md#getEmbeddedWalletAssetBalance) | **GET** /ncw/wallets/{walletId}/accounts/{accountId}/assets/{assetId}/balance | Retrieve asset balance | -| [**getEmbeddedWalletDevice**](EmbeddedWalletsApi.md#getEmbeddedWalletDevice) | **GET** /ncw/wallets/{walletId}/devices/{deviceId} | Get Embedded Wallet Device | -| [**getEmbeddedWalletDeviceSetupState**](EmbeddedWalletsApi.md#getEmbeddedWalletDeviceSetupState) | **GET** /ncw/wallets/{walletId}/devices/{deviceId}/setup_status | Get device key setup state | -| [**getEmbeddedWalletLatestBackup**](EmbeddedWalletsApi.md#getEmbeddedWalletLatestBackup) | **GET** /ncw/wallets/{walletId}/backup/latest | Get wallet Latest Backup details | -| [**getEmbeddedWalletPublicKeyInfoForAddress**](EmbeddedWalletsApi.md#getEmbeddedWalletPublicKeyInfoForAddress) | **GET** /ncw/wallets/{walletId}/accounts/{accountId}/assets/{assetId}/{change}/{addressIndex}/public_key_info | Get the public key of an asset | -| [**getEmbeddedWalletSupportedAssets**](EmbeddedWalletsApi.md#getEmbeddedWalletSupportedAssets) | **GET** /ncw/wallets/supported_assets | Retrieve supported assets | -| [**getEmbeddedWallets**](EmbeddedWalletsApi.md#getEmbeddedWallets) | **GET** /ncw/wallets | List wallets | -| [**getPublicKeyInfoNcw**](EmbeddedWalletsApi.md#getPublicKeyInfoNcw) | **GET** /ncw/wallets/{walletId}/public_key_info | Get the public key for a derivation path | -| [**refreshEmbeddedWalletAssetBalance**](EmbeddedWalletsApi.md#refreshEmbeddedWalletAssetBalance) | **PUT** /ncw/wallets/{walletId}/accounts/{accountId}/assets/{assetId}/balance | Refresh asset balance | - - - -## addEmbeddedWalletAsset - -> CompletableFuture> addEmbeddedWalletAsset addEmbeddedWalletAsset(walletId, accountId, assetId, idempotencyKey) - -Add asset to account - -Get the addresses of a specific asset, under a specific account, under a specific Non Custodial Wallet - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.EmbeddedWalletsApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - String walletId = "550e8400-e29b-41d4-a716-446655440000"; // String | Wallet Id - String accountId = "0"; // String | The ID of the account - String assetId = "BTC"; // String | The ID of the asset - String idempotencyKey = "idempotencyKey_example"; // String | 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. - try { - CompletableFuture> response = fireblocks.embeddedWallets().addEmbeddedWalletAsset(walletId, accountId, assetId, idempotencyKey); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling EmbeddedWalletsApi#addEmbeddedWalletAsset"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling EmbeddedWalletsApi#addEmbeddedWalletAsset"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **walletId** | **String**| Wallet Id | | -| **accountId** | **String**| The ID of the account | | -| **assetId** | **String**| The ID of the asset | | -| **idempotencyKey** | **String**| 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. | [optional] | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **201** | Created | - | -| **0** | Error Response | * X-Request-ID -
| - - -## createEmbeddedWallet - -> CompletableFuture> createEmbeddedWallet createEmbeddedWallet(idempotencyKey) - -Create a new wallet - -Create new Non Custodial Wallet - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.EmbeddedWalletsApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - String idempotencyKey = "idempotencyKey_example"; // String | 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. - try { - CompletableFuture> response = fireblocks.embeddedWallets().createEmbeddedWallet(idempotencyKey); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling EmbeddedWalletsApi#createEmbeddedWallet"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling EmbeddedWalletsApi#createEmbeddedWallet"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **idempotencyKey** | **String**| 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. | [optional] | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **201** | Wallet created successfully | * X-Request-ID -
| -| **0** | Error Response | * X-Request-ID -
| - - -## createEmbeddedWalletAccount - -> CompletableFuture> createEmbeddedWalletAccount createEmbeddedWalletAccount(walletId, idempotencyKey) - -Create a new account - -Create a new account under a specific Non Custodial Wallet - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.EmbeddedWalletsApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - String walletId = "550e8400-e29b-41d4-a716-446655440000"; // String | Wallet Id - String idempotencyKey = "idempotencyKey_example"; // String | 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. - try { - CompletableFuture> response = fireblocks.embeddedWallets().createEmbeddedWalletAccount(walletId, idempotencyKey); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling EmbeddedWalletsApi#createEmbeddedWalletAccount"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling EmbeddedWalletsApi#createEmbeddedWalletAccount"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **walletId** | **String**| Wallet Id | | -| **idempotencyKey** | **String**| 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. | [optional] | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **201** | Account Created | * X-Request-ID -
| -| **0** | Error Response | * X-Request-ID -
| - - -## getEmbeddedWallet - -> CompletableFuture> getEmbeddedWallet getEmbeddedWallet(walletId) - -Get a wallet - -Get a wallet - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.EmbeddedWalletsApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - String walletId = "550e8400-e29b-41d4-a716-446655440000"; // String | Wallet Id - try { - CompletableFuture> response = fireblocks.embeddedWallets().getEmbeddedWallet(walletId); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling EmbeddedWalletsApi#getEmbeddedWallet"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling EmbeddedWalletsApi#getEmbeddedWallet"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **walletId** | **String**| Wallet Id | | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful response | * X-Request-ID -
| -| **0** | Error Response | * X-Request-ID -
| - - -## getEmbeddedWalletAccount - -> CompletableFuture> getEmbeddedWalletAccount getEmbeddedWalletAccount(walletId, accountId) - -Get a account - -Get a specific account under a specific Non Custodial Wallet - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.EmbeddedWalletsApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - String walletId = "550e8400-e29b-41d4-a716-446655440000"; // String | WalletId - String accountId = "0"; // String | The ID of the account - try { - CompletableFuture> response = fireblocks.embeddedWallets().getEmbeddedWalletAccount(walletId, accountId); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling EmbeddedWalletsApi#getEmbeddedWalletAccount"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling EmbeddedWalletsApi#getEmbeddedWalletAccount"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **walletId** | **String**| WalletId | | -| **accountId** | **String**| The ID of the account | | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful response | * X-Request-ID -
| -| **0** | Error Response | * X-Request-ID -
| - - -## getEmbeddedWalletAddresses - -> CompletableFuture> getEmbeddedWalletAddresses getEmbeddedWalletAddresses(walletId, accountId, assetId, pageCursor, pageSize, sort, order, enabled) - -Retrieve asset addresses - -Get the addresses of a specific asset, under a specific account, under a specific Non Custodial Wallet - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.EmbeddedWalletsApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - String walletId = "550e8400-e29b-41d4-a716-446655440000"; // String | Wallet Id - String accountId = "0"; // String | The ID of the account - String assetId = "BTC"; // String | The ID of the asset - String pageCursor = "MjAyMy0xMi0xMyAyMDozNjowOC4zMDI=:MTEwMA=="; // String | Cursor to the next page - BigDecimal pageSize = new BigDecimal("10"); // BigDecimal | Items per page - String sort = "address"; // String | Sort by address - String order = "DESC"; // String | Is the order ascending or descending - Boolean enabled = true; // Boolean | Enabled - try { - CompletableFuture> response = fireblocks.embeddedWallets().getEmbeddedWalletAddresses(walletId, accountId, assetId, pageCursor, pageSize, sort, order, enabled); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling EmbeddedWalletsApi#getEmbeddedWalletAddresses"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling EmbeddedWalletsApi#getEmbeddedWalletAddresses"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **walletId** | **String**| Wallet Id | | -| **accountId** | **String**| The ID of the account | | -| **assetId** | **String**| The ID of the asset | | -| **pageCursor** | **String**| Cursor to the next page | [optional] | -| **pageSize** | **BigDecimal**| Items per page | [optional] | -| **sort** | **String**| Sort by address | [optional] [default to createdAt] [enum: address, createdAt] | -| **order** | **String**| Is the order ascending or descending | [optional] [default to ASC] [enum: DESC, ASC] | -| **enabled** | **Boolean**| Enabled | [optional] | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful response | - | -| **0** | Error Response | * X-Request-ID -
| - - -## getEmbeddedWalletAsset - -> CompletableFuture> getEmbeddedWalletAsset getEmbeddedWalletAsset(walletId, accountId, assetId) - -Retrieve asset - -Get asset under a specific account, under a specific Non Custodial Wallet - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.EmbeddedWalletsApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - String walletId = "550e8400-e29b-41d4-a716-446655440000"; // String | Wallet Id - String accountId = "0"; // String | The ID of the account - String assetId = "BTC"; // String | The ID of the asset - try { - CompletableFuture> response = fireblocks.embeddedWallets().getEmbeddedWalletAsset(walletId, accountId, assetId); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling EmbeddedWalletsApi#getEmbeddedWalletAsset"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling EmbeddedWalletsApi#getEmbeddedWalletAsset"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **walletId** | **String**| Wallet Id | | -| **accountId** | **String**| The ID of the account | | -| **assetId** | **String**| The ID of the asset | | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful response | * X-Request-ID -
| -| **0** | Error Response | * X-Request-ID -
| - - -## getEmbeddedWalletAssetBalance - -> CompletableFuture> getEmbeddedWalletAssetBalance getEmbeddedWalletAssetBalance(walletId, accountId, assetId) - -Retrieve asset balance - -Get balance for specific asset, under a specific account - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.EmbeddedWalletsApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - String walletId = "550e8400-e29b-41d4-a716-446655440000"; // String | Wallet Id - String accountId = "0"; // String | The ID of the account - String assetId = "BTC"; // String | The ID of the asset - try { - CompletableFuture> response = fireblocks.embeddedWallets().getEmbeddedWalletAssetBalance(walletId, accountId, assetId); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling EmbeddedWalletsApi#getEmbeddedWalletAssetBalance"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling EmbeddedWalletsApi#getEmbeddedWalletAssetBalance"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **walletId** | **String**| Wallet Id | | -| **accountId** | **String**| The ID of the account | | -| **assetId** | **String**| The ID of the asset | | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful response | - | -| **0** | Error Response | * X-Request-ID -
| - - -## getEmbeddedWalletDevice - -> CompletableFuture> getEmbeddedWalletDevice getEmbeddedWalletDevice(walletId, deviceId) - -Get Embedded Wallet Device - -Get specific device for a specific s Wallet - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.EmbeddedWalletsApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - String walletId = "550e8400-e29b-41d4-a716-446655440000"; // String | Wallet Id - String deviceId = "9ee1bff0-6dba-4f0c-9b75-03fe90e66fa3"; // String | Device Id - try { - CompletableFuture> response = fireblocks.embeddedWallets().getEmbeddedWalletDevice(walletId, deviceId); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling EmbeddedWalletsApi#getEmbeddedWalletDevice"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling EmbeddedWalletsApi#getEmbeddedWalletDevice"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **walletId** | **String**| Wallet Id | | -| **deviceId** | **String**| Device Id | | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful response | * X-Request-ID -
| -| **0** | Error Response | * X-Request-ID -
| - - -## getEmbeddedWalletDeviceSetupState - -> CompletableFuture> getEmbeddedWalletDeviceSetupState getEmbeddedWalletDeviceSetupState(walletId, deviceId) - -Get device key setup state - -Get the state of the specific device setup key under a specific Non Custodial Wallet - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.EmbeddedWalletsApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - String walletId = "550e8400-e29b-41d4-a716-446655440000"; // String | Wallet Id - String deviceId = "9ee1bff0-6dba-4f0c-9b75-03fe90e66fa3"; // String | Device Id - try { - CompletableFuture> response = fireblocks.embeddedWallets().getEmbeddedWalletDeviceSetupState(walletId, deviceId); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling EmbeddedWalletsApi#getEmbeddedWalletDeviceSetupState"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling EmbeddedWalletsApi#getEmbeddedWalletDeviceSetupState"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **walletId** | **String**| Wallet Id | | -| **deviceId** | **String**| Device Id | | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful response | * X-Request-ID -
| -| **0** | Error Response | * X-Request-ID -
| - - -## getEmbeddedWalletLatestBackup - -> CompletableFuture> getEmbeddedWalletLatestBackup getEmbeddedWalletLatestBackup(walletId) - -Get wallet Latest Backup details - -Get wallet Latest Backup details, including the deviceId, and backup time - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.EmbeddedWalletsApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - String walletId = "550e8400-e29b-41d4-a716-446655440000"; // String | Wallet Id - try { - CompletableFuture> response = fireblocks.embeddedWallets().getEmbeddedWalletLatestBackup(walletId); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling EmbeddedWalletsApi#getEmbeddedWalletLatestBackup"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling EmbeddedWalletsApi#getEmbeddedWalletLatestBackup"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **walletId** | **String**| Wallet Id | | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful response | * X-Request-ID -
| -| **0** | Error Response | * X-Request-ID -
| - - -## getEmbeddedWalletPublicKeyInfoForAddress - -> CompletableFuture> getEmbeddedWalletPublicKeyInfoForAddress getEmbeddedWalletPublicKeyInfoForAddress(xEndUserWalletId, walletId, accountId, assetId, change, addressIndex, compressed) - -Get the public key of an asset - -Gets the public key of an asset associated with a specific account within a Non-Custodial Wallet - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.EmbeddedWalletsApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - UUID xEndUserWalletId = UUID.randomUUID(); // UUID | Unique ID of the End-User wallet to the API request. Required for end-user wallet operations. - String walletId = "550e8400-e29b-41d4-a716-446655440000"; // String | The ID of the Non-Custodial wallet - String accountId = "0"; // String | The ID of the account - String assetId = "BTC"; // String | The ID of the asset - BigDecimal change = new BigDecimal("0"); // BigDecimal | BIP44 derivation path - change value - BigDecimal addressIndex = new BigDecimal("0"); // BigDecimal | BIP44 derivation path - index value - Boolean compressed = true; // Boolean | Compressed/Uncompressed public key format - try { - CompletableFuture> response = fireblocks.embeddedWallets().getEmbeddedWalletPublicKeyInfoForAddress(xEndUserWalletId, walletId, accountId, assetId, change, addressIndex, compressed); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling EmbeddedWalletsApi#getEmbeddedWalletPublicKeyInfoForAddress"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling EmbeddedWalletsApi#getEmbeddedWalletPublicKeyInfoForAddress"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **xEndUserWalletId** | **UUID**| Unique ID of the End-User wallet to the API request. Required for end-user wallet operations. | | -| **walletId** | **String**| The ID of the Non-Custodial wallet | | -| **accountId** | **String**| The ID of the account | | -| **assetId** | **String**| The ID of the asset | | -| **change** | **BigDecimal**| BIP44 derivation path - change value | | -| **addressIndex** | **BigDecimal**| BIP44 derivation path - index value | | -| **compressed** | **Boolean**| Compressed/Uncompressed public key format | [optional] | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Public Key Information | * X-Request-ID -
| -| **0** | Error Response | * X-Request-ID -
| - - -## getEmbeddedWalletSupportedAssets - -> CompletableFuture> getEmbeddedWalletSupportedAssets getEmbeddedWalletSupportedAssets(pageCursor, pageSize, onlyBaseAssets) - -Retrieve supported assets - -Get all the available supported assets for the Non-Custodial Wallet - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.EmbeddedWalletsApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - String pageCursor = "MjAyMy0xMi0xMyAyMDozNjowOC4zMDI=:MTEwMA=="; // String | Next page cursor to fetch - BigDecimal pageSize = new BigDecimal("200"); // BigDecimal | Items per page - Boolean onlyBaseAssets = true; // Boolean | Only base assets - try { - CompletableFuture> response = fireblocks.embeddedWallets().getEmbeddedWalletSupportedAssets(pageCursor, pageSize, onlyBaseAssets); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling EmbeddedWalletsApi#getEmbeddedWalletSupportedAssets"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling EmbeddedWalletsApi#getEmbeddedWalletSupportedAssets"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **pageCursor** | **String**| Next page cursor to fetch | [optional] | -| **pageSize** | **BigDecimal**| Items per page | [optional] [default to 200] | -| **onlyBaseAssets** | **Boolean**| Only base assets | [optional] | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful response | * X-Request-ID -
| -| **0** | Error Response | * X-Request-ID -
| - - -## getEmbeddedWallets - -> CompletableFuture> getEmbeddedWallets getEmbeddedWallets(pageCursor, pageSize, sort, order, enabled) - -List wallets - -Get all Non Custodial Wallets - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.EmbeddedWalletsApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - String pageCursor = "MjAyMy0xMi0xMyAyMDozNjowOC4zMDI=:MTEwMA=="; // String | Next page cursor to fetch - BigDecimal pageSize = new BigDecimal("200"); // BigDecimal | Items per page - String sort = "createdAt"; // String | Field(s) to use for sorting - String order = "ASC"; // String | Is the order ascending or descending - Boolean enabled = true; // Boolean | Enabled Wallets - try { - CompletableFuture> response = fireblocks.embeddedWallets().getEmbeddedWallets(pageCursor, pageSize, sort, order, enabled); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling EmbeddedWalletsApi#getEmbeddedWallets"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling EmbeddedWalletsApi#getEmbeddedWallets"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **pageCursor** | **String**| Next page cursor to fetch | [optional] | -| **pageSize** | **BigDecimal**| Items per page | [optional] [default to 200] | -| **sort** | **String**| Field(s) to use for sorting | [optional] [default to createdAt] [enum: createdAt] | -| **order** | **String**| Is the order ascending or descending | [optional] [default to ASC] [enum: ASC, DESC] | -| **enabled** | **Boolean**| Enabled Wallets | [optional] | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful response | * X-Request-ID -
| -| **0** | Error Response | * X-Request-ID -
| - - -## getPublicKeyInfoNcw - -> CompletableFuture> getPublicKeyInfoNcw getPublicKeyInfoNcw(xEndUserWalletId, walletId, derivationPath, algorithm, compressed) - -Get the public key for a derivation path - -Gets the public key information based on derivation path and signing algorithm within a Non-Custodial Wallet - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.EmbeddedWalletsApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - UUID xEndUserWalletId = UUID.randomUUID(); // UUID | Unique ID of the End-User wallet to the API request. Required for end-user wallet operations. - String walletId = "550e8400-e29b-41d4-a716-446655440000"; // String | The ID of the Non-Custodial wallet - String derivationPath = "[44,0,0,0,0]"; // String | An array of integers (passed as JSON stringified array) representing the full BIP44 derivation path of the requested public key. The first element must always be 44. - String algorithm = "MPC_ECDSA_SECP256K1"; // String | Elliptic Curve - Boolean compressed = true; // Boolean | Compressed/Uncompressed public key format - try { - CompletableFuture> response = fireblocks.embeddedWallets().getPublicKeyInfoNcw(xEndUserWalletId, walletId, derivationPath, algorithm, compressed); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling EmbeddedWalletsApi#getPublicKeyInfoNcw"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling EmbeddedWalletsApi#getPublicKeyInfoNcw"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **xEndUserWalletId** | **UUID**| Unique ID of the End-User wallet to the API request. Required for end-user wallet operations. | | -| **walletId** | **String**| The ID of the Non-Custodial wallet | | -| **derivationPath** | **String**| An array of integers (passed as JSON stringified array) representing the full BIP44 derivation path of the requested public key. The first element must always be 44. | | -| **algorithm** | **String**| Elliptic Curve | [enum: MPC_ECDSA_SECP256K1, MPC_ECDSA_SECP256R1, MPC_EDDSA_ED25519] | -| **compressed** | **Boolean**| Compressed/Uncompressed public key format | [optional] | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Public key information | * X-Request-ID -
| -| **0** | Error Response | * X-Request-ID -
| - - -## refreshEmbeddedWalletAssetBalance - -> CompletableFuture> refreshEmbeddedWalletAssetBalance refreshEmbeddedWalletAssetBalance(walletId, accountId, assetId, idempotencyKey) - -Refresh asset balance - -Refresh the balance of an asset in a specific account - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.EmbeddedWalletsApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - String walletId = "550e8400-e29b-41d4-a716-446655440000"; // String | Wallet Id - String accountId = "0"; // String | The ID of the account - String assetId = "BTC"; // String | The ID of the asset - String idempotencyKey = "idempotencyKey_example"; // String | 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. - try { - CompletableFuture> response = fireblocks.embeddedWallets().refreshEmbeddedWalletAssetBalance(walletId, accountId, assetId, idempotencyKey); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling EmbeddedWalletsApi#refreshEmbeddedWalletAssetBalance"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling EmbeddedWalletsApi#refreshEmbeddedWalletAssetBalance"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **walletId** | **String**| Wallet Id | | -| **accountId** | **String**| The ID of the account | | -| **assetId** | **String**| The ID of the asset | | -| **idempotencyKey** | **String**| 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. | [optional] | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful response | * X-Request-ID -
| -| **0** | Error Response | * X-Request-ID -
| - diff --git a/docs/ErrorCodes.md b/docs/ErrorCodes.md deleted file mode 100644 index 206bfdcb..00000000 --- a/docs/ErrorCodes.md +++ /dev/null @@ -1,25 +0,0 @@ - - -# ErrorCodes - -## Enum - - -* `INVALID_TOKEN` (value: `"INVALID_TOKEN"`) - -* `MISSING_PARAMETER` (value: `"MISSING_PARAMETER"`) - -* `INVALID_PARAMETER` (value: `"INVALID_PARAMETER"`) - -* `RESOURCE_NOT_FOUND` (value: `"RESOURCE_NOT_FOUND"`) - -* `INVALID_TIME_RANGE` (value: `"INVALID_TIME_RANGE"`) - -* `UNAUTHORIZED` (value: `"UNAUTHORIZED"`) - -* `ACCOUNT_NOT_ACTIVE` (value: `"ACCOUNT_NOT_ACTIVE"`) - -* `UNMANAGED_WALLET_NOT_APPROVED` (value: `"UNMANAGED_WALLET_NOT_APPROVED"`) - - - diff --git a/docs/EstimatedFeeDetails.md b/docs/EstimatedFeeDetails.md deleted file mode 100644 index 0918d858..00000000 --- a/docs/EstimatedFeeDetails.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# EstimatedFeeDetails - -Optional detailed fee breakdown for high/medium/low estimates - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**low** | [**FeeBreakdown**](FeeBreakdown.md) | | [optional] | -|**medium** | [**FeeBreakdown**](FeeBreakdown.md) | | [optional] | -|**high** | [**FeeBreakdown**](FeeBreakdown.md) | | [optional] | - - - diff --git a/docs/EstimatedTransactionFeeResponse.md b/docs/EstimatedTransactionFeeResponse.md index d71ff40c..60a46ef0 100644 --- a/docs/EstimatedTransactionFeeResponse.md +++ b/docs/EstimatedTransactionFeeResponse.md @@ -10,7 +10,6 @@ |**low** | [**TransactionFee**](TransactionFee.md) | | | |**medium** | [**TransactionFee**](TransactionFee.md) | | | |**high** | [**TransactionFee**](TransactionFee.md) | | | -|**feeDetails** | [**EstimatedFeeDetails**](EstimatedFeeDetails.md) | | [optional] | diff --git a/docs/ExchangeAccountsApi.md b/docs/ExchangeAccountsApi.md index 0c91bad7..3eec54c1 100644 --- a/docs/ExchangeAccountsApi.md +++ b/docs/ExchangeAccountsApi.md @@ -4,101 +4,14 @@ All URIs are relative to https://developers.fireblocks.com/reference/ | Method | HTTP request | Description | |------------- | ------------- | -------------| -| [**addExchangeAccount**](ExchangeAccountsApi.md#addExchangeAccount) | **POST** /exchange_accounts | Add an exchange account | | [**convertAssets**](ExchangeAccountsApi.md#convertAssets) | **POST** /exchange_accounts/{exchangeAccountId}/convert | Convert exchange account funds from the source asset to the destination asset. | | [**getExchangeAccount**](ExchangeAccountsApi.md#getExchangeAccount) | **GET** /exchange_accounts/{exchangeAccountId} | Find a specific exchange account | | [**getExchangeAccountAsset**](ExchangeAccountsApi.md#getExchangeAccountAsset) | **GET** /exchange_accounts/{exchangeAccountId}/{assetId} | Find an asset for an exchange account | -| [**getExchangeAccountsCredentialsPublicKey**](ExchangeAccountsApi.md#getExchangeAccountsCredentialsPublicKey) | **GET** /exchange_accounts/credentials_public_key | Get public key to encrypt exchange credentials | | [**getPagedExchangeAccounts**](ExchangeAccountsApi.md#getPagedExchangeAccounts) | **GET** /exchange_accounts/paged | Pagination list exchange accounts | | [**internalTransfer**](ExchangeAccountsApi.md#internalTransfer) | **POST** /exchange_accounts/{exchangeAccountId}/internal_transfer | Internal transfer for exchange accounts | -## addExchangeAccount - -> CompletableFuture> addExchangeAccount addExchangeAccount(addExchangeAccountRequest, idempotencyKey) - -Add an exchange account - -Add an exchange account to exchanges. - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.ExchangeAccountsApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - AddExchangeAccountRequest addExchangeAccountRequest = new AddExchangeAccountRequest(); // AddExchangeAccountRequest | - String idempotencyKey = "idempotencyKey_example"; // String | 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. - try { - CompletableFuture> response = fireblocks.exchangeAccounts().addExchangeAccount(addExchangeAccountRequest, idempotencyKey); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling ExchangeAccountsApi#addExchangeAccount"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling ExchangeAccountsApi#addExchangeAccount"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **addExchangeAccountRequest** | [**AddExchangeAccountRequest**](AddExchangeAccountRequest.md)| | | -| **idempotencyKey** | **String**| 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. | [optional] | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **201** | An Exchange Account identifier object | * X-Request-ID -
| -| **0** | Error Response | * X-Request-ID -
| - - ## convertAssets > CompletableFuture> convertAssets convertAssets(exchangeAccountId, convertAssetsRequest, idempotencyKey) @@ -354,85 +267,6 @@ No authorization required | **0** | Error Response | * X-Request-ID -
| -## getExchangeAccountsCredentialsPublicKey - -> CompletableFuture> getExchangeAccountsCredentialsPublicKey getExchangeAccountsCredentialsPublicKey() - -Get public key to encrypt exchange credentials - -Return public key - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.ExchangeAccountsApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - try { - CompletableFuture> response = fireblocks.exchangeAccounts().getExchangeAccountsCredentialsPublicKey(); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling ExchangeAccountsApi#getExchangeAccountsCredentialsPublicKey"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling ExchangeAccountsApi#getExchangeAccountsCredentialsPublicKey"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | public key as string | * X-Request-ID -
| -| **0** | Error Response | * X-Request-ID -
| - - ## getPagedExchangeAccounts > CompletableFuture>> getPagedExchangeAccounts getPagedExchangeAccounts(limit, before, after) diff --git a/docs/ExchangeAsset.md b/docs/ExchangeAsset.md index 50d9c205..a2c46dc3 100644 --- a/docs/ExchangeAsset.md +++ b/docs/ExchangeAsset.md @@ -12,11 +12,6 @@ |**lockedAmount** | **String** | | [optional] | |**total** | **String** | | [optional] | |**available** | **String** | | [optional] | -|**credit** | **String** | | [optional] | -|**assetId** | **String** | The id of the asset | [optional] | -|**providerSymbol** | **String** | The provider symbol of the asset | [optional] | -|**assetSymbol** | **String** | The asset symbol of the asset | [optional] | -|**assetLegacyId** | **String** | The asset legacy id of the asset | [optional] | diff --git a/docs/ExchangeType.md b/docs/ExchangeType.md index 9ebc917b..9256bc99 100644 --- a/docs/ExchangeType.md +++ b/docs/ExchangeType.md @@ -5,89 +5,57 @@ ## Enum -* `INDEPENDENT_RESERVE` (value: `"INDEPENDENT_RESERVE"`) - -* `ENCLAVE_MARKETS` (value: `"ENCLAVE_MARKETS"`) - -* `BIT` (value: `"BIT"`) - -* `COINFLEX` (value: `"COINFLEX"`) - -* `KUCOIN` (value: `"KUCOIN"`) +* `BINANCE` (value: `"BINANCE"`) -* `PXS` (value: `"PXS"`) +* `BINANCEUS` (value: `"BINANCEUS"`) -* `LIQUID` (value: `"LIQUID"`) +* `BITFINEX` (value: `"BITFINEX"`) * `BITHUMB` (value: `"BITHUMB"`) -* `BITFINEX` (value: `"BITFINEX"`) +* `BITMEX` (value: `"BITMEX"`) * `BITSO` (value: `"BITSO"`) * `BITSTAMP` (value: `"BITSTAMP"`) -* `KRAKEN` (value: `"KRAKEN"`) +* `BITTREX` (value: `"BITTREX"`) -* `KRAKENINTL` (value: `"KRAKENINTL"`) - -* `BINANCE` (value: `"BINANCE"`) - -* `BINANCEUS` (value: `"BINANCEUS"`) - -* `CRYPTOCOM` (value: `"CRYPTOCOM"`) - -* `BYBIT_V2` (value: `"BYBIT_V2"`) +* `CIRCLE` (value: `"CIRCLE"`) * `COINBASEPRO` (value: `"COINBASEPRO"`) -* `COINBASEPRIME` (value: `"COINBASEPRIME"`) +* `COINMETRO` (value: `"COINMETRO"`) -* `COINBASEINTERNATIONAL` (value: `"COINBASEINTERNATIONAL"`) +* `COINSPRO` (value: `"COINSPRO"`) -* `WHITEBIT` (value: `"WHITEBIT"`) +* `CRYPTOCOM` (value: `"CRYPTOCOM"`) -* `COINBASEEXCHANGE` (value: `"COINBASEEXCHANGE"`) +* `DERIBIT` (value: `"DERIBIT"`) -* `KORBIT` (value: `"KORBIT"`) +* `FTX` (value: `"FTX"`) -* `HITBTC` (value: `"HITBTC"`) +* `FIXUS` (value: `"FIXUS"`) * `GEMINI` (value: `"GEMINI"`) -* `CIRCLE` (value: `"CIRCLE"`) - -* `BITMEX` (value: `"BITMEX"`) +* `HITBTC` (value: `"HITBTC"`) * `HUOBI` (value: `"HUOBI"`) -* `DERIBIT` (value: `"DERIBIT"`) - -* `OKCOIN_V5` (value: `"OKCOIN_V5"`) - -* `OKEX` (value: `"OKEX"`) - -* `COINMETRO` (value: `"COINMETRO"`) - -* `GATEIO` (value: `"GATEIO"`) - -* `SCRYPT` (value: `"SCRYPT"`) - -* `COINHAKO` (value: `"COINHAKO"`) - -* `LIGHTBIT` (value: `"LIGHTBIT"`) +* `KORBIT` (value: `"KORBIT"`) -* `BULLISH` (value: `"BULLISH"`) +* `KRAKEN` (value: `"KRAKEN"`) -* `CANVAS_CONNECT` (value: `"CANVAS_CONNECT"`) +* `LIQUID` (value: `"LIQUID"`) -* `BITGET` (value: `"BITGET"`) +* `POLONIEX` (value: `"POLONIEX"`) -* `LUNO` (value: `"LUNO"`) +* `OKCOIN` (value: `"OKCOIN"`) -* `BIT_GENERA` (value: `"BIT_GENERA"`) +* `OKEX` (value: `"OKEX"`) -* `TRANSFERO` (value: `"TRANSFERO"`) +* `SEEDCX` (value: `"SEEDCX"`) diff --git a/docs/ExecuteActionRequest.md b/docs/ExecuteActionRequest.md new file mode 100644 index 00000000..1dd9a3b9 --- /dev/null +++ b/docs/ExecuteActionRequest.md @@ -0,0 +1,46 @@ + + +# ExecuteActionRequest + +## oneOf schemas +* [StakeRequestDto](StakeRequestDto.md) +* [UnstakeRequestDto](UnstakeRequestDto.md) +* [WithdrawRequestDto](WithdrawRequestDto.md) + +## Example +```java +// Import classes: +import com.fireblocks.sdk.model.ExecuteActionRequest; +import com.fireblocks.sdk.model.StakeRequestDto; +import com.fireblocks.sdk.model.UnstakeRequestDto; +import com.fireblocks.sdk.model.WithdrawRequestDto; + +public class Example { + public static void main(String[] args) { + ExecuteActionRequest exampleExecuteActionRequest = new ExecuteActionRequest(); + + // create a new StakeRequestDto + StakeRequestDto exampleStakeRequestDto = new StakeRequestDto(); + // set ExecuteActionRequest to StakeRequestDto + exampleExecuteActionRequest.setActualInstance(exampleStakeRequestDto); + // to get back the StakeRequestDto set earlier + StakeRequestDto testStakeRequestDto = (StakeRequestDto) exampleExecuteActionRequest.getActualInstance(); + + // create a new UnstakeRequestDto + UnstakeRequestDto exampleUnstakeRequestDto = new UnstakeRequestDto(); + // set ExecuteActionRequest to UnstakeRequestDto + exampleExecuteActionRequest.setActualInstance(exampleUnstakeRequestDto); + // to get back the UnstakeRequestDto set earlier + UnstakeRequestDto testUnstakeRequestDto = (UnstakeRequestDto) exampleExecuteActionRequest.getActualInstance(); + + // create a new WithdrawRequestDto + WithdrawRequestDto exampleWithdrawRequestDto = new WithdrawRequestDto(); + // set ExecuteActionRequest to WithdrawRequestDto + exampleExecuteActionRequest.setActualInstance(exampleWithdrawRequestDto); + // to get back the WithdrawRequestDto set earlier + WithdrawRequestDto testWithdrawRequestDto = (WithdrawRequestDto) exampleExecuteActionRequest.getActualInstance(); + } +} +``` + + diff --git a/docs/ExecuteActionResponse.md b/docs/ExecuteActionResponse.md new file mode 100644 index 00000000..4b545e4d --- /dev/null +++ b/docs/ExecuteActionResponse.md @@ -0,0 +1,37 @@ + + +# ExecuteActionResponse + +## oneOf schemas +* [Object](Object.md) +* [StakeResponseDto](StakeResponseDto.md) + +## Example +```java +// Import classes: +import com.fireblocks.sdk.model.ExecuteActionResponse; +import com.fireblocks.sdk.model.Object; +import com.fireblocks.sdk.model.StakeResponseDto; + +public class Example { + public static void main(String[] args) { + ExecuteActionResponse exampleExecuteActionResponse = new ExecuteActionResponse(); + + // create a new Object + Object exampleObject = new Object(); + // set ExecuteActionResponse to Object + exampleExecuteActionResponse.setActualInstance(exampleObject); + // to get back the Object set earlier + Object testObject = (Object) exampleExecuteActionResponse.getActualInstance(); + + // create a new StakeResponseDto + StakeResponseDto exampleStakeResponseDto = new StakeResponseDto(); + // set ExecuteActionResponse to StakeResponseDto + exampleExecuteActionResponse.setActualInstance(exampleStakeResponseDto); + // to get back the StakeResponseDto set earlier + StakeResponseDto testStakeResponseDto = (StakeResponseDto) exampleExecuteActionResponse.getActualInstance(); + } +} +``` + + diff --git a/docs/ExecutionRequestBaseDetails.md b/docs/ExecutionRequestBaseDetails.md deleted file mode 100644 index a93b26b1..00000000 --- a/docs/ExecutionRequestBaseDetails.md +++ /dev/null @@ -1,27 +0,0 @@ - - -# ExecutionRequestBaseDetails - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**side** | [**SideEnum**](#SideEnum) | Side of the order | | -|**baseAmount** | **String** | Amount to convert | | -|**baseAssetId** | **String** | Source asset identifier | | -|**baseAssetRail** | **TransferRail** | | [optional] | -|**quoteAssetId** | **String** | Target asset identifier | | -|**quoteAssetRail** | **TransferRail** | | [optional] | - - - -## Enum: SideEnum - -| Name | Value | -|---- | -----| -| BUY | "BUY" | -| SELL | "SELL" | - - - diff --git a/docs/ExecutionRequestDetails.md b/docs/ExecutionRequestDetails.md deleted file mode 100644 index 14699bf7..00000000 --- a/docs/ExecutionRequestDetails.md +++ /dev/null @@ -1,48 +0,0 @@ - - -# ExecutionRequestDetails - -Order execution details - -## oneOf schemas -* [LimitExecutionRequestDetails](LimitExecutionRequestDetails.md) -* [MarketExecutionRequestDetails](MarketExecutionRequestDetails.md) -* [QuoteExecutionWithRequoteRequestDetails](QuoteExecutionWithRequoteRequestDetails.md) - -## Example -```java -// Import classes: -import com.fireblocks.sdk.model.ExecutionRequestDetails; -import com.fireblocks.sdk.model.LimitExecutionRequestDetails; -import com.fireblocks.sdk.model.MarketExecutionRequestDetails; -import com.fireblocks.sdk.model.QuoteExecutionWithRequoteRequestDetails; - -public class Example { - public static void main(String[] args) { - ExecutionRequestDetails exampleExecutionRequestDetails = new ExecutionRequestDetails(); - - // create a new LimitExecutionRequestDetails - LimitExecutionRequestDetails exampleLimitExecutionRequestDetails = new LimitExecutionRequestDetails(); - // set ExecutionRequestDetails to LimitExecutionRequestDetails - exampleExecutionRequestDetails.setActualInstance(exampleLimitExecutionRequestDetails); - // to get back the LimitExecutionRequestDetails set earlier - LimitExecutionRequestDetails testLimitExecutionRequestDetails = (LimitExecutionRequestDetails) exampleExecutionRequestDetails.getActualInstance(); - - // create a new MarketExecutionRequestDetails - MarketExecutionRequestDetails exampleMarketExecutionRequestDetails = new MarketExecutionRequestDetails(); - // set ExecutionRequestDetails to MarketExecutionRequestDetails - exampleExecutionRequestDetails.setActualInstance(exampleMarketExecutionRequestDetails); - // to get back the MarketExecutionRequestDetails set earlier - MarketExecutionRequestDetails testMarketExecutionRequestDetails = (MarketExecutionRequestDetails) exampleExecutionRequestDetails.getActualInstance(); - - // create a new QuoteExecutionWithRequoteRequestDetails - QuoteExecutionWithRequoteRequestDetails exampleQuoteExecutionWithRequoteRequestDetails = new QuoteExecutionWithRequoteRequestDetails(); - // set ExecutionRequestDetails to QuoteExecutionWithRequoteRequestDetails - exampleExecutionRequestDetails.setActualInstance(exampleQuoteExecutionWithRequoteRequestDetails); - // to get back the QuoteExecutionWithRequoteRequestDetails set earlier - QuoteExecutionWithRequoteRequestDetails testQuoteExecutionWithRequoteRequestDetails = (QuoteExecutionWithRequoteRequestDetails) exampleExecutionRequestDetails.getActualInstance(); - } -} -``` - - diff --git a/docs/ExecutionResponseBaseDetails.md b/docs/ExecutionResponseBaseDetails.md deleted file mode 100644 index bccd4fb0..00000000 --- a/docs/ExecutionResponseBaseDetails.md +++ /dev/null @@ -1,27 +0,0 @@ - - -# ExecutionResponseBaseDetails - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**side** | [**SideEnum**](#SideEnum) | Side of the order | | -|**baseAmount** | **String** | Amount to convert | | -|**baseAssetId** | **String** | Source asset identifier | | -|**baseAssetRail** | **TransferRail** | | [optional] | -|**quoteAssetId** | **String** | Target asset identifier | | -|**quoteAssetRail** | **TransferRail** | | [optional] | - - - -## Enum: SideEnum - -| Name | Value | -|---- | -----| -| BUY | "BUY" | -| SELL | "SELL" | - - - diff --git a/docs/ExecutionResponseDetails.md b/docs/ExecutionResponseDetails.md deleted file mode 100644 index 04307d28..00000000 --- a/docs/ExecutionResponseDetails.md +++ /dev/null @@ -1,46 +0,0 @@ - - -# ExecutionResponseDetails - -## oneOf schemas -* [LimitExecutionResponseDetails](LimitExecutionResponseDetails.md) -* [MarketExecutionResponseDetails](MarketExecutionResponseDetails.md) -* [QuoteExecutionWithRequoteResponseDetails](QuoteExecutionWithRequoteResponseDetails.md) - -## Example -```java -// Import classes: -import com.fireblocks.sdk.model.ExecutionResponseDetails; -import com.fireblocks.sdk.model.LimitExecutionResponseDetails; -import com.fireblocks.sdk.model.MarketExecutionResponseDetails; -import com.fireblocks.sdk.model.QuoteExecutionWithRequoteResponseDetails; - -public class Example { - public static void main(String[] args) { - ExecutionResponseDetails exampleExecutionResponseDetails = new ExecutionResponseDetails(); - - // create a new LimitExecutionResponseDetails - LimitExecutionResponseDetails exampleLimitExecutionResponseDetails = new LimitExecutionResponseDetails(); - // set ExecutionResponseDetails to LimitExecutionResponseDetails - exampleExecutionResponseDetails.setActualInstance(exampleLimitExecutionResponseDetails); - // to get back the LimitExecutionResponseDetails set earlier - LimitExecutionResponseDetails testLimitExecutionResponseDetails = (LimitExecutionResponseDetails) exampleExecutionResponseDetails.getActualInstance(); - - // create a new MarketExecutionResponseDetails - MarketExecutionResponseDetails exampleMarketExecutionResponseDetails = new MarketExecutionResponseDetails(); - // set ExecutionResponseDetails to MarketExecutionResponseDetails - exampleExecutionResponseDetails.setActualInstance(exampleMarketExecutionResponseDetails); - // to get back the MarketExecutionResponseDetails set earlier - MarketExecutionResponseDetails testMarketExecutionResponseDetails = (MarketExecutionResponseDetails) exampleExecutionResponseDetails.getActualInstance(); - - // create a new QuoteExecutionWithRequoteResponseDetails - QuoteExecutionWithRequoteResponseDetails exampleQuoteExecutionWithRequoteResponseDetails = new QuoteExecutionWithRequoteResponseDetails(); - // set ExecutionResponseDetails to QuoteExecutionWithRequoteResponseDetails - exampleExecutionResponseDetails.setActualInstance(exampleQuoteExecutionWithRequoteResponseDetails); - // to get back the QuoteExecutionWithRequoteResponseDetails set earlier - QuoteExecutionWithRequoteResponseDetails testQuoteExecutionWithRequoteResponseDetails = (QuoteExecutionWithRequoteResponseDetails) exampleExecutionResponseDetails.getActualInstance(); - } -} -``` - - diff --git a/docs/ExecutionStep.md b/docs/ExecutionStep.md deleted file mode 100644 index 09919f13..00000000 --- a/docs/ExecutionStep.md +++ /dev/null @@ -1,18 +0,0 @@ - - -# ExecutionStep - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**type** | **ExecutionStepType** | | | -|**status** | **ExecutionStepStatusEnum** | | | -|**fee** | [**Fee**](Fee.md) | | [optional] | -|**txId** | **String** | | [optional] | -|**txHash** | **String** | | [optional] | -|**error** | **ExecutionStepError** | | [optional] | - - - diff --git a/docs/ExecutionStepDetails.md b/docs/ExecutionStepDetails.md deleted file mode 100644 index 437abb91..00000000 --- a/docs/ExecutionStepDetails.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# ExecutionStepDetails - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**type** | **ExecutionStepType** | | | -|**fee** | [**Fee**](Fee.md) | | [optional] | - - - diff --git a/docs/ExecutionStepError.md b/docs/ExecutionStepError.md deleted file mode 100644 index 03358fe2..00000000 --- a/docs/ExecutionStepError.md +++ /dev/null @@ -1,23 +0,0 @@ - - -# ExecutionStepError - -## Enum - - -* `INTERNAL_ERROR` (value: `"INTERNAL_ERROR"`) - -* `QUOTE_EXPIRED` (value: `"QUOTE_EXPIRED"`) - -* `INSUFFICIENT_OUTPUT_AMOUNT` (value: `"INSUFFICIENT_OUTPUT_AMOUNT"`) - -* `INSUFFICIENT_FUNDS` (value: `"INSUFFICIENT_FUNDS"`) - -* `LAST_TRANSACTION_FAILED` (value: `"LAST_TRANSACTION_FAILED"`) - -* `SWAP_APPROVAL_FAILED` (value: `"SWAP_APPROVAL_FAILED"`) - -* `PROVIDER_EXECUTION_ERROR` (value: `"PROVIDER_EXECUTION_ERROR"`) - - - diff --git a/docs/ExecutionStepStatusEnum.md b/docs/ExecutionStepStatusEnum.md deleted file mode 100644 index dbc9eb89..00000000 --- a/docs/ExecutionStepStatusEnum.md +++ /dev/null @@ -1,19 +0,0 @@ - - -# ExecutionStepStatusEnum - -## Enum - - -* `WAITING` (value: `"WAITING"`) - -* `PROCESSING` (value: `"PROCESSING"`) - -* `COMPLETED` (value: `"COMPLETED"`) - -* `FAILED` (value: `"FAILED"`) - -* `CANCELLED` (value: `"CANCELLED"`) - - - diff --git a/docs/ExecutionStepType.md b/docs/ExecutionStepType.md deleted file mode 100644 index 3efa0ac0..00000000 --- a/docs/ExecutionStepType.md +++ /dev/null @@ -1,19 +0,0 @@ - - -# ExecutionStepType - -## Enum - - -* `APPROVE` (value: `"APPROVE"`) - -* `PERMIT` (value: `"PERMIT"`) - -* `CONTRACT_CALL` (value: `"CONTRACT_CALL"`) - -* `EXECUTE` (value: `"EXECUTE"`) - -* `SETTLEMENT` (value: `"SETTLEMENT"`) - - - diff --git a/docs/ExternalAccount.md b/docs/ExternalAccount.md deleted file mode 100644 index b477219b..00000000 --- a/docs/ExternalAccount.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# ExternalAccount - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**type** | [**TypeEnum**](#TypeEnum) | | | - - - -## Enum: TypeEnum - -| Name | Value | -|---- | -----| -| EXTERNAL | "EXTERNAL" | - - - diff --git a/docs/Fee.md b/docs/Fee.md deleted file mode 100644 index 0b75f6ec..00000000 --- a/docs/Fee.md +++ /dev/null @@ -1,34 +0,0 @@ - - -# Fee - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**feeType** | [**FeeTypeEnum**](#FeeTypeEnum) | The type of fee, such as ORDER, NETWORK, or SPREAD. ORDER - Fee for executing the order. NETWORK - Fee for network transactions. SPREAD - Fee for the difference between buy and sell prices. | | -|**assetId** | **String** | The asset identifier for the fee. | | -|**amountType** | [**AmountTypeEnum**](#AmountTypeEnum) | | | -|**amount** | **BigDecimal** | Fee in basis points (1 = 0.01%, 10000 = 100%) | | - - - -## Enum: FeeTypeEnum - -| Name | Value | -|---- | -----| -| ORDER | "ORDER" | -| NETWORK | "NETWORK" | -| SPREAD | "SPREAD" | - - - -## Enum: AmountTypeEnum - -| Name | Value | -|---- | -----| -| BPS | "BPS" | - - - diff --git a/docs/FeeBreakdown.md b/docs/FeeBreakdown.md deleted file mode 100644 index 58bc06b3..00000000 --- a/docs/FeeBreakdown.md +++ /dev/null @@ -1,37 +0,0 @@ - - -# FeeBreakdown - -## oneOf schemas -* [FeeBreakdownOneOf](FeeBreakdownOneOf.md) -* [FeeBreakdownOneOf1](FeeBreakdownOneOf1.md) - -## Example -```java -// Import classes: -import com.fireblocks.sdk.model.FeeBreakdown; -import com.fireblocks.sdk.model.FeeBreakdownOneOf; -import com.fireblocks.sdk.model.FeeBreakdownOneOf1; - -public class Example { - public static void main(String[] args) { - FeeBreakdown exampleFeeBreakdown = new FeeBreakdown(); - - // create a new FeeBreakdownOneOf - FeeBreakdownOneOf exampleFeeBreakdownOneOf = new FeeBreakdownOneOf(); - // set FeeBreakdown to FeeBreakdownOneOf - exampleFeeBreakdown.setActualInstance(exampleFeeBreakdownOneOf); - // to get back the FeeBreakdownOneOf set earlier - FeeBreakdownOneOf testFeeBreakdownOneOf = (FeeBreakdownOneOf) exampleFeeBreakdown.getActualInstance(); - - // create a new FeeBreakdownOneOf1 - FeeBreakdownOneOf1 exampleFeeBreakdownOneOf1 = new FeeBreakdownOneOf1(); - // set FeeBreakdown to FeeBreakdownOneOf1 - exampleFeeBreakdown.setActualInstance(exampleFeeBreakdownOneOf1); - // to get back the FeeBreakdownOneOf1 set earlier - FeeBreakdownOneOf1 testFeeBreakdownOneOf1 = (FeeBreakdownOneOf1) exampleFeeBreakdown.getActualInstance(); - } -} -``` - - diff --git a/docs/FeeBreakdownOneOf.md b/docs/FeeBreakdownOneOf.md deleted file mode 100644 index 7e7f1250..00000000 --- a/docs/FeeBreakdownOneOf.md +++ /dev/null @@ -1,17 +0,0 @@ - - -# FeeBreakdownOneOf - -Solana-specific fee breakdown - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**baseFee** | **String** | Base fee for Solana transaction | [optional] | -|**priorityFee** | **String** | Priority fee for Solana transaction | [optional] | -|**rent** | **String** | Rent fee for Solana account creation/storage | [optional] | -|**totalFee** | **String** | Total fee amount | [optional] | - - - diff --git a/docs/FeeBreakdownOneOf1.md b/docs/FeeBreakdownOneOf1.md deleted file mode 100644 index 3bc4ba7c..00000000 --- a/docs/FeeBreakdownOneOf1.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# FeeBreakdownOneOf1 - -Generic fee breakdown for other blockchains - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**baseFee** | **String** | Base fee component | [optional] | -|**priorityFee** | **String** | Priority fee component | [optional] | -|**totalFee** | **String** | Total fee amount | [optional] | - - - diff --git a/docs/FeeInfo.md b/docs/FeeInfo.md index bbbbbf8c..18efaf9f 100644 --- a/docs/FeeInfo.md +++ b/docs/FeeInfo.md @@ -11,20 +11,6 @@ Details of the transaction's fee. |**networkFee** | **String** | The fee paid to the network | [optional] | |**serviceFee** | **String** | The total fee deducted by the exchange from the actual requested amount (serviceFee = amount - netAmount) | [optional] | |**gasPrice** | **String** | | [optional] | -|**paidByRelay** | **Boolean** | Wether the fee was paid by the relay or not | [optional] | -|**relayType** | [**RelayTypeEnum**](#RelayTypeEnum) | Wether the relay is the same tenant (LOCAL) or another tenant (THIRD_PARTY) | [optional] | -|**relayId** | **String** | The vault account ID of the relay | [optional] | -|**relayName** | **String** | The name of the tenant, only for THIRD_PARTY relays | [optional] | -|**feeUSD** | **String** | The USD value of the fee | [optional] | - - - -## Enum: RelayTypeEnum - -| Name | Value | -|---- | -----| -| LOCAL | "LOCAL" | -| THIRD_PARTY | "THIRD_PARTY" | diff --git a/docs/FeeLevel.md b/docs/FeeLevel.md deleted file mode 100644 index 0d7c1d16..00000000 --- a/docs/FeeLevel.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# FeeLevel - -## Enum - - -* `LOW` (value: `"LOW"`) - -* `MEDIUM` (value: `"MEDIUM"`) - -* `HIGH` (value: `"HIGH"`) - - - diff --git a/docs/FetchAbiRequestDto.md b/docs/FetchAbiRequestDto.md deleted file mode 100644 index 7fbb7340..00000000 --- a/docs/FetchAbiRequestDto.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# FetchAbiRequestDto - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**baseAssetId** | **String** | The blockchain base assetId | | -|**contractAddress** | **String** | The contract's onchain address | | - - - diff --git a/docs/FiatTransfer.md b/docs/FiatTransfer.md deleted file mode 100644 index 8c14376d..00000000 --- a/docs/FiatTransfer.md +++ /dev/null @@ -1,23 +0,0 @@ - - -# FiatTransfer - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**type** | [**TypeEnum**](#TypeEnum) | | [optional] | -|**amount** | **String** | The amount of the fiat transfer. | | -|**referenceId** | **String** | The reference ID for the fiat transfer. | [optional] | - - - -## Enum: TypeEnum - -| Name | Value | -|---- | -----| -| FIAT | "FIAT" | - - - diff --git a/docs/FixedFee.md b/docs/FixedFee.md deleted file mode 100644 index ce5706b9..00000000 --- a/docs/FixedFee.md +++ /dev/null @@ -1,22 +0,0 @@ - - -# FixedFee - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**amountType** | [**AmountTypeEnum**](#AmountTypeEnum) | | | -|**amount** | **String** | The fixed amount of the fee | | - - - -## Enum: AmountTypeEnum - -| Name | Value | -|---- | -----| -| FIXED | "FIXED" | - - - diff --git a/docs/GasslessStandardConfigurations.md b/docs/GasslessStandardConfigurations.md deleted file mode 100644 index 95cfd119..00000000 --- a/docs/GasslessStandardConfigurations.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# GasslessStandardConfigurations - -The gasless configuration of the contract - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**gaslessStandardConfigurations** | [**Map<String, GasslessStandardConfigurationsGaslessStandardConfigurationsValue>**](GasslessStandardConfigurationsGaslessStandardConfigurationsValue.md) | | [optional] | - - - diff --git a/docs/GasslessStandardConfigurationsGaslessStandardConfigurationsValue.md b/docs/GasslessStandardConfigurationsGaslessStandardConfigurationsValue.md deleted file mode 100644 index c7fddfbd..00000000 --- a/docs/GasslessStandardConfigurationsGaslessStandardConfigurationsValue.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# GasslessStandardConfigurationsGaslessStandardConfigurationsValue - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**lastOnChainCheck** | **OffsetDateTime** | | [optional] | -|**forwarderAddresses** | **List<String>** | | [optional] | - - - diff --git a/docs/GetAuditLogsResponseDTO.md b/docs/GetAuditLogsResponseDTO.md new file mode 100644 index 00000000..d78909c2 --- /dev/null +++ b/docs/GetAuditLogsResponseDTO.md @@ -0,0 +1,15 @@ + + +# GetAuditLogsResponseDTO + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | **List<Object>** | | [optional] | +|**total** | **BigDecimal** | | [optional] | +|**cursor** | **String** | | [optional] | + + + diff --git a/docs/GetDeployableAddressRequest.md b/docs/GetDeployableAddressRequest.md deleted file mode 100644 index 92d1e661..00000000 --- a/docs/GetDeployableAddressRequest.md +++ /dev/null @@ -1,17 +0,0 @@ - - -# GetDeployableAddressRequest - -Request body for calculating deterministic address - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**chainDescriptor** | **String** | The base asset identifier of the blockchain (legacyId) to calculate deterministic address | | -|**templateId** | **UUID** | The template identifier | | -|**initParams** | [**List<ParameterWithValue>**](ParameterWithValue.md) | The deploy function parameters and values of the contract template | | -|**salt** | **String** | The salt to calculate the deterministic address. Must be a number between 0 and 2^256 -1, for it to fit in the bytes32 parameter | | - - - diff --git a/docs/GetExchangeAccountsCredentialsPublicKeyResponse.md b/docs/GetExchangeAccountsCredentialsPublicKeyResponse.md deleted file mode 100644 index faeea0e7..00000000 --- a/docs/GetExchangeAccountsCredentialsPublicKeyResponse.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# GetExchangeAccountsCredentialsPublicKeyResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**publicKey** | **String** | Public key string | | -|**tenantId** | **String** | Tenant identifier | | - - - diff --git a/docs/GetLayerZeroDvnConfigResponse.md b/docs/GetLayerZeroDvnConfigResponse.md deleted file mode 100644 index 4ad9fade..00000000 --- a/docs/GetLayerZeroDvnConfigResponse.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# GetLayerZeroDvnConfigResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**sourceAdapterTokenLinkId** | **UUID** | Token-link ID of the adapter for which DVN configuration was queried. | | -|**channelConfigs** | [**List<ChannelDvnConfigWithConfirmations>**](ChannelDvnConfigWithConfirmations.md) | DVN configurations for each discovered (or explicitly requested) channel between the source adapter and its peers. | | - - - diff --git a/docs/GetLayerZeroPeersResponse.md b/docs/GetLayerZeroPeersResponse.md deleted file mode 100644 index 6f7897ca..00000000 --- a/docs/GetLayerZeroPeersResponse.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# GetLayerZeroPeersResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**adapterTokenLinkId** | **UUID** | The token link id of the adapter | | -|**adapterAddress** | **String** | The adapter address | | -|**peers** | [**List<PeerAdapterInfo>**](PeerAdapterInfo.md) | The peers for the adapter | | - - - diff --git a/docs/GetLinkedCollectionsPaginatedResponse.md b/docs/GetLinkedCollectionsPaginatedResponse.md deleted file mode 100644 index ee74a2c8..00000000 --- a/docs/GetLinkedCollectionsPaginatedResponse.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# GetLinkedCollectionsPaginatedResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**data** | [**List<CollectionLinkDto>**](CollectionLinkDto.md) | The data of the current page | [optional] | -|**next** | **String** | The ID of the next page | [optional] | - - - diff --git a/docs/GetMpcKeysResponse.md b/docs/GetMpcKeysResponse.md deleted file mode 100644 index 35b49266..00000000 --- a/docs/GetMpcKeysResponse.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# GetMpcKeysResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**tenantId** | **String** | The workspace id of the keys | | -|**keys** | [**List<MpcKey>**](MpcKey.md) | The keys that are associated with the workspace | | - - - diff --git a/docs/GetOrdersResponse.md b/docs/GetOrdersResponse.md deleted file mode 100644 index ab8bcd1c..00000000 --- a/docs/GetOrdersResponse.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# GetOrdersResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**data** | [**List<OrderSummary>**](OrderSummary.md) | | | -|**total** | **Integer** | Total number of orders matching the query. | | -|**next** | **String** | A cursor for the next page of results, if available. | [optional] | - - - diff --git a/docs/GetTransactionOperation.md b/docs/GetTransactionOperation.md index 77121dfe..cab5c3d8 100644 --- a/docs/GetTransactionOperation.md +++ b/docs/GetTransactionOperation.md @@ -29,9 +29,5 @@ * `SUPPLY_TO_COMPOUND` (value: `"SUPPLY_TO_COMPOUND"`) -* `PROGRAM_CALL` (value: `"PROGRAM_CALL"`) - -* `APPROVE` (value: `"APPROVE"`) - diff --git a/docs/IbanPaymentInfo.md b/docs/IbanPaymentInfo.md deleted file mode 100644 index 43a5b130..00000000 --- a/docs/IbanPaymentInfo.md +++ /dev/null @@ -1,24 +0,0 @@ - - -# IbanPaymentInfo - -IBAN payment information for European bank transfers - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**accountHolderGivenName** | **String** | The given name (first name) of the account holder | | -|**accountHolderSurname** | **String** | The surname (last name) of the account holder | [optional] | -|**accountHolderCity** | **String** | The city where the account holder resides | | -|**accountHolderCountry** | **String** | The country where the account holder resides (ISO 3166-1 alpha-2 code) | | -|**accountHolderAddress1** | **String** | The primary address line of the account holder | | -|**accountHolderAddress2** | **String** | The secondary address line of the account holder (optional) | [optional] | -|**accountHolderDistrict** | **String** | The district or region where the account holder resides | [optional] | -|**accountHolderPostalCode** | **String** | The postal code of the account holder's address | | -|**iban** | **String** | The International Bank Account Number (IBAN) | | -|**ibanCity** | **String** | The city associated with the IBAN | | -|**ibanCountry** | **String** | The country associated with the IBAN (ISO 3166-1 alpha-2 code) | | - - - diff --git a/docs/Identification.md b/docs/Identification.md deleted file mode 100644 index ba8266b5..00000000 --- a/docs/Identification.md +++ /dev/null @@ -1,37 +0,0 @@ - - -# Identification - -## oneOf schemas -* [BusinessIdentification](BusinessIdentification.md) -* [PersonalIdentification](PersonalIdentification.md) - -## Example -```java -// Import classes: -import com.fireblocks.sdk.model.Identification; -import com.fireblocks.sdk.model.BusinessIdentification; -import com.fireblocks.sdk.model.PersonalIdentification; - -public class Example { - public static void main(String[] args) { - Identification exampleIdentification = new Identification(); - - // create a new BusinessIdentification - BusinessIdentification exampleBusinessIdentification = new BusinessIdentification(); - // set Identification to BusinessIdentification - exampleIdentification.setActualInstance(exampleBusinessIdentification); - // to get back the BusinessIdentification set earlier - BusinessIdentification testBusinessIdentification = (BusinessIdentification) exampleIdentification.getActualInstance(); - - // create a new PersonalIdentification - PersonalIdentification examplePersonalIdentification = new PersonalIdentification(); - // set Identification to PersonalIdentification - exampleIdentification.setActualInstance(examplePersonalIdentification); - // to get back the PersonalIdentification set earlier - PersonalIdentification testPersonalIdentification = (PersonalIdentification) exampleIdentification.getActualInstance(); - } -} -``` - - diff --git a/docs/IdlType.md b/docs/IdlType.md deleted file mode 100644 index 1731bf97..00000000 --- a/docs/IdlType.md +++ /dev/null @@ -1,45 +0,0 @@ - - -# IdlType - -## Enum - - -* `BOOL` (value: `"bool"`) - -* `U8` (value: `"u8"`) - -* `I8` (value: `"i8"`) - -* `U16` (value: `"u16"`) - -* `I16` (value: `"i16"`) - -* `U32` (value: `"u32"`) - -* `I32` (value: `"i32"`) - -* `F32` (value: `"f32"`) - -* `U64` (value: `"u64"`) - -* `I64` (value: `"i64"`) - -* `F64` (value: `"f64"`) - -* `U128` (value: `"u128"`) - -* `I128` (value: `"i128"`) - -* `U256` (value: `"u256"`) - -* `I256` (value: `"i256"`) - -* `BYTES` (value: `"bytes"`) - -* `STRING` (value: `"string"`) - -* `PUBKEY` (value: `"pubkey"`) - - - diff --git a/docs/IndicativeQuoteType.md b/docs/IndicativeQuoteType.md deleted file mode 100644 index 54b24391..00000000 --- a/docs/IndicativeQuoteType.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# IndicativeQuoteType - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**type** | [**TypeEnum**](#TypeEnum) | Indicates this is an indicative quote | | - - - -## Enum: TypeEnum - -| Name | Value | -|---- | -----| -| INDICATIVE | "INDICATIVE" | - - - diff --git a/docs/InitiatorConfig.md b/docs/InitiatorConfig.md deleted file mode 100644 index 3efc72ec..00000000 --- a/docs/InitiatorConfig.md +++ /dev/null @@ -1,19 +0,0 @@ - - -# InitiatorConfig - -Policy rule initiator configuration - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**users** | **List<String>** | List of user IDs | [optional] | -|**groups** | **List<String>** | List of policy group IDs | [optional] | -|**services** | **List<String>** | | [optional] | -|**fbAdminGroups** | **List<String>** | | [optional] | -|**exchange** | **List<String>** | | [optional] | -|**operator** | **PolicyOperator** | | | - - - diff --git a/docs/InitiatorConfigPattern.md b/docs/InitiatorConfigPattern.md deleted file mode 100644 index 9b6bbea9..00000000 --- a/docs/InitiatorConfigPattern.md +++ /dev/null @@ -1,37 +0,0 @@ - - -# InitiatorConfigPattern - -## oneOf schemas -* [InitiatorConfig](InitiatorConfig.md) -* [String](String.md) - -## Example -```java -// Import classes: -import com.fireblocks.sdk.model.InitiatorConfigPattern; -import com.fireblocks.sdk.model.InitiatorConfig; -import com.fireblocks.sdk.model.String; - -public class Example { - public static void main(String[] args) { - InitiatorConfigPattern exampleInitiatorConfigPattern = new InitiatorConfigPattern(); - - // create a new InitiatorConfig - InitiatorConfig exampleInitiatorConfig = new InitiatorConfig(); - // set InitiatorConfigPattern to InitiatorConfig - exampleInitiatorConfigPattern.setActualInstance(exampleInitiatorConfig); - // to get back the InitiatorConfig set earlier - InitiatorConfig testInitiatorConfig = (InitiatorConfig) exampleInitiatorConfigPattern.getActualInstance(); - - // create a new String - String exampleString = new String(); - // set InitiatorConfigPattern to String - exampleInitiatorConfigPattern.setActualInstance(exampleString); - // to get back the String set earlier - String testString = (String) exampleInitiatorConfigPattern.getActualInstance(); - } -} -``` - - diff --git a/docs/InternalReference.md b/docs/InternalReference.md deleted file mode 100644 index 84983ccd..00000000 --- a/docs/InternalReference.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# InternalReference - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**type** | **PeerType** | | | -|**accountId** | **String** | | | - - - diff --git a/docs/InternalTransferResponse.md b/docs/InternalTransferResponse.md index 40d0fec2..c9e39e92 100644 --- a/docs/InternalTransferResponse.md +++ b/docs/InternalTransferResponse.md @@ -8,7 +8,6 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**success** | **Boolean** | Indicates whether the transfer was successful | | -|**id** | **String** | The transaction ID of the internal transfer | [optional] | diff --git a/docs/InternalWalletsApi.md b/docs/InternalWalletsApi.md index 8a64ab12..14adb3da 100644 --- a/docs/InternalWalletsApi.md +++ b/docs/InternalWalletsApi.md @@ -7,10 +7,9 @@ All URIs are relative to https://developers.fireblocks.com/reference/ | [**createInternalWallet**](InternalWalletsApi.md#createInternalWallet) | **POST** /internal_wallets | Create an internal wallet | | [**createInternalWalletAsset**](InternalWalletsApi.md#createInternalWalletAsset) | **POST** /internal_wallets/{walletId}/{assetId} | Add an asset to an internal wallet | | [**deleteInternalWallet**](InternalWalletsApi.md#deleteInternalWallet) | **DELETE** /internal_wallets/{walletId} | Delete an internal wallet | -| [**deleteInternalWalletAsset**](InternalWalletsApi.md#deleteInternalWalletAsset) | **DELETE** /internal_wallets/{walletId}/{assetId} | Delete a whitelisted address | -| [**getInternalWallet**](InternalWalletsApi.md#getInternalWallet) | **GET** /internal_wallets/{walletId} | Get an asset from an internal wallet | +| [**deleteInternalWalletAsset**](InternalWalletsApi.md#deleteInternalWalletAsset) | **DELETE** /internal_wallets/{walletId}/{assetId} | Delete a whitelisted address from an internal wallet | +| [**getInternalWallet**](InternalWalletsApi.md#getInternalWallet) | **GET** /internal_wallets/{walletId} | Get assets for internal wallet | | [**getInternalWalletAsset**](InternalWalletsApi.md#getInternalWalletAsset) | **GET** /internal_wallets/{walletId}/{assetId} | Get an asset from an internal wallet | -| [**getInternalWalletAssetsPaginated**](InternalWalletsApi.md#getInternalWalletAssetsPaginated) | **GET** /internal_wallets/{walletId}/assets | List assets in an internal wallet (Paginated) | | [**getInternalWallets**](InternalWalletsApi.md#getInternalWallets) | **GET** /internal_wallets | List internal wallets | | [**setCustomerRefIdForInternalWallet**](InternalWalletsApi.md#setCustomerRefIdForInternalWallet) | **POST** /internal_wallets/{walletId}/set_customer_ref_id | Set an AML/KYT customer reference ID for an internal wallet | @@ -22,7 +21,7 @@ All URIs are relative to https://developers.fireblocks.com/reference/ Create an internal wallet -Creates a new internal wallet with the requested name. Learn more about Whitelisted Internal Addresses [here](https://developers.fireblocks.com/docs/whitelist-addresses#internal-wallets) Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor. +Creates a new internal wallet with the requested name. ### Example @@ -107,7 +106,7 @@ No authorization required Add an asset to an internal wallet -Adds an asset to an existing internal wallet. Internal Wallets are whitelisted wallets that belong to you outside of Fireblocks. - You can see the balance of the Internal Wallet via Fireblocks - You cannot initiate transactions from Internal Wallets through Fireblocks Learn more about Whitelisted Internal Addresses [here](https://developers.fireblocks.com/docs/whitelist-addresses#internal-wallets) Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor. +Adds an asset to an existing internal wallet. ### Example @@ -196,7 +195,7 @@ No authorization required Delete an internal wallet -Deletes an internal wallet by ID. Internal Wallets are whitelisted wallets that belong to you outside of Fireblocks. - You can see the balance of the Internal Wallet via Fireblocks - You cannot initiate transactions from Internal Wallets through Fireblocks Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor. +Deletes an internal wallet by ID. ### Example @@ -276,9 +275,9 @@ No authorization required > CompletableFuture> deleteInternalWalletAsset deleteInternalWalletAsset(walletId, assetId) -Delete a whitelisted address +Delete a whitelisted address from an internal wallet -Deletes a whitelisted address (for an asset) from an internal wallet. Internal Wallets are whitelisted wallets that belong to you outside of Fireblocks. - You can see the balance of the Internal Wallet via Fireblocks - You cannot initiate transactions from Internal Wallets through Fireblocks Learn more about Whitelisted Internal Addresses [here](https://developers.fireblocks.com/docs/whitelist-addresses#internal-wallets) Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor. +Deletes a whitelisted address (for an asset) from an internal wallet. ### Example @@ -360,9 +359,9 @@ No authorization required > CompletableFuture> getInternalWallet getInternalWallet(walletId) -Get an asset from an internal wallet +Get assets for internal wallet -Returns information for an asset in an internal wallet. This endpoint will be deprecated after 6 months. </br>As part of the depreciation process this endpoint will no longer return balances, only addresses. </br>Until it is deprecated, this endpoint will behave the same way. Internal Wallets are whitelisted wallets that belong to you outside of Fireblocks. - You can see the balance of the Internal Wallet via Fireblocks - You cannot initiate transactions from Internal Wallets through Fireblocks Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. +Returns all assets in an internal wallet by ID. ### Example @@ -445,7 +444,7 @@ No authorization required Get an asset from an internal wallet -Returns information for an asset in an internal wallet. Internal Wallets are whitelisted wallets that belong to you outside of Fireblocks. - You can see the balance of the Internal Wallet via Fireblocks - You cannot initiate transactions from Internal Wallets through Fireblocks Learn more about Whitelisted Internal Addresses [here](https://developers.fireblocks.com/docs/whitelist-addresses#internal-wallets) Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. +Returns information for an asset in an internal wallet. ### Example @@ -524,100 +523,13 @@ No authorization required | **0** | Error Response | * X-Request-ID -
| -## getInternalWalletAssetsPaginated - -> CompletableFuture> getInternalWalletAssetsPaginated getInternalWalletAssetsPaginated(walletId, pageSize, pageCursor) - -List assets in an internal wallet (Paginated) - -Returns a paginated response of assets in an internal wallet. This is a new paginated endpoint that gets all the assets from the wallet container with balances. </br>This endpoint returns a limited amount of results with a quick response time. Internal Wallets are whitelisted wallets that belong to you outside of Fireblocks. - You can see the balance of the Internal Wallet via Fireblocks - You cannot initiate transactions from Internal Wallets through Fireblocks Learn more about Whitelisted Internal Addresses [here](https://developers.fireblocks.com/docs/whitelist-addresses#internal-wallets) Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.InternalWalletsApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - String walletId = "walletId_example"; // String | The ID of the internal wallet to return assets for - BigDecimal pageSize = new BigDecimal("50"); // BigDecimal | - String pageCursor = "pageCursor_example"; // String | - try { - CompletableFuture> response = fireblocks.internalWallets().getInternalWalletAssetsPaginated(walletId, pageSize, pageCursor); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling InternalWalletsApi#getInternalWalletAssetsPaginated"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling InternalWalletsApi#getInternalWalletAssetsPaginated"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **walletId** | **String**| The ID of the internal wallet to return assets for | | -| **pageSize** | **BigDecimal**| | [optional] [default to 50] | -| **pageCursor** | **String**| | [optional] | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | A paginated response of assets for the internal wallet | * X-Request-ID -
| -| **0** | Error Response | * X-Request-ID -
| - - ## getInternalWallets > CompletableFuture>> getInternalWallets getInternalWallets() List internal wallets -Gets a list of internal wallets. **Note**: - BTC-based assets belonging to whitelisted addresses cannot be retrieved between 00:00 UTC and 00:01 UTC daily due to third-party provider, Blockchain, being unavailable for this 60 second period. </br>Please wait until the next minute to retrieve BTC-based assets. - The list of assets returned will NOT include the balances anymore. Internal Wallets are whitelisted wallets that belong to you outside of Fireblocks. - You can see the balance of the Internal Wallet via Fireblocks - You cannot initiate transactions from Internal Wallets through Fireblocks Learn more about Whitelisted Internal Addresses [here](https://developers.fireblocks.com/docs/whitelist-addresses#internal-wallets) Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. +Gets a list of internal wallets. **Note**: BTC-based assets belonging to whitelisted addresses cannot be retrieved between 00:00 UTC and 00:01 UTC daily due to third-party provider, Blockchair, being unavailable for this 60 second period. Please wait until the next minute to retrieve BTC-based assets. ### Example @@ -696,7 +608,7 @@ No authorization required Set an AML/KYT customer reference ID for an internal wallet -Sets an AML/KYT customer reference ID for the specific internal wallet. Internal Wallets are whitelisted wallets that belong to you outside of Fireblocks. - You can see the balance of the Internal Wallet via Fireblocks - You cannot initiate transactions from Internal Wallets through Fireblocks Learn more about Whitelisted Internal Addresses [here](https://developers.fireblocks.com/docs/whitelist-addresses#internal-wallets) Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor. +Sets an AML/KYT customer reference ID for the specific internal wallet. ### Example diff --git a/docs/InvalidParamaterValueError.md b/docs/InvalidParamaterValueError.md deleted file mode 100644 index f4b29447..00000000 --- a/docs/InvalidParamaterValueError.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# InvalidParamaterValueError - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**message** | **String** | Bad request error message | | -|**code** | **BigDecimal** | Error code | | - - - diff --git a/docs/JobManagementApi.md b/docs/JobManagementApi.md index bf1b8fac..0a2eeafd 100644 --- a/docs/JobManagementApi.md +++ b/docs/JobManagementApi.md @@ -19,7 +19,7 @@ All URIs are relative to https://developers.fireblocks.com/reference/ Cancel a running job -Stop the given job immediately. If the job is in the 'Active' state, the job will be canceled after completing the current task. Vault accounts and Wallets that are already created will not be affected. +Stop the given job immediately. If the job is in the ‘Active’ state, the job will be canceled after completing the current task. Vault accounts and Wallets that are already created will not be affected. ### Example @@ -438,7 +438,7 @@ No authorization required Pause a job -Pause the given job, after the current task is done. A paused job can later be resumed by calling 'continue', or canceled. +Pause the given job, after the current task is done. A paused job can later be resumed by calling ‘continue’, or canceled. ### Example diff --git a/docs/KeyLinkBetaApi.md b/docs/KeyLinkBetaApi.md index f3109b95..7f35b909 100644 --- a/docs/KeyLinkBetaApi.md +++ b/docs/KeyLinkBetaApi.md @@ -356,7 +356,7 @@ No authorization required ## getSigningKeysList -> CompletableFuture> getSigningKeysList getSigningKeysList(pageCursor, pageSize, sortBy, order, vaultAccountId, agentUserId, algorithm, enabled, available, isAssigned) +> CompletableFuture> getSigningKeysList getSigningKeysList(pageCursor, pageSize, sortBy, order) Get list of signing keys @@ -389,14 +389,8 @@ public class Example { BigDecimal pageSize = new BigDecimal("10"); // BigDecimal | Amount of results to return in the next page String sortBy = "createdAt"; // String | Field(s) to use for sorting String order = "ASC"; // String | Is the order ascending or descending - BigDecimal vaultAccountId = new BigDecimal("4"); // BigDecimal | Return keys assigned to a specific vault - String agentUserId = "12fed207-5bdf-4a0c-ab12-fcd2627f75d1"; // String | Return keys associated with a specific agent user - String algorithm = "ECDSA_SECP256K1"; // String | Return only keys with a specific algorithm - Boolean enabled = true; // Boolean | Return keys that have been proof of ownership - Boolean available = true; // Boolean | Return keys that are proof of ownership but not assigned. Available filter can be used only when vaultAccountId and enabled filters are not set - Boolean isAssigned = true; // Boolean | Return keys that are assigned to a vault account try { - CompletableFuture> response = fireblocks.keyLinkBeta().getSigningKeysList(pageCursor, pageSize, sortBy, order, vaultAccountId, agentUserId, algorithm, enabled, available, isAssigned); + CompletableFuture> response = fireblocks.keyLinkBeta().getSigningKeysList(pageCursor, pageSize, sortBy, order); System.out.println("Status code: " + response.get().getStatusCode()); System.out.println("Response headers: " + response.get().getHeaders()); System.out.println("Response body: " + response.get().getData()); @@ -427,12 +421,6 @@ public class Example { | **pageSize** | **BigDecimal**| Amount of results to return in the next page | [optional] [default to 10] | | **sortBy** | **String**| Field(s) to use for sorting | [optional] [default to createdAt] [enum: createdAt] | | **order** | **String**| Is the order ascending or descending | [optional] [default to ASC] [enum: ASC, DESC] | -| **vaultAccountId** | **BigDecimal**| Return keys assigned to a specific vault | [optional] | -| **agentUserId** | **String**| Return keys associated with a specific agent user | [optional] | -| **algorithm** | **String**| Return only keys with a specific algorithm | [optional] [enum: ECDSA_SECP256K1, EDDSA_ED25519] | -| **enabled** | **Boolean**| Return keys that have been proof of ownership | [optional] | -| **available** | **Boolean**| Return keys that are proof of ownership but not assigned. Available filter can be used only when vaultAccountId and enabled filters are not set | [optional] | -| **isAssigned** | **Boolean**| Return keys that are assigned to a vault account | [optional] | ### Return type diff --git a/docs/KeysBetaApi.md b/docs/KeysBetaApi.md deleted file mode 100644 index 7e8c7938..00000000 --- a/docs/KeysBetaApi.md +++ /dev/null @@ -1,172 +0,0 @@ -# KeysBetaApi - -All URIs are relative to https://developers.fireblocks.com/reference/ - -| Method | HTTP request | Description | -|------------- | ------------- | -------------| -| [**getMpcKeysList**](KeysBetaApi.md#getMpcKeysList) | **GET** /keys/mpc/list | Get list of mpc keys | -| [**getMpcKeysListByUser**](KeysBetaApi.md#getMpcKeysListByUser) | **GET** /keys/mpc/list/{userId} | Get list of mpc keys by `userId` | - - - -## getMpcKeysList - -> CompletableFuture> getMpcKeysList getMpcKeysList() - -Get list of mpc keys - -Returns a list of MPC signing keys of the workspace. For each key, the list of players associated with it is attached. **Note:** This endpoint is currently in beta and might be subject to changes. - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.KeysBetaApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - try { - CompletableFuture> response = fireblocks.keysBeta().getMpcKeysList(); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling KeysBetaApi#getMpcKeysList"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling KeysBetaApi#getMpcKeysList"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | List of mpc keys | * X-Request-ID -
| -| **0** | Error Response | * X-Request-ID -
| - - -## getMpcKeysListByUser - -> CompletableFuture> getMpcKeysListByUser getMpcKeysListByUser(userId) - -Get list of mpc keys by `userId` - -Returns a list of MPC signing keys of a specific user. For each key, the list of players associated with it is attached. **Note:** This endpoint is currently in beta and might be subject to changes. - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.KeysBetaApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - String userId = "46a92767-5f93-4a46-9eed-f012196bb4fc"; // String | The id for the user - try { - CompletableFuture> response = fireblocks.keysBeta().getMpcKeysListByUser(userId); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling KeysBetaApi#getMpcKeysListByUser"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling KeysBetaApi#getMpcKeysListByUser"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **userId** | **String**| The id for the user | | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | List of mpc keys | * X-Request-ID -
| -| **0** | Error Response | * X-Request-ID -
| - diff --git a/docs/LayerZeroAdapterCreateParams.md b/docs/LayerZeroAdapterCreateParams.md deleted file mode 100644 index e3f8a357..00000000 --- a/docs/LayerZeroAdapterCreateParams.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# LayerZeroAdapterCreateParams - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**tokenLinkId** | **String** | The token link id of the base token to deploy the adapters for | | -|**delegateAddress** | **String** | Address that will receive `CONTRACT_ADMIN_ROLE`. | | -|**defaultAdminAddress** | **String** | Address that will receive `DEFAULT_ADMIN_ROLE` on the adapter contract. | | -|**pauserAddress** | **String** | Address that will receive `PAUSER_ROLE`. | | - - - diff --git a/docs/LbtPaymentInfo.md b/docs/LbtPaymentInfo.md deleted file mode 100644 index e6fff324..00000000 --- a/docs/LbtPaymentInfo.md +++ /dev/null @@ -1,37 +0,0 @@ - - -# LbtPaymentInfo - -LBT (Lebanese Bank Transfer) payment information for Lebanese bank transfers - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**rail** | [**RailEnum**](#RailEnum) | The payment rail type for Lebanese bank transfers | | -|**addressingSystem** | [**AddressingSystemEnum**](#AddressingSystemEnum) | The addressing system used for Lebanese bank transfers (Bank Account Number) | | -|**accountHolderGivenName** | **String** | The given name (first name) of the account holder | | -|**accountHolderSurname** | **String** | The surname (last name) of the account holder | | -|**country** | **String** | The country for the transfer (ISO 3166-1 alpha-2 code) | | -|**accountNumber** | **String** | The bank account number | | -|**bankName** | **String** | The name of the bank | | -|**bankCode** | **String** | The bank code or identifier | | - - - -## Enum: RailEnum - -| Name | Value | -|---- | -----| -| LBT | "LBT" | - - - -## Enum: AddressingSystemEnum - -| Name | Value | -|---- | -----| -| BAN | "BAN" | - - - diff --git a/docs/LeanAbiFunction.md b/docs/LeanAbiFunction.md index e87aca47..f9fc4154 100644 --- a/docs/LeanAbiFunction.md +++ b/docs/LeanAbiFunction.md @@ -9,19 +9,6 @@ |------------ | ------------- | ------------- | -------------| |**name** | **String** | The function name | [optional] | |**inputs** | [**List<ParameterWithValue>**](ParameterWithValue.md) | The function inputs | | -|**outputs** | [**List<ParameterWithValue>**](ParameterWithValue.md) | The function outputs | [optional] | -|**stateMutability** | [**StateMutabilityEnum**](#StateMutabilityEnum) | The state mutability of the function (e.g., view, pure, nonpayable, payable) | [optional] | - - - -## Enum: StateMutabilityEnum - -| Name | Value | -|---- | -----| -| VIEW | "view" | -| PURE | "pure" | -| NONPAYABLE | "nonpayable" | -| PAYABLE | "payable" | diff --git a/docs/LegacyAmountAggregationTimePeriodMethod.md b/docs/LegacyAmountAggregationTimePeriodMethod.md deleted file mode 100644 index b15d55f9..00000000 --- a/docs/LegacyAmountAggregationTimePeriodMethod.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# LegacyAmountAggregationTimePeriodMethod - -## Enum - - -* `PER_SINGLE_MATCH` (value: `"PER_SINGLE_MATCH"`) - -* `ACROSS_ALL_MATCHES` (value: `"ACROSS_ALL_MATCHES"`) - - - diff --git a/docs/LegacyDraftResponse.md b/docs/LegacyDraftResponse.md deleted file mode 100644 index c3253fa9..00000000 --- a/docs/LegacyDraftResponse.md +++ /dev/null @@ -1,17 +0,0 @@ - - -# LegacyDraftResponse - -Response object for draft operations - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **String** | Operation status | | -|**rules** | [**List<LegacyPolicyRule>**](LegacyPolicyRule.md) | Draft rules | | -|**draftId** | **String** | Draft unique id | | -|**metadata** | [**LegacyPolicyMetadata**](LegacyPolicyMetadata.md) | | | - - - diff --git a/docs/LegacyDraftReviewAndValidationResponse.md b/docs/LegacyDraftReviewAndValidationResponse.md deleted file mode 100644 index 0a31957e..00000000 --- a/docs/LegacyDraftReviewAndValidationResponse.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# LegacyDraftReviewAndValidationResponse - -Draft validation - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**draftResponse** | [**LegacyDraftResponse**](LegacyDraftResponse.md) | | | -|**validation** | [**LegacyPolicyValidation**](LegacyPolicyValidation.md) | | | - - - diff --git a/docs/LegacyPolicyAndValidationResponse.md b/docs/LegacyPolicyAndValidationResponse.md deleted file mode 100644 index 74ae13c8..00000000 --- a/docs/LegacyPolicyAndValidationResponse.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# LegacyPolicyAndValidationResponse - -Policy validation - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**policy** | [**LegacyPolicyResponse**](LegacyPolicyResponse.md) | | | -|**validation** | [**LegacyPolicyValidation**](LegacyPolicyValidation.md) | | | - - - diff --git a/docs/LegacyPolicyCheckResult.md b/docs/LegacyPolicyCheckResult.md deleted file mode 100644 index 67f02b4a..00000000 --- a/docs/LegacyPolicyCheckResult.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# LegacyPolicyCheckResult - -Policy rules validation result - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**errors** | **BigDecimal** | Number of errors | | -|**results** | [**List<LegacyPolicyRuleCheckResult>**](LegacyPolicyRuleCheckResult.md) | A set of validation results | | - - - diff --git a/docs/LegacyPolicyMetadata.md b/docs/LegacyPolicyMetadata.md deleted file mode 100644 index f2df5e95..00000000 --- a/docs/LegacyPolicyMetadata.md +++ /dev/null @@ -1,17 +0,0 @@ - - -# LegacyPolicyMetadata - -Policy related metadata - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**editedBy** | **String** | The user id of the user who last edited the policy | [optional] | -|**editedAt** | **String** | The timestamp of the last edit of the policy | [optional] | -|**publishedBy** | **String** | The user id of the user who last published the policy | [optional] | -|**publishedAt** | **String** | The timestamp of the last publish of the policy | [optional] | - - - diff --git a/docs/LegacyPolicyResponse.md b/docs/LegacyPolicyResponse.md deleted file mode 100644 index 5355792f..00000000 --- a/docs/LegacyPolicyResponse.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# LegacyPolicyResponse - -Response object for policy operations - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**rules** | [**List<LegacyPolicyRule>**](LegacyPolicyRule.md) | A set of policy rules | | -|**metadata** | [**LegacyPolicyMetadata**](LegacyPolicyMetadata.md) | | | - - - diff --git a/docs/LegacyPolicyRule.md b/docs/LegacyPolicyRule.md deleted file mode 100644 index b418f2e6..00000000 --- a/docs/LegacyPolicyRule.md +++ /dev/null @@ -1,107 +0,0 @@ - - -# LegacyPolicyRule - -Policy rule which is enforced on transactions - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**operator** | **String** | (deprecated - replaced by \"operators\") | Defines users who can initiate the type of transaction to which the rule applies. options are * \"*\" - All users are allowed * Specific User id | [optional] | -|**operators** | [**LegacyPolicyRuleOperators**](LegacyPolicyRuleOperators.md) | | [optional] | -|**transactionType** | [**TransactionTypeEnum**](#TransactionTypeEnum) | Defines the type of transaction to which the rule applies. * TRANSFER - Default. Transfers funds from one account to another * CONTRACT_CALL - Calls a smart contract, mainly for DeFi operations. * APPROVE - Allows a smart contract to withdraw from a designated wallet. * MINT - Perform a mint operation (increase supply) on a supported token * BURN - Perform a burn operation (reduce supply) on a supported token * SUPPLY - Use for DeFi to lend assets * REDEEM - Use for DeFi to get lending back * STAKE - Allows you to allocate and lock certain assets for earning staking rewards. * RAW - An off-chain message with no predefined format, use it to sign any message with your private key. * TYPED_MESSAGE - An off-chain message type that follows a predefined format, used to sign specific messages that are not actual transactions. * PROGRAM_CALL - In Solana refers to invoking on-chain programs (smart contracts) to execute transactions and interact with the blockchain. | [optional] | -|**designatedSigner** | **String** | (deprecated - replaced by \"designatedSigners\") Id representing the user who signs transactions that match a specific rule | [optional] | -|**designatedSigners** | [**LegacyPolicyRuleDesignatedSigners**](LegacyPolicyRuleDesignatedSigners.md) | | [optional] | -|**type** | [**TypeEnum**](#TypeEnum) | Policy rule type | | -|**action** | [**ActionEnum**](#ActionEnum) | Defines what occurs when a transaction meets the rule's criteria * ALLOW - The transaction goes through and can be signed without requiring additional approvals * BLOCK - The transaction is automatically blocked * 2-TIER - Only these users or user groups can approve If any of them reject the transaction before the required approval threshold is met, the transaction doesn't go through The list of entities are set is \"authorizationGroups\" field | | -|**asset** | **String** | Defines the type of asset being transacted, options are * \"*\" - All assets * Specific asset | | -|**srcType** | **LegacyPolicySrcOrDestType** | (deprecated - replaced by \"src\") source account type | [optional] | -|**srcSubType** | **LegacyPolicySrcOrDestSubType** | (deprecated - replaced by \"src\") source sub account type | [optional] | -|**srcId** | **String** | (deprecated - replaced by \"src\") source account id | [optional] | -|**src** | [**LegacyPolicyRuleSrc**](LegacyPolicyRuleSrc.md) | | [optional] | -|**dstType** | **LegacyPolicySrcOrDestType** | (deprecated - replaced by \"dst\") destination account type | [optional] | -|**dstSubType** | **LegacyPolicySrcOrDestSubType** | (deprecated - replaced by \"dst\") destination sub account type | [optional] | -|**dstId** | **String** | (deprecated - replaced by \"dst\") destination account id | [optional] | -|**dst** | [**LegacyPolicyRuleDst**](LegacyPolicyRuleDst.md) | | [optional] | -|**dstAddressType** | [**DstAddressTypeEnum**](#DstAddressTypeEnum) | Defines whether the destination to which you are sending funds must be whitelisted, to allow one-time transfers to non-whitelisted external addresses, or both. By default, you can only transfer to an external address after it’s whitelisted. * WHITELISTED - Can only be sent to whitelisted addresses. * ONE_TIME - Can only be sent to non-whitelisted external addresses. * \"*\" - can be sent to whitelisted addresses or non-whitelisted external | [optional] | -|**amountCurrency** | [**AmountCurrencyEnum**](#AmountCurrencyEnum) | * USD - Limits the amount of any asset users can transfer based on the USD equivalent of the asset. * EUR - Limits the amount of any asset users can transfer based on the EURO equivalent of the asset. * NATIVE - Limits the amount of an asset a user can transfer when using a specific asset. | | -|**amountScope** | [**AmountScopeEnum**](#AmountScopeEnum) | * SINGLE_TX - limit applies to a single transaction * TIMEFRAME - limit applies to all transactions within the defined time period | | -|**amount** | [**LegacyPolicyRuleAmount**](LegacyPolicyRuleAmount.md) | | | -|**periodSec** | **BigDecimal** | Time period in seconds applied by the amountScope field to accumulate transferred amounts in transactions that match the rule, until the total exceeds the value you specify under Minimum. When the specified amount is reached within that period, whether by one or many transactions, further transactions in that period either fail or require more approvals. | | -|**authorizers** | **List<String>** | (deprecated - replaced by \"authorizationGroups\") Allowed entities which can approves a transaction | [optional] | -|**authorizersCount** | **BigDecimal** | (deprecated - replaced by \"authorizationGroups\") Min amount of entities which are needed to approve a transaction | [optional] | -|**authorizationGroups** | [**LegacyPolicyRuleAuthorizationGroups**](LegacyPolicyRuleAuthorizationGroups.md) | | [optional] | -|**amountAggregation** | [**LegacyPolicyRuleAmountAggregation**](LegacyPolicyRuleAmountAggregation.md) | | [optional] | -|**rawMessageSigning** | [**LegacyPolicyRuleRawMessageSigning**](LegacyPolicyRuleRawMessageSigning.md) | | [optional] | -|**applyForApprove** | **Boolean** | Applying this rule over APPROVE type transactions (can only be enabled when rule's transaction type is TRANSFER) | [optional] | -|**applyForTypedMessage** | **Boolean** | Applying this rule over TYPED_MESSAGE type transactions (can only be enabled when rule's transaction type is CONTRACT_CALL) | [optional] | -|**externalDescriptor** | **String** | A unique id identifying the rule | [optional] | - - - -## Enum: TransactionTypeEnum - -| Name | Value | -|---- | -----| -| TRANSFER | "TRANSFER" | -| CONTRACT_CALL | "CONTRACT_CALL" | -| APPROVE | "APPROVE" | -| MINT | "MINT" | -| BURN | "BURN" | -| SUPPLY | "SUPPLY" | -| REDEEM | "REDEEM" | -| STAKE | "STAKE" | -| RAW | "RAW" | -| TYPED_MESSAGE | "TYPED_MESSAGE" | -| PROGRAM_CALL | "PROGRAM_CALL" | - - - -## Enum: TypeEnum - -| Name | Value | -|---- | -----| -| TRANSFER | "TRANSFER" | - - - -## Enum: ActionEnum - -| Name | Value | -|---- | -----| -| ALLOW | "ALLOW" | -| BLOCK | "BLOCK" | -| _2_TIER | "2-TIER" | - - - -## Enum: DstAddressTypeEnum - -| Name | Value | -|---- | -----| -| WHITELISTED | "WHITELISTED" | -| ONE_TIME | "ONE_TIME" | -| STAR | "*" | - - - -## Enum: AmountCurrencyEnum - -| Name | Value | -|---- | -----| -| USD | "USD" | -| EUR | "EUR" | -| NATIVE | "NATIVE" | - - - -## Enum: AmountScopeEnum - -| Name | Value | -|---- | -----| -| SINGLE_TX | "SINGLE_TX" | -| TIMEFRAME | "TIMEFRAME" | - - - diff --git a/docs/LegacyPolicyRuleCheckResult.md b/docs/LegacyPolicyRuleCheckResult.md deleted file mode 100644 index 799c0f9e..00000000 --- a/docs/LegacyPolicyRuleCheckResult.md +++ /dev/null @@ -1,25 +0,0 @@ - - -# LegacyPolicyRuleCheckResult - -The rule validation result - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**index** | **BigDecimal** | Rule index number in the policy | | -|**status** | [**StatusEnum**](#StatusEnum) | Validation status | | -|**errors** | [**List<LegacyPolicyRuleError>**](LegacyPolicyRuleError.md) | A set of rule validation error objects | | - - - -## Enum: StatusEnum - -| Name | Value | -|---- | -----| -| OK | "ok" | -| FAILURE | "failure" | - - - diff --git a/docs/LegacyPolicyRuleError.md b/docs/LegacyPolicyRuleError.md deleted file mode 100644 index 4a7e94d9..00000000 --- a/docs/LegacyPolicyRuleError.md +++ /dev/null @@ -1,33 +0,0 @@ - - -# LegacyPolicyRuleError - -Rule validation result error - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**errorMessage** | **String** | Error message | | -|**errorCode** | **BigDecimal** | error code | | -|**errorCodeName** | **String** | error code name | | -|**errorField** | [**ErrorFieldEnum**](#ErrorFieldEnum) | The field which the error relates to * operator - transaction initiator * operators - transaction initiators * authorizationGroups - transaction authorizer groups * designatedSigner - transaction signer * designatedSigners - transaction signers * contractMethods - contract methods * amountAggregation - transaction amount aggregation configuration * src - transaction source asset configuration * dst - transaction destination asset configuration | | - - - -## Enum: ErrorFieldEnum - -| Name | Value | -|---- | -----| -| OPERATOR | "operator" | -| OPERATORS | "operators" | -| AUTHORIZATION_GROUPS | "authorizationGroups" | -| DESIGNATED_SIGNER | "designatedSigner" | -| DESIGNATED_SIGNERS | "designatedSigners" | -| CONTRACT_METHODS | "contractMethods" | -| AMOUNT_AGGREGATION | "amountAggregation" | -| SRC | "src" | -| DST | "dst" | - - - diff --git a/docs/LegacyPolicyRules.md b/docs/LegacyPolicyRules.md deleted file mode 100644 index 9188fb16..00000000 --- a/docs/LegacyPolicyRules.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# LegacyPolicyRules - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**rules** | [**List<LegacyPolicyRule>**](LegacyPolicyRule.md) | Policy rules | [optional] | - - - diff --git a/docs/LegacyPolicyStatus.md b/docs/LegacyPolicyStatus.md deleted file mode 100644 index a6618ddc..00000000 --- a/docs/LegacyPolicyStatus.md +++ /dev/null @@ -1,23 +0,0 @@ - - -# LegacyPolicyStatus - -## Enum - - -* `SUCCESS` (value: `"SUCCESS"`) - -* `UNVALIDATED` (value: `"UNVALIDATED"`) - -* `INVALID_CONFIGURATION` (value: `"INVALID_CONFIGURATION"`) - -* `PENDING` (value: `"PENDING"`) - -* `PENDING_CONSOLE_APPROVAL` (value: `"PENDING_CONSOLE_APPROVAL"`) - -* `AWAITING_QUORUM` (value: `"AWAITING_QUORUM"`) - -* `UNHANDLED_ERROR` (value: `"UNHANDLED_ERROR"`) - - - diff --git a/docs/LegacyPolicyValidation.md b/docs/LegacyPolicyValidation.md deleted file mode 100644 index aaddb73d..00000000 --- a/docs/LegacyPolicyValidation.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# LegacyPolicyValidation - -Policy validation object - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **String** | Validation status | | -|**checkResult** | [**LegacyPolicyCheckResult**](LegacyPolicyCheckResult.md) | | | - - - diff --git a/docs/LegacyPublishDraftRequest.md b/docs/LegacyPublishDraftRequest.md deleted file mode 100644 index 92947d38..00000000 --- a/docs/LegacyPublishDraftRequest.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# LegacyPublishDraftRequest - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**draftId** | **String** | draft unique identifier | [optional] | - - - diff --git a/docs/LegacyPublishResult.md b/docs/LegacyPublishResult.md deleted file mode 100644 index 05504fda..00000000 --- a/docs/LegacyPublishResult.md +++ /dev/null @@ -1,17 +0,0 @@ - - -# LegacyPublishResult - -Response object of the publish policy operation - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **LegacyPolicyStatus** | | | -|**rules** | [**List<LegacyPolicyRule>**](LegacyPolicyRule.md) | | | -|**checkResult** | [**LegacyPolicyCheckResult**](LegacyPolicyCheckResult.md) | | | -|**metadata** | [**LegacyPolicyMetadata**](LegacyPolicyMetadata.md) | | | - - - diff --git a/docs/LegacySrcOrDestAttributesInner.md b/docs/LegacySrcOrDestAttributesInner.md deleted file mode 100644 index 38b79bd0..00000000 --- a/docs/LegacySrcOrDestAttributesInner.md +++ /dev/null @@ -1,46 +0,0 @@ - - -# LegacySrcOrDestAttributesInner - -## anyOf schemas -* [LegacyPolicySrcOrDestSubType](LegacyPolicySrcOrDestSubType.md) -* [LegacyPolicySrcOrDestType](LegacyPolicySrcOrDestType.md) -* [String](String.md) - -## Example -```java -// Import classes: -import com.fireblocks.sdk.model.LegacySrcOrDestAttributesInner; -import com.fireblocks.sdk.model.LegacyPolicySrcOrDestSubType; -import com.fireblocks.sdk.model.LegacyPolicySrcOrDestType; -import com.fireblocks.sdk.model.String; - -public class Example { - public static void main(String[] args) { - LegacySrcOrDestAttributesInner exampleLegacySrcOrDestAttributesInner = new LegacySrcOrDestAttributesInner(); - - // create a new LegacyPolicySrcOrDestSubType - LegacyPolicySrcOrDestSubType exampleLegacyPolicySrcOrDestSubType = new LegacyPolicySrcOrDestSubType(); - // set LegacySrcOrDestAttributesInner to LegacyPolicySrcOrDestSubType - exampleLegacySrcOrDestAttributesInner.setActualInstance(exampleLegacyPolicySrcOrDestSubType); - // to get back the LegacyPolicySrcOrDestSubType set earlier - LegacyPolicySrcOrDestSubType testLegacyPolicySrcOrDestSubType = (LegacyPolicySrcOrDestSubType) exampleLegacySrcOrDestAttributesInner.getActualInstance(); - - // create a new LegacyPolicySrcOrDestType - LegacyPolicySrcOrDestType exampleLegacyPolicySrcOrDestType = new LegacyPolicySrcOrDestType(); - // set LegacySrcOrDestAttributesInner to LegacyPolicySrcOrDestType - exampleLegacySrcOrDestAttributesInner.setActualInstance(exampleLegacyPolicySrcOrDestType); - // to get back the LegacyPolicySrcOrDestType set earlier - LegacyPolicySrcOrDestType testLegacyPolicySrcOrDestType = (LegacyPolicySrcOrDestType) exampleLegacySrcOrDestAttributesInner.getActualInstance(); - - // create a new String - String exampleString = new String(); - // set LegacySrcOrDestAttributesInner to String - exampleLegacySrcOrDestAttributesInner.setActualInstance(exampleString); - // to get back the String set earlier - String testString = (String) exampleLegacySrcOrDestAttributesInner.getActualInstance(); - } -} -``` - - diff --git a/docs/LimitExecutionRequestDetails.md b/docs/LimitExecutionRequestDetails.md deleted file mode 100644 index ecf9fa81..00000000 --- a/docs/LimitExecutionRequestDetails.md +++ /dev/null @@ -1,38 +0,0 @@ - - -# LimitExecutionRequestDetails - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**side** | [**SideEnum**](#SideEnum) | Side of the order | | -|**baseAmount** | **String** | Amount to convert | | -|**baseAssetId** | **String** | Source asset identifier | | -|**baseAssetRail** | **TransferRail** | | [optional] | -|**quoteAssetId** | **String** | Target asset identifier | | -|**quoteAssetRail** | **TransferRail** | | [optional] | -|**type** | [**TypeEnum**](#TypeEnum) | Order type for limit orders | | -|**timeInForce** | **TimeInForce** | | | -|**limitPrice** | **String** | Price for limit orders | | - - - -## Enum: SideEnum - -| Name | Value | -|---- | -----| -| BUY | "BUY" | -| SELL | "SELL" | - - - -## Enum: TypeEnum - -| Name | Value | -|---- | -----| -| LIMIT | "LIMIT" | - - - diff --git a/docs/LimitExecutionResponseDetails.md b/docs/LimitExecutionResponseDetails.md deleted file mode 100644 index 9d722d01..00000000 --- a/docs/LimitExecutionResponseDetails.md +++ /dev/null @@ -1,38 +0,0 @@ - - -# LimitExecutionResponseDetails - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**side** | [**SideEnum**](#SideEnum) | Side of the order | | -|**baseAmount** | **String** | Amount to convert | | -|**baseAssetId** | **String** | Source asset identifier | | -|**baseAssetRail** | **TransferRail** | | [optional] | -|**quoteAssetId** | **String** | Target asset identifier | | -|**quoteAssetRail** | **TransferRail** | | [optional] | -|**type** | [**TypeEnum**](#TypeEnum) | Order type for limit orders | | -|**timeInForce** | **TimeInForce** | | | -|**limitPrice** | **String** | Price for limit orders | | - - - -## Enum: SideEnum - -| Name | Value | -|---- | -----| -| BUY | "BUY" | -| SELL | "SELL" | - - - -## Enum: TypeEnum - -| Name | Value | -|---- | -----| -| LIMIT | "LIMIT" | - - - diff --git a/docs/ListAssetsResponse.md b/docs/ListAssetsResponse.md deleted file mode 100644 index c4f718c7..00000000 --- a/docs/ListAssetsResponse.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# ListAssetsResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**data** | [**List<Asset>**](Asset.md) | The data of the current page | | -|**next** | **String** | Cursor to the next page | | - - - diff --git a/docs/ListBlockchainsResponse.md b/docs/ListBlockchainsResponse.md deleted file mode 100644 index ea78efd1..00000000 --- a/docs/ListBlockchainsResponse.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# ListBlockchainsResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**data** | [**List<BlockchainResponse>**](BlockchainResponse.md) | The data of the current page | | -|**next** | **String** | Cursor to the next page | | - - - diff --git a/docs/Manifest.md b/docs/Manifest.md deleted file mode 100644 index fd1d7653..00000000 --- a/docs/Manifest.md +++ /dev/null @@ -1,23 +0,0 @@ - - -# Manifest - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**assetTypes** | [**List<AssetTypesEnum>**](#List<AssetTypesEnum>) | | | -|**capabilities** | **List<Capability>** | | | - - - -## Enum: List<AssetTypesEnum> - -| Name | Value | -|---- | -----| -| DIGITAL | "DIGITAL" | -| FIAT | "FIAT" | - - - diff --git a/docs/MarketExecutionRequestDetails.md b/docs/MarketExecutionRequestDetails.md deleted file mode 100644 index c8bad98e..00000000 --- a/docs/MarketExecutionRequestDetails.md +++ /dev/null @@ -1,36 +0,0 @@ - - -# MarketExecutionRequestDetails - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**side** | [**SideEnum**](#SideEnum) | Side of the order | | -|**baseAmount** | **String** | Amount to convert | | -|**baseAssetId** | **String** | Source asset identifier | | -|**baseAssetRail** | **TransferRail** | | [optional] | -|**quoteAssetId** | **String** | Target asset identifier | | -|**quoteAssetRail** | **TransferRail** | | [optional] | -|**type** | [**TypeEnum**](#TypeEnum) | Order type for market orders | | - - - -## Enum: SideEnum - -| Name | Value | -|---- | -----| -| BUY | "BUY" | -| SELL | "SELL" | - - - -## Enum: TypeEnum - -| Name | Value | -|---- | -----| -| MARKET | "MARKET" | - - - diff --git a/docs/MarketExecutionResponseDetails.md b/docs/MarketExecutionResponseDetails.md deleted file mode 100644 index a677be0e..00000000 --- a/docs/MarketExecutionResponseDetails.md +++ /dev/null @@ -1,36 +0,0 @@ - - -# MarketExecutionResponseDetails - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**side** | [**SideEnum**](#SideEnum) | Side of the order | | -|**baseAmount** | **String** | Amount to convert | | -|**baseAssetId** | **String** | Source asset identifier | | -|**baseAssetRail** | **TransferRail** | | [optional] | -|**quoteAssetId** | **String** | Target asset identifier | | -|**quoteAssetRail** | **TransferRail** | | [optional] | -|**type** | [**TypeEnum**](#TypeEnum) | Order type for market orders | | - - - -## Enum: SideEnum - -| Name | Value | -|---- | -----| -| BUY | "BUY" | -| SELL | "SELL" | - - - -## Enum: TypeEnum - -| Name | Value | -|---- | -----| -| MARKET | "MARKET" | - - - diff --git a/docs/MarketRequoteRequestDetails.md b/docs/MarketRequoteRequestDetails.md deleted file mode 100644 index 6080b598..00000000 --- a/docs/MarketRequoteRequestDetails.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# MarketRequoteRequestDetails - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**type** | [**TypeEnum**](#TypeEnum) | Indicates that the order should be re-quoted if the original quote is expired. This will lead to a market order. | | - - - -## Enum: TypeEnum - -| Name | Value | -|---- | -----| -| MARKET | "MARKET" | - - - diff --git a/docs/MergeStakeAccountsRequest.md b/docs/MergeStakeAccountsRequest.md deleted file mode 100644 index 3015297f..00000000 --- a/docs/MergeStakeAccountsRequest.md +++ /dev/null @@ -1,17 +0,0 @@ - - -# MergeStakeAccountsRequest - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**sourceId** | **UUID** | Id of the source position to merge from | | -|**destinationId** | **UUID** | Id of the destination position to merge into | | -|**fee** | **String** | Represents the fee for a transaction, which can be specified as a percentage value. Only one of fee/feeLevel is required. | [optional] | -|**feeLevel** | **FeeLevel** | | [optional] | -|**txNote** | **String** | The note to associate with the transactions. | [optional] | - - - diff --git a/docs/MergeStakeAccountsResponse.md b/docs/MergeStakeAccountsResponse.md deleted file mode 100644 index 243d1d51..00000000 --- a/docs/MergeStakeAccountsResponse.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# MergeStakeAccountsResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**id** | **UUID** | The unique identifier of the merge position (the id of the destination position) | | - - - diff --git a/docs/MomoPaymentInfo.md b/docs/MomoPaymentInfo.md deleted file mode 100644 index ab31e247..00000000 --- a/docs/MomoPaymentInfo.md +++ /dev/null @@ -1,49 +0,0 @@ - - -# MomoPaymentInfo - -Mobile Money (MOMO) payment information for African mobile payment services - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**rail** | [**RailEnum**](#RailEnum) | The payment rail type for mobile money transfers | | -|**addressingSystem** | [**AddressingSystemEnum**](#AddressingSystemEnum) | The addressing system used for mobile money transfers | | -|**accountHolderGivenName** | **String** | The given name (first name) of the account holder | | -|**accountHolderSurname** | **String** | The surname (last name) of the account holder | | -|**country** | **String** | The country for the transfer (ISO 3166-1 alpha-2 code) | | -|**mobilePhoneNumber** | **String** | The mobile phone number associated with the mobile money account | | -|**provider** | [**ProviderEnum**](#ProviderEnum) | The mobile money service provider | | -|**beneficiaryDocumentId** | **String** | The document ID of the beneficiary | [optional] | -|**beneficiaryRelationship** | **String** | The relationship between sender and beneficiary | [optional] | - - - -## Enum: RailEnum - -| Name | Value | -|---- | -----| -| MOMO | "MOMO" | - - - -## Enum: AddressingSystemEnum - -| Name | Value | -|---- | -----| -| MOMO | "MOMO" | - - - -## Enum: ProviderEnum - -| Name | Value | -|---- | -----| -| M_PESA | "M_PESA" | -| AIRTEL | "AIRTEL" | -| MTN | "MTN" | -| TIGO | "TIGO" | - - - diff --git a/docs/MpcKey.md b/docs/MpcKey.md deleted file mode 100644 index 757a8da0..00000000 --- a/docs/MpcKey.md +++ /dev/null @@ -1,17 +0,0 @@ - - -# MpcKey - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**keyId** | **String** | | | -|**userId** | **String** | The user id that owns the key | | -|**algorithm** | **BigDecimal** | The algorithm of the key | | -|**players** | [**List<Players>**](Players.md) | The players that are associated with the key | | -|**lastPreprocessedIndex** | **BigDecimal** | The last index used on this key | [optional] | - - - diff --git a/docs/MultichainDeploymentMetadata.md b/docs/MultichainDeploymentMetadata.md deleted file mode 100644 index da2e00bb..00000000 --- a/docs/MultichainDeploymentMetadata.md +++ /dev/null @@ -1,19 +0,0 @@ - - -# MultichainDeploymentMetadata - -The multichain deployment metadata - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**id** | **UUID** | The unique identifier of the deployment metadata | [optional] | -|**address** | **String** | The address of the deployed contract | [optional] | -|**templateId** | **UUID** | The unique identifier of the contract template | [optional] | -|**deploymentSalt** | **String** | The salt used for the deployment | [optional] | -|**initParams** | [**List<ParameterWithValue>**](ParameterWithValue.md) | | [optional] | -|**encodedInitParams** | **String** | The encoded init params | [optional] | - - - diff --git a/docs/NetworkConnectionsApi.md b/docs/NetworkConnectionsApi.md index 392b68eb..536f3650 100644 --- a/docs/NetworkConnectionsApi.md +++ b/docs/NetworkConnectionsApi.md @@ -14,7 +14,6 @@ All URIs are relative to https://developers.fireblocks.com/reference/ | [**getNetworkId**](NetworkConnectionsApi.md#getNetworkId) | **GET** /network_ids/{networkId} | Returns specific network ID. | | [**getNetworkIds**](NetworkConnectionsApi.md#getNetworkIds) | **GET** /network_ids | Returns all network IDs, both local IDs and discoverable remote IDs | | [**getRoutingPolicyAssetGroups**](NetworkConnectionsApi.md#getRoutingPolicyAssetGroups) | **GET** /network_ids/routing_policy_asset_groups | Returns all enabled routing policy asset groups | -| [**searchNetworkIds**](NetworkConnectionsApi.md#searchNetworkIds) | **GET** /network_ids/search | Search network IDs, both local IDs and discoverable remote IDs | | [**setNetworkIdDiscoverability**](NetworkConnectionsApi.md#setNetworkIdDiscoverability) | **PATCH** /network_ids/{networkId}/set_discoverability | Update network ID's discoverability. | | [**setNetworkIdName**](NetworkConnectionsApi.md#setNetworkIdName) | **PATCH** /network_ids/{networkId}/set_name | Update network ID's name. | | [**setNetworkIdRoutingPolicy**](NetworkConnectionsApi.md#setNetworkIdRoutingPolicy) | **PATCH** /network_ids/{networkId}/set_routing_policy | Update network id routing policy. | @@ -113,7 +112,7 @@ No authorization required Creates a new network connection -Initiates a new network connection. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** Supported asset groups for routing police can be found at `/network_ids/routing_policy_asset_groups` - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). +Initiates a new network connection. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** Supported asset groups for routing police can be found at `/network_ids/routing_policy_asset_groups` - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). ### Example @@ -532,7 +531,7 @@ No authorization required List network connections -Returns all network connections. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). +Returns all network connections. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). ### Example @@ -846,99 +845,6 @@ No authorization required | **0** | Error Response | * X-Request-ID -
| -## searchNetworkIds - -> CompletableFuture> searchNetworkIds searchNetworkIds(search, excludeSelf, onlySelf, excludeConnected, pageCursor, pageSize) - -Search network IDs, both local IDs and discoverable remote IDs - -Retrieves a list of all local and discoverable remote network IDs. Can be filtered. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.NetworkConnectionsApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - String search = "search_example"; // String | Search string - displayName networkId. Optional - Boolean excludeSelf = true; // Boolean | Exclude your networkIds. Optional, default false - Boolean onlySelf = true; // Boolean | Include just your networkIds. Optional, default false - Boolean excludeConnected = true; // Boolean | Exclude connected networkIds. Optional, default false - String pageCursor = "pageCursor_example"; // String | ID of the record after which to fetch $limit records - BigDecimal pageSize = new BigDecimal("50"); // BigDecimal | Number of records to fetch. By default, it is 50 - try { - CompletableFuture> response = fireblocks.networkConnections().searchNetworkIds(search, excludeSelf, onlySelf, excludeConnected, pageCursor, pageSize); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling NetworkConnectionsApi#searchNetworkIds"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling NetworkConnectionsApi#searchNetworkIds"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **search** | **String**| Search string - displayName networkId. Optional | [optional] | -| **excludeSelf** | **Boolean**| Exclude your networkIds. Optional, default false | [optional] | -| **onlySelf** | **Boolean**| Include just your networkIds. Optional, default false | [optional] | -| **excludeConnected** | **Boolean**| Exclude connected networkIds. Optional, default false | [optional] | -| **pageCursor** | **String**| ID of the record after which to fetch $limit records | [optional] | -| **pageSize** | **BigDecimal**| Number of records to fetch. By default, it is 50 | [optional] [default to 50] | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | A list of network IDs | * X-Request-ID -
| -| **0** | Error Response | * X-Request-ID -
| - - ## setNetworkIdDiscoverability > CompletableFuture> setNetworkIdDiscoverability setNetworkIdDiscoverability(setNetworkIdDiscoverabilityRequest, networkId) diff --git a/docs/NetworkIdResponse.md b/docs/NetworkIdResponse.md index 093e2557..24df9036 100644 --- a/docs/NetworkIdResponse.md +++ b/docs/NetworkIdResponse.md @@ -7,10 +7,10 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**id** | **String** | | | +|**name** | **String** | | | |**routingPolicy** | [**Map<String, NetworkIdRoutingPolicyValue>**](NetworkIdRoutingPolicyValue.md) | | [optional] | |**isDiscoverable** | **Boolean** | The specific network is discoverable. | [optional] | -|**id** | **String** | The specific network id | [optional] | -|**name** | **String** | The specific network name | [optional] | diff --git a/docs/NewAddress.md b/docs/NewAddress.md deleted file mode 100644 index 44653131..00000000 --- a/docs/NewAddress.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# NewAddress - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**address** | **String** | The address string. | | -|**index** | **Integer** | The index of the address in the list. | | -|**description** | **String** | A description of the address. | | - - - diff --git a/docs/NftsApi.md b/docs/NftsApi.md index bfaf57f1..56548ecb 100644 --- a/docs/NftsApi.md +++ b/docs/NftsApi.md @@ -262,7 +262,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **blockchainDescriptor** | **String**| Blockchain descriptor filter | [optional] [enum: ETH, ETH_TEST3, ETH_TEST5, ETH_TEST6, POLYGON, POLYGON_TEST_MUMBAI, AMOY_POLYGON_TEST, XTZ, XTZ_TEST, BASECHAIN_ETH, BASECHAIN_ETH_TEST3, BASECHAIN_ETH_TEST5, ETHERLINK, ETHERLINK_TEST, MANTLE, MANTLE_TEST, GUN_GUNZILLA, GUN_GUNZILLA_TEST, ETH_SONEIUM, SONEIUM_MINATO_TEST, IOTX_IOTEX, KLAY_KAIA, KLAY_KAIA_TEST, APECHAIN, APECHAIN_TEST] | +| **blockchainDescriptor** | **String**| Blockchain descriptor filter | [optional] [enum: ETH, ETH_TEST3, ETH_TEST5, ETH_TEST6, POLYGON, POLYGON_TEST_MUMBAI, AMOY_POLYGON_TEST, XTZ, XTZ_TEST, BASECHAIN_ETH] | | **vaultAccountIds** | **String**| A comma separated list of Vault Account IDs. Up to 100 are allowed in a single request. This field will be ignored when walletType=END_USER_WALLET or ncwId is provided. | [optional] | | **ncwId** | **String**| Tenant's Non-Custodial Wallet ID | [optional] | | **ncwAccountIds** | **String**| A comma separated list of Non-Custodial account IDs. Up to 100 are allowed in a single request. This field will be ignored when walletType=VAULT_ACCOUNT or ncwId is not provided. | [optional] | @@ -493,7 +493,7 @@ No authorization required ## refreshNFTMetadata -> CompletableFuture> refreshNFTMetadata refreshNFTMetadata(id, xEndUserWalletId, idempotencyKey) +> CompletableFuture> refreshNFTMetadata refreshNFTMetadata(id, idempotencyKey) Refresh token metadata @@ -523,10 +523,9 @@ public class Example { Fireblocks fireblocks = new Fireblocks(configurationOptions); String id = "NFT-abcdefabcdefabcdefabcdefabcdefabcdefabcd"; // String | NFT ID - UUID xEndUserWalletId = UUID.randomUUID(); // UUID | Unique ID of the End-User wallet to the API request. Required for end-user wallet operations. String idempotencyKey = "idempotencyKey_example"; // String | 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. try { - CompletableFuture> response = fireblocks.nfts().refreshNFTMetadata(id, xEndUserWalletId, idempotencyKey); + CompletableFuture> response = fireblocks.nfts().refreshNFTMetadata(id, idempotencyKey); System.out.println("Status code: " + response.get().getStatusCode()); System.out.println("Response headers: " + response.get().getHeaders()); } catch (InterruptedException | ExecutionException e) { @@ -553,7 +552,6 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **id** | **String**| NFT ID | | -| **xEndUserWalletId** | **UUID**| Unique ID of the End-User wallet to the API request. Required for end-user wallet operations. | [optional] | | **idempotencyKey** | **String**| 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. | [optional] | ### Return type @@ -637,7 +635,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **blockchainDescriptor** | **String**| Blockchain descriptor filter | [enum: ETH, ETH_TEST5, ETH_TEST6, POLYGON, POLYGON_TEST_MUMBAI, AMOY_POLYGON_TEST, BASECHAIN_ETH, BASECHAIN_ETH_TEST5, ETHERLINK, ETHERLINK_TEST, MANTLE, MANTLE_TEST, GUN_GUNZILLA, GUN_GUNZILLA_TEST, ETH_SONEIUM, SONEIUM_MINATO_TEST, IOTX_IOTEX, KLAY_KAIA, KLAY_KAIA_TEST, APECHAIN, APECHAIN_TEST] | +| **blockchainDescriptor** | **String**| Blockchain descriptor filter | [enum: ETH, ETH_TEST3, ETH_TEST5, ETH_TEST6, POLYGON, POLYGON_TEST_MUMBAI, AMOY_POLYGON_TEST, BASECHAIN_ETH] | | **vaultAccountId** | **String**| Vault account filter | | | **idempotencyKey** | **String**| 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. | [optional] | @@ -663,7 +661,7 @@ No authorization required ## updateTokenOwnershipStatus -> CompletableFuture> updateTokenOwnershipStatus updateTokenOwnershipStatus(updateTokenOwnershipStatusDto, id, xEndUserWalletId, idempotencyKey) +> CompletableFuture> updateTokenOwnershipStatus updateTokenOwnershipStatus(updateTokenOwnershipStatusDto, id, idempotencyKey) Update token ownership status @@ -694,10 +692,9 @@ public class Example { UpdateTokenOwnershipStatusDto updateTokenOwnershipStatusDto = new UpdateTokenOwnershipStatusDto(); // UpdateTokenOwnershipStatusDto | String id = "NFT-abcdefabcdefabcdefabcdefabcdefabcdefabcd"; // String | NFT ID - UUID xEndUserWalletId = UUID.randomUUID(); // UUID | Unique ID of the End-User wallet to the API request. Required for end-user wallet operations. String idempotencyKey = "idempotencyKey_example"; // String | 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. try { - CompletableFuture> response = fireblocks.nfts().updateTokenOwnershipStatus(updateTokenOwnershipStatusDto, id, xEndUserWalletId, idempotencyKey); + CompletableFuture> response = fireblocks.nfts().updateTokenOwnershipStatus(updateTokenOwnershipStatusDto, id, idempotencyKey); System.out.println("Status code: " + response.get().getStatusCode()); System.out.println("Response headers: " + response.get().getHeaders()); } catch (InterruptedException | ExecutionException e) { @@ -725,7 +722,6 @@ public class Example { |------------- | ------------- | ------------- | -------------| | **updateTokenOwnershipStatusDto** | [**UpdateTokenOwnershipStatusDto**](UpdateTokenOwnershipStatusDto.md)| | | | **id** | **String**| NFT ID | | -| **xEndUserWalletId** | **UUID**| Unique ID of the End-User wallet to the API request. Required for end-user wallet operations. | [optional] | | **idempotencyKey** | **String**| 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. | [optional] | ### Return type @@ -750,7 +746,7 @@ No authorization required ## updateTokensOwnershipSpam -> CompletableFuture> updateTokensOwnershipSpam updateTokensOwnershipSpam(tokenOwnershipSpamUpdatePayload, xEndUserWalletId, idempotencyKey) +> CompletableFuture> updateTokensOwnershipSpam updateTokensOwnershipSpam(tokenOwnershipSpamUpdatePayload, idempotencyKey) Update tokens ownership spam property @@ -780,10 +776,9 @@ public class Example { Fireblocks fireblocks = new Fireblocks(configurationOptions); List tokenOwnershipSpamUpdatePayload = Arrays.asList(); // List | - UUID xEndUserWalletId = UUID.randomUUID(); // UUID | Unique ID of the End-User wallet to the API request. Required for end-user wallet operations. String idempotencyKey = "idempotencyKey_example"; // String | 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. try { - CompletableFuture> response = fireblocks.nfts().updateTokensOwnershipSpam(tokenOwnershipSpamUpdatePayload, xEndUserWalletId, idempotencyKey); + CompletableFuture> response = fireblocks.nfts().updateTokensOwnershipSpam(tokenOwnershipSpamUpdatePayload, idempotencyKey); System.out.println("Status code: " + response.get().getStatusCode()); System.out.println("Response headers: " + response.get().getHeaders()); } catch (InterruptedException | ExecutionException e) { @@ -810,7 +805,6 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **tokenOwnershipSpamUpdatePayload** | [**List<TokenOwnershipSpamUpdatePayload>**](TokenOwnershipSpamUpdatePayload.md)| | | -| **xEndUserWalletId** | **UUID**| Unique ID of the End-User wallet to the API request. Required for end-user wallet operations. | [optional] | | **idempotencyKey** | **String**| 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. | [optional] | ### Return type @@ -837,7 +831,7 @@ No authorization required ## updateTokensOwnershipStatus -> CompletableFuture> updateTokensOwnershipStatus updateTokensOwnershipStatus(tokenOwnershipStatusUpdatePayload, xEndUserWalletId, idempotencyKey) +> CompletableFuture> updateTokensOwnershipStatus updateTokensOwnershipStatus(tokenOwnershipStatusUpdatePayload, idempotencyKey) Update tokens ownership status @@ -867,10 +861,9 @@ public class Example { Fireblocks fireblocks = new Fireblocks(configurationOptions); List tokenOwnershipStatusUpdatePayload = Arrays.asList(); // List | - UUID xEndUserWalletId = UUID.randomUUID(); // UUID | Unique ID of the End-User wallet to the API request. Required for end-user wallet operations. String idempotencyKey = "idempotencyKey_example"; // String | 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. try { - CompletableFuture> response = fireblocks.nfts().updateTokensOwnershipStatus(tokenOwnershipStatusUpdatePayload, xEndUserWalletId, idempotencyKey); + CompletableFuture> response = fireblocks.nfts().updateTokensOwnershipStatus(tokenOwnershipStatusUpdatePayload, idempotencyKey); System.out.println("Status code: " + response.get().getStatusCode()); System.out.println("Response headers: " + response.get().getHeaders()); } catch (InterruptedException | ExecutionException e) { @@ -897,7 +890,6 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **tokenOwnershipStatusUpdatePayload** | [**List<TokenOwnershipStatusUpdatePayload>**](TokenOwnershipStatusUpdatePayload.md)| | | -| **xEndUserWalletId** | **UUID**| Unique ID of the End-User wallet to the API request. Required for end-user wallet operations. | [optional] | | **idempotencyKey** | **String**| 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. | [optional] | ### Return type diff --git a/docs/Notification.md b/docs/Notification.md deleted file mode 100644 index d414e684..00000000 --- a/docs/Notification.md +++ /dev/null @@ -1,18 +0,0 @@ - - -# Notification - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**id** | **UUID** | The id of the Notification | | -|**createdAt** | **Long** | The creation date of the notification in milliseconds | | -|**updatedAt** | **Long** | The date when the notification was updated in milliseconds | | -|**status** | **NotificationStatus** | | | -|**eventType** | **WebhookEvent** | | | -|**resourceId** | **UUID** | The resource id of the event which the Notification is listen to | [optional] | - - - diff --git a/docs/NotificationAttempt.md b/docs/NotificationAttempt.md deleted file mode 100644 index 4ea6079b..00000000 --- a/docs/NotificationAttempt.md +++ /dev/null @@ -1,25 +0,0 @@ - - -# NotificationAttempt - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**sentTime** | **Long** | The time when the attempt was sent in milliseconds. | | -|**duration** | **Integer** | The duration of the attempt in milliseconds. | | -|**responseCode** | **Integer** | The response code of the attempt, when missing refer to failureReason. | [optional] | -|**failureReason** | [**FailureReasonEnum**](#FailureReasonEnum) | The request failure reason in case responseCode is missing. | [optional] | - - - -## Enum: FailureReasonEnum - -| Name | Value | -|---- | -----| -| TIMED_OUT | "TIMED_OUT" | -| NO_RESPONSE | "NO_RESPONSE" | - - - diff --git a/docs/NotificationAttemptsPaginatedResponse.md b/docs/NotificationAttemptsPaginatedResponse.md deleted file mode 100644 index 09d02a5e..00000000 --- a/docs/NotificationAttemptsPaginatedResponse.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# NotificationAttemptsPaginatedResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**data** | [**List<NotificationAttempt>**](NotificationAttempt.md) | The data of the current page | | -|**next** | **String** | The ID of the next page | [optional] | - - - diff --git a/docs/NotificationPaginatedResponse.md b/docs/NotificationPaginatedResponse.md deleted file mode 100644 index 0e838d06..00000000 --- a/docs/NotificationPaginatedResponse.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# NotificationPaginatedResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**data** | [**List<Notification>**](Notification.md) | The data of the current page | | -|**total** | **BigDecimal** | The total number of notifications after all filters applied (not returned when 'pageCursor' parameter is used) | [optional] | -|**next** | **String** | The ID of the next page | [optional] | - - - diff --git a/docs/NotificationStatus.md b/docs/NotificationStatus.md deleted file mode 100644 index 5ef74f1f..00000000 --- a/docs/NotificationStatus.md +++ /dev/null @@ -1,17 +0,0 @@ - - -# NotificationStatus - -## Enum - - -* `COMPLETED` (value: `"COMPLETED"`) - -* `FAILED` (value: `"FAILED"`) - -* `IN_PROGRESS` (value: `"IN_PROGRESS"`) - -* `ON_HOLD` (value: `"ON_HOLD"`) - - - diff --git a/docs/NotificationWithData.md b/docs/NotificationWithData.md deleted file mode 100644 index 0aafc304..00000000 --- a/docs/NotificationWithData.md +++ /dev/null @@ -1,19 +0,0 @@ - - -# NotificationWithData - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**id** | **UUID** | | | -|**createdAt** | **Long** | The creation date of the notification in milliseconds | | -|**updatedAt** | **Long** | The date when the notification was updated in milliseconds | | -|**status** | **NotificationStatus** | | | -|**eventType** | **WebhookEvent** | | | -|**resourceId** | **UUID** | The resource id of the event which the Notification is listen to | [optional] | -|**data** | **Object** | notification data | [optional] | - - - diff --git a/docs/OneTimeAddressReference.md b/docs/OneTimeAddressReference.md deleted file mode 100644 index 45269a3c..00000000 --- a/docs/OneTimeAddressReference.md +++ /dev/null @@ -1,23 +0,0 @@ - - -# OneTimeAddressReference - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**type** | [**TypeEnum**](#TypeEnum) | | | -|**address** | **String** | | | -|**tag** | **String** | | [optional] | - - - -## Enum: TypeEnum - -| Name | Value | -|---- | -----| -| ONE_TIME_ADDRESS | "ONE_TIME_ADDRESS" | - - - diff --git a/docs/OrderDetails.md b/docs/OrderDetails.md deleted file mode 100644 index 445c369b..00000000 --- a/docs/OrderDetails.md +++ /dev/null @@ -1,28 +0,0 @@ - - -# OrderDetails - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**id** | **String** | | | -|**via** | [**AccessType**](AccessType.md) | | | -|**status** | **OrderStatus** | | | -|**createdAt** | **OffsetDateTime** | | | -|**updatedAt** | **OffsetDateTime** | | [optional] | -|**receipt** | [**TransferReceipt**](TransferReceipt.md) | | [optional] | -|**generalFees** | [**List<Fee>**](Fee.md) | | [optional] | -|**executionSteps** | [**List<ExecutionStep>**](ExecutionStep.md) | | | -|**executionResponseDetails** | [**ExecutionResponseDetails**](ExecutionResponseDetails.md) | | | -|**settlement** | [**Settlement**](Settlement.md) | | | -|**participantsIdentification** | [**ParticipantsIdentification**](ParticipantsIdentification.md) | | [optional] | -|**paymentInstructions** | [**List<PaymentInstructions>**](PaymentInstructions.md) | Payment instructions for the order, the client can use one of these to pay the order. | [optional] | -|**createdBy** | **String** | The ID of the user who created the order | | -|**customerInternalReferenceId** | **String** | Internal reference ID for the customer | [optional] | -|**note** | **String** | Optional note for the Order | [optional] | -|**expiresAt** | **OffsetDateTime** | | [optional] | - - - diff --git a/docs/OrderStatus.md b/docs/OrderStatus.md deleted file mode 100644 index 0331114f..00000000 --- a/docs/OrderStatus.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# OrderStatus - -## Enum - - -* `CREATED` (value: `"CREATED"`) - -* `PENDING_USER_ACTION` (value: `"PENDING_USER_ACTION"`) - -* `PROCESSING` (value: `"PROCESSING"`) - -* `CANCELED` (value: `"CANCELED"`) - -* `COMPLETED` (value: `"COMPLETED"`) - -* `FAILED` (value: `"FAILED"`) - - - diff --git a/docs/OrderSummary.md b/docs/OrderSummary.md deleted file mode 100644 index ccf985a1..00000000 --- a/docs/OrderSummary.md +++ /dev/null @@ -1,32 +0,0 @@ - - -# OrderSummary - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**id** | **String** | | | -|**via** | [**AccessType**](AccessType.md) | | | -|**side** | [**SideEnum**](#SideEnum) | Side of the order | | -|**baseAmount** | **String** | | | -|**quoteAmount** | **String** | | [optional] | -|**baseAssetId** | **String** | | | -|**quoteAssetId** | **String** | | | -|**status** | **OrderStatus** | | | -|**destination** | [**AccountReference**](AccountReference.md) | | | -|**source** | [**SettlementSourceAccount**](SettlementSourceAccount.md) | | [optional] | -|**createdAt** | **OffsetDateTime** | | | - - - -## Enum: SideEnum - -| Name | Value | -|---- | -----| -| BUY | "BUY" | -| SELL | "SELL" | - - - diff --git a/docs/PaginatedAssetsResponse.md b/docs/PaginatedAssetsResponse.md deleted file mode 100644 index 39fda23c..00000000 --- a/docs/PaginatedAssetsResponse.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# PaginatedAssetsResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**total** | **BigDecimal** | Total number of assets in the internal wallet | [optional] | -|**data** | [**UnmanagedWallet**](UnmanagedWallet.md) | | | -|**next** | **String** | Cursor for the next page of results | [optional] | - - - diff --git a/docs/PairApiKeyRequest.md b/docs/PairApiKeyRequest.md deleted file mode 100644 index cd07f6eb..00000000 --- a/docs/PairApiKeyRequest.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# PairApiKeyRequest - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**callbackHandler** | [**CallbackHandlerRequest**](CallbackHandlerRequest.md) | | [optional] | - - - diff --git a/docs/PairApiKeyResponse.md b/docs/PairApiKeyResponse.md deleted file mode 100644 index 28574086..00000000 --- a/docs/PairApiKeyResponse.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# PairApiKeyResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**id** | **UUID** | The unique identifier of the API key | | -|**callbackHandler** | [**CallbackHandlerRequest**](CallbackHandlerRequest.md) | | [optional] | - - - diff --git a/docs/ParticipantRelationshipType.md b/docs/ParticipantRelationshipType.md deleted file mode 100644 index e51e48aa..00000000 --- a/docs/ParticipantRelationshipType.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# ParticipantRelationshipType - -## Enum - - -* `FIRST_PARTY` (value: `"FirstParty"`) - -* `SECOND_PARTY` (value: `"SecondParty"`) - -* `THIRD_PARTY` (value: `"ThirdParty"`) - - - diff --git a/docs/ParticipantsIdentification.md b/docs/ParticipantsIdentification.md deleted file mode 100644 index 07762ca0..00000000 --- a/docs/ParticipantsIdentification.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# ParticipantsIdentification - -KYC/AML participant identification - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**originator** | [**Identification**](Identification.md) | | [optional] | -|**beneficiary** | [**Identification**](Identification.md) | | [optional] | - - - diff --git a/docs/PaymentInstructions.md b/docs/PaymentInstructions.md deleted file mode 100644 index 1a094861..00000000 --- a/docs/PaymentInstructions.md +++ /dev/null @@ -1,31 +0,0 @@ - - -# PaymentInstructions - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**type** | [**TypeEnum**](#TypeEnum) | | | -|**address** | [**AccountHolderDetails**](AccountHolderDetails.md) | | | -|**referenceId** | **String** | | | - - - -## Enum: TypeEnum - -| Name | Value | -|---- | -----| -| IBAN | "IBAN" | -| SWIFT | "SWIFT" | -| ACH | "ACH" | -| US_WIRE | "US_WIRE" | -| SPEI | "SPEI" | -| SEPA | "SEPA" | -| PIX | "PIX" | -| LOCAL_BANK_TRANSFER_AFRICA | "LOCAL_BANK_TRANSFER_AFRICA" | -| MOBILE_MONEY | "MOBILE_MONEY" | - - - diff --git a/docs/PeerAdapterInfo.md b/docs/PeerAdapterInfo.md deleted file mode 100644 index 39e8e8bb..00000000 --- a/docs/PeerAdapterInfo.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# PeerAdapterInfo - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**adapterTokenLinkId** | **UUID** | The token link id of the adapter | | -|**adapterAddress** | **String** | The adapter address | | -|**baseAssetId** | **String** | The base asset id for the base asset that the adapter is deployed on | | - - - diff --git a/docs/PeerType.md b/docs/PeerType.md deleted file mode 100644 index 33d3a528..00000000 --- a/docs/PeerType.md +++ /dev/null @@ -1,19 +0,0 @@ - - -# PeerType - -## Enum - - -* `VAULT_ACCOUNT` (value: `"VAULT_ACCOUNT"`) - -* `EXCHANGE_ACCOUNT` (value: `"EXCHANGE_ACCOUNT"`) - -* `INTERNAL_WALLET` (value: `"INTERNAL_WALLET"`) - -* `EXTERNAL_WALLET` (value: `"EXTERNAL_WALLET"`) - -* `FIAT_ACCOUNT` (value: `"FIAT_ACCOUNT"`) - - - diff --git a/docs/PersonalIdentification.md b/docs/PersonalIdentification.md deleted file mode 100644 index df54bf02..00000000 --- a/docs/PersonalIdentification.md +++ /dev/null @@ -1,26 +0,0 @@ - - -# PersonalIdentification - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**externalReferenceId** | **String** | | | -|**entityType** | [**EntityTypeEnum**](#EntityTypeEnum) | | | -|**participantRelationshipType** | **ParticipantRelationshipType** | | | -|**fullName** | [**PersonalIdentificationFullName**](PersonalIdentificationFullName.md) | | | -|**dateOfBirth** | **LocalDate** | | | -|**postalAddress** | [**PostalAddress**](PostalAddress.md) | | | - - - -## Enum: EntityTypeEnum - -| Name | Value | -|---- | -----| -| INDIVIDUAL | "INDIVIDUAL" | - - - diff --git a/docs/PixPaymentInfo.md b/docs/PixPaymentInfo.md deleted file mode 100644 index 5f6d02a4..00000000 --- a/docs/PixPaymentInfo.md +++ /dev/null @@ -1,50 +0,0 @@ - - -# PixPaymentInfo - -PIX payment information for Brazilian instant payments - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**rail** | [**RailEnum**](#RailEnum) | The payment rail type for PIX transfers | | -|**addressingSystem** | [**AddressingSystemEnum**](#AddressingSystemEnum) | The addressing system used for PIX transfers | | -|**accountHolderGivenName** | **String** | The given name (first name) of the account holder | | -|**accountHolderSurname** | **String** | The surname (last name) of the account holder | | -|**country** | **String** | The country for the transfer (ISO 3166-1 alpha-2 code) | | -|**pixKey** | **String** | The PIX key used for the transfer | | -|**bankName** | **String** | The name of the bank | [optional] | -|**bankCode** | **String** | The bank code (ISPB - Identificador do Sistema de Pagamentos Brasileiros) | [optional] | -|**keyType** | [**KeyTypeEnum**](#KeyTypeEnum) | The type of PIX key being used | | - - - -## Enum: RailEnum - -| Name | Value | -|---- | -----| -| PIX | "PIX" | - - - -## Enum: AddressingSystemEnum - -| Name | Value | -|---- | -----| -| PIX | "PIX" | - - - -## Enum: KeyTypeEnum - -| Name | Value | -|---- | -----| -| CPF | "CPF" | -| CNPJ | "CNPJ" | -| EMAIL | "EMAIL" | -| PHONE | "PHONE" | -| RANDOM | "RANDOM" | - - - diff --git a/docs/PlatformAccount.md b/docs/PlatformAccount.md deleted file mode 100644 index 86a561f0..00000000 --- a/docs/PlatformAccount.md +++ /dev/null @@ -1,24 +0,0 @@ - - -# PlatformAccount - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**type** | [**TypeEnum**](#TypeEnum) | | | -|**accountId** | **String** | | | - - - -## Enum: TypeEnum - -| Name | Value | -|---- | -----| -| VAULT_ACCOUNT | "VAULT_ACCOUNT" | -| CONNECTED_ACCOUNT | "CONNECTED_ACCOUNT" | -| FIAT_ACCOUNT | "FIAT_ACCOUNT" | - - - diff --git a/docs/Players.md b/docs/Players.md deleted file mode 100644 index fb0746be..00000000 --- a/docs/Players.md +++ /dev/null @@ -1,23 +0,0 @@ - - -# Players - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**id** | **String** | id of the player | | -|**type** | [**TypeEnum**](#TypeEnum) | Type of the player | | - - - -## Enum: TypeEnum - -| Name | Value | -|---- | -----| -| MOBILE | "MOBILE" | -| CLOUD | "CLOUD" | - - - diff --git a/docs/PolicyEditorBetaApi.md b/docs/PolicyEditorBetaApi.md index 62b3e07c..ec1b5515 100644 --- a/docs/PolicyEditorBetaApi.md +++ b/docs/PolicyEditorBetaApi.md @@ -4,21 +4,21 @@ All URIs are relative to https://developers.fireblocks.com/reference/ | Method | HTTP request | Description | |------------- | ------------- | -------------| -| [**getActivePolicyLegacy**](PolicyEditorBetaApi.md#getActivePolicyLegacy) | **GET** /tap/active_policy | Get the active policy and its validation | -| [**getDraftLegacy**](PolicyEditorBetaApi.md#getDraftLegacy) | **GET** /tap/draft | Get the active draft | -| [**publishDraftLegacy**](PolicyEditorBetaApi.md#publishDraftLegacy) | **POST** /tap/draft | Send publish request for a certain draft id | +| [**getActivePolicy**](PolicyEditorBetaApi.md#getActivePolicy) | **GET** /tap/active_policy | Get the active policy and its validation | +| [**getDraft**](PolicyEditorBetaApi.md#getDraft) | **GET** /tap/draft | Get the active draft | +| [**publishDraft**](PolicyEditorBetaApi.md#publishDraft) | **POST** /tap/draft | Send publish request for a certain draft id | | [**publishPolicyRules**](PolicyEditorBetaApi.md#publishPolicyRules) | **POST** /tap/publish | Send publish request for a set of policy rules | -| [**updateDraftLegacy**](PolicyEditorBetaApi.md#updateDraftLegacy) | **PUT** /tap/draft | Update the draft with a new set of rules | +| [**updateDraft**](PolicyEditorBetaApi.md#updateDraft) | **PUT** /tap/draft | Update the draft with a new set of rules | -## getActivePolicyLegacy +## getActivePolicy -> CompletableFuture> getActivePolicyLegacy getActivePolicyLegacy() +> CompletableFuture> getActivePolicy getActivePolicy() Get the active policy and its validation -Legacy Endpoint – Returns the active policy and its validation. </br> **Note:** - This endpoint will remain available for the foreseeable future and is not deprecated.</br> - The `getActivePolicy` endpoint under policy/paths provides policy type-specific operations and improved functionality.</br> - These endpoints are currently in beta and might be subject to changes.</br> If you want to participate and learn more about the Fireblocks TAP, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. +Returns the active policy and its validation. </br> **Note:** These endpoints are currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks TAP, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. ### Example @@ -44,19 +44,19 @@ public class Example { Fireblocks fireblocks = new Fireblocks(configurationOptions); try { - CompletableFuture> response = fireblocks.policyEditorBeta().getActivePolicyLegacy(); + CompletableFuture> response = fireblocks.policyEditorBeta().getActivePolicy(); System.out.println("Status code: " + response.get().getStatusCode()); System.out.println("Response headers: " + response.get().getHeaders()); System.out.println("Response body: " + response.get().getData()); } catch (InterruptedException | ExecutionException e) { ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling PolicyEditorBetaApi#getActivePolicyLegacy"); + System.err.println("Exception when calling PolicyEditorBetaApi#getActivePolicy"); System.err.println("Status code: " + apiException.getCode()); System.err.println("Response headers: " + apiException.getResponseHeaders()); System.err.println("Reason: " + apiException.getResponseBody()); e.printStackTrace(); } catch (ApiException e) { - System.err.println("Exception when calling PolicyEditorBetaApi#getActivePolicyLegacy"); + System.err.println("Exception when calling PolicyEditorBetaApi#getActivePolicy"); System.err.println("Status code: " + e.getCode()); System.err.println("Response headers: " + e.getResponseHeaders()); System.err.println("Reason: " + e.getResponseBody()); @@ -72,7 +72,7 @@ This endpoint does not need any parameter. ### Return type -CompletableFuture> +CompletableFuture> ### Authorization @@ -91,13 +91,13 @@ No authorization required | **0** | Error Response | * X-Request-ID -
| -## getDraftLegacy +## getDraft -> CompletableFuture> getDraftLegacy getDraftLegacy() +> CompletableFuture> getDraft getDraft() Get the active draft -Legacy Endpoint – Returns the active draft and its validation. </br> **Note:** - This endpoint will remain available for the foreseeable future and is not deprecated.</br> - The `getDraft` endpoint under policy/paths provides policy type-specific operations and improved functionality.</br> - These endpoints are currently in beta and might be subject to changes.</br> If you want to participate and learn more about the Fireblocks TAP, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. +Returns the active draft and its validation. </br> **Note:** These endpoints are currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks TAP, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. ### Example @@ -123,19 +123,19 @@ public class Example { Fireblocks fireblocks = new Fireblocks(configurationOptions); try { - CompletableFuture> response = fireblocks.policyEditorBeta().getDraftLegacy(); + CompletableFuture> response = fireblocks.policyEditorBeta().getDraft(); System.out.println("Status code: " + response.get().getStatusCode()); System.out.println("Response headers: " + response.get().getHeaders()); System.out.println("Response body: " + response.get().getData()); } catch (InterruptedException | ExecutionException e) { ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling PolicyEditorBetaApi#getDraftLegacy"); + System.err.println("Exception when calling PolicyEditorBetaApi#getDraft"); System.err.println("Status code: " + apiException.getCode()); System.err.println("Response headers: " + apiException.getResponseHeaders()); System.err.println("Reason: " + apiException.getResponseBody()); e.printStackTrace(); } catch (ApiException e) { - System.err.println("Exception when calling PolicyEditorBetaApi#getDraftLegacy"); + System.err.println("Exception when calling PolicyEditorBetaApi#getDraft"); System.err.println("Status code: " + e.getCode()); System.err.println("Response headers: " + e.getResponseHeaders()); System.err.println("Reason: " + e.getResponseBody()); @@ -151,7 +151,7 @@ This endpoint does not need any parameter. ### Return type -CompletableFuture> +CompletableFuture> ### Authorization @@ -170,13 +170,13 @@ No authorization required | **0** | Error Response | * X-Request-ID -
| -## publishDraftLegacy +## publishDraft -> CompletableFuture> publishDraftLegacy publishDraftLegacy(legacyPublishDraftRequest, idempotencyKey) +> CompletableFuture> publishDraft publishDraft(publishDraftRequest, idempotencyKey) Send publish request for a certain draft id -Legacy Endpoint – Send publish request of certain draft id and returns the response. </br> **Note:** - This endpoint will remain available for the foreseeable future and is not deprecated.</br> - The `publishDraft` endpoint under policy/paths provides improved functionality and better performance.</br> - These endpoints are currently in beta and might be subject to changes.</br> If you want to participate and learn more about the Fireblocks TAP, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. +Send publish request of certain draft id and returns the response. </br> **Note:** These endpoints are currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks TAP, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. ### Example @@ -201,22 +201,22 @@ public class Example { .secretKey("my-secret-key"); Fireblocks fireblocks = new Fireblocks(configurationOptions); - LegacyPublishDraftRequest legacyPublishDraftRequest = new LegacyPublishDraftRequest(); // LegacyPublishDraftRequest | + PublishDraftRequest publishDraftRequest = new PublishDraftRequest(); // PublishDraftRequest | String idempotencyKey = "idempotencyKey_example"; // String | 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. try { - CompletableFuture> response = fireblocks.policyEditorBeta().publishDraftLegacy(legacyPublishDraftRequest, idempotencyKey); + CompletableFuture> response = fireblocks.policyEditorBeta().publishDraft(publishDraftRequest, idempotencyKey); System.out.println("Status code: " + response.get().getStatusCode()); System.out.println("Response headers: " + response.get().getHeaders()); System.out.println("Response body: " + response.get().getData()); } catch (InterruptedException | ExecutionException e) { ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling PolicyEditorBetaApi#publishDraftLegacy"); + System.err.println("Exception when calling PolicyEditorBetaApi#publishDraft"); System.err.println("Status code: " + apiException.getCode()); System.err.println("Response headers: " + apiException.getResponseHeaders()); System.err.println("Reason: " + apiException.getResponseBody()); e.printStackTrace(); } catch (ApiException e) { - System.err.println("Exception when calling PolicyEditorBetaApi#publishDraftLegacy"); + System.err.println("Exception when calling PolicyEditorBetaApi#publishDraft"); System.err.println("Status code: " + e.getCode()); System.err.println("Response headers: " + e.getResponseHeaders()); System.err.println("Reason: " + e.getResponseBody()); @@ -231,12 +231,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **legacyPublishDraftRequest** | [**LegacyPublishDraftRequest**](LegacyPublishDraftRequest.md)| | | +| **publishDraftRequest** | [**PublishDraftRequest**](PublishDraftRequest.md)| | | | **idempotencyKey** | **String**| 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. | [optional] | ### Return type -CompletableFuture> +CompletableFuture> ### Authorization @@ -257,7 +257,7 @@ No authorization required ## publishPolicyRules -> CompletableFuture> publishPolicyRules publishPolicyRules(legacyPolicyRules, idempotencyKey) +> CompletableFuture> publishPolicyRules publishPolicyRules(policyRules, idempotencyKey) Send publish request for a set of policy rules @@ -286,10 +286,10 @@ public class Example { .secretKey("my-secret-key"); Fireblocks fireblocks = new Fireblocks(configurationOptions); - LegacyPolicyRules legacyPolicyRules = new LegacyPolicyRules(); // LegacyPolicyRules | + PolicyRules policyRules = new PolicyRules(); // PolicyRules | String idempotencyKey = "idempotencyKey_example"; // String | 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. try { - CompletableFuture> response = fireblocks.policyEditorBeta().publishPolicyRules(legacyPolicyRules, idempotencyKey); + CompletableFuture> response = fireblocks.policyEditorBeta().publishPolicyRules(policyRules, idempotencyKey); System.out.println("Status code: " + response.get().getStatusCode()); System.out.println("Response headers: " + response.get().getHeaders()); System.out.println("Response body: " + response.get().getData()); @@ -316,12 +316,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **legacyPolicyRules** | [**LegacyPolicyRules**](LegacyPolicyRules.md)| | | +| **policyRules** | [**PolicyRules**](PolicyRules.md)| | | | **idempotencyKey** | **String**| 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. | [optional] | ### Return type -CompletableFuture> +CompletableFuture> ### Authorization @@ -340,13 +340,13 @@ No authorization required | **0** | Error Response | * X-Request-ID -
| -## updateDraftLegacy +## updateDraft -> CompletableFuture> updateDraftLegacy updateDraftLegacy(legacyPolicyRules, idempotencyKey) +> CompletableFuture> updateDraft updateDraft(policyRules, idempotencyKey) Update the draft with a new set of rules -Legacy Endpoint – Update the draft and return its validation. </br> **Note:** - This endpoint will remain available for the foreseeable future and is not deprecated.</br> - The `updateDraft` endpoint under policy/paths provides policy type-specific operations and improved functionality.</br> - These endpoints are currently in beta and might be subject to changes.</br> If you want to participate and learn more about the Fireblocks TAP, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. +Update the draft and return its validation. </br> **Note:** These endpoints are currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks TAP, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. ### Example @@ -371,22 +371,22 @@ public class Example { .secretKey("my-secret-key"); Fireblocks fireblocks = new Fireblocks(configurationOptions); - LegacyPolicyRules legacyPolicyRules = new LegacyPolicyRules(); // LegacyPolicyRules | + PolicyRules policyRules = new PolicyRules(); // PolicyRules | String idempotencyKey = "idempotencyKey_example"; // String | 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. try { - CompletableFuture> response = fireblocks.policyEditorBeta().updateDraftLegacy(legacyPolicyRules, idempotencyKey); + CompletableFuture> response = fireblocks.policyEditorBeta().updateDraft(policyRules, idempotencyKey); System.out.println("Status code: " + response.get().getStatusCode()); System.out.println("Response headers: " + response.get().getHeaders()); System.out.println("Response body: " + response.get().getData()); } catch (InterruptedException | ExecutionException e) { ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling PolicyEditorBetaApi#updateDraftLegacy"); + System.err.println("Exception when calling PolicyEditorBetaApi#updateDraft"); System.err.println("Status code: " + apiException.getCode()); System.err.println("Response headers: " + apiException.getResponseHeaders()); System.err.println("Reason: " + apiException.getResponseBody()); e.printStackTrace(); } catch (ApiException e) { - System.err.println("Exception when calling PolicyEditorBetaApi#updateDraftLegacy"); + System.err.println("Exception when calling PolicyEditorBetaApi#updateDraft"); System.err.println("Status code: " + e.getCode()); System.err.println("Response headers: " + e.getResponseHeaders()); System.err.println("Reason: " + e.getResponseBody()); @@ -401,12 +401,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **legacyPolicyRules** | [**LegacyPolicyRules**](LegacyPolicyRules.md)| | | +| **policyRules** | [**PolicyRules**](PolicyRules.md)| | | | **idempotencyKey** | **String**| 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. | [optional] | ### Return type -CompletableFuture> +CompletableFuture> ### Authorization diff --git a/docs/PolicyEditorV2BetaApi.md b/docs/PolicyEditorV2BetaApi.md deleted file mode 100644 index dd7c3de8..00000000 --- a/docs/PolicyEditorV2BetaApi.md +++ /dev/null @@ -1,348 +0,0 @@ -# PolicyEditorV2BetaApi - -All URIs are relative to https://developers.fireblocks.com/reference/ - -| Method | HTTP request | Description | -|------------- | ------------- | -------------| -| [**getActivePolicy**](PolicyEditorV2BetaApi.md#getActivePolicy) | **GET** /policy/active_policy | Get the active policy and its validation by policy type | -| [**getDraft**](PolicyEditorV2BetaApi.md#getDraft) | **GET** /policy/draft | Get the active draft by policy type | -| [**publishDraft**](PolicyEditorV2BetaApi.md#publishDraft) | **POST** /policy/draft | Send publish request for a certain draft id | -| [**updateDraft**](PolicyEditorV2BetaApi.md#updateDraft) | **PUT** /policy/draft | Update the draft with a new set of rules by policy types | - - - -## getActivePolicy - -> CompletableFuture> getActivePolicy getActivePolicy(policyType) - -Get the active policy and its validation by policy type - -Returns the active policy and its validation for a specific policy type. </br> **Note:** These endpoints are currently in beta and might be subject to changes. - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.PolicyEditorV2BetaApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - PolicyType policyType = PolicyType.fromValue("TRANSFER"); // PolicyType | The policy type(s) to retrieve. Can be a single type or multiple types by repeating the parameter (e.g., ?policyType=TRANSFER&policyType=MINT). - try { - CompletableFuture> response = fireblocks.policyEditorV2Beta().getActivePolicy(policyType); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling PolicyEditorV2BetaApi#getActivePolicy"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling PolicyEditorV2BetaApi#getActivePolicy"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **policyType** | [**PolicyType**](.md)| The policy type(s) to retrieve. Can be a single type or multiple types by repeating the parameter (e.g., ?policyType=TRANSFER&policyType=MINT). | [enum: TRANSFER, STAKE, CONTRACT_CALL, TYPED_MESSAGE, APPROVE, MINT, BURN, RAW, COMPLIANCE, DEPLOYMENT, PROGRAM_CALL, DAPP_CONNECTION, UPGRADE, ORDER, AML_CHAINALYSIS_V2_SCREENING, AML_CHAINALYSIS_V2_POST_SCREENING, AML_ELLIPTIC_HOLISTIC_SCREENING, AML_ELLIPTIC_HOLISTIC_POST_SCREENING, TR_NOTABENE_SCREENING, TR_NOTABENE_POST_SCREENING] | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | A policy object with validation | * X-Request-ID -
| -| **0** | Error Response | * X-Request-ID -
| - - -## getDraft - -> CompletableFuture> getDraft getDraft(policyType) - -Get the active draft by policy type - -Returns the active draft and its validation for a specific policy type. </br> **Note:** These endpoints are currently in beta and might be subject to changes. - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.PolicyEditorV2BetaApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - PolicyType policyType = PolicyType.fromValue("TRANSFER"); // PolicyType | The policy type(s) to retrieve. Can be a single type or multiple types by repeating the parameter (e.g., ?policyType=TRANSFER&policyType=MINT). - try { - CompletableFuture> response = fireblocks.policyEditorV2Beta().getDraft(policyType); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling PolicyEditorV2BetaApi#getDraft"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling PolicyEditorV2BetaApi#getDraft"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **policyType** | [**PolicyType**](.md)| The policy type(s) to retrieve. Can be a single type or multiple types by repeating the parameter (e.g., ?policyType=TRANSFER&policyType=MINT). | [enum: TRANSFER, STAKE, CONTRACT_CALL, TYPED_MESSAGE, APPROVE, MINT, BURN, RAW, COMPLIANCE, DEPLOYMENT, PROGRAM_CALL, DAPP_CONNECTION, UPGRADE, ORDER, AML_CHAINALYSIS_V2_SCREENING, AML_CHAINALYSIS_V2_POST_SCREENING, AML_ELLIPTIC_HOLISTIC_SCREENING, AML_ELLIPTIC_HOLISTIC_POST_SCREENING, TR_NOTABENE_SCREENING, TR_NOTABENE_POST_SCREENING] | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | A draft validation response object | * X-Request-ID -
| -| **0** | Error Response | * X-Request-ID -
| - - -## publishDraft - -> CompletableFuture> publishDraft publishDraft(publishDraftRequest, idempotencyKey) - -Send publish request for a certain draft id - -Send publish request of certain draft id and returns the response. </br> **Note:** These endpoints are currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks Policy Editor, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.PolicyEditorV2BetaApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - PublishDraftRequest publishDraftRequest = new PublishDraftRequest(); // PublishDraftRequest | - String idempotencyKey = "idempotencyKey_example"; // String | 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. - try { - CompletableFuture> response = fireblocks.policyEditorV2Beta().publishDraft(publishDraftRequest, idempotencyKey); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling PolicyEditorV2BetaApi#publishDraft"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling PolicyEditorV2BetaApi#publishDraft"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **publishDraftRequest** | [**PublishDraftRequest**](PublishDraftRequest.md)| | | -| **idempotencyKey** | **String**| 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. | [optional] | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **201** | A policy publish result object | * X-Request-ID -
| -| **0** | Error Response | * X-Request-ID -
| - - -## updateDraft - -> CompletableFuture> updateDraft updateDraft(updateDraftRequest, idempotencyKey) - -Update the draft with a new set of rules by policy types - -Update the draft and return its validation for specific policy types. </br> **Note:** These endpoints are currently in beta and might be subject to changes. - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.PolicyEditorV2BetaApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - UpdateDraftRequest updateDraftRequest = new UpdateDraftRequest(); // UpdateDraftRequest | - String idempotencyKey = "idempotencyKey_example"; // String | 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. - try { - CompletableFuture> response = fireblocks.policyEditorV2Beta().updateDraft(updateDraftRequest, idempotencyKey); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling PolicyEditorV2BetaApi#updateDraft"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling PolicyEditorV2BetaApi#updateDraft"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **updateDraftRequest** | [**UpdateDraftRequest**](UpdateDraftRequest.md)| | | -| **idempotencyKey** | **String**| 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. | [optional] | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | A draft validation response object | * X-Request-ID -
| -| **0** | Error Response | * X-Request-ID -
| - diff --git a/docs/PolicyMetadata.md b/docs/PolicyMetadata.md index ed1fb95a..d0a2a068 100644 --- a/docs/PolicyMetadata.md +++ b/docs/PolicyMetadata.md @@ -2,17 +2,16 @@ # PolicyMetadata -Policy metadata +Policy related metadata ## Properties | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**editedBy** | **String** | The user ID of the user who last edited the policy | [optional] | +|**editedBy** | **String** | The user id of the user who last edited the policy | [optional] | |**editedAt** | **String** | The timestamp of the last edit of the policy | [optional] | -|**publishedBy** | **String** | The user ID of the user who last published the policy | [optional] | +|**publishedBy** | **String** | The user id of the user who last published the policy | [optional] | |**publishedAt** | **String** | The timestamp of the last publish of the policy | [optional] | -|**policyType** | **PolicyType** | | | diff --git a/docs/PolicyOperator.md b/docs/PolicyOperator.md deleted file mode 100644 index 9c7226df..00000000 --- a/docs/PolicyOperator.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# PolicyOperator - -## Enum - - -* `INCLUDES` (value: `"INCLUDES"`) - -* `EXCLUDES` (value: `"EXCLUDES"`) - - - diff --git a/docs/PolicyRule.md b/docs/PolicyRule.md index efb4d6df..a3b4025e 100644 --- a/docs/PolicyRule.md +++ b/docs/PolicyRule.md @@ -2,44 +2,105 @@ # PolicyRule -V2 Policy rule which is enforced on transactions +Policy rule which is enforced on transactions ## Properties | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**name** | **String** | Name of the policy rule | | -|**id** | **String** | Unique identifier for the policy rule | | -|**policyEngineVersion** | [**PolicyEngineVersionEnum**](#PolicyEngineVersionEnum) | Policy engine version | | -|**type** | **PolicyType** | | | -|**subType** | **PolicyType** | | [optional] | -|**initiator** | [**InitiatorConfigPattern**](InitiatorConfigPattern.md) | | | -|**asset** | [**AssetConfig**](AssetConfig.md) | | | -|**source** | [**AccountConfig**](AccountConfig.md) | | | -|**destination** | [**DestinationConfig**](DestinationConfig.md) | | [optional] | -|**account** | [**AccountConfig**](AccountConfig.md) | | [optional] | -|**verdict** | [**VerdictConfig**](VerdictConfig.md) | | | -|**amountOverTime** | [**AmountOverTimeConfig**](AmountOverTimeConfig.md) | | [optional] | -|**amount** | [**AmountRange**](AmountRange.md) | | [optional] | -|**externalDescriptor** | **String** | External descriptor for the rule | [optional] | -|**method** | [**ContractMethodPattern**](ContractMethodPattern.md) | | [optional] | -|**isGlobalPolicy** | **Boolean** | Whether this is a global policy | [optional] | -|**programCall** | [**ProgramCallConfig**](ProgramCallConfig.md) | | [optional] | -|**screeningMetadata** | [**ScreeningMetadataConfig**](ScreeningMetadataConfig.md) | | [optional] | -|**quoteAsset** | [**AssetConfig**](AssetConfig.md) | | [optional] | -|**baseAsset** | [**AssetConfig**](AssetConfig.md) | | [optional] | -|**quoteAmount** | [**AmountRange**](AmountRange.md) | | [optional] | -|**baseAmount** | [**AmountRange**](AmountRange.md) | | [optional] | -|**derivationPath** | [**DerivationPathConfig**](DerivationPathConfig.md) | | [optional] | -|**index** | **BigDecimal** | Index for the policy rule | [optional] | - - - -## Enum: PolicyEngineVersionEnum +|**operator** | **String** | (deprecated - replaced by \"operators\") | Defines users who can initiate the type of transaction to which the rule applies. options are * \"*\" - All users are allowed * Specific User id | [optional] | +|**operators** | [**PolicyRuleOperators**](PolicyRuleOperators.md) | | [optional] | +|**transactionType** | [**TransactionTypeEnum**](#TransactionTypeEnum) | Defines the type of transaction to which the rule applies. * TRANSFER - Default. Transfers funds from one account to another * CONTRACT_CALL - Calls a smart contract, mainly for DeFi operations. * APPROVE - Allows a smart contract to withdraw from a designated wallet. * MINT - Perform a mint operation (increase supply) on a supported token * BURN - Perform a burn operation (reduce supply) on a supported token * SUPPLY - Use for DeFi to lend assets * REDEEM - Use for DeFi to get lending back * STAKE - Allows you to allocate and lock certain assets for earning staking rewards. * RAW - An off-chain message with no predefined format, use it to sign any message with your private key. * TYPED_MESSAGE - An off-chain message type that follows a predefined format, used to sign specific messages that are not actual transactions. | [optional] | +|**designatedSigner** | **String** | (deprecated - replaced by \"designatedSigners\") Id representing the user who signs transactions that match a specific rule | [optional] | +|**designatedSigners** | [**PolicyRuleDesignatedSigners**](PolicyRuleDesignatedSigners.md) | | [optional] | +|**type** | [**TypeEnum**](#TypeEnum) | Policy rule type | | +|**action** | [**ActionEnum**](#ActionEnum) | Defines what occurs when a transaction meets the rule's criteria * ALLOW - The transaction goes through and can be signed without requiring additional approvals * BLOCK - The transaction is automatically blocked * 2-TIER - Only these users or user groups can approve If any of them reject the transaction before the required approval threshold is met, the transaction doesn't go through The list of entities are set is \"authorizationGroups\" field | | +|**asset** | **String** | Defines the type of asset being transacted, options are * \"*\" - All assets * Specific asset | | +|**srcType** | **PolicySrcOrDestType** | (deprecated - replaced by \"src\") source account type | [optional] | +|**srcSubType** | **PolicySrcOrDestSubType** | (deprecated - replaced by \"src\") source sub account type | [optional] | +|**srcId** | **String** | (deprecated - replaced by \"src\") source account id | [optional] | +|**src** | [**PolicyRuleSrc**](PolicyRuleSrc.md) | | [optional] | +|**dstType** | **PolicySrcOrDestType** | (deprecated - replaced by \"dst\") destination account type | [optional] | +|**dstSubType** | **PolicySrcOrDestSubType** | (deprecated - replaced by \"dst\") destination sub account type | [optional] | +|**dstId** | **String** | (deprecated - replaced by \"dst\") destination account id | [optional] | +|**dst** | [**PolicyRuleDst**](PolicyRuleDst.md) | | [optional] | +|**dstAddressType** | [**DstAddressTypeEnum**](#DstAddressTypeEnum) | Defines whether the destination to which you are sending funds must be whitelisted, to allow one-time transfers to non-whitelisted external addresses, or both. By default, you can only transfer to an external address after it’s whitelisted. * WHITELISTED - Can only be sent to whitelisted addresses. * ONE_TIME - Can only be sent to non-whitelisted external addresses. * \"*\" - can be sent to whitelisted addresses or non-whitelisted external | [optional] | +|**amountCurrency** | [**AmountCurrencyEnum**](#AmountCurrencyEnum) | * USD - Limits the amount of any asset users can transfer based on the USD equivalent of the asset. * EUR - Limits the amount of any asset users can transfer based on the EURO equivalent of the asset. * NATIVE - Limits the amount of an asset a user can transfer when using a specific asset. | | +|**amountScope** | [**AmountScopeEnum**](#AmountScopeEnum) | * SINGLE_TX - limit applies to a single transaction * TIMEFRAME - limit applies to all transactions within the defined time period | | +|**amount** | [**PolicyRuleAmount**](PolicyRuleAmount.md) | | | +|**periodSec** | **BigDecimal** | Time period in seconds applied by the amountScope field to accumulate transferred amounts in transactions that match the rule, until the total exceeds the value you specify under Minimum. When the specified amount is reached within that period, whether by one or many transactions, further transactions in that period either fail or require more approvals. | | +|**authorizers** | **List<String>** | (deprecated - replaced by \"authorizationGroups\") Allowed entities which can approves a transaction | [optional] | +|**authorizersCount** | **BigDecimal** | (deprecated - replaced by \"authorizationGroups\") Min amount of entities which are needed to approve a transaction | [optional] | +|**authorizationGroups** | [**PolicyRuleAuthorizationGroups**](PolicyRuleAuthorizationGroups.md) | | [optional] | +|**amountAggregation** | [**PolicyRuleAmountAggregation**](PolicyRuleAmountAggregation.md) | | [optional] | +|**rawMessageSigning** | [**PolicyRuleRawMessageSigning**](PolicyRuleRawMessageSigning.md) | | [optional] | +|**applyForApprove** | **Boolean** | Applying this rule over APPROVE type transactions (can only be enabled when rule's transaction type is TRANSFER) | [optional] | +|**applyForTypedMessage** | **Boolean** | Applying this rule over TYPED_MESSAGE type transactions (can only be enabled when rule's transaction type is CONTRACT_CALL) | [optional] | +|**externalDescriptor** | **String** | A unique id identifying the rule | [optional] | + + + +## Enum: TransactionTypeEnum + +| Name | Value | +|---- | -----| +| TRANSFER | "TRANSFER" | +| CONTRACT_CALL | "CONTRACT_CALL" | +| APPROVE | "APPROVE" | +| MINT | "MINT" | +| BURN | "BURN" | +| SUPPLY | "SUPPLY" | +| REDEEM | "REDEEM" | +| STAKE | "STAKE" | +| RAW | "RAW" | +| TYPED_MESSAGE | "TYPED_MESSAGE" | + + + +## Enum: TypeEnum + +| Name | Value | +|---- | -----| +| TRANSFER | "TRANSFER" | + + + +## Enum: ActionEnum + +| Name | Value | +|---- | -----| +| ALLOW | "ALLOW" | +| BLOCK | "BLOCK" | +| _2_TIER | "2-TIER" | + + + +## Enum: DstAddressTypeEnum + +| Name | Value | +|---- | -----| +| WHITELISTED | "WHITELISTED" | +| ONE_TIME | "ONE_TIME" | +| STAR | "*" | + + + +## Enum: AmountCurrencyEnum + +| Name | Value | +|---- | -----| +| USD | "USD" | +| EUR | "EUR" | +| NATIVE | "NATIVE" | + + + +## Enum: AmountScopeEnum | Name | Value | |---- | -----| -| V2 | "v2" | +| SINGLE_TX | "SINGLE_TX" | +| TIMEFRAME | "TIMEFRAME" | diff --git a/docs/LegacyPolicyRuleAmount.md b/docs/PolicyRuleAmount.md similarity index 51% rename from docs/LegacyPolicyRuleAmount.md rename to docs/PolicyRuleAmount.md index fd9aa34d..753e6ce9 100644 --- a/docs/LegacyPolicyRuleAmount.md +++ b/docs/PolicyRuleAmount.md @@ -1,6 +1,6 @@ -# LegacyPolicyRuleAmount +# PolicyRuleAmount Defines the value a transaction must exceed for the rule to apply to it (according to the amountCurrency field) @@ -11,27 +11,27 @@ Defines the value a transaction must exceed for the rule to apply to it (accordi ## Example ```java // Import classes: -import com.fireblocks.sdk.model.LegacyPolicyRuleAmount; +import com.fireblocks.sdk.model.PolicyRuleAmount; import com.fireblocks.sdk.model.BigDecimal; import com.fireblocks.sdk.model.String; public class Example { public static void main(String[] args) { - LegacyPolicyRuleAmount exampleLegacyPolicyRuleAmount = new LegacyPolicyRuleAmount(); + PolicyRuleAmount examplePolicyRuleAmount = new PolicyRuleAmount(); // create a new BigDecimal BigDecimal exampleBigDecimal = new BigDecimal(); - // set LegacyPolicyRuleAmount to BigDecimal - exampleLegacyPolicyRuleAmount.setActualInstance(exampleBigDecimal); + // set PolicyRuleAmount to BigDecimal + examplePolicyRuleAmount.setActualInstance(exampleBigDecimal); // to get back the BigDecimal set earlier - BigDecimal testBigDecimal = (BigDecimal) exampleLegacyPolicyRuleAmount.getActualInstance(); + BigDecimal testBigDecimal = (BigDecimal) examplePolicyRuleAmount.getActualInstance(); // create a new String String exampleString = new String(); - // set LegacyPolicyRuleAmount to String - exampleLegacyPolicyRuleAmount.setActualInstance(exampleString); + // set PolicyRuleAmount to String + examplePolicyRuleAmount.setActualInstance(exampleString); // to get back the String set earlier - String testString = (String) exampleLegacyPolicyRuleAmount.getActualInstance(); + String testString = (String) examplePolicyRuleAmount.getActualInstance(); } } ``` diff --git a/docs/LegacyPolicyRuleAmountAggregation.md b/docs/PolicyRuleAmountAggregation.md similarity index 53% rename from docs/LegacyPolicyRuleAmountAggregation.md rename to docs/PolicyRuleAmountAggregation.md index cd9de811..516711fb 100644 --- a/docs/LegacyPolicyRuleAmountAggregation.md +++ b/docs/PolicyRuleAmountAggregation.md @@ -1,6 +1,6 @@ -# LegacyPolicyRuleAmountAggregation +# PolicyRuleAmountAggregation Defines the method by which the Policy Engine calculates accumulation. It uses the Initiator, Source, and Destination to calculate accumulation toward the value under Minimum, for the time under Time Period. @@ -8,9 +8,9 @@ Defines the method by which the Policy Engine calculates accumulation. It uses t | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**operators** | **LegacyAmountAggregationTimePeriodMethod** | | [optional] | -|**srcTransferPeers** | **LegacyAmountAggregationTimePeriodMethod** | | [optional] | -|**dstTransferPeers** | **LegacyAmountAggregationTimePeriodMethod** | | [optional] | +|**operators** | **AmountAggregationTimePeriodMethod** | | [optional] | +|**srcTransferPeers** | **AmountAggregationTimePeriodMethod** | | [optional] | +|**dstTransferPeers** | **AmountAggregationTimePeriodMethod** | | [optional] | diff --git a/docs/LegacyPolicyRuleAuthorizationGroups.md b/docs/PolicyRuleAuthorizationGroups.md similarity index 73% rename from docs/LegacyPolicyRuleAuthorizationGroups.md rename to docs/PolicyRuleAuthorizationGroups.md index 68921120..06aee634 100644 --- a/docs/LegacyPolicyRuleAuthorizationGroups.md +++ b/docs/PolicyRuleAuthorizationGroups.md @@ -1,6 +1,6 @@ -# LegacyPolicyRuleAuthorizationGroups +# PolicyRuleAuthorizationGroups Defines the transaction approval terms @@ -10,7 +10,7 @@ Defines the transaction approval terms |------------ | ------------- | ------------- | -------------| |**logic** | [**LogicEnum**](#LogicEnum) | * AND - requires approval of all authorization groups * OR - requires approval of at least one of the authorization groups | [optional] | |**allowOperatorAsAuthorizer** | **Boolean** | Defines whether the user who initiates a transaction can approve their own transaction and count toward the approval threshold for their transaction | [optional] | -|**groups** | [**List<LegacyPolicyRuleAuthorizationGroupsGroupsInner>**](LegacyPolicyRuleAuthorizationGroupsGroupsInner.md) | Groups of entities which can approve the transaction | [optional] | +|**groups** | [**List<PolicyRuleAuthorizationGroupsGroupsInner>**](PolicyRuleAuthorizationGroupsGroupsInner.md) | Groups of entities which can approve the transaction | [optional] | diff --git a/docs/LegacyPolicyRuleAuthorizationGroupsGroupsInner.md b/docs/PolicyRuleAuthorizationGroupsGroupsInner.md similarity index 89% rename from docs/LegacyPolicyRuleAuthorizationGroupsGroupsInner.md rename to docs/PolicyRuleAuthorizationGroupsGroupsInner.md index 2b28e839..5ed59710 100644 --- a/docs/LegacyPolicyRuleAuthorizationGroupsGroupsInner.md +++ b/docs/PolicyRuleAuthorizationGroupsGroupsInner.md @@ -1,6 +1,6 @@ -# LegacyPolicyRuleAuthorizationGroupsGroupsInner +# PolicyRuleAuthorizationGroupsGroupsInner ## Properties diff --git a/docs/LegacyPolicyRuleDesignatedSigners.md b/docs/PolicyRuleDesignatedSigners.md similarity index 90% rename from docs/LegacyPolicyRuleDesignatedSigners.md rename to docs/PolicyRuleDesignatedSigners.md index e46094f1..71a80fcb 100644 --- a/docs/LegacyPolicyRuleDesignatedSigners.md +++ b/docs/PolicyRuleDesignatedSigners.md @@ -1,6 +1,6 @@ -# LegacyPolicyRuleDesignatedSigners +# PolicyRuleDesignatedSigners Set of ids representing the users who signs transactions that match a specific rule diff --git a/docs/LegacyPolicyRuleDst.md b/docs/PolicyRuleDst.md similarity index 56% rename from docs/LegacyPolicyRuleDst.md rename to docs/PolicyRuleDst.md index 851ac986..2bbac7b3 100644 --- a/docs/LegacyPolicyRuleDst.md +++ b/docs/PolicyRuleDst.md @@ -1,6 +1,6 @@ -# LegacyPolicyRuleDst +# PolicyRuleDst Defines the destination accounts the rule allows transfers to @@ -8,7 +8,7 @@ Defines the destination accounts the rule allows transfers to | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**ids** | **List<List<LegacySrcOrDestAttributesInner>>** | A set of ids in a tuple format | [optional] | +|**ids** | **List<List<SrcOrDestAttributesInner>>** | A set of ids in a tuple format | [optional] | diff --git a/docs/LegacyPolicyRuleOperators.md b/docs/PolicyRuleOperators.md similarity index 96% rename from docs/LegacyPolicyRuleOperators.md rename to docs/PolicyRuleOperators.md index e24b4caa..741ef4f6 100644 --- a/docs/LegacyPolicyRuleOperators.md +++ b/docs/PolicyRuleOperators.md @@ -1,6 +1,6 @@ -# LegacyPolicyRuleOperators +# PolicyRuleOperators Defines users/groups who can initiate the type of transaction to which the rule applies. diff --git a/docs/LegacyPolicyRuleRawMessageSigning.md b/docs/PolicyRuleRawMessageSigning.md similarity index 52% rename from docs/LegacyPolicyRuleRawMessageSigning.md rename to docs/PolicyRuleRawMessageSigning.md index 89a75890..ebec9a1c 100644 --- a/docs/LegacyPolicyRuleRawMessageSigning.md +++ b/docs/PolicyRuleRawMessageSigning.md @@ -1,6 +1,6 @@ -# LegacyPolicyRuleRawMessageSigning +# PolicyRuleRawMessageSigning Raw message signing configuration @@ -9,7 +9,7 @@ Raw message signing configuration | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**algorithm** | **String** | | [optional] | -|**derivationPath** | [**LegacyPolicyRuleRawMessageSigningDerivationPath**](LegacyPolicyRuleRawMessageSigningDerivationPath.md) | | [optional] | +|**derivationPath** | [**PolicyRuleRawMessageSigningDerivationPath**](PolicyRuleRawMessageSigningDerivationPath.md) | | [optional] | diff --git a/docs/LegacyPolicyRuleRawMessageSigningDerivationPath.md b/docs/PolicyRuleRawMessageSigningDerivationPath.md similarity index 78% rename from docs/LegacyPolicyRuleRawMessageSigningDerivationPath.md rename to docs/PolicyRuleRawMessageSigningDerivationPath.md index 2bf14b8d..5c4c14c3 100644 --- a/docs/LegacyPolicyRuleRawMessageSigningDerivationPath.md +++ b/docs/PolicyRuleRawMessageSigningDerivationPath.md @@ -1,6 +1,6 @@ -# LegacyPolicyRuleRawMessageSigningDerivationPath +# PolicyRuleRawMessageSigningDerivationPath ## Properties diff --git a/docs/LegacyPolicyRuleSrc.md b/docs/PolicyRuleSrc.md similarity index 57% rename from docs/LegacyPolicyRuleSrc.md rename to docs/PolicyRuleSrc.md index 6da4afa8..59305e3b 100644 --- a/docs/LegacyPolicyRuleSrc.md +++ b/docs/PolicyRuleSrc.md @@ -1,6 +1,6 @@ -# LegacyPolicyRuleSrc +# PolicyRuleSrc Defines source accounts the rule allows transfers to originate from @@ -8,7 +8,7 @@ Defines source accounts the rule allows transfers to originate from | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**ids** | **List<List<LegacySrcOrDestAttributesInner>>** | A set of ids in a tuple format | [optional] | +|**ids** | **List<List<SrcOrDestAttributesInner>>** | A set of ids in a tuple format | [optional] | diff --git a/docs/PersonalIdentificationFullName.md b/docs/PolicyRules.md similarity index 70% rename from docs/PersonalIdentificationFullName.md rename to docs/PolicyRules.md index 301ac7f8..5ee5094c 100644 --- a/docs/PersonalIdentificationFullName.md +++ b/docs/PolicyRules.md @@ -1,14 +1,13 @@ -# PersonalIdentificationFullName +# PolicyRules ## Properties | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**firstName** | **String** | | | -|**lastName** | **String** | | | +|**rules** | [**List<PolicyRule>**](PolicyRule.md) | Policy rules | [optional] | diff --git a/docs/LegacyPolicySrcOrDestSubType.md b/docs/PolicySrcOrDestSubType.md similarity index 86% rename from docs/LegacyPolicySrcOrDestSubType.md rename to docs/PolicySrcOrDestSubType.md index 2f300b69..c8aa4a73 100644 --- a/docs/LegacyPolicySrcOrDestSubType.md +++ b/docs/PolicySrcOrDestSubType.md @@ -1,6 +1,6 @@ -# LegacyPolicySrcOrDestSubType +# PolicySrcOrDestSubType ## Enum diff --git a/docs/LegacyPolicySrcOrDestType.md b/docs/PolicySrcOrDestType.md similarity index 92% rename from docs/LegacyPolicySrcOrDestType.md rename to docs/PolicySrcOrDestType.md index 5b631006..8fcf2da2 100644 --- a/docs/LegacyPolicySrcOrDestType.md +++ b/docs/PolicySrcOrDestType.md @@ -1,6 +1,6 @@ -# LegacyPolicySrcOrDestType +# PolicySrcOrDestType ## Enum diff --git a/docs/PolicyType.md b/docs/PolicyType.md deleted file mode 100644 index 84d435aa..00000000 --- a/docs/PolicyType.md +++ /dev/null @@ -1,49 +0,0 @@ - - -# PolicyType - -## Enum - - -* `TRANSFER` (value: `"TRANSFER"`) - -* `STAKE` (value: `"STAKE"`) - -* `CONTRACT_CALL` (value: `"CONTRACT_CALL"`) - -* `TYPED_MESSAGE` (value: `"TYPED_MESSAGE"`) - -* `APPROVE` (value: `"APPROVE"`) - -* `MINT` (value: `"MINT"`) - -* `BURN` (value: `"BURN"`) - -* `RAW` (value: `"RAW"`) - -* `COMPLIANCE` (value: `"COMPLIANCE"`) - -* `DEPLOYMENT` (value: `"DEPLOYMENT"`) - -* `PROGRAM_CALL` (value: `"PROGRAM_CALL"`) - -* `DAPP_CONNECTION` (value: `"DAPP_CONNECTION"`) - -* `UPGRADE` (value: `"UPGRADE"`) - -* `ORDER` (value: `"ORDER"`) - -* `AML_CHAINALYSIS_V2_SCREENING` (value: `"AML_CHAINALYSIS_V2_SCREENING"`) - -* `AML_CHAINALYSIS_V2_POST_SCREENING` (value: `"AML_CHAINALYSIS_V2_POST_SCREENING"`) - -* `AML_ELLIPTIC_HOLISTIC_SCREENING` (value: `"AML_ELLIPTIC_HOLISTIC_SCREENING"`) - -* `AML_ELLIPTIC_HOLISTIC_POST_SCREENING` (value: `"AML_ELLIPTIC_HOLISTIC_POST_SCREENING"`) - -* `TR_NOTABENE_SCREENING` (value: `"TR_NOTABENE_SCREENING"`) - -* `TR_NOTABENE_POST_SCREENING` (value: `"TR_NOTABENE_POST_SCREENING"`) - - - diff --git a/docs/PostOrderSettlement.md b/docs/PostOrderSettlement.md deleted file mode 100644 index eaeadd51..00000000 --- a/docs/PostOrderSettlement.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# PostOrderSettlement - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**type** | [**TypeEnum**](#TypeEnum) | | | - - - -## Enum: TypeEnum - -| Name | Value | -|---- | -----| -| POST_ORDER | "POST_ORDER" | - - - diff --git a/docs/PostalAddress.md b/docs/PostalAddress.md deleted file mode 100644 index 9a3fb74e..00000000 --- a/docs/PostalAddress.md +++ /dev/null @@ -1,19 +0,0 @@ - - -# PostalAddress - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**streetName** | **String** | | | -|**buildingNumber** | **String** | | | -|**postalCode** | **String** | | | -|**city** | **String** | | | -|**subdivision** | **String** | | | -|**district** | **String** | | | -|**country** | **String** | | | - - - diff --git a/docs/PrefundedSettlement.md b/docs/PrefundedSettlement.md deleted file mode 100644 index 8a677828..00000000 --- a/docs/PrefundedSettlement.md +++ /dev/null @@ -1,22 +0,0 @@ - - -# PrefundedSettlement - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**type** | [**TypeEnum**](#TypeEnum) | | | -|**destinationAccount** | [**AccountReference**](AccountReference.md) | | | - - - -## Enum: TypeEnum - -| Name | Value | -|---- | -----| -| PREFUNDED | "PREFUNDED" | - - - diff --git a/docs/ProgramCallConfig.md b/docs/ProgramCallConfig.md deleted file mode 100644 index 98fdcfa1..00000000 --- a/docs/ProgramCallConfig.md +++ /dev/null @@ -1,23 +0,0 @@ - - -# ProgramCallConfig - -Program call configuration - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**allowedSolanaProgramCalls** | [**AllowedSolanaProgramCallsEnum**](#AllowedSolanaProgramCallsEnum) | Whether Solana program calls are allowed | | - - - -## Enum: AllowedSolanaProgramCallsEnum - -| Name | Value | -|---- | -----| -| STAR | "*" | -| WHITELISTED | "WHITELISTED" | - - - diff --git a/docs/Provider.md b/docs/Provider.md deleted file mode 100644 index 04fce66a..00000000 --- a/docs/Provider.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# Provider - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**id** | **String** | The ID of the provider | | -|**providerName** | **String** | Name of the provider | | -|**validators** | [**List<Validator>**](Validator.md) | An array of objects that includes chain descriptors and the corresponding fee percentages for validators supported by the provider | | -|**iconUrl** | **String** | URL to the validator's icon | [optional] | -|**termsOfServiceUrl** | **String** | URL to the terms of service | [optional] | -|**isTermsOfServiceApproved** | **Boolean** | Indicates whether the terms of service are approved | | -|**isPrivate** | **Boolean** | Is the provider private, i.e created by the user | [optional] | -|**isLiquidStaking** | **Boolean** | Is the provider a liquid staking provider | | - - - diff --git a/docs/ProviderDto.md b/docs/ProviderDto.md new file mode 100644 index 00000000..981bc9fa --- /dev/null +++ b/docs/ProviderDto.md @@ -0,0 +1,18 @@ + + +# ProviderDto + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **String** | The ID of the provider | | +|**providerName** | **String** | Name of the provider | | +|**validators** | [**List<ValidatorDto>**](ValidatorDto.md) | An array of objects that includes chain descriptors and the corresponding fee percentages for validators supported by the provider | | +|**iconUrl** | **String** | URL to the validator's icon | | +|**termsOfServiceUrl** | **String** | URL to the terms of service | | +|**isTermsOfServiceApproved** | **Boolean** | Indicates whether the terms of service are approved | | + + + diff --git a/docs/ProviderID.md b/docs/ProviderID.md deleted file mode 100644 index 30bb6e86..00000000 --- a/docs/ProviderID.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# ProviderID - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**providerId** | **String** | The ID of the provider associated with the account. | | - - - diff --git a/docs/ProvidersListResponse.md b/docs/ProvidersListResponse.md deleted file mode 100644 index 8c9962fb..00000000 --- a/docs/ProvidersListResponse.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# ProvidersListResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**data** | [**List<TradingProvider>**](TradingProvider.md) | List of available providers | | -|**total** | **Integer** | Total number of providers matching the query. | | -|**next** | **String** | A cursor for the next page of results, if available. | [optional] | - - - diff --git a/docs/PublicKeyInformation.md b/docs/PublicKeyInformation.md index 4591c024..381d8a05 100644 --- a/docs/PublicKeyInformation.md +++ b/docs/PublicKeyInformation.md @@ -7,19 +7,9 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**algorithm** | [**AlgorithmEnum**](#AlgorithmEnum) | Elliptic Curve | [optional] | -|**derivationPath** | **List<Integer>** | BIP44 derivation path | [optional] | -|**publicKey** | **String** | Compressed/Uncompressed public key value in hex representation | [optional] | - - - -## Enum: AlgorithmEnum - -| Name | Value | -|---- | -----| -| MPC_ECDSA_SECP256_K1 | "MPC_ECDSA_SECP256K1" | -| MPC_ECDSA_SECP256_R1 | "MPC_ECDSA_SECP256R1" | -| MPC_EDDSA_ED25519 | "MPC_EDDSA_ED25519" | +|**algorithm** | **String** | | [optional] | +|**derivationPath** | **List<BigDecimal>** | | [optional] | +|**publicKey** | **String** | | [optional] | diff --git a/docs/PublishDraftRequest.md b/docs/PublishDraftRequest.md index 252088f7..d150418e 100644 --- a/docs/PublishDraftRequest.md +++ b/docs/PublishDraftRequest.md @@ -2,14 +2,12 @@ # PublishDraftRequest -Request schema for publishing draft with policy types and draft ID ## Properties | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**policyTypes** | **List<PolicyType>** | | | -|**draftId** | **String** | The ID of the draft to publish | | +|**draftId** | **String** | draft unique identifier | [optional] | diff --git a/docs/Quote.md b/docs/Quote.md deleted file mode 100644 index c2af25ac..00000000 --- a/docs/Quote.md +++ /dev/null @@ -1,42 +0,0 @@ - - -# Quote - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**via** | [**AccessType**](AccessType.md) | | | -|**id** | **String** | | | -|**type** | [**TypeEnum**](#TypeEnum) | Indicates this is an indicative quote | | -|**quoteAssetId** | **String** | | | -|**baseAssetId** | **String** | | | -|**baseAmount** | **String** | | | -|**quoteAmount** | **String** | | | -|**priceImpact** | **BigDecimal** | | [optional] | -|**quoteMinAmount** | **String** | | [optional] | -|**executionSteps** | [**List<ExecutionStepDetails>**](ExecutionStepDetails.md) | | [optional] | -|**generalFees** | [**List<Fee>**](Fee.md) | | [optional] | -|**side** | [**SideEnum**](#SideEnum) | Side of the order | | -|**expiresAt** | **OffsetDateTime** | ISO 8601 timestamp of the expiration time of the quote. | | - - - -## Enum: TypeEnum - -| Name | Value | -|---- | -----| -| INDICATIVE | "INDICATIVE" | - - - -## Enum: SideEnum - -| Name | Value | -|---- | -----| -| BUY | "BUY" | -| SELL | "SELL" | - - - diff --git a/docs/QuoteExecutionRequestDetails.md b/docs/QuoteExecutionRequestDetails.md deleted file mode 100644 index 3aaf8a9c..00000000 --- a/docs/QuoteExecutionRequestDetails.md +++ /dev/null @@ -1,22 +0,0 @@ - - -# QuoteExecutionRequestDetails - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**type** | [**TypeEnum**](#TypeEnum) | Order type for quote orders | | -|**quoteId** | **String** | Quote ID for quote orders | | - - - -## Enum: TypeEnum - -| Name | Value | -|---- | -----| -| QUOTE | "QUOTE" | - - - diff --git a/docs/QuoteExecutionResponseDetails.md b/docs/QuoteExecutionResponseDetails.md deleted file mode 100644 index 8d799761..00000000 --- a/docs/QuoteExecutionResponseDetails.md +++ /dev/null @@ -1,38 +0,0 @@ - - -# QuoteExecutionResponseDetails - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**side** | [**SideEnum**](#SideEnum) | Side of the order | | -|**baseAmount** | **String** | Amount to convert | | -|**baseAssetId** | **String** | Source asset identifier | | -|**baseAssetRail** | **TransferRail** | | [optional] | -|**quoteAssetId** | **String** | Target asset identifier | | -|**quoteAssetRail** | **TransferRail** | | [optional] | -|**type** | [**TypeEnum**](#TypeEnum) | Order type for quote orders | | -|**quoteId** | **String** | Quote ID for quote orders | | -|**quoteAmount** | **String** | Quote amount for quote orders | | - - - -## Enum: SideEnum - -| Name | Value | -|---- | -----| -| BUY | "BUY" | -| SELL | "SELL" | - - - -## Enum: TypeEnum - -| Name | Value | -|---- | -----| -| QUOTE | "QUOTE" | - - - diff --git a/docs/QuoteExecutionWithRequoteRequestDetails.md b/docs/QuoteExecutionWithRequoteRequestDetails.md deleted file mode 100644 index eb155f43..00000000 --- a/docs/QuoteExecutionWithRequoteRequestDetails.md +++ /dev/null @@ -1,23 +0,0 @@ - - -# QuoteExecutionWithRequoteRequestDetails - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**type** | [**TypeEnum**](#TypeEnum) | Order type for quote orders | | -|**quoteId** | **String** | Quote ID for quote orders | | -|**reQuote** | [**QuoteExecutionWithRequoteRequestDetailsAllOfReQuote**](QuoteExecutionWithRequoteRequestDetailsAllOfReQuote.md) | | [optional] | - - - -## Enum: TypeEnum - -| Name | Value | -|---- | -----| -| QUOTE | "QUOTE" | - - - diff --git a/docs/QuoteExecutionWithRequoteRequestDetailsAllOfReQuote.md b/docs/QuoteExecutionWithRequoteRequestDetailsAllOfReQuote.md deleted file mode 100644 index beeb76c5..00000000 --- a/docs/QuoteExecutionWithRequoteRequestDetailsAllOfReQuote.md +++ /dev/null @@ -1,37 +0,0 @@ - - -# QuoteExecutionWithRequoteRequestDetailsAllOfReQuote - -## oneOf schemas -* [MarketRequoteRequestDetails](MarketRequoteRequestDetails.md) -* [RetryRequoteRequestDetails](RetryRequoteRequestDetails.md) - -## Example -```java -// Import classes: -import com.fireblocks.sdk.model.QuoteExecutionWithRequoteRequestDetailsAllOfReQuote; -import com.fireblocks.sdk.model.MarketRequoteRequestDetails; -import com.fireblocks.sdk.model.RetryRequoteRequestDetails; - -public class Example { - public static void main(String[] args) { - QuoteExecutionWithRequoteRequestDetailsAllOfReQuote exampleQuoteExecutionWithRequoteRequestDetailsAllOfReQuote = new QuoteExecutionWithRequoteRequestDetailsAllOfReQuote(); - - // create a new MarketRequoteRequestDetails - MarketRequoteRequestDetails exampleMarketRequoteRequestDetails = new MarketRequoteRequestDetails(); - // set QuoteExecutionWithRequoteRequestDetailsAllOfReQuote to MarketRequoteRequestDetails - exampleQuoteExecutionWithRequoteRequestDetailsAllOfReQuote.setActualInstance(exampleMarketRequoteRequestDetails); - // to get back the MarketRequoteRequestDetails set earlier - MarketRequoteRequestDetails testMarketRequoteRequestDetails = (MarketRequoteRequestDetails) exampleQuoteExecutionWithRequoteRequestDetailsAllOfReQuote.getActualInstance(); - - // create a new RetryRequoteRequestDetails - RetryRequoteRequestDetails exampleRetryRequoteRequestDetails = new RetryRequoteRequestDetails(); - // set QuoteExecutionWithRequoteRequestDetailsAllOfReQuote to RetryRequoteRequestDetails - exampleQuoteExecutionWithRequoteRequestDetailsAllOfReQuote.setActualInstance(exampleRetryRequoteRequestDetails); - // to get back the RetryRequoteRequestDetails set earlier - RetryRequoteRequestDetails testRetryRequoteRequestDetails = (RetryRequoteRequestDetails) exampleQuoteExecutionWithRequoteRequestDetailsAllOfReQuote.getActualInstance(); - } -} -``` - - diff --git a/docs/QuoteExecutionWithRequoteResponseDetails.md b/docs/QuoteExecutionWithRequoteResponseDetails.md deleted file mode 100644 index 53acee5c..00000000 --- a/docs/QuoteExecutionWithRequoteResponseDetails.md +++ /dev/null @@ -1,39 +0,0 @@ - - -# QuoteExecutionWithRequoteResponseDetails - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**type** | [**TypeEnum**](#TypeEnum) | Order type for quote orders | | -|**quoteId** | **String** | Quote ID for quote orders | | -|**quoteAmount** | **String** | Quote amount for quote orders | | -|**side** | [**SideEnum**](#SideEnum) | Side of the order | | -|**baseAmount** | **String** | Amount to convert | | -|**baseAssetId** | **String** | Source asset identifier | | -|**baseAssetRail** | **TransferRail** | | [optional] | -|**quoteAssetId** | **String** | Target asset identifier | | -|**quoteAssetRail** | **TransferRail** | | [optional] | -|**reQuote** | [**QuoteExecutionWithRequoteResponseDetailsAllOfReQuote**](QuoteExecutionWithRequoteResponseDetailsAllOfReQuote.md) | | [optional] | - - - -## Enum: TypeEnum - -| Name | Value | -|---- | -----| -| QUOTE | "QUOTE" | - - - -## Enum: SideEnum - -| Name | Value | -|---- | -----| -| BUY | "BUY" | -| SELL | "SELL" | - - - diff --git a/docs/QuoteExecutionWithRequoteResponseDetailsAllOfReQuote.md b/docs/QuoteExecutionWithRequoteResponseDetailsAllOfReQuote.md deleted file mode 100644 index 208143ff..00000000 --- a/docs/QuoteExecutionWithRequoteResponseDetailsAllOfReQuote.md +++ /dev/null @@ -1,37 +0,0 @@ - - -# QuoteExecutionWithRequoteResponseDetailsAllOfReQuote - -## oneOf schemas -* [MarketRequoteRequestDetails](MarketRequoteRequestDetails.md) -* [RetryRequoteRequestDetails](RetryRequoteRequestDetails.md) - -## Example -```java -// Import classes: -import com.fireblocks.sdk.model.QuoteExecutionWithRequoteResponseDetailsAllOfReQuote; -import com.fireblocks.sdk.model.MarketRequoteRequestDetails; -import com.fireblocks.sdk.model.RetryRequoteRequestDetails; - -public class Example { - public static void main(String[] args) { - QuoteExecutionWithRequoteResponseDetailsAllOfReQuote exampleQuoteExecutionWithRequoteResponseDetailsAllOfReQuote = new QuoteExecutionWithRequoteResponseDetailsAllOfReQuote(); - - // create a new MarketRequoteRequestDetails - MarketRequoteRequestDetails exampleMarketRequoteRequestDetails = new MarketRequoteRequestDetails(); - // set QuoteExecutionWithRequoteResponseDetailsAllOfReQuote to MarketRequoteRequestDetails - exampleQuoteExecutionWithRequoteResponseDetailsAllOfReQuote.setActualInstance(exampleMarketRequoteRequestDetails); - // to get back the MarketRequoteRequestDetails set earlier - MarketRequoteRequestDetails testMarketRequoteRequestDetails = (MarketRequoteRequestDetails) exampleQuoteExecutionWithRequoteResponseDetailsAllOfReQuote.getActualInstance(); - - // create a new RetryRequoteRequestDetails - RetryRequoteRequestDetails exampleRetryRequoteRequestDetails = new RetryRequoteRequestDetails(); - // set QuoteExecutionWithRequoteResponseDetailsAllOfReQuote to RetryRequoteRequestDetails - exampleQuoteExecutionWithRequoteResponseDetailsAllOfReQuote.setActualInstance(exampleRetryRequoteRequestDetails); - // to get back the RetryRequoteRequestDetails set earlier - RetryRequoteRequestDetails testRetryRequoteRequestDetails = (RetryRequoteRequestDetails) exampleQuoteExecutionWithRequoteResponseDetailsAllOfReQuote.getActualInstance(); - } -} -``` - - diff --git a/docs/QuotesResponse.md b/docs/QuotesResponse.md deleted file mode 100644 index cec1d2c8..00000000 --- a/docs/QuotesResponse.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# QuotesResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**quotes** | [**List<Quote>**](Quote.md) | | [optional] | - - - diff --git a/docs/ReadCallFunctionDto.md b/docs/ReadCallFunctionDto.md index 33eae17e..5a5cc6d2 100644 --- a/docs/ReadCallFunctionDto.md +++ b/docs/ReadCallFunctionDto.md @@ -7,7 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**abiFunction** | [**ReadCallFunctionDtoAbiFunction**](ReadCallFunctionDtoAbiFunction.md) | | | +|**abiFunction** | [**List<ReadAbiFunction>**](ReadAbiFunction.md) | The abi of the read function you wish to call | | diff --git a/docs/ReadCallFunctionDtoAbiFunction.md b/docs/ReadCallFunctionDtoAbiFunction.md deleted file mode 100644 index 93e767f4..00000000 --- a/docs/ReadCallFunctionDtoAbiFunction.md +++ /dev/null @@ -1,37 +0,0 @@ - - -# ReadCallFunctionDtoAbiFunction - -## oneOf schemas -* [ReadAbiFunction](ReadAbiFunction.md) -* [SolanaInstructionWithValue](SolanaInstructionWithValue.md) - -## Example -```java -// Import classes: -import com.fireblocks.sdk.model.ReadCallFunctionDtoAbiFunction; -import com.fireblocks.sdk.model.ReadAbiFunction; -import com.fireblocks.sdk.model.SolanaInstructionWithValue; - -public class Example { - public static void main(String[] args) { - ReadCallFunctionDtoAbiFunction exampleReadCallFunctionDtoAbiFunction = new ReadCallFunctionDtoAbiFunction(); - - // create a new ReadAbiFunction - ReadAbiFunction exampleReadAbiFunction = new ReadAbiFunction(); - // set ReadCallFunctionDtoAbiFunction to ReadAbiFunction - exampleReadCallFunctionDtoAbiFunction.setActualInstance(exampleReadAbiFunction); - // to get back the ReadAbiFunction set earlier - ReadAbiFunction testReadAbiFunction = (ReadAbiFunction) exampleReadCallFunctionDtoAbiFunction.getActualInstance(); - - // create a new SolanaInstructionWithValue - SolanaInstructionWithValue exampleSolanaInstructionWithValue = new SolanaInstructionWithValue(); - // set ReadCallFunctionDtoAbiFunction to SolanaInstructionWithValue - exampleReadCallFunctionDtoAbiFunction.setActualInstance(exampleSolanaInstructionWithValue); - // to get back the SolanaInstructionWithValue set earlier - SolanaInstructionWithValue testSolanaInstructionWithValue = (SolanaInstructionWithValue) exampleReadCallFunctionDtoAbiFunction.getActualInstance(); - } -} -``` - - diff --git a/docs/RegisterNewAssetRequest.md b/docs/RegisterNewAssetRequest.md index ea8f74b9..743c5492 100644 --- a/docs/RegisterNewAssetRequest.md +++ b/docs/RegisterNewAssetRequest.md @@ -8,7 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**blockchainId** | **String** | Native asset ID of the blockchain | | -|**address** | **String** | 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 | | +|**address** | **String** | 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. | | |**symbol** | **String** | Required for Stellar only, asset code is expected. | [optional] | diff --git a/docs/ReissueMultichainTokenRequest.md b/docs/ReissueMultichainTokenRequest.md deleted file mode 100644 index 1820eda7..00000000 --- a/docs/ReissueMultichainTokenRequest.md +++ /dev/null @@ -1,27 +0,0 @@ - - -# ReissueMultichainTokenRequest - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**vaultAccountId** | **String** | The id of the vault account that initiated the request to issue the token | | -|**chains** | **List<String>** | The base asset identifiers of the blockchains you want to deploy to | | -|**useGasless** | **Boolean** | Whether to use gasless deployment or not | [optional] | -|**fee** | **String** | Max fee amount for the deploy request. Interchangeable with the 'feeLevel' field | [optional] | -|**feeLevel** | [**FeeLevelEnum**](#FeeLevelEnum) | Fee level for the deploy request. Interchangeable with the 'fee' field | [optional] | - - - -## Enum: FeeLevelEnum - -| Name | Value | -|---- | -----| -| LOW | "LOW" | -| MEDIUM | "MEDIUM" | -| HIGH | "HIGH" | - - - diff --git a/docs/RelatedRequest.md b/docs/RelatedRequest.md deleted file mode 100644 index 2cacf8ae..00000000 --- a/docs/RelatedRequest.md +++ /dev/null @@ -1,24 +0,0 @@ - - -# RelatedRequest - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | [**StatusEnum**](#StatusEnum) | The status of the request | | -|**inProgress** | **Boolean** | Indicates whether there is an ongoing action for this position related to this request | | -|**amount** | **String** | Amount of tokens to Unstake | | -|**txId** | **String** | The transaction ID of the ongoing request | [optional] | - - - -## Enum: StatusEnum - -| Name | Value | -|---- | -----| -| DEACTIVATING | "deactivating" | - - - diff --git a/docs/RelatedTransaction.md b/docs/RelatedTransactionDto.md similarity index 91% rename from docs/RelatedTransaction.md rename to docs/RelatedTransactionDto.md index f978a716..cc7af796 100644 --- a/docs/RelatedTransaction.md +++ b/docs/RelatedTransactionDto.md @@ -1,6 +1,6 @@ -# RelatedTransaction +# RelatedTransactionDto ## Properties diff --git a/docs/RemoveLayerZeroAdapterFailedResult.md b/docs/RemoveLayerZeroAdapterFailedResult.md deleted file mode 100644 index ad899251..00000000 --- a/docs/RemoveLayerZeroAdapterFailedResult.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# RemoveLayerZeroAdapterFailedResult - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**adapterTokenLinkId** | **String** | The adapter token link ID that failed to be removed | | - - - diff --git a/docs/RemoveLayerZeroAdaptersRequest.md b/docs/RemoveLayerZeroAdaptersRequest.md deleted file mode 100644 index 3b2ab4e5..00000000 --- a/docs/RemoveLayerZeroAdaptersRequest.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# RemoveLayerZeroAdaptersRequest - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**vaultAccountId** | **String** | The vault account ID to use for signing the role revocation transactions. | | -|**adapterTokenLinkIds** | **List<UUID>** | A list of adapter token link IDs to be deactivated and unlinked. | | - - - diff --git a/docs/RemoveLayerZeroAdaptersResponse.md b/docs/RemoveLayerZeroAdaptersResponse.md deleted file mode 100644 index 5a138e7a..00000000 --- a/docs/RemoveLayerZeroAdaptersResponse.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# RemoveLayerZeroAdaptersResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**deactivated** | **List<String>** | List of successfully deactivated adapter token link IDs | | -|**failed** | [**List<RemoveLayerZeroAdapterFailedResult>**](RemoveLayerZeroAdapterFailedResult.md) | List of adapter token link IDs that failed to be removed | | - - - diff --git a/docs/RemoveLayerZeroPeersRequest.md b/docs/RemoveLayerZeroPeersRequest.md deleted file mode 100644 index 47015996..00000000 --- a/docs/RemoveLayerZeroPeersRequest.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# RemoveLayerZeroPeersRequest - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**vaultAccountId** | **String** | The id of the vault account that will be used to inititate transactions ot set peers | | -|**sourceAdapterTokenLinkId** | **UUID** | `token_link` ID of the source adapter contract | | -|**destinationAdapterTokenLinkIds** | **List<UUID>** | Array of `token_link` IDs for destination adapter contracts | | -|**bidirectional** | **Boolean** | If true, also sets peers from destination(s) back to source | | - - - diff --git a/docs/RemoveLayerZeroPeersResponse.md b/docs/RemoveLayerZeroPeersResponse.md deleted file mode 100644 index 91a9aa37..00000000 --- a/docs/RemoveLayerZeroPeersResponse.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# RemoveLayerZeroPeersResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**txnIds** | **List<UUID>** | Array of fireblocks transaction IDs, each corresponding to an on-chain transaction to set peers | | - - - diff --git a/docs/RescanTransaction.md b/docs/RescanTransaction.md deleted file mode 100644 index 35ede6db..00000000 --- a/docs/RescanTransaction.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# RescanTransaction - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**txHash** | **String** | Blockchain TX hash | [optional] | -|**assetId** | **String** | Asset symbol BTC,ETH) | [optional] | - - - diff --git a/docs/ResendFailedNotificationsJobStatusResponse.md b/docs/ResendFailedNotificationsJobStatusResponse.md deleted file mode 100644 index e70d632b..00000000 --- a/docs/ResendFailedNotificationsJobStatusResponse.md +++ /dev/null @@ -1,27 +0,0 @@ - - -# ResendFailedNotificationsJobStatusResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**jobId** | **String** | Bulk resend job ID | | -|**status** | [**StatusEnum**](#StatusEnum) | Bulk resend job status | | -|**processed** | **BigDecimal** | Number of notifications processed | | -|**total** | **BigDecimal** | Total number of notifications to process | | - - - -## Enum: StatusEnum - -| Name | Value | -|---- | -----| -| QUEUED | "QUEUED" | -| IN_PROGRESS | "IN_PROGRESS" | -| COMPLETED | "COMPLETED" | -| FAILED | "FAILED" | - - - diff --git a/docs/ResendFailedNotificationsRequest.md b/docs/ResendFailedNotificationsRequest.md deleted file mode 100644 index de2fe175..00000000 --- a/docs/ResendFailedNotificationsRequest.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# ResendFailedNotificationsRequest - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**startTime** | **BigDecimal** | (optional) Start time for the resend window in milliseconds since epoch up to 24 hours before the current time - Default if missing means 24 hours before the current time in milliseconds since epoch - Maximum value is current time in milliseconds since epoch - Minimum value is 24 hours before the current time in milliseconds since epoch | [optional] | -|**events** | **List<WebhookEvent>** | (optional) Event types to resend, default is all event types - Default if missing means all events will be included - Empty array means all events will be included | [optional] | - - - diff --git a/docs/ResendFailedNotificationsResponse.md b/docs/ResendFailedNotificationsResponse.md deleted file mode 100644 index 28ee1df2..00000000 --- a/docs/ResendFailedNotificationsResponse.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# ResendFailedNotificationsResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**total** | **BigDecimal** | The total number of failed notifications that are scheduled to be resent. | [optional] | - - - diff --git a/docs/ResendNotificationsByResourceIdRequest.md b/docs/ResendNotificationsByResourceIdRequest.md deleted file mode 100644 index 91d1b4fd..00000000 --- a/docs/ResendNotificationsByResourceIdRequest.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# ResendNotificationsByResourceIdRequest - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**resourceId** | **UUID** | The resource id to resend notifications for | | -|**excludeStatuses** | **List<NotificationStatus>** | (optional) List of notification statuses to exclude from the resend operation - Empty array means all statuses will be included - If you want to exclude some statuses, you can use the following example: [ IN_PROGRESS, FAILED ] - Default if missing, means all statuses other than \"COMPLETED\" will be included | [optional] | - - - diff --git a/docs/RetryRequoteRequestDetails.md b/docs/RetryRequoteRequestDetails.md deleted file mode 100644 index 0cbc2900..00000000 --- a/docs/RetryRequoteRequestDetails.md +++ /dev/null @@ -1,23 +0,0 @@ - - -# RetryRequoteRequestDetails - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**type** | [**TypeEnum**](#TypeEnum) | Indicates that the order should be re-quoted if the original quote is expired, trying to match the original quote. | | -|**count** | **BigDecimal** | If quote is expired, how many times to re-generate new quotes to try having the order executed as in the original quote. | | -|**slippageBps** | **BigDecimal** | Slippage tolerance in basis points (bps) for quote orders - 1 is 0.01% and 10000 is 100% | [optional] | - - - -## Enum: TypeEnum - -| Name | Value | -|---- | -----| -| RETRY | "RETRY" | - - - diff --git a/docs/SOLAccount.md b/docs/SOLAccount.md deleted file mode 100644 index d2e78c1b..00000000 --- a/docs/SOLAccount.md +++ /dev/null @@ -1,17 +0,0 @@ - - -# SOLAccount - -The accounts involved in the instruction - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**name** | **String** | The name of the account | | -|**signer** | **Boolean** | Indicates if the account needs to sign the instruction. If true a signature for this account must be provided | [optional] | -|**writable** | **Boolean** | Indicates if the account's data can be changed by the instruction. | [optional] | -|**address** | **String** | The address of the account | [optional] | - - - diff --git a/docs/SOLAccountWithValue.md b/docs/SOLAccountWithValue.md deleted file mode 100644 index f494ee45..00000000 --- a/docs/SOLAccountWithValue.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# SOLAccountWithValue - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**name** | **String** | The name of the account | | -|**signer** | **Boolean** | Indicates if the account needs to sign the instruction. If true a signature for this account must be provided | [optional] | -|**writable** | **Boolean** | Indicates if the account's data can be changed by the instruction. | [optional] | -|**address** | **String** | The address of the account | | - - - diff --git a/docs/ScreeningMetadataConfig.md b/docs/ScreeningMetadataConfig.md deleted file mode 100644 index 6efea916..00000000 --- a/docs/ScreeningMetadataConfig.md +++ /dev/null @@ -1,81 +0,0 @@ - - -# ScreeningMetadataConfig - -Screening metadata configuration - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**direction** | [**DirectionEnum**](#DirectionEnum) | Direction of transaction | | -|**provider** | [**ProviderEnum**](#ProviderEnum) | Screening provider | [optional] | -|**riskRating** | [**RiskRatingEnum**](#RiskRatingEnum) | Risk rating threshold | [optional] | -|**riskScore** | **String** | Risk score threshold | [optional] | -|**exposureType** | [**ExposureTypeEnum**](#ExposureTypeEnum) | Exposure type | [optional] | -|**category** | **List<String>** | | [optional] | -|**name** | **List<String>** | | [optional] | -|**categoryId** | **List<String>** | | [optional] | -|**status** | [**StatusEnum**](#StatusEnum) | Transaction status | [optional] | -|**sourceAddress** | **String** | Source address | [optional] | -|**destAddress** | **String** | Destination address | [optional] | - - - -## Enum: DirectionEnum - -| Name | Value | -|---- | -----| -| INBOUND | "INBOUND" | -| OUTBOUND | "OUTBOUND" | -| ANY | "ANY" | - - - -## Enum: ProviderEnum - -| Name | Value | -|---- | -----| -| CHAINALYSIS | "CHAINALYSIS" | -| CHAINALYSIS_V2 | "CHAINALYSIS_V2" | -| ELLIPTIC | "ELLIPTIC" | -| ELLIPTIC_HOLISTIC | "ELLIPTIC_HOLISTIC" | -| NOTABENE | "NOTABENE" | - - - -## Enum: RiskRatingEnum - -| Name | Value | -|---- | -----| -| LOW | "LOW" | -| MEDIUM | "MEDIUM" | -| HIGH | "HIGH" | -| SEVERE | "SEVERE" | -| ANY | "ANY" | - - - -## Enum: ExposureTypeEnum - -| Name | Value | -|---- | -----| -| DIRECT | "DIRECT" | -| INDIRECT | "INDIRECT" | -| ANY | "ANY" | - - - -## Enum: StatusEnum - -| Name | Value | -|---- | -----| -| COMPLETED | "COMPLETED" | -| PENDING | "PENDING" | -| REJECTED | "REJECTED" | -| FAILED | "FAILED" | -| CANCELED | "CANCELED" | -| BLOCKING_TIME_EXPIRED | "BLOCKING_TIME_EXPIRED" | - - - diff --git a/docs/ScreeningUpdateConfigurations.md b/docs/ScreeningUpdateConfigurationsRequest.md similarity index 90% rename from docs/ScreeningUpdateConfigurations.md rename to docs/ScreeningUpdateConfigurationsRequest.md index 986d5219..964783b6 100644 --- a/docs/ScreeningUpdateConfigurations.md +++ b/docs/ScreeningUpdateConfigurationsRequest.md @@ -1,6 +1,6 @@ -# ScreeningUpdateConfigurations +# ScreeningUpdateConfigurationsRequest ## Properties diff --git a/docs/SearchNetworkIdsResponse.md b/docs/SearchNetworkIdsResponse.md deleted file mode 100644 index 67d4be9a..00000000 --- a/docs/SearchNetworkIdsResponse.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# SearchNetworkIdsResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**data** | [**List<NetworkIdResponse>**](NetworkIdResponse.md) | | [optional] | -|**next** | **String** | | [optional] | - - - diff --git a/docs/SepaPaymentInfo.md b/docs/SepaPaymentInfo.md deleted file mode 100644 index 4a3d5f30..00000000 --- a/docs/SepaPaymentInfo.md +++ /dev/null @@ -1,43 +0,0 @@ - - -# SepaPaymentInfo - -SEPA payment information for European Single Euro Payments Area transfers - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**rail** | [**RailEnum**](#RailEnum) | The payment rail type for SEPA transfers | | -|**addressingSystem** | [**AddressingSystemEnum**](#AddressingSystemEnum) | The addressing system used for SEPA transfers | | -|**accountHolderGivenName** | **String** | The given name (first name) of the account holder | | -|**accountHolderSurname** | **String** | The surname (last name) of the account holder | | -|**accountHolderCountry** | **String** | The country where the account holder resides (ISO 3166-1 alpha-2 code) | [optional] | -|**accountHolderAddress** | **String** | The address of the account holder | [optional] | -|**iban** | **String** | The International Bank Account Number (IBAN) | | -|**country** | **String** | The country for the transfer (ISO 3166-1 alpha-2 code) | | -|**bic** | **String** | The Bank Identifier Code (BIC/SWIFT code) | [optional] | -|**bankName** | **String** | The name of the bank | [optional] | -|**bankBranch** | **String** | The bank branch information | [optional] | -|**bankAddress** | **String** | The address of the bank | [optional] | -|**purposeCode** | **String** | The purpose code for the transfer | [optional] | -|**taxId** | **String** | The tax identification number | [optional] | - - - -## Enum: RailEnum - -| Name | Value | -|---- | -----| -| SEPA | "SEPA" | - - - -## Enum: AddressingSystemEnum - -| Name | Value | -|---- | -----| -| IBAN | "IBAN" | - - - diff --git a/docs/SetAssetPriceRequest.md b/docs/SetAssetPriceRequest.md deleted file mode 100644 index 9ad053ce..00000000 --- a/docs/SetAssetPriceRequest.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# SetAssetPriceRequest - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**currency** | **String** | Currency (according to ISO 4217 currency codes) | | -|**price** | **BigDecimal** | Price in currency | | - - - diff --git a/docs/SetLayerZeroDvnConfigRequest.md b/docs/SetLayerZeroDvnConfigRequest.md deleted file mode 100644 index e686c75b..00000000 --- a/docs/SetLayerZeroDvnConfigRequest.md +++ /dev/null @@ -1,17 +0,0 @@ - - -# SetLayerZeroDvnConfigRequest - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**vaultAccountId** | **String** | Vault account that pays gas | | -|**sourceAdapterTokenLinkId** | **String** | Source adapter TokenLink ID | | -|**destinationAdapterTokenLinkId** | **String** | Destination adapter TokenLink ID | | -|**sendConfig** | [**DvnConfig**](DvnConfig.md) | | | -|**receiveConfig** | [**DvnConfig**](DvnConfig.md) | | | - - - diff --git a/docs/SetLayerZeroDvnConfigResponse.md b/docs/SetLayerZeroDvnConfigResponse.md deleted file mode 100644 index 152c6b19..00000000 --- a/docs/SetLayerZeroDvnConfigResponse.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# SetLayerZeroDvnConfigResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**txnIds** | **List<String>** | Transaction IDs submitted to the network | | - - - diff --git a/docs/SetLayerZeroPeersRequest.md b/docs/SetLayerZeroPeersRequest.md deleted file mode 100644 index 034eab08..00000000 --- a/docs/SetLayerZeroPeersRequest.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# SetLayerZeroPeersRequest - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**vaultAccountId** | **String** | The id of the vault account that will be used to inititate transactions ot set peers | | -|**sourceAdapterTokenLinkId** | **UUID** | `token_link` ID of the source adapter contract | | -|**destinationAdapterTokenLinkIds** | **List<UUID>** | Array of `token_link` IDs for destination adapter contracts | | -|**bidirectional** | **Boolean** | If true, also sets peers from destination(s) back to source | | - - - diff --git a/docs/SetLayerZeroPeersResponse.md b/docs/SetLayerZeroPeersResponse.md deleted file mode 100644 index 5b3674ee..00000000 --- a/docs/SetLayerZeroPeersResponse.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# SetLayerZeroPeersResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**txnIds** | **List<UUID>** | Array of fireblocks transaction IDs, each corresponding to an on-chain transaction to set peers | | - - - diff --git a/docs/Settlement.md b/docs/Settlement.md deleted file mode 100644 index 4fbbd389..00000000 --- a/docs/Settlement.md +++ /dev/null @@ -1,48 +0,0 @@ - - -# Settlement - -Settlement configuration for the order - -## oneOf schemas -* [DVPSettlement](DVPSettlement.md) -* [PostOrderSettlement](PostOrderSettlement.md) -* [PrefundedSettlement](PrefundedSettlement.md) - -## Example -```java -// Import classes: -import com.fireblocks.sdk.model.Settlement; -import com.fireblocks.sdk.model.DVPSettlement; -import com.fireblocks.sdk.model.PostOrderSettlement; -import com.fireblocks.sdk.model.PrefundedSettlement; - -public class Example { - public static void main(String[] args) { - Settlement exampleSettlement = new Settlement(); - - // create a new DVPSettlement - DVPSettlement exampleDVPSettlement = new DVPSettlement(); - // set Settlement to DVPSettlement - exampleSettlement.setActualInstance(exampleDVPSettlement); - // to get back the DVPSettlement set earlier - DVPSettlement testDVPSettlement = (DVPSettlement) exampleSettlement.getActualInstance(); - - // create a new PostOrderSettlement - PostOrderSettlement examplePostOrderSettlement = new PostOrderSettlement(); - // set Settlement to PostOrderSettlement - exampleSettlement.setActualInstance(examplePostOrderSettlement); - // to get back the PostOrderSettlement set earlier - PostOrderSettlement testPostOrderSettlement = (PostOrderSettlement) exampleSettlement.getActualInstance(); - - // create a new PrefundedSettlement - PrefundedSettlement examplePrefundedSettlement = new PrefundedSettlement(); - // set Settlement to PrefundedSettlement - exampleSettlement.setActualInstance(examplePrefundedSettlement); - // to get back the PrefundedSettlement set earlier - PrefundedSettlement testPrefundedSettlement = (PrefundedSettlement) exampleSettlement.getActualInstance(); - } -} -``` - - diff --git a/docs/SettlementSourceAccount.md b/docs/SettlementSourceAccount.md deleted file mode 100644 index cd7e7f59..00000000 --- a/docs/SettlementSourceAccount.md +++ /dev/null @@ -1,37 +0,0 @@ - - -# SettlementSourceAccount - -## oneOf schemas -* [ExternalAccount](ExternalAccount.md) -* [PlatformAccount](PlatformAccount.md) - -## Example -```java -// Import classes: -import com.fireblocks.sdk.model.SettlementSourceAccount; -import com.fireblocks.sdk.model.ExternalAccount; -import com.fireblocks.sdk.model.PlatformAccount; - -public class Example { - public static void main(String[] args) { - SettlementSourceAccount exampleSettlementSourceAccount = new SettlementSourceAccount(); - - // create a new ExternalAccount - ExternalAccount exampleExternalAccount = new ExternalAccount(); - // set SettlementSourceAccount to ExternalAccount - exampleSettlementSourceAccount.setActualInstance(exampleExternalAccount); - // to get back the ExternalAccount set earlier - ExternalAccount testExternalAccount = (ExternalAccount) exampleSettlementSourceAccount.getActualInstance(); - - // create a new PlatformAccount - PlatformAccount examplePlatformAccount = new PlatformAccount(); - // set SettlementSourceAccount to PlatformAccount - exampleSettlementSourceAccount.setActualInstance(examplePlatformAccount); - // to get back the PlatformAccount set earlier - PlatformAccount testPlatformAccount = (PlatformAccount) exampleSettlementSourceAccount.getActualInstance(); - } -} -``` - - diff --git a/docs/SmartTransferApi.md b/docs/SmartTransferApi.md index eda1f5ff..56452f19 100644 --- a/docs/SmartTransferApi.md +++ b/docs/SmartTransferApi.md @@ -4,16 +4,13 @@ All URIs are relative to https://developers.fireblocks.com/reference/ | Method | HTTP request | Description | |------------- | ------------- | -------------| -| [**approveDvPTicketTerm**](SmartTransferApi.md#approveDvPTicketTerm) | **PUT** /smart_transfers/{ticketId}/terms/{termId}/dvp/approve | Define funding source and give approve to contract to transfer asset | | [**cancelTicket**](SmartTransferApi.md#cancelTicket) | **PUT** /smart-transfers/{ticketId}/cancel | Cancel Ticket | | [**createTicket**](SmartTransferApi.md#createTicket) | **POST** /smart-transfers | Create Ticket | | [**createTicketTerm**](SmartTransferApi.md#createTicketTerm) | **POST** /smart-transfers/{ticketId}/terms | Create leg (term) | | [**findTicketById**](SmartTransferApi.md#findTicketById) | **GET** /smart-transfers/{ticketId} | Search Tickets by ID | | [**findTicketTermById**](SmartTransferApi.md#findTicketTermById) | **GET** /smart-transfers/{ticketId}/terms/{termId} | Search ticket by leg (term) ID | | [**fulfillTicket**](SmartTransferApi.md#fulfillTicket) | **PUT** /smart-transfers/{ticketId}/fulfill | Fund ticket manually | -| [**fundDvpTicket**](SmartTransferApi.md#fundDvpTicket) | **PUT** /smart_transfers/{ticketId}/dvp/fund | Fund dvp ticket | | [**fundTicketTerm**](SmartTransferApi.md#fundTicketTerm) | **PUT** /smart-transfers/{ticketId}/terms/{termId}/fund | Define funding source | -| [**getSmartTransferStatistic**](SmartTransferApi.md#getSmartTransferStatistic) | **GET** /smart_transfers/statistic | Get smart transfers statistic | | [**getSmartTransferUserGroups**](SmartTransferApi.md#getSmartTransferUserGroups) | **GET** /smart-transfers/settings/user-groups | Get user group | | [**manuallyFundTicketTerm**](SmartTransferApi.md#manuallyFundTicketTerm) | **PUT** /smart-transfers/{ticketId}/terms/{termId}/manually-fund | Manually add term transaction | | [**removeTicketTerm**](SmartTransferApi.md#removeTicketTerm) | **DELETE** /smart-transfers/{ticketId}/terms/{termId} | Delete ticket leg (term) | @@ -26,97 +23,6 @@ All URIs are relative to https://developers.fireblocks.com/reference/ -## approveDvPTicketTerm - -> CompletableFuture> approveDvPTicketTerm approveDvPTicketTerm(smartTransferApproveTerm, ticketId, termId, idempotencyKey) - -Define funding source and give approve to contract to transfer asset - -Set funding source for ticket term and creating approving transaction for contract to transfer asset - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.SmartTransferApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - SmartTransferApproveTerm smartTransferApproveTerm = new SmartTransferApproveTerm(); // SmartTransferApproveTerm | - String ticketId = "ticketId_example"; // String | - String termId = "termId_example"; // String | - String idempotencyKey = "idempotencyKey_example"; // String | 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. - try { - CompletableFuture> response = fireblocks.smartTransfer().approveDvPTicketTerm(smartTransferApproveTerm, ticketId, termId, idempotencyKey); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling SmartTransferApi#approveDvPTicketTerm"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling SmartTransferApi#approveDvPTicketTerm"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **smartTransferApproveTerm** | [**SmartTransferApproveTerm**](SmartTransferApproveTerm.md)| | | -| **ticketId** | **String**| | | -| **termId** | **String**| | | -| **idempotencyKey** | **String**| 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. | [optional] | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **201** | Creating approval transaction started | - | -| **403** | Unauthorized | - | -| **404** | Not found | - | -| **422** | Bad Request | - | - - ## cancelTicket > CompletableFuture> cancelTicket cancelTicket(ticketId, idempotencyKey) @@ -635,95 +541,6 @@ No authorization required | **422** | Bad Request | - | -## fundDvpTicket - -> CompletableFuture> fundDvpTicket fundDvpTicket(smartTransferFundDvpTicket, ticketId, idempotencyKey) - -Fund dvp ticket - -Create or fulfill dvp ticket order - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.SmartTransferApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - SmartTransferFundDvpTicket smartTransferFundDvpTicket = new SmartTransferFundDvpTicket(); // SmartTransferFundDvpTicket | - String ticketId = "ticketId_example"; // String | - String idempotencyKey = "idempotencyKey_example"; // String | 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. - try { - CompletableFuture> response = fireblocks.smartTransfer().fundDvpTicket(smartTransferFundDvpTicket, ticketId, idempotencyKey); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling SmartTransferApi#fundDvpTicket"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling SmartTransferApi#fundDvpTicket"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **smartTransferFundDvpTicket** | [**SmartTransferFundDvpTicket**](SmartTransferFundDvpTicket.md)| | | -| **ticketId** | **String**| | | -| **idempotencyKey** | **String**| 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. | [optional] | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successfully started creating or fulfilling order on dvp Smart Transfer ticket | - | -| **403** | Unauthorized | - | -| **404** | Not found | - | -| **422** | Bad Request | - | - - ## fundTicketTerm > CompletableFuture> fundTicketTerm fundTicketTerm(smartTransferFundTerm, ticketId, termId, idempotencyKey) @@ -815,86 +632,6 @@ No authorization required | **422** | Bad Request | - | -## getSmartTransferStatistic - -> CompletableFuture> getSmartTransferStatistic getSmartTransferStatistic() - -Get smart transfers statistic - -Get smart transfer statistic - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.SmartTransferApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - try { - CompletableFuture> response = fireblocks.smartTransfer().getSmartTransferStatistic(); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling SmartTransferApi#getSmartTransferStatistic"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling SmartTransferApi#getSmartTransferStatistic"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Smart Transfer ticket statistic returned successfully | - | -| **403** | Unauthorized | - | -| **0** | Error Response | * X-Request-ID -
| - - ## getSmartTransferUserGroups > CompletableFuture> getSmartTransferUserGroups getSmartTransferUserGroups() @@ -1188,7 +925,7 @@ public class Example { Boolean createdByMe = true; // Boolean | Filter created tickets by created by self or by others. Optional OffsetDateTime expiresAfter = OffsetDateTime.now(); // OffsetDateTime | Lower bound of search range. Optional OffsetDateTime expiresBefore = OffsetDateTime.now(); // OffsetDateTime | Upper bound of search range. Optional - String type = "ASYNC"; // String | Type of transfer. ASYNC executes transfers as they are funded, DVP executes all terms (legs) as one dvp transfer + String type = "ASYNC"; // String | Type of transfer. ASYNC executes transfers as they are funded, ATOMIC executes all terms (legs) as one atomic transfer String externalRefId = "externalRefId_example"; // String | External ref. ID that workspace can use to identify ticket outside of Fireblocks system. String after = "after_example"; // String | ID of the record after which to fetch $limit records BigDecimal limit = new BigDecimal(78); // BigDecimal | Number of records to fetch. By default, it is 100 @@ -1226,7 +963,7 @@ public class Example { | **createdByMe** | **Boolean**| Filter created tickets by created by self or by others. Optional | [optional] | | **expiresAfter** | **OffsetDateTime**| Lower bound of search range. Optional | [optional] | | **expiresBefore** | **OffsetDateTime**| Upper bound of search range. Optional | [optional] | -| **type** | **String**| Type of transfer. ASYNC executes transfers as they are funded, DVP executes all terms (legs) as one dvp transfer | [optional] [enum: ASYNC, DVP] | +| **type** | **String**| Type of transfer. ASYNC executes transfers as they are funded, ATOMIC executes all terms (legs) as one atomic transfer | [optional] [enum: ASYNC] | | **externalRefId** | **String**| External ref. ID that workspace can use to identify ticket outside of Fireblocks system. | [optional] | | **after** | **String**| ID of the record after which to fetch $limit records | [optional] | | **limit** | **BigDecimal**| Number of records to fetch. By default, it is 100 | [optional] | diff --git a/docs/SmartTransferApproveTerm.md b/docs/SmartTransferApproveTerm.md deleted file mode 100644 index 9f7e157f..00000000 --- a/docs/SmartTransferApproveTerm.md +++ /dev/null @@ -1,28 +0,0 @@ - - -# SmartTransferApproveTerm - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**asset** | **String** | Asset name | | -|**amount** | **String** | Amount | | -|**srcId** | **String** | Id of the vault that is used as the source of the asset. | | -|**fee** | **String** | Transaction fee | [optional] | -|**feeLevel** | [**FeeLevelEnum**](#FeeLevelEnum) | Transaction fee level. | [optional] | -|**note** | **String** | Transaction note | [optional] | - - - -## Enum: FeeLevelEnum - -| Name | Value | -|---- | -----| -| LOW | "LOW" | -| MEDIUM | "MEDIUM" | -| HIGH | "HIGH" | - - - diff --git a/docs/SmartTransferCoinStatistic.md b/docs/SmartTransferCoinStatistic.md deleted file mode 100644 index b2b37e2a..00000000 --- a/docs/SmartTransferCoinStatistic.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# SmartTransferCoinStatistic - -Smart transfer coin statistic - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**asset** | **String** | | [optional] | -|**amount** | **String** | | [optional] | - - - diff --git a/docs/SmartTransferCreateTicket.md b/docs/SmartTransferCreateTicket.md index 89913d9e..20abfbe1 100644 --- a/docs/SmartTransferCreateTicket.md +++ b/docs/SmartTransferCreateTicket.md @@ -22,7 +22,6 @@ | Name | Value | |---- | -----| | ASYNC | "ASYNC" | -| DVP | "DVP" | diff --git a/docs/SmartTransferFundDvpTicket.md b/docs/SmartTransferFundDvpTicket.md deleted file mode 100644 index a477d033..00000000 --- a/docs/SmartTransferFundDvpTicket.md +++ /dev/null @@ -1,25 +0,0 @@ - - -# SmartTransferFundDvpTicket - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**fee** | **String** | Transaction fee | [optional] | -|**feeLevel** | [**FeeLevelEnum**](#FeeLevelEnum) | Transaction fee level. | [optional] | -|**note** | **String** | Transaction note | [optional] | - - - -## Enum: FeeLevelEnum - -| Name | Value | -|---- | -----| -| LOW | "LOW" | -| MEDIUM | "MEDIUM" | -| HIGH | "HIGH" | - - - diff --git a/docs/SmartTransferStatistic.md b/docs/SmartTransferStatistic.md deleted file mode 100644 index f7da1806..00000000 --- a/docs/SmartTransferStatistic.md +++ /dev/null @@ -1,17 +0,0 @@ - - -# SmartTransferStatistic - -Smart transfers statistic - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**inflow** | [**SmartTransferStatisticInflow**](SmartTransferStatisticInflow.md) | | | -|**outflow** | [**SmartTransferStatisticOutflow**](SmartTransferStatisticOutflow.md) | | | -|**totalActiveTickets** | **Integer** | Number of total active tickets | | -|**totalInactiveTickets** | **Integer** | Number of total inactive tickets (expired, canceled, completed) | | - - - diff --git a/docs/SmartTransferStatisticInflow.md b/docs/SmartTransferStatisticInflow.md deleted file mode 100644 index 216a63cb..00000000 --- a/docs/SmartTransferStatisticInflow.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# SmartTransferStatisticInflow - -Inflow tickets data - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**coins** | [**List<SmartTransferCoinStatistic>**](SmartTransferCoinStatistic.md) | | [optional] | -|**ticketCount** | **Integer** | | [optional] | - - - diff --git a/docs/SmartTransferStatisticOutflow.md b/docs/SmartTransferStatisticOutflow.md deleted file mode 100644 index 8033370e..00000000 --- a/docs/SmartTransferStatisticOutflow.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# SmartTransferStatisticOutflow - -Outflow tickets data - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**coins** | [**List<SmartTransferCoinStatistic>**](SmartTransferCoinStatistic.md) | | [optional] | -|**ticketCount** | **Integer** | | [optional] | - - - diff --git a/docs/SmartTransferTicket.md b/docs/SmartTransferTicket.md index 00907890..70dffbaf 100644 --- a/docs/SmartTransferTicket.md +++ b/docs/SmartTransferTicket.md @@ -9,11 +9,9 @@ Data object with result data | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**id** | **String** | Unique id of Smart Transfer ticket | | -|**type** | [**TypeEnum**](#TypeEnum) | Kind of Smart Transfer. Can be either `ASYNC` or `DVP` | | +|**type** | [**TypeEnum**](#TypeEnum) | Kind of Smart Transfer. Can be either `ASYNC` or `ATOMIC` | | |**direction** | [**DirectionEnum**](#DirectionEnum) | Direction of Smart Transfer. | [optional] | |**status** | [**StatusEnum**](#StatusEnum) | Current status of Smart Transfer ticket | | -|**dvpExecutionStatus** | [**DvpExecutionStatusEnum**](#DvpExecutionStatusEnum) | Current status of DVP execution | [optional] | -|**orderCreatedByNetworkId** | **String** | ID of network profile that created order | [optional] | |**terms** | [**List<SmartTransferTicketTerm>**](SmartTransferTicketTerm.md) | Ticket terms (legs) | [optional] | |**expiresIn** | **BigDecimal** | Number of hours for expiration.This data is valid only it ticket not in DRAFT state and it will be used to calculate expiresAt value | [optional] | |**expiresAt** | **OffsetDateTime** | Date and time at which the ticket will expire if no funding is performed. | [optional] | @@ -38,7 +36,6 @@ Data object with result data | Name | Value | |---- | -----| | ASYNC | "ASYNC" | -| DVP | "DVP" | @@ -67,17 +64,3 @@ Data object with result data -## Enum: DvpExecutionStatusEnum - -| Name | Value | -|---- | -----| -| STARTED | "STARTED" | -| CREATING_ORDER | "CREATING_ORDER" | -| ORDER_CREATED | "ORDER_CREATED" | -| FULFILLING | "FULFILLING" | -| FULFILLING_ORDER_FAILED | "FULFILLING_ORDER_FAILED" | -| CREATING_ORDER_FAILED | "CREATING_ORDER_FAILED" | -| FULFILLED | "FULFILLED" | - - - diff --git a/docs/SmartTransferTicketTerm.md b/docs/SmartTransferTicketTerm.md index 0b19120a..55eeec38 100644 --- a/docs/SmartTransferTicketTerm.md +++ b/docs/SmartTransferTicketTerm.md @@ -12,7 +12,6 @@ Data object with result data |**ticketId** | **String** | Unique id of Smart Transfer ticket | | |**asset** | **String** | Asset name | | |**amount** | **String** | Amount | | -|**dvpSrcDstVaultId** | **String** | Identifier of the source and destination vault for DVP execution | [optional] | |**amountUsd** | **String** | Amount USD | [optional] | |**fromNetworkId** | **String** | Identifier of the origination Network Profile | | |**fromNetworkIdName** | **String** | Source network name | | diff --git a/docs/SolParameter.md b/docs/SolParameter.md deleted file mode 100644 index 34fdc38d..00000000 --- a/docs/SolParameter.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# SolParameter - -The arguments of the instruction - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**name** | **String** | The name of the parameter | | -|**type** | **IdlType** | | | - - - diff --git a/docs/SolParameterWithValue.md b/docs/SolParameterWithValue.md deleted file mode 100644 index edc06b89..00000000 --- a/docs/SolParameterWithValue.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# SolParameterWithValue - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**value** | **String** | The value of the parameter | | -|**name** | **String** | The name of the parameter | | -|**type** | **IdlType** | | | - - - diff --git a/docs/SolanaBlockchainData.md b/docs/SolanaBlockchainData.md deleted file mode 100644 index d34491ec..00000000 --- a/docs/SolanaBlockchainData.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# SolanaBlockchainData - -Additional fields per blockchain - can be empty or missing if not initialized or no additional info exists. The type depends on the chainDescriptor value. For Solana (SOL), stake account address. For Ethereum (ETH), an empty object is returned as no specific data is available. - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**stakeAccountAddress** | **String** | The stake account address matching the stakeAccountId. | | -|**stakeAccountDerivationChangeValue** | **BigDecimal** | The value of the change level in the BIP44 path which was used to derive the stake account address | | - - - diff --git a/docs/SolanaBlockchainDataDto.md b/docs/SolanaBlockchainDataDto.md new file mode 100644 index 00000000..81b027f7 --- /dev/null +++ b/docs/SolanaBlockchainDataDto.md @@ -0,0 +1,13 @@ + + +# SolanaBlockchainDataDto + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**stakeAccountAddress** | **String** | The stake account address matching the stakeAccountId. | | + + + diff --git a/docs/SolanaConfig.md b/docs/SolanaConfig.md deleted file mode 100644 index 8e554c1e..00000000 --- a/docs/SolanaConfig.md +++ /dev/null @@ -1,25 +0,0 @@ - - -# SolanaConfig - -The Solana configuration of the contract - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**extensions** | **List<String>** | The extensions that the contract implements. | [optional] | -|**type** | [**TypeEnum**](#TypeEnum) | The type of the contract. | [optional] | - - - -## Enum: TypeEnum - -| Name | Value | -|---- | -----| -| SPL | "SPL" | -| TOKEN2022 | "TOKEN2022" | -| PROGRAM | "PROGRAM" | - - - diff --git a/docs/SolanaInstruction.md b/docs/SolanaInstruction.md deleted file mode 100644 index ecb52de7..00000000 --- a/docs/SolanaInstruction.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# SolanaInstruction - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**name** | **String** | The name of the instruction | | -|**discriminator** | **List<BigDecimal>** | The discriminator for the instruction. Acts as a function selector | | -|**accounts** | [**List<SOLAccount>**](SOLAccount.md) | | | -|**args** | [**List<SolParameter>**](SolParameter.md) | | | - - - diff --git a/docs/SolanaInstructionWithValue.md b/docs/SolanaInstructionWithValue.md deleted file mode 100644 index 14d39edc..00000000 --- a/docs/SolanaInstructionWithValue.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# SolanaInstructionWithValue - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**name** | **String** | The name of the instruction | | -|**discriminator** | **List<BigDecimal>** | The discriminator for the instruction. Acts as a function selector | | -|**accounts** | [**List<SOLAccountWithValue>**](SOLAccountWithValue.md) | | | -|**args** | [**List<SolParameterWithValue>**](SolParameterWithValue.md) | The arguments of the instruction | | - - - diff --git a/docs/SolanaSimpleCreateParams.md b/docs/SolanaSimpleCreateParams.md deleted file mode 100644 index b866a66e..00000000 --- a/docs/SolanaSimpleCreateParams.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# SolanaSimpleCreateParams - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**name** | **String** | The name of the token or asset being created. | | -|**symbol** | **String** | The symbol for the token, typically an abbreviated representation. | | -|**decimals** | **Integer** | The number of decimal places the token supports (e.g., 9 for typical Solana tokens). | | - - - diff --git a/docs/SourceTransferPeerPath.md b/docs/SourceTransferPeerPath.md index d6d339a2..707f3f21 100644 --- a/docs/SourceTransferPeerPath.md +++ b/docs/SourceTransferPeerPath.md @@ -13,7 +13,6 @@ The source of the transaction. |**id** | **String** | | [optional] | |**name** | **String** | | [optional] | |**walletId** | **UUID** | | [optional] | -|**isCollateral** | **Boolean** | indicate if the source is collateral account | [optional] | diff --git a/docs/SourceTransferPeerPathResponse.md b/docs/SourceTransferPeerPathResponse.md index f1d4ea45..40492f5a 100644 --- a/docs/SourceTransferPeerPathResponse.md +++ b/docs/SourceTransferPeerPathResponse.md @@ -10,10 +10,9 @@ Source of the transaction. |------------ | ------------- | ------------- | -------------| |**type** | **TransferPeerPathType** | | | |**subType** | **String** | In case the type is set to `EXCHANGE_ACCOUNT` or `FIAT_ACCOUNT`, the specific exchange vendor name or fiat vendor name. In case the type is set to `INTERNAL_WALLET` or `EXTERNAL_WALLET`, the subType is set to `Internal` or `External`. | [optional] | -|**id** | **String** | 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/getpagedvaultaccounts), [listing exchange account](https://developers.fireblocks.com/reference/getexchangeaccounts), [listing fiat accounts](https://developers.fireblocks.com/reference/getfiataccounts), [listing internal wallets](https://developers.fireblocks.com/reference/getinternalwallets), [listing external wallets](https://developers.fireblocks.com/reference/getexternalwallets), [listing network connections](https://developers.fireblocks.com/reference/getnetworkconnections). For the other types, this parameter is not needed. | [optional] | +|**id** | **String** | 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** | **String** | The name of the peer. | [optional] | |**walletId** | **UUID** | | [optional] | -|**tradingAccount** | **String** | If this transaction is an exchange internal transfer, this field will be populated with the type of that trading account. | [optional] | diff --git a/docs/SpeiAdvancedPaymentInfo.md b/docs/SpeiAdvancedPaymentInfo.md deleted file mode 100644 index d9dfea2e..00000000 --- a/docs/SpeiAdvancedPaymentInfo.md +++ /dev/null @@ -1,38 +0,0 @@ - - -# SpeiAdvancedPaymentInfo - -Advanced SPEI payment information for Mexican bank transfers with full details - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**rail** | [**RailEnum**](#RailEnum) | The payment rail type for SPEI transfers | | -|**addressingSystem** | [**AddressingSystemEnum**](#AddressingSystemEnum) | The addressing system used for SPEI transfers | | -|**accountHolderGivenName** | **String** | The given name (first name) of the account holder | | -|**accountHolderSurname** | **String** | The surname (last name) of the account holder | | -|**country** | **String** | The country for the transfer (ISO 3166-1 alpha-2 code) | | -|**bankName** | **String** | The name of the bank | [optional] | -|**beneficiaryRfc** | **String** | The RFC (Registro Federal de Contribuyentes) of the beneficiary | [optional] | -|**senderDocumentId** | **String** | The document ID of the sender | [optional] | -|**clabe** | **String** | The CLABE (Clave Bancaria Estandarizada) number | | - - - -## Enum: RailEnum - -| Name | Value | -|---- | -----| -| SPEI | "SPEI" | - - - -## Enum: AddressingSystemEnum - -| Name | Value | -|---- | -----| -| CLABE | "CLABE" | - - - diff --git a/docs/SpeiBasicPaymentInfo.md b/docs/SpeiBasicPaymentInfo.md deleted file mode 100644 index a9b730ff..00000000 --- a/docs/SpeiBasicPaymentInfo.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# SpeiBasicPaymentInfo - -Basic SPEI payment information for Mexican bank transfers - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**speiClabe** | **String** | The CLABE (Clave Bancaria Estandarizada) number for SPEI transfers | | -|**speiName** | **String** | The name associated with the SPEI account | [optional] | - - - diff --git a/docs/SplitRequest.md b/docs/SplitRequest.md deleted file mode 100644 index 3b480031..00000000 --- a/docs/SplitRequest.md +++ /dev/null @@ -1,17 +0,0 @@ - - -# SplitRequest - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**id** | **String** | id of position to split | | -|**amount** | **String** | Amount of tokens to be transferred to the new stake account. | | -|**fee** | **String** | Represents the fee for a transaction, which can be specified as a percentage value. Only one of fee/feeLevel is required. | [optional] | -|**feeLevel** | **FeeLevel** | | [optional] | -|**txNote** | **String** | The note to associate with the transactions. | [optional] | - - - diff --git a/docs/SplitResponse.md b/docs/SplitResponse.md deleted file mode 100644 index 0fa06af6..00000000 --- a/docs/SplitResponse.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# SplitResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**id** | **String** | The unique identifier of the new staking position | | - - - diff --git a/docs/SrcOrDestAttributesInner.md b/docs/SrcOrDestAttributesInner.md new file mode 100644 index 00000000..1e384dbf --- /dev/null +++ b/docs/SrcOrDestAttributesInner.md @@ -0,0 +1,46 @@ + + +# SrcOrDestAttributesInner + +## anyOf schemas +* [PolicySrcOrDestSubType](PolicySrcOrDestSubType.md) +* [PolicySrcOrDestType](PolicySrcOrDestType.md) +* [String](String.md) + +## Example +```java +// Import classes: +import com.fireblocks.sdk.model.SrcOrDestAttributesInner; +import com.fireblocks.sdk.model.PolicySrcOrDestSubType; +import com.fireblocks.sdk.model.PolicySrcOrDestType; +import com.fireblocks.sdk.model.String; + +public class Example { + public static void main(String[] args) { + SrcOrDestAttributesInner exampleSrcOrDestAttributesInner = new SrcOrDestAttributesInner(); + + // create a new PolicySrcOrDestSubType + PolicySrcOrDestSubType examplePolicySrcOrDestSubType = new PolicySrcOrDestSubType(); + // set SrcOrDestAttributesInner to PolicySrcOrDestSubType + exampleSrcOrDestAttributesInner.setActualInstance(examplePolicySrcOrDestSubType); + // to get back the PolicySrcOrDestSubType set earlier + PolicySrcOrDestSubType testPolicySrcOrDestSubType = (PolicySrcOrDestSubType) exampleSrcOrDestAttributesInner.getActualInstance(); + + // create a new PolicySrcOrDestType + PolicySrcOrDestType examplePolicySrcOrDestType = new PolicySrcOrDestType(); + // set SrcOrDestAttributesInner to PolicySrcOrDestType + exampleSrcOrDestAttributesInner.setActualInstance(examplePolicySrcOrDestType); + // to get back the PolicySrcOrDestType set earlier + PolicySrcOrDestType testPolicySrcOrDestType = (PolicySrcOrDestType) exampleSrcOrDestAttributesInner.getActualInstance(); + + // create a new String + String exampleString = new String(); + // set SrcOrDestAttributesInner to String + exampleSrcOrDestAttributesInner.setActualInstance(exampleString); + // to get back the String set earlier + String testString = (String) exampleSrcOrDestAttributesInner.getActualInstance(); + } +} +``` + + diff --git a/docs/StakeRequest.md b/docs/StakeRequestDto.md similarity index 67% rename from docs/StakeRequest.md rename to docs/StakeRequestDto.md index f1edba63..f8e73d9a 100644 --- a/docs/StakeRequest.md +++ b/docs/StakeRequestDto.md @@ -1,6 +1,6 @@ -# StakeRequest +# StakeRequestDto ## Properties @@ -8,11 +8,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**vaultAccountId** | **String** | The source vault account to stake from | | -|**providerId** | **StakingProvider** | | | +|**providerId** | **String** | The ID of the provider | | |**stakeAmount** | **String** | Amount of tokens to stake | | |**txNote** | **String** | The note to associate with the stake transactions. | [optional] | |**fee** | **String** | Represents the fee for a transaction, which can be specified as a percentage value. Only one of fee/feeLevel is required. | [optional] | -|**feeLevel** | **FeeLevel** | | [optional] | +|**feeLevel** | **String** | Represents the fee level for a transaction, which can be set as slow, medium, or fast. Only one of fee/feeLevel is required. | [optional] | diff --git a/docs/StakeResponse.md b/docs/StakeResponseDto.md similarity index 91% rename from docs/StakeResponse.md rename to docs/StakeResponseDto.md index 22ce8c06..dcae7bb8 100644 --- a/docs/StakeResponse.md +++ b/docs/StakeResponseDto.md @@ -1,6 +1,6 @@ -# StakeResponse +# StakeResponseDto ## Properties diff --git a/docs/StakingApi.md b/docs/StakingApi.md deleted file mode 100644 index d3687867..00000000 --- a/docs/StakingApi.md +++ /dev/null @@ -1,1190 +0,0 @@ -# StakingApi - -All URIs are relative to https://developers.fireblocks.com/reference/ - -| Method | HTTP request | Description | -|------------- | ------------- | -------------| -| [**approveTermsOfServiceByProviderId**](StakingApi.md#approveTermsOfServiceByProviderId) | **POST** /staking/providers/{providerId}/approveTermsOfService | Approve staking terms of service | -| [**claimRewards**](StakingApi.md#claimRewards) | **POST** /staking/chains/{chainDescriptor}/claim_rewards | Execute a Claim Rewards operation | -| [**getAllDelegations**](StakingApi.md#getAllDelegations) | **GET** /staking/positions | List staking positions details | -| [**getChainInfo**](StakingApi.md#getChainInfo) | **GET** /staking/chains/{chainDescriptor}/chainInfo | Get chain-specific staking summary | -| [**getChains**](StakingApi.md#getChains) | **GET** /staking/chains | List staking supported chains | -| [**getDelegationById**](StakingApi.md#getDelegationById) | **GET** /staking/positions/{id} | Get staking position details | -| [**getProviders**](StakingApi.md#getProviders) | **GET** /staking/providers | List staking providers details | -| [**getSummary**](StakingApi.md#getSummary) | **GET** /staking/positions/summary | Get staking summary details | -| [**getSummaryByVault**](StakingApi.md#getSummaryByVault) | **GET** /staking/positions/summary/vaults | Get staking summary details by vault | -| [**mergeStakeAccounts**](StakingApi.md#mergeStakeAccounts) | **POST** /staking/chains/{chainDescriptor}/merge | Merge Solana on stake accounts | -| [**split**](StakingApi.md#split) | **POST** /staking/chains/{chainDescriptor}/split | Execute a Split operation on SOL/SOL_TEST stake account | -| [**stake**](StakingApi.md#stake) | **POST** /staking/chains/{chainDescriptor}/stake | Initiate Stake Operation | -| [**unstake**](StakingApi.md#unstake) | **POST** /staking/chains/{chainDescriptor}/unstake | Execute an Unstake operation | -| [**withdraw**](StakingApi.md#withdraw) | **POST** /staking/chains/{chainDescriptor}/withdraw | Execute a Withdraw operation | - - - -## approveTermsOfServiceByProviderId - -> CompletableFuture> approveTermsOfServiceByProviderId approveTermsOfServiceByProviderId(providerId, idempotencyKey) - -Approve staking terms of service - -Approve the terms of service of the staking provider. This must be called before performing a staking action for the first time with this provider. - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.StakingApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - StakingProvider providerId = StakingProvider.fromValue("kiln"); // StakingProvider | The unique identifier of the staking provider - String idempotencyKey = "idempotencyKey_example"; // String | 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. - try { - CompletableFuture> response = fireblocks.staking().approveTermsOfServiceByProviderId(providerId, idempotencyKey); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling StakingApi#approveTermsOfServiceByProviderId"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling StakingApi#approveTermsOfServiceByProviderId"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **providerId** | [**StakingProvider**](.md)| The unique identifier of the staking provider | [enum: kiln, figment, lido, p2p] | -| **idempotencyKey** | **String**| 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. | [optional] | - -### Return type - - -CompletableFuture> - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **201** | The terms of service have been successfully approved and is associated with 201 status code. | * X-Request-ID -
| -| **0** | Error Response | * X-Request-ID -
| - - -## claimRewards - -> CompletableFuture> claimRewards claimRewards(claimRewardsRequest, chainDescriptor, idempotencyKey) - -Execute a Claim Rewards operation - -Perform a chain-specific Claim Rewards. - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.StakingApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - ClaimRewardsRequest claimRewardsRequest = new ClaimRewardsRequest(); // ClaimRewardsRequest | - String chainDescriptor = "MATIC"; // String | The protocol identifier (e.g. \"MATIC\"/\"SOL\") to use - String idempotencyKey = "idempotencyKey_example"; // String | 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. - try { - CompletableFuture> response = fireblocks.staking().claimRewards(claimRewardsRequest, chainDescriptor, idempotencyKey); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling StakingApi#claimRewards"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling StakingApi#claimRewards"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **claimRewardsRequest** | [**ClaimRewardsRequest**](ClaimRewardsRequest.md)| | | -| **chainDescriptor** | **String**| The protocol identifier (e.g. \"MATIC\"/\"SOL\") to use | [enum: MATIC, SOL, SOL_TEST] | -| **idempotencyKey** | **String**| 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. | [optional] | - -### Return type - - -CompletableFuture> - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **201** | Claim Rewards action has been executed successfully on vault and is associated with 201 status code. | * X-Request-ID -
| -| **0** | Error Response | * X-Request-ID -
| - - -## getAllDelegations - -> CompletableFuture>> getAllDelegations getAllDelegations(chainDescriptor) - -List staking positions details - -Return detailed information on all staking positions, including the staked amount, rewards, status and more. - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.StakingApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - ChainDescriptor chainDescriptor = ChainDescriptor.fromValue("ETH"); // ChainDescriptor | Use \"ETH\" / \"SOL\" / \"MATIC\" / \"STETH_ETH\" in order to obtain information related to the specific blockchain network or retrieve information about all chains that have data available by providing no argument. - try { - CompletableFuture>> response = fireblocks.staking().getAllDelegations(chainDescriptor); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling StakingApi#getAllDelegations"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling StakingApi#getAllDelegations"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **chainDescriptor** | [**ChainDescriptor**](.md)| Use \"ETH\" / \"SOL\" / \"MATIC\" / \"STETH_ETH\" in order to obtain information related to the specific blockchain network or retrieve information about all chains that have data available by providing no argument. | [optional] [enum: ETH, SOL, MATIC, ETH_TEST_HOODI, ETH_TEST6, SOL_TEST] | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | An array of position data was returned successfully | * X-Request-ID -
| -| **0** | Error Response | * X-Request-ID -
| - - -## getChainInfo - -> CompletableFuture> getChainInfo getChainInfo(chainDescriptor) - -Get chain-specific staking summary - -Return chain-specific, staking-related information summary (e.g. epoch details, lockup durations, estimated rewards, etc.) - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.StakingApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - ChainDescriptor chainDescriptor = ChainDescriptor.fromValue("ETH"); // ChainDescriptor | The protocol identifier (e.g. \"ETH\"/\"SOL\"/\"MATIC\"/\"STETH_ETH\") to use - try { - CompletableFuture> response = fireblocks.staking().getChainInfo(chainDescriptor); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling StakingApi#getChainInfo"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling StakingApi#getChainInfo"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **chainDescriptor** | [**ChainDescriptor**](.md)| The protocol identifier (e.g. \"ETH\"/\"SOL\"/\"MATIC\"/\"STETH_ETH\") to use | [enum: ETH, SOL, MATIC, ETH_TEST_HOODI, ETH_TEST6, SOL_TEST] | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Chain specific info summary was returned successfully | * X-Request-ID -
| -| **0** | Error Response | * X-Request-ID -
| - - -## getChains - -> CompletableFuture>> getChains getChains() - -List staking supported chains - -Return an alphabetical list of supported chains. - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.StakingApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - try { - CompletableFuture>> response = fireblocks.staking().getChains(); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling StakingApi#getChains"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling StakingApi#getChains"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | An array of supported chains was returned successfully | * X-Request-ID -
| -| **0** | Error Response | * X-Request-ID -
| - - -## getDelegationById - -> CompletableFuture> getDelegationById getDelegationById(id) - -Get staking position details - -Return detailed information on a staking position, including the staked amount, rewards, status and more. - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.StakingApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - String id = "1fe3b61f-7e1f-4a19-aff0-4f0a524d44d7"; // String | The unique identifier of the staking position - try { - CompletableFuture> response = fireblocks.staking().getDelegationById(id); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling StakingApi#getDelegationById"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling StakingApi#getDelegationById"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **id** | **String**| The unique identifier of the staking position | | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Position data was returned successfully | * X-Request-ID -
| -| **0** | Error Response | * X-Request-ID -
| - - -## getProviders - -> CompletableFuture>> getProviders getProviders() - -List staking providers details - -Return information on all the available staking providers. - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.StakingApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - try { - CompletableFuture>> response = fireblocks.staking().getProviders(); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling StakingApi#getProviders"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling StakingApi#getProviders"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | An array of supported providers was returned successfully | * X-Request-ID -
| -| **0** | Error Response | * X-Request-ID -
| - - -## getSummary - -> CompletableFuture> getSummary getSummary() - -Get staking summary details - -Return a summary of all vaults, categorized by their status (active, inactive), the total amounts staked and total rewards per-chain. - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.StakingApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - try { - CompletableFuture> response = fireblocks.staking().getSummary(); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling StakingApi#getSummary"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling StakingApi#getSummary"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | A summary for all vaults were returned successfully | * X-Request-ID -
| -| **0** | Error Response | * X-Request-ID -
| - - -## getSummaryByVault - -> CompletableFuture>> getSummaryByVault getSummaryByVault() - -Get staking summary details by vault - -Return a summary for each vault, categorized by their status (active, inactive), the total amounts staked and total rewards per-chain. - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.StakingApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - try { - CompletableFuture>> response = fireblocks.staking().getSummaryByVault(); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling StakingApi#getSummaryByVault"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling StakingApi#getSummaryByVault"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | A summary for each vault were returned successfully | * X-Request-ID -
| -| **0** | Error Response | * X-Request-ID -
| - - -## mergeStakeAccounts - -> CompletableFuture> mergeStakeAccounts mergeStakeAccounts(mergeStakeAccountsRequest, chainDescriptor, idempotencyKey) - -Merge Solana on stake accounts - -Perform a Solana Merge of two active stake accounts into one. Endpoint Permission: Owner, Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.StakingApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - MergeStakeAccountsRequest mergeStakeAccountsRequest = new MergeStakeAccountsRequest(); // MergeStakeAccountsRequest | - String chainDescriptor = "SOL"; // String | The protocol identifier (e.g. \"SOL\"/\"SOL_TEST\") to use - String idempotencyKey = "idempotencyKey_example"; // String | 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. - try { - CompletableFuture> response = fireblocks.staking().mergeStakeAccounts(mergeStakeAccountsRequest, chainDescriptor, idempotencyKey); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling StakingApi#mergeStakeAccounts"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling StakingApi#mergeStakeAccounts"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **mergeStakeAccountsRequest** | [**MergeStakeAccountsRequest**](MergeStakeAccountsRequest.md)| | | -| **chainDescriptor** | **String**| The protocol identifier (e.g. \"SOL\"/\"SOL_TEST\") to use | [enum: SOL, SOL_TEST] | -| **idempotencyKey** | **String**| 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. | [optional] | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **201** | Merge action has been executed successfully on vault and is associated with 201 status code. | * X-Request-ID -
| -| **0** | Error Response | * X-Request-ID -
| - - -## split - -> CompletableFuture> split split(splitRequest, chainDescriptor, idempotencyKey) - -Execute a Split operation on SOL/SOL_TEST stake account - -Perform a Solana Split stake account. - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.StakingApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - SplitRequest splitRequest = new SplitRequest(); // SplitRequest | - String chainDescriptor = "SOL"; // String | The protocol identifier (e.g. \"SOL\"/\"SOL_TEST\") to use - String idempotencyKey = "idempotencyKey_example"; // String | 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. - try { - CompletableFuture> response = fireblocks.staking().split(splitRequest, chainDescriptor, idempotencyKey); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling StakingApi#split"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling StakingApi#split"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **splitRequest** | [**SplitRequest**](SplitRequest.md)| | | -| **chainDescriptor** | **String**| The protocol identifier (e.g. \"SOL\"/\"SOL_TEST\") to use | [enum: SOL, SOL_TEST] | -| **idempotencyKey** | **String**| 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. | [optional] | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **201** | Split action has been executed successfully on vault and is associated with 201 status code. | * X-Request-ID -
| -| **0** | Error Response | * X-Request-ID -
| - - -## stake - -> CompletableFuture> stake stake(stakeRequest, chainDescriptor, idempotencyKey) - -Initiate Stake Operation - -Perform a chain-specific Stake. - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.StakingApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - StakeRequest stakeRequest = new StakeRequest(); // StakeRequest | - ChainDescriptor chainDescriptor = ChainDescriptor.fromValue("ETH"); // ChainDescriptor | The protocol identifier (e.g. \"ETH\"/\"SOL\"/\"MATIC\") to use - String idempotencyKey = "idempotencyKey_example"; // String | 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. - try { - CompletableFuture> response = fireblocks.staking().stake(stakeRequest, chainDescriptor, idempotencyKey); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling StakingApi#stake"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling StakingApi#stake"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **stakeRequest** | [**StakeRequest**](StakeRequest.md)| | | -| **chainDescriptor** | [**ChainDescriptor**](.md)| The protocol identifier (e.g. \"ETH\"/\"SOL\"/\"MATIC\") to use | [enum: ETH, SOL, MATIC, ETH_TEST_HOODI, ETH_TEST6, SOL_TEST] | -| **idempotencyKey** | **String**| 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. | [optional] | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **201** | Stake action has been executed successfully on vault and is associated with 201 status code. | * X-Request-ID -
| -| **0** | Error Response | * X-Request-ID -
| - - -## unstake - -> CompletableFuture> unstake unstake(unstakeRequest, chainDescriptor, idempotencyKey) - -Execute an Unstake operation - -Execute an Unstake operation - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.StakingApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - UnstakeRequest unstakeRequest = new UnstakeRequest(); // UnstakeRequest | - ChainDescriptor chainDescriptor = ChainDescriptor.fromValue("ETH"); // ChainDescriptor | The protocol identifier (e.g. \"ETH\"/\"SOL\"/\"MATIC\") to use - String idempotencyKey = "idempotencyKey_example"; // String | 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. - try { - CompletableFuture> response = fireblocks.staking().unstake(unstakeRequest, chainDescriptor, idempotencyKey); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling StakingApi#unstake"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling StakingApi#unstake"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **unstakeRequest** | [**UnstakeRequest**](UnstakeRequest.md)| | | -| **chainDescriptor** | [**ChainDescriptor**](.md)| The protocol identifier (e.g. \"ETH\"/\"SOL\"/\"MATIC\") to use | [enum: ETH, SOL, MATIC, ETH_TEST_HOODI, ETH_TEST6, SOL_TEST] | -| **idempotencyKey** | **String**| 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. | [optional] | - -### Return type - - -CompletableFuture> - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **201** | Unstake action has been executed successfully on vault and is associated with 201 status code. | * X-Request-ID -
| -| **0** | Error Response | * X-Request-ID -
| - - -## withdraw - -> CompletableFuture> withdraw withdraw(withdrawRequest, chainDescriptor, idempotencyKey) - -Execute a Withdraw operation - -Perform a chain-specific Withdraw. - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.StakingApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - WithdrawRequest withdrawRequest = new WithdrawRequest(); // WithdrawRequest | - ChainDescriptor chainDescriptor = ChainDescriptor.fromValue("ETH"); // ChainDescriptor | The protocol identifier (e.g. \"ETH\"/\"SOL\"/\"MATIC\") to use - String idempotencyKey = "idempotencyKey_example"; // String | 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. - try { - CompletableFuture> response = fireblocks.staking().withdraw(withdrawRequest, chainDescriptor, idempotencyKey); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling StakingApi#withdraw"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling StakingApi#withdraw"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **withdrawRequest** | [**WithdrawRequest**](WithdrawRequest.md)| | | -| **chainDescriptor** | [**ChainDescriptor**](.md)| The protocol identifier (e.g. \"ETH\"/\"SOL\"/\"MATIC\") to use | [enum: ETH, SOL, MATIC, ETH_TEST_HOODI, ETH_TEST6, SOL_TEST] | -| **idempotencyKey** | **String**| 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. | [optional] | - -### Return type - - -CompletableFuture> - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **201** | Withdraw action has been executed successfully on vault and is associated with 201 status code. | * X-Request-ID -
| -| **0** | Error Response | * X-Request-ID -
| - diff --git a/docs/StakingBetaApi.md b/docs/StakingBetaApi.md new file mode 100644 index 00000000..6ecf3f0e --- /dev/null +++ b/docs/StakingBetaApi.md @@ -0,0 +1,747 @@ +# StakingBetaApi + +All URIs are relative to https://developers.fireblocks.com/reference/ + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**approveTermsOfServiceByProviderId**](StakingBetaApi.md#approveTermsOfServiceByProviderId) | **POST** /staking/providers/{providerId}/approveTermsOfService | | +| [**executeAction**](StakingBetaApi.md#executeAction) | **POST** /staking/chains/{chainDescriptor}/{actionId} | | +| [**getAllDelegations**](StakingBetaApi.md#getAllDelegations) | **GET** /staking/positions | | +| [**getChainInfo**](StakingBetaApi.md#getChainInfo) | **GET** /staking/chains/{chainDescriptor}/chainInfo | | +| [**getChains**](StakingBetaApi.md#getChains) | **GET** /staking/chains | | +| [**getDelegationById**](StakingBetaApi.md#getDelegationById) | **GET** /staking/positions/{id} | | +| [**getProviders**](StakingBetaApi.md#getProviders) | **GET** /staking/providers | | +| [**getSummary**](StakingBetaApi.md#getSummary) | **GET** /staking/positions/summary | | +| [**getSummaryByVault**](StakingBetaApi.md#getSummaryByVault) | **GET** /staking/positions/summary/vaults | | + + + +## approveTermsOfServiceByProviderId + +> CompletableFuture> approveTermsOfServiceByProviderId approveTermsOfServiceByProviderId(providerId, idempotencyKey) + + + +Approve the terms of service of the staking provider. This must be called before performing a staking action for the first time with this provider. + +### Example + +```java +// Import classes: +import com.fireblocks.sdk.ApiClient; +import com.fireblocks.sdk.ApiException; +import com.fireblocks.sdk.ApiResponse; +import com.fireblocks.sdk.BasePath; +import com.fireblocks.sdk.Fireblocks; +import com.fireblocks.sdk.ConfigurationOptions; +import com.fireblocks.sdk.model.*; +import com.fireblocks.sdk.api.StakingBetaApi; +import java.util.concurrent.CompletableFuture; +import java.util.concurrent.ExecutionException; + +public class Example { + public static void main(String[] args) { + ConfigurationOptions configurationOptions = new ConfigurationOptions() + .basePath(BasePath.Sandbox) + .apiKey("my-api-key") + .secretKey("my-secret-key"); + Fireblocks fireblocks = new Fireblocks(configurationOptions); + + String providerId = "kiln"; // String | The unique identifier of the staking provider + String idempotencyKey = "idempotencyKey_example"; // String | 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. + try { + CompletableFuture> response = fireblocks.stakingBeta().approveTermsOfServiceByProviderId(providerId, idempotencyKey); + System.out.println("Status code: " + response.get().getStatusCode()); + System.out.println("Response headers: " + response.get().getHeaders()); + System.out.println("Response body: " + response.get().getData()); + } catch (InterruptedException | ExecutionException e) { + ApiException apiException = (ApiException)e.getCause(); + System.err.println("Exception when calling StakingBetaApi#approveTermsOfServiceByProviderId"); + System.err.println("Status code: " + apiException.getCode()); + System.err.println("Response headers: " + apiException.getResponseHeaders()); + System.err.println("Reason: " + apiException.getResponseBody()); + e.printStackTrace(); + } catch (ApiException e) { + System.err.println("Exception when calling StakingBetaApi#approveTermsOfServiceByProviderId"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Response headers: " + e.getResponseHeaders()); + System.err.println("Reason: " + e.getResponseBody()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **providerId** | **String**| The unique identifier of the staking provider | [enum: kiln, figment] | +| **idempotencyKey** | **String**| 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. | [optional] | + +### Return type + +CompletableFuture> + + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | The terms of service have been successfully approved and is associated with 201 status code. | - | + + +## executeAction + +> CompletableFuture> executeAction executeAction(executeActionRequest, chainDescriptor, actionId, idempotencyKey) + + + +Perform a chain-specific staking action (e.g. stake, unstake, withdraw). + +### Example + +```java +// Import classes: +import com.fireblocks.sdk.ApiClient; +import com.fireblocks.sdk.ApiException; +import com.fireblocks.sdk.ApiResponse; +import com.fireblocks.sdk.BasePath; +import com.fireblocks.sdk.Fireblocks; +import com.fireblocks.sdk.ConfigurationOptions; +import com.fireblocks.sdk.model.*; +import com.fireblocks.sdk.api.StakingBetaApi; +import java.util.concurrent.CompletableFuture; +import java.util.concurrent.ExecutionException; + +public class Example { + public static void main(String[] args) { + ConfigurationOptions configurationOptions = new ConfigurationOptions() + .basePath(BasePath.Sandbox) + .apiKey("my-api-key") + .secretKey("my-secret-key"); + Fireblocks fireblocks = new Fireblocks(configurationOptions); + + ExecuteActionRequest executeActionRequest = new ExecuteActionRequest(); // ExecuteActionRequest | + String chainDescriptor = "ETH"; // String | The protocol identifier (e.g. \"ETH\"/\"SOL\") to use + String actionId = "stake"; // String | The operation that can be executed on a vault/position + String idempotencyKey = "idempotencyKey_example"; // String | 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. + try { + CompletableFuture> response = fireblocks.stakingBeta().executeAction(executeActionRequest, chainDescriptor, actionId, idempotencyKey); + System.out.println("Status code: " + response.get().getStatusCode()); + System.out.println("Response headers: " + response.get().getHeaders()); + System.out.println("Response body: " + response.get().getData()); + } catch (InterruptedException | ExecutionException e) { + ApiException apiException = (ApiException)e.getCause(); + System.err.println("Exception when calling StakingBetaApi#executeAction"); + System.err.println("Status code: " + apiException.getCode()); + System.err.println("Response headers: " + apiException.getResponseHeaders()); + System.err.println("Reason: " + apiException.getResponseBody()); + e.printStackTrace(); + } catch (ApiException e) { + System.err.println("Exception when calling StakingBetaApi#executeAction"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Response headers: " + e.getResponseHeaders()); + System.err.println("Reason: " + e.getResponseBody()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **executeActionRequest** | [**ExecuteActionRequest**](ExecuteActionRequest.md)| | | +| **chainDescriptor** | **String**| The protocol identifier (e.g. \"ETH\"/\"SOL\") to use | [enum: ETH, SOL, ETH_TEST3, SOL_TEST] | +| **actionId** | **String**| The operation that can be executed on a vault/position | [enum: stake, unstake, withdraw] | +| **idempotencyKey** | **String**| 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. | [optional] | + +### Return type + +CompletableFuture> + + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | A chain-specific action has been executed successfully on vault/position and is associated with 201 status code. | - | + + +## getAllDelegations + +> CompletableFuture>> getAllDelegations getAllDelegations(chainDescriptor) + + + +Return detailed information on all staking positions, including the staked amount, rewards, status and more. + +### Example + +```java +// Import classes: +import com.fireblocks.sdk.ApiClient; +import com.fireblocks.sdk.ApiException; +import com.fireblocks.sdk.ApiResponse; +import com.fireblocks.sdk.BasePath; +import com.fireblocks.sdk.Fireblocks; +import com.fireblocks.sdk.ConfigurationOptions; +import com.fireblocks.sdk.model.*; +import com.fireblocks.sdk.api.StakingBetaApi; +import java.util.concurrent.CompletableFuture; +import java.util.concurrent.ExecutionException; + +public class Example { + public static void main(String[] args) { + ConfigurationOptions configurationOptions = new ConfigurationOptions() + .basePath(BasePath.Sandbox) + .apiKey("my-api-key") + .secretKey("my-secret-key"); + Fireblocks fireblocks = new Fireblocks(configurationOptions); + + String chainDescriptor = "chainDescriptor_example"; // String | Use \"ETH\" / \"SOL\" in order to obtain information related to the specific blockchain network or retrieve information about all chains that have data available by providing no argument. + try { + CompletableFuture>> response = fireblocks.stakingBeta().getAllDelegations(chainDescriptor); + System.out.println("Status code: " + response.get().getStatusCode()); + System.out.println("Response headers: " + response.get().getHeaders()); + System.out.println("Response body: " + response.get().getData()); + } catch (InterruptedException | ExecutionException e) { + ApiException apiException = (ApiException)e.getCause(); + System.err.println("Exception when calling StakingBetaApi#getAllDelegations"); + System.err.println("Status code: " + apiException.getCode()); + System.err.println("Response headers: " + apiException.getResponseHeaders()); + System.err.println("Reason: " + apiException.getResponseBody()); + e.printStackTrace(); + } catch (ApiException e) { + System.err.println("Exception when calling StakingBetaApi#getAllDelegations"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Response headers: " + e.getResponseHeaders()); + System.err.println("Reason: " + e.getResponseBody()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **chainDescriptor** | **String**| Use \"ETH\" / \"SOL\" in order to obtain information related to the specific blockchain network or retrieve information about all chains that have data available by providing no argument. | [optional] | + +### Return type + +CompletableFuture> + + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | An array of position data was returned successfully | - | + + +## getChainInfo + +> CompletableFuture> getChainInfo getChainInfo(chainDescriptor) + + + +Return chain-specific, staking-related information summary (e.g. epoch details, lockup durations, estimated rewards, etc.) + +### Example + +```java +// Import classes: +import com.fireblocks.sdk.ApiClient; +import com.fireblocks.sdk.ApiException; +import com.fireblocks.sdk.ApiResponse; +import com.fireblocks.sdk.BasePath; +import com.fireblocks.sdk.Fireblocks; +import com.fireblocks.sdk.ConfigurationOptions; +import com.fireblocks.sdk.model.*; +import com.fireblocks.sdk.api.StakingBetaApi; +import java.util.concurrent.CompletableFuture; +import java.util.concurrent.ExecutionException; + +public class Example { + public static void main(String[] args) { + ConfigurationOptions configurationOptions = new ConfigurationOptions() + .basePath(BasePath.Sandbox) + .apiKey("my-api-key") + .secretKey("my-secret-key"); + Fireblocks fireblocks = new Fireblocks(configurationOptions); + + String chainDescriptor = "ETH"; // String | The protocol identifier (e.g. \"ETH\"/\"SOL\") to use + try { + CompletableFuture> response = fireblocks.stakingBeta().getChainInfo(chainDescriptor); + System.out.println("Status code: " + response.get().getStatusCode()); + System.out.println("Response headers: " + response.get().getHeaders()); + System.out.println("Response body: " + response.get().getData()); + } catch (InterruptedException | ExecutionException e) { + ApiException apiException = (ApiException)e.getCause(); + System.err.println("Exception when calling StakingBetaApi#getChainInfo"); + System.err.println("Status code: " + apiException.getCode()); + System.err.println("Response headers: " + apiException.getResponseHeaders()); + System.err.println("Reason: " + apiException.getResponseBody()); + e.printStackTrace(); + } catch (ApiException e) { + System.err.println("Exception when calling StakingBetaApi#getChainInfo"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Response headers: " + e.getResponseHeaders()); + System.err.println("Reason: " + e.getResponseBody()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **chainDescriptor** | **String**| The protocol identifier (e.g. \"ETH\"/\"SOL\") to use | [enum: ETH, SOL, ETH_TEST3, SOL_TEST] | + +### Return type + +CompletableFuture> + + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Chain specific info summary was returned successfully | - | + + +## getChains + +> CompletableFuture>> getChains getChains() + + + +Return an alphabetical list of supported chains. + +### Example + +```java +// Import classes: +import com.fireblocks.sdk.ApiClient; +import com.fireblocks.sdk.ApiException; +import com.fireblocks.sdk.ApiResponse; +import com.fireblocks.sdk.BasePath; +import com.fireblocks.sdk.Fireblocks; +import com.fireblocks.sdk.ConfigurationOptions; +import com.fireblocks.sdk.model.*; +import com.fireblocks.sdk.api.StakingBetaApi; +import java.util.concurrent.CompletableFuture; +import java.util.concurrent.ExecutionException; + +public class Example { + public static void main(String[] args) { + ConfigurationOptions configurationOptions = new ConfigurationOptions() + .basePath(BasePath.Sandbox) + .apiKey("my-api-key") + .secretKey("my-secret-key"); + Fireblocks fireblocks = new Fireblocks(configurationOptions); + + try { + CompletableFuture>> response = fireblocks.stakingBeta().getChains(); + System.out.println("Status code: " + response.get().getStatusCode()); + System.out.println("Response headers: " + response.get().getHeaders()); + System.out.println("Response body: " + response.get().getData()); + } catch (InterruptedException | ExecutionException e) { + ApiException apiException = (ApiException)e.getCause(); + System.err.println("Exception when calling StakingBetaApi#getChains"); + System.err.println("Status code: " + apiException.getCode()); + System.err.println("Response headers: " + apiException.getResponseHeaders()); + System.err.println("Reason: " + apiException.getResponseBody()); + e.printStackTrace(); + } catch (ApiException e) { + System.err.println("Exception when calling StakingBetaApi#getChains"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Response headers: " + e.getResponseHeaders()); + System.err.println("Reason: " + e.getResponseBody()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +CompletableFuture> + + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | | - | + + +## getDelegationById + +> CompletableFuture> getDelegationById getDelegationById(id) + + + +Return detailed information on a staking position, including the staked amount, rewards, status and more. + +### Example + +```java +// Import classes: +import com.fireblocks.sdk.ApiClient; +import com.fireblocks.sdk.ApiException; +import com.fireblocks.sdk.ApiResponse; +import com.fireblocks.sdk.BasePath; +import com.fireblocks.sdk.Fireblocks; +import com.fireblocks.sdk.ConfigurationOptions; +import com.fireblocks.sdk.model.*; +import com.fireblocks.sdk.api.StakingBetaApi; +import java.util.concurrent.CompletableFuture; +import java.util.concurrent.ExecutionException; + +public class Example { + public static void main(String[] args) { + ConfigurationOptions configurationOptions = new ConfigurationOptions() + .basePath(BasePath.Sandbox) + .apiKey("my-api-key") + .secretKey("my-secret-key"); + Fireblocks fireblocks = new Fireblocks(configurationOptions); + + String id = "id_example"; // String | The unique identifier of the staking position + try { + CompletableFuture> response = fireblocks.stakingBeta().getDelegationById(id); + System.out.println("Status code: " + response.get().getStatusCode()); + System.out.println("Response headers: " + response.get().getHeaders()); + System.out.println("Response body: " + response.get().getData()); + } catch (InterruptedException | ExecutionException e) { + ApiException apiException = (ApiException)e.getCause(); + System.err.println("Exception when calling StakingBetaApi#getDelegationById"); + System.err.println("Status code: " + apiException.getCode()); + System.err.println("Response headers: " + apiException.getResponseHeaders()); + System.err.println("Reason: " + apiException.getResponseBody()); + e.printStackTrace(); + } catch (ApiException e) { + System.err.println("Exception when calling StakingBetaApi#getDelegationById"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Response headers: " + e.getResponseHeaders()); + System.err.println("Reason: " + e.getResponseBody()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **id** | **String**| The unique identifier of the staking position | | + +### Return type + +CompletableFuture> + + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Position data was returned successfully | - | + + +## getProviders + +> CompletableFuture>> getProviders getProviders() + + + +Return information on all the available staking providers. + +### Example + +```java +// Import classes: +import com.fireblocks.sdk.ApiClient; +import com.fireblocks.sdk.ApiException; +import com.fireblocks.sdk.ApiResponse; +import com.fireblocks.sdk.BasePath; +import com.fireblocks.sdk.Fireblocks; +import com.fireblocks.sdk.ConfigurationOptions; +import com.fireblocks.sdk.model.*; +import com.fireblocks.sdk.api.StakingBetaApi; +import java.util.concurrent.CompletableFuture; +import java.util.concurrent.ExecutionException; + +public class Example { + public static void main(String[] args) { + ConfigurationOptions configurationOptions = new ConfigurationOptions() + .basePath(BasePath.Sandbox) + .apiKey("my-api-key") + .secretKey("my-secret-key"); + Fireblocks fireblocks = new Fireblocks(configurationOptions); + + try { + CompletableFuture>> response = fireblocks.stakingBeta().getProviders(); + System.out.println("Status code: " + response.get().getStatusCode()); + System.out.println("Response headers: " + response.get().getHeaders()); + System.out.println("Response body: " + response.get().getData()); + } catch (InterruptedException | ExecutionException e) { + ApiException apiException = (ApiException)e.getCause(); + System.err.println("Exception when calling StakingBetaApi#getProviders"); + System.err.println("Status code: " + apiException.getCode()); + System.err.println("Response headers: " + apiException.getResponseHeaders()); + System.err.println("Reason: " + apiException.getResponseBody()); + e.printStackTrace(); + } catch (ApiException e) { + System.err.println("Exception when calling StakingBetaApi#getProviders"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Response headers: " + e.getResponseHeaders()); + System.err.println("Reason: " + e.getResponseBody()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +CompletableFuture> + + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | An array of supported providers was returned successfully | - | + + +## getSummary + +> CompletableFuture> getSummary getSummary() + + + +Return a summary of all vaults, categorized by their status (active, inactive), the total amounts staked and total rewards per-chain. + +### Example + +```java +// Import classes: +import com.fireblocks.sdk.ApiClient; +import com.fireblocks.sdk.ApiException; +import com.fireblocks.sdk.ApiResponse; +import com.fireblocks.sdk.BasePath; +import com.fireblocks.sdk.Fireblocks; +import com.fireblocks.sdk.ConfigurationOptions; +import com.fireblocks.sdk.model.*; +import com.fireblocks.sdk.api.StakingBetaApi; +import java.util.concurrent.CompletableFuture; +import java.util.concurrent.ExecutionException; + +public class Example { + public static void main(String[] args) { + ConfigurationOptions configurationOptions = new ConfigurationOptions() + .basePath(BasePath.Sandbox) + .apiKey("my-api-key") + .secretKey("my-secret-key"); + Fireblocks fireblocks = new Fireblocks(configurationOptions); + + try { + CompletableFuture> response = fireblocks.stakingBeta().getSummary(); + System.out.println("Status code: " + response.get().getStatusCode()); + System.out.println("Response headers: " + response.get().getHeaders()); + System.out.println("Response body: " + response.get().getData()); + } catch (InterruptedException | ExecutionException e) { + ApiException apiException = (ApiException)e.getCause(); + System.err.println("Exception when calling StakingBetaApi#getSummary"); + System.err.println("Status code: " + apiException.getCode()); + System.err.println("Response headers: " + apiException.getResponseHeaders()); + System.err.println("Reason: " + apiException.getResponseBody()); + e.printStackTrace(); + } catch (ApiException e) { + System.err.println("Exception when calling StakingBetaApi#getSummary"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Response headers: " + e.getResponseHeaders()); + System.err.println("Reason: " + e.getResponseBody()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +CompletableFuture> + + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | A summary for all vaults were returned successfully | - | + + +## getSummaryByVault + +> CompletableFuture>> getSummaryByVault getSummaryByVault() + + + +Return a summary for each vault, categorized by their status (active, inactive), the total amounts staked and total rewards per-chain. + +### Example + +```java +// Import classes: +import com.fireblocks.sdk.ApiClient; +import com.fireblocks.sdk.ApiException; +import com.fireblocks.sdk.ApiResponse; +import com.fireblocks.sdk.BasePath; +import com.fireblocks.sdk.Fireblocks; +import com.fireblocks.sdk.ConfigurationOptions; +import com.fireblocks.sdk.model.*; +import com.fireblocks.sdk.api.StakingBetaApi; +import java.util.concurrent.CompletableFuture; +import java.util.concurrent.ExecutionException; + +public class Example { + public static void main(String[] args) { + ConfigurationOptions configurationOptions = new ConfigurationOptions() + .basePath(BasePath.Sandbox) + .apiKey("my-api-key") + .secretKey("my-secret-key"); + Fireblocks fireblocks = new Fireblocks(configurationOptions); + + try { + CompletableFuture>> response = fireblocks.stakingBeta().getSummaryByVault(); + System.out.println("Status code: " + response.get().getStatusCode()); + System.out.println("Response headers: " + response.get().getHeaders()); + System.out.println("Response body: " + response.get().getData()); + } catch (InterruptedException | ExecutionException e) { + ApiException apiException = (ApiException)e.getCause(); + System.err.println("Exception when calling StakingBetaApi#getSummaryByVault"); + System.err.println("Status code: " + apiException.getCode()); + System.err.println("Response headers: " + apiException.getResponseHeaders()); + System.err.println("Reason: " + apiException.getResponseBody()); + e.printStackTrace(); + } catch (ApiException e) { + System.err.println("Exception when calling StakingBetaApi#getSummaryByVault"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Response headers: " + e.getResponseHeaders()); + System.err.println("Reason: " + e.getResponseBody()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +CompletableFuture> + + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | A summary for each vault were returned successfully | - | + diff --git a/docs/StakingProvider.md b/docs/StakingProvider.md deleted file mode 100644 index 6a4b0fb5..00000000 --- a/docs/StakingProvider.md +++ /dev/null @@ -1,17 +0,0 @@ - - -# StakingProvider - -## Enum - - -* `KILN` (value: `"kiln"`) - -* `FIGMENT` (value: `"figment"`) - -* `LIDO` (value: `"lido"`) - -* `P2P` (value: `"p2p"`) - - - diff --git a/docs/Status.md b/docs/Status.md deleted file mode 100644 index 5ae934f7..00000000 --- a/docs/Status.md +++ /dev/null @@ -1,36 +0,0 @@ - - -# Status - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | [**StatusEnum**](#StatusEnum) | The status of the command | | -|**type** | [**TypeEnum**](#TypeEnum) | The type of the command | | - - - -## Enum: StatusEnum - -| Name | Value | -|---- | -----| -| WAITING_FOR_APPROVAL | "WAITING_FOR_APPROVAL" | -| APPROVED | "APPROVED" | -| CANCELLED | "CANCELLED" | -| REJECTED | "REJECTED" | -| COMPLETED | "COMPLETED" | - - - -## Enum: TypeEnum - -| Name | Value | -|---- | -----| -| PAIR_API_KEY | "PAIR_API_KEY" | -| UPDATE_CALLBACK_HANDLER | "UPDATE_CALLBACK_HANDLER" | -| UNPAIR_API_KEY | "UNPAIR_API_KEY" | - - - diff --git a/docs/Tag.md b/docs/Tag.md deleted file mode 100644 index 37da981b..00000000 --- a/docs/Tag.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# Tag - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**id** | **UUID** | The unique identifier of the tag | | -|**label** | **String** | The tag label | | -|**description** | **String** | Description for the tag | [optional] | - - - diff --git a/docs/TagsApi.md b/docs/TagsApi.md deleted file mode 100644 index ed1a0c34..00000000 --- a/docs/TagsApi.md +++ /dev/null @@ -1,434 +0,0 @@ -# TagsApi - -All URIs are relative to https://developers.fireblocks.com/reference/ - -| Method | HTTP request | Description | -|------------- | ------------- | -------------| -| [**createTag**](TagsApi.md#createTag) | **POST** /tags | Create a tag | -| [**deleteTag**](TagsApi.md#deleteTag) | **DELETE** /tags/{tagId} | Delete a tag | -| [**getTag**](TagsApi.md#getTag) | **GET** /tags/{tagId} | Get a tag | -| [**getTags**](TagsApi.md#getTags) | **GET** /tags | Get list of tags | -| [**updateTag**](TagsApi.md#updateTag) | **PATCH** /tags/{tagId} | Update a tag | - - - -## createTag - -> CompletableFuture> createTag createTag(createTagRequest, idempotencyKey) - -Create a tag - -Create a new tag. - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.TagsApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - CreateTagRequest createTagRequest = new CreateTagRequest(); // CreateTagRequest | - String idempotencyKey = "idempotencyKey_example"; // String | 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. - try { - CompletableFuture> response = fireblocks.tags().createTag(createTagRequest, idempotencyKey); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling TagsApi#createTag"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling TagsApi#createTag"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **createTagRequest** | [**CreateTagRequest**](CreateTagRequest.md)| | | -| **idempotencyKey** | **String**| 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. | [optional] | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | A tag object | * X-Request-ID -
| - - -## deleteTag - -> CompletableFuture> deleteTag deleteTag(tagId) - -Delete a tag - -Delete the specified tag. - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.TagsApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - UUID tagId = UUID.randomUUID(); // UUID | The ID of the tag to retrieve - try { - CompletableFuture> response = fireblocks.tags().deleteTag(tagId); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling TagsApi#deleteTag"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling TagsApi#deleteTag"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **tagId** | **UUID**| The ID of the tag to retrieve | | - -### Return type - - -CompletableFuture> - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: Not defined - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **204** | Tag was deleted successfully | * X-Request-ID -
| - - -## getTag - -> CompletableFuture> getTag getTag(tagId) - -Get a tag - -Retrieve an existing tag by ID. - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.TagsApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - UUID tagId = UUID.randomUUID(); // UUID | The ID of the tag to retrieve - try { - CompletableFuture> response = fireblocks.tags().getTag(tagId); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling TagsApi#getTag"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling TagsApi#getTag"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **tagId** | **UUID**| The ID of the tag to retrieve | | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | A tag object | * X-Request-ID -
| - - -## getTags - -> CompletableFuture> getTags getTags(pageCursor, pageSize, label, tagIds) - -Get list of tags - -Retrieve a paged list of all tags according to filters. - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.TagsApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - String pageCursor = "MjAyMy0xMi0xMyAyMDozNjowOC4zMDI=:MTEwMA=="; // String | Page cursor to get the next page. - BigDecimal pageSize = new BigDecimal("100"); // BigDecimal | Maximum number of items in the page - String label = "VIP"; // String | Label prefix to filter by. - List tagIds = Arrays.asList(); // List | List of tag IDs to filter by. - try { - CompletableFuture> response = fireblocks.tags().getTags(pageCursor, pageSize, label, tagIds); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling TagsApi#getTags"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling TagsApi#getTags"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **pageCursor** | **String**| Page cursor to get the next page. | [optional] | -| **pageSize** | **BigDecimal**| Maximum number of items in the page | [optional] [default to 100] | -| **label** | **String**| Label prefix to filter by. | [optional] | -| **tagIds** | [**List<UUID>**](UUID.md)| List of tag IDs to filter by. | [optional] | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | A TagsPagedResponse object | * X-Request-ID -
| - - -## updateTag - -> CompletableFuture> updateTag updateTag(updateTagRequest, tagId, idempotencyKey) - -Update a tag - -Update an existing specified tag. - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.TagsApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - UpdateTagRequest updateTagRequest = new UpdateTagRequest(); // UpdateTagRequest | - UUID tagId = UUID.randomUUID(); // UUID | The ID of the tag to update - String idempotencyKey = "idempotencyKey_example"; // String | 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. - try { - CompletableFuture> response = fireblocks.tags().updateTag(updateTagRequest, tagId, idempotencyKey); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling TagsApi#updateTag"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling TagsApi#updateTag"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **updateTagRequest** | [**UpdateTagRequest**](UpdateTagRequest.md)| | | -| **tagId** | **UUID**| The ID of the tag to update | | -| **idempotencyKey** | **String**| 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. | [optional] | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | A tag object | * X-Request-ID -
| - diff --git a/docs/TagsPagedResponse.md b/docs/TagsPagedResponse.md deleted file mode 100644 index ed83a3d8..00000000 --- a/docs/TagsPagedResponse.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# TagsPagedResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**data** | [**List<Tag>**](Tag.md) | | | -|**next** | **String** | Cursor to the next page | | - - - diff --git a/docs/TimeInForce.md b/docs/TimeInForce.md deleted file mode 100644 index 8a1208a3..00000000 --- a/docs/TimeInForce.md +++ /dev/null @@ -1,11 +0,0 @@ - - -# TimeInForce - -## Enum - - -* `FOK` (value: `"FOK"`) - - - diff --git a/docs/TimePeriodConfig.md b/docs/TimePeriodConfig.md deleted file mode 100644 index 3e584ccc..00000000 --- a/docs/TimePeriodConfig.md +++ /dev/null @@ -1,17 +0,0 @@ - - -# TimePeriodConfig - -Time period configuration - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**seconds** | **String** | Time period in seconds | | -|**initiator** | **TimePeriodMatchType** | | | -|**source** | **TimePeriodMatchType** | | | -|**destination** | **TimePeriodMatchType** | | | - - - diff --git a/docs/TokenInfoNotFoundErrorResponse.md b/docs/TokenInfoNotFoundErrorResponse.md deleted file mode 100644 index 4a573d09..00000000 --- a/docs/TokenInfoNotFoundErrorResponse.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# TokenInfoNotFoundErrorResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**message** | **String** | Not found error code | | -|**code** | **BigDecimal** | Error code | | - - - diff --git a/docs/TokenLinkDto.md b/docs/TokenLinkDto.md index 06f29d51..ed534813 100644 --- a/docs/TokenLinkDto.md +++ b/docs/TokenLinkDto.md @@ -10,8 +10,8 @@ |**id** | **String** | The token link id | | |**status** | [**StatusEnum**](#StatusEnum) | The token status | | |**type** | [**TypeEnum**](#TypeEnum) | The type of token | [optional] | -|**refId** | **String** | The Fireblocks' reference id | [optional] | -|**displayName** | **String** | The token display name. If was not provided, would be taken from the contract template | [optional] | +|**refId** | **String** | The Fireblocks' reference id. Can be a Fireblocks' supported asset, collectionId or contractId | [optional] | +|**displayName** | **String** | The token display name. If was not provided, would be taken from the contract template name | [optional] | |**tokenMetadata** | [**TokenLinkDtoTokenMetadata**](TokenLinkDtoTokenMetadata.md) | | [optional] | diff --git a/docs/TokenLinkNotMultichainCompatibleHttpError.md b/docs/TokenLinkNotMultichainCompatibleHttpError.md deleted file mode 100644 index ca4cbf98..00000000 --- a/docs/TokenLinkNotMultichainCompatibleHttpError.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# TokenLinkNotMultichainCompatibleHttpError - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**message** | **String** | Bad request error message | | -|**code** | **BigDecimal** | Error code | | - - - diff --git a/docs/TokenLinkRequestDto.md b/docs/TokenLinkRequestDto.md index e9f0c565..f72d18cf 100644 --- a/docs/TokenLinkRequestDto.md +++ b/docs/TokenLinkRequestDto.md @@ -8,10 +8,8 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**type** | [**TypeEnum**](#TypeEnum) | The type of token being linked | | -|**refId** | **String** | The Fireblocks' token link reference id. For example, 'BQ5R_BDESC_ABC' if it's a fungible asset | [optional] | +|**refId** | **String** | The Fireblocks' token link reference id. For example, 'BQ5R_BDESC_ABC' if it's a fungible asset | | |**displayName** | **String** | The token display name | [optional] | -|**baseAssetId** | **String** | The blockchain base assetId | [optional] | -|**contractAddress** | **String** | The contract's onchain address | [optional] | diff --git a/docs/TokenOwnershipResponse.md b/docs/TokenOwnershipResponse.md index c5e2f081..c00637cb 100644 --- a/docs/TokenOwnershipResponse.md +++ b/docs/TokenOwnershipResponse.md @@ -42,21 +42,6 @@ | XTZ | "XTZ" | | XTZ_TEST | "XTZ_TEST" | | BASECHAIN_ETH | "BASECHAIN_ETH" | -| BASECHAIN_ETH_TEST3 | "BASECHAIN_ETH_TEST3" | -| BASECHAIN_ETH_TEST5 | "BASECHAIN_ETH_TEST5" | -| ETHERLINK | "ETHERLINK" | -| ETHERLINK_TEST | "ETHERLINK_TEST" | -| MANTLE | "MANTLE" | -| MANTLE_TEST | "MANTLE_TEST" | -| GUN_GUNZILLA | "GUN_GUNZILLA" | -| GUN_GUNZILLA_TEST | "GUN_GUNZILLA_TEST" | -| ETH_SONEIUM | "ETH_SONEIUM" | -| SONEIUM_MINATO_TEST | "SONEIUM_MINATO_TEST" | -| IOTX_IOTEX | "IOTX_IOTEX" | -| KLAY_KAIA | "KLAY_KAIA" | -| KLAY_KAIA_TEST | "KLAY_KAIA_TEST" | -| APECHAIN | "APECHAIN" | -| APECHAIN_TEST | "APECHAIN_TEST" | diff --git a/docs/TokenResponse.md b/docs/TokenResponse.md index e90e4189..1f5ec45b 100644 --- a/docs/TokenResponse.md +++ b/docs/TokenResponse.md @@ -35,21 +35,6 @@ | XTZ | "XTZ" | | XTZ_TEST | "XTZ_TEST" | | BASECHAIN_ETH | "BASECHAIN_ETH" | -| BASECHAIN_ETH_TEST3 | "BASECHAIN_ETH_TEST3" | -| BASECHAIN_ETH_TEST5 | "BASECHAIN_ETH_TEST5" | -| ETHERLINK | "ETHERLINK" | -| ETHERLINK_TEST | "ETHERLINK_TEST" | -| MANTLE | "MANTLE" | -| MANTLE_TEST | "MANTLE_TEST" | -| GUN_GUNZILLA | "GUN_GUNZILLA" | -| GUN_GUNZILLA_TEST | "GUN_GUNZILLA_TEST" | -| ETH_SONEIUM | "ETH_SONEIUM" | -| SONEIUM_MINATO_TEST | "SONEIUM_MINATO_TEST" | -| IOTX_IOTEX | "IOTX_IOTEX" | -| KLAY_KAIA | "KLAY_KAIA" | -| KLAY_KAIA_TEST | "KLAY_KAIA_TEST" | -| APECHAIN | "APECHAIN" | -| APECHAIN_TEST | "APECHAIN_TEST" | diff --git a/docs/TokenizationApi.md b/docs/TokenizationApi.md index 41d78183..86ea9fa2 100644 --- a/docs/TokenizationApi.md +++ b/docs/TokenizationApi.md @@ -4,1418 +4,21 @@ All URIs are relative to https://developers.fireblocks.com/reference/ | Method | HTTP request | Description | |------------- | ------------- | -------------| -| [**burnCollectionToken**](TokenizationApi.md#burnCollectionToken) | **POST** /tokenization/collections/{id}/tokens/burn | Burn tokens | -| [**createNewCollection**](TokenizationApi.md#createNewCollection) | **POST** /tokenization/collections | Create a new collection | -| [**deactivateAndUnlinkAdapters**](TokenizationApi.md#deactivateAndUnlinkAdapters) | **DELETE** /tokenization/multichain/bridge/layerzero | Remove LayerZero adapters | -| [**deployAndLinkAdapters**](TokenizationApi.md#deployAndLinkAdapters) | **POST** /tokenization/multichain/bridge/layerzero | Deploy LayerZero adapters | -| [**fetchCollectionTokenDetails**](TokenizationApi.md#fetchCollectionTokenDetails) | **GET** /tokenization/collections/{id}/tokens/{tokenId} | Get collection token details | -| [**getCollectionById**](TokenizationApi.md#getCollectionById) | **GET** /tokenization/collections/{id} | Get a collection by id | -| [**getDeployableAddress**](TokenizationApi.md#getDeployableAddress) | **POST** /tokenization/multichain/deterministic_address | Get deterministic address for contract deployment | -| [**getLayerZeroDvnConfig**](TokenizationApi.md#getLayerZeroDvnConfig) | **GET** /tokenization/multichain/bridge/layerzero/config/{adapterTokenLinkId}/dvns | Get LayerZero DVN configuration | -| [**getLayerZeroPeers**](TokenizationApi.md#getLayerZeroPeers) | **GET** /tokenization/multichain/bridge/layerzero/config/{adapterTokenLinkId}/peers | Get LayerZero peers | -| [**getLinkedCollections**](TokenizationApi.md#getLinkedCollections) | **GET** /tokenization/collections | Get collections | | [**getLinkedToken**](TokenizationApi.md#getLinkedToken) | **GET** /tokenization/tokens/{id} | Return a linked token | | [**getLinkedTokens**](TokenizationApi.md#getLinkedTokens) | **GET** /tokenization/tokens | List all linked tokens | | [**issueNewToken**](TokenizationApi.md#issueNewToken) | **POST** /tokenization/tokens | Issue a new token | -| [**issueTokenMultiChain**](TokenizationApi.md#issueTokenMultiChain) | **POST** /tokenization/multichain/tokens | Issue a token on one or more blockchains | -| [**link**](TokenizationApi.md#link) | **POST** /tokenization/tokens/link | Link a contract | -| [**mintCollectionToken**](TokenizationApi.md#mintCollectionToken) | **POST** /tokenization/collections/{id}/tokens/mint | Mint tokens | -| [**reIssueTokenMultiChain**](TokenizationApi.md#reIssueTokenMultiChain) | **POST** /tokenization/multichain/reissue/token/{tokenLinkId} | Reissue a multichain token | -| [**removeLayerZeroPeers**](TokenizationApi.md#removeLayerZeroPeers) | **DELETE** /tokenization/multichain/bridge/layerzero/config/peers | Remove LayerZero peers | -| [**setLayerZeroDvnConfig**](TokenizationApi.md#setLayerZeroDvnConfig) | **POST** /tokenization/multichain/bridge/layerzero/config/dvns | Set LayerZero DVN configuration | -| [**setLayerZeroPeers**](TokenizationApi.md#setLayerZeroPeers) | **POST** /tokenization/multichain/bridge/layerzero/config/peers | Set LayerZero peers | +| [**link**](TokenizationApi.md#link) | **POST** /tokenization/tokens/link | Link a token | | [**unlink**](TokenizationApi.md#unlink) | **DELETE** /tokenization/tokens/{id} | Unlink a token | -| [**unlinkCollection**](TokenizationApi.md#unlinkCollection) | **DELETE** /tokenization/collections/{id} | Delete a collection link | -| [**validateLayerZeroChannelConfig**](TokenizationApi.md#validateLayerZeroChannelConfig) | **GET** /tokenization/multichain/bridge/layerzero/validate | Validate LayerZero channel configuration | -## burnCollectionToken - -> CompletableFuture> burnCollectionToken burnCollectionToken(collectionBurnRequestDto, id, idempotencyKey) - -Burn tokens - -Burn tokens in a collection - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.TokenizationApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - CollectionBurnRequestDto collectionBurnRequestDto = new CollectionBurnRequestDto(); // CollectionBurnRequestDto | - String id = "fbfbfbfb-fbfb-fbfb-fbfb-fbfbfbfbfbfb"; // String | The collection link id - String idempotencyKey = "idempotencyKey_example"; // String | 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. - try { - CompletableFuture> response = fireblocks.tokenization().burnCollectionToken(collectionBurnRequestDto, id, idempotencyKey); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling TokenizationApi#burnCollectionToken"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling TokenizationApi#burnCollectionToken"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **collectionBurnRequestDto** | [**CollectionBurnRequestDto**](CollectionBurnRequestDto.md)| | | -| **id** | **String**| The collection link id | | -| **idempotencyKey** | **String**| 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. | [optional] | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **202** | Tokens burned successfully | - | -| **0** | Error Response | * X-Request-ID -
| - - -## createNewCollection - -> CompletableFuture> createNewCollection createNewCollection(collectionDeployRequestDto, idempotencyKey) - -Create a new collection - -Create a new collection and link it as a token - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.TokenizationApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - CollectionDeployRequestDto collectionDeployRequestDto = new CollectionDeployRequestDto(); // CollectionDeployRequestDto | - String idempotencyKey = "idempotencyKey_example"; // String | 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. - try { - CompletableFuture> response = fireblocks.tokenization().createNewCollection(collectionDeployRequestDto, idempotencyKey); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling TokenizationApi#createNewCollection"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling TokenizationApi#createNewCollection"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **collectionDeployRequestDto** | [**CollectionDeployRequestDto**](CollectionDeployRequestDto.md)| | | -| **idempotencyKey** | **String**| 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. | [optional] | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **201** | Collection was created successfully | - | -| **0** | Error Response | * X-Request-ID -
| - - -## deactivateAndUnlinkAdapters - -> CompletableFuture> deactivateAndUnlinkAdapters deactivateAndUnlinkAdapters(removeLayerZeroAdaptersRequest, idempotencyKey) - -Remove LayerZero adapters - -Remove LayerZero adapters by deactivating and unlinking them. This endpoint revokes roles and deactivates the specified adapter contracts. - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.TokenizationApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - RemoveLayerZeroAdaptersRequest removeLayerZeroAdaptersRequest = new RemoveLayerZeroAdaptersRequest(); // RemoveLayerZeroAdaptersRequest | - String idempotencyKey = "idempotencyKey_example"; // String | 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. - try { - CompletableFuture> response = fireblocks.tokenization().deactivateAndUnlinkAdapters(removeLayerZeroAdaptersRequest, idempotencyKey); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling TokenizationApi#deactivateAndUnlinkAdapters"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling TokenizationApi#deactivateAndUnlinkAdapters"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **removeLayerZeroAdaptersRequest** | [**RemoveLayerZeroAdaptersRequest**](RemoveLayerZeroAdaptersRequest.md)| | | -| **idempotencyKey** | **String**| 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. | [optional] | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | LayerZero adapters removal process completed | - | -| **400** | Bad request, invalid input data or parameters | - | -| **404** | Token link not found | - | -| **409** | Token link processing error | - | -| **500** | Internal server error | - | - - -## deployAndLinkAdapters - -> CompletableFuture>> deployAndLinkAdapters deployAndLinkAdapters(deployLayerZeroAdaptersRequest, idempotencyKey) - -Deploy LayerZero adapters - -Deploy LayerZero adapters for multichain token bridging functionality. This endpoint creates adapter contracts that enable cross-chain token transfers. - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.TokenizationApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - DeployLayerZeroAdaptersRequest deployLayerZeroAdaptersRequest = new DeployLayerZeroAdaptersRequest(); // DeployLayerZeroAdaptersRequest | - String idempotencyKey = "idempotencyKey_example"; // String | 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. - try { - CompletableFuture>> response = fireblocks.tokenization().deployAndLinkAdapters(deployLayerZeroAdaptersRequest, idempotencyKey); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling TokenizationApi#deployAndLinkAdapters"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling TokenizationApi#deployAndLinkAdapters"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **deployLayerZeroAdaptersRequest** | [**DeployLayerZeroAdaptersRequest**](DeployLayerZeroAdaptersRequest.md)| | | -| **idempotencyKey** | **String**| 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. | [optional] | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | LayerZero adapters deployed successfully | - | -| **400** | Bad request, invalid input data or parameters | - | -| **404** | Token link not found | - | -| **409** | Token link preparation error | - | -| **422** | Token link is not fungible | - | -| **500** | Internal server error | - | - - -## fetchCollectionTokenDetails - -> CompletableFuture> fetchCollectionTokenDetails fetchCollectionTokenDetails(id, tokenId) - -Get collection token details - -Get collection token details by id - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.TokenizationApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - String id = "fbfbfbfb-fbfb-fbfb-fbfb-fbfbfbfbfbfb"; // String | The collection link id - String tokenId = "1"; // String | The tokenId as it appears on the blockchain - try { - CompletableFuture> response = fireblocks.tokenization().fetchCollectionTokenDetails(id, tokenId); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling TokenizationApi#fetchCollectionTokenDetails"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling TokenizationApi#fetchCollectionTokenDetails"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **id** | **String**| The collection link id | | -| **tokenId** | **String**| The tokenId as it appears on the blockchain | | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Collection token details were fetched successfully | - | -| **0** | Error Response | * X-Request-ID -
| - - -## getCollectionById - -> CompletableFuture> getCollectionById getCollectionById(id) - -Get a collection by id - -Get a collection by id - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.TokenizationApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - String id = "fbfbfbfb-fbfb-fbfb-fbfb-fbfbfbfbfbfb"; // String | The token link id - try { - CompletableFuture> response = fireblocks.tokenization().getCollectionById(id); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling TokenizationApi#getCollectionById"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling TokenizationApi#getCollectionById"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **id** | **String**| The token link id | | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Collection fetched successfully | - | -| **0** | Error Response | * X-Request-ID -
| - - -## getDeployableAddress - -> CompletableFuture> getDeployableAddress getDeployableAddress(getDeployableAddressRequest, idempotencyKey) - -Get deterministic address for contract deployment - -Get a deterministic address for contract deployment. The address is derived from the contract's bytecode and provided salt. This endpoint is used to get the address of a contract that will be deployed in the future. - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.TokenizationApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - GetDeployableAddressRequest getDeployableAddressRequest = new GetDeployableAddressRequest(); // GetDeployableAddressRequest | - String idempotencyKey = "idempotencyKey_example"; // String | 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. - try { - CompletableFuture> response = fireblocks.tokenization().getDeployableAddress(getDeployableAddressRequest, idempotencyKey); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling TokenizationApi#getDeployableAddress"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling TokenizationApi#getDeployableAddress"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **getDeployableAddressRequest** | [**GetDeployableAddressRequest**](GetDeployableAddressRequest.md)| | | -| **idempotencyKey** | **String**| 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. | [optional] | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Deterministic address for contract deployment | - | -| **400** | Invalid parameters or template has no bytecode | - | -| **409** | Address is already taken | - | -| **0** | Error Response | * X-Request-ID -
| - - -## getLayerZeroDvnConfig - -> CompletableFuture> getLayerZeroDvnConfig getLayerZeroDvnConfig(adapterTokenLinkId, peerAdapterTokenLinkId) - -Get LayerZero DVN configuration - -Retrieve the DVN (Data Verification Network) configuration for a specific adapter. Returns DVN configurations for channels between the source adapter and its peers. - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.TokenizationApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - UUID adapterTokenLinkId = UUID.fromString("b70701f4-d7b1-4795-a8ee-b09cdb5b850d"); // UUID | The token link id of the adapter token link - UUID peerAdapterTokenLinkId = UUID.fromString("6add4f2a-b206-4114-8f94-2882618ffbb4"); // UUID | Optional peer adapter token link ID to filter results - try { - CompletableFuture> response = fireblocks.tokenization().getLayerZeroDvnConfig(adapterTokenLinkId, peerAdapterTokenLinkId); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling TokenizationApi#getLayerZeroDvnConfig"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling TokenizationApi#getLayerZeroDvnConfig"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **adapterTokenLinkId** | **UUID**| The token link id of the adapter token link | | -| **peerAdapterTokenLinkId** | **UUID**| Optional peer adapter token link ID to filter results | [optional] | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | LayerZero DVN configuration retrieved successfully | - | -| **400** | Bad request, invalid input data or parameters | - | -| **404** | Token link not found | - | -| **500** | Internal server error | - | - - -## getLayerZeroPeers - -> CompletableFuture> getLayerZeroPeers getLayerZeroPeers(adapterTokenLinkId) - -Get LayerZero peers - -Retrieve the LayerZero peers configured for a specific adapter. Returns information about peer relationships for cross-chain communication. - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.TokenizationApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - UUID adapterTokenLinkId = UUID.fromString("b70701f4-d7b1-4795-a8ee-b09cdb5b850d"); // UUID | The token link id of the adapter token link - try { - CompletableFuture> response = fireblocks.tokenization().getLayerZeroPeers(adapterTokenLinkId); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling TokenizationApi#getLayerZeroPeers"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling TokenizationApi#getLayerZeroPeers"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **adapterTokenLinkId** | **UUID**| The token link id of the adapter token link | | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | LayerZero peers retrieved successfully | - | -| **400** | Bad request, invalid input data or parameters | - | -| **404** | Token link not found | - | -| **500** | Internal server error | - | - - -## getLinkedCollections - -> CompletableFuture> getLinkedCollections getLinkedCollections(pageCursor, pageSize, status) - -Get collections - -Get collections (paginated) - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.TokenizationApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - String pageCursor = "pageCursor_example"; // String | Page cursor to get the next page, for example - \"MjAyMy0xMi0xMyAyMDozNjowOC4zMDI=:MTEwMA==\" - BigDecimal pageSize = new BigDecimal("100"); // BigDecimal | Number of items per page (max 100), requesting more then 100 will return 100 items - Object status = COMPLETED; // Object | A comma separated list of statuses to filter. Default is \"COMPLETED\" - try { - CompletableFuture> response = fireblocks.tokenization().getLinkedCollections(pageCursor, pageSize, status); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling TokenizationApi#getLinkedCollections"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling TokenizationApi#getLinkedCollections"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **pageCursor** | **String**| Page cursor to get the next page, for example - \"MjAyMy0xMi0xMyAyMDozNjowOC4zMDI=:MTEwMA==\" | [optional] | -| **pageSize** | **BigDecimal**| Number of items per page (max 100), requesting more then 100 will return 100 items | [optional] [default to 100] | -| **status** | [**Object**](.md)| A comma separated list of statuses to filter. Default is \"COMPLETED\" | [optional] | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Collection fetched successfully | - | -| **0** | Error Response | * X-Request-ID -
| - - -## getLinkedToken - -> CompletableFuture> getLinkedToken getLinkedToken(id) - -Return a linked token - -Return a linked token, with its status and metadata. - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.TokenizationApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - String id = "fbfbfbfb-fbfb-fbfb-fbfb-fbfbfbfbfbfb"; // String | The token link id - try { - CompletableFuture> response = fireblocks.tokenization().getLinkedToken(id); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling TokenizationApi#getLinkedToken"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling TokenizationApi#getLinkedToken"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **id** | **String**| The token link id | | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Token fetched successfully | - | -| **0** | Error Response | * X-Request-ID -
| - - -## getLinkedTokens - -> CompletableFuture> getLinkedTokens getLinkedTokens(pageCursor, pageSize, status) - -List all linked tokens - -Return all linked tokens (paginated) - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.TokenizationApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - String pageCursor = "MjAyMy0xMi0xMyAyMDozNjowOC4zMDI=:MTEwMA=="; // String | Page cursor to get the next page - BigDecimal pageSize = new BigDecimal("10"); // BigDecimal | Number of items per page, requesting more then max will return max items - Object status = COMPLETED; // Object | A comma separated list of statuses to filter. Default is \"COMPLETED\" - try { - CompletableFuture> response = fireblocks.tokenization().getLinkedTokens(pageCursor, pageSize, status); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling TokenizationApi#getLinkedTokens"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling TokenizationApi#getLinkedTokens"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **pageCursor** | **String**| Page cursor to get the next page | [optional] | -| **pageSize** | **BigDecimal**| Number of items per page, requesting more then max will return max items | [optional] | -| **status** | [**Object**](.md)| A comma separated list of statuses to filter. Default is \"COMPLETED\" | [optional] | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | | - | -| **0** | Error Response | * X-Request-ID -
| - - -## issueNewToken - -> CompletableFuture> issueNewToken issueNewToken(createTokenRequestDto, idempotencyKey) - -Issue a new token - -Facilitates the creation of a new token, supporting both EVM-based and Stellar/Ripple platforms. For EVM, it deploys the corresponding contract template to the blockchain and links the token to the workspace. For Stellar/Ripple, it links a newly created token directly to the workspace without deploying a contract. Returns the token link with status \"PENDING\" until the token is deployed or \"SUCCESS\" if no deployment is needed. - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.TokenizationApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - CreateTokenRequestDto createTokenRequestDto = new CreateTokenRequestDto(); // CreateTokenRequestDto | - String idempotencyKey = "idempotencyKey_example"; // String | 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. - try { - CompletableFuture> response = fireblocks.tokenization().issueNewToken(createTokenRequestDto, idempotencyKey); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling TokenizationApi#issueNewToken"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling TokenizationApi#issueNewToken"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **createTokenRequestDto** | [**CreateTokenRequestDto**](CreateTokenRequestDto.md)| | | -| **idempotencyKey** | **String**| 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. | [optional] | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **201** | Token was created successfully | - | -| **409** | Asset already exists | - | - - -## issueTokenMultiChain - -> CompletableFuture>> issueTokenMultiChain issueTokenMultiChain(createMultichainTokenRequest, idempotencyKey) - -Issue a token on one or more blockchains - -Facilitates the creation of a new token on one or more blockchains. - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.TokenizationApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - CreateMultichainTokenRequest createMultichainTokenRequest = new CreateMultichainTokenRequest(); // CreateMultichainTokenRequest | - String idempotencyKey = "idempotencyKey_example"; // String | 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. - try { - CompletableFuture>> response = fireblocks.tokenization().issueTokenMultiChain(createMultichainTokenRequest, idempotencyKey); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling TokenizationApi#issueTokenMultiChain"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling TokenizationApi#issueTokenMultiChain"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **createMultichainTokenRequest** | [**CreateMultichainTokenRequest**](CreateMultichainTokenRequest.md)| | | -| **idempotencyKey** | **String**| 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. | [optional] | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **201** | Tokens were created successfully | - | -| **400** | Invalid input. | - | -| **409** | Address is already taken. | - | - - -## link - -> CompletableFuture> link link(tokenLinkRequestDto, idempotencyKey) - -Link a contract - -Link an a contract - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.TokenizationApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - TokenLinkRequestDto tokenLinkRequestDto = new TokenLinkRequestDto(); // TokenLinkRequestDto | - String idempotencyKey = "idempotencyKey_example"; // String | 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. - try { - CompletableFuture> response = fireblocks.tokenization().link(tokenLinkRequestDto, idempotencyKey); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling TokenizationApi#link"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling TokenizationApi#link"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **tokenLinkRequestDto** | [**TokenLinkRequestDto**](TokenLinkRequestDto.md)| | | -| **idempotencyKey** | **String**| 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. | [optional] | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Token linked successfully | - | -| **201** | | - | -| **404** | Could not find the underlying contract to link to | - | -| **409** | Token link for {refId} already exists | - | -| **0** | Error Response | * X-Request-ID -
| - - -## mintCollectionToken - -> CompletableFuture> mintCollectionToken mintCollectionToken(collectionMintRequestDto, id, idempotencyKey) - -Mint tokens - -Mint tokens and upload metadata - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.TokenizationApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - CollectionMintRequestDto collectionMintRequestDto = new CollectionMintRequestDto(); // CollectionMintRequestDto | - String id = "fbfbfbfb-fbfb-fbfb-fbfb-fbfbfbfbfbfb"; // String | The collection link id - String idempotencyKey = "idempotencyKey_example"; // String | 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. - try { - CompletableFuture> response = fireblocks.tokenization().mintCollectionToken(collectionMintRequestDto, id, idempotencyKey); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling TokenizationApi#mintCollectionToken"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling TokenizationApi#mintCollectionToken"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **collectionMintRequestDto** | [**CollectionMintRequestDto**](CollectionMintRequestDto.md)| | | -| **id** | **String**| The collection link id | | -| **idempotencyKey** | **String**| 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. | [optional] | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **202** | Tokens minted successfully | - | -| **0** | Error Response | * X-Request-ID -
| - - -## reIssueTokenMultiChain +## getLinkedToken -> CompletableFuture>> reIssueTokenMultiChain reIssueTokenMultiChain(reissueMultichainTokenRequest, tokenLinkId, idempotencyKey) +> CompletableFuture> getLinkedToken getLinkedToken(id) -Reissue a multichain token +Return a linked token -Reissue a multichain token. This endpoint allows you to reissue a token on one or more blockchains. The token must be initially issued using the issueTokenMultiChain endpoint. +Return a linked token, with its status and metadata. ### Example @@ -1440,23 +43,21 @@ public class Example { .secretKey("my-secret-key"); Fireblocks fireblocks = new Fireblocks(configurationOptions); - ReissueMultichainTokenRequest reissueMultichainTokenRequest = new ReissueMultichainTokenRequest(); // ReissueMultichainTokenRequest | - String tokenLinkId = "tokenLinkId_example"; // String | The ID of the token link - String idempotencyKey = "idempotencyKey_example"; // String | 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. + String id = "fbfbfbfb-fbfb-fbfb-fbfb-fbfbfbfbfbfb"; // String | The token link id try { - CompletableFuture>> response = fireblocks.tokenization().reIssueTokenMultiChain(reissueMultichainTokenRequest, tokenLinkId, idempotencyKey); + CompletableFuture> response = fireblocks.tokenization().getLinkedToken(id); System.out.println("Status code: " + response.get().getStatusCode()); System.out.println("Response headers: " + response.get().getHeaders()); System.out.println("Response body: " + response.get().getData()); } catch (InterruptedException | ExecutionException e) { ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling TokenizationApi#reIssueTokenMultiChain"); + System.err.println("Exception when calling TokenizationApi#getLinkedToken"); System.err.println("Status code: " + apiException.getCode()); System.err.println("Response headers: " + apiException.getResponseHeaders()); System.err.println("Reason: " + apiException.getResponseBody()); e.printStackTrace(); } catch (ApiException e) { - System.err.println("Exception when calling TokenizationApi#reIssueTokenMultiChain"); + System.err.println("Exception when calling TokenizationApi#getLinkedToken"); System.err.println("Status code: " + e.getCode()); System.err.println("Response headers: " + e.getResponseHeaders()); System.err.println("Reason: " + e.getResponseBody()); @@ -1471,13 +72,11 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **reissueMultichainTokenRequest** | [**ReissueMultichainTokenRequest**](ReissueMultichainTokenRequest.md)| | | -| **tokenLinkId** | **String**| The ID of the token link | | -| **idempotencyKey** | **String**| 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. | [optional] | +| **id** | **String**| The token link id | | ### Return type -CompletableFuture> +CompletableFuture> ### Authorization @@ -1486,26 +85,23 @@ No authorization required ### HTTP request headers -- **Content-Type**: application/json +- **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **201** | Successfully reissued multichain token | - | -| **400** | Invalid input | - | -| **404** | Deployed contract not found | - | -| **409** | Address is already taken | - | +| **200** | Token fetched successfully | - | | **0** | Error Response | * X-Request-ID -
| -## removeLayerZeroPeers +## getLinkedTokens -> CompletableFuture> removeLayerZeroPeers removeLayerZeroPeers(removeLayerZeroPeersRequest, idempotencyKey) +> CompletableFuture> getLinkedTokens getLinkedTokens(pageCursor, pageSize, status) -Remove LayerZero peers +List all linked tokens -Remove LayerZero peers to disconnect adapter contracts. This endpoint removes peer relationships between LayerZero adapters. +Return all linked tokens (paginated) ### Example @@ -1530,22 +126,23 @@ public class Example { .secretKey("my-secret-key"); Fireblocks fireblocks = new Fireblocks(configurationOptions); - RemoveLayerZeroPeersRequest removeLayerZeroPeersRequest = new RemoveLayerZeroPeersRequest(); // RemoveLayerZeroPeersRequest | - String idempotencyKey = "idempotencyKey_example"; // String | 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. + String pageCursor = "MjAyMy0xMi0xMyAyMDozNjowOC4zMDI=:MTEwMA=="; // String | Page cursor to get the next page + BigDecimal pageSize = new BigDecimal("10"); // BigDecimal | Number of items per page, requesting more then max will return max items + Object status = COMPLETED; // Object | A comma separated list of statuses to filter. Default is \"COMPLETED\" try { - CompletableFuture> response = fireblocks.tokenization().removeLayerZeroPeers(removeLayerZeroPeersRequest, idempotencyKey); + CompletableFuture> response = fireblocks.tokenization().getLinkedTokens(pageCursor, pageSize, status); System.out.println("Status code: " + response.get().getStatusCode()); System.out.println("Response headers: " + response.get().getHeaders()); System.out.println("Response body: " + response.get().getData()); } catch (InterruptedException | ExecutionException e) { ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling TokenizationApi#removeLayerZeroPeers"); + System.err.println("Exception when calling TokenizationApi#getLinkedTokens"); System.err.println("Status code: " + apiException.getCode()); System.err.println("Response headers: " + apiException.getResponseHeaders()); System.err.println("Reason: " + apiException.getResponseBody()); e.printStackTrace(); } catch (ApiException e) { - System.err.println("Exception when calling TokenizationApi#removeLayerZeroPeers"); + System.err.println("Exception when calling TokenizationApi#getLinkedTokens"); System.err.println("Status code: " + e.getCode()); System.err.println("Response headers: " + e.getResponseHeaders()); System.err.println("Reason: " + e.getResponseBody()); @@ -1560,12 +157,13 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **removeLayerZeroPeersRequest** | [**RemoveLayerZeroPeersRequest**](RemoveLayerZeroPeersRequest.md)| | | -| **idempotencyKey** | **String**| 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. | [optional] | +| **pageCursor** | **String**| Page cursor to get the next page | [optional] | +| **pageSize** | **BigDecimal**| Number of items per page, requesting more then max will return max items | [optional] | +| **status** | [**Object**](.md)| A comma separated list of statuses to filter. Default is \"COMPLETED\" | [optional] | ### Return type -CompletableFuture> +CompletableFuture> ### Authorization @@ -1574,26 +172,23 @@ No authorization required ### HTTP request headers -- **Content-Type**: application/json +- **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | LayerZero peers removal process completed | - | -| **400** | Bad request, invalid input data or parameters | - | -| **404** | Token link not found | - | -| **409** | Token link processing error | - | -| **500** | Internal server error | - | +| **200** | | - | +| **0** | Error Response | * X-Request-ID -
| -## setLayerZeroDvnConfig +## issueNewToken -> CompletableFuture> setLayerZeroDvnConfig setLayerZeroDvnConfig(setLayerZeroDvnConfigRequest, idempotencyKey) +> CompletableFuture> issueNewToken issueNewToken(createTokenRequestDto, idempotencyKey) -Set LayerZero DVN configuration +Issue a new token -Configure DVN settings for LayerZero adapters. This endpoint sets up the DVN configuration for message verification between source and destination adapters. +Facilitates the creation of a new token, supporting both EVM-based and Stellar/Ripple platforms. For EVM, it deploys the corresponding contract template to the blockchain and links the token to the workspace. For Stellar/Ripple, it links a newly created token directly to the workspace without deploying a contract. Returns the token link with status \"PENDING\" until the token is deployed or \"SUCCESS\" if no deployment is needed. ### Example @@ -1618,22 +213,22 @@ public class Example { .secretKey("my-secret-key"); Fireblocks fireblocks = new Fireblocks(configurationOptions); - SetLayerZeroDvnConfigRequest setLayerZeroDvnConfigRequest = new SetLayerZeroDvnConfigRequest(); // SetLayerZeroDvnConfigRequest | + CreateTokenRequestDto createTokenRequestDto = new CreateTokenRequestDto(); // CreateTokenRequestDto | String idempotencyKey = "idempotencyKey_example"; // String | 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. try { - CompletableFuture> response = fireblocks.tokenization().setLayerZeroDvnConfig(setLayerZeroDvnConfigRequest, idempotencyKey); + CompletableFuture> response = fireblocks.tokenization().issueNewToken(createTokenRequestDto, idempotencyKey); System.out.println("Status code: " + response.get().getStatusCode()); System.out.println("Response headers: " + response.get().getHeaders()); System.out.println("Response body: " + response.get().getData()); } catch (InterruptedException | ExecutionException e) { ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling TokenizationApi#setLayerZeroDvnConfig"); + System.err.println("Exception when calling TokenizationApi#issueNewToken"); System.err.println("Status code: " + apiException.getCode()); System.err.println("Response headers: " + apiException.getResponseHeaders()); System.err.println("Reason: " + apiException.getResponseBody()); e.printStackTrace(); } catch (ApiException e) { - System.err.println("Exception when calling TokenizationApi#setLayerZeroDvnConfig"); + System.err.println("Exception when calling TokenizationApi#issueNewToken"); System.err.println("Status code: " + e.getCode()); System.err.println("Response headers: " + e.getResponseHeaders()); System.err.println("Reason: " + e.getResponseBody()); @@ -1648,12 +243,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **setLayerZeroDvnConfigRequest** | [**SetLayerZeroDvnConfigRequest**](SetLayerZeroDvnConfigRequest.md)| | | +| **createTokenRequestDto** | [**CreateTokenRequestDto**](CreateTokenRequestDto.md)| | | | **idempotencyKey** | **String**| 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. | [optional] | ### Return type -CompletableFuture> +CompletableFuture> ### Authorization @@ -1668,21 +263,17 @@ No authorization required ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | LayerZero DVN configuration set successfully | - | -| **400** | Bad request, invalid input data or parameters | - | -| **404** | Token link not found | - | -| **409** | Token link preparation error | - | -| **422** | Bridging protocol blockchain metadata not found | - | -| **500** | Internal server error | - | +| **201** | Token was created successfully | - | +| **409** | Asset already exists | - | -## setLayerZeroPeers +## link -> CompletableFuture> setLayerZeroPeers setLayerZeroPeers(setLayerZeroPeersRequest, idempotencyKey) +> CompletableFuture> link link(tokenLinkRequestDto, idempotencyKey) -Set LayerZero peers +Link a token -Set LayerZero peers to establish connections between adapter contracts. This endpoint creates peer relationships that enable cross-chain communication. It sets the destination adapter as a peer of the source adapter. If `bidirectional` is true, it also sets the source adapter as a peer of the destination adapter(s). +Link an already existing token (by assetId, collectionId or contractId as refId) to a workspace across EVM, Stellar, or Ripple platforms. The token will be linked to the workspace if it does not already exist. ### Example @@ -1707,22 +298,22 @@ public class Example { .secretKey("my-secret-key"); Fireblocks fireblocks = new Fireblocks(configurationOptions); - SetLayerZeroPeersRequest setLayerZeroPeersRequest = new SetLayerZeroPeersRequest(); // SetLayerZeroPeersRequest | + TokenLinkRequestDto tokenLinkRequestDto = new TokenLinkRequestDto(); // TokenLinkRequestDto | String idempotencyKey = "idempotencyKey_example"; // String | 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. try { - CompletableFuture> response = fireblocks.tokenization().setLayerZeroPeers(setLayerZeroPeersRequest, idempotencyKey); + CompletableFuture> response = fireblocks.tokenization().link(tokenLinkRequestDto, idempotencyKey); System.out.println("Status code: " + response.get().getStatusCode()); System.out.println("Response headers: " + response.get().getHeaders()); System.out.println("Response body: " + response.get().getData()); } catch (InterruptedException | ExecutionException e) { ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling TokenizationApi#setLayerZeroPeers"); + System.err.println("Exception when calling TokenizationApi#link"); System.err.println("Status code: " + apiException.getCode()); System.err.println("Response headers: " + apiException.getResponseHeaders()); System.err.println("Reason: " + apiException.getResponseBody()); e.printStackTrace(); } catch (ApiException e) { - System.err.println("Exception when calling TokenizationApi#setLayerZeroPeers"); + System.err.println("Exception when calling TokenizationApi#link"); System.err.println("Status code: " + e.getCode()); System.err.println("Response headers: " + e.getResponseHeaders()); System.err.println("Reason: " + e.getResponseBody()); @@ -1737,12 +328,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **setLayerZeroPeersRequest** | [**SetLayerZeroPeersRequest**](SetLayerZeroPeersRequest.md)| | | +| **tokenLinkRequestDto** | [**TokenLinkRequestDto**](TokenLinkRequestDto.md)| | | | **idempotencyKey** | **String**| 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. | [optional] | ### Return type -CompletableFuture> +CompletableFuture> ### Authorization @@ -1757,12 +348,11 @@ No authorization required ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | LayerZero peers set successfully | - | -| **400** | Bad request, invalid input data or parameters | - | -| **404** | Token link not found | - | -| **409** | Token link preparation error | - | -| **422** | Token link is not fungible | - | -| **500** | Internal server error | - | +| **200** | Token linked successfully | - | +| **201** | | - | +| **404** | Could not find the underlying token identifier (refId) to link the token to | - | +| **409** | Token link for {refId} already exists | - | +| **0** | Error Response | * X-Request-ID -
| ## unlink @@ -1848,174 +438,3 @@ No authorization required | **404** | Link did not exist | - | | **0** | Error Response | * X-Request-ID -
| - -## unlinkCollection - -> CompletableFuture> unlinkCollection unlinkCollection(id) - -Delete a collection link - -Delete a collection link - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.TokenizationApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - String id = "fbfbfbfb-fbfb-fbfb-fbfb-fbfbfbfbfbfb"; // String | The token link id - try { - CompletableFuture> response = fireblocks.tokenization().unlinkCollection(id); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling TokenizationApi#unlinkCollection"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling TokenizationApi#unlinkCollection"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **id** | **String**| The token link id | | - -### Return type - - -CompletableFuture> - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **204** | Collection unlinked successfully | - | -| **404** | Link for collection does not exist | - | -| **0** | Error Response | * X-Request-ID -
| - - -## validateLayerZeroChannelConfig - -> CompletableFuture> validateLayerZeroChannelConfig validateLayerZeroChannelConfig(adapterTokenLinkId, peerAdapterTokenLinkId) - -Validate LayerZero channel configuration - -Validate the LayerZero channel configuration between adapters. This endpoint checks if the channel configuration is correct and returns any validation errors. - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.TokenizationApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - UUID adapterTokenLinkId = UUID.fromString("b70701f4-d7b1-4795-a8ee-b09cdb5b850d"); // UUID | The token link ID of the adapter - UUID peerAdapterTokenLinkId = UUID.fromString("6add4f2a-b206-4114-8f94-2882618ffbb4"); // UUID | Peer adapter token link ID to validate against - try { - CompletableFuture> response = fireblocks.tokenization().validateLayerZeroChannelConfig(adapterTokenLinkId, peerAdapterTokenLinkId); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling TokenizationApi#validateLayerZeroChannelConfig"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling TokenizationApi#validateLayerZeroChannelConfig"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **adapterTokenLinkId** | **UUID**| The token link ID of the adapter | | -| **peerAdapterTokenLinkId** | **UUID**| Peer adapter token link ID to validate against | | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | LayerZero channel configuration validation completed | - | -| **400** | Bad request, invalid input data or parameters | - | -| **404** | Token link not found | - | -| **422** | Bridging protocol blockchain metadata not found | - | -| **500** | Internal server error | - | - diff --git a/docs/TradingBetaApi.md b/docs/TradingBetaApi.md deleted file mode 100644 index 32e4f6dd..00000000 --- a/docs/TradingBetaApi.md +++ /dev/null @@ -1,459 +0,0 @@ -# TradingBetaApi - -All URIs are relative to https://developers.fireblocks.com/reference/ - -| Method | HTTP request | Description | -|------------- | ------------- | -------------| -| [**createOrder**](TradingBetaApi.md#createOrder) | **POST** /trading/orders | Create an order | -| [**createQuote**](TradingBetaApi.md#createQuote) | **POST** /trading/quotes | Create a quote | -| [**getOrder**](TradingBetaApi.md#getOrder) | **GET** /trading/orders/{orderId} | Get order details | -| [**getOrders**](TradingBetaApi.md#getOrders) | **GET** /trading/orders | Get orders | -| [**getTradingProviders**](TradingBetaApi.md#getTradingProviders) | **GET** /trading/providers | Get providers | - - - -## createOrder - -> CompletableFuture> createOrder createOrder(createOrderRequest, idempotencyKey) - -Create an order - -Create an order to buy or sell an asset. If no source is given, an external source will be use. Note: These endpoints are currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks Trading, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. Endpoint Permission: Owner, Admin, Non-Signing Admin, Signer, Editor. - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.TradingBetaApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - CreateOrderRequest createOrderRequest = new CreateOrderRequest(); // CreateOrderRequest | - String idempotencyKey = "idempotencyKey_example"; // String | 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. - try { - CompletableFuture> response = fireblocks.tradingBeta().createOrder(createOrderRequest, idempotencyKey); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling TradingBetaApi#createOrder"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling TradingBetaApi#createOrder"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **createOrderRequest** | [**CreateOrderRequest**](CreateOrderRequest.md)| | | -| **idempotencyKey** | **String**| 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. | [optional] | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **202** | Order creation response | - | -| **401** | Unauthorized. Missing / invalid JWT token in Authorization header. | - | -| **404** | Not found | - | -| **5XX** | Internal error. | - | - - -## createQuote - -> CompletableFuture> createQuote createQuote(createQuote, idempotencyKey) - -Create a quote - -Generate a time-limited quote for asset conversion, providing exchange rate and amount calculations. Note: These endpoints are currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks Trading, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. Endpoint Permission: Owner, Admin, Non-Signing Admin, Signer, Editor. - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.TradingBetaApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - CreateQuote createQuote = new CreateQuote(); // CreateQuote | - String idempotencyKey = "idempotencyKey_example"; // String | 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. - try { - CompletableFuture> response = fireblocks.tradingBeta().createQuote(createQuote, idempotencyKey); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling TradingBetaApi#createQuote"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling TradingBetaApi#createQuote"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **createQuote** | [**CreateQuote**](CreateQuote.md)| | | -| **idempotencyKey** | **String**| 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. | [optional] | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **201** | Quote created | - | -| **401** | Unauthorized. Missing / invalid JWT token in Authorization header. | - | -| **404** | Not found | - | -| **5XX** | Internal error. | - | - - -## getOrder - -> CompletableFuture> getOrder getOrder(orderId) - -Get order details - -Retrieve detailed information about a specific order by its ID. Note:These endpoints are currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks Trading, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. Endpoint Permission: Owner, Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.TradingBetaApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - String orderId = "orderId_example"; // String | The ID of the order to fetch. - try { - CompletableFuture> response = fireblocks.tradingBeta().getOrder(orderId); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling TradingBetaApi#getOrder"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling TradingBetaApi#getOrder"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **orderId** | **String**| The ID of the order to fetch. | | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Order response | - | -| **401** | Unauthorized. Missing / invalid JWT token in Authorization header. | - | -| **404** | Not found | - | -| **5XX** | Internal error. | - | - - -## getOrders - -> CompletableFuture> getOrders getOrders(pageSize, pageCursor, order, accountId, providerId, statuses, startTime, endTime, assetConversionType) - -Get orders - -Retrieve a paginated list of orders with optional filtering by account, provider, status, and time range. Note:These endpoints are currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks Trading, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. Endpoint Permission: Owner, Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.TradingBetaApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - Integer pageSize = 56; // Integer | pageSize for pagination. - String pageCursor = "pageCursor_example"; // String | - String order = "ASC"; // String | ASC / DESC ordering (default DESC) - List accountId = Arrays.asList(); // List | Filter by accountId. - List providerId = Arrays.asList(); // List | Filter by providerId. - List statuses = Arrays.asList(); // List | Filter by order status. - Integer startTime = 56; // Integer | - Integer endTime = 56; // Integer | - String assetConversionType = "DIGITAL_ONLY"; // String | - try { - CompletableFuture> response = fireblocks.tradingBeta().getOrders(pageSize, pageCursor, order, accountId, providerId, statuses, startTime, endTime, assetConversionType); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling TradingBetaApi#getOrders"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling TradingBetaApi#getOrders"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **pageSize** | **Integer**| pageSize for pagination. | | -| **pageCursor** | **String**| | [optional] | -| **order** | **String**| ASC / DESC ordering (default DESC) | [optional] [default to DESC] [enum: ASC, DESC] | -| **accountId** | [**List<String>**](String.md)| Filter by accountId. | [optional] | -| **providerId** | [**List<String>**](String.md)| Filter by providerId. | [optional] | -| **statuses** | [**List<OrderStatus>**](OrderStatus.md)| Filter by order status. | [optional] | -| **startTime** | **Integer**| | [optional] | -| **endTime** | **Integer**| | [optional] | -| **assetConversionType** | **String**| | [optional] [enum: DIGITAL_ONLY, FIAT] | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Orders response | - | -| **401** | Unauthorized. Missing / invalid JWT token in Authorization header. | - | -| **404** | Not found | - | -| **5XX** | Internal error. | - | - - -## getTradingProviders - -> CompletableFuture> getTradingProviders getTradingProviders(pageSize, pageCursor) - -Get providers - -Retrieve a list of all available external providers supporting trading activities through the platform. Note: These endpoints are currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks Trading, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. Endpoint Permission: Owner, Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.TradingBetaApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - Integer pageSize = 20; // Integer | Page size for pagination. - String pageCursor = "pageCursor_example"; // String | Page cursor for pagination. - try { - CompletableFuture> response = fireblocks.tradingBeta().getTradingProviders(pageSize, pageCursor); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling TradingBetaApi#getTradingProviders"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling TradingBetaApi#getTradingProviders"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **pageSize** | **Integer**| Page size for pagination. | [optional] [default to 20] | -| **pageCursor** | **String**| Page cursor for pagination. | [optional] | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Providers response | - | -| **401** | Unauthorized. Missing / invalid JWT token in Authorization header. | - | -| **5XX** | Internal error. | - | - diff --git a/docs/TradingErrorResponse.md b/docs/TradingErrorResponse.md deleted file mode 100644 index b1a83e94..00000000 --- a/docs/TradingErrorResponse.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# TradingErrorResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**error** | [**TradingErrorResponseError**](TradingErrorResponseError.md) | | | - - - diff --git a/docs/TradingErrorResponseError.md b/docs/TradingErrorResponseError.md deleted file mode 100644 index 6b1c3382..00000000 --- a/docs/TradingErrorResponseError.md +++ /dev/null @@ -1,29 +0,0 @@ - - -# TradingErrorResponseError - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**type** | [**TypeEnum**](#TypeEnum) | | | -|**message** | **String** | | | -|**errorCode** | **ErrorCodes** | | [optional] | - - - -## Enum: TypeEnum - -| Name | Value | -|---- | -----| -| INTERNAL | "INTERNAL" | -| AUTHENTICATION | "AUTHENTICATION" | -| AUTHORIZATION | "AUTHORIZATION" | -| VALIDATION | "VALIDATION" | -| NOT_FOUND | "NOT_FOUND" | -| UNPROCESSABLE_ENTITY | "UNPROCESSABLE_ENTITY" | -| FORBIDDEN | "FORBIDDEN" | - - - diff --git a/docs/TradingProvider.md b/docs/TradingProvider.md deleted file mode 100644 index 8560be90..00000000 --- a/docs/TradingProvider.md +++ /dev/null @@ -1,37 +0,0 @@ - - -# TradingProvider - -## oneOf schemas -* [AccountBasedAccessProvider](AccountBasedAccessProvider.md) -* [DirectAccessProvider](DirectAccessProvider.md) - -## Example -```java -// Import classes: -import com.fireblocks.sdk.model.TradingProvider; -import com.fireblocks.sdk.model.AccountBasedAccessProvider; -import com.fireblocks.sdk.model.DirectAccessProvider; - -public class Example { - public static void main(String[] args) { - TradingProvider exampleTradingProvider = new TradingProvider(); - - // create a new AccountBasedAccessProvider - AccountBasedAccessProvider exampleAccountBasedAccessProvider = new AccountBasedAccessProvider(); - // set TradingProvider to AccountBasedAccessProvider - exampleTradingProvider.setActualInstance(exampleAccountBasedAccessProvider); - // to get back the AccountBasedAccessProvider set earlier - AccountBasedAccessProvider testAccountBasedAccessProvider = (AccountBasedAccessProvider) exampleTradingProvider.getActualInstance(); - - // create a new DirectAccessProvider - DirectAccessProvider exampleDirectAccessProvider = new DirectAccessProvider(); - // set TradingProvider to DirectAccessProvider - exampleTradingProvider.setActualInstance(exampleDirectAccessProvider); - // to get back the DirectAccessProvider set earlier - DirectAccessProvider testDirectAccessProvider = (DirectAccessProvider) exampleTradingProvider.getActualInstance(); - } -} -``` - - diff --git a/docs/TransactionOperation.md b/docs/TransactionOperation.md index 3f6bcfa7..c565eb82 100644 --- a/docs/TransactionOperation.md +++ b/docs/TransactionOperation.md @@ -11,17 +11,11 @@ * `CONTRACT_CALL` (value: `"CONTRACT_CALL"`) -* `PROGRAM_CALL` (value: `"PROGRAM_CALL"`) - * `MINT` (value: `"MINT"`) * `RAW` (value: `"RAW"`) * `TYPED_MESSAGE` (value: `"TYPED_MESSAGE"`) -* `APPROVE` (value: `"APPROVE"`) - -* `ENABLE_ASSET` (value: `"ENABLE_ASSET"`) - diff --git a/docs/TransactionReceiptResponse.md b/docs/TransactionReceiptResponse.md deleted file mode 100644 index 2938ed66..00000000 --- a/docs/TransactionReceiptResponse.md +++ /dev/null @@ -1,26 +0,0 @@ - - -# TransactionReceiptResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**blockHash** | **String** | The block hash | | -|**blockNumber** | **Integer** | The block number | | -|**contractAddress** | **String** | The address of deployed contract | [optional] | -|**cumulativeGasUsed** | **Integer** | The cumulative gas used in the transaction | | -|**effectiveGasPrice** | **Integer** | The effective gas price | | -|**from** | **String** | Sender address | | -|**gasUsed** | **Integer** | Gas used by the transaction | | -|**logs** | [**List<TxLog>**](TxLog.md) | Array of transaction logs | | -|**logsBloom** | **String** | Logs bloom filter | | -|**status** | **Integer** | Transaction status (1 for success, 0 for failure) | | -|**to** | **String** | Recipient address | [optional] | -|**transactionHash** | **String** | The transaction hash | | -|**transactionIndex** | **Integer** | Transaction index in the block | | -|**type** | **String** | Type of transaction | | - - - diff --git a/docs/TransactionRequest.md b/docs/TransactionRequest.md index fcf9a994..3fa05366 100644 --- a/docs/TransactionRequest.md +++ b/docs/TransactionRequest.md @@ -9,7 +9,7 @@ |------------ | ------------- | ------------- | -------------| |**operation** | **TransactionOperation** | | [optional] | |**note** | **String** | Custom note, not sent to the blockchain, to describe the transaction at your Fireblocks workspace. | [optional] | -|**externalTxId** | **String** | **This parameter will become required for all transactions on March 1, 2026.** This parameter allows you to add a unique ID of your own to help prevent duplicate transactions. No specific format is required for this parameter. After you submit a transaction with an external ID, Fireblocks will automatically reject all future transactions with the same ID. Using an external ID primarily helps in situations where, even though a submitted transaction responds with an error due to an internet outage, the transaction was still sent to and processed on the blockchain. Use the [Get a specific transaction by external transaction ID](https://developers.fireblocks.com/reference/gettransactionbyexternalid) endpoint to validate whether these transactions have been processed. | [optional] | +|**externalTxId** | **String** | An optional but highly recommended parameter. Fireblocks will reject future transactions with same ID. You should set this to a unique ID representing the transaction, to avoid submitting the same transaction twice. This helps with cases where submitting the transaction responds with an error code due to Internet interruptions, but the transaction was actually sent and processed. To validate whether a transaction has been processed, [Find a specific transaction by external transaction ID](https://developers.fireblocks.com/reference/get_transactions-external-tx-id-externaltxid). There is no specific format required for this parameter. | [optional] | |**assetId** | **String** | The ID of the asset to transfer, for `TRANSFER`, `MINT` or `BURN` operations. [See the list of supported assets and their IDs on Fireblocks.](https://developers.fireblocks.com/reference/get_supported-assets) | [optional] | |**source** | [**SourceTransferPeerPath**](SourceTransferPeerPath.md) | | [optional] | |**destination** | [**DestinationTransferPeerPath**](DestinationTransferPeerPath.md) | | [optional] | @@ -22,19 +22,16 @@ |**priorityFee** | [**TransactionRequestPriorityFee**](TransactionRequestPriorityFee.md) | | [optional] | |**failOnLowFee** | **Boolean** | When set to `true`, in case the current `MEDIUM` fee level is higher than the one specified in the transaction, the transaction will fail to avoid getting stuck with no confirmations. | [optional] | |**maxFee** | **String** | The maximum fee (gas price or fee per byte) that should be payed for the transaction. In case the current value of the requested `feeLevel` is higher than this requested maximum fee. Represented by a numeric string for accurate precision. | [optional] | -|**maxTotalFee** | **String** | For BTC-based blockchains only. The maximum fee (in the units of the fee-paying asset) that should be paid for the transaction. | [optional] | |**gasLimit** | [**TransactionRequestGasLimit**](TransactionRequestGasLimit.md) | | [optional] | |**gasPrice** | [**TransactionRequestGasPrice**](TransactionRequestGasPrice.md) | | [optional] | |**networkFee** | [**TransactionRequestNetworkFee**](TransactionRequestNetworkFee.md) | | [optional] | |**replaceTxByHash** | **String** | For EVM-based blockchains only. In case a transaction is stuck, specify the hash of the stuck transaction to replace it by this transaction with a higher fee, or to replace it with this transaction with a zero fee and drop it from the blockchain. | [optional] | -|**extraParameters** | **Object** | Additional protocol / operation specific key-value parameters: For UTXO-based blockchain input selection, add the key `inputsSelection` with the value set the [input selection structure.](https://developers.fireblocks.com/reference/transaction-objects#inputsselection) The inputs can be retrieved from the [Retrieve Unspent Inputs endpoint.](https://developers.fireblocks.com/reference/get_vault-accounts-vaultaccountid-assetid-unspent-inputs) For `RAW` operations, add the key `rawMessageData` with the value set to the [raw message data structure.](https://developers.fireblocks.com/reference/raw-signing-objects#rawmessagedata) For `CONTRACT_CALL` operations, add the key `contractCallData` with the value set to the Ethereum smart contract Application Binary Interface (ABI) payload. The Fireblocks [development libraries](https://developers.fireblocks.com/docs/ethereum-development#convenience-libraries) are recommended for building contract call transactions. For **exchange compliance (e.g., Binance) and Travel Rule purposes**, include the key `piiData` containing a **custom JSON structure** with Personally Identifiable Information (PII) relevant to the transaction. This data must be fully **encrypted by the sender** before being submitted to the Fireblocks API. The recommended encryption method is **hybrid encryption** using AES-256-GCM for the payload and RSA-OAEP for key exchange, with the recipient exchange’s public key. [development libraries](https://developers.fireblocks.com/docs/a-developers-guide-to-constructing-encrypted-pii-messages-for-binance-via-fireblocks) | [optional] | +|**extraParameters** | **Object** | Additional protocol / operation specific key-value parameters: For UTXO-based blockchain input selection, add the key `inputsSelection` with the value set the [input selection structure.](https://developers.fireblocks.com/reference/transaction-objects#inputsselection) The inputs can be retrieved from the [Retrieve Unspent Inputs endpoint.](https://developers.fireblocks.com/reference/get_vault-accounts-vaultaccountid-assetid-unspent-inputs) For `RAW` operations, add the key `rawMessageData` with the value set to the [raw message data structure.](https://developers.fireblocks.com/reference/raw-signing-objects#rawmessagedata) For `CONTRACT_CALL` operations, add the key `contractCallData` with the value set to the Ethereum smart contract Application Binary Interface (ABI) payload. The Fireblocks [development libraries](https://developers.fireblocks.com/docs/ethereum-development#convenience-libraries) are recommended for building contract call transactions. | [optional] | |**customerRefId** | **String** | The ID for AML providers to associate the owner of funds with transactions. | [optional] | |**travelRuleMessage** | [**TravelRuleCreateTransactionRequest**](TravelRuleCreateTransactionRequest.md) | | [optional] | -|**travelRuleMessageId** | **String** | The ID of the travel rule message from any travel rule provider. Used for travel rule linking functionality to associate transactions with existing travel rule messages. | [optional] | |**autoStaking** | **Boolean** | This feature is no longer supported. | [optional] | |**networkStaking** | [**TransactionRequestNetworkStaking**](TransactionRequestNetworkStaking.md) | | [optional] | |**cpuStaking** | [**TransactionRequestNetworkStaking**](TransactionRequestNetworkStaking.md) | | [optional] | -|**useGasless** | **Boolean** | - Override the default gasless configuration by sending true\\false | [optional] | diff --git a/docs/TransactionRequestDestination.md b/docs/TransactionRequestDestination.md index ff5488cf..13a0099a 100644 --- a/docs/TransactionRequestDestination.md +++ b/docs/TransactionRequestDestination.md @@ -9,8 +9,6 @@ |------------ | ------------- | ------------- | -------------| |**amount** | **String** | | [optional] | |**destination** | [**DestinationTransferPeerPath**](DestinationTransferPeerPath.md) | | [optional] | -|**travelRuleMessageId** | **String** | The ID of the travel rule message from any travel rule provider. Used for travel rule linking functionality to associate transactions with existing travel rule messages. | [optional] | -|**customerRefId** | **String** | The ID for AML providers to associate the owner of funds with transactions. | [optional] | diff --git a/docs/TransactionResponse.md b/docs/TransactionResponse.md index d3682c69..dedfe9b1 100644 --- a/docs/TransactionResponse.md +++ b/docs/TransactionResponse.md @@ -38,8 +38,8 @@ |**exchangeTxId** | **String** | If the transaction originated from an exchange, this is the ID of this transaction at the exchange. | [optional] | |**customerRefId** | **String** | The ID for AML providers to associate the owner of funds with transactions. | [optional] | |**amlScreeningResult** | [**AmlScreeningResult**](AmlScreeningResult.md) | | [optional] | -|**complianceResults** | [**ComplianceResults**](ComplianceResults.md) | | [optional] | -|**extraParameters** | **Object** | Additional protocol / operation specific key-value parameters: For UTXO-based blockchain input selection, add the key `inputsSelection` with the value set the [input selection structure.](https://developers.fireblocks.com/reference/transaction-objects#inputsselection) The inputs can be retrieved from the [Retrieve Unspent Inputs endpoint.](https://developers.fireblocks.com/reference/get_vault-accounts-vaultaccountid-assetid-unspent-inputs) For `RAW` operations, add the key `rawMessageData` with the value set to the [raw message data structure.](https://developers.fireblocks.com/reference/raw-signing-objects#rawmessagedata) For `CONTRACT_CALL` operations, add the key `contractCallData` with the value set to the Ethereum smart contract Application Binary Interface (ABI) payload. The Fireblocks [development libraries](https://developers.fireblocks.com/docs/ethereum-development#convenience-libraries) are recommended for building contract call transactions. For **exchange compliance (e.g., Binance) and Travel Rule purposes**, include the key `piiData` containing a **custom JSON structure** with Personally Identifiable Information (PII) relevant to the transaction. This data must be fully **encrypted by the sender** before being submitted to the Fireblocks API. The recommended encryption method is **hybrid encryption** using AES-256-GCM for the payload and RSA-OAEP for key exchange, with the recipient exchange’s public key. [development libraries](https://developers.fireblocks.com/docs/a-developers-guide-to-constructing-encrypted-pii-messages-for-binance-via-fireblocks) | [optional] | +|**complianceResult** | [**ComplianceResult**](ComplianceResult.md) | | [optional] | +|**extraParameters** | **Object** | Additional protocol / operation specific key-value parameters: For UTXO-based blockchain input selection, add the key `inputsSelection` with the value set the [input selection structure.](https://developers.fireblocks.com/reference/transaction-objects#inputsselection) The inputs can be retrieved from the [Retrieve Unspent Inputs endpoint.](https://developers.fireblocks.com/reference/get_vault-accounts-vaultaccountid-assetid-unspent-inputs) For `RAW` operations, add the key `rawMessageData` with the value set to the [raw message data structure.](https://developers.fireblocks.com/reference/raw-signing-objects#rawmessagedata) For `CONTRACT_CALL` operations, add the key `contractCallData` with the value set to the Ethereum smart contract Application Binary Interface (ABI) payload. The Fireblocks [development libraries](https://developers.fireblocks.com/docs/ethereum-development#convenience-libraries) are recommended for building contract call transactions. | [optional] | |**signedMessages** | [**List<SignedMessage>**](SignedMessage.md) | | [optional] | |**numOfConfirmations** | **BigDecimal** | The number of confirmations of the transaction. The number will increase until the transaction will be considered completed according to the confirmation policy. | [optional] | |**blockInfo** | [**BlockInfo**](BlockInfo.md) | | [optional] | diff --git a/docs/TransactionsApi.md b/docs/TransactionsApi.md index d12e595c..d8cc1ef2 100644 --- a/docs/TransactionsApi.md +++ b/docs/TransactionsApi.md @@ -13,7 +13,6 @@ All URIs are relative to https://developers.fireblocks.com/reference/ | [**getTransaction**](TransactionsApi.md#getTransaction) | **GET** /transactions/{txId} | Find a specific transaction by Fireblocks transaction ID | | [**getTransactionByExternalId**](TransactionsApi.md#getTransactionByExternalId) | **GET** /transactions/external_tx_id/{externalTxId} | Find a specific transaction by external transaction ID | | [**getTransactions**](TransactionsApi.md#getTransactions) | **GET** /transactions | List transaction history | -| [**rescanTransactionsBeta**](TransactionsApi.md#rescanTransactionsBeta) | **POST** /transactions/rescan | rescan array of transactions | | [**setConfirmationThresholdByTransactionHash**](TransactionsApi.md#setConfirmationThresholdByTransactionHash) | **POST** /txHash/{txHash}/set_confirmation_threshold | Set confirmation threshold by transaction hash | | [**setTransactionConfirmationThreshold**](TransactionsApi.md#setTransactionConfirmationThreshold) | **POST** /transactions/{txId}/set_confirmation_threshold | Set confirmation threshold by transaction ID | | [**unfreezeTransaction**](TransactionsApi.md#unfreezeTransaction) | **POST** /transactions/{txId}/unfreeze | Unfreeze a transaction | @@ -814,91 +813,6 @@ No authorization required | **0** | Error Response | * X-Request-ID -
| -## rescanTransactionsBeta - -> CompletableFuture>> rescanTransactionsBeta rescanTransactionsBeta(rescanTransaction, idempotencyKey) - -rescan array of transactions - -rescan transaction by running an async job. </br> **Note**: - These endpoints are currently in beta and might be subject to changes. - We limit the amount of the transaction to 16 per request. - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.TransactionsApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - List rescanTransaction = Arrays.asList(); // List | - String idempotencyKey = "idempotencyKey_example"; // String | 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. - try { - CompletableFuture>> response = fireblocks.transactions().rescanTransactionsBeta(rescanTransaction, idempotencyKey); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling TransactionsApi#rescanTransactionsBeta"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling TransactionsApi#rescanTransactionsBeta"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **rescanTransaction** | [**List<RescanTransaction>**](RescanTransaction.md)| | | -| **idempotencyKey** | **String**| 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. | [optional] | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | A array of validated transactions that were sent to rescan | * X-Request-ID -
| -| **0** | Error Response | * X-Request-ID -
| - - ## setConfirmationThresholdByTransactionHash > CompletableFuture> setConfirmationThresholdByTransactionHash setConfirmationThresholdByTransactionHash(txHash, setConfirmationsThresholdRequest, idempotencyKey) diff --git a/docs/TransferPeerPathType.md b/docs/TransferPeerPathType.md index f76ce10d..9edde632 100644 --- a/docs/TransferPeerPathType.md +++ b/docs/TransferPeerPathType.md @@ -29,9 +29,5 @@ * `END_USER_WALLET` (value: `"END_USER_WALLET"`) -* `PROGRAM_CALL` (value: `"PROGRAM_CALL"`) - -* `MULTI_DESTINATION` (value: `"MULTI_DESTINATION"`) - diff --git a/docs/TransferRail.md b/docs/TransferRail.md deleted file mode 100644 index ab512e1a..00000000 --- a/docs/TransferRail.md +++ /dev/null @@ -1,33 +0,0 @@ - - -# TransferRail - -## Enum - - -* `BLOCKCHAIN` (value: `"BLOCKCHAIN"`) - -* `INTERNAL` (value: `"INTERNAL"`) - -* `PEER` (value: `"PEER"`) - -* `SWIFT` (value: `"SWIFT"`) - -* `IBAN` (value: `"IBAN"`) - -* `US_WIRE` (value: `"US_WIRE"`) - -* `ACH` (value: `"ACH"`) - -* `SEPA` (value: `"SEPA"`) - -* `SPEI` (value: `"SPEI"`) - -* `PIX` (value: `"PIX"`) - -* `LOCAL_BANK_TRANSFER_AFRICA` (value: `"LOCAL_BANK_TRANSFER_AFRICA"`) - -* `MOBILE_MONEY` (value: `"MOBILE_MONEY"`) - - - diff --git a/docs/TransferReceipt.md b/docs/TransferReceipt.md deleted file mode 100644 index c9f977e0..00000000 --- a/docs/TransferReceipt.md +++ /dev/null @@ -1,37 +0,0 @@ - - -# TransferReceipt - -## oneOf schemas -* [BlockchainTransfer](BlockchainTransfer.md) -* [FiatTransfer](FiatTransfer.md) - -## Example -```java -// Import classes: -import com.fireblocks.sdk.model.TransferReceipt; -import com.fireblocks.sdk.model.BlockchainTransfer; -import com.fireblocks.sdk.model.FiatTransfer; - -public class Example { - public static void main(String[] args) { - TransferReceipt exampleTransferReceipt = new TransferReceipt(); - - // create a new BlockchainTransfer - BlockchainTransfer exampleBlockchainTransfer = new BlockchainTransfer(); - // set TransferReceipt to BlockchainTransfer - exampleTransferReceipt.setActualInstance(exampleBlockchainTransfer); - // to get back the BlockchainTransfer set earlier - BlockchainTransfer testBlockchainTransfer = (BlockchainTransfer) exampleTransferReceipt.getActualInstance(); - - // create a new FiatTransfer - FiatTransfer exampleFiatTransfer = new FiatTransfer(); - // set TransferReceipt to FiatTransfer - exampleTransferReceipt.setActualInstance(exampleFiatTransfer); - // to get back the FiatTransfer set earlier - FiatTransfer testFiatTransfer = (FiatTransfer) exampleTransferReceipt.getActualInstance(); - } -} -``` - - diff --git a/docs/TravelRuleAddress.md b/docs/TravelRuleAddress.md index fb585306..457898aa 100644 --- a/docs/TravelRuleAddress.md +++ b/docs/TravelRuleAddress.md @@ -7,10 +7,10 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**street** | **String** | Street address | [optional] | -|**city** | **String** | City | [optional] | -|**state** | **String** | State or province | [optional] | -|**postalCode** | **String** | Postal or ZIP code | [optional] | +|**street** | **String** | Street address | | +|**city** | **String** | City | | +|**state** | **String** | State or province | | +|**postalCode** | **String** | Postal or ZIP code | | diff --git a/docs/TravelRuleApi.md b/docs/TravelRuleBetaApi.md similarity index 60% rename from docs/TravelRuleApi.md rename to docs/TravelRuleBetaApi.md index 0297db57..0744e984 100644 --- a/docs/TravelRuleApi.md +++ b/docs/TravelRuleBetaApi.md @@ -1,15 +1,14 @@ -# TravelRuleApi +# TravelRuleBetaApi All URIs are relative to https://developers.fireblocks.com/reference/ | Method | HTTP request | Description | |------------- | ------------- | -------------| -| [**getVASPByDID**](TravelRuleApi.md#getVASPByDID) | **GET** /screening/travel_rule/vasp/{did} | Get VASP details | -| [**getVASPs**](TravelRuleApi.md#getVASPs) | **GET** /screening/travel_rule/vasp | Get All VASPs | -| [**getVaspForVault**](TravelRuleApi.md#getVaspForVault) | **GET** /screening/travel_rule/vault/{vaultAccountId}/vasp | Get assigned VASP to vault | -| [**setVaspForVault**](TravelRuleApi.md#setVaspForVault) | **POST** /screening/travel_rule/vault/{vaultAccountId}/vasp | Assign VASP to vault | -| [**updateVasp**](TravelRuleApi.md#updateVasp) | **PUT** /screening/travel_rule/vasp/update | Add jsonDidKey to VASP details | -| [**validateFullTravelRuleTransaction**](TravelRuleApi.md#validateFullTravelRuleTransaction) | **POST** /screening/travel_rule/transaction/validate/full | Validate Full Travel Rule Transaction | +| [**getVASPByDID**](TravelRuleBetaApi.md#getVASPByDID) | **GET** /screening/travel_rule/vasp/{did} | Get VASP details | +| [**getVASPs**](TravelRuleBetaApi.md#getVASPs) | **GET** /screening/travel_rule/vasp | Get All VASPs | +| [**updateVasp**](TravelRuleBetaApi.md#updateVasp) | **PUT** /screening/travel_rule/vasp/update | Add jsonDidKey to VASP details | +| [**validateFullTravelRuleTransaction**](TravelRuleBetaApi.md#validateFullTravelRuleTransaction) | **POST** /screening/travel_rule/transaction/validate/full | Validate Full Travel Rule Transaction | +| [**validateTravelRuleTransaction**](TravelRuleBetaApi.md#validateTravelRuleTransaction) | **POST** /screening/travel_rule/transaction/validate | Validate Travel Rule Transaction | @@ -19,7 +18,7 @@ All URIs are relative to https://developers.fireblocks.com/reference/ Get VASP details -Get VASP Details. Returns information about a VASP that has the specified DID. +Get VASP Details. Returns information about a VASP that has the specified DID. **Note:** The reference content in this section documents the Travel Rule beta endpoint. The beta endpoint includes APIs that are currently in preview and aren't yet generally available. To enroll in the beta and enable this endpoint, contact your Fireblocks Customer Success Manager or send an email to [CSM@fireblocks.com](mailto:CSM@fireblocks.com). ### Example @@ -32,7 +31,7 @@ import com.fireblocks.sdk.BasePath; import com.fireblocks.sdk.Fireblocks; import com.fireblocks.sdk.ConfigurationOptions; import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.TravelRuleApi; +import com.fireblocks.sdk.api.TravelRuleBetaApi; import java.util.concurrent.CompletableFuture; import java.util.concurrent.ExecutionException; @@ -45,21 +44,21 @@ public class Example { Fireblocks fireblocks = new Fireblocks(configurationOptions); String did = "did_example"; // String | - List fields = Arrays.asList(); // List | A CSV of fields to return. Choose from the following options: + String fields = "fields_example"; // String | CSV of fields to return (all, \"blank\" or see list of all field names below) try { - CompletableFuture> response = fireblocks.travelRule().getVASPByDID(did, fields); + CompletableFuture> response = fireblocks.travelRuleBeta().getVASPByDID(did, fields); System.out.println("Status code: " + response.get().getStatusCode()); System.out.println("Response headers: " + response.get().getHeaders()); System.out.println("Response body: " + response.get().getData()); } catch (InterruptedException | ExecutionException e) { ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling TravelRuleApi#getVASPByDID"); + System.err.println("Exception when calling TravelRuleBetaApi#getVASPByDID"); System.err.println("Status code: " + apiException.getCode()); System.err.println("Response headers: " + apiException.getResponseHeaders()); System.err.println("Reason: " + apiException.getResponseBody()); e.printStackTrace(); } catch (ApiException e) { - System.err.println("Exception when calling TravelRuleApi#getVASPByDID"); + System.err.println("Exception when calling TravelRuleBetaApi#getVASPByDID"); System.err.println("Status code: " + e.getCode()); System.err.println("Response headers: " + e.getResponseHeaders()); System.err.println("Reason: " + e.getResponseBody()); @@ -75,7 +74,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **did** | **String**| | | -| **fields** | [**List<String>**](String.md)| A CSV of fields to return. Choose from the following options: | [optional] [enum: did, name, verificationStatus, addressLine1, addressLine2, city, country, emailDomains, website, logo, legalStructure, legalName, yearFounded, incorporationCountry, isRegulated, otherNames, identificationType, identificationCountry, businessNumber, regulatoryAuthorities, jurisdictions, street, number, unit, postCode, state, certificates, description, travelRule_OPENVASP, travelRule_SYGNA, travelRule_TRISA, travelRule_TRLIGHT, travelRule_EMAIL, travelRule_TRP, travelRule_SHYFT, travelRule_USTRAVELRULEWG, createdAt, createdBy, updatedAt, updatedBy, lastSentDate, lastReceivedDate, documents, hasAdmin, isNotifiable, issuers] | +| **fields** | **String**| CSV of fields to return (all, \"blank\" or see list of all field names below) | [optional] | ### Return type @@ -101,11 +100,11 @@ No authorization required ## getVASPs -> CompletableFuture> getVASPs getVASPs(order, pageSize, fields, search, reviewValue, pageCursor) +> CompletableFuture> getVASPs getVASPs(order, perPage, page, fields) Get All VASPs -Get All VASPs. Returns a list of VASPs. VASPs can be searched and sorted. +Get All VASPs. Returns a list of VASPs. VASPs can be searched and sorted and results are paginated. **Note:** The reference content in this section documents the Travel Rule beta endpoint. The beta endpoint includes APIs that are currently in preview and aren't yet generally available. To enroll in the beta and enable this endpoint, contact your Fireblocks Customer Success Manager or send an email to [CSM@fireblocks.com](mailto:CSM@fireblocks.com). ### Example @@ -118,7 +117,7 @@ import com.fireblocks.sdk.BasePath; import com.fireblocks.sdk.Fireblocks; import com.fireblocks.sdk.ConfigurationOptions; import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.TravelRuleApi; +import com.fireblocks.sdk.api.TravelRuleBetaApi; import java.util.concurrent.CompletableFuture; import java.util.concurrent.ExecutionException; @@ -130,26 +129,24 @@ public class Example { .secretKey("my-secret-key"); Fireblocks fireblocks = new Fireblocks(configurationOptions); - String order = "ASC"; // String | Field to order by - BigDecimal pageSize = new BigDecimal("500"); // BigDecimal | Records per page - List fields = Arrays.asList(); // List | CSV of fields to return (all, \"blank\" or see list of all field names below) - String search = "Fireblocks"; // String | Search query - String reviewValue = "TRUSTED"; // String | Filter by the VASP's review status. Possible values include: \"TRUSTED\", \"BLOCKED\", \"MANUAL\", or \"NULL\". When provided, only VASPs that match the specified reviewValue will be returned (i.e., VASPs that have already been reviewed to this status). - String pageCursor = "100"; // String | Cursor for pagination. When provided, the response will include the next page of results. + String order = "order_example"; // String | Field to order by + BigDecimal perPage = new BigDecimal(78); // BigDecimal | Records per page + BigDecimal page = new BigDecimal(78); // BigDecimal | Page number + String fields = "fields_example"; // String | CSV of fields to return (all, \"blank\" or see list of all field names below) try { - CompletableFuture> response = fireblocks.travelRule().getVASPs(order, pageSize, fields, search, reviewValue, pageCursor); + CompletableFuture> response = fireblocks.travelRuleBeta().getVASPs(order, perPage, page, fields); System.out.println("Status code: " + response.get().getStatusCode()); System.out.println("Response headers: " + response.get().getHeaders()); System.out.println("Response body: " + response.get().getData()); } catch (InterruptedException | ExecutionException e) { ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling TravelRuleApi#getVASPs"); + System.err.println("Exception when calling TravelRuleBetaApi#getVASPs"); System.err.println("Status code: " + apiException.getCode()); System.err.println("Response headers: " + apiException.getResponseHeaders()); System.err.println("Reason: " + apiException.getResponseBody()); e.printStackTrace(); } catch (ApiException e) { - System.err.println("Exception when calling TravelRuleApi#getVASPs"); + System.err.println("Exception when calling TravelRuleBetaApi#getVASPs"); System.err.println("Status code: " + e.getCode()); System.err.println("Response headers: " + e.getResponseHeaders()); System.err.println("Reason: " + e.getResponseBody()); @@ -164,12 +161,10 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **order** | **String**| Field to order by | [optional] [enum: ASC, DESC] | -| **pageSize** | **BigDecimal**| Records per page | [optional] [default to 500] | -| **fields** | [**List<String>**](String.md)| CSV of fields to return (all, \"blank\" or see list of all field names below) | [optional] [enum: did, name, verificationStatus, addressLine1, addressLine2, city, country, emailDomains, website, logo, legalStructure, legalName, yearFounded, incorporationCountry, isRegulated, otherNames, identificationType, identificationCountry, businessNumber, regulatoryAuthorities, jurisdictions, street, number, unit, postCode, state, certificates, description, travelRule_OPENVASP, travelRule_SYGNA, travelRule_TRISA, travelRule_TRLIGHT, travelRule_EMAIL, travelRule_TRP, travelRule_SHYFT, travelRule_USTRAVELRULEWG, createdAt, createdBy, updatedAt, updatedBy, lastSentDate, lastReceivedDate, documents, hasAdmin, isNotifiable, issuers] | -| **search** | **String**| Search query | [optional] | -| **reviewValue** | **String**| Filter by the VASP's review status. Possible values include: \"TRUSTED\", \"BLOCKED\", \"MANUAL\", or \"NULL\". When provided, only VASPs that match the specified reviewValue will be returned (i.e., VASPs that have already been reviewed to this status). | [optional] [enum: TRUSTED, BLOCKED, MANUAL, ] | -| **pageCursor** | **String**| Cursor for pagination. When provided, the response will include the next page of results. | [optional] | +| **order** | **String**| Field to order by | [optional] | +| **perPage** | **BigDecimal**| Records per page | [optional] | +| **page** | **BigDecimal**| Page number | [optional] | +| **fields** | **String**| CSV of fields to return (all, \"blank\" or see list of all field names below) | [optional] | ### Return type @@ -189,99 +184,15 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Get all VASPs | - | -| **0** | Error Response | * X-Request-ID -
| -## getVaspForVault - -> CompletableFuture> getVaspForVault getVaspForVault(vaultAccountId) - -Get assigned VASP to vault - -Get assigned VASP Did for a specific vault. Returns empty string vaspDid value in response if none assigned. - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.TravelRuleApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - String vaultAccountId = "1"; // String | The ID of the vault account - try { - CompletableFuture> response = fireblocks.travelRule().getVaspForVault(vaultAccountId); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling TravelRuleApi#getVaspForVault"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling TravelRuleApi#getVaspForVault"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **vaultAccountId** | **String**| The ID of the vault account | | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | * X-Request-ID -
| -| **0** | Error Response | * X-Request-ID -
| - - -## setVaspForVault +## updateVasp -> CompletableFuture> setVaspForVault setVaspForVault(travelRuleVaspForVault, vaultAccountId, idempotencyKey) +> CompletableFuture> updateVasp updateVasp(travelRuleUpdateVASPDetails, idempotencyKey) -Assign VASP to vault +Add jsonDidKey to VASP details -Sets the VASP Did for a specific vault. Pass empty string to remove existing one. +Update VASP Details. Updates a VASP with the provided parameters. Use this endpoint to add your public jsonDIDkey generated by Notabene. **Note:** The reference content in this section documents the Travel Rule beta endpoint. The beta endpoint includes APIs that are currently in preview and aren't yet generally available. To enroll in the beta and enable this endpoint, contact your Fireblocks Customer Success Manager or send an email to [CSM@fireblocks.com](mailto:CSM@fireblocks.com). ### Example @@ -294,7 +205,7 @@ import com.fireblocks.sdk.BasePath; import com.fireblocks.sdk.Fireblocks; import com.fireblocks.sdk.ConfigurationOptions; import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.TravelRuleApi; +import com.fireblocks.sdk.api.TravelRuleBetaApi; import java.util.concurrent.CompletableFuture; import java.util.concurrent.ExecutionException; @@ -306,23 +217,22 @@ public class Example { .secretKey("my-secret-key"); Fireblocks fireblocks = new Fireblocks(configurationOptions); - TravelRuleVaspForVault travelRuleVaspForVault = new TravelRuleVaspForVault(); // TravelRuleVaspForVault | - String vaultAccountId = "vaultAccountId_example"; // String | The ID of the vault account + TravelRuleUpdateVASPDetails travelRuleUpdateVASPDetails = new TravelRuleUpdateVASPDetails(); // TravelRuleUpdateVASPDetails | String idempotencyKey = "idempotencyKey_example"; // String | 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. try { - CompletableFuture> response = fireblocks.travelRule().setVaspForVault(travelRuleVaspForVault, vaultAccountId, idempotencyKey); + CompletableFuture> response = fireblocks.travelRuleBeta().updateVasp(travelRuleUpdateVASPDetails, idempotencyKey); System.out.println("Status code: " + response.get().getStatusCode()); System.out.println("Response headers: " + response.get().getHeaders()); System.out.println("Response body: " + response.get().getData()); } catch (InterruptedException | ExecutionException e) { ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling TravelRuleApi#setVaspForVault"); + System.err.println("Exception when calling TravelRuleBetaApi#updateVasp"); System.err.println("Status code: " + apiException.getCode()); System.err.println("Response headers: " + apiException.getResponseHeaders()); System.err.println("Reason: " + apiException.getResponseBody()); e.printStackTrace(); } catch (ApiException e) { - System.err.println("Exception when calling TravelRuleApi#setVaspForVault"); + System.err.println("Exception when calling TravelRuleBetaApi#updateVasp"); System.err.println("Status code: " + e.getCode()); System.err.println("Response headers: " + e.getResponseHeaders()); System.err.println("Reason: " + e.getResponseBody()); @@ -337,13 +247,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **travelRuleVaspForVault** | [**TravelRuleVaspForVault**](TravelRuleVaspForVault.md)| | | -| **vaultAccountId** | **String**| The ID of the vault account | | +| **travelRuleUpdateVASPDetails** | [**TravelRuleUpdateVASPDetails**](TravelRuleUpdateVASPDetails.md)| | | | **idempotencyKey** | **String**| 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. | [optional] | ### Return type -CompletableFuture> +CompletableFuture> ### Authorization @@ -358,17 +267,18 @@ No authorization required ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **201** | OK | * X-Request-ID -
| -| **0** | Error Response | * X-Request-ID -
| +| **200** | VASP updated successfully | - | +| **400** | Invalid request body | - | +| **500** | Internal server error | - | -## updateVasp +## validateFullTravelRuleTransaction -> CompletableFuture> updateVasp updateVasp(travelRuleUpdateVASPDetails, idempotencyKey) +> CompletableFuture> validateFullTravelRuleTransaction validateFullTravelRuleTransaction(travelRuleValidateFullTransactionRequest, idempotencyKey) -Add jsonDidKey to VASP details +Validate Full Travel Rule Transaction -Update VASP Details. Updates a VASP with the provided parameters. Use this endpoint to add your public jsonDIDkey generated by Notabene. +Validate Full Travel Rule transactions. Checks for all required information on the originator and beneficiary VASPs. **Note:** The reference content in this section documents the Travel Rule beta endpoint. The beta endpoint includes APIs that are currently in preview and aren't yet generally available. To enroll in the beta and enable this endpoint, contact your Fireblocks Customer Success Manager or send an email to [CSM@fireblocks.com](mailto:CSM@fireblocks.com). ### Example @@ -381,7 +291,7 @@ import com.fireblocks.sdk.BasePath; import com.fireblocks.sdk.Fireblocks; import com.fireblocks.sdk.ConfigurationOptions; import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.TravelRuleApi; +import com.fireblocks.sdk.api.TravelRuleBetaApi; import java.util.concurrent.CompletableFuture; import java.util.concurrent.ExecutionException; @@ -393,22 +303,22 @@ public class Example { .secretKey("my-secret-key"); Fireblocks fireblocks = new Fireblocks(configurationOptions); - TravelRuleUpdateVASPDetails travelRuleUpdateVASPDetails = new TravelRuleUpdateVASPDetails(); // TravelRuleUpdateVASPDetails | + TravelRuleValidateFullTransactionRequest travelRuleValidateFullTransactionRequest = new TravelRuleValidateFullTransactionRequest(); // TravelRuleValidateFullTransactionRequest | String idempotencyKey = "idempotencyKey_example"; // String | 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. try { - CompletableFuture> response = fireblocks.travelRule().updateVasp(travelRuleUpdateVASPDetails, idempotencyKey); + CompletableFuture> response = fireblocks.travelRuleBeta().validateFullTravelRuleTransaction(travelRuleValidateFullTransactionRequest, idempotencyKey); System.out.println("Status code: " + response.get().getStatusCode()); System.out.println("Response headers: " + response.get().getHeaders()); System.out.println("Response body: " + response.get().getData()); } catch (InterruptedException | ExecutionException e) { ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling TravelRuleApi#updateVasp"); + System.err.println("Exception when calling TravelRuleBetaApi#validateFullTravelRuleTransaction"); System.err.println("Status code: " + apiException.getCode()); System.err.println("Response headers: " + apiException.getResponseHeaders()); System.err.println("Reason: " + apiException.getResponseBody()); e.printStackTrace(); } catch (ApiException e) { - System.err.println("Exception when calling TravelRuleApi#updateVasp"); + System.err.println("Exception when calling TravelRuleBetaApi#validateFullTravelRuleTransaction"); System.err.println("Status code: " + e.getCode()); System.err.println("Response headers: " + e.getResponseHeaders()); System.err.println("Reason: " + e.getResponseBody()); @@ -423,12 +333,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **travelRuleUpdateVASPDetails** | [**TravelRuleUpdateVASPDetails**](TravelRuleUpdateVASPDetails.md)| | | +| **travelRuleValidateFullTransactionRequest** | [**TravelRuleValidateFullTransactionRequest**](TravelRuleValidateFullTransactionRequest.md)| | | | **idempotencyKey** | **String**| 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. | [optional] | ### Return type -CompletableFuture> +CompletableFuture> ### Authorization @@ -443,18 +353,18 @@ No authorization required ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | VASP updated successfully | - | +| **200** | Transaction validated successfully | - | | **400** | Invalid request body | - | | **500** | Internal server error | - | -## validateFullTravelRuleTransaction +## validateTravelRuleTransaction -> CompletableFuture> validateFullTravelRuleTransaction validateFullTravelRuleTransaction(travelRuleValidateFullTransactionRequest, notation, idempotencyKey) +> CompletableFuture> validateTravelRuleTransaction validateTravelRuleTransaction(travelRuleValidateTransactionRequest, idempotencyKey) -Validate Full Travel Rule Transaction +Validate Travel Rule Transaction -Validate Full Travel Rule transactions. Checks for all required information on the originator and beneficiary VASPs. +Validate Travel Rule transactions. Checks what beneficiary VASP details are required by your jurisdiction and the beneficiary's jurisdiction. **Note:** The reference content in this section documents the Travel Rule beta endpoint. The beta endpoint includes APIs that are currently in preview and aren't yet generally available. To enroll in the beta and enable this endpoint, contact your Fireblocks Customer Success Manager or send an email to [CSM@fireblocks.com](mailto:CSM@fireblocks.com). ### Example @@ -467,7 +377,7 @@ import com.fireblocks.sdk.BasePath; import com.fireblocks.sdk.Fireblocks; import com.fireblocks.sdk.ConfigurationOptions; import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.TravelRuleApi; +import com.fireblocks.sdk.api.TravelRuleBetaApi; import java.util.concurrent.CompletableFuture; import java.util.concurrent.ExecutionException; @@ -479,23 +389,22 @@ public class Example { .secretKey("my-secret-key"); Fireblocks fireblocks = new Fireblocks(configurationOptions); - TravelRuleValidateFullTransactionRequest travelRuleValidateFullTransactionRequest = new TravelRuleValidateFullTransactionRequest(); // TravelRuleValidateFullTransactionRequest | - List notation = Arrays.asList(); // List | Specifies the notation of the transaction. Possible values are: - `notabene`: Uses Notabene notation (default behavior). - `fireblocks`: Uses Fireblocks notation, with automatic translation of asset tickers and amounts. - ``: Defaults to `notabene` for backward compatibility. **Note:** The default value for the `notation` parameter will change from `notabene` to `fireblocks` Update your integrations accordingly. + TravelRuleValidateTransactionRequest travelRuleValidateTransactionRequest = new TravelRuleValidateTransactionRequest(); // TravelRuleValidateTransactionRequest | String idempotencyKey = "idempotencyKey_example"; // String | 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. try { - CompletableFuture> response = fireblocks.travelRule().validateFullTravelRuleTransaction(travelRuleValidateFullTransactionRequest, notation, idempotencyKey); + CompletableFuture> response = fireblocks.travelRuleBeta().validateTravelRuleTransaction(travelRuleValidateTransactionRequest, idempotencyKey); System.out.println("Status code: " + response.get().getStatusCode()); System.out.println("Response headers: " + response.get().getHeaders()); System.out.println("Response body: " + response.get().getData()); } catch (InterruptedException | ExecutionException e) { ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling TravelRuleApi#validateFullTravelRuleTransaction"); + System.err.println("Exception when calling TravelRuleBetaApi#validateTravelRuleTransaction"); System.err.println("Status code: " + apiException.getCode()); System.err.println("Response headers: " + apiException.getResponseHeaders()); System.err.println("Reason: " + apiException.getResponseBody()); e.printStackTrace(); } catch (ApiException e) { - System.err.println("Exception when calling TravelRuleApi#validateFullTravelRuleTransaction"); + System.err.println("Exception when calling TravelRuleBetaApi#validateTravelRuleTransaction"); System.err.println("Status code: " + e.getCode()); System.err.println("Response headers: " + e.getResponseHeaders()); System.err.println("Reason: " + e.getResponseBody()); @@ -510,8 +419,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **travelRuleValidateFullTransactionRequest** | [**TravelRuleValidateFullTransactionRequest**](TravelRuleValidateFullTransactionRequest.md)| | | -| **notation** | [**List<String>**](String.md)| Specifies the notation of the transaction. Possible values are: - `notabene`: Uses Notabene notation (default behavior). - `fireblocks`: Uses Fireblocks notation, with automatic translation of asset tickers and amounts. - `<none>`: Defaults to `notabene` for backward compatibility. **Note:** The default value for the `notation` parameter will change from `notabene` to `fireblocks` Update your integrations accordingly. | [optional] [enum: fireblocks, notabene] | +| **travelRuleValidateTransactionRequest** | [**TravelRuleValidateTransactionRequest**](TravelRuleValidateTransactionRequest.md)| | | | **idempotencyKey** | **String**| 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. | [optional] | ### Return type @@ -532,5 +440,6 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Transaction validated successfully | - | -| **0** | Error Response | * X-Request-ID -
| +| **400** | Invalid request body | - | +| **500** | Internal server error | - | diff --git a/docs/TravelRuleCreateTransactionRequest.md b/docs/TravelRuleCreateTransactionRequest.md index 31b50a1c..45cc9565 100644 --- a/docs/TravelRuleCreateTransactionRequest.md +++ b/docs/TravelRuleCreateTransactionRequest.md @@ -7,39 +7,19 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**originatorVASPdid** | **String** | The Decentralized Identifier (DID) of the exchange (VASP) that is sending the virtual assets. This identifier is unique to the exchange and is generated when the exchange's account is created in the Notabene network. | [optional] | -|**beneficiaryVASPdid** | **String** | The Decentralized Identifier (DID) of the exchange (VASP) that is receiving the virtual assets. This identifier is unique to the exchange and is generated when the exchange's account is created in the Notabene network. | [optional] | -|**originatorVASPname** | **String** | The name of the VASP acting as the transaction originator. | [optional] | -|**beneficiaryVASPname** | **String** | The name of the VASP acting as the transaction beneficiary. | [optional] | -|**beneficiaryVASPwebsite** | **String** | The website of the VASP acting as the transaction beneficiary. | [optional] | -|**transactionBlockchainInfo** | [**TravelRuleTransactionBlockchainInfo**](TravelRuleTransactionBlockchainInfo.md) | | [optional] | -|**originator** | [**TravelRulePiiIVMS**](TravelRulePiiIVMS.md) | | | -|**beneficiary** | [**TravelRulePiiIVMS**](TravelRulePiiIVMS.md) | | | -|**encrypted** | **String** | Encrypted data related to the transaction. | [optional] | -|**protocol** | [**ProtocolEnum**](#ProtocolEnum) | The protocol used to perform the travel rule. | [optional] | -|**targetProtocol** | **String** | The target protocol for GTR (Global Travel Rule) transfers. | [optional] | -|**skipBeneficiaryDataValidation** | **Boolean** | Whether to skip validation of beneficiary data. | [optional] | -|**travelRuleBehavior** | **Boolean** | Whether to check if the transaction complies with the travel rule in the beneficiary VASP's jurisdiction. | [optional] | -|**originatorRef** | **String** | A reference ID related to the originator of the transaction. | [optional] | -|**beneficiaryRef** | **String** | A reference ID related to the beneficiary of the transaction. | [optional] | -|**travelRuleBehaviorRef** | **String** | A reference ID related to the travel rule behavior. | [optional] | -|**originatorProof** | [**TravelRuleOwnershipProof**](TravelRuleOwnershipProof.md) | | [optional] | -|**beneficiaryProof** | [**TravelRuleOwnershipProof**](TravelRuleOwnershipProof.md) | | [optional] | -|**beneficiaryDid** | **String** | The Decentralized Identifier (DID) of the person at the receiving exchange (VASP). This identifier is generated when the customer is registered in the Notabene network, or automatically created based on the `beneficiaryRef`. - If neither `beneficiaryRef` nor `beneficiaryDid` is provided in the `txCreate` payload, a new random DID is generated for every transaction. | [optional] | -|**originatorDid** | **String** | The Decentralized Identifier (DID) of the person at the exchange (VASP) who is requesting the withdrawal. This identifier is generated when the customer is registered in the Notabene network or automatically created based on the `originatorRef`. - If neither `originatorRef` nor `originatorDid` is provided in the `txCreate` payload, a new random DID is generated for every transaction. | [optional] | -|**isNonCustodial** | **Boolean** | Indicates if the transaction involves a non-custodial wallet. | [optional] | - - - -## Enum: ProtocolEnum - -| Name | Value | -|---- | -----| -| IVMS101 | "IVMS101" | -| TR_LIGHT | "TRLight" | -| TRP | "TRP" | -| OPEN_VASP | "OpenVASP" | -| GTR | "GTR" | +|**originatorVASPdid** | **String** | The VASP ID of the transaction originator | [optional] | +|**beneficiaryVASPdid** | **String** | The VASP ID of the transaction beneficiary | [optional] | +|**beneficiaryVASPname** | **String** | The name of the VASP acting as the beneficiary | [optional] | +|**transactionBlockchainInfo** | [**TravelRuleTransactionBlockchainInfo**](TravelRuleTransactionBlockchainInfo.md) | Information about the blockchain transaction | [optional] | +|**originator** | [**TravelRulePiiIVMS**](TravelRulePiiIVMS.md) | Information about the originator of the transaction | | +|**beneficiary** | [**TravelRulePiiIVMS**](TravelRulePiiIVMS.md) | Information about the beneficiary of the transaction | | +|**encrypted** | **String** | Encrypted data related to the transaction | [optional] | +|**protocol** | **String** | The protocol used to perform the travel rule | [optional] | +|**skipBeneficiaryDataValidation** | **Boolean** | Whether to skip validation of beneficiary data | [optional] | +|**travelRuleBehavior** | **Boolean** | Whether to check if the transaction is a TRAVEL_RULE in the beneficiary VASP's jurisdiction | [optional] | +|**originatorProof** | [**TravelRuleOwnershipProof**](TravelRuleOwnershipProof.md) | Ownership proof related to the originator of the transaction | [optional] | +|**beneficiaryProof** | [**TravelRuleOwnershipProof**](TravelRuleOwnershipProof.md) | Ownership proof related to the beneficiary of the transaction | [optional] | +|**pii** | [**TravelRulePiiIVMS**](TravelRulePiiIVMS.md) | Personal identifiable information related to the transaction | [optional] | diff --git a/docs/TravelRuleDateAndPlaceOfBirth.md b/docs/TravelRuleDateAndPlaceOfBirth.md deleted file mode 100644 index ad453918..00000000 --- a/docs/TravelRuleDateAndPlaceOfBirth.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# TravelRuleDateAndPlaceOfBirth - -Represents the date and place of birth for a natural person - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**dateOfBirth** | **String** | Date of birth. The value must be encrypted. | [optional] | -|**placeOfBirth** | **String** | Place of birth. The value must be encrypted. | [optional] | - - - diff --git a/docs/TravelRuleGeographicAddress.md b/docs/TravelRuleGeographicAddress.md deleted file mode 100644 index 31fbf196..00000000 --- a/docs/TravelRuleGeographicAddress.md +++ /dev/null @@ -1,28 +0,0 @@ - - -# TravelRuleGeographicAddress - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**streetName** | **String** | Name of a street or thoroughfare. The value must be encrypted. | [optional] | -|**townName** | **String** | Name of a built-up area, with defined boundaries, and a local government. The value must be encrypted. | [optional] | -|**country** | **String** | Nation with its own government (ISO-3166 Alpha-2 country code). The value must be encrypted. | [optional] | -|**buildingNumber** | **String** | Number that identifies the position of a building on a street. The value must be encrypted. | [optional] | -|**postCode** | **String** | Identifier consisting of a group of letters and/or numbers added to a postal address to assist the sorting of mail. The value must be encrypted. | [optional] | -|**addressType** | **String** | Specifies the type of address. Acceptable values are: - 'HOME': Residential, the home address - 'BIZZ': Business, the business address - 'GEOG': Geographic, an unspecified physical (geographical) address The value must be encrypted. | [optional] | -|**department** | **String** | Identification of a division of a large organisation or building. The value must be encrypted. | [optional] | -|**subDepartment** | **String** | Identification of a sub-division of a large organisation or building. The value must be encrypted. | [optional] | -|**buildingName** | **String** | Name of the building or house. The value must be encrypted. | [optional] | -|**floor** | **String** | Floor or storey within a building. The value must be encrypted. | [optional] | -|**postBox** | **String** | Numbered box in a post office. The value must be encrypted. | [optional] | -|**room** | **String** | Building room number. The value must be encrypted. | [optional] | -|**townLocationName** | **String** | Specific location name within the town. The value must be encrypted. | [optional] | -|**districtName** | **String** | Identifies a subdivision within a country subdivision. The value must be encrypted. | [optional] | -|**countrySubDivision** | **String** | Identifies a subdivision of a country such as state, region, or province. The value must be encrypted. | [optional] | -|**addressLine** | **List<String>** | Information that locates and identifies a specific address, presented in free format text. Each item must be encrypted. | [optional] | - - - diff --git a/docs/TravelRuleGetAllVASPsResponse.md b/docs/TravelRuleGetAllVASPsResponse.md index b28cc1fa..6f9b4bab 100644 --- a/docs/TravelRuleGetAllVASPsResponse.md +++ b/docs/TravelRuleGetAllVASPsResponse.md @@ -7,9 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**data** | [**List<TravelRuleVASP>**](TravelRuleVASP.md) | An array of VASP objects, referencing the TravelRuleVASP schema. | | -|**total** | **Integer** | The total number of VASPs. | [optional] | -|**next** | **String** | The URL for the next page of results. | [optional] | +|**vasps** | [**List<TravelRuleVASP>**](TravelRuleVASP.md) | | | diff --git a/docs/TravelRuleLegalPerson.md b/docs/TravelRuleLegalPerson.md deleted file mode 100644 index 1ef8436a..00000000 --- a/docs/TravelRuleLegalPerson.md +++ /dev/null @@ -1,18 +0,0 @@ - - -# TravelRuleLegalPerson - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**name** | [**TravelRuleLegalPersonNameIdentifier**](TravelRuleLegalPersonNameIdentifier.md) | | [optional] | -|**geographicAddress** | [**List<TravelRuleGeographicAddress>**](TravelRuleGeographicAddress.md) | The array of geographic addresses associated with the legal person. | [optional] | -|**nationalIdentification** | [**TravelRuleNationalIdentification**](TravelRuleNationalIdentification.md) | | [optional] | -|**customerIdentification** | **String** | A unique identifier that identifies the customer in the organization's context. The value must be encrypted. | [optional] | -|**customerNumber** | **String** | A distinct identifier that uniquely identifies the customer within the organization. The value must be encrypted. | [optional] | -|**countryOfRegistration** | **String** | The ISO-3166 Alpha-2 country code where the legal person is registered. The value must be encrypted. | [optional] | - - - diff --git a/docs/TravelRuleLegalPersonNameIdentifier.md b/docs/TravelRuleLegalPersonNameIdentifier.md deleted file mode 100644 index 36a4c8cf..00000000 --- a/docs/TravelRuleLegalPersonNameIdentifier.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# TravelRuleLegalPersonNameIdentifier - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**legalPersonName** | **String** | Name by which the legal person is known. The value must be encrypted. | [optional] | -|**legalPersonNameIdentifierType** | **String** | Specifies the type of name for a legal person. Acceptable values are: - 'REGISTERED': The official registered name. - 'TRADE': A trading name or DBA (Doing Business As) name. - 'OTHER': Any other type of name. The value must be encrypted. | [optional] | - - - diff --git a/docs/TravelRuleNationalIdentification.md b/docs/TravelRuleNationalIdentification.md deleted file mode 100644 index 89fd8ca3..00000000 --- a/docs/TravelRuleNationalIdentification.md +++ /dev/null @@ -1,17 +0,0 @@ - - -# TravelRuleNationalIdentification - -Represents a national identifier for a person or entity - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**countryOfIssue** | **String** | Country that issued the national identifier (ISO-3166 Alpha-2 country code). The value must be encrypted. | [optional] | -|**nationalIdentifier** | **String** | National identifier (max 35 characters). The value must be encrypted. | [optional] | -|**nationalIdentifierType** | **String** | Type of national identifier. Acceptable values include: - 'PASSPORT': Passport number - 'NATIONAL_ID': National identification number - 'TAX_ID': Tax identification number - 'SOCIAL_SECURITY': Social security number The value must be encrypted. | [optional] | -|**registrationAuthority** | **String** | Registration authority (format -> RA followed by 6 digits). The value must be encrypted. | [optional] | - - - diff --git a/docs/TravelRuleNaturalNameIdentifier.md b/docs/TravelRuleNaturalNameIdentifier.md deleted file mode 100644 index 506c827d..00000000 --- a/docs/TravelRuleNaturalNameIdentifier.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# TravelRuleNaturalNameIdentifier - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**primaryIdentifier** | **String** | The primary identifier of the name. The value must be encrypted. | [optional] | -|**secondaryIdentifier** | **String** | The secondary identifier of the name. The value must be encrypted. | [optional] | -|**nameIdentifierType** | **String** | The type of the name identifier. The value must be encrypted. The value must be one of the following: [LEGL, DBA, TRAD, NICK, ALIA, MAID, FORM, PREV, BORN, OTHR]. | [optional] | - - - diff --git a/docs/TravelRuleNaturalPerson.md b/docs/TravelRuleNaturalPerson.md deleted file mode 100644 index ce321ce2..00000000 --- a/docs/TravelRuleNaturalPerson.md +++ /dev/null @@ -1,19 +0,0 @@ - - -# TravelRuleNaturalPerson - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**name** | [**List<TravelRuleNaturalPersonNameIdentifier>**](TravelRuleNaturalPersonNameIdentifier.md) | An array of structured name identifiers for the natural person, referencing the TravelRuleNaturalPersonNameIdentifier schema. | [optional] | -|**geographicAddress** | [**List<TravelRuleGeographicAddress>**](TravelRuleGeographicAddress.md) | An array of geographic addresses associated with the natural person, referencing the TravelRuleGeographicAddress schema. | [optional] | -|**nationalIdentification** | [**TravelRuleNationalIdentification**](TravelRuleNationalIdentification.md) | | [optional] | -|**dateAndPlaceOfBirth** | [**TravelRuleDateAndPlaceOfBirth**](TravelRuleDateAndPlaceOfBirth.md) | | [optional] | -|**customerIdentification** | **String** | A unique identifier for the customer within the organization's context. The value must be encrypted. | [optional] | -|**countryOfResidence** | **String** | The ISO-3166 Alpha-2 country code of the natural person's residence. The value must be encrypted. | [optional] | -|**customerNumber** | **String** | A distinct identifier that uniquely identifies the customer within the organization. The value must be encrypted. | [optional] | - - - diff --git a/docs/TravelRuleNaturalPersonNameIdentifier.md b/docs/TravelRuleNaturalPersonNameIdentifier.md deleted file mode 100644 index 458528ce..00000000 --- a/docs/TravelRuleNaturalPersonNameIdentifier.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# TravelRuleNaturalPersonNameIdentifier - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**nameIdentifier** | [**List<TravelRuleNaturalNameIdentifier>**](TravelRuleNaturalNameIdentifier.md) | | [optional] | -|**localNameIdentifier** | [**List<TravelRuleNaturalNameIdentifier>**](TravelRuleNaturalNameIdentifier.md) | | [optional] | -|**phoneticNameIdentifier** | [**List<TravelRuleNaturalNameIdentifier>**](TravelRuleNaturalNameIdentifier.md) | | [optional] | - - - diff --git a/docs/TravelRuleOwnershipProof.md b/docs/TravelRuleOwnershipProof.md index 129c6f4c..1ce9297c 100644 --- a/docs/TravelRuleOwnershipProof.md +++ b/docs/TravelRuleOwnershipProof.md @@ -2,19 +2,13 @@ # TravelRuleOwnershipProof -Ownership proof related to the originator of the transaction. ## Properties | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**type** | **String** | The type of ownership proof. Example values: - `eip-191`: Ethereum signature proof - `eip-712`: Ethereum typed data signature proof - `bip-137`: Bitcoin signature proof - `microtransfer`: Microtransaction (Satoshi test) - `screenshot`: Uploaded screenshot of the wallet - `self-declaration`: Checkbox attestation of ownership | [optional] | -|**proof** | **String** | The cryptographic signature, transaction hash, or other proof depending on the type. Examples: - For `eip-191`: `0x3dd4a17a...ce4a2bcd1b` - For `microtransfer`: The transaction hash `H3V8GXBy39Dz...tr3TSTkY=` | [optional] | -|**attestation** | **String** | A human-readable statement of wallet ownership. Required for signature proofs and self-declarations. Examples: - `I certify that ETH account 0x896B...0b9b belongs to me.` - `I hereby declare that the blockchain address 0xa437bEed902AF9338B7DEB23848e195d85019510 is under my control.` | [optional] | -|**address** | **String** | The wallet address being verified. Examples: - For Ethereum: `0x896B...0b9b` - For Bitcoin: `1442...dxhsQ` | [optional] | -|**walletProvider** | **String** | The wallet provider or method used for verification. Examples: - For Metamask: `Metamask` - For manual signature: `manual` | [optional] | -|**url** | **String** | The URL for the uploaded screenshot (for `screenshot` proof types only). Example: `https://example.com/uploaded_image.png` | [optional] | -|**confirmed** | **Boolean** | Whether the user confirmed ownership of the wallet (for `self-declaration` proofs). Example: `true` | [optional] | +|**type** | **String** | Type of ownership proof | [optional] | +|**proof** | **String** | Identification number | [optional] | diff --git a/docs/TravelRulePerson.md b/docs/TravelRulePerson.md deleted file mode 100644 index 32144dc3..00000000 --- a/docs/TravelRulePerson.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# TravelRulePerson - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**naturalPerson** | [**TravelRuleNaturalPerson**](TravelRuleNaturalPerson.md) | | [optional] | -|**legalPerson** | [**TravelRuleLegalPerson**](TravelRuleLegalPerson.md) | | [optional] | - - - diff --git a/docs/TravelRulePiiIVMS.md b/docs/TravelRulePiiIVMS.md index f9d24f44..03164704 100644 --- a/docs/TravelRulePiiIVMS.md +++ b/docs/TravelRulePiiIVMS.md @@ -2,15 +2,20 @@ # TravelRulePiiIVMS -Personal identifiable information related to the transaction ## Properties | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**originatorPersons** | [**List<TravelRulePerson>**](TravelRulePerson.md) | Information about the originator of the transaction | [optional] | -|**beneficiaryPersons** | [**List<TravelRulePerson>**](TravelRulePerson.md) | Information about the beneficiary of the transaction | [optional] | -|**accountNumber** | **List<String>** | Beneficiary account number. The value must be encrypted. | [optional] | +|**fullName** | **String** | | [optional] | +|**dateOfBirth** | **String** | | [optional] | +|**placeOfBirth** | **String** | | [optional] | +|**address** | **String** | | [optional] | +|**identificationNumber** | **String** | | [optional] | +|**nationality** | **String** | | [optional] | +|**countryOfResidence** | **String** | | [optional] | +|**taxIdentificationNumber** | **String** | | [optional] | +|**customerNumber** | **String** | | [optional] | diff --git a/docs/TravelRulePolicyRuleResponse.md b/docs/TravelRulePolicyRuleResponse.md index 0f512d06..5a1d19dc 100644 --- a/docs/TravelRulePolicyRuleResponse.md +++ b/docs/TravelRulePolicyRuleResponse.md @@ -18,7 +18,7 @@ |**baseAsset** | **String** | | [optional] | |**amount** | **BigDecimal** | | [optional] | |**amountUSD** | **BigDecimal** | | [optional] | -|**networkProtocol** | **String** | The network protocol of the token | [optional] | +|**networkProtocol** | **String** | | [optional] | |**operation** | **String** | | [optional] | |**action** | [**ActionEnum**](#ActionEnum) | | | diff --git a/docs/TravelRuleTransactionBlockchainInfo.md b/docs/TravelRuleTransactionBlockchainInfo.md index 8a80ca22..b2422728 100644 --- a/docs/TravelRuleTransactionBlockchainInfo.md +++ b/docs/TravelRuleTransactionBlockchainInfo.md @@ -2,15 +2,14 @@ # TravelRuleTransactionBlockchainInfo -Information about the blockchain transaction. ## Properties | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**txHash** | **String** | The hash of the transaction | [optional] | -|**origin** | **String** | The origin address of the transaction | [optional] | -|**destination** | **String** | The destination address of the transaction | [optional] | +|**txHash** | **String** | | [optional] | +|**origin** | **String** | | [optional] | +|**destination** | **String** | | [optional] | diff --git a/docs/TravelRuleVASP.md b/docs/TravelRuleVASP.md index ed90ab73..a6c91b67 100644 --- a/docs/TravelRuleVASP.md +++ b/docs/TravelRuleVASP.md @@ -7,51 +7,51 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**did** | **String** | The Decentralized Identifier (DID) of the VASP. | | -|**name** | **String** | The name of the VASP. | | -|**verificationStatus** | **String** | The current verification status of the VASP. | | -|**addressLine1** | **String** | The first line of the VASP's address. | | -|**addressLine2** | **String** | The second line of the VASP's address (if applicable). | [optional] | -|**city** | **String** | The city where the VASP is located. | | -|**country** | **String** | The country where the VASP is registered (ISO-3166 Alpha-2 code). | | -|**emailDomains** | **String** | Comma-separated list of email domains associated with the VASP. | | -|**website** | **String** | The official website of the VASP. | | -|**logo** | **String** | URL to the logo of the VASP. | [optional] | -|**legalStructure** | **String** | The legal structure of the VASP (e.g., Corporation, LLC). | | -|**legalName** | **String** | The legal name of the VASP. | | -|**yearFounded** | **String** | The year the VASP was founded. | | -|**incorporationCountry** | **String** | The country where the VASP is incorporated (ISO-3166 Alpha-2 code). | | -|**isRegulated** | **String** | Indicates whether the VASP is regulated. | | -|**otherNames** | **String** | Other names the VASP is known by. | [optional] | -|**identificationType** | **String** | The type of identification used by the VASP. | [optional] | -|**identificationCountry** | **String** | The country of identification for the VASP (ISO-3166 Alpha-2 code). | [optional] | -|**businessNumber** | **String** | The business registration number of the VASP. | [optional] | -|**regulatoryAuthorities** | **String** | The regulatory authorities overseeing the VASP. | [optional] | -|**jurisdictions** | **String** | The jurisdictions where the VASP operates. | | -|**street** | **String** | The street name where the VASP is located. | [optional] | -|**number** | **String** | The building number of the VASP's address. | [optional] | -|**unit** | **String** | The unit or suite number of the VASP's address. | [optional] | -|**postCode** | **String** | The postal code of the VASP's location. | [optional] | -|**state** | **String** | The state or region where the VASP is located. | [optional] | -|**certificates** | **String** | Certificates or licenses held by the VASP. | [optional] | -|**description** | **String** | A brief description of the VASP. | [optional] | -|**travelRuleOPENVASP** | **String** | Travel rule compliance status for OpenVASP. | [optional] | -|**travelRuleSYGNA** | **String** | Travel rule compliance status for Sygna. | [optional] | -|**travelRuleTRISA** | **String** | Travel rule compliance status for TRISA. | [optional] | -|**travelRuleTRLIGHT** | **String** | Travel rule compliance status for TRLight. | | -|**travelRuleEMAIL** | **String** | Travel rule compliance status for EMAIL. | [optional] | -|**travelRuleTRP** | **String** | Travel rule compliance status for TRP. | [optional] | -|**travelRuleSHYFT** | **String** | Travel rule compliance status for Shyft. | [optional] | -|**travelRuleUSTRAVELRULEWG** | **String** | Travel rule compliance status for US Travel Rule WG. | [optional] | -|**createdAt** | **String** | Timestamp when the VASP record was created. | | -|**createdBy** | **String** | User or system that created the VASP record. | [optional] | -|**updatedAt** | **String** | Timestamp of the last update to the VASP record. | [optional] | -|**updatedBy** | **String** | User or system that last updated the VASP record. | [optional] | -|**lastSentDate** | **String** | The last date a transaction was sent by the VASP. | [optional] | -|**lastReceivedDate** | **String** | The last date a transaction was received by the VASP. | [optional] | -|**documents** | **String** | Documents associated with the VASP. | [optional] | -|**hasAdmin** | **Boolean** | Indicates if the VASP has an admin. | | -|**isNotifiable** | **Boolean** | Indicates if the VASP is notifiable for compliance reasons. | | +|**did** | **String** | | | +|**name** | **String** | | | +|**verificationStatus** | **String** | | | +|**addressLine1** | **String** | | | +|**addressLine2** | **String** | | | +|**city** | **String** | | | +|**country** | **String** | | | +|**emailDomains** | **String** | | | +|**website** | **String** | | | +|**logo** | **String** | | | +|**legalStructure** | **String** | | | +|**legalName** | **String** | | | +|**yearFounded** | **String** | | | +|**incorporationCountry** | **String** | | | +|**isRegulated** | **String** | | | +|**otherNames** | **String** | | | +|**identificationType** | **String** | | | +|**identificationCountry** | **String** | | | +|**businessNumber** | **String** | | | +|**regulatoryAuthorities** | **String** | | | +|**jurisdictions** | **String** | | | +|**street** | **String** | | | +|**number** | **String** | | | +|**unit** | **String** | | | +|**postCode** | **String** | | | +|**state** | **String** | | | +|**certificates** | **String** | | | +|**description** | **String** | | | +|**travelRuleOPENVASP** | **String** | | | +|**travelRuleSYGNA** | **String** | | | +|**travelRuleTRISA** | **String** | | | +|**travelRuleTRLIGHT** | **String** | | | +|**travelRuleEMAIL** | **String** | | | +|**travelRuleTRP** | **String** | | | +|**travelRuleSHYFT** | **String** | | | +|**travelRuleUSTRAVELRULEWG** | **String** | | | +|**createdAt** | **String** | | | +|**createdBy** | **String** | | | +|**updatedAt** | **String** | | | +|**updatedBy** | **String** | | | +|**lastSentDate** | **String** | | | +|**lastReceivedDate** | **String** | | | +|**documents** | **String** | | | +|**hasAdmin** | **Boolean** | | | +|**isNotifiable** | **Boolean** | | | |**issuers** | [**TravelRuleIssuers**](TravelRuleIssuers.md) | | | diff --git a/docs/TravelRuleValidateDateAndPlaceOfBirth.md b/docs/TravelRuleValidateDateAndPlaceOfBirth.md deleted file mode 100644 index 29dc8768..00000000 --- a/docs/TravelRuleValidateDateAndPlaceOfBirth.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# TravelRuleValidateDateAndPlaceOfBirth - -Represents the date and place of birth for a natural person - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**dateOfBirth** | **String** | Date of birth in ISO 8601 format (YYYY-MM-DD) | [optional] | -|**placeOfBirth** | **String** | Place of birth | [optional] | - - - diff --git a/docs/TravelRuleValidateFullTransactionRequest.md b/docs/TravelRuleValidateFullTransactionRequest.md index 29ea4fe7..b18b6085 100644 --- a/docs/TravelRuleValidateFullTransactionRequest.md +++ b/docs/TravelRuleValidateFullTransactionRequest.md @@ -7,41 +7,24 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**originatorVASPdid** | **String** | The Decentralized Identifier (DID) of the exchange (VASP) that is sending the virtual assets. This identifier is unique to the exchange and is generated when the exchange's account is created in the Notabene network. | [optional] | -|**beneficiaryVASPdid** | **String** | The Decentralized Identifier (DID) of the exchange (VASP) that is receiving the virtual assets. This identifier is unique to the exchange and is generated when the exchange's account is created in the Notabene network. | [optional] | -|**transactionAsset** | **String** | Transaction asset symbol (e.g., BTC, ETH, USDC). By using the `notation` query string, users can select the type of asset notation: - `fireblocks`: Converts asset symbols to Fireblocks notation. - `notabene`: Retains the original Notabene asset symbol format. | [optional] | -|**transactionAmount** | **String** | Transaction amount in the transaction asset. For example, if the asset is BTC, the amount is the value in BTC units. By using the `notation` query string, users can select the type of amount notation: - `fireblocks`: Converts the amount to Fireblocks notation (e.g., adjusted for decimals). - `notabene`: Retains the original Notabene amount format. | [optional] | -|**originatorVASPname** | **String** | The name of the VASP acting as the transaction originator. | [optional] | -|**beneficiaryVASPname** | **String** | The name of the VASP acting as the transaction beneficiary. | [optional] | -|**transactionBlockchainInfo** | [**TravelRuleTransactionBlockchainInfo**](TravelRuleTransactionBlockchainInfo.md) | | [optional] | -|**originator** | [**TravelRuleValidatePiiIVMS**](TravelRuleValidatePiiIVMS.md) | | | -|**beneficiary** | [**TravelRuleValidatePiiIVMS**](TravelRuleValidatePiiIVMS.md) | | | -|**encrypted** | **String** | Encrypted data related to the transaction. | [optional] | -|**protocol** | [**ProtocolEnum**](#ProtocolEnum) | The protocol used to perform the travel rule. | [optional] | -|**skipBeneficiaryDataValidation** | **Boolean** | Whether to skip validation of beneficiary data. | [optional] | -|**travelRuleBehavior** | **Boolean** | Whether to check if the transaction complies with the travel rule in the beneficiary VASP's jurisdiction. | [optional] | -|**originatorRef** | **String** | A reference ID related to the originator of the transaction. | [optional] | -|**beneficiaryRef** | **String** | A reference ID related to the beneficiary of the transaction. | [optional] | -|**travelRuleBehaviorRef** | **String** | A reference ID related to the travel rule behavior. | [optional] | -|**originatorProof** | [**TravelRuleOwnershipProof**](TravelRuleOwnershipProof.md) | | [optional] | -|**beneficiaryProof** | [**TravelRuleOwnershipProof**](TravelRuleOwnershipProof.md) | | [optional] | -|**beneficiaryDid** | **String** | The Decentralized Identifier (DID) of the person at the receiving exchange (VASP). This identifier is generated when the customer is registered in the Notabene network, or automatically created based on the `beneficiaryRef`. - If neither `beneficiaryRef` nor `beneficiaryDid` is provided in the `txCreate` payload, a new random DID is generated for every transaction. | [optional] | -|**originatorDid** | **String** | The Decentralized Identifier (DID) of the person at the exchange (VASP) who is requesting the withdrawal. This identifier is generated when the customer is registered in the Notabene network or automatically created based on the `originatorRef`. - If neither `originatorRef` nor `originatorDid` is provided in the `txCreate` payload, a new random DID is generated for every transaction. | [optional] | -|**isNonCustodial** | **Boolean** | Indicates if the transaction involves a non-custodial wallet. | [optional] | +|**transactionAsset** | **String** | The asset involved in the transaction | [optional] | +|**transactionAmount** | **String** | The amount of the transaction | [optional] | +|**originatorDid** | **String** | The DID of the transaction originator | [optional] | +|**beneficiaryDid** | **String** | The DID of the transaction beneficiary | [optional] | +|**originatorVASPdid** | **String** | The VASP ID of the transaction originator | [optional] | +|**beneficiaryVASPdid** | **String** | The VASP ID of the transaction beneficiary | [optional] | +|**beneficiaryVASPname** | **String** | The name of the VASP acting as the beneficiary | [optional] | +|**transactionBlockchainInfo** | [**TravelRuleTransactionBlockchainInfo**](TravelRuleTransactionBlockchainInfo.md) | Information about the blockchain transaction | [optional] | +|**originator** | [**TravelRulePiiIVMS**](TravelRulePiiIVMS.md) | Information about the originator of the transaction | | +|**beneficiary** | [**TravelRulePiiIVMS**](TravelRulePiiIVMS.md) | Information about the beneficiary of the transaction | | +|**encrypted** | **String** | Encrypted data related to the transaction | [optional] | +|**protocol** | **String** | The protocol used to perform the travel rule | [optional] | |**notificationEmail** | **String** | The email address where a notification should be sent upon completion of the travel rule | [optional] | -|**pii** | [**TravelRulePiiIVMS**](TravelRulePiiIVMS.md) | | [optional] | -|**piiUrl** | **String** | The URL of the personal identifiable information related to the transaction | [optional] | - - - -## Enum: ProtocolEnum - -| Name | Value | -|---- | -----| -| TR_LIGHT | "TRLight" | -| TRP | "TRP" | -| OPEN_VASP | "OpenVASP" | -| GTR | "GTR" | +|**skipBeneficiaryDataValidation** | **Boolean** | Whether to skip validation of beneficiary data | [optional] | +|**travelRuleBehavior** | **Boolean** | Whether to check if the transaction is a TRAVEL_RULE in the beneficiary VASP's jurisdiction | [optional] | +|**originatorProof** | [**TravelRuleOwnershipProof**](TravelRuleOwnershipProof.md) | Ownership proof related to the originator of the transaction | [optional] | +|**beneficiaryProof** | [**TravelRuleOwnershipProof**](TravelRuleOwnershipProof.md) | Ownership proof related to the beneficiary of the transaction | [optional] | +|**pii** | [**TravelRulePiiIVMS**](TravelRulePiiIVMS.md) | Personal identifiable information related to the transaction | [optional] | diff --git a/docs/TravelRuleValidateGeographicAddress.md b/docs/TravelRuleValidateGeographicAddress.md deleted file mode 100644 index 154c4d7c..00000000 --- a/docs/TravelRuleValidateGeographicAddress.md +++ /dev/null @@ -1,38 +0,0 @@ - - -# TravelRuleValidateGeographicAddress - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**streetName** | **String** | Name of a street or thoroughfare | [optional] | -|**townName** | **String** | Name of a built-up area, with defined boundaries, and a local government | [optional] | -|**country** | **String** | Nation with its own government (ISO-3166 Alpha-2 country code) | [optional] | -|**buildingNumber** | **String** | Number that identifies the position of a building on a street | [optional] | -|**postCode** | **String** | Identifier consisting of a group of letters and/or numbers added to a postal address to assist the sorting of mail | [optional] | -|**addressType** | [**AddressTypeEnum**](#AddressTypeEnum) | Specifies the type of address. Acceptable values are: - 'HOME': Residential, the home address - 'BIZZ': Business, the business address - 'GEOG': Geographic, an unspecified physical (geographical) address | [optional] | -|**department** | **String** | Identification of a division of a large organisation or building | [optional] | -|**subDepartment** | **String** | Identification of a sub-division of a large organisation or building | [optional] | -|**buildingName** | **String** | Name of the building or house | [optional] | -|**floor** | **String** | Floor or storey within a building | [optional] | -|**postBox** | **String** | Numbered box in a post office | [optional] | -|**room** | **String** | Building room number | [optional] | -|**townLocationName** | **String** | Specific location name within the town | [optional] | -|**districtName** | **String** | Identifies a subdivision within a country subdivision | [optional] | -|**countrySubDivision** | **String** | Identifies a subdivision of a country such as state, region, or province | [optional] | -|**addressLine** | **List<String>** | Information that locates and identifies a specific address, presented in free format text | [optional] | - - - -## Enum: AddressTypeEnum - -| Name | Value | -|---- | -----| -| HOME | "HOME" | -| BIZZ | "BIZZ" | -| GEOG | "GEOG" | - - - diff --git a/docs/TravelRuleValidateLegalPerson.md b/docs/TravelRuleValidateLegalPerson.md deleted file mode 100644 index d494b2dc..00000000 --- a/docs/TravelRuleValidateLegalPerson.md +++ /dev/null @@ -1,18 +0,0 @@ - - -# TravelRuleValidateLegalPerson - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**name** | [**TravelRuleValidateLegalPersonNameIdentifier**](TravelRuleValidateLegalPersonNameIdentifier.md) | | [optional] | -|**geographicAddress** | [**List<TravelRuleValidateGeographicAddress>**](TravelRuleValidateGeographicAddress.md) | The array of geographic addresses associated with the legal person. | [optional] | -|**nationalIdentification** | [**TravelRuleValidateNationalIdentification**](TravelRuleValidateNationalIdentification.md) | | [optional] | -|**customerIdentification** | **String** | A unique identifier that identifies the customer in the organization's context. | [optional] | -|**customerNumber** | **String** | A distinct identifier that uniquely identifies the customer within the organization. | [optional] | -|**countryOfRegistration** | **String** | The ISO-3166 Alpha-2 country code where the legal person is registered. | [optional] | - - - diff --git a/docs/TravelRuleValidateLegalPersonNameIdentifier.md b/docs/TravelRuleValidateLegalPersonNameIdentifier.md deleted file mode 100644 index 7e551118..00000000 --- a/docs/TravelRuleValidateLegalPersonNameIdentifier.md +++ /dev/null @@ -1,24 +0,0 @@ - - -# TravelRuleValidateLegalPersonNameIdentifier - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**legalPersonName** | **String** | Name by which the legal person is known. | [optional] | -|**legalPersonNameIdentifierType** | [**LegalPersonNameIdentifierTypeEnum**](#LegalPersonNameIdentifierTypeEnum) | Specifies the type of name for a legal person. Acceptable values are: - 'REGISTERED': The official registered name. - 'TRADE': A trading name or DBA (Doing Business As) name. - 'OTHER': Any other type of name. | [optional] | - - - -## Enum: LegalPersonNameIdentifierTypeEnum - -| Name | Value | -|---- | -----| -| REGISTERED | "REGISTERED" | -| TRADE | "TRADE" | -| OTHER | "OTHER" | - - - diff --git a/docs/TravelRuleValidateNationalIdentification.md b/docs/TravelRuleValidateNationalIdentification.md deleted file mode 100644 index 0de828af..00000000 --- a/docs/TravelRuleValidateNationalIdentification.md +++ /dev/null @@ -1,28 +0,0 @@ - - -# TravelRuleValidateNationalIdentification - -Represents a national identifier for a person or entity - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**countryOfIssue** | **String** | Country that issued the national identifier (ISO-3166 Alpha-2 country code) | [optional] | -|**nationalIdentifier** | **String** | National identifier (max 35 characters) | [optional] | -|**nationalIdentifierType** | [**NationalIdentifierTypeEnum**](#NationalIdentifierTypeEnum) | Type of national identifier. Acceptable values include: - 'PASSPORT': Passport number - 'NATIONAL_ID': National identification number - 'TAX_ID': Tax identification number - 'SOCIAL_SECURITY': Social security number | [optional] | -|**registrationAuthority** | **String** | Registration authority (format -> RA followed by 6 digits) | [optional] | - - - -## Enum: NationalIdentifierTypeEnum - -| Name | Value | -|---- | -----| -| PASSPORT | "PASSPORT" | -| NATIONAL_ID | "NATIONAL_ID" | -| TAX_ID | "TAX_ID" | -| SOCIAL_SECURITY | "SOCIAL_SECURITY" | - - - diff --git a/docs/TravelRuleValidateNaturalNameIdentifier.md b/docs/TravelRuleValidateNaturalNameIdentifier.md deleted file mode 100644 index c041143e..00000000 --- a/docs/TravelRuleValidateNaturalNameIdentifier.md +++ /dev/null @@ -1,27 +0,0 @@ - - -# TravelRuleValidateNaturalNameIdentifier - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**primaryIdentifier** | **String** | The primary identifier of the name | [optional] | -|**secondaryIdentifier** | **String** | The secondary identifier of the name | [optional] | -|**nameIdentifierType** | [**NameIdentifierTypeEnum**](#NameIdentifierTypeEnum) | Specifies the type of name for a natural person. Acceptable values are: - 'ALIA': Alias name, a name other than the legal name by which a natural person is also known. - 'BIRT': Name at birth, the name given to a natural person at birth. - 'MAID': Maiden name, the original name of a natural person who has changed their name after marriage. - 'LEGL': Legal name, the name that identifies a natural person for legal, official, or administrative purposes. - 'MISC': Unspecified, a name by which a natural person may be known but cannot otherwise be categorized. | [optional] | - - - -## Enum: NameIdentifierTypeEnum - -| Name | Value | -|---- | -----| -| ALIA | "ALIA" | -| BIRT | "BIRT" | -| MAID | "MAID" | -| LEGL | "LEGL" | -| MISC | "MISC" | - - - diff --git a/docs/TravelRuleValidateNaturalPerson.md b/docs/TravelRuleValidateNaturalPerson.md deleted file mode 100644 index b088503d..00000000 --- a/docs/TravelRuleValidateNaturalPerson.md +++ /dev/null @@ -1,19 +0,0 @@ - - -# TravelRuleValidateNaturalPerson - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**name** | [**List<TravelRuleValidateNaturalPersonNameIdentifier>**](TravelRuleValidateNaturalPersonNameIdentifier.md) | An array of structured name identifiers for the natural person, referencing the TravelRuleNaturalPersonNameIdentifier schema. | [optional] | -|**geographicAddress** | [**List<TravelRuleValidateGeographicAddress>**](TravelRuleValidateGeographicAddress.md) | An array of geographic addresses associated with the natural person, referencing the TravelRuleGeographicAddress schema. | [optional] | -|**nationalIdentification** | [**TravelRuleValidateNationalIdentification**](TravelRuleValidateNationalIdentification.md) | | [optional] | -|**dateAndPlaceOfBirth** | [**TravelRuleValidateDateAndPlaceOfBirth**](TravelRuleValidateDateAndPlaceOfBirth.md) | | [optional] | -|**customerIdentification** | **String** | A unique identifier for the customer within the organization's context. | [optional] | -|**countryOfResidence** | **String** | The ISO-3166 Alpha-2 country code of the natural person's residence. | [optional] | -|**customerNumber** | **String** | A distinct identifier that uniquely identifies the customer within the organization. | [optional] | - - - diff --git a/docs/TravelRuleValidateNaturalPersonNameIdentifier.md b/docs/TravelRuleValidateNaturalPersonNameIdentifier.md deleted file mode 100644 index b59050ff..00000000 --- a/docs/TravelRuleValidateNaturalPersonNameIdentifier.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# TravelRuleValidateNaturalPersonNameIdentifier - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**nameIdentifier** | [**List<TravelRuleValidateNaturalNameIdentifier>**](TravelRuleValidateNaturalNameIdentifier.md) | | [optional] | -|**localNameIdentifier** | [**List<TravelRuleValidateNaturalNameIdentifier>**](TravelRuleValidateNaturalNameIdentifier.md) | | [optional] | -|**phoneticNameIdentifier** | [**List<TravelRuleValidateNaturalNameIdentifier>**](TravelRuleValidateNaturalNameIdentifier.md) | | [optional] | - - - diff --git a/docs/TravelRuleValidatePerson.md b/docs/TravelRuleValidatePerson.md deleted file mode 100644 index cb11779c..00000000 --- a/docs/TravelRuleValidatePerson.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# TravelRuleValidatePerson - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**naturalPerson** | [**TravelRuleValidateNaturalPerson**](TravelRuleValidateNaturalPerson.md) | | [optional] | -|**legalPerson** | [**TravelRuleValidateLegalPerson**](TravelRuleValidateLegalPerson.md) | | [optional] | - - - diff --git a/docs/TravelRuleValidatePiiIVMS.md b/docs/TravelRuleValidatePiiIVMS.md deleted file mode 100644 index 9a2f9224..00000000 --- a/docs/TravelRuleValidatePiiIVMS.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# TravelRuleValidatePiiIVMS - -Information about the originator of the transaction. - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**originatorPersons** | [**List<TravelRuleValidatePerson>**](TravelRuleValidatePerson.md) | Information about the originator of the transaction | [optional] | -|**beneficiaryPersons** | [**List<TravelRuleValidatePerson>**](TravelRuleValidatePerson.md) | Information about the beneficiary of the transaction | [optional] | -|**accountNumber** | **List<String>** | Beneficiary account number | [optional] | - - - diff --git a/docs/TravelRuleValidateTransactionRequest.md b/docs/TravelRuleValidateTransactionRequest.md index f47f5f71..839f77ac 100644 --- a/docs/TravelRuleValidateTransactionRequest.md +++ b/docs/TravelRuleValidateTransactionRequest.md @@ -7,10 +7,9 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**transactionAsset** | **String** | Transaction asset symbol (BTC,ETH) | | +|**transactionAsset** | **String** | Transaction asset symbol BTC,ETH) | | |**destination** | **String** | Transaction destination address | | |**transactionAmount** | **String** | Transaction amount in the transaction asset | | -|**transactionAssetDecimals** | **BigDecimal** | Number of decimals in the transaction asset. This is used to convert the transaction amount to the smallest unit of the asset | [optional] | |**originatorVASPdid** | **String** | This is the identifier assigned to your VASP | | |**originatorEqualsBeneficiary** | **Boolean** | \"True\" if the originator and beneficiary is the same person and you therefore do not need to collect any information. \"False\" if it is a third-party transfer. | | |**travelRuleBehavior** | **Boolean** | This will also check if the transaction is a TRAVEL_RULE in the beneficiary VASP's jurisdiction | [optional] | @@ -18,7 +17,7 @@ |**beneficiaryVASPname** | **String** | Beneficiary VASP name | [optional] | |**beneficiaryName** | **String** | Beneficiary name | [optional] | |**beneficiaryAccountNumber** | **String** | Beneficiary name | [optional] | -|**beneficiaryAddress** | [**TravelRuleAddress**](TravelRuleAddress.md) | | [optional] | +|**beneficiaryAddress** | [**TravelRuleAddress**](TravelRuleAddress.md) | Beneficiary name | [optional] | diff --git a/docs/TravelRuleValidateTransactionResponse.md b/docs/TravelRuleValidateTransactionResponse.md index 8d900bd8..e313d31d 100644 --- a/docs/TravelRuleValidateTransactionResponse.md +++ b/docs/TravelRuleValidateTransactionResponse.md @@ -9,34 +9,11 @@ |------------ | ------------- | ------------- | -------------| |**isValid** | **Boolean** | \"isValid\" will tell you if you have collected all the information needed for the travel rule data transfer. Once this field = \"true\", you can move on to the next step which is to transfer the front-end information to your back-end and perform Travel Rule Transaction create | | |**type** | **String** | \"type\" will tell you if the virtual asset value converted to FIAT value of the withdrawal request is above (=TRAVELRULE) or below (=BELOW_THRESHOLD) the threshold in your jurisdiction. If it is to an unhosted wallet which does not require travel rule information to be sent and only collected, it will say NON_CUSTODIAL. | | -|**beneficiaryAddressType** | [**BeneficiaryAddressTypeEnum**](#BeneficiaryAddressTypeEnum) | \"beneficiaryAddressType\" will tell you if your blockchain analytics provider or internal address book has been able to identify the wallet address. | | -|**addressSource** | [**AddressSourceEnum**](#AddressSourceEnum) | \"addressSource\" will tell you if the address was found in your internal address book or identified by the blockchain analytics provider. | | +|**beneficiaryAddressType** | **String** | \"beneficiaryAddressType\" will tell you if your blockchain analytics provider or internal address book has been able to identify the wallet address. | | +|**addressSource** | **String** | \"addressSource\" will tell you if the address was found in your internal address book or identified by the blockchain analytics provider. | | |**beneficiaryVASPdid** | **String** | The VASP DID of the beneficiary VASP | | |**beneficiaryVASPname** | **String** | \"beneficiaryVASPname\" will tell you the name of the VASP that has been identified as the owner of the wallet address. This name is used in a subsequent call to get its DID. | | |**warnings** | **List<String>** | \"errors/warnings\" will tell you what information about the beneficiary you need to collect from the sender. | | -## Enum: BeneficiaryAddressTypeEnum - -| Name | Value | -|---- | -----| -| UNKNOWN | "UNKNOWN" | -| HOSTED | "HOSTED" | -| UNHOSTED | "UNHOSTED" | - - - -## Enum: AddressSourceEnum - -| Name | Value | -|---- | -----| -| UNKNOWN | "UNKNOWN" | -| ADDRESS_HASH | "ADDRESS_HASH" | -| ADDRESS_GRAPH | "ADDRESS_GRAPH" | -| CHAINALYSIS | "CHAINALYSIS" | -| ELLIPTIC | "ELLIPTIC" | -| CRYSTAL | "CRYSTAL" | - - - diff --git a/docs/TravelRuleVaspForVault.md b/docs/TravelRuleVaspForVault.md deleted file mode 100644 index ca8bdaff..00000000 --- a/docs/TravelRuleVaspForVault.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# TravelRuleVaspForVault - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**vaspDid** | **String** | VASP DID | [optional] | - - - diff --git a/docs/TxLog.md b/docs/TxLog.md deleted file mode 100644 index 05dc4ac8..00000000 --- a/docs/TxLog.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# TxLog - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**address** | **String** | The log address | | -|**topics** | **List<String>** | Array of log topics | | -|**data** | **String** | The log data | | -|**blockNumber** | **Integer** | Block number where the log occurred | | -|**transactionHash** | **String** | Transaction hash associated with the log | | -|**transactionIndex** | **Integer** | Transaction index in the block | | -|**blockHash** | **String** | The hash of the block | | -|**logIndex** | **Integer** | Log index in the block | | -|**removed** | **Boolean** | Indicates if the log was removed | | - - - diff --git a/docs/UnstakeRequest.md b/docs/UnstakeRequest.md deleted file mode 100644 index 92f13f98..00000000 --- a/docs/UnstakeRequest.md +++ /dev/null @@ -1,17 +0,0 @@ - - -# UnstakeRequest - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**id** | **String** | id of position to unstake | | -|**fee** | **String** | Represents the fee for a transaction, which can be specified as a percentage value. Only one of fee/feeLevel is required. | [optional] | -|**feeLevel** | **FeeLevel** | | [optional] | -|**txNote** | **String** | The note to associate with the transactions. | [optional] | -|**amount** | **String** | The number of tokens to unstake. This optional field is applicable only for liquid staking and allows for a partial unstake of the position. If not provided, the entire position will be unstaked by default. | [optional] | - - - diff --git a/docs/ClaimRewardsRequest.md b/docs/UnstakeRequestDto.md similarity index 60% rename from docs/ClaimRewardsRequest.md rename to docs/UnstakeRequestDto.md index 8f1682b1..343d71a8 100644 --- a/docs/ClaimRewardsRequest.md +++ b/docs/UnstakeRequestDto.md @@ -1,15 +1,15 @@ -# ClaimRewardsRequest +# UnstakeRequestDto ## Properties | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**id** | **String** | id of position to withdraw rewards from | | +|**id** | **String** | id of position to unstake | | |**fee** | **String** | Represents the fee for a transaction, which can be specified as a percentage value. Only one of fee/feeLevel is required. | [optional] | -|**feeLevel** | **FeeLevel** | | [optional] | +|**feeLevel** | **String** | Represents the fee level for a transaction, which can be set as slow, medium, or fast. Only one of fee/feeLevel is required. | [optional] | |**txNote** | **String** | The note to associate with the transactions. | [optional] | diff --git a/docs/UpdateAssetUserMetadataRequest.md b/docs/UpdateAssetUserMetadataRequest.md deleted file mode 100644 index b6fb4037..00000000 --- a/docs/UpdateAssetUserMetadataRequest.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# UpdateAssetUserMetadataRequest - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**metadata** | [**AssetMetadataRequest**](AssetMetadataRequest.md) | | [optional] | - - - diff --git a/docs/UpdateCallbackHandlerRequest.md b/docs/UpdateCallbackHandlerRequest.md deleted file mode 100644 index bd5915bb..00000000 --- a/docs/UpdateCallbackHandlerRequest.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# UpdateCallbackHandlerRequest - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**callbackHandler** | [**CallbackHandlerRequest**](CallbackHandlerRequest.md) | | [optional] | - - - diff --git a/docs/UpdateCallbackHandlerResponse.md b/docs/UpdateCallbackHandlerResponse.md deleted file mode 100644 index e521141e..00000000 --- a/docs/UpdateCallbackHandlerResponse.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# UpdateCallbackHandlerResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**id** | **UUID** | The unique identifier of the API key | | -|**callbackHandler** | [**CallbackHandlerRequest**](CallbackHandlerRequest.md) | | [optional] | - - - diff --git a/docs/UpdateDraftRequest.md b/docs/UpdateDraftRequest.md deleted file mode 100644 index e4b75e82..00000000 --- a/docs/UpdateDraftRequest.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# UpdateDraftRequest - -Request schema for updating draft with policy types and rules - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**policyTypes** | **List<PolicyType>** | | | -|**rules** | [**List<PolicyRule>**](PolicyRule.md) | Array of policy rules | | - - - diff --git a/docs/UpdateTagRequest.md b/docs/UpdateTagRequest.md deleted file mode 100644 index 89c53374..00000000 --- a/docs/UpdateTagRequest.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# UpdateTagRequest - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**label** | **String** | The tag label | [optional] | -|**description** | **String** | Description for the tag | [optional] | - - - diff --git a/docs/UpdateWebhookRequest.md b/docs/UpdateWebhookRequest.md deleted file mode 100644 index ff7e6cf2..00000000 --- a/docs/UpdateWebhookRequest.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# UpdateWebhookRequest - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**url** | **String** | The url of the webhook where notifications will be sent. URL must be valid, unique and https. | [optional] | -|**description** | **String** | description of the webhook of what it is used for.should not contain special characters. | [optional] | -|**events** | **List<WebhookEvent>** | The events that the webhook will be subscribed to | [optional] | -|**enabled** | **Boolean** | The status of the webhook | [optional] | - - - diff --git a/docs/UsWirePaymentInfo.md b/docs/UsWirePaymentInfo.md deleted file mode 100644 index 11887ed8..00000000 --- a/docs/UsWirePaymentInfo.md +++ /dev/null @@ -1,44 +0,0 @@ - - -# UsWirePaymentInfo - -US Wire payment information for US domestic wire transfers - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**rail** | [**RailEnum**](#RailEnum) | The payment rail type for US wire transfers | | -|**addressingSystem** | [**AddressingSystemEnum**](#AddressingSystemEnum) | The addressing system used for US wire transfers | | -|**accountHolderGivenName** | **String** | The given name (first name) of the account holder | | -|**accountHolderSurname** | **String** | The surname (last name) of the account holder | | -|**country** | **String** | The country for the transfer (ISO 3166-1 alpha-2 code) | | -|**accountNumber** | **String** | The bank account number | | -|**routingNumber** | **String** | The bank routing number (ABA routing number) | | -|**swiftCode** | **String** | The SWIFT/BIC code of the bank | | -|**bankName** | **String** | The name of the bank | | -|**bankAddressLine** | **String** | The street address of the bank | | -|**bankAddressCity** | **String** | The city where the bank is located | | -|**bankAddressState** | **String** | The state where the bank is located | [optional] | -|**bankAddressCountry** | **String** | The country where the bank is located (ISO 3166-1 alpha-2 code) | | -|**bankAddressPostalCode** | **String** | The postal code of the bank's address | | -|**branchNumber** | **String** | The branch number of the bank | [optional] | - - - -## Enum: RailEnum - -| Name | Value | -|---- | -----| -| US_WIRE | "US_WIRE" | - - - -## Enum: AddressingSystemEnum - -| Name | Value | -|---- | -----| -| ABA | "ABA" | - - - diff --git a/docs/ValidateLayerZeroChannelResponse.md b/docs/ValidateLayerZeroChannelResponse.md deleted file mode 100644 index b41176fa..00000000 --- a/docs/ValidateLayerZeroChannelResponse.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# ValidateLayerZeroChannelResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**correct** | **Boolean** | Indicates whether the LayerZero channel configuration is valid. | | -|**errors** | **List<String>** | List of errors found during validation. An empty array indicates no errors. | | - - - diff --git a/docs/ValidatedTransactionsForRescan.md b/docs/ValidatedTransactionsForRescan.md deleted file mode 100644 index a482eae9..00000000 --- a/docs/ValidatedTransactionsForRescan.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# ValidatedTransactionsForRescan - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**baseAsset** | **String** | Base asset symbol BTC_TEST, ETH_TEST5) | [optional] | -|**networkProtocol** | **String** | Netowrk protocol of the blockchain (BTC, ETH) | [optional] | -|**txHashes** | **List<String>** | Blockchain TX hashes | [optional] | - - - diff --git a/docs/Validator.md b/docs/ValidatorDto.md similarity index 76% rename from docs/Validator.md rename to docs/ValidatorDto.md index 12bd336f..35cc54da 100644 --- a/docs/Validator.md +++ b/docs/ValidatorDto.md @@ -1,6 +1,6 @@ -# Validator +# ValidatorDto ## Properties @@ -9,7 +9,6 @@ |------------ | ------------- | ------------- | -------------| |**chainDescriptor** | **String** | The protocol identifier (e.g. \"ETH\"/\"SOL\") of the validator | | |**feePercent** | **BigDecimal** | The service fee as a percentage out of the earned rewards | | -|**isPrivate** | **Boolean** | Is the validator private, i.e created by the user | [optional] | diff --git a/docs/VaultAccount.md b/docs/VaultAccount.md index be3806fd..0e81afd5 100644 --- a/docs/VaultAccount.md +++ b/docs/VaultAccount.md @@ -13,7 +13,6 @@ |**hiddenOnUI** | **Boolean** | | [optional] | |**customerRefId** | **String** | | [optional] | |**autoFuel** | **Boolean** | | [optional] | -|**tags** | [**List<Tag>**](Tag.md) | List of tags attached to the vault account | [optional] | diff --git a/docs/VaultAccountsTagAttachmentsRequest.md b/docs/VaultAccountsTagAttachmentsRequest.md deleted file mode 100644 index def5361b..00000000 --- a/docs/VaultAccountsTagAttachmentsRequest.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# VaultAccountsTagAttachmentsRequest - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**tagIds** | **List<UUID>** | The IDs of the tags to attach | | -|**vaultAccountIds** | **List<String>** | The IDs of the vault accounts to attach tags to | | - - - diff --git a/docs/VaultAsset.md b/docs/VaultAsset.md index 6fdbde47..bb0224da 100644 --- a/docs/VaultAsset.md +++ b/docs/VaultAsset.md @@ -15,7 +15,7 @@ |**frozen** | **String** | The cumulative frozen balance | [optional] | |**lockedAmount** | **String** | Funds in outgoing transactions that are not yet published to the network | [optional] | |**staked** | **String** | Staked balance | [optional] | -|**totalStakedCPU** | **String** | Deprecated | [optional] | +|**totalStakedCPU** | **BigDecimal** | Deprecated | [optional] | |**totalStakedNetwork** | **String** | Deprecated | [optional] | |**selfStakedCPU** | **String** | Deprecated | [optional] | |**selfStakedNetwork** | **String** | Deprecated | [optional] | diff --git a/docs/VaultWalletAddress.md b/docs/VaultWalletAddress.md index b2ae25c6..6a38a882 100644 --- a/docs/VaultWalletAddress.md +++ b/docs/VaultWalletAddress.md @@ -27,8 +27,6 @@ |---- | -----| | SEGWIT | "SEGWIT" | | LEGACY | "LEGACY" | -| BASE | "BASE" | -| PAYMENT | "PAYMENT" | diff --git a/docs/VaultsApi.md b/docs/VaultsApi.md index ac66e665..d0985e46 100644 --- a/docs/VaultsApi.md +++ b/docs/VaultsApi.md @@ -5,17 +5,12 @@ All URIs are relative to https://developers.fireblocks.com/reference/ | Method | HTTP request | Description | |------------- | ------------- | -------------| | [**activateAssetForVaultAccount**](VaultsApi.md#activateAssetForVaultAccount) | **POST** /vault/accounts/{vaultAccountId}/{assetId}/activate | Activate a wallet in a vault account | -| [**attachTagsToVaultAccounts**](VaultsApi.md#attachTagsToVaultAccounts) | **POST** /vault/accounts/attached_tags/attach | Attach tags to a vault accounts | | [**createLegacyAddress**](VaultsApi.md#createLegacyAddress) | **POST** /vault/accounts/{vaultAccountId}/{assetId}/addresses/{addressId}/create_legacy | Convert a segwit address to legacy format | | [**createMultipleAccounts**](VaultsApi.md#createMultipleAccounts) | **POST** /vault/accounts/bulk | Bulk creation of new vault accounts | -| [**createMultipleDepositAddresses**](VaultsApi.md#createMultipleDepositAddresses) | **POST** /vault/accounts/addresses/bulk | Bulk creation of new deposit addresses | | [**createVaultAccount**](VaultsApi.md#createVaultAccount) | **POST** /vault/accounts | Create a new vault account | | [**createVaultAccountAsset**](VaultsApi.md#createVaultAccountAsset) | **POST** /vault/accounts/{vaultAccountId}/{assetId} | Create a new wallet | | [**createVaultAccountAssetAddress**](VaultsApi.md#createVaultAccountAssetAddress) | **POST** /vault/accounts/{vaultAccountId}/{assetId}/addresses | Create new asset deposit address | -| [**detachTagsFromVaultAccounts**](VaultsApi.md#detachTagsFromVaultAccounts) | **POST** /vault/accounts/attached_tags/detach | Detach tags from a vault accounts | | [**getAssetWallets**](VaultsApi.md#getAssetWallets) | **GET** /vault/asset_wallets | List asset wallets (Paginated) | -| [**getCreateMultipleDepositAddressesJobStatus**](VaultsApi.md#getCreateMultipleDepositAddressesJobStatus) | **GET** /vault/accounts/addresses/bulk/{jobId} | Get job status of bulk creation of new deposit addresses | -| [**getCreateMultipleVaultAccountsJobStatus**](VaultsApi.md#getCreateMultipleVaultAccountsJobStatus) | **GET** /vault/accounts/bulk/{jobId} | Get job status of bulk creation of new vault accounts | | [**getMaxSpendableAmount**](VaultsApi.md#getMaxSpendableAmount) | **GET** /vault/accounts/{vaultAccountId}/{assetId}/max_spendable_amount | Get the maximum spendable amount in a single transaction. | | [**getPagedVaultAccounts**](VaultsApi.md#getPagedVaultAccounts) | **GET** /vault/accounts_paged | List vault accounts (Paginated) | | [**getPublicKeyInfo**](VaultsApi.md#getPublicKeyInfo) | **GET** /vault/public_key_info | Get the public key information | @@ -124,89 +119,6 @@ No authorization required | **0** | Error Response | * X-Request-ID -
| -## attachTagsToVaultAccounts - -> CompletableFuture> attachTagsToVaultAccounts attachTagsToVaultAccounts(vaultAccountsTagAttachmentsRequest, idempotencyKey) - -Attach tags to a vault accounts - -Attach one or more tags to the requested vault accounts. - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.VaultsApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - VaultAccountsTagAttachmentsRequest vaultAccountsTagAttachmentsRequest = new VaultAccountsTagAttachmentsRequest(); // VaultAccountsTagAttachmentsRequest | - String idempotencyKey = "idempotencyKey_example"; // String | 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. - try { - CompletableFuture> response = fireblocks.vaults().attachTagsToVaultAccounts(vaultAccountsTagAttachmentsRequest, idempotencyKey); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling VaultsApi#attachTagsToVaultAccounts"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling VaultsApi#attachTagsToVaultAccounts"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **vaultAccountsTagAttachmentsRequest** | [**VaultAccountsTagAttachmentsRequest**](VaultAccountsTagAttachmentsRequest.md)| | | -| **idempotencyKey** | **String**| 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. | [optional] | - -### Return type - - -CompletableFuture> - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: Not defined - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **204** | Tags were attached successfully | - | - - ## createLegacyAddress > CompletableFuture> createLegacyAddress createLegacyAddress(vaultAccountId, assetId, addressId, idempotencyKey) @@ -302,7 +214,7 @@ No authorization required Bulk creation of new vault accounts -Create multiple vault accounts by running an async job. </br> **Note**: - These endpoints are currently in beta and might be subject to changes. - We limit accounts to 10k per operation and 200k per customer during beta testing. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor. +Create multiple vault accounts by running an async job. </br> **Note**: - These endpoints are currently in beta and might be subject to changes. - We limit accounts to 10k per operation and 200k per customer during beta testing. ### Example @@ -381,91 +293,6 @@ No authorization required | **0** | Error Response | * X-Request-ID -
| -## createMultipleDepositAddresses - -> CompletableFuture> createMultipleDepositAddresses createMultipleDepositAddresses(createMultipleDepositAddressesRequest, idempotencyKey) - -Bulk creation of new deposit addresses - -Create multiple deposit address by running an async job. </br> **Note**: - We limit accounts to 10k per operation. Endpoint Permission: Admin, Non-Signing Admin. - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.VaultsApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - CreateMultipleDepositAddressesRequest createMultipleDepositAddressesRequest = new CreateMultipleDepositAddressesRequest(); // CreateMultipleDepositAddressesRequest | - String idempotencyKey = "idempotencyKey_example"; // String | 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. - try { - CompletableFuture> response = fireblocks.vaults().createMultipleDepositAddresses(createMultipleDepositAddressesRequest, idempotencyKey); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling VaultsApi#createMultipleDepositAddresses"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling VaultsApi#createMultipleDepositAddresses"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **createMultipleDepositAddressesRequest** | [**CreateMultipleDepositAddressesRequest**](CreateMultipleDepositAddressesRequest.md)| | | -| **idempotencyKey** | **String**| 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. | [optional] | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | A JobCreated object | * X-Request-ID -
| -| **0** | Error Response | * X-Request-ID -
| - - ## createVaultAccount > CompletableFuture> createVaultAccount createVaultAccount(createVaultAccountRequest, idempotencyKey) @@ -729,89 +556,6 @@ No authorization required | **0** | Error Response | * X-Request-ID -
| -## detachTagsFromVaultAccounts - -> CompletableFuture> detachTagsFromVaultAccounts detachTagsFromVaultAccounts(vaultAccountsTagAttachmentsRequest, idempotencyKey) - -Detach tags from a vault accounts - -Detach one or more tags from the requested vault account. - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.VaultsApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - VaultAccountsTagAttachmentsRequest vaultAccountsTagAttachmentsRequest = new VaultAccountsTagAttachmentsRequest(); // VaultAccountsTagAttachmentsRequest | - String idempotencyKey = "idempotencyKey_example"; // String | 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. - try { - CompletableFuture> response = fireblocks.vaults().detachTagsFromVaultAccounts(vaultAccountsTagAttachmentsRequest, idempotencyKey); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling VaultsApi#detachTagsFromVaultAccounts"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling VaultsApi#detachTagsFromVaultAccounts"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **vaultAccountsTagAttachmentsRequest** | [**VaultAccountsTagAttachmentsRequest**](VaultAccountsTagAttachmentsRequest.md)| | | -| **idempotencyKey** | **String**| 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. | [optional] | - -### Return type - - -CompletableFuture> - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: Not defined - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **204** | Tags were detached successfully | - | - - ## getAssetWallets > CompletableFuture> getAssetWallets getAssetWallets(totalAmountLargerThan, assetId, orderBy, before, after, limit) @@ -904,172 +648,6 @@ No authorization required | **200** | A PaginatedAssetWalletResponse object | * X-Request-ID -
| -## getCreateMultipleDepositAddressesJobStatus - -> CompletableFuture> getCreateMultipleDepositAddressesJobStatus getCreateMultipleDepositAddressesJobStatus(jobId) - -Get job status of bulk creation of new deposit addresses - -Returns the status of bulk creation of new deposit addresses job and the result or error Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.VaultsApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - String jobId = "019681b4-107d-7243-942d-4c3c30e36fae"; // String | The ID of the job to create addresses - try { - CompletableFuture> response = fireblocks.vaults().getCreateMultipleDepositAddressesJobStatus(jobId); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling VaultsApi#getCreateMultipleDepositAddressesJobStatus"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling VaultsApi#getCreateMultipleDepositAddressesJobStatus"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **jobId** | **String**| The ID of the job to create addresses | | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | A Job with status | * X-Request-ID -
| -| **0** | Error Response | * X-Request-ID -
| - - -## getCreateMultipleVaultAccountsJobStatus - -> CompletableFuture> getCreateMultipleVaultAccountsJobStatus getCreateMultipleVaultAccountsJobStatus(jobId) - -Get job status of bulk creation of new vault accounts - -Returns the status of bulk creation of new vault accounts job and the result or error Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.VaultsApi; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - String jobId = "019681b4-107d-7243-942d-4c3c30e36fae"; // String | The ID of the job to create addresses - try { - CompletableFuture> response = fireblocks.vaults().getCreateMultipleVaultAccountsJobStatus(jobId); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling VaultsApi#getCreateMultipleVaultAccountsJobStatus"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling VaultsApi#getCreateMultipleVaultAccountsJobStatus"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **jobId** | **String**| The ID of the job to create addresses | | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | A Job with status | * X-Request-ID -
| -| **0** | Error Response | * X-Request-ID -
| - - ## getMaxSpendableAmount > CompletableFuture> getMaxSpendableAmount getMaxSpendableAmount(vaultAccountId, assetId, manualSignging) @@ -1159,7 +737,7 @@ No authorization required ## getPagedVaultAccounts -> CompletableFuture> getPagedVaultAccounts getPagedVaultAccounts(namePrefix, nameSuffix, minAmountThreshold, assetId, orderBy, before, after, limit, tagIds) +> CompletableFuture> getPagedVaultAccounts getPagedVaultAccounts(namePrefix, nameSuffix, minAmountThreshold, assetId, orderBy, before, after, limit) List vault accounts (Paginated) @@ -1196,9 +774,8 @@ public class Example { String before = "before_example"; // String | String after = "after_example"; // String | BigDecimal limit = new BigDecimal("200"); // BigDecimal | - List tagIds = Arrays.asList(); // List | List of tag IDs to filter vault accounts. try { - CompletableFuture> response = fireblocks.vaults().getPagedVaultAccounts(namePrefix, nameSuffix, minAmountThreshold, assetId, orderBy, before, after, limit, tagIds); + CompletableFuture> response = fireblocks.vaults().getPagedVaultAccounts(namePrefix, nameSuffix, minAmountThreshold, assetId, orderBy, before, after, limit); System.out.println("Status code: " + response.get().getStatusCode()); System.out.println("Response headers: " + response.get().getHeaders()); System.out.println("Response body: " + response.get().getData()); @@ -1233,7 +810,6 @@ public class Example { | **before** | **String**| | [optional] | | **after** | **String**| | [optional] | | **limit** | **BigDecimal**| | [optional] [default to 200] | -| **tagIds** | [**List<UUID>**](UUID.md)| List of tag IDs to filter vault accounts. | [optional] | ### Return type diff --git a/docs/VerdictConfig.md b/docs/VerdictConfig.md deleted file mode 100644 index 988bdd75..00000000 --- a/docs/VerdictConfig.md +++ /dev/null @@ -1,34 +0,0 @@ - - -# VerdictConfig - -Verdict configuration - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**action** | [**ActionEnum**](#ActionEnum) | Verdict action | | -|**approvers** | [**ApproversConfig**](ApproversConfig.md) | | [optional] | -|**designatedSigners** | [**DesignatedSignersConfig**](DesignatedSignersConfig.md) | | [optional] | - - - -## Enum: ActionEnum - -| Name | Value | -|---- | -----| -| ALLOW | "ALLOW" | -| BLOCK | "BLOCK" | -| _2_TIER | "2-TIER" | -| ACCEPT | "ACCEPT" | -| REJECT | "REJECT" | -| ALERT | "ALERT" | -| SCREEN | "SCREEN" | -| PASS | "PASS" | -| WAIT | "WAIT" | -| FREEZE | "FREEZE" | -| CANCEL | "CANCEL" | - - - diff --git a/docs/Version.md b/docs/Version.md deleted file mode 100644 index 6bfca048..00000000 --- a/docs/Version.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# Version - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**hash** | **String** | The version hash of the cosigner | | - - - diff --git a/docs/Web3ConnectionsApi.md b/docs/Web3ConnectionsApi.md index 234e8a28..a35ac703 100644 --- a/docs/Web3ConnectionsApi.md +++ b/docs/Web3ConnectionsApi.md @@ -13,7 +13,7 @@ All URIs are relative to https://developers.fireblocks.com/reference/ ## create -> CompletableFuture> create create(createConnectionRequest, idempotencyKey, xEndUserWalletId) +> CompletableFuture> create create(createConnectionRequest, idempotencyKey) Create a new Web3 connection. @@ -44,9 +44,8 @@ public class Example { CreateConnectionRequest createConnectionRequest = new CreateConnectionRequest(); // CreateConnectionRequest | String idempotencyKey = "idempotencyKey_example"; // String | 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. - UUID xEndUserWalletId = UUID.randomUUID(); // UUID | Unique ID of the End-User wallet to the API request. Required for end-user wallet operations. try { - CompletableFuture> response = fireblocks.web3Connections().create(createConnectionRequest, idempotencyKey, xEndUserWalletId); + CompletableFuture> response = fireblocks.web3Connections().create(createConnectionRequest, idempotencyKey); System.out.println("Status code: " + response.get().getStatusCode()); System.out.println("Response headers: " + response.get().getHeaders()); System.out.println("Response body: " + response.get().getData()); @@ -75,7 +74,6 @@ public class Example { |------------- | ------------- | ------------- | -------------| | **createConnectionRequest** | [**CreateConnectionRequest**](CreateConnectionRequest.md)| | | | **idempotencyKey** | **String**| 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. | [optional] | -| **xEndUserWalletId** | **UUID**| Unique ID of the End-User wallet to the API request. Required for end-user wallet operations. | [optional] | ### Return type @@ -101,7 +99,7 @@ No authorization required ## get -> CompletableFuture> get get(xEndUserWalletId, order, filter, sort, pageSize, next) +> CompletableFuture> get get(order, filter, sort, pageSize, next) List all open Web3 connections. @@ -130,14 +128,13 @@ public class Example { .secretKey("my-secret-key"); Fireblocks fireblocks = new Fireblocks(configurationOptions); - UUID xEndUserWalletId = UUID.randomUUID(); // UUID | Unique ID of the End-User wallet to the API request. Required for end-user wallet operations. String order = "ASC"; // String | List order; ascending or descending. GetFilterParameter filter = new GetFilterParameter(); // GetFilterParameter | Parsed filter object String sort = "id"; // String | Property to sort Web3 connections by. BigDecimal pageSize = new BigDecimal("10"); // BigDecimal | Amount of results to return in the next page. String next = "next_example"; // String | Cursor to the next page try { - CompletableFuture> response = fireblocks.web3Connections().get(xEndUserWalletId, order, filter, sort, pageSize, next); + CompletableFuture> response = fireblocks.web3Connections().get(order, filter, sort, pageSize, next); System.out.println("Status code: " + response.get().getStatusCode()); System.out.println("Response headers: " + response.get().getHeaders()); System.out.println("Response body: " + response.get().getData()); @@ -164,7 +161,6 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **xEndUserWalletId** | **UUID**| Unique ID of the End-User wallet to the API request. Required for end-user wallet operations. | [optional] | | **order** | **String**| List order; ascending or descending. | [optional] [default to ASC] [enum: ASC, DESC] | | **filter** | [**GetFilterParameter**](.md)| Parsed filter object | [optional] | | **sort** | **String**| Property to sort Web3 connections by. | [optional] [default to createdAt] [enum: id, userId, vaultAccountId, createdAt, feeLevel, appUrl, appName] | @@ -195,7 +191,7 @@ No authorization required ## remove -> CompletableFuture> remove remove(id, xEndUserWalletId) +> CompletableFuture> remove remove(id) Remove an existing Web3 connection. @@ -225,9 +221,8 @@ public class Example { Fireblocks fireblocks = new Fireblocks(configurationOptions); String id = "id_example"; // String | The ID of the existing Web3 connection to remove. - UUID xEndUserWalletId = UUID.randomUUID(); // UUID | Unique ID of the End-User wallet to the API request. Required for end-user wallet operations. try { - CompletableFuture> response = fireblocks.web3Connections().remove(id, xEndUserWalletId); + CompletableFuture> response = fireblocks.web3Connections().remove(id); System.out.println("Status code: " + response.get().getStatusCode()); System.out.println("Response headers: " + response.get().getHeaders()); } catch (InterruptedException | ExecutionException e) { @@ -254,7 +249,6 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **id** | **String**| The ID of the existing Web3 connection to remove. | | -| **xEndUserWalletId** | **UUID**| Unique ID of the End-User wallet to the API request. Required for end-user wallet operations. | [optional] | ### Return type @@ -280,7 +274,7 @@ No authorization required ## submit -> CompletableFuture> submit submit(respondToConnectionRequest, id, idempotencyKey, xEndUserWalletId) +> CompletableFuture> submit submit(respondToConnectionRequest, id, idempotencyKey) Respond to a pending Web3 connection request. @@ -312,9 +306,8 @@ public class Example { RespondToConnectionRequest respondToConnectionRequest = new RespondToConnectionRequest(); // RespondToConnectionRequest | String id = "id_example"; // String | The ID of the initiated Web3 connection to approve. String idempotencyKey = "idempotencyKey_example"; // String | 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. - UUID xEndUserWalletId = UUID.randomUUID(); // UUID | Unique ID of the End-User wallet to the API request. Required for end-user wallet operations. try { - CompletableFuture> response = fireblocks.web3Connections().submit(respondToConnectionRequest, id, idempotencyKey, xEndUserWalletId); + CompletableFuture> response = fireblocks.web3Connections().submit(respondToConnectionRequest, id, idempotencyKey); System.out.println("Status code: " + response.get().getStatusCode()); System.out.println("Response headers: " + response.get().getHeaders()); } catch (InterruptedException | ExecutionException e) { @@ -343,7 +336,6 @@ public class Example { | **respondToConnectionRequest** | [**RespondToConnectionRequest**](RespondToConnectionRequest.md)| | | | **id** | **String**| The ID of the initiated Web3 connection to approve. | | | **idempotencyKey** | **String**| 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. | [optional] | -| **xEndUserWalletId** | **UUID**| Unique ID of the End-User wallet to the API request. Required for end-user wallet operations. | [optional] | ### Return type diff --git a/docs/Webhook.md b/docs/Webhook.md deleted file mode 100644 index f938aca7..00000000 --- a/docs/Webhook.md +++ /dev/null @@ -1,29 +0,0 @@ - - -# Webhook - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**id** | **UUID** | The id of the webhook | | -|**url** | **String** | The url of the webhook where notifications will be sent. Must be a valid URL and https. | | -|**description** | **String** | description of the webhook of what it is used for | [optional] | -|**events** | **List<WebhookEvent>** | The events that the webhook will be subscribed to | | -|**status** | [**StatusEnum**](#StatusEnum) | The status of the webhook | | -|**createdAt** | **Long** | The date and time the webhook was created in milliseconds | | -|**updatedAt** | **Long** | The date and time the webhook was last updated in milliseconds | | - - - -## Enum: StatusEnum - -| Name | Value | -|---- | -----| -| DISABLED | "DISABLED" | -| ENABLED | "ENABLED" | -| SUSPENDED | "SUSPENDED" | - - - diff --git a/docs/WebhookEvent.md b/docs/WebhookEvent.md deleted file mode 100644 index 78f01547..00000000 --- a/docs/WebhookEvent.md +++ /dev/null @@ -1,57 +0,0 @@ - - -# WebhookEvent - -## Enum - - -* `TRANSACTION_CREATED` (value: `"transaction.created"`) - -* `TRANSACTION_STATUS_UPDATED` (value: `"transaction.status.updated"`) - -* `TRANSACTION_APPROVAL_STATUS_UPDATED` (value: `"transaction.approval_status.updated"`) - -* `TRANSACTION_NETWORK_RECORDS_PROCESSING_COMPLETED` (value: `"transaction.network_records.processing_completed"`) - -* `EXTERNAL_WALLET_ASSET_ADDED` (value: `"external_wallet.asset.added"`) - -* `EXTERNAL_WALLET_ASSET_REMOVED` (value: `"external_wallet.asset.removed"`) - -* `INTERNAL_WALLET_ASSET_ADDED` (value: `"internal_wallet.asset.added"`) - -* `INTERNAL_WALLET_ASSET_REMOVED` (value: `"internal_wallet.asset.removed"`) - -* `CONTRACT_WALLET_ASSET_ADDED` (value: `"contract_wallet.asset.added"`) - -* `CONTRACT_WALLET_ASSET_REMOVED` (value: `"contract_wallet.asset.removed"`) - -* `VAULT_ACCOUNT_CREATED` (value: `"vault_account.created"`) - -* `VAULT_ACCOUNT_ASSET_ADDED` (value: `"vault_account.asset.added"`) - -* `VAULT_ACCOUNT_ASSET_BALANCE_UPDATED` (value: `"vault_account.asset.balance_updated"`) - -* `EMBEDDED_WALLET_STATUS_UPDATED` (value: `"embedded_wallet.status.updated"`) - -* `EMBEDDED_WALLET_CREATED` (value: `"embedded_wallet.created"`) - -* `EMBEDDED_WALLET_ASSET_BALANCE_UPDATED` (value: `"embedded_wallet.asset.balance_updated"`) - -* `EMBEDDED_WALLET_ASSET_ADDED` (value: `"embedded_wallet.asset.added"`) - -* `EMBEDDED_WALLET_ACCOUNT_CREATED` (value: `"embedded_wallet.account.created"`) - -* `EMBEDDED_WALLET_DEVICE_ADDED` (value: `"embedded_wallet.device.added"`) - -* `ONCHAIN_DATA_UPDATED` (value: `"onchain_data.updated"`) - -* `CONNECTION_ADDED` (value: `"connection.added"`) - -* `CONNECTION_REMOVED` (value: `"connection.removed"`) - -* `CONNECTION_REQUEST_WAITING_PEER_APPROVAL` (value: `"connection.request.waiting_peer_approval"`) - -* `CONNECTION_REQUEST_REJECTED_BY_PEER` (value: `"connection.request.rejected_by_peer"`) - - - diff --git a/docs/WebhookPaginatedResponse.md b/docs/WebhookPaginatedResponse.md deleted file mode 100644 index 8543bed4..00000000 --- a/docs/WebhookPaginatedResponse.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# WebhookPaginatedResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**data** | [**List<Webhook>**](Webhook.md) | The data of the current page | | -|**next** | **String** | The ID of the next page | [optional] | - - - diff --git a/docs/WebhooksV2Api.md b/docs/WebhooksV2Api.md deleted file mode 100644 index 8f222c1e..00000000 --- a/docs/WebhooksV2Api.md +++ /dev/null @@ -1,1065 +0,0 @@ -# WebhooksV2Api - -All URIs are relative to https://developers.fireblocks.com/reference/ - -| Method | HTTP request | Description | -|------------- | ------------- | -------------| -| [**createWebhook**](WebhooksV2Api.md#createWebhook) | **POST** /webhooks | Create new webhook | -| [**deleteWebhook**](WebhooksV2Api.md#deleteWebhook) | **DELETE** /webhooks/{webhookId} | Delete webhook | -| [**getNotification**](WebhooksV2Api.md#getNotification) | **GET** /webhooks/{webhookId}/notifications/{notificationId} | Get notification by id | -| [**getNotificationAttempts**](WebhooksV2Api.md#getNotificationAttempts) | **GET** /webhooks/{webhookId}/notifications/{notificationId}/attempts | Get notification attempts | -| [**getNotifications**](WebhooksV2Api.md#getNotifications) | **GET** /webhooks/{webhookId}/notifications | Get all notifications by webhook id | -| [**getResendJobStatus**](WebhooksV2Api.md#getResendJobStatus) | **GET** /webhooks/{webhookId}/notifications/resend_failed/jobs/{jobId} | Get resend job status | -| [**getWebhook**](WebhooksV2Api.md#getWebhook) | **GET** /webhooks/{webhookId} | Get webhook by id | -| [**getWebhooks**](WebhooksV2Api.md#getWebhooks) | **GET** /webhooks | Get all webhooks | -| [**resendFailedNotifications**](WebhooksV2Api.md#resendFailedNotifications) | **POST** /webhooks/{webhookId}/notifications/resend_failed | Resend failed notifications | -| [**resendNotificationById**](WebhooksV2Api.md#resendNotificationById) | **POST** /webhooks/{webhookId}/notifications/{notificationId}/resend | Resend notification by id | -| [**resendNotificationsByResourceId**](WebhooksV2Api.md#resendNotificationsByResourceId) | **POST** /webhooks/{webhookId}/notifications/resend_by_resource | Resend notifications by resource Id | -| [**updateWebhook**](WebhooksV2Api.md#updateWebhook) | **PATCH** /webhooks/{webhookId} | Update webhook | - - - -## createWebhook - -> CompletableFuture> createWebhook createWebhook(createWebhookRequest, idempotencyKey) - -Create new webhook - -Creates a new webhook, which will be triggered on the specified events Endpoint Permission: Owner, Admin, Non-Signing Admin. - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.WebhooksV2Api; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - CreateWebhookRequest createWebhookRequest = new CreateWebhookRequest(); // CreateWebhookRequest | - String idempotencyKey = "idempotencyKey_example"; // String | 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. - try { - CompletableFuture> response = fireblocks.webhooksV2().createWebhook(createWebhookRequest, idempotencyKey); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling WebhooksV2Api#createWebhook"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling WebhooksV2Api#createWebhook"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **createWebhookRequest** | [**CreateWebhookRequest**](CreateWebhookRequest.md)| | | -| **idempotencyKey** | **String**| 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. | [optional] | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **201** | created new webhook successfully | * X-Request-ID -
| -| **0** | Error Response | * X-Request-ID -
| - - -## deleteWebhook - -> CompletableFuture> deleteWebhook deleteWebhook(webhookId) - -Delete webhook - -Delete a webhook by its id Endpoint Permission: Owner, Admin, Non-Signing Admin. - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.WebhooksV2Api; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - UUID webhookId = UUID.fromString("44fcead0-7053-4831-a53a-df7fb90d440f"); // UUID | The unique identifier of the webhook - try { - CompletableFuture> response = fireblocks.webhooksV2().deleteWebhook(webhookId); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling WebhooksV2Api#deleteWebhook"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling WebhooksV2Api#deleteWebhook"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **webhookId** | **UUID**| The unique identifier of the webhook | | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Deleted webhook object | * X-Request-ID -
| -| **0** | Error Response | * X-Request-ID -
| - - -## getNotification - -> CompletableFuture> getNotification getNotification(webhookId, notificationId, includeData) - -Get notification by id - -Get notification by id - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.WebhooksV2Api; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - String webhookId = "webhookId_example"; // String | The ID of the webhook to fetch - String notificationId = "notificationId_example"; // String | The ID of the notification to fetch - Boolean includeData = true; // Boolean | Include the data of the notification - try { - CompletableFuture> response = fireblocks.webhooksV2().getNotification(webhookId, notificationId, includeData); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling WebhooksV2Api#getNotification"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling WebhooksV2Api#getNotification"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **webhookId** | **String**| The ID of the webhook to fetch | | -| **notificationId** | **String**| The ID of the notification to fetch | | -| **includeData** | **Boolean**| Include the data of the notification | [optional] | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | * X-Request-ID -
| -| **0** | Error Response | * X-Request-ID -
| - - -## getNotificationAttempts - -> CompletableFuture> getNotificationAttempts getNotificationAttempts(webhookId, notificationId, pageCursor, pageSize) - -Get notification attempts - -Get notification attempts by notification id - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.WebhooksV2Api; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - String webhookId = "webhookId_example"; // String | The ID of the webhook to fetch - String notificationId = "notificationId_example"; // String | The ID of the notification to fetch - String pageCursor = "pageCursor_example"; // String | Cursor of the required page - BigDecimal pageSize = new BigDecimal("10"); // BigDecimal | Maximum number of items in the page - try { - CompletableFuture> response = fireblocks.webhooksV2().getNotificationAttempts(webhookId, notificationId, pageCursor, pageSize); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling WebhooksV2Api#getNotificationAttempts"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling WebhooksV2Api#getNotificationAttempts"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **webhookId** | **String**| The ID of the webhook to fetch | | -| **notificationId** | **String**| The ID of the notification to fetch | | -| **pageCursor** | **String**| Cursor of the required page | [optional] | -| **pageSize** | **BigDecimal**| Maximum number of items in the page | [optional] [default to 10] | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | * X-Request-ID -
| -| **0** | Error Response | * X-Request-ID -
| - - -## getNotifications - -> CompletableFuture> getNotifications getNotifications(webhookId, order, sortBy, pageCursor, pageSize, startTime, endTime, statuses, events, resourceId) - -Get all notifications by webhook id - -Get all notifications by webhook id (paginated) - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.WebhooksV2Api; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - UUID webhookId = UUID.fromString("44fcead0-7053-4831-a53a-df7fb90d440f"); // UUID | - String order = "ASC"; // String | ASC / DESC ordering (default DESC) - String sortBy = "id"; // String | Sort by field - String pageCursor = "pageCursor_example"; // String | Cursor of the required page - BigDecimal pageSize = new BigDecimal("100"); // BigDecimal | Maximum number of items in the page - BigDecimal startTime = new BigDecimal("1625097600000"); // BigDecimal | Start time in milliseconds since epoch to filter by notifications created after this time (default 31 days ago) - BigDecimal endTime = new BigDecimal("1625017600000"); // BigDecimal | End time in milliseconds since epoch to filter by notifications created before this time (default current time) - List statuses = Arrays.asList(); // List | List of notification statuses to filter by - List events = Arrays.asList(); // List | List of webhook event types to filter by - String resourceId = "44fcead0-7053-4831-a53a-df7fb90d440f"; // String | Resource ID to filter by - try { - CompletableFuture> response = fireblocks.webhooksV2().getNotifications(webhookId, order, sortBy, pageCursor, pageSize, startTime, endTime, statuses, events, resourceId); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling WebhooksV2Api#getNotifications"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling WebhooksV2Api#getNotifications"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **webhookId** | **UUID**| | | -| **order** | **String**| ASC / DESC ordering (default DESC) | [optional] [default to DESC] [enum: ASC, DESC] | -| **sortBy** | **String**| Sort by field | [optional] [default to updatedAt] [enum: id, createdAt, updatedAt, status, eventType, resourceId] | -| **pageCursor** | **String**| Cursor of the required page | [optional] | -| **pageSize** | **BigDecimal**| Maximum number of items in the page | [optional] [default to 100] | -| **startTime** | **BigDecimal**| Start time in milliseconds since epoch to filter by notifications created after this time (default 31 days ago) | [optional] | -| **endTime** | **BigDecimal**| End time in milliseconds since epoch to filter by notifications created before this time (default current time) | [optional] | -| **statuses** | [**List<NotificationStatus>**](NotificationStatus.md)| List of notification statuses to filter by | [optional] | -| **events** | [**List<WebhookEvent>**](WebhookEvent.md)| List of webhook event types to filter by | [optional] | -| **resourceId** | **String**| Resource ID to filter by | [optional] | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | A paginated response containing NotificationExternalDTO objects | * X-Request-ID -
| -| **0** | Error Response | * X-Request-ID -
| - - -## getResendJobStatus - -> CompletableFuture> getResendJobStatus getResendJobStatus(webhookId, jobId) - -Get resend job status - -Get the status of a resend job - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.WebhooksV2Api; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - String webhookId = "webhookId_example"; // String | The ID of the webhook - String jobId = "jobId_example"; // String | The ID of the resend job - try { - CompletableFuture> response = fireblocks.webhooksV2().getResendJobStatus(webhookId, jobId); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling WebhooksV2Api#getResendJobStatus"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling WebhooksV2Api#getResendJobStatus"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **webhookId** | **String**| The ID of the webhook | | -| **jobId** | **String**| The ID of the resend job | | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Job status | * X-Request-ID -
| -| **0** | Error Response | * X-Request-ID -
| - - -## getWebhook - -> CompletableFuture> getWebhook getWebhook(webhookId) - -Get webhook by id - -Retrieve a webhook by its id - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.WebhooksV2Api; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - UUID webhookId = UUID.fromString("44fcead0-7053-4831-a53a-df7fb90d440f"); // UUID | The unique identifier of the webhook - try { - CompletableFuture> response = fireblocks.webhooksV2().getWebhook(webhookId); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling WebhooksV2Api#getWebhook"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling WebhooksV2Api#getWebhook"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **webhookId** | **UUID**| The unique identifier of the webhook | | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | A webhook object | * X-Request-ID -
| -| **0** | Error Response | * X-Request-ID -
| - - -## getWebhooks - -> CompletableFuture> getWebhooks getWebhooks(order, pageCursor, pageSize) - -Get all webhooks - -Get all webhooks (paginated) - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.WebhooksV2Api; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - String order = "ASC"; // String | ASC / DESC ordering (default DESC) - String pageCursor = "pageCursor_example"; // String | Cursor of the required page - BigDecimal pageSize = new BigDecimal("10"); // BigDecimal | Maximum number of items in the page - try { - CompletableFuture> response = fireblocks.webhooksV2().getWebhooks(order, pageCursor, pageSize); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling WebhooksV2Api#getWebhooks"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling WebhooksV2Api#getWebhooks"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **order** | **String**| ASC / DESC ordering (default DESC) | [optional] [default to DESC] [enum: ASC, DESC] | -| **pageCursor** | **String**| Cursor of the required page | [optional] | -| **pageSize** | **BigDecimal**| Maximum number of items in the page | [optional] [default to 10] | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | A paginated response containing WebhookDto objects | * X-Request-ID -
| -| **0** | Error Response | * X-Request-ID -
| - - -## resendFailedNotifications - -> CompletableFuture> resendFailedNotifications resendFailedNotifications(resendFailedNotificationsRequest, webhookId, idempotencyKey) - -Resend failed notifications - -Resend all failed notifications for a webhook in the last 24 hours Endpoint Permission: Owner, Admin, Non-Signing Admin, Editor, Signer. - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.WebhooksV2Api; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - ResendFailedNotificationsRequest resendFailedNotificationsRequest = new ResendFailedNotificationsRequest(); // ResendFailedNotificationsRequest | - String webhookId = "webhookId_example"; // String | The ID of the webhook - String idempotencyKey = "idempotencyKey_example"; // String | 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. - try { - CompletableFuture> response = fireblocks.webhooksV2().resendFailedNotifications(resendFailedNotificationsRequest, webhookId, idempotencyKey); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling WebhooksV2Api#resendFailedNotifications"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling WebhooksV2Api#resendFailedNotifications"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **resendFailedNotificationsRequest** | [**ResendFailedNotificationsRequest**](ResendFailedNotificationsRequest.md)| | | -| **webhookId** | **String**| The ID of the webhook | | -| **idempotencyKey** | **String**| 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. | [optional] | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | No failed notifications to resend | * X-Request-ID -
| -| **202** | Resend failed notifications request was accepted and is being processed | * X-Request-ID -
* Location -
| -| **0** | Error Response | * X-Request-ID -
| - - -## resendNotificationById - -> CompletableFuture> resendNotificationById resendNotificationById(webhookId, notificationId, idempotencyKey) - -Resend notification by id - -Resend notification by ID Endpoint Permission: Owner, Admin, Non-Signing Admin, Editor, Signer. - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.WebhooksV2Api; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - String webhookId = "webhookId_example"; // String | The ID of the webhook - String notificationId = "notificationId_example"; // String | The ID of the notification - String idempotencyKey = "idempotencyKey_example"; // String | 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. - try { - CompletableFuture> response = fireblocks.webhooksV2().resendNotificationById(webhookId, notificationId, idempotencyKey); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling WebhooksV2Api#resendNotificationById"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling WebhooksV2Api#resendNotificationById"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **webhookId** | **String**| The ID of the webhook | | -| **notificationId** | **String**| The ID of the notification | | -| **idempotencyKey** | **String**| 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. | [optional] | - -### Return type - - -CompletableFuture> - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **202** | Resend notification request was accepted and is being processed | * X-Request-ID -
| -| **0** | Error Response | * X-Request-ID -
| - - -## resendNotificationsByResourceId - -> CompletableFuture> resendNotificationsByResourceId resendNotificationsByResourceId(resendNotificationsByResourceIdRequest, webhookId, idempotencyKey) - -Resend notifications by resource Id - -Resend notifications by resource Id Endpoint Permission: Owner, Admin, Non-Signing Admin, Editor, Signer. - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.WebhooksV2Api; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - ResendNotificationsByResourceIdRequest resendNotificationsByResourceIdRequest = new ResendNotificationsByResourceIdRequest(); // ResendNotificationsByResourceIdRequest | - String webhookId = "webhookId_example"; // String | The ID of the webhook - String idempotencyKey = "idempotencyKey_example"; // String | 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. - try { - CompletableFuture> response = fireblocks.webhooksV2().resendNotificationsByResourceId(resendNotificationsByResourceIdRequest, webhookId, idempotencyKey); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling WebhooksV2Api#resendNotificationsByResourceId"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling WebhooksV2Api#resendNotificationsByResourceId"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **resendNotificationsByResourceIdRequest** | [**ResendNotificationsByResourceIdRequest**](ResendNotificationsByResourceIdRequest.md)| | | -| **webhookId** | **String**| The ID of the webhook | | -| **idempotencyKey** | **String**| 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. | [optional] | - -### Return type - - -CompletableFuture> - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **202** | Resend notifications by resource request was accepted and is being processed | * X-Request-ID -
| -| **0** | Error Response | * X-Request-ID -
| - - -## updateWebhook - -> CompletableFuture> updateWebhook updateWebhook(updateWebhookRequest, webhookId) - -Update webhook - -Update a webhook by its id Endpoint Permission: Owner, Admin, Non-Signing Admin. - -### Example - -```java -// Import classes: -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.BasePath; -import com.fireblocks.sdk.Fireblocks; -import com.fireblocks.sdk.ConfigurationOptions; -import com.fireblocks.sdk.model.*; -import com.fireblocks.sdk.api.WebhooksV2Api; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; - -public class Example { - public static void main(String[] args) { - ConfigurationOptions configurationOptions = new ConfigurationOptions() - .basePath(BasePath.Sandbox) - .apiKey("my-api-key") - .secretKey("my-secret-key"); - Fireblocks fireblocks = new Fireblocks(configurationOptions); - - UpdateWebhookRequest updateWebhookRequest = new UpdateWebhookRequest(); // UpdateWebhookRequest | - UUID webhookId = UUID.fromString("44fcead0-7053-4831-a53a-df7fb90d440f"); // UUID | The unique identifier of the webhook - try { - CompletableFuture> response = fireblocks.webhooksV2().updateWebhook(updateWebhookRequest, webhookId); - System.out.println("Status code: " + response.get().getStatusCode()); - System.out.println("Response headers: " + response.get().getHeaders()); - System.out.println("Response body: " + response.get().getData()); - } catch (InterruptedException | ExecutionException e) { - ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling WebhooksV2Api#updateWebhook"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } catch (ApiException e) { - System.err.println("Exception when calling WebhooksV2Api#updateWebhook"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Response headers: " + e.getResponseHeaders()); - System.err.println("Reason: " + e.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **updateWebhookRequest** | [**UpdateWebhookRequest**](UpdateWebhookRequest.md)| | | -| **webhookId** | **UUID**| The unique identifier of the webhook | | - -### Return type - -CompletableFuture> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Updated webhook object | * X-Request-ID -
| -| **0** | Error Response | * X-Request-ID -
| - diff --git a/docs/WithdrawRequest.md b/docs/WithdrawRequestDto.md similarity index 69% rename from docs/WithdrawRequest.md rename to docs/WithdrawRequestDto.md index 25ce3874..ebb49d25 100644 --- a/docs/WithdrawRequest.md +++ b/docs/WithdrawRequestDto.md @@ -1,6 +1,6 @@ -# WithdrawRequest +# WithdrawRequestDto ## Properties @@ -9,7 +9,7 @@ |------------ | ------------- | ------------- | -------------| |**id** | **String** | id of position to withdraw | | |**fee** | **String** | Represents the fee for a transaction, which can be specified as a percentage value. Only one of fee/feeLevel is required. | [optional] | -|**feeLevel** | **FeeLevel** | | [optional] | +|**feeLevel** | **String** | Represents the fee level for a transaction, which can be set as slow, medium, or fast. Only one of fee/feeLevel is required. | [optional] | |**txNote** | **String** | The note to associate with the transactions. | [optional] | diff --git a/docs/WriteCallFunctionDto.md b/docs/WriteCallFunctionDto.md index 7cbfb037..9f0b2417 100644 --- a/docs/WriteCallFunctionDto.md +++ b/docs/WriteCallFunctionDto.md @@ -8,13 +8,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**vaultAccountId** | **String** | The vault account id this contract was deploy from | | -|**abiFunction** | [**WriteCallFunctionDtoAbiFunction**](WriteCallFunctionDtoAbiFunction.md) | | | +|**abiFunction** | [**List<WriteAbiFunction>**](WriteAbiFunction.md) | The abi of the read function you wish to call | | |**amount** | **String** | Amount in base asset. Being used in payable functions | [optional] | |**feeLevel** | [**FeeLevelEnum**](#FeeLevelEnum) | Fee level for the write function transaction. interchangeable with the 'fee' field | [optional] | |**fee** | **String** | Max fee amount for the write function transaction. interchangeable with the 'feeLevel' field | [optional] | |**note** | **String** | Custom note, not sent to the blockchain, that describes the transaction at your Fireblocks workspace | [optional] | -|**useGasless** | **Boolean** | Indicates whether the token should be created in a gasless manner, utilizing the ERC-2771 standard. When set to true, the transaction will be relayed by a designated relayer. The workspace must be configured to use Fireblocks gasless relay. | [optional] | -|**externalId** | **String** | External id that can be used to identify the transaction in your system. The unique identifier of the transaction outside of Fireblocks with max length of 255 characters | [optional] | diff --git a/docs/WriteCallFunctionDtoAbiFunction.md b/docs/WriteCallFunctionDtoAbiFunction.md deleted file mode 100644 index ea163f6e..00000000 --- a/docs/WriteCallFunctionDtoAbiFunction.md +++ /dev/null @@ -1,37 +0,0 @@ - - -# WriteCallFunctionDtoAbiFunction - -## oneOf schemas -* [SolanaInstructionWithValue](SolanaInstructionWithValue.md) -* [WriteAbiFunction](WriteAbiFunction.md) - -## Example -```java -// Import classes: -import com.fireblocks.sdk.model.WriteCallFunctionDtoAbiFunction; -import com.fireblocks.sdk.model.SolanaInstructionWithValue; -import com.fireblocks.sdk.model.WriteAbiFunction; - -public class Example { - public static void main(String[] args) { - WriteCallFunctionDtoAbiFunction exampleWriteCallFunctionDtoAbiFunction = new WriteCallFunctionDtoAbiFunction(); - - // create a new SolanaInstructionWithValue - SolanaInstructionWithValue exampleSolanaInstructionWithValue = new SolanaInstructionWithValue(); - // set WriteCallFunctionDtoAbiFunction to SolanaInstructionWithValue - exampleWriteCallFunctionDtoAbiFunction.setActualInstance(exampleSolanaInstructionWithValue); - // to get back the SolanaInstructionWithValue set earlier - SolanaInstructionWithValue testSolanaInstructionWithValue = (SolanaInstructionWithValue) exampleWriteCallFunctionDtoAbiFunction.getActualInstance(); - - // create a new WriteAbiFunction - WriteAbiFunction exampleWriteAbiFunction = new WriteAbiFunction(); - // set WriteCallFunctionDtoAbiFunction to WriteAbiFunction - exampleWriteCallFunctionDtoAbiFunction.setActualInstance(exampleWriteAbiFunction); - // to get back the WriteAbiFunction set earlier - WriteAbiFunction testWriteAbiFunction = (WriteAbiFunction) exampleWriteCallFunctionDtoAbiFunction.getActualInstance(); - } -} -``` - - diff --git a/pom.xml b/pom.xml index 9c87b073..89176ce6 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ fireblocks-sdk jar fireblocks-sdk - 12.1.0 + 0.0.0 https://github.com/fireblocks/java-sdk The Fireblocks Official SDK is a comprehensive software development kit that enables seamless integration and interaction with the Fireblocks platform. Fireblocks is a cutting-edge blockchain infrastructure platform that provides secure and scalable solutions for managing digital assets and transactions. This SDK empowers developers to build robust applications that can interact with the Fireblocks platform's features, including creating and managing vault accounts, initiating secure transactions, managing assets, and more. It abstracts complex interactions with the Fireblocks API, making it easier for developers to leverage the platform's capabilities while adhering to best practices in security and efficiency. diff --git a/src/main/java/com/fireblocks/sdk/Configuration.java b/src/main/java/com/fireblocks/sdk/Configuration.java index 6eed6dd7..19e09ed9 100644 --- a/src/main/java/com/fireblocks/sdk/Configuration.java +++ b/src/main/java/com/fireblocks/sdk/Configuration.java @@ -21,7 +21,7 @@ value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") public class Configuration { - public static final String VERSION = "12.1.0"; + public static final String VERSION = "0.0.0"; private static final AtomicReference defaultApiClient = new AtomicReference<>(); private static volatile Supplier apiClientFactory = ApiClient::new; diff --git a/src/main/java/com/fireblocks/sdk/Fireblocks.java b/src/main/java/com/fireblocks/sdk/Fireblocks.java index 3ea0433f..c0032ea7 100644 --- a/src/main/java/com/fireblocks/sdk/Fireblocks.java +++ b/src/main/java/com/fireblocks/sdk/Fireblocks.java @@ -42,14 +42,12 @@ public class Fireblocks { private BlockchainsAssetsApi blockchainsAssets; private ComplianceApi compliance; private ComplianceScreeningConfigurationApi complianceScreeningConfiguration; - private ConnectedAccountsBetaApi connectedAccountsBeta; private ConsoleUserApi consoleUser; private ContractInteractionsApi contractInteractions; private ContractTemplatesApi contractTemplates; private ContractsApi contracts; private CosignersBetaApi cosignersBeta; private DeployedContractsApi deployedContracts; - private EmbeddedWalletsApi embeddedWallets; private ExchangeAccountsApi exchangeAccounts; private ExternalWalletsApi externalWallets; private FiatAccountsApi fiatAccounts; @@ -57,28 +55,23 @@ public class Fireblocks { private InternalWalletsApi internalWallets; private JobManagementApi jobManagement; private KeyLinkBetaApi keyLinkBeta; - private KeysBetaApi keysBeta; private NetworkConnectionsApi networkConnections; private NftsApi nfts; private OffExchangesApi offExchanges; private OtaBetaApi otaBeta; private PaymentsPayoutApi paymentsPayout; private PolicyEditorBetaApi policyEditorBeta; - private PolicyEditorV2BetaApi policyEditorV2Beta; private ResetDeviceApi resetDevice; private SmartTransferApi smartTransfer; - private StakingApi staking; - private TagsApi tags; + private StakingBetaApi stakingBeta; private TokenizationApi tokenization; - private TradingBetaApi tradingBeta; private TransactionsApi transactions; - private TravelRuleApi travelRule; + private TravelRuleBetaApi travelRuleBeta; private UserGroupsBetaApi userGroupsBeta; private UsersApi users; private VaultsApi vaults; private Web3ConnectionsApi web3Connections; private WebhooksApi webhooks; - private WebhooksV2Api webhooksV2; private WhitelistIpAddressesApi whitelistIpAddresses; private WorkspaceStatusBetaApi workspaceStatusBeta; @@ -262,13 +255,6 @@ public ComplianceScreeningConfigurationApi complianceScreeningConfiguration() { return complianceScreeningConfiguration; } - public ConnectedAccountsBetaApi connectedAccountsBeta() { - if (connectedAccountsBeta == null) { - connectedAccountsBeta = new ConnectedAccountsBetaApi(apiClient); - } - return connectedAccountsBeta; - } - public ConsoleUserApi consoleUser() { if (consoleUser == null) { consoleUser = new ConsoleUserApi(apiClient); @@ -311,13 +297,6 @@ public DeployedContractsApi deployedContracts() { return deployedContracts; } - public EmbeddedWalletsApi embeddedWallets() { - if (embeddedWallets == null) { - embeddedWallets = new EmbeddedWalletsApi(apiClient); - } - return embeddedWallets; - } - public ExchangeAccountsApi exchangeAccounts() { if (exchangeAccounts == null) { exchangeAccounts = new ExchangeAccountsApi(apiClient); @@ -367,13 +346,6 @@ public KeyLinkBetaApi keyLinkBeta() { return keyLinkBeta; } - public KeysBetaApi keysBeta() { - if (keysBeta == null) { - keysBeta = new KeysBetaApi(apiClient); - } - return keysBeta; - } - public NetworkConnectionsApi networkConnections() { if (networkConnections == null) { networkConnections = new NetworkConnectionsApi(apiClient); @@ -416,13 +388,6 @@ public PolicyEditorBetaApi policyEditorBeta() { return policyEditorBeta; } - public PolicyEditorV2BetaApi policyEditorV2Beta() { - if (policyEditorV2Beta == null) { - policyEditorV2Beta = new PolicyEditorV2BetaApi(apiClient); - } - return policyEditorV2Beta; - } - public ResetDeviceApi resetDevice() { if (resetDevice == null) { resetDevice = new ResetDeviceApi(apiClient); @@ -437,18 +402,11 @@ public SmartTransferApi smartTransfer() { return smartTransfer; } - public StakingApi staking() { - if (staking == null) { - staking = new StakingApi(apiClient); + public StakingBetaApi stakingBeta() { + if (stakingBeta == null) { + stakingBeta = new StakingBetaApi(apiClient); } - return staking; - } - - public TagsApi tags() { - if (tags == null) { - tags = new TagsApi(apiClient); - } - return tags; + return stakingBeta; } public TokenizationApi tokenization() { @@ -458,13 +416,6 @@ public TokenizationApi tokenization() { return tokenization; } - public TradingBetaApi tradingBeta() { - if (tradingBeta == null) { - tradingBeta = new TradingBetaApi(apiClient); - } - return tradingBeta; - } - public TransactionsApi transactions() { if (transactions == null) { transactions = new TransactionsApi(apiClient); @@ -472,11 +423,11 @@ public TransactionsApi transactions() { return transactions; } - public TravelRuleApi travelRule() { - if (travelRule == null) { - travelRule = new TravelRuleApi(apiClient); + public TravelRuleBetaApi travelRuleBeta() { + if (travelRuleBeta == null) { + travelRuleBeta = new TravelRuleBetaApi(apiClient); } - return travelRule; + return travelRuleBeta; } public UserGroupsBetaApi userGroupsBeta() { @@ -514,13 +465,6 @@ public WebhooksApi webhooks() { return webhooks; } - public WebhooksV2Api webhooksV2() { - if (webhooksV2 == null) { - webhooksV2 = new WebhooksV2Api(apiClient); - } - return webhooksV2; - } - public WhitelistIpAddressesApi whitelistIpAddresses() { if (whitelistIpAddresses == null) { whitelistIpAddresses = new WhitelistIpAddressesApi(apiClient); diff --git a/src/main/java/com/fireblocks/sdk/api/AuditLogsApi.java b/src/main/java/com/fireblocks/sdk/api/AuditLogsApi.java index e6311dc8..97886e78 100644 --- a/src/main/java/com/fireblocks/sdk/api/AuditLogsApi.java +++ b/src/main/java/com/fireblocks/sdk/api/AuditLogsApi.java @@ -20,6 +20,7 @@ import com.fireblocks.sdk.ApiResponse; import com.fireblocks.sdk.Pair; import com.fireblocks.sdk.model.GetAuditLogsResponse; +import com.fireblocks.sdk.model.GetAuditLogsResponseDTO; import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -147,6 +148,84 @@ private HttpRequest.Builder getAuditLogsRequestBuilder(String timePeriod, String localVarRequestBuilder.header("Accept", "application/json"); + localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); + if (memberVarReadTimeout != null) { + localVarRequestBuilder.timeout(memberVarReadTimeout); + } + if (memberVarInterceptor != null) { + memberVarInterceptor.accept(localVarRequestBuilder); + } + return localVarRequestBuilder; + } + /** + * Get audit logs Get all audits + * + * @param timePeriod The last time period to fetch audit logs (optional) + * @return CompletableFuture<ApiResponse<GetAuditLogsResponseDTO>> + * @throws ApiException if fails to make API call + */ + public CompletableFuture> getAudits(String timePeriod) + throws ApiException { + try { + HttpRequest.Builder localVarRequestBuilder = getAuditsRequestBuilder(timePeriod); + return memberVarHttpClient + .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) + .thenComposeAsync( + localVarResponse -> { + if (memberVarAsyncResponseInterceptor != null) { + memberVarAsyncResponseInterceptor.accept(localVarResponse); + } + if (localVarResponse.statusCode() / 100 != 2) { + return CompletableFuture.failedFuture( + getApiException("getAudits", localVarResponse)); + } + try { + String responseBody = localVarResponse.body(); + return CompletableFuture.completedFuture( + new ApiResponse( + localVarResponse.statusCode(), + localVarResponse.headers().map(), + responseBody == null || responseBody.isBlank() + ? null + : memberVarObjectMapper.readValue( + responseBody, + new TypeReference< + GetAuditLogsResponseDTO>() {}))); + } catch (IOException e) { + return CompletableFuture.failedFuture(new ApiException(e)); + } + }); + } catch (ApiException e) { + return CompletableFuture.failedFuture(e); + } + } + + private HttpRequest.Builder getAuditsRequestBuilder(String timePeriod) throws ApiException { + + HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); + + String localVarPath = "/audits"; + + List localVarQueryParams = new ArrayList<>(); + StringJoiner localVarQueryStringJoiner = new StringJoiner("&"); + String localVarQueryParameterBaseName; + localVarQueryParameterBaseName = "timePeriod"; + localVarQueryParams.addAll(ApiClient.parameterToPairs("timePeriod", timePeriod)); + + if (!localVarQueryParams.isEmpty() || localVarQueryStringJoiner.length() != 0) { + StringJoiner queryJoiner = new StringJoiner("&"); + localVarQueryParams.forEach(p -> queryJoiner.add(p.getName() + '=' + p.getValue())); + if (localVarQueryStringJoiner.length() != 0) { + queryJoiner.add(localVarQueryStringJoiner.toString()); + } + localVarRequestBuilder.uri( + URI.create(memberVarBaseUri + localVarPath + '?' + queryJoiner.toString())); + } else { + localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); + } + + localVarRequestBuilder.header("Accept", "application/json"); + localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); if (memberVarReadTimeout != null) { localVarRequestBuilder.timeout(memberVarReadTimeout); diff --git a/src/main/java/com/fireblocks/sdk/api/BlockchainsAssetsApi.java b/src/main/java/com/fireblocks/sdk/api/BlockchainsAssetsApi.java index eeb1c221..dba364a3 100644 --- a/src/main/java/com/fireblocks/sdk/api/BlockchainsAssetsApi.java +++ b/src/main/java/com/fireblocks/sdk/api/BlockchainsAssetsApi.java @@ -18,31 +18,17 @@ import com.fireblocks.sdk.ApiClient; import com.fireblocks.sdk.ApiException; import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.Pair; -import com.fireblocks.sdk.ValidationUtils; -import com.fireblocks.sdk.model.Asset; -import com.fireblocks.sdk.model.AssetClass; -import com.fireblocks.sdk.model.AssetPriceResponse; import com.fireblocks.sdk.model.AssetResponse; -import com.fireblocks.sdk.model.AssetScope; import com.fireblocks.sdk.model.AssetTypeResponse; -import com.fireblocks.sdk.model.BlockchainResponse; -import com.fireblocks.sdk.model.ListAssetsResponse; -import com.fireblocks.sdk.model.ListBlockchainsResponse; import com.fireblocks.sdk.model.RegisterNewAssetRequest; -import com.fireblocks.sdk.model.SetAssetPriceRequest; -import com.fireblocks.sdk.model.UpdateAssetUserMetadataRequest; import java.io.IOException; import java.io.InputStream; -import java.math.BigDecimal; import java.net.URI; import java.net.http.HttpClient; import java.net.http.HttpRequest; import java.net.http.HttpResponse; import java.time.Duration; -import java.util.ArrayList; import java.util.List; -import java.util.StringJoiner; import java.util.concurrent.CompletableFuture; import java.util.function.Consumer; @@ -87,148 +73,7 @@ private String formatExceptionMessage(String operationId, int statusCode, String } /** - * Get an asset Returns an asset by ID or legacyID.</br> **Note**: - We will continue - * displaying and supporting the legacy ID (API ID). Since not all Fireblocks services fully - * support the new Assets UUID, please use only the legacy ID until further notice. - * - * @param id The ID or legacyId of the asset (required) - * @param idempotencyKey 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. (optional) - * @return CompletableFuture<ApiResponse<Asset>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> getAsset(String id, String idempotencyKey) - throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = getAssetRequestBuilder(id, idempotencyKey); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException("getAsset", localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - Asset>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder getAssetRequestBuilder(String id, String idempotencyKey) - throws ApiException { - ValidationUtils.assertParamExistsAndNotEmpty("getAsset", "id", id); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = "/assets/{id}".replace("{id}", ApiClient.urlEncode(id.toString())); - - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - - if (idempotencyKey != null) { - localVarRequestBuilder.header("Idempotency-Key", idempotencyKey.toString()); - } - localVarRequestBuilder.header("Accept", "application/json"); - - localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } - /** - * Get an blockchain Returns an blockchain by ID or legacyID. - * - * @param id The ID or legacyId of the blockchain (required) - * @return CompletableFuture<ApiResponse<BlockchainResponse>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> getBlockchain(String id) - throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = getBlockchainRequestBuilder(id); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException("getBlockchain", localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - BlockchainResponse>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder getBlockchainRequestBuilder(String id) throws ApiException { - ValidationUtils.assertParamExistsAndNotEmpty("getBlockchain", "id", id); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = - "/blockchains/{id}".replace("{id}", ApiClient.urlEncode(id.toString())); - - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - - localVarRequestBuilder.header("Accept", "application/json"); - - localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } - /** - * List all asset types supported by Fireblocks - legacy endpoint Legacy Endpoint – Retrieves - * all assets supported by Fireblocks in your workspace without extended information.</br> - * **Note**: - This endpoint will remain available for the foreseeable future and is not - * deprecated.</br> - The `listAssets` endpoint provides more detailed asset - * information and improved performance.</br> - We recommend transitioning to the - * `listAssets` endpoint for better results. + * List all asset types supported by Fireblocks Returns all asset types supported by Fireblocks. * * @return CompletableFuture<ApiResponse<List<AssetTypeResponse>>> * @throws ApiException if fails to make API call @@ -290,256 +135,10 @@ private HttpRequest.Builder getSupportedAssetsRequestBuilder() throws ApiExcepti } return localVarRequestBuilder; } - /** - * List assets Retrieves all assets supported by Fireblocks in your workspace, providing - * extended information and enhanced performance compared to the legacy - * `supported_assets` endpoint.</br> **Note**: - We will continue displaying and - * supporting the legacy ID (API ID). Since not all Fireblocks services fully support the new - * Assets UUID, please use only the legacy ID until further notice.</br> - * - * @param blockchainId Blockchain id of the assets (optional) - * @param assetClass Assets class (optional) - * @param symbol Assets onchain symbol (optional) - * @param scope Scope of the assets (optional) - * @param deprecated Are assets deprecated (optional) - * @param ids A list of asset IDs (max 100) (optional - * @param pageCursor Next page cursor to fetch (optional) - * @param pageSize Items per page (optional, default to 500) - * @param idempotencyKey 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. (optional) - * @return CompletableFuture<ApiResponse<ListAssetsResponse>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> listAssets( - String blockchainId, - AssetClass assetClass, - String symbol, - AssetScope scope, - Boolean deprecated, - List ids, - String pageCursor, - BigDecimal pageSize, - String idempotencyKey) - throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = - listAssetsRequestBuilder( - blockchainId, - assetClass, - symbol, - scope, - deprecated, - ids, - pageCursor, - pageSize, - idempotencyKey); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException("listAssets", localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - ListAssetsResponse>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder listAssetsRequestBuilder( - String blockchainId, - AssetClass assetClass, - String symbol, - AssetScope scope, - Boolean deprecated, - List ids, - String pageCursor, - BigDecimal pageSize, - String idempotencyKey) - throws ApiException { - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = "/assets"; - - List localVarQueryParams = new ArrayList<>(); - StringJoiner localVarQueryStringJoiner = new StringJoiner("&"); - String localVarQueryParameterBaseName; - localVarQueryParameterBaseName = "blockchainId"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("blockchainId", blockchainId)); - localVarQueryParameterBaseName = "assetClass"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("assetClass", assetClass)); - localVarQueryParameterBaseName = "symbol"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("symbol", symbol)); - localVarQueryParameterBaseName = "scope"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("scope", scope)); - localVarQueryParameterBaseName = "deprecated"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("deprecated", deprecated)); - localVarQueryParameterBaseName = "ids"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("multi", "ids", ids)); - localVarQueryParameterBaseName = "pageCursor"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("pageCursor", pageCursor)); - localVarQueryParameterBaseName = "pageSize"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("pageSize", pageSize)); - - if (!localVarQueryParams.isEmpty() || localVarQueryStringJoiner.length() != 0) { - StringJoiner queryJoiner = new StringJoiner("&"); - localVarQueryParams.forEach(p -> queryJoiner.add(p.getName() + '=' + p.getValue())); - if (localVarQueryStringJoiner.length() != 0) { - queryJoiner.add(localVarQueryStringJoiner.toString()); - } - localVarRequestBuilder.uri( - URI.create(memberVarBaseUri + localVarPath + '?' + queryJoiner.toString())); - } else { - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - } - - if (idempotencyKey != null) { - localVarRequestBuilder.header("Idempotency-Key", idempotencyKey.toString()); - } - localVarRequestBuilder.header("Accept", "application/json"); - - localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } - /** - * List blockchains Returns all blockchains supported by Fireblocks. - * - * @param protocol Blockchain protocol (optional) - * @param deprecated Is blockchain deprecated (optional) - * @param test Is test blockchain (optional) - * @param ids A list of blockchain IDs (max 100) (optional - * @param pageCursor Page cursor to fetch (optional) - * @param pageSize Items per page (max 500) (optional, default to 500) - * @return CompletableFuture<ApiResponse<ListBlockchainsResponse>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> listBlockchains( - String protocol, - Boolean deprecated, - Boolean test, - List ids, - String pageCursor, - BigDecimal pageSize) - throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = - listBlockchainsRequestBuilder( - protocol, deprecated, test, ids, pageCursor, pageSize); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException("listBlockchains", localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - ListBlockchainsResponse>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder listBlockchainsRequestBuilder( - String protocol, - Boolean deprecated, - Boolean test, - List ids, - String pageCursor, - BigDecimal pageSize) - throws ApiException { - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = "/blockchains"; - - List localVarQueryParams = new ArrayList<>(); - StringJoiner localVarQueryStringJoiner = new StringJoiner("&"); - String localVarQueryParameterBaseName; - localVarQueryParameterBaseName = "protocol"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("protocol", protocol)); - localVarQueryParameterBaseName = "deprecated"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("deprecated", deprecated)); - localVarQueryParameterBaseName = "test"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("test", test)); - localVarQueryParameterBaseName = "ids"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("multi", "ids", ids)); - localVarQueryParameterBaseName = "pageCursor"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("pageCursor", pageCursor)); - localVarQueryParameterBaseName = "pageSize"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("pageSize", pageSize)); - - if (!localVarQueryParams.isEmpty() || localVarQueryStringJoiner.length() != 0) { - StringJoiner queryJoiner = new StringJoiner("&"); - localVarQueryParams.forEach(p -> queryJoiner.add(p.getName() + '=' + p.getValue())); - if (localVarQueryStringJoiner.length() != 0) { - queryJoiner.add(localVarQueryStringJoiner.toString()); - } - localVarRequestBuilder.uri( - URI.create(memberVarBaseUri + localVarPath + '?' + queryJoiner.toString())); - } else { - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - } - - localVarRequestBuilder.header("Accept", "application/json"); - - localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } /** * 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 - Solana + * - TRON - NEAR * * @param registerNewAssetRequest (optional) * @param idempotencyKey A unique identifier for the request. If the request is sent multiple @@ -618,175 +217,4 @@ private HttpRequest.Builder registerNewAssetRequestBuilder( } return localVarRequestBuilder; } - /** - * Set asset price Set asset price for the given asset id. Returns the asset price response. - * - * @param id The ID of the asset (required) - * @param setAssetPriceRequest (optional) - * @param idempotencyKey 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. (optional) - * @return CompletableFuture<ApiResponse<AssetPriceResponse>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> setAssetPrice( - String id, SetAssetPriceRequest setAssetPriceRequest, String idempotencyKey) - throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = - setAssetPriceRequestBuilder(id, setAssetPriceRequest, idempotencyKey); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException("setAssetPrice", localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - AssetPriceResponse>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder setAssetPriceRequestBuilder( - String id, SetAssetPriceRequest setAssetPriceRequest, String idempotencyKey) - throws ApiException { - ValidationUtils.assertParamExistsAndNotEmpty("setAssetPrice", "id", id); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = - "/assets/prices/{id}".replace("{id}", ApiClient.urlEncode(id.toString())); - - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - - if (idempotencyKey != null) { - localVarRequestBuilder.header("Idempotency-Key", idempotencyKey.toString()); - } - localVarRequestBuilder.header("Content-Type", "application/json"); - localVarRequestBuilder.header("Accept", "application/json"); - - try { - byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(setAssetPriceRequest); - localVarRequestBuilder.method( - "POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); - } catch (IOException e) { - throw new ApiException(e); - } - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } - /** - * Update the user’s metadata for an asset Update the user’s metadata for an asset. Endpoint - * Permission: Owner, Admin, Non-Signing Admin, NCW Admin, Signer, Editor. - * - * @param id The ID or legacyId of the asset (required) - * @param updateAssetUserMetadataRequest (optional) - * @param idempotencyKey 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. (optional) - * @return CompletableFuture<ApiResponse<Asset>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> updateAssetUserMetadata( - String id, - UpdateAssetUserMetadataRequest updateAssetUserMetadataRequest, - String idempotencyKey) - throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = - updateAssetUserMetadataRequestBuilder( - id, updateAssetUserMetadataRequest, idempotencyKey); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException( - "updateAssetUserMetadata", localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - Asset>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder updateAssetUserMetadataRequestBuilder( - String id, - UpdateAssetUserMetadataRequest updateAssetUserMetadataRequest, - String idempotencyKey) - throws ApiException { - ValidationUtils.assertParamExistsAndNotEmpty("updateAssetUserMetadata", "id", id); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = "/assets/{id}".replace("{id}", ApiClient.urlEncode(id.toString())); - - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - - if (idempotencyKey != null) { - localVarRequestBuilder.header("Idempotency-Key", idempotencyKey.toString()); - } - localVarRequestBuilder.header("Content-Type", "application/json"); - localVarRequestBuilder.header("Accept", "application/json"); - - try { - byte[] localVarPostBody = - memberVarObjectMapper.writeValueAsBytes(updateAssetUserMetadataRequest); - localVarRequestBuilder.method( - "PATCH", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); - } catch (IOException e) { - throw new ApiException(e); - } - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } } diff --git a/src/main/java/com/fireblocks/sdk/api/ComplianceApi.java b/src/main/java/com/fireblocks/sdk/api/ComplianceApi.java index c9406418..138278ca 100644 --- a/src/main/java/com/fireblocks/sdk/api/ComplianceApi.java +++ b/src/main/java/com/fireblocks/sdk/api/ComplianceApi.java @@ -18,15 +18,10 @@ import com.fireblocks.sdk.ApiClient; import com.fireblocks.sdk.ApiException; import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.ValidationUtils; -import com.fireblocks.sdk.model.AmlVerdictManualRequest; -import com.fireblocks.sdk.model.AmlVerdictManualResponse; -import com.fireblocks.sdk.model.ComplianceResultFullPayload; -import com.fireblocks.sdk.model.CreateTransactionResponse; import com.fireblocks.sdk.model.ScreeningConfigurationsRequest; import com.fireblocks.sdk.model.ScreeningPolicyResponse; import com.fireblocks.sdk.model.ScreeningProviderRulesConfigurationResponse; -import com.fireblocks.sdk.model.ScreeningUpdateConfigurations; +import com.fireblocks.sdk.model.ScreeningUpdateConfigurationsRequest; import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -265,75 +260,6 @@ private HttpRequest.Builder getPostScreeningPolicyRequestBuilder() throws ApiExc } return localVarRequestBuilder; } - /** - * Provides all the compliance details for the given screened transaction. Provides all the - * compliance details for the given screened transaction. - * - * @param txId Fireblocks transaction ID of the screened transaction (required) - * @return CompletableFuture<ApiResponse<ComplianceResultFullPayload>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> getScreeningFullDetails( - String txId) throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = - getScreeningFullDetailsRequestBuilder(txId); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException( - "getScreeningFullDetails", localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - ComplianceResultFullPayload>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder getScreeningFullDetailsRequestBuilder(String txId) - throws ApiException { - ValidationUtils.assertParamExistsAndNotEmpty("getScreeningFullDetails", "txId", txId); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = - "/screening/transaction/{txId}" - .replace("{txId}", ApiClient.urlEncode(txId.toString())); - - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - - localVarRequestBuilder.header("Accept", "application/json"); - - localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } /** * Travel Rule - View Screening Policy Get the screening policy for Travel Rule. * @@ -398,169 +324,6 @@ private HttpRequest.Builder getScreeningPolicyRequestBuilder() throws ApiExcepti } return localVarRequestBuilder; } - /** - * Calling the \"Bypass Screening Policy\" API endpoint triggers a new transaction, - * with the API user as the initiator, bypassing the screening policy check This endpoint is - * restricted to Admin API users and is only applicable to outgoing transactions. - * - * @param txId The transaction id that was rejected by screening checks (required) - * @param idempotencyKey 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. (optional) - * @return CompletableFuture<ApiResponse<CreateTransactionResponse>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> - retryRejectedTransactionBypassScreeningChecks(String txId, String idempotencyKey) - throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = - retryRejectedTransactionBypassScreeningChecksRequestBuilder( - txId, idempotencyKey); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException( - "retryRejectedTransactionBypassScreeningChecks", - localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - CreateTransactionResponse>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder retryRejectedTransactionBypassScreeningChecksRequestBuilder( - String txId, String idempotencyKey) throws ApiException { - ValidationUtils.assertParamExistsAndNotEmpty( - "retryRejectedTransactionBypassScreeningChecks", "txId", txId); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = - "/screening/transaction/{txId}/bypass_screening_policy" - .replace("{txId}", ApiClient.urlEncode(txId.toString())); - - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - - if (idempotencyKey != null) { - localVarRequestBuilder.header("Idempotency-Key", idempotencyKey.toString()); - } - localVarRequestBuilder.header("Accept", "application/json"); - - localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.noBody()); - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } - /** - * Set AML Verdict for Manual Screening Verdict. Set AML verdict for incoming transactions when - * Manual Screening Verdict feature is enabled. - * - * @param amlVerdictManualRequest (required) - * @param idempotencyKey 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. (optional) - * @return CompletableFuture<ApiResponse<AmlVerdictManualResponse>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> setAmlVerdict( - AmlVerdictManualRequest amlVerdictManualRequest, String idempotencyKey) - throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = - setAmlVerdictRequestBuilder(amlVerdictManualRequest, idempotencyKey); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException("setAmlVerdict", localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - AmlVerdictManualResponse>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder setAmlVerdictRequestBuilder( - AmlVerdictManualRequest amlVerdictManualRequest, String idempotencyKey) - throws ApiException { - ValidationUtils.assertParamExists( - "setAmlVerdict", "amlVerdictManualRequest", amlVerdictManualRequest); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = "/screening/aml/verdict/manual"; - - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - - if (idempotencyKey != null) { - localVarRequestBuilder.header("Idempotency-Key", idempotencyKey.toString()); - } - localVarRequestBuilder.header("Content-Type", "application/json"); - localVarRequestBuilder.header("Accept", "application/json"); - - try { - byte[] localVarPostBody = - memberVarObjectMapper.writeValueAsBytes(amlVerdictManualRequest); - localVarRequestBuilder.method( - "POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); - } catch (IOException e) { - throw new ApiException(e); - } - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } /** * Update AML Configuration Updates bypass screening, inbound delay, or outbound delay * configurations for AML. @@ -636,22 +399,17 @@ private HttpRequest.Builder updateAmlScreeningConfigurationRequestBuilder(String /** * Tenant - Screening Configuration Update tenant screening configuration. * - * @param screeningUpdateConfigurations (required) * @param idempotencyKey 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. (optional) - * @return CompletableFuture<ApiResponse<ScreeningUpdateConfigurations>> + * @return CompletableFuture<ApiResponse<ScreeningUpdateConfigurationsRequest>> * @throws ApiException if fails to make API call */ - public CompletableFuture> - updateScreeningConfiguration( - ScreeningUpdateConfigurations screeningUpdateConfigurations, - String idempotencyKey) - throws ApiException { + public CompletableFuture> + updateScreeningConfiguration(String idempotencyKey) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = - updateScreeningConfigurationRequestBuilder( - screeningUpdateConfigurations, idempotencyKey); + updateScreeningConfigurationRequestBuilder(idempotencyKey); return memberVarHttpClient .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) .thenComposeAsync( @@ -668,7 +426,7 @@ private HttpRequest.Builder updateAmlScreeningConfigurationRequestBuilder(String try { String responseBody = localVarResponse.body(); return CompletableFuture.completedFuture( - new ApiResponse( + new ApiResponse( localVarResponse.statusCode(), localVarResponse.headers().map(), responseBody == null || responseBody.isBlank() @@ -676,7 +434,7 @@ private HttpRequest.Builder updateAmlScreeningConfigurationRequestBuilder(String : memberVarObjectMapper.readValue( responseBody, new TypeReference< - ScreeningUpdateConfigurations>() {}))); + ScreeningUpdateConfigurationsRequest>() {}))); } catch (IOException e) { return CompletableFuture.failedFuture(new ApiException(e)); } @@ -686,13 +444,8 @@ private HttpRequest.Builder updateAmlScreeningConfigurationRequestBuilder(String } } - private HttpRequest.Builder updateScreeningConfigurationRequestBuilder( - ScreeningUpdateConfigurations screeningUpdateConfigurations, String idempotencyKey) + private HttpRequest.Builder updateScreeningConfigurationRequestBuilder(String idempotencyKey) throws ApiException { - ValidationUtils.assertParamExists( - "updateScreeningConfiguration", - "screeningUpdateConfigurations", - screeningUpdateConfigurations); HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); @@ -703,17 +456,9 @@ private HttpRequest.Builder updateScreeningConfigurationRequestBuilder( if (idempotencyKey != null) { localVarRequestBuilder.header("Idempotency-Key", idempotencyKey.toString()); } - localVarRequestBuilder.header("Content-Type", "application/json"); localVarRequestBuilder.header("Accept", "application/json"); - try { - byte[] localVarPostBody = - memberVarObjectMapper.writeValueAsBytes(screeningUpdateConfigurations); - localVarRequestBuilder.method( - "PUT", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); - } catch (IOException e) { - throw new ApiException(e); - } + localVarRequestBuilder.method("PUT", HttpRequest.BodyPublishers.noBody()); if (memberVarReadTimeout != null) { localVarRequestBuilder.timeout(memberVarReadTimeout); } diff --git a/src/main/java/com/fireblocks/sdk/api/ConnectedAccountsBetaApi.java b/src/main/java/com/fireblocks/sdk/api/ConnectedAccountsBetaApi.java deleted file mode 100644 index d237e8c4..00000000 --- a/src/main/java/com/fireblocks/sdk/api/ConnectedAccountsBetaApi.java +++ /dev/null @@ -1,518 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.api; - - -import com.fasterxml.jackson.core.type.TypeReference; -import com.fasterxml.jackson.databind.ObjectMapper; -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.Pair; -import com.fireblocks.sdk.ValidationUtils; -import com.fireblocks.sdk.model.ConnectedAccountBalancesResponse; -import com.fireblocks.sdk.model.ConnectedAccountRateResponse; -import com.fireblocks.sdk.model.ConnectedAccountTradingPairsResponse; -import com.fireblocks.sdk.model.ConnectedAccountsResponse; -import com.fireblocks.sdk.model.ConnectedSingleAccountResponse; -import java.io.IOException; -import java.io.InputStream; -import java.net.URI; -import java.net.http.HttpClient; -import java.net.http.HttpRequest; -import java.net.http.HttpResponse; -import java.time.Duration; -import java.util.ArrayList; -import java.util.List; -import java.util.StringJoiner; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; - -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class ConnectedAccountsBetaApi { - private final HttpClient memberVarHttpClient; - private final ObjectMapper memberVarObjectMapper; - private final String memberVarBaseUri; - private final Consumer memberVarInterceptor; - private final Duration memberVarReadTimeout; - private final Consumer> memberVarResponseInterceptor; - private final Consumer> memberVarAsyncResponseInterceptor; - - public ConnectedAccountsBetaApi() { - this(new ApiClient()); - } - - public ConnectedAccountsBetaApi(ApiClient apiClient) { - memberVarHttpClient = apiClient.getHttpClient(); - memberVarObjectMapper = apiClient.getObjectMapper(); - memberVarBaseUri = apiClient.getBaseUri(); - memberVarInterceptor = apiClient.getRequestInterceptor(); - memberVarReadTimeout = apiClient.getReadTimeout(); - memberVarResponseInterceptor = apiClient.getResponseInterceptor(); - memberVarAsyncResponseInterceptor = apiClient.getAsyncResponseInterceptor(); - } - - private ApiException getApiException(String operationId, HttpResponse response) { - String message = - formatExceptionMessage(operationId, response.statusCode(), response.body()); - return new ApiException( - response.statusCode(), message, response.headers(), response.body()); - } - - private String formatExceptionMessage(String operationId, int statusCode, String body) { - if (body == null || body.isEmpty()) { - body = "[no body]"; - } - return operationId + " call failed with: " + statusCode + " - " + body; - } - - /** - * Get connected account Retrieve detailed information about a specific connected account by ID. - * </br> **Note**: - This endpoint is currently in beta and might be subject to changes. - * - * @param accountId The ID of the account to fetch. (required) - * @return CompletableFuture<ApiResponse<ConnectedSingleAccountResponse>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> getConnectedAccount( - String accountId) throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = - getConnectedAccountRequestBuilder(accountId); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException( - "getConnectedAccount", localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - ConnectedSingleAccountResponse>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder getConnectedAccountRequestBuilder(String accountId) - throws ApiException { - ValidationUtils.assertParamExistsAndNotEmpty("getConnectedAccount", "accountId", accountId); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = - "/connected_accounts/{accountId}" - .replace("{accountId}", ApiClient.urlEncode(accountId.toString())); - - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - - localVarRequestBuilder.header("Accept", "application/json"); - - localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } - /** - * Get balances for an account Retrieve current asset balances for a specific connected account - * as a flat list (one row per assetId, balanceType) </br> **Note**: - This endpoint is - * currently in beta and might be subject to changes. - * - * @param accountId The ID of the account to fetch balances for. (required) - * @param pageSize Page size for pagination. (optional) - * @param pageCursor Page cursor for pagination. (optional) - * @return CompletableFuture<ApiResponse<ConnectedAccountBalancesResponse>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> - getConnectedAccountBalances(String accountId, Integer pageSize, String pageCursor) - throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = - getConnectedAccountBalancesRequestBuilder(accountId, pageSize, pageCursor); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException( - "getConnectedAccountBalances", - localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - ConnectedAccountBalancesResponse>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder getConnectedAccountBalancesRequestBuilder( - String accountId, Integer pageSize, String pageCursor) throws ApiException { - ValidationUtils.assertParamExistsAndNotEmpty( - "getConnectedAccountBalances", "accountId", accountId); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = - "/connected_accounts/{accountId}/balances" - .replace("{accountId}", ApiClient.urlEncode(accountId.toString())); - - List localVarQueryParams = new ArrayList<>(); - StringJoiner localVarQueryStringJoiner = new StringJoiner("&"); - String localVarQueryParameterBaseName; - localVarQueryParameterBaseName = "pageSize"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("pageSize", pageSize)); - localVarQueryParameterBaseName = "pageCursor"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("pageCursor", pageCursor)); - - if (!localVarQueryParams.isEmpty() || localVarQueryStringJoiner.length() != 0) { - StringJoiner queryJoiner = new StringJoiner("&"); - localVarQueryParams.forEach(p -> queryJoiner.add(p.getName() + '=' + p.getValue())); - if (localVarQueryStringJoiner.length() != 0) { - queryJoiner.add(localVarQueryStringJoiner.toString()); - } - localVarRequestBuilder.uri( - URI.create(memberVarBaseUri + localVarPath + '?' + queryJoiner.toString())); - } else { - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - } - - localVarRequestBuilder.header("Accept", "application/json"); - - localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } - /** - * Get exchange rates for an account Retrieve current exchange rates for converting between - * specific assets in a connected account. - * - * @param accountId The ID of the account to fetch rates for. (required) - * @param baseAssetId The ID of the asset to fetch rates for. (required) - * @param quoteAssetId The ID of the asset to get the rates nominally. (required) - * @return CompletableFuture<ApiResponse<ConnectedAccountRateResponse>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> getConnectedAccountRates( - String accountId, String baseAssetId, String quoteAssetId) throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = - getConnectedAccountRatesRequestBuilder(accountId, baseAssetId, quoteAssetId); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException( - "getConnectedAccountRates", localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - ConnectedAccountRateResponse>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder getConnectedAccountRatesRequestBuilder( - String accountId, String baseAssetId, String quoteAssetId) throws ApiException { - ValidationUtils.assertParamExistsAndNotEmpty( - "getConnectedAccountRates", "accountId", accountId); - ValidationUtils.assertParamExistsAndNotEmpty( - "getConnectedAccountRates", "baseAssetId", baseAssetId); - ValidationUtils.assertParamExistsAndNotEmpty( - "getConnectedAccountRates", "quoteAssetId", quoteAssetId); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = - "/connected_accounts/{accountId}/rates" - .replace("{accountId}", ApiClient.urlEncode(accountId.toString())); - - List localVarQueryParams = new ArrayList<>(); - StringJoiner localVarQueryStringJoiner = new StringJoiner("&"); - String localVarQueryParameterBaseName; - localVarQueryParameterBaseName = "baseAssetId"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("baseAssetId", baseAssetId)); - localVarQueryParameterBaseName = "quoteAssetId"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("quoteAssetId", quoteAssetId)); - - if (!localVarQueryParams.isEmpty() || localVarQueryStringJoiner.length() != 0) { - StringJoiner queryJoiner = new StringJoiner("&"); - localVarQueryParams.forEach(p -> queryJoiner.add(p.getName() + '=' + p.getValue())); - if (localVarQueryStringJoiner.length() != 0) { - queryJoiner.add(localVarQueryStringJoiner.toString()); - } - localVarRequestBuilder.uri( - URI.create(memberVarBaseUri + localVarPath + '?' + queryJoiner.toString())); - } else { - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - } - - localVarRequestBuilder.header("Accept", "application/json"); - - localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } - /** - * Get supported trading pairs for an account Retrieve all asset trading pairs supported by a - * specific connected account, including the pair type (quote, market, onOffRamp). - * - * @param accountId The ID of the account to fetch supported pairs for. (required) - * @param pageSize Page size for pagination. (optional, default to 100) - * @param pageCursor Page cursor for pagination. (optional) - * @return CompletableFuture<ApiResponse<ConnectedAccountTradingPairsResponse>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> - getConnectedAccountTradingPairs(String accountId, Integer pageSize, String pageCursor) - throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = - getConnectedAccountTradingPairsRequestBuilder(accountId, pageSize, pageCursor); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException( - "getConnectedAccountTradingPairs", - localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - ConnectedAccountTradingPairsResponse>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder getConnectedAccountTradingPairsRequestBuilder( - String accountId, Integer pageSize, String pageCursor) throws ApiException { - ValidationUtils.assertParamExistsAndNotEmpty( - "getConnectedAccountTradingPairs", "accountId", accountId); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = - "/connected_accounts/{accountId}/manifest/capabilities/trading/pairs" - .replace("{accountId}", ApiClient.urlEncode(accountId.toString())); - - List localVarQueryParams = new ArrayList<>(); - StringJoiner localVarQueryStringJoiner = new StringJoiner("&"); - String localVarQueryParameterBaseName; - localVarQueryParameterBaseName = "pageSize"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("pageSize", pageSize)); - localVarQueryParameterBaseName = "pageCursor"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("pageCursor", pageCursor)); - - if (!localVarQueryParams.isEmpty() || localVarQueryStringJoiner.length() != 0) { - StringJoiner queryJoiner = new StringJoiner("&"); - localVarQueryParams.forEach(p -> queryJoiner.add(p.getName() + '=' + p.getValue())); - if (localVarQueryStringJoiner.length() != 0) { - queryJoiner.add(localVarQueryStringJoiner.toString()); - } - localVarRequestBuilder.uri( - URI.create(memberVarBaseUri + localVarPath + '?' + queryJoiner.toString())); - } else { - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - } - - localVarRequestBuilder.header("Accept", "application/json"); - - localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } - /** - * Get connected accounts Returns all connected accounts </br> **Note**: - This endpoint - * is currently in beta and might be subject to changes. - * - * @param mainAccounts Whether to include only main accounts in the response. (optional, default - * to false) - * @param pageSize Page size for pagination. (optional) - * @param pageCursor Page cursor for pagination. (optional) - * @return CompletableFuture<ApiResponse<ConnectedAccountsResponse>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> getConnectedAccounts( - Boolean mainAccounts, Integer pageSize, String pageCursor) throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = - getConnectedAccountsRequestBuilder(mainAccounts, pageSize, pageCursor); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException( - "getConnectedAccounts", localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - ConnectedAccountsResponse>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder getConnectedAccountsRequestBuilder( - Boolean mainAccounts, Integer pageSize, String pageCursor) throws ApiException { - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = "/connected_accounts"; - - List localVarQueryParams = new ArrayList<>(); - StringJoiner localVarQueryStringJoiner = new StringJoiner("&"); - String localVarQueryParameterBaseName; - localVarQueryParameterBaseName = "mainAccounts"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("mainAccounts", mainAccounts)); - localVarQueryParameterBaseName = "pageSize"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("pageSize", pageSize)); - localVarQueryParameterBaseName = "pageCursor"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("pageCursor", pageCursor)); - - if (!localVarQueryParams.isEmpty() || localVarQueryStringJoiner.length() != 0) { - StringJoiner queryJoiner = new StringJoiner("&"); - localVarQueryParams.forEach(p -> queryJoiner.add(p.getName() + '=' + p.getValue())); - if (localVarQueryStringJoiner.length() != 0) { - queryJoiner.add(localVarQueryStringJoiner.toString()); - } - localVarRequestBuilder.uri( - URI.create(memberVarBaseUri + localVarPath + '?' + queryJoiner.toString())); - } else { - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - } - - localVarRequestBuilder.header("Accept", "application/json"); - - localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } -} diff --git a/src/main/java/com/fireblocks/sdk/api/ContractInteractionsApi.java b/src/main/java/com/fireblocks/sdk/api/ContractInteractionsApi.java index c3e21edb..1bb48fff 100644 --- a/src/main/java/com/fireblocks/sdk/api/ContractInteractionsApi.java +++ b/src/main/java/com/fireblocks/sdk/api/ContractInteractionsApi.java @@ -20,11 +20,8 @@ import com.fireblocks.sdk.ApiResponse; import com.fireblocks.sdk.ValidationUtils; import com.fireblocks.sdk.model.ContractAbiResponseDto; -import com.fireblocks.sdk.model.ContractDataDecodeRequest; -import com.fireblocks.sdk.model.ContractDataDecodedResponse; import com.fireblocks.sdk.model.ParameterWithValue; import com.fireblocks.sdk.model.ReadCallFunctionDto; -import com.fireblocks.sdk.model.TransactionReceiptResponse; import com.fireblocks.sdk.model.WriteCallFunctionDto; import com.fireblocks.sdk.model.WriteCallFunctionResponseDto; import java.io.IOException; @@ -78,117 +75,12 @@ private String formatExceptionMessage(String operationId, int statusCode, String return operationId + " call failed with: " + statusCode + " - " + body; } - /** - * Decode a function call data, error, or event log Decode a function call data, error, or event - * log from a deployed contract by blockchain native asset id and contract address. - * - * @param contractDataDecodeRequest (required) - * @param contractAddress The contract's onchain address (required) - * @param baseAssetId The blockchain native asset identifier (required) - * @param idempotencyKey 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. (optional) - * @return CompletableFuture<ApiResponse<ContractDataDecodedResponse>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> decodeContractData( - ContractDataDecodeRequest contractDataDecodeRequest, - String contractAddress, - String baseAssetId, - String idempotencyKey) - throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = - decodeContractDataRequestBuilder( - contractDataDecodeRequest, - contractAddress, - baseAssetId, - idempotencyKey); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException( - "decodeContractData", localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - ContractDataDecodedResponse>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder decodeContractDataRequestBuilder( - ContractDataDecodeRequest contractDataDecodeRequest, - String contractAddress, - String baseAssetId, - String idempotencyKey) - throws ApiException { - ValidationUtils.assertParamExists( - "decodeContractData", "contractDataDecodeRequest", contractDataDecodeRequest); - ValidationUtils.assertParamExistsAndNotEmpty( - "decodeContractData", "contractAddress", contractAddress); - ValidationUtils.assertParamExistsAndNotEmpty( - "decodeContractData", "baseAssetId", baseAssetId); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = - "/contract_interactions/base_asset_id/{baseAssetId}/contract_address/{contractAddress}/decode" - .replace( - "{contractAddress}", - ApiClient.urlEncode(contractAddress.toString())) - .replace("{baseAssetId}", ApiClient.urlEncode(baseAssetId.toString())); - - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - - if (idempotencyKey != null) { - localVarRequestBuilder.header("Idempotency-Key", idempotencyKey.toString()); - } - localVarRequestBuilder.header("Content-Type", "application/json"); - localVarRequestBuilder.header("Accept", "application/json"); - - try { - byte[] localVarPostBody = - memberVarObjectMapper.writeValueAsBytes(contractDataDecodeRequest); - localVarRequestBuilder.method( - "POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); - } catch (IOException e) { - throw new ApiException(e); - } - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } /** * Return deployed contract's ABI Return deployed contract's ABI by blockchain native * asset id and contract address * * @param contractAddress The contract's onchain address (required) - * @param baseAssetId (required) + * @param assetId (required) * @param idempotencyKey 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. (optional) @@ -196,11 +88,10 @@ private HttpRequest.Builder decodeContractDataRequestBuilder( * @throws ApiException if fails to make API call */ public CompletableFuture> getDeployedContractAbi( - String contractAddress, String baseAssetId, String idempotencyKey) throws ApiException { + String contractAddress, String assetId, String idempotencyKey) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = - getDeployedContractAbiRequestBuilder( - contractAddress, baseAssetId, idempotencyKey); + getDeployedContractAbiRequestBuilder(contractAddress, assetId, idempotencyKey); return memberVarHttpClient .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) .thenComposeAsync( @@ -235,20 +126,19 @@ public CompletableFuture> getDeployedContrac } private HttpRequest.Builder getDeployedContractAbiRequestBuilder( - String contractAddress, String baseAssetId, String idempotencyKey) throws ApiException { + String contractAddress, String assetId, String idempotencyKey) throws ApiException { ValidationUtils.assertParamExistsAndNotEmpty( "getDeployedContractAbi", "contractAddress", contractAddress); - ValidationUtils.assertParamExistsAndNotEmpty( - "getDeployedContractAbi", "baseAssetId", baseAssetId); + ValidationUtils.assertParamExistsAndNotEmpty("getDeployedContractAbi", "assetId", assetId); HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); String localVarPath = - "/contract_interactions/base_asset_id/{baseAssetId}/contract_address/{contractAddress}/functions" + "/contract_interactions/base_asset_id/{assetId}/contract_address/{contractAddress}/functions" .replace( "{contractAddress}", ApiClient.urlEncode(contractAddress.toString())) - .replace("{baseAssetId}", ApiClient.urlEncode(baseAssetId.toString())); + .replace("{assetId}", ApiClient.urlEncode(assetId.toString())); localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); @@ -266,86 +156,13 @@ private HttpRequest.Builder getDeployedContractAbiRequestBuilder( } return localVarRequestBuilder; } - /** - * Get transaction receipt Retrieve the transaction receipt by blockchain native asset ID and - * transaction hash - * - * @param baseAssetId The blockchain base assetId (required) - * @param txHash The transaction hash (required) - * @return CompletableFuture<ApiResponse<TransactionReceiptResponse>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> getTransactionReceipt( - String baseAssetId, String txHash) throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = - getTransactionReceiptRequestBuilder(baseAssetId, txHash); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException( - "getTransactionReceipt", localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - TransactionReceiptResponse>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder getTransactionReceiptRequestBuilder( - String baseAssetId, String txHash) throws ApiException { - ValidationUtils.assertParamExistsAndNotEmpty( - "getTransactionReceipt", "baseAssetId", baseAssetId); - ValidationUtils.assertParamExistsAndNotEmpty("getTransactionReceipt", "txHash", txHash); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = - "/contract_interactions/base_asset_id/{baseAssetId}/tx_hash/{txHash}/receipt" - .replace("{baseAssetId}", ApiClient.urlEncode(baseAssetId.toString())) - .replace("{txHash}", ApiClient.urlEncode(txHash.toString())); - - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - - localVarRequestBuilder.header("Accept", "application/json"); - - localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } /** * Call a read function on a deployed contract Call a read function on a deployed contract by * blockchain native asset id and contract address * * @param readCallFunctionDto (required) * @param contractAddress The contract's onchain address (required) - * @param baseAssetId (required) + * @param assetId (required) * @param idempotencyKey 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. (optional) @@ -355,13 +172,13 @@ private HttpRequest.Builder getTransactionReceiptRequestBuilder( public CompletableFuture>> readCallFunction( ReadCallFunctionDto readCallFunctionDto, String contractAddress, - String baseAssetId, + String assetId, String idempotencyKey) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = readCallFunctionRequestBuilder( - readCallFunctionDto, contractAddress, baseAssetId, idempotencyKey); + readCallFunctionDto, contractAddress, assetId, idempotencyKey); return memberVarHttpClient .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) .thenComposeAsync( @@ -398,24 +215,23 @@ public CompletableFuture>> readCallFunction private HttpRequest.Builder readCallFunctionRequestBuilder( ReadCallFunctionDto readCallFunctionDto, String contractAddress, - String baseAssetId, + String assetId, String idempotencyKey) throws ApiException { ValidationUtils.assertParamExists( "readCallFunction", "readCallFunctionDto", readCallFunctionDto); ValidationUtils.assertParamExistsAndNotEmpty( "readCallFunction", "contractAddress", contractAddress); - ValidationUtils.assertParamExistsAndNotEmpty( - "readCallFunction", "baseAssetId", baseAssetId); + ValidationUtils.assertParamExistsAndNotEmpty("readCallFunction", "assetId", assetId); HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); String localVarPath = - "/contract_interactions/base_asset_id/{baseAssetId}/contract_address/{contractAddress}/functions/read" + "/contract_interactions/base_asset_id/{assetId}/contract_address/{contractAddress}/functions/read" .replace( "{contractAddress}", ApiClient.urlEncode(contractAddress.toString())) - .replace("{baseAssetId}", ApiClient.urlEncode(baseAssetId.toString())); + .replace("{assetId}", ApiClient.urlEncode(assetId.toString())); localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); @@ -447,7 +263,7 @@ private HttpRequest.Builder readCallFunctionRequestBuilder( * * @param writeCallFunctionDto (required) * @param contractAddress The contract's onchain address (required) - * @param baseAssetId (required) + * @param assetId (required) * @param idempotencyKey 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. (optional) @@ -457,13 +273,13 @@ private HttpRequest.Builder readCallFunctionRequestBuilder( public CompletableFuture> writeCallFunction( WriteCallFunctionDto writeCallFunctionDto, String contractAddress, - String baseAssetId, + String assetId, String idempotencyKey) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = writeCallFunctionRequestBuilder( - writeCallFunctionDto, contractAddress, baseAssetId, idempotencyKey); + writeCallFunctionDto, contractAddress, assetId, idempotencyKey); return memberVarHttpClient .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) .thenComposeAsync( @@ -499,24 +315,23 @@ public CompletableFuture> writeCallFun private HttpRequest.Builder writeCallFunctionRequestBuilder( WriteCallFunctionDto writeCallFunctionDto, String contractAddress, - String baseAssetId, + String assetId, String idempotencyKey) throws ApiException { ValidationUtils.assertParamExists( "writeCallFunction", "writeCallFunctionDto", writeCallFunctionDto); ValidationUtils.assertParamExistsAndNotEmpty( "writeCallFunction", "contractAddress", contractAddress); - ValidationUtils.assertParamExistsAndNotEmpty( - "writeCallFunction", "baseAssetId", baseAssetId); + ValidationUtils.assertParamExistsAndNotEmpty("writeCallFunction", "assetId", assetId); HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); String localVarPath = - "/contract_interactions/base_asset_id/{baseAssetId}/contract_address/{contractAddress}/functions/write" + "/contract_interactions/base_asset_id/{assetId}/contract_address/{contractAddress}/functions/write" .replace( "{contractAddress}", ApiClient.urlEncode(contractAddress.toString())) - .replace("{baseAssetId}", ApiClient.urlEncode(baseAssetId.toString())); + .replace("{assetId}", ApiClient.urlEncode(assetId.toString())); localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); diff --git a/src/main/java/com/fireblocks/sdk/api/CosignersBetaApi.java b/src/main/java/com/fireblocks/sdk/api/CosignersBetaApi.java index 56c19163..19d937ec 100644 --- a/src/main/java/com/fireblocks/sdk/api/CosignersBetaApi.java +++ b/src/main/java/com/fireblocks/sdk/api/CosignersBetaApi.java @@ -20,18 +20,11 @@ import com.fireblocks.sdk.ApiResponse; import com.fireblocks.sdk.Pair; import com.fireblocks.sdk.ValidationUtils; -import com.fireblocks.sdk.model.AddCosignerRequest; -import com.fireblocks.sdk.model.AddCosignerResponse; import com.fireblocks.sdk.model.ApiKey; import com.fireblocks.sdk.model.ApiKeysPaginatedResponse; import com.fireblocks.sdk.model.Cosigner; import com.fireblocks.sdk.model.CosignersPaginatedResponse; -import com.fireblocks.sdk.model.PairApiKeyRequest; -import com.fireblocks.sdk.model.PairApiKeyResponse; import com.fireblocks.sdk.model.RenameCosigner; -import com.fireblocks.sdk.model.Status; -import com.fireblocks.sdk.model.UpdateCallbackHandlerRequest; -import com.fireblocks.sdk.model.UpdateCallbackHandlerResponse; import java.io.IOException; import java.io.InputStream; import java.math.BigDecimal; @@ -87,85 +80,6 @@ private String formatExceptionMessage(String operationId, int statusCode, String return operationId + " call failed with: " + statusCode + " - " + body; } - /** - * Add cosigner Add a new cosigner. The cosigner will be pending pairing until the API key is - * manually paired - * - * @param addCosignerRequest (required) - * @param idempotencyKey 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. (optional) - * @return CompletableFuture<ApiResponse<AddCosignerResponse>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> addCosigner( - AddCosignerRequest addCosignerRequest, String idempotencyKey) throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = - addCosignerRequestBuilder(addCosignerRequest, idempotencyKey); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException("addCosigner", localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - AddCosignerResponse>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder addCosignerRequestBuilder( - AddCosignerRequest addCosignerRequest, String idempotencyKey) throws ApiException { - ValidationUtils.assertParamExists("addCosigner", "addCosignerRequest", addCosignerRequest); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = "/cosigners"; - - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - - if (idempotencyKey != null) { - localVarRequestBuilder.header("Idempotency-Key", idempotencyKey.toString()); - } - localVarRequestBuilder.header("Content-Type", "application/json"); - localVarRequestBuilder.header("Accept", "application/json"); - - try { - byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(addCosignerRequest); - localVarRequestBuilder.method( - "POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); - } catch (IOException e) { - throw new ApiException(e); - } - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } /** * Get API key Get an API key by ID **Note:** These endpoints are currently in beta and might be * subject to changes. @@ -239,7 +153,8 @@ private HttpRequest.Builder getApiKeyRequestBuilder(UUID cosignerId, String apiK return localVarRequestBuilder; } /** - * Get all API keys Get all cosigner paired API keys (paginated) + * Get all API keys Get all cosigner paired API keys (paginated) **Note:** These endpoints are + * currently in beta and might be subject to changes. * * @param cosignerId The unique identifier of the cosigner (required) * @param order ASC / DESC ordering (default DESC) (optional, default to DESC) @@ -485,175 +400,6 @@ private HttpRequest.Builder getCosignersRequestBuilder( } return localVarRequestBuilder; } - /** - * Get request status Get the status of an asynchronous request - * - * @param cosignerId The unique identifier of the cosigner (required) - * @param apiKeyId The unique identifier of the API key (required) - * @param requestId (required) - * @return CompletableFuture<ApiResponse<Status>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> getRequestStatus( - UUID cosignerId, String apiKeyId, String requestId) throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = - getRequestStatusRequestBuilder(cosignerId, apiKeyId, requestId); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException("getRequestStatus", localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - Status>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder getRequestStatusRequestBuilder( - UUID cosignerId, String apiKeyId, String requestId) throws ApiException { - ValidationUtils.assertParamExistsAndNotEmpty( - "getRequestStatus", "cosignerId", cosignerId.toString()); - ValidationUtils.assertParamExistsAndNotEmpty("getRequestStatus", "apiKeyId", apiKeyId); - ValidationUtils.assertParamExistsAndNotEmpty("getRequestStatus", "requestId", requestId); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = - "/cosigners/{cosignerId}/api_keys/{apiKeyId}/{requestId}" - .replace("{cosignerId}", ApiClient.urlEncode(cosignerId.toString())) - .replace("{apiKeyId}", ApiClient.urlEncode(apiKeyId.toString())) - .replace("{requestId}", ApiClient.urlEncode(requestId.toString())); - - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - - localVarRequestBuilder.header("Accept", "application/json"); - - localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } - /** - * Pair API key Pair an API key to a cosigner - * - * @param pairApiKeyRequest (required) - * @param cosignerId The unique identifier of the cosigner (required) - * @param apiKeyId The unique identifier of the API key (required) - * @param idempotencyKey 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. (optional) - * @return CompletableFuture<ApiResponse<PairApiKeyResponse>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> pairApiKey( - PairApiKeyRequest pairApiKeyRequest, - UUID cosignerId, - String apiKeyId, - String idempotencyKey) - throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = - pairApiKeyRequestBuilder( - pairApiKeyRequest, cosignerId, apiKeyId, idempotencyKey); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException("pairApiKey", localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - PairApiKeyResponse>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder pairApiKeyRequestBuilder( - PairApiKeyRequest pairApiKeyRequest, - UUID cosignerId, - String apiKeyId, - String idempotencyKey) - throws ApiException { - ValidationUtils.assertParamExists("pairApiKey", "pairApiKeyRequest", pairApiKeyRequest); - ValidationUtils.assertParamExistsAndNotEmpty( - "pairApiKey", "cosignerId", cosignerId.toString()); - ValidationUtils.assertParamExistsAndNotEmpty("pairApiKey", "apiKeyId", apiKeyId); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = - "/cosigners/{cosignerId}/api_keys/{apiKeyId}" - .replace("{cosignerId}", ApiClient.urlEncode(cosignerId.toString())) - .replace("{apiKeyId}", ApiClient.urlEncode(apiKeyId.toString())); - - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - - if (idempotencyKey != null) { - localVarRequestBuilder.header("Idempotency-Key", idempotencyKey.toString()); - } - localVarRequestBuilder.header("Content-Type", "application/json"); - localVarRequestBuilder.header("Accept", "application/json"); - - try { - byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(pairApiKeyRequest); - localVarRequestBuilder.method( - "PUT", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); - } catch (IOException e) { - throw new ApiException(e); - } - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } /** * Rename cosigner Rename a cosigner by ID **Note:** These endpoints are currently in beta and * might be subject to changes. @@ -732,167 +478,4 @@ private HttpRequest.Builder renameCosignerRequestBuilder( } return localVarRequestBuilder; } - /** - * Unpair API key Unpair an API key from a cosigner - * - * @param cosignerId The unique identifier of the cosigner (required) - * @param apiKeyId The unique identifier of the API key (required) - * @return CompletableFuture<ApiResponse<ApiKey>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> unpairApiKey(UUID cosignerId, String apiKeyId) - throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = - unpairApiKeyRequestBuilder(cosignerId, apiKeyId); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException("unpairApiKey", localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - ApiKey>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder unpairApiKeyRequestBuilder(UUID cosignerId, String apiKeyId) - throws ApiException { - ValidationUtils.assertParamExistsAndNotEmpty( - "unpairApiKey", "cosignerId", cosignerId.toString()); - ValidationUtils.assertParamExistsAndNotEmpty("unpairApiKey", "apiKeyId", apiKeyId); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = - "/cosigners/{cosignerId}/api_keys/{apiKeyId}" - .replace("{cosignerId}", ApiClient.urlEncode(cosignerId.toString())) - .replace("{apiKeyId}", ApiClient.urlEncode(apiKeyId.toString())); - - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - - localVarRequestBuilder.header("Accept", "application/json"); - - localVarRequestBuilder.method("DELETE", HttpRequest.BodyPublishers.noBody()); - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } - /** - * Update API key callback handler Update the callback handler of an API key - * - * @param updateCallbackHandlerRequest (required) - * @param cosignerId The unique identifier of the cosigner (required) - * @param apiKeyId The unique identifier of the API key (required) - * @return CompletableFuture<ApiResponse<UpdateCallbackHandlerResponse>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> updateCallbackHandler( - UpdateCallbackHandlerRequest updateCallbackHandlerRequest, - UUID cosignerId, - String apiKeyId) - throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = - updateCallbackHandlerRequestBuilder( - updateCallbackHandlerRequest, cosignerId, apiKeyId); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException( - "updateCallbackHandler", localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - UpdateCallbackHandlerResponse>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder updateCallbackHandlerRequestBuilder( - UpdateCallbackHandlerRequest updateCallbackHandlerRequest, - UUID cosignerId, - String apiKeyId) - throws ApiException { - ValidationUtils.assertParamExists( - "updateCallbackHandler", - "updateCallbackHandlerRequest", - updateCallbackHandlerRequest); - ValidationUtils.assertParamExistsAndNotEmpty( - "updateCallbackHandler", "cosignerId", cosignerId.toString()); - ValidationUtils.assertParamExistsAndNotEmpty("updateCallbackHandler", "apiKeyId", apiKeyId); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = - "/cosigners/{cosignerId}/api_keys/{apiKeyId}" - .replace("{cosignerId}", ApiClient.urlEncode(cosignerId.toString())) - .replace("{apiKeyId}", ApiClient.urlEncode(apiKeyId.toString())); - - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - - localVarRequestBuilder.header("Content-Type", "application/json"); - localVarRequestBuilder.header("Accept", "application/json"); - - try { - byte[] localVarPostBody = - memberVarObjectMapper.writeValueAsBytes(updateCallbackHandlerRequest); - localVarRequestBuilder.method( - "PATCH", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); - } catch (IOException e) { - throw new ApiException(e); - } - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } } diff --git a/src/main/java/com/fireblocks/sdk/api/DeployedContractsApi.java b/src/main/java/com/fireblocks/sdk/api/DeployedContractsApi.java index b627d06d..0c7a94a4 100644 --- a/src/main/java/com/fireblocks/sdk/api/DeployedContractsApi.java +++ b/src/main/java/com/fireblocks/sdk/api/DeployedContractsApi.java @@ -20,11 +20,8 @@ import com.fireblocks.sdk.ApiResponse; import com.fireblocks.sdk.Pair; import com.fireblocks.sdk.ValidationUtils; -import com.fireblocks.sdk.model.AddAbiRequestDto; -import com.fireblocks.sdk.model.ContractWithAbiDto; import com.fireblocks.sdk.model.DeployedContractResponseDto; import com.fireblocks.sdk.model.DeployedContractsPaginatedResponse; -import com.fireblocks.sdk.model.FetchAbiRequestDto; import java.io.IOException; import java.io.InputStream; import java.math.BigDecimal; @@ -79,163 +76,6 @@ private String formatExceptionMessage(String operationId, int statusCode, String return operationId + " call failed with: " + statusCode + " - " + body; } - /** - * Save contract ABI Save contract ABI for the tenant - * - * @param addAbiRequestDto (required) - * @param idempotencyKey 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. (optional) - * @return CompletableFuture<ApiResponse<ContractWithAbiDto>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> addContractABI( - AddAbiRequestDto addAbiRequestDto, String idempotencyKey) throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = - addContractABIRequestBuilder(addAbiRequestDto, idempotencyKey); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException("addContractABI", localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - ContractWithAbiDto>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder addContractABIRequestBuilder( - AddAbiRequestDto addAbiRequestDto, String idempotencyKey) throws ApiException { - ValidationUtils.assertParamExists("addContractABI", "addAbiRequestDto", addAbiRequestDto); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = "/tokenization/contracts/abi"; - - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - - if (idempotencyKey != null) { - localVarRequestBuilder.header("Idempotency-Key", idempotencyKey.toString()); - } - localVarRequestBuilder.header("Content-Type", "application/json"); - localVarRequestBuilder.header("Accept", "application/json"); - - try { - byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(addAbiRequestDto); - localVarRequestBuilder.method( - "POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); - } catch (IOException e) { - throw new ApiException(e); - } - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } - /** - * Fetch the contract ABI Fetch the ABI. If not found fetch the ABI from the block explorer - * - * @param fetchAbiRequestDto (required) - * @param idempotencyKey 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. (optional) - * @return CompletableFuture<ApiResponse<ContractWithAbiDto>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> fetchContractAbi( - FetchAbiRequestDto fetchAbiRequestDto, String idempotencyKey) throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = - fetchContractAbiRequestBuilder(fetchAbiRequestDto, idempotencyKey); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException("fetchContractAbi", localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - ContractWithAbiDto>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder fetchContractAbiRequestBuilder( - FetchAbiRequestDto fetchAbiRequestDto, String idempotencyKey) throws ApiException { - ValidationUtils.assertParamExists( - "fetchContractAbi", "fetchAbiRequestDto", fetchAbiRequestDto); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = "/tokenization/contracts/fetch_abi"; - - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - - if (idempotencyKey != null) { - localVarRequestBuilder.header("Idempotency-Key", idempotencyKey.toString()); - } - localVarRequestBuilder.header("Content-Type", "application/json"); - localVarRequestBuilder.header("Accept", "application/json"); - - try { - byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(fetchAbiRequestDto); - localVarRequestBuilder.method( - "POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); - } catch (IOException e) { - throw new ApiException(e); - } - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } /** * Return deployed contract data Return deployed contract data by blockchain native asset id and * contract address @@ -387,8 +227,8 @@ private HttpRequest.Builder getDeployedContractByIdRequestBuilder(String id) * @param pageSize Number of items per page, requesting more then max will return max items * (optional) * @param contractAddress The contract's onchain address (optional) - * @param baseAssetId (optional) - * @param contractTemplateId (optional) + * @param assetId (optional) + * @param templateId (optional) * @return CompletableFuture<ApiResponse<DeployedContractsPaginatedResponse>> * @throws ApiException if fails to make API call */ @@ -396,13 +236,13 @@ public CompletableFuture> getDep String pageCursor, BigDecimal pageSize, String contractAddress, - String baseAssetId, - String contractTemplateId) + String assetId, + String templateId) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = getDeployedContractsRequestBuilder( - pageCursor, pageSize, contractAddress, baseAssetId, contractTemplateId); + pageCursor, pageSize, contractAddress, assetId, templateId); return memberVarHttpClient .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) .thenComposeAsync( @@ -440,8 +280,8 @@ private HttpRequest.Builder getDeployedContractsRequestBuilder( String pageCursor, BigDecimal pageSize, String contractAddress, - String baseAssetId, - String contractTemplateId) + String assetId, + String templateId) throws ApiException { HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); @@ -457,11 +297,10 @@ private HttpRequest.Builder getDeployedContractsRequestBuilder( localVarQueryParams.addAll(ApiClient.parameterToPairs("pageSize", pageSize)); localVarQueryParameterBaseName = "contractAddress"; localVarQueryParams.addAll(ApiClient.parameterToPairs("contractAddress", contractAddress)); - localVarQueryParameterBaseName = "baseAssetId"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("baseAssetId", baseAssetId)); - localVarQueryParameterBaseName = "contractTemplateId"; - localVarQueryParams.addAll( - ApiClient.parameterToPairs("contractTemplateId", contractTemplateId)); + localVarQueryParameterBaseName = "assetId"; + localVarQueryParams.addAll(ApiClient.parameterToPairs("assetId", assetId)); + localVarQueryParameterBaseName = "templateId"; + localVarQueryParams.addAll(ApiClient.parameterToPairs("templateId", templateId)); if (!localVarQueryParams.isEmpty() || localVarQueryStringJoiner.length() != 0) { StringJoiner queryJoiner = new StringJoiner("&"); diff --git a/src/main/java/com/fireblocks/sdk/api/EmbeddedWalletsApi.java b/src/main/java/com/fireblocks/sdk/api/EmbeddedWalletsApi.java deleted file mode 100644 index cdb640c3..00000000 --- a/src/main/java/com/fireblocks/sdk/api/EmbeddedWalletsApi.java +++ /dev/null @@ -1,1498 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.api; - - -import com.fasterxml.jackson.core.type.TypeReference; -import com.fasterxml.jackson.databind.ObjectMapper; -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.Pair; -import com.fireblocks.sdk.ValidationUtils; -import com.fireblocks.sdk.model.EmbeddedWallet; -import com.fireblocks.sdk.model.EmbeddedWalletAccount; -import com.fireblocks.sdk.model.EmbeddedWalletAddressDetails; -import com.fireblocks.sdk.model.EmbeddedWalletAssetBalance; -import com.fireblocks.sdk.model.EmbeddedWalletAssetResponse; -import com.fireblocks.sdk.model.EmbeddedWalletDevice; -import com.fireblocks.sdk.model.EmbeddedWalletDeviceKeySetupResponse; -import com.fireblocks.sdk.model.EmbeddedWalletLatestBackupResponse; -import com.fireblocks.sdk.model.EmbeddedWalletPaginatedAddressesResponse; -import com.fireblocks.sdk.model.EmbeddedWalletPaginatedAssetsResponse; -import com.fireblocks.sdk.model.EmbeddedWalletPaginatedWalletsResponse; -import com.fireblocks.sdk.model.PublicKeyInformation; -import java.io.IOException; -import java.io.InputStream; -import java.math.BigDecimal; -import java.net.URI; -import java.net.http.HttpClient; -import java.net.http.HttpRequest; -import java.net.http.HttpResponse; -import java.time.Duration; -import java.util.ArrayList; -import java.util.List; -import java.util.StringJoiner; -import java.util.UUID; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; - -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class EmbeddedWalletsApi { - private final HttpClient memberVarHttpClient; - private final ObjectMapper memberVarObjectMapper; - private final String memberVarBaseUri; - private final Consumer memberVarInterceptor; - private final Duration memberVarReadTimeout; - private final Consumer> memberVarResponseInterceptor; - private final Consumer> memberVarAsyncResponseInterceptor; - - public EmbeddedWalletsApi() { - this(new ApiClient()); - } - - public EmbeddedWalletsApi(ApiClient apiClient) { - memberVarHttpClient = apiClient.getHttpClient(); - memberVarObjectMapper = apiClient.getObjectMapper(); - memberVarBaseUri = apiClient.getBaseUri(); - memberVarInterceptor = apiClient.getRequestInterceptor(); - memberVarReadTimeout = apiClient.getReadTimeout(); - memberVarResponseInterceptor = apiClient.getResponseInterceptor(); - memberVarAsyncResponseInterceptor = apiClient.getAsyncResponseInterceptor(); - } - - private ApiException getApiException(String operationId, HttpResponse response) { - String message = - formatExceptionMessage(operationId, response.statusCode(), response.body()); - return new ApiException( - response.statusCode(), message, response.headers(), response.body()); - } - - private String formatExceptionMessage(String operationId, int statusCode, String body) { - if (body == null || body.isEmpty()) { - body = "[no body]"; - } - return operationId + " call failed with: " + statusCode + " - " + body; - } - - /** - * Add asset to account Get the addresses of a specific asset, under a specific account, under a - * specific Non Custodial Wallet - * - * @param walletId Wallet Id (required) - * @param accountId The ID of the account (required) - * @param assetId The ID of the asset (required) - * @param idempotencyKey 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. (optional) - * @return CompletableFuture<ApiResponse<EmbeddedWalletAddressDetails>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> addEmbeddedWalletAsset( - String walletId, String accountId, String assetId, String idempotencyKey) - throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = - addEmbeddedWalletAssetRequestBuilder( - walletId, accountId, assetId, idempotencyKey); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException( - "addEmbeddedWalletAsset", localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - EmbeddedWalletAddressDetails>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder addEmbeddedWalletAssetRequestBuilder( - String walletId, String accountId, String assetId, String idempotencyKey) - throws ApiException { - ValidationUtils.assertParamExistsAndNotEmpty( - "addEmbeddedWalletAsset", "walletId", walletId); - ValidationUtils.assertParamExistsAndNotEmpty( - "addEmbeddedWalletAsset", "accountId", accountId); - ValidationUtils.assertParamExistsAndNotEmpty("addEmbeddedWalletAsset", "assetId", assetId); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = - "/ncw/wallets/{walletId}/accounts/{accountId}/assets/{assetId}" - .replace("{walletId}", ApiClient.urlEncode(walletId.toString())) - .replace("{accountId}", ApiClient.urlEncode(accountId.toString())) - .replace("{assetId}", ApiClient.urlEncode(assetId.toString())); - - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - - if (idempotencyKey != null) { - localVarRequestBuilder.header("Idempotency-Key", idempotencyKey.toString()); - } - localVarRequestBuilder.header("Accept", "application/json"); - - localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.noBody()); - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } - /** - * Create a new wallet Create new Non Custodial Wallet - * - * @param idempotencyKey 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. (optional) - * @return CompletableFuture<ApiResponse<EmbeddedWallet>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> createEmbeddedWallet( - String idempotencyKey) throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = - createEmbeddedWalletRequestBuilder(idempotencyKey); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException( - "createEmbeddedWallet", localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - EmbeddedWallet>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder createEmbeddedWalletRequestBuilder(String idempotencyKey) - throws ApiException { - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = "/ncw/wallets"; - - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - - if (idempotencyKey != null) { - localVarRequestBuilder.header("Idempotency-Key", idempotencyKey.toString()); - } - localVarRequestBuilder.header("Accept", "application/json"); - - localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.noBody()); - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } - /** - * Create a new account Create a new account under a specific Non Custodial Wallet - * - * @param walletId Wallet Id (required) - * @param idempotencyKey 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. (optional) - * @return CompletableFuture<ApiResponse<EmbeddedWalletAccount>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> createEmbeddedWalletAccount( - String walletId, String idempotencyKey) throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = - createEmbeddedWalletAccountRequestBuilder(walletId, idempotencyKey); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException( - "createEmbeddedWalletAccount", - localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - EmbeddedWalletAccount>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder createEmbeddedWalletAccountRequestBuilder( - String walletId, String idempotencyKey) throws ApiException { - ValidationUtils.assertParamExistsAndNotEmpty( - "createEmbeddedWalletAccount", "walletId", walletId); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = - "/ncw/wallets/{walletId}/accounts" - .replace("{walletId}", ApiClient.urlEncode(walletId.toString())); - - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - - if (idempotencyKey != null) { - localVarRequestBuilder.header("Idempotency-Key", idempotencyKey.toString()); - } - localVarRequestBuilder.header("Accept", "application/json"); - - localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.noBody()); - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } - /** - * Get a wallet Get a wallet - * - * @param walletId Wallet Id (required) - * @return CompletableFuture<ApiResponse<EmbeddedWallet>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> getEmbeddedWallet(String walletId) - throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = getEmbeddedWalletRequestBuilder(walletId); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException("getEmbeddedWallet", localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - EmbeddedWallet>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder getEmbeddedWalletRequestBuilder(String walletId) - throws ApiException { - ValidationUtils.assertParamExistsAndNotEmpty("getEmbeddedWallet", "walletId", walletId); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = - "/ncw/wallets/{walletId}" - .replace("{walletId}", ApiClient.urlEncode(walletId.toString())); - - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - - localVarRequestBuilder.header("Accept", "application/json"); - - localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } - /** - * Get a account Get a specific account under a specific Non Custodial Wallet - * - * @param walletId WalletId (required) - * @param accountId The ID of the account (required) - * @return CompletableFuture<ApiResponse<EmbeddedWalletAccount>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> getEmbeddedWalletAccount( - String walletId, String accountId) throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = - getEmbeddedWalletAccountRequestBuilder(walletId, accountId); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException( - "getEmbeddedWalletAccount", localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - EmbeddedWalletAccount>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder getEmbeddedWalletAccountRequestBuilder( - String walletId, String accountId) throws ApiException { - ValidationUtils.assertParamExistsAndNotEmpty( - "getEmbeddedWalletAccount", "walletId", walletId); - ValidationUtils.assertParamExistsAndNotEmpty( - "getEmbeddedWalletAccount", "accountId", accountId); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = - "/ncw/wallets/{walletId}/accounts/{accountId}" - .replace("{walletId}", ApiClient.urlEncode(walletId.toString())) - .replace("{accountId}", ApiClient.urlEncode(accountId.toString())); - - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - - localVarRequestBuilder.header("Accept", "application/json"); - - localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } - /** - * Retrieve asset addresses Get the addresses of a specific asset, under a specific account, - * under a specific Non Custodial Wallet - * - * @param walletId Wallet Id (required) - * @param accountId The ID of the account (required) - * @param assetId The ID of the asset (required) - * @param pageCursor Cursor to the next page (optional) - * @param pageSize Items per page (optional) - * @param sort Sort by address (optional, default to createdAt) - * @param order Is the order ascending or descending (optional, default to ASC) - * @param enabled Enabled (optional) - * @return CompletableFuture<ApiResponse<EmbeddedWalletPaginatedAddressesResponse>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> - getEmbeddedWalletAddresses( - String walletId, - String accountId, - String assetId, - String pageCursor, - BigDecimal pageSize, - String sort, - String order, - Boolean enabled) - throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = - getEmbeddedWalletAddressesRequestBuilder( - walletId, - accountId, - assetId, - pageCursor, - pageSize, - sort, - order, - enabled); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException( - "getEmbeddedWalletAddresses", - localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse< - EmbeddedWalletPaginatedAddressesResponse>( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - EmbeddedWalletPaginatedAddressesResponse>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder getEmbeddedWalletAddressesRequestBuilder( - String walletId, - String accountId, - String assetId, - String pageCursor, - BigDecimal pageSize, - String sort, - String order, - Boolean enabled) - throws ApiException { - ValidationUtils.assertParamExistsAndNotEmpty( - "getEmbeddedWalletAddresses", "walletId", walletId); - ValidationUtils.assertParamExistsAndNotEmpty( - "getEmbeddedWalletAddresses", "accountId", accountId); - ValidationUtils.assertParamExistsAndNotEmpty( - "getEmbeddedWalletAddresses", "assetId", assetId); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = - "/ncw/wallets/{walletId}/accounts/{accountId}/assets/{assetId}/addresses" - .replace("{walletId}", ApiClient.urlEncode(walletId.toString())) - .replace("{accountId}", ApiClient.urlEncode(accountId.toString())) - .replace("{assetId}", ApiClient.urlEncode(assetId.toString())); - - List localVarQueryParams = new ArrayList<>(); - StringJoiner localVarQueryStringJoiner = new StringJoiner("&"); - String localVarQueryParameterBaseName; - localVarQueryParameterBaseName = "pageCursor"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("pageCursor", pageCursor)); - localVarQueryParameterBaseName = "pageSize"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("pageSize", pageSize)); - localVarQueryParameterBaseName = "sort"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("sort", sort)); - localVarQueryParameterBaseName = "order"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("order", order)); - localVarQueryParameterBaseName = "enabled"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("enabled", enabled)); - - if (!localVarQueryParams.isEmpty() || localVarQueryStringJoiner.length() != 0) { - StringJoiner queryJoiner = new StringJoiner("&"); - localVarQueryParams.forEach(p -> queryJoiner.add(p.getName() + '=' + p.getValue())); - if (localVarQueryStringJoiner.length() != 0) { - queryJoiner.add(localVarQueryStringJoiner.toString()); - } - localVarRequestBuilder.uri( - URI.create(memberVarBaseUri + localVarPath + '?' + queryJoiner.toString())); - } else { - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - } - - localVarRequestBuilder.header("Accept", "application/json"); - - localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } - /** - * Retrieve asset Get asset under a specific account, under a specific Non Custodial Wallet - * - * @param walletId Wallet Id (required) - * @param accountId The ID of the account (required) - * @param assetId The ID of the asset (required) - * @return CompletableFuture<ApiResponse<EmbeddedWalletAssetResponse>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> getEmbeddedWalletAsset( - String walletId, String accountId, String assetId) throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = - getEmbeddedWalletAssetRequestBuilder(walletId, accountId, assetId); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException( - "getEmbeddedWalletAsset", localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - EmbeddedWalletAssetResponse>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder getEmbeddedWalletAssetRequestBuilder( - String walletId, String accountId, String assetId) throws ApiException { - ValidationUtils.assertParamExistsAndNotEmpty( - "getEmbeddedWalletAsset", "walletId", walletId); - ValidationUtils.assertParamExistsAndNotEmpty( - "getEmbeddedWalletAsset", "accountId", accountId); - ValidationUtils.assertParamExistsAndNotEmpty("getEmbeddedWalletAsset", "assetId", assetId); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = - "/ncw/wallets/{walletId}/accounts/{accountId}/assets/{assetId}" - .replace("{walletId}", ApiClient.urlEncode(walletId.toString())) - .replace("{accountId}", ApiClient.urlEncode(accountId.toString())) - .replace("{assetId}", ApiClient.urlEncode(assetId.toString())); - - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - - localVarRequestBuilder.header("Accept", "application/json"); - - localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } - /** - * Retrieve asset balance Get balance for specific asset, under a specific account - * - * @param walletId Wallet Id (required) - * @param accountId The ID of the account (required) - * @param assetId The ID of the asset (required) - * @return CompletableFuture<ApiResponse<EmbeddedWalletAssetBalance>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> getEmbeddedWalletAssetBalance( - String walletId, String accountId, String assetId) throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = - getEmbeddedWalletAssetBalanceRequestBuilder(walletId, accountId, assetId); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException( - "getEmbeddedWalletAssetBalance", - localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - EmbeddedWalletAssetBalance>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder getEmbeddedWalletAssetBalanceRequestBuilder( - String walletId, String accountId, String assetId) throws ApiException { - ValidationUtils.assertParamExistsAndNotEmpty( - "getEmbeddedWalletAssetBalance", "walletId", walletId); - ValidationUtils.assertParamExistsAndNotEmpty( - "getEmbeddedWalletAssetBalance", "accountId", accountId); - ValidationUtils.assertParamExistsAndNotEmpty( - "getEmbeddedWalletAssetBalance", "assetId", assetId); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = - "/ncw/wallets/{walletId}/accounts/{accountId}/assets/{assetId}/balance" - .replace("{walletId}", ApiClient.urlEncode(walletId.toString())) - .replace("{accountId}", ApiClient.urlEncode(accountId.toString())) - .replace("{assetId}", ApiClient.urlEncode(assetId.toString())); - - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - - localVarRequestBuilder.header("Accept", "application/json"); - - localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } - /** - * Get Embedded Wallet Device Get specific device for a specific s Wallet - * - * @param walletId Wallet Id (required) - * @param deviceId Device Id (required) - * @return CompletableFuture<ApiResponse<EmbeddedWalletDevice>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> getEmbeddedWalletDevice( - String walletId, String deviceId) throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = - getEmbeddedWalletDeviceRequestBuilder(walletId, deviceId); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException( - "getEmbeddedWalletDevice", localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - EmbeddedWalletDevice>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder getEmbeddedWalletDeviceRequestBuilder( - String walletId, String deviceId) throws ApiException { - ValidationUtils.assertParamExistsAndNotEmpty( - "getEmbeddedWalletDevice", "walletId", walletId); - ValidationUtils.assertParamExistsAndNotEmpty( - "getEmbeddedWalletDevice", "deviceId", deviceId); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = - "/ncw/wallets/{walletId}/devices/{deviceId}" - .replace("{walletId}", ApiClient.urlEncode(walletId.toString())) - .replace("{deviceId}", ApiClient.urlEncode(deviceId.toString())); - - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - - localVarRequestBuilder.header("Accept", "application/json"); - - localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } - /** - * Get device key setup state Get the state of the specific device setup key under a specific - * Non Custodial Wallet - * - * @param walletId Wallet Id (required) - * @param deviceId Device Id (required) - * @return CompletableFuture<ApiResponse<EmbeddedWalletDeviceKeySetupResponse>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> - getEmbeddedWalletDeviceSetupState(String walletId, String deviceId) - throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = - getEmbeddedWalletDeviceSetupStateRequestBuilder(walletId, deviceId); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException( - "getEmbeddedWalletDeviceSetupState", - localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - EmbeddedWalletDeviceKeySetupResponse>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder getEmbeddedWalletDeviceSetupStateRequestBuilder( - String walletId, String deviceId) throws ApiException { - ValidationUtils.assertParamExistsAndNotEmpty( - "getEmbeddedWalletDeviceSetupState", "walletId", walletId); - ValidationUtils.assertParamExistsAndNotEmpty( - "getEmbeddedWalletDeviceSetupState", "deviceId", deviceId); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = - "/ncw/wallets/{walletId}/devices/{deviceId}/setup_status" - .replace("{walletId}", ApiClient.urlEncode(walletId.toString())) - .replace("{deviceId}", ApiClient.urlEncode(deviceId.toString())); - - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - - localVarRequestBuilder.header("Accept", "application/json"); - - localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } - /** - * Get wallet Latest Backup details Get wallet Latest Backup details, including the deviceId, - * and backup time - * - * @param walletId Wallet Id (required) - * @return CompletableFuture<ApiResponse<EmbeddedWalletLatestBackupResponse>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> - getEmbeddedWalletLatestBackup(String walletId) throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = - getEmbeddedWalletLatestBackupRequestBuilder(walletId); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException( - "getEmbeddedWalletLatestBackup", - localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - EmbeddedWalletLatestBackupResponse>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder getEmbeddedWalletLatestBackupRequestBuilder(String walletId) - throws ApiException { - ValidationUtils.assertParamExistsAndNotEmpty( - "getEmbeddedWalletLatestBackup", "walletId", walletId); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = - "/ncw/wallets/{walletId}/backup/latest" - .replace("{walletId}", ApiClient.urlEncode(walletId.toString())); - - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - - localVarRequestBuilder.header("Accept", "application/json"); - - localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } - /** - * Get the public key of an asset Gets the public key of an asset associated with a specific - * account within a Non-Custodial Wallet - * - * @param xEndUserWalletId Unique ID of the End-User wallet to the API request. Required for - * end-user wallet operations. (required) - * @param walletId The ID of the Non-Custodial wallet (required) - * @param accountId The ID of the account (required) - * @param assetId The ID of the asset (required) - * @param change BIP44 derivation path - change value (required) - * @param addressIndex BIP44 derivation path - index value (required) - * @param compressed Compressed/Uncompressed public key format (optional) - * @return CompletableFuture<ApiResponse<PublicKeyInformation>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> - getEmbeddedWalletPublicKeyInfoForAddress( - UUID xEndUserWalletId, - String walletId, - String accountId, - String assetId, - BigDecimal change, - BigDecimal addressIndex, - Boolean compressed) - throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = - getEmbeddedWalletPublicKeyInfoForAddressRequestBuilder( - xEndUserWalletId, - walletId, - accountId, - assetId, - change, - addressIndex, - compressed); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException( - "getEmbeddedWalletPublicKeyInfoForAddress", - localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - PublicKeyInformation>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder getEmbeddedWalletPublicKeyInfoForAddressRequestBuilder( - UUID xEndUserWalletId, - String walletId, - String accountId, - String assetId, - BigDecimal change, - BigDecimal addressIndex, - Boolean compressed) - throws ApiException { - ValidationUtils.assertParamExistsAndNotEmpty( - "getEmbeddedWalletPublicKeyInfoForAddress", - "xEndUserWalletId", - xEndUserWalletId.toString()); - ValidationUtils.assertParamExistsAndNotEmpty( - "getEmbeddedWalletPublicKeyInfoForAddress", "walletId", walletId); - ValidationUtils.assertParamExistsAndNotEmpty( - "getEmbeddedWalletPublicKeyInfoForAddress", "accountId", accountId); - ValidationUtils.assertParamExistsAndNotEmpty( - "getEmbeddedWalletPublicKeyInfoForAddress", "assetId", assetId); - ValidationUtils.assertParamExists( - "getEmbeddedWalletPublicKeyInfoForAddress", "change", change); - ValidationUtils.assertParamExists( - "getEmbeddedWalletPublicKeyInfoForAddress", "addressIndex", addressIndex); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = - "/ncw/wallets/{walletId}/accounts/{accountId}/assets/{assetId}/{change}/{addressIndex}/public_key_info" - .replace("{walletId}", ApiClient.urlEncode(walletId.toString())) - .replace("{accountId}", ApiClient.urlEncode(accountId.toString())) - .replace("{assetId}", ApiClient.urlEncode(assetId.toString())) - .replace("{change}", ApiClient.urlEncode(change.toString())) - .replace("{addressIndex}", ApiClient.urlEncode(addressIndex.toString())); - - List localVarQueryParams = new ArrayList<>(); - StringJoiner localVarQueryStringJoiner = new StringJoiner("&"); - String localVarQueryParameterBaseName; - localVarQueryParameterBaseName = "compressed"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("compressed", compressed)); - - if (!localVarQueryParams.isEmpty() || localVarQueryStringJoiner.length() != 0) { - StringJoiner queryJoiner = new StringJoiner("&"); - localVarQueryParams.forEach(p -> queryJoiner.add(p.getName() + '=' + p.getValue())); - if (localVarQueryStringJoiner.length() != 0) { - queryJoiner.add(localVarQueryStringJoiner.toString()); - } - localVarRequestBuilder.uri( - URI.create(memberVarBaseUri + localVarPath + '?' + queryJoiner.toString())); - } else { - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - } - - if (xEndUserWalletId != null) { - localVarRequestBuilder.header("X-End-User-Wallet-Id", xEndUserWalletId.toString()); - } - localVarRequestBuilder.header("Accept", "application/json"); - - localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } - /** - * Retrieve supported assets Get all the available supported assets for the Non-Custodial Wallet - * - * @param pageCursor Next page cursor to fetch (optional) - * @param pageSize Items per page (optional, default to 200) - * @param onlyBaseAssets Only base assets (optional) - * @return CompletableFuture<ApiResponse<EmbeddedWalletPaginatedAssetsResponse>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> - getEmbeddedWalletSupportedAssets( - String pageCursor, BigDecimal pageSize, Boolean onlyBaseAssets) - throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = - getEmbeddedWalletSupportedAssetsRequestBuilder( - pageCursor, pageSize, onlyBaseAssets); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException( - "getEmbeddedWalletSupportedAssets", - localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - EmbeddedWalletPaginatedAssetsResponse>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder getEmbeddedWalletSupportedAssetsRequestBuilder( - String pageCursor, BigDecimal pageSize, Boolean onlyBaseAssets) throws ApiException { - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = "/ncw/wallets/supported_assets"; - - List localVarQueryParams = new ArrayList<>(); - StringJoiner localVarQueryStringJoiner = new StringJoiner("&"); - String localVarQueryParameterBaseName; - localVarQueryParameterBaseName = "pageCursor"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("pageCursor", pageCursor)); - localVarQueryParameterBaseName = "pageSize"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("pageSize", pageSize)); - localVarQueryParameterBaseName = "onlyBaseAssets"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("onlyBaseAssets", onlyBaseAssets)); - - if (!localVarQueryParams.isEmpty() || localVarQueryStringJoiner.length() != 0) { - StringJoiner queryJoiner = new StringJoiner("&"); - localVarQueryParams.forEach(p -> queryJoiner.add(p.getName() + '=' + p.getValue())); - if (localVarQueryStringJoiner.length() != 0) { - queryJoiner.add(localVarQueryStringJoiner.toString()); - } - localVarRequestBuilder.uri( - URI.create(memberVarBaseUri + localVarPath + '?' + queryJoiner.toString())); - } else { - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - } - - localVarRequestBuilder.header("Accept", "application/json"); - - localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } - /** - * List wallets Get all Non Custodial Wallets - * - * @param pageCursor Next page cursor to fetch (optional) - * @param pageSize Items per page (optional, default to 200) - * @param sort Field(s) to use for sorting (optional, default to createdAt) - * @param order Is the order ascending or descending (optional, default to ASC) - * @param enabled Enabled Wallets (optional) - * @return CompletableFuture<ApiResponse<EmbeddedWalletPaginatedWalletsResponse>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> - getEmbeddedWallets( - String pageCursor, - BigDecimal pageSize, - String sort, - String order, - Boolean enabled) - throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = - getEmbeddedWalletsRequestBuilder(pageCursor, pageSize, sort, order, enabled); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException( - "getEmbeddedWallets", localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - EmbeddedWalletPaginatedWalletsResponse>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder getEmbeddedWalletsRequestBuilder( - String pageCursor, BigDecimal pageSize, String sort, String order, Boolean enabled) - throws ApiException { - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = "/ncw/wallets"; - - List localVarQueryParams = new ArrayList<>(); - StringJoiner localVarQueryStringJoiner = new StringJoiner("&"); - String localVarQueryParameterBaseName; - localVarQueryParameterBaseName = "pageCursor"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("pageCursor", pageCursor)); - localVarQueryParameterBaseName = "pageSize"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("pageSize", pageSize)); - localVarQueryParameterBaseName = "sort"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("sort", sort)); - localVarQueryParameterBaseName = "order"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("order", order)); - localVarQueryParameterBaseName = "enabled"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("enabled", enabled)); - - if (!localVarQueryParams.isEmpty() || localVarQueryStringJoiner.length() != 0) { - StringJoiner queryJoiner = new StringJoiner("&"); - localVarQueryParams.forEach(p -> queryJoiner.add(p.getName() + '=' + p.getValue())); - if (localVarQueryStringJoiner.length() != 0) { - queryJoiner.add(localVarQueryStringJoiner.toString()); - } - localVarRequestBuilder.uri( - URI.create(memberVarBaseUri + localVarPath + '?' + queryJoiner.toString())); - } else { - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - } - - localVarRequestBuilder.header("Accept", "application/json"); - - localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } - /** - * Get the public key for a derivation path Gets the public key information based on derivation - * path and signing algorithm within a Non-Custodial Wallet - * - * @param xEndUserWalletId Unique ID of the End-User wallet to the API request. Required for - * end-user wallet operations. (required) - * @param walletId The ID of the Non-Custodial wallet (required) - * @param derivationPath An array of integers (passed as JSON stringified array) representing - * the full BIP44 derivation path of the requested public key. The first element must always - * be 44. (required) - * @param algorithm Elliptic Curve (required) - * @param compressed Compressed/Uncompressed public key format (optional) - * @return CompletableFuture<ApiResponse<PublicKeyInformation>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> getPublicKeyInfoNcw( - UUID xEndUserWalletId, - String walletId, - String derivationPath, - String algorithm, - Boolean compressed) - throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = - getPublicKeyInfoNcwRequestBuilder( - xEndUserWalletId, walletId, derivationPath, algorithm, compressed); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException( - "getPublicKeyInfoNcw", localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - PublicKeyInformation>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder getPublicKeyInfoNcwRequestBuilder( - UUID xEndUserWalletId, - String walletId, - String derivationPath, - String algorithm, - Boolean compressed) - throws ApiException { - ValidationUtils.assertParamExistsAndNotEmpty( - "getPublicKeyInfoNcw", "xEndUserWalletId", xEndUserWalletId.toString()); - ValidationUtils.assertParamExistsAndNotEmpty("getPublicKeyInfoNcw", "walletId", walletId); - ValidationUtils.assertParamExistsAndNotEmpty( - "getPublicKeyInfoNcw", "derivationPath", derivationPath); - ValidationUtils.assertParamExistsAndNotEmpty("getPublicKeyInfoNcw", "algorithm", algorithm); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = - "/ncw/wallets/{walletId}/public_key_info" - .replace("{walletId}", ApiClient.urlEncode(walletId.toString())); - - List localVarQueryParams = new ArrayList<>(); - StringJoiner localVarQueryStringJoiner = new StringJoiner("&"); - String localVarQueryParameterBaseName; - localVarQueryParameterBaseName = "derivationPath"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("derivationPath", derivationPath)); - localVarQueryParameterBaseName = "algorithm"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("algorithm", algorithm)); - localVarQueryParameterBaseName = "compressed"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("compressed", compressed)); - - if (!localVarQueryParams.isEmpty() || localVarQueryStringJoiner.length() != 0) { - StringJoiner queryJoiner = new StringJoiner("&"); - localVarQueryParams.forEach(p -> queryJoiner.add(p.getName() + '=' + p.getValue())); - if (localVarQueryStringJoiner.length() != 0) { - queryJoiner.add(localVarQueryStringJoiner.toString()); - } - localVarRequestBuilder.uri( - URI.create(memberVarBaseUri + localVarPath + '?' + queryJoiner.toString())); - } else { - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - } - - if (xEndUserWalletId != null) { - localVarRequestBuilder.header("X-End-User-Wallet-Id", xEndUserWalletId.toString()); - } - localVarRequestBuilder.header("Accept", "application/json"); - - localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } - /** - * Refresh asset balance Refresh the balance of an asset in a specific account - * - * @param walletId Wallet Id (required) - * @param accountId The ID of the account (required) - * @param assetId The ID of the asset (required) - * @param idempotencyKey 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. (optional) - * @return CompletableFuture<ApiResponse<EmbeddedWalletAssetBalance>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> - refreshEmbeddedWalletAssetBalance( - String walletId, String accountId, String assetId, String idempotencyKey) - throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = - refreshEmbeddedWalletAssetBalanceRequestBuilder( - walletId, accountId, assetId, idempotencyKey); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException( - "refreshEmbeddedWalletAssetBalance", - localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - EmbeddedWalletAssetBalance>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder refreshEmbeddedWalletAssetBalanceRequestBuilder( - String walletId, String accountId, String assetId, String idempotencyKey) - throws ApiException { - ValidationUtils.assertParamExistsAndNotEmpty( - "refreshEmbeddedWalletAssetBalance", "walletId", walletId); - ValidationUtils.assertParamExistsAndNotEmpty( - "refreshEmbeddedWalletAssetBalance", "accountId", accountId); - ValidationUtils.assertParamExistsAndNotEmpty( - "refreshEmbeddedWalletAssetBalance", "assetId", assetId); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = - "/ncw/wallets/{walletId}/accounts/{accountId}/assets/{assetId}/balance" - .replace("{walletId}", ApiClient.urlEncode(walletId.toString())) - .replace("{accountId}", ApiClient.urlEncode(accountId.toString())) - .replace("{assetId}", ApiClient.urlEncode(assetId.toString())); - - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - - if (idempotencyKey != null) { - localVarRequestBuilder.header("Idempotency-Key", idempotencyKey.toString()); - } - localVarRequestBuilder.header("Accept", "application/json"); - - localVarRequestBuilder.method("PUT", HttpRequest.BodyPublishers.noBody()); - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } -} diff --git a/src/main/java/com/fireblocks/sdk/api/ExchangeAccountsApi.java b/src/main/java/com/fireblocks/sdk/api/ExchangeAccountsApi.java index 2929898f..db4fa848 100644 --- a/src/main/java/com/fireblocks/sdk/api/ExchangeAccountsApi.java +++ b/src/main/java/com/fireblocks/sdk/api/ExchangeAccountsApi.java @@ -20,15 +20,12 @@ import com.fireblocks.sdk.ApiResponse; import com.fireblocks.sdk.Pair; import com.fireblocks.sdk.ValidationUtils; -import com.fireblocks.sdk.model.AddExchangeAccountRequest; -import com.fireblocks.sdk.model.AddExchangeAccountResponse; import com.fireblocks.sdk.model.ConvertAssetsRequest; import com.fireblocks.sdk.model.ConvertAssetsResponse; import com.fireblocks.sdk.model.CreateInternalTransferRequest; import com.fireblocks.sdk.model.ExchangeAccount; import com.fireblocks.sdk.model.ExchangeAccountsPaged; import com.fireblocks.sdk.model.ExchangeAsset; -import com.fireblocks.sdk.model.GetExchangeAccountsCredentialsPublicKeyResponse; import com.fireblocks.sdk.model.InternalTransferResponse; import java.io.IOException; import java.io.InputStream; @@ -84,89 +81,6 @@ private String formatExceptionMessage(String operationId, int statusCode, String return operationId + " call failed with: " + statusCode + " - " + body; } - /** - * Add an exchange account Add an exchange account to exchanges. - * - * @param addExchangeAccountRequest (required) - * @param idempotencyKey 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. (optional) - * @return CompletableFuture<ApiResponse<AddExchangeAccountResponse>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> addExchangeAccount( - AddExchangeAccountRequest addExchangeAccountRequest, String idempotencyKey) - throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = - addExchangeAccountRequestBuilder(addExchangeAccountRequest, idempotencyKey); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException( - "addExchangeAccount", localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - AddExchangeAccountResponse>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder addExchangeAccountRequestBuilder( - AddExchangeAccountRequest addExchangeAccountRequest, String idempotencyKey) - throws ApiException { - ValidationUtils.assertParamExists( - "addExchangeAccount", "addExchangeAccountRequest", addExchangeAccountRequest); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = "/exchange_accounts"; - - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - - if (idempotencyKey != null) { - localVarRequestBuilder.header("Idempotency-Key", idempotencyKey.toString()); - } - localVarRequestBuilder.header("Content-Type", "application/json"); - localVarRequestBuilder.header("Accept", "application/json"); - - try { - byte[] localVarPostBody = - memberVarObjectMapper.writeValueAsBytes(addExchangeAccountRequest); - localVarRequestBuilder.method( - "POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); - } catch (IOException e) { - throw new ApiException(e); - } - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } /** * Convert exchange account funds from the source asset to the destination asset. Convert * exchange account funds from the source asset to the destination asset. Coinbase (USD to USDC, @@ -407,73 +321,6 @@ private HttpRequest.Builder getExchangeAccountAssetRequestBuilder( } return localVarRequestBuilder; } - /** - * Get public key to encrypt exchange credentials Return public key - * - * @return - * CompletableFuture<ApiResponse<GetExchangeAccountsCredentialsPublicKeyResponse>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> - getExchangeAccountsCredentialsPublicKey() throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = - getExchangeAccountsCredentialsPublicKeyRequestBuilder(); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException( - "getExchangeAccountsCredentialsPublicKey", - localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse< - GetExchangeAccountsCredentialsPublicKeyResponse>( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - GetExchangeAccountsCredentialsPublicKeyResponse>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder getExchangeAccountsCredentialsPublicKeyRequestBuilder() - throws ApiException { - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = "/exchange_accounts/credentials_public_key"; - - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - - localVarRequestBuilder.header("Accept", "application/json"); - - localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } /** * Pagination list exchange accounts Returns a page include exchange accounts. * diff --git a/src/main/java/com/fireblocks/sdk/api/InternalWalletsApi.java b/src/main/java/com/fireblocks/sdk/api/InternalWalletsApi.java index b3bd6130..b5244dc2 100644 --- a/src/main/java/com/fireblocks/sdk/api/InternalWalletsApi.java +++ b/src/main/java/com/fireblocks/sdk/api/InternalWalletsApi.java @@ -18,25 +18,20 @@ import com.fireblocks.sdk.ApiClient; import com.fireblocks.sdk.ApiException; import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.Pair; import com.fireblocks.sdk.ValidationUtils; import com.fireblocks.sdk.model.CreateInternalWalletAssetRequest; import com.fireblocks.sdk.model.CreateWalletRequest; -import com.fireblocks.sdk.model.PaginatedAssetsResponse; import com.fireblocks.sdk.model.SetCustomerRefIdRequest; import com.fireblocks.sdk.model.UnmanagedWallet; import com.fireblocks.sdk.model.WalletAsset; import java.io.IOException; import java.io.InputStream; -import java.math.BigDecimal; import java.net.URI; import java.net.http.HttpClient; import java.net.http.HttpRequest; import java.net.http.HttpResponse; import java.time.Duration; -import java.util.ArrayList; import java.util.List; -import java.util.StringJoiner; import java.util.concurrent.CompletableFuture; import java.util.function.Consumer; @@ -81,10 +76,7 @@ private String formatExceptionMessage(String operationId, int statusCode, String } /** - * Create an internal wallet Creates a new internal wallet with the requested name. Learn more - * about Whitelisted Internal Addresses - * [here](https://developers.fireblocks.com/docs/whitelist-addresses#internal-wallets) Endpoint - * Permission: Admin, Non-Signing Admin, Signer, Approver, Editor. + * Create an internal wallet Creates a new internal wallet with the requested name. * * @param createWalletRequest (optional) * @param idempotencyKey A unique identifier for the request. If the request is sent multiple @@ -162,12 +154,7 @@ private HttpRequest.Builder createInternalWalletRequestBuilder( return localVarRequestBuilder; } /** - * Add an asset to an internal wallet Adds an asset to an existing internal wallet. Internal - * Wallets are whitelisted wallets that belong to you outside of Fireblocks. - You can see the - * balance of the Internal Wallet via Fireblocks - You cannot initiate transactions from - * Internal Wallets through Fireblocks Learn more about Whitelisted Internal Addresses - * [here](https://developers.fireblocks.com/docs/whitelist-addresses#internal-wallets) Endpoint - * Permission: Admin, Non-Signing Admin, Signer, Approver, Editor. + * Add an asset to an internal wallet Adds an asset to an existing internal wallet. * * @param walletId The ID of the wallet (required) * @param assetId The ID of the asset to add (required) @@ -264,10 +251,7 @@ private HttpRequest.Builder createInternalWalletAssetRequestBuilder( return localVarRequestBuilder; } /** - * Delete an internal wallet Deletes an internal wallet by ID. Internal Wallets are whitelisted - * wallets that belong to you outside of Fireblocks. - You can see the balance of the Internal - * Wallet via Fireblocks - You cannot initiate transactions from Internal Wallets through - * Fireblocks Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor. + * Delete an internal wallet Deletes an internal wallet by ID. * * @param walletId The ID of the wallet to delete (required) * @return CompletableFuture<ApiResponse<Void>> @@ -325,12 +309,8 @@ private HttpRequest.Builder deleteInternalWalletRequestBuilder(String walletId) return localVarRequestBuilder; } /** - * Delete a whitelisted address Deletes a whitelisted address (for an asset) from an internal - * wallet. Internal Wallets are whitelisted wallets that belong to you outside of Fireblocks. - - * You can see the balance of the Internal Wallet via Fireblocks - You cannot initiate - * transactions from Internal Wallets through Fireblocks Learn more about Whitelisted Internal - * Addresses [here](https://developers.fireblocks.com/docs/whitelist-addresses#internal-wallets) - * Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor. + * Delete a whitelisted address from an internal wallet Deletes a whitelisted address (for an + * asset) from an internal wallet. * * @param walletId The ID of the wallet (required) * @param assetId The ID of the asset to delete (required) @@ -393,13 +373,7 @@ private HttpRequest.Builder deleteInternalWalletAssetRequestBuilder( return localVarRequestBuilder; } /** - * Get an asset from an internal wallet Returns information for an asset in an internal wallet. - * This endpoint will be deprecated after 6 months. </br>As part of the depreciation - * process this endpoint will no longer return balances, only addresses. </br>Until it is - * deprecated, this endpoint will behave the same way. Internal Wallets are whitelisted wallets - * that belong to you outside of Fireblocks. - You can see the balance of the Internal Wallet - * via Fireblocks - You cannot initiate transactions from Internal Wallets through Fireblocks - * Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. + * Get assets for internal wallet Returns all assets in an internal wallet by ID. * * @param walletId The ID of the wallet to return (required) * @return CompletableFuture<ApiResponse<UnmanagedWallet>> @@ -466,11 +440,6 @@ private HttpRequest.Builder getInternalWalletRequestBuilder(String walletId) } /** * Get an asset from an internal wallet Returns information for an asset in an internal wallet. - * Internal Wallets are whitelisted wallets that belong to you outside of Fireblocks. - You can - * see the balance of the Internal Wallet via Fireblocks - You cannot initiate transactions from - * Internal Wallets through Fireblocks Learn more about Whitelisted Internal Addresses - * [here](https://developers.fireblocks.com/docs/whitelist-addresses#internal-wallets) Endpoint - * Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. * * @param walletId The ID of the wallet (required) * @param assetId The ID of the asset to return (required) @@ -542,114 +511,10 @@ private HttpRequest.Builder getInternalWalletAssetRequestBuilder( return localVarRequestBuilder; } /** - * List assets in an internal wallet (Paginated) Returns a paginated response of assets in an - * internal wallet. This is a new paginated endpoint that gets all the assets from the wallet - * container with balances. </br>This endpoint returns a limited amount of results with a - * quick response time. Internal Wallets are whitelisted wallets that belong to you outside of - * Fireblocks. - You can see the balance of the Internal Wallet via Fireblocks - You cannot - * initiate transactions from Internal Wallets through Fireblocks Learn more about Whitelisted - * Internal Addresses - * [here](https://developers.fireblocks.com/docs/whitelist-addresses#internal-wallets) Endpoint - * Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. - * - * @param walletId The ID of the internal wallet to return assets for (required) - * @param pageSize (optional, default to 50) - * @param pageCursor (optional) - * @return CompletableFuture<ApiResponse<PaginatedAssetsResponse>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> getInternalWalletAssetsPaginated( - String walletId, BigDecimal pageSize, String pageCursor) throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = - getInternalWalletAssetsPaginatedRequestBuilder(walletId, pageSize, pageCursor); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException( - "getInternalWalletAssetsPaginated", - localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - PaginatedAssetsResponse>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder getInternalWalletAssetsPaginatedRequestBuilder( - String walletId, BigDecimal pageSize, String pageCursor) throws ApiException { - ValidationUtils.assertParamExistsAndNotEmpty( - "getInternalWalletAssetsPaginated", "walletId", walletId); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = - "/internal_wallets/{walletId}/assets" - .replace("{walletId}", ApiClient.urlEncode(walletId.toString())); - - List localVarQueryParams = new ArrayList<>(); - StringJoiner localVarQueryStringJoiner = new StringJoiner("&"); - String localVarQueryParameterBaseName; - localVarQueryParameterBaseName = "pageSize"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("pageSize", pageSize)); - localVarQueryParameterBaseName = "pageCursor"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("pageCursor", pageCursor)); - - if (!localVarQueryParams.isEmpty() || localVarQueryStringJoiner.length() != 0) { - StringJoiner queryJoiner = new StringJoiner("&"); - localVarQueryParams.forEach(p -> queryJoiner.add(p.getName() + '=' + p.getValue())); - if (localVarQueryStringJoiner.length() != 0) { - queryJoiner.add(localVarQueryStringJoiner.toString()); - } - localVarRequestBuilder.uri( - URI.create(memberVarBaseUri + localVarPath + '?' + queryJoiner.toString())); - } else { - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - } - - localVarRequestBuilder.header("Accept", "application/json"); - - localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } - /** - * List internal wallets Gets a list of internal wallets. **Note**: - BTC-based assets belonging + * List internal wallets Gets a list of internal wallets. **Note**: BTC-based assets belonging * to whitelisted addresses cannot be retrieved between 00:00 UTC and 00:01 UTC daily due to - * third-party provider, Blockchain, being unavailable for this 60 second period. - * </br>Please wait until the next minute to retrieve BTC-based assets. - The list of - * assets returned will NOT include the balances anymore. Internal Wallets are whitelisted - * wallets that belong to you outside of Fireblocks. - You can see the balance of the Internal - * Wallet via Fireblocks - You cannot initiate transactions from Internal Wallets through - * Fireblocks Learn more about Whitelisted Internal Addresses - * [here](https://developers.fireblocks.com/docs/whitelist-addresses#internal-wallets) Endpoint - * Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. + * third-party provider, Blockchair, being unavailable for this 60 second period. Please wait + * until the next minute to retrieve BTC-based assets. * * @return CompletableFuture<ApiResponse<List<UnmanagedWallet>>> * @throws ApiException if fails to make API call @@ -713,12 +578,7 @@ private HttpRequest.Builder getInternalWalletsRequestBuilder() throws ApiExcepti } /** * Set an AML/KYT customer reference ID for an internal wallet Sets an AML/KYT customer - * reference ID for the specific internal wallet. Internal Wallets are whitelisted wallets that - * belong to you outside of Fireblocks. - You can see the balance of the Internal Wallet via - * Fireblocks - You cannot initiate transactions from Internal Wallets through Fireblocks Learn - * more about Whitelisted Internal Addresses - * [here](https://developers.fireblocks.com/docs/whitelist-addresses#internal-wallets) Endpoint - * Permission: Admin, Non-Signing Admin, Signer, Approver, Editor. + * reference ID for the specific internal wallet. * * @param setCustomerRefIdRequest (required) * @param walletId The wallet ID (required) diff --git a/src/main/java/com/fireblocks/sdk/api/JobManagementApi.java b/src/main/java/com/fireblocks/sdk/api/JobManagementApi.java index 0bbd57c9..567ace43 100644 --- a/src/main/java/com/fireblocks/sdk/api/JobManagementApi.java +++ b/src/main/java/com/fireblocks/sdk/api/JobManagementApi.java @@ -76,9 +76,9 @@ private String formatExceptionMessage(String operationId, int statusCode, String } /** - * Cancel a running job Stop the given job immediately. If the job is in the 'Active' - * state, the job will be canceled after completing the current task. Vault accounts and Wallets - * that are already created will not be affected. + * Cancel a running job Stop the given job immediately. If the job is in the ‘Active’ state, the + * job will be canceled after completing the current task. Vault accounts and Wallets that are + * already created will not be affected. * * @param jobId The requested job id (required) * @param idempotencyKey A unique identifier for the request. If the request is sent multiple @@ -412,7 +412,7 @@ private HttpRequest.Builder getJobsRequestBuilder(Integer fromTime, Integer toTi } /** * Pause a job Pause the given job, after the current task is done. A paused job can later be - * resumed by calling 'continue', or canceled. + * resumed by calling ‘continue’, or canceled. * * @param jobId The requested job id (required) * @param idempotencyKey A unique identifier for the request. If the request is sent multiple diff --git a/src/main/java/com/fireblocks/sdk/api/KeyLinkBetaApi.java b/src/main/java/com/fireblocks/sdk/api/KeyLinkBetaApi.java index 52f2f351..2e458e4d 100644 --- a/src/main/java/com/fireblocks/sdk/api/KeyLinkBetaApi.java +++ b/src/main/java/com/fireblocks/sdk/api/KeyLinkBetaApi.java @@ -422,41 +422,15 @@ private HttpRequest.Builder getSigningKeyRequestBuilder(String keyId) throws Api * @param pageSize Amount of results to return in the next page (optional, default to 10) * @param sortBy Field(s) to use for sorting (optional, default to createdAt) * @param order Is the order ascending or descending (optional, default to ASC) - * @param vaultAccountId Return keys assigned to a specific vault (optional) - * @param agentUserId Return keys associated with a specific agent user (optional) - * @param algorithm Return only keys with a specific algorithm (optional) - * @param enabled Return keys that have been proof of ownership (optional) - * @param available Return keys that are proof of ownership but not assigned. Available filter - * can be used only when vaultAccountId and enabled filters are not set (optional) - * @param isAssigned Return keys that are assigned to a vault account (optional) * @return CompletableFuture<ApiResponse<GetSigningKeyResponseDto>> * @throws ApiException if fails to make API call */ public CompletableFuture> getSigningKeysList( - String pageCursor, - BigDecimal pageSize, - String sortBy, - String order, - BigDecimal vaultAccountId, - String agentUserId, - String algorithm, - Boolean enabled, - Boolean available, - Boolean isAssigned) + String pageCursor, BigDecimal pageSize, String sortBy, String order) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = - getSigningKeysListRequestBuilder( - pageCursor, - pageSize, - sortBy, - order, - vaultAccountId, - agentUserId, - algorithm, - enabled, - available, - isAssigned); + getSigningKeysListRequestBuilder(pageCursor, pageSize, sortBy, order); return memberVarHttpClient .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) .thenComposeAsync( @@ -491,16 +465,7 @@ public CompletableFuture> getSigningKeysLi } private HttpRequest.Builder getSigningKeysListRequestBuilder( - String pageCursor, - BigDecimal pageSize, - String sortBy, - String order, - BigDecimal vaultAccountId, - String agentUserId, - String algorithm, - Boolean enabled, - Boolean available, - Boolean isAssigned) + String pageCursor, BigDecimal pageSize, String sortBy, String order) throws ApiException { HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); @@ -518,18 +483,6 @@ private HttpRequest.Builder getSigningKeysListRequestBuilder( localVarQueryParams.addAll(ApiClient.parameterToPairs("sortBy", sortBy)); localVarQueryParameterBaseName = "order"; localVarQueryParams.addAll(ApiClient.parameterToPairs("order", order)); - localVarQueryParameterBaseName = "vaultAccountId"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("vaultAccountId", vaultAccountId)); - localVarQueryParameterBaseName = "agentUserId"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("agentUserId", agentUserId)); - localVarQueryParameterBaseName = "algorithm"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("algorithm", algorithm)); - localVarQueryParameterBaseName = "enabled"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("enabled", enabled)); - localVarQueryParameterBaseName = "available"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("available", available)); - localVarQueryParameterBaseName = "isAssigned"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("isAssigned", isAssigned)); if (!localVarQueryParams.isEmpty() || localVarQueryStringJoiner.length() != 0) { StringJoiner queryJoiner = new StringJoiner("&"); diff --git a/src/main/java/com/fireblocks/sdk/api/KeysBetaApi.java b/src/main/java/com/fireblocks/sdk/api/KeysBetaApi.java deleted file mode 100644 index 5d675ecd..00000000 --- a/src/main/java/com/fireblocks/sdk/api/KeysBetaApi.java +++ /dev/null @@ -1,204 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.api; - - -import com.fasterxml.jackson.core.type.TypeReference; -import com.fasterxml.jackson.databind.ObjectMapper; -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.ValidationUtils; -import com.fireblocks.sdk.model.GetMpcKeysResponse; -import java.io.IOException; -import java.io.InputStream; -import java.net.URI; -import java.net.http.HttpClient; -import java.net.http.HttpRequest; -import java.net.http.HttpResponse; -import java.time.Duration; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; - -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class KeysBetaApi { - private final HttpClient memberVarHttpClient; - private final ObjectMapper memberVarObjectMapper; - private final String memberVarBaseUri; - private final Consumer memberVarInterceptor; - private final Duration memberVarReadTimeout; - private final Consumer> memberVarResponseInterceptor; - private final Consumer> memberVarAsyncResponseInterceptor; - - public KeysBetaApi() { - this(new ApiClient()); - } - - public KeysBetaApi(ApiClient apiClient) { - memberVarHttpClient = apiClient.getHttpClient(); - memberVarObjectMapper = apiClient.getObjectMapper(); - memberVarBaseUri = apiClient.getBaseUri(); - memberVarInterceptor = apiClient.getRequestInterceptor(); - memberVarReadTimeout = apiClient.getReadTimeout(); - memberVarResponseInterceptor = apiClient.getResponseInterceptor(); - memberVarAsyncResponseInterceptor = apiClient.getAsyncResponseInterceptor(); - } - - private ApiException getApiException(String operationId, HttpResponse response) { - String message = - formatExceptionMessage(operationId, response.statusCode(), response.body()); - return new ApiException( - response.statusCode(), message, response.headers(), response.body()); - } - - private String formatExceptionMessage(String operationId, int statusCode, String body) { - if (body == null || body.isEmpty()) { - body = "[no body]"; - } - return operationId + " call failed with: " + statusCode + " - " + body; - } - - /** - * Get list of mpc keys Returns a list of MPC signing keys of the workspace. For each key, the - * list of players associated with it is attached. **Note:** This endpoint is currently in beta - * and might be subject to changes. - * - * @return CompletableFuture<ApiResponse<GetMpcKeysResponse>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> getMpcKeysList() throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = getMpcKeysListRequestBuilder(); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException("getMpcKeysList", localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - GetMpcKeysResponse>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder getMpcKeysListRequestBuilder() throws ApiException { - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = "/keys/mpc/list"; - - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - - localVarRequestBuilder.header("Accept", "application/json"); - - localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } - /** - * Get list of mpc keys by `userId` Returns a list of MPC signing keys of a specific - * user. For each key, the list of players associated with it is attached. **Note:** This - * endpoint is currently in beta and might be subject to changes. - * - * @param userId The id for the user (required) - * @return CompletableFuture<ApiResponse<GetMpcKeysResponse>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> getMpcKeysListByUser(String userId) - throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = getMpcKeysListByUserRequestBuilder(userId); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException( - "getMpcKeysListByUser", localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - GetMpcKeysResponse>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder getMpcKeysListByUserRequestBuilder(String userId) - throws ApiException { - ValidationUtils.assertParamExistsAndNotEmpty("getMpcKeysListByUser", "userId", userId); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = - "/keys/mpc/list/{userId}" - .replace("{userId}", ApiClient.urlEncode(userId.toString())); - - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - - localVarRequestBuilder.header("Accept", "application/json"); - - localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } -} diff --git a/src/main/java/com/fireblocks/sdk/api/NetworkConnectionsApi.java b/src/main/java/com/fireblocks/sdk/api/NetworkConnectionsApi.java index 38b5cf70..5175e7f4 100644 --- a/src/main/java/com/fireblocks/sdk/api/NetworkConnectionsApi.java +++ b/src/main/java/com/fireblocks/sdk/api/NetworkConnectionsApi.java @@ -18,7 +18,6 @@ import com.fireblocks.sdk.ApiClient; import com.fireblocks.sdk.ApiException; import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.Pair; import com.fireblocks.sdk.ValidationUtils; import com.fireblocks.sdk.model.CreateNetworkIdRequest; import com.fireblocks.sdk.model.DeleteNetworkConnectionResponse; @@ -26,7 +25,6 @@ import com.fireblocks.sdk.model.NetworkConnection; import com.fireblocks.sdk.model.NetworkConnectionResponse; import com.fireblocks.sdk.model.NetworkIdResponse; -import com.fireblocks.sdk.model.SearchNetworkIdsResponse; import com.fireblocks.sdk.model.SetNetworkIdDiscoverabilityRequest; import com.fireblocks.sdk.model.SetNetworkIdNameRequest; import com.fireblocks.sdk.model.SetNetworkIdResponse; @@ -36,15 +34,12 @@ import com.fireblocks.sdk.model.ThirdPartyRouting; import java.io.IOException; import java.io.InputStream; -import java.math.BigDecimal; import java.net.URI; import java.net.http.HttpClient; import java.net.http.HttpRequest; import java.net.http.HttpResponse; import java.time.Duration; -import java.util.ArrayList; import java.util.List; -import java.util.StringJoiner; import java.util.concurrent.CompletableFuture; import java.util.function.Consumer; @@ -749,9 +744,7 @@ private HttpRequest.Builder getNetworkIdRequestBuilder(String networkId) throws * * @return CompletableFuture<ApiResponse<List<NetworkIdResponse>>> * @throws ApiException if fails to make API call - * @deprecated */ - @Deprecated public CompletableFuture>> getNetworkIds() throws ApiException { try { @@ -875,127 +868,6 @@ private HttpRequest.Builder getRoutingPolicyAssetGroupsRequestBuilder() throws A } return localVarRequestBuilder; } - /** - * Search network IDs, both local IDs and discoverable remote IDs Retrieves a list of all local - * and discoverable remote network IDs. Can be filtered. **Note:** This API call is subject to - * Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You - * can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; - * Defines the profile routing to no destination for that asset type. Incoming transactions to - * asset types routed to `None` will fail. - **Custom**; Route to an account that you - * choose. If you remove the account, incoming transactions will fail until you choose another - * one. - **Default**; Use the routing specified by the network profile the connection is - * connected to. This scheme is also referred to as \"Profile Routing\" Default - * Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - - * Network Connection Crypto → **Default** - Network Connection FIAT → **Default** - **Note**: - * By default, Custom routing scheme uses (`dstId` = `0`, - * `dstType` = `VAULT`). - * - * @param search Search string - displayName networkId. Optional (optional) - * @param excludeSelf Exclude your networkIds. Optional, default false (optional) - * @param onlySelf Include just your networkIds. Optional, default false (optional) - * @param excludeConnected Exclude connected networkIds. Optional, default false (optional) - * @param pageCursor ID of the record after which to fetch $limit records (optional) - * @param pageSize Number of records to fetch. By default, it is 50 (optional, default to 50) - * @return CompletableFuture<ApiResponse<SearchNetworkIdsResponse>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> searchNetworkIds( - String search, - Boolean excludeSelf, - Boolean onlySelf, - Boolean excludeConnected, - String pageCursor, - BigDecimal pageSize) - throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = - searchNetworkIdsRequestBuilder( - search, excludeSelf, onlySelf, excludeConnected, pageCursor, pageSize); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException("searchNetworkIds", localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - SearchNetworkIdsResponse>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder searchNetworkIdsRequestBuilder( - String search, - Boolean excludeSelf, - Boolean onlySelf, - Boolean excludeConnected, - String pageCursor, - BigDecimal pageSize) - throws ApiException { - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = "/network_ids/search"; - - List localVarQueryParams = new ArrayList<>(); - StringJoiner localVarQueryStringJoiner = new StringJoiner("&"); - String localVarQueryParameterBaseName; - localVarQueryParameterBaseName = "search"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("search", search)); - localVarQueryParameterBaseName = "excludeSelf"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("excludeSelf", excludeSelf)); - localVarQueryParameterBaseName = "onlySelf"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("onlySelf", onlySelf)); - localVarQueryParameterBaseName = "excludeConnected"; - localVarQueryParams.addAll( - ApiClient.parameterToPairs("excludeConnected", excludeConnected)); - localVarQueryParameterBaseName = "pageCursor"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("pageCursor", pageCursor)); - localVarQueryParameterBaseName = "pageSize"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("pageSize", pageSize)); - - if (!localVarQueryParams.isEmpty() || localVarQueryStringJoiner.length() != 0) { - StringJoiner queryJoiner = new StringJoiner("&"); - localVarQueryParams.forEach(p -> queryJoiner.add(p.getName() + '=' + p.getValue())); - if (localVarQueryStringJoiner.length() != 0) { - queryJoiner.add(localVarQueryStringJoiner.toString()); - } - localVarRequestBuilder.uri( - URI.create(memberVarBaseUri + localVarPath + '?' + queryJoiner.toString())); - } else { - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - } - - localVarRequestBuilder.header("Accept", "application/json"); - - localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } /** * Update network ID's discoverability. Update whether or not the network ID is discoverable * by others. **Note:** This API call is subject to Flexible Routing Schemes. Your routing diff --git a/src/main/java/com/fireblocks/sdk/api/NftsApi.java b/src/main/java/com/fireblocks/sdk/api/NftsApi.java index 57a2eaca..96f8c6ab 100644 --- a/src/main/java/com/fireblocks/sdk/api/NftsApi.java +++ b/src/main/java/com/fireblocks/sdk/api/NftsApi.java @@ -39,7 +39,6 @@ import java.util.ArrayList; import java.util.List; import java.util.StringJoiner; -import java.util.UUID; import java.util.concurrent.CompletableFuture; import java.util.function.Consumer; @@ -680,19 +679,17 @@ private HttpRequest.Builder listOwnedTokensRequestBuilder( * Refresh token metadata Updates the latest token metadata. * * @param id NFT ID (required) - * @param xEndUserWalletId Unique ID of the End-User wallet to the API request. Required for - * end-user wallet operations. (optional) * @param idempotencyKey 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. (optional) * @return CompletableFuture<ApiResponse<Void>> * @throws ApiException if fails to make API call */ - public CompletableFuture> refreshNFTMetadata( - String id, UUID xEndUserWalletId, String idempotencyKey) throws ApiException { + public CompletableFuture> refreshNFTMetadata(String id, String idempotencyKey) + throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = - refreshNFTMetadataRequestBuilder(id, xEndUserWalletId, idempotencyKey); + refreshNFTMetadataRequestBuilder(id, idempotencyKey); return memberVarHttpClient .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) .thenComposeAsync( @@ -716,8 +713,8 @@ public CompletableFuture> refreshNFTMetadata( } } - private HttpRequest.Builder refreshNFTMetadataRequestBuilder( - String id, UUID xEndUserWalletId, String idempotencyKey) throws ApiException { + private HttpRequest.Builder refreshNFTMetadataRequestBuilder(String id, String idempotencyKey) + throws ApiException { ValidationUtils.assertParamExistsAndNotEmpty("refreshNFTMetadata", "id", id); HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); @@ -727,9 +724,6 @@ private HttpRequest.Builder refreshNFTMetadataRequestBuilder( localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - if (xEndUserWalletId != null) { - localVarRequestBuilder.header("X-End-User-Wallet-Id", xEndUserWalletId.toString()); - } if (idempotencyKey != null) { localVarRequestBuilder.header("Idempotency-Key", idempotencyKey.toString()); } @@ -838,8 +832,6 @@ private HttpRequest.Builder updateOwnershipTokensRequestBuilder( * * @param updateTokenOwnershipStatusDto (required) * @param id NFT ID (required) - * @param xEndUserWalletId Unique ID of the End-User wallet to the API request. Required for - * end-user wallet operations. (optional) * @param idempotencyKey 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. (optional) @@ -849,13 +841,12 @@ private HttpRequest.Builder updateOwnershipTokensRequestBuilder( public CompletableFuture> updateTokenOwnershipStatus( UpdateTokenOwnershipStatusDto updateTokenOwnershipStatusDto, String id, - UUID xEndUserWalletId, String idempotencyKey) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = updateTokenOwnershipStatusRequestBuilder( - updateTokenOwnershipStatusDto, id, xEndUserWalletId, idempotencyKey); + updateTokenOwnershipStatusDto, id, idempotencyKey); return memberVarHttpClient .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) .thenComposeAsync( @@ -883,7 +874,6 @@ public CompletableFuture> updateTokenOwnershipStatus( private HttpRequest.Builder updateTokenOwnershipStatusRequestBuilder( UpdateTokenOwnershipStatusDto updateTokenOwnershipStatusDto, String id, - UUID xEndUserWalletId, String idempotencyKey) throws ApiException { ValidationUtils.assertParamExists( @@ -900,9 +890,6 @@ private HttpRequest.Builder updateTokenOwnershipStatusRequestBuilder( localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - if (xEndUserWalletId != null) { - localVarRequestBuilder.header("X-End-User-Wallet-Id", xEndUserWalletId.toString()); - } if (idempotencyKey != null) { localVarRequestBuilder.header("Idempotency-Key", idempotencyKey.toString()); } @@ -930,8 +917,6 @@ private HttpRequest.Builder updateTokenOwnershipStatusRequestBuilder( * ownerships, in all tenant vaults. * * @param tokenOwnershipSpamUpdatePayload (required) - * @param xEndUserWalletId Unique ID of the End-User wallet to the API request. Required for - * end-user wallet operations. (optional) * @param idempotencyKey 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. (optional) @@ -940,13 +925,12 @@ private HttpRequest.Builder updateTokenOwnershipStatusRequestBuilder( */ public CompletableFuture> updateTokensOwnershipSpam( List tokenOwnershipSpamUpdatePayload, - UUID xEndUserWalletId, String idempotencyKey) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = updateTokensOwnershipSpamRequestBuilder( - tokenOwnershipSpamUpdatePayload, xEndUserWalletId, idempotencyKey); + tokenOwnershipSpamUpdatePayload, idempotencyKey); return memberVarHttpClient .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) .thenComposeAsync( @@ -972,7 +956,6 @@ public CompletableFuture> updateTokensOwnershipSpam( private HttpRequest.Builder updateTokensOwnershipSpamRequestBuilder( List tokenOwnershipSpamUpdatePayload, - UUID xEndUserWalletId, String idempotencyKey) throws ApiException { ValidationUtils.assertParamExists( @@ -986,9 +969,6 @@ private HttpRequest.Builder updateTokensOwnershipSpamRequestBuilder( localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - if (xEndUserWalletId != null) { - localVarRequestBuilder.header("X-End-User-Wallet-Id", xEndUserWalletId.toString()); - } if (idempotencyKey != null) { localVarRequestBuilder.header("Idempotency-Key", idempotencyKey.toString()); } @@ -1015,8 +995,6 @@ private HttpRequest.Builder updateTokensOwnershipSpamRequestBuilder( * Update tokens ownership status Updates tokens status for a tenant, in all tenant vaults. * * @param tokenOwnershipStatusUpdatePayload (required) - * @param xEndUserWalletId Unique ID of the End-User wallet to the API request. Required for - * end-user wallet operations. (optional) * @param idempotencyKey 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. (optional) @@ -1025,13 +1003,12 @@ private HttpRequest.Builder updateTokensOwnershipSpamRequestBuilder( */ public CompletableFuture> updateTokensOwnershipStatus( List tokenOwnershipStatusUpdatePayload, - UUID xEndUserWalletId, String idempotencyKey) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = updateTokensOwnershipStatusRequestBuilder( - tokenOwnershipStatusUpdatePayload, xEndUserWalletId, idempotencyKey); + tokenOwnershipStatusUpdatePayload, idempotencyKey); return memberVarHttpClient .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) .thenComposeAsync( @@ -1058,7 +1035,6 @@ public CompletableFuture> updateTokensOwnershipStatus( private HttpRequest.Builder updateTokensOwnershipStatusRequestBuilder( List tokenOwnershipStatusUpdatePayload, - UUID xEndUserWalletId, String idempotencyKey) throws ApiException { ValidationUtils.assertParamExists( @@ -1072,9 +1048,6 @@ private HttpRequest.Builder updateTokensOwnershipStatusRequestBuilder( localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - if (xEndUserWalletId != null) { - localVarRequestBuilder.header("X-End-User-Wallet-Id", xEndUserWalletId.toString()); - } if (idempotencyKey != null) { localVarRequestBuilder.header("Idempotency-Key", idempotencyKey.toString()); } diff --git a/src/main/java/com/fireblocks/sdk/api/PolicyEditorBetaApi.java b/src/main/java/com/fireblocks/sdk/api/PolicyEditorBetaApi.java index 4c5bee9e..952c8b25 100644 --- a/src/main/java/com/fireblocks/sdk/api/PolicyEditorBetaApi.java +++ b/src/main/java/com/fireblocks/sdk/api/PolicyEditorBetaApi.java @@ -19,11 +19,11 @@ import com.fireblocks.sdk.ApiException; import com.fireblocks.sdk.ApiResponse; import com.fireblocks.sdk.ValidationUtils; -import com.fireblocks.sdk.model.LegacyDraftReviewAndValidationResponse; -import com.fireblocks.sdk.model.LegacyPolicyAndValidationResponse; -import com.fireblocks.sdk.model.LegacyPolicyRules; -import com.fireblocks.sdk.model.LegacyPublishDraftRequest; -import com.fireblocks.sdk.model.LegacyPublishResult; +import com.fireblocks.sdk.model.DraftReviewAndValidationResponse; +import com.fireblocks.sdk.model.PolicyAndValidationResponse; +import com.fireblocks.sdk.model.PolicyRules; +import com.fireblocks.sdk.model.PublishDraftRequest; +import com.fireblocks.sdk.model.PublishResult; import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -75,21 +75,18 @@ private String formatExceptionMessage(String operationId, int statusCode, String } /** - * Get the active policy and its validation Legacy Endpoint – Returns the active policy and its - * validation. </br> **Note:** - This endpoint will remain available for the foreseeable - * future and is not deprecated.</br> - The `getActivePolicy` endpoint under - * policy/paths provides policy type-specific operations and improved functionality.</br> - * - These endpoints are currently in beta and might be subject to changes.</br> If you - * want to participate and learn more about the Fireblocks TAP, please contact your Fireblocks - * Customer Success Manager or send an email to CSM@fireblocks.com. + * Get the active policy and its validation Returns the active policy and its validation. + * </br> **Note:** These endpoints are currently in beta and might be subject to changes. + * If you want to participate and learn more about the Fireblocks TAP, please contact your + * Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. * - * @return CompletableFuture<ApiResponse<LegacyPolicyAndValidationResponse>> + * @return CompletableFuture<ApiResponse<PolicyAndValidationResponse>> * @throws ApiException if fails to make API call */ - public CompletableFuture> getActivePolicyLegacy() + public CompletableFuture> getActivePolicy() throws ApiException { try { - HttpRequest.Builder localVarRequestBuilder = getActivePolicyLegacyRequestBuilder(); + HttpRequest.Builder localVarRequestBuilder = getActivePolicyRequestBuilder(); return memberVarHttpClient .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) .thenComposeAsync( @@ -99,13 +96,12 @@ public CompletableFuture> getActi } if (localVarResponse.statusCode() / 100 != 2) { return CompletableFuture.failedFuture( - getApiException( - "getActivePolicyLegacy", localVarResponse)); + getApiException("getActivePolicy", localVarResponse)); } try { String responseBody = localVarResponse.body(); return CompletableFuture.completedFuture( - new ApiResponse( + new ApiResponse( localVarResponse.statusCode(), localVarResponse.headers().map(), responseBody == null || responseBody.isBlank() @@ -113,7 +109,7 @@ public CompletableFuture> getActi : memberVarObjectMapper.readValue( responseBody, new TypeReference< - LegacyPolicyAndValidationResponse>() {}))); + PolicyAndValidationResponse>() {}))); } catch (IOException e) { return CompletableFuture.failedFuture(new ApiException(e)); } @@ -123,7 +119,7 @@ public CompletableFuture> getActi } } - private HttpRequest.Builder getActivePolicyLegacyRequestBuilder() throws ApiException { + private HttpRequest.Builder getActivePolicyRequestBuilder() throws ApiException { HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); @@ -143,21 +139,18 @@ private HttpRequest.Builder getActivePolicyLegacyRequestBuilder() throws ApiExce return localVarRequestBuilder; } /** - * Get the active draft Legacy Endpoint – Returns the active draft and its validation. - * </br> **Note:** - This endpoint will remain available for the foreseeable future and is - * not deprecated.</br> - The `getDraft` endpoint under policy/paths provides - * policy type-specific operations and improved functionality.</br> - These endpoints are - * currently in beta and might be subject to changes.</br> If you want to participate and - * learn more about the Fireblocks TAP, please contact your Fireblocks Customer Success Manager - * or send an email to CSM@fireblocks.com. + * Get the active draft Returns the active draft and its validation. </br> **Note:** These + * endpoints are currently in beta and might be subject to changes. If you want to participate + * and learn more about the Fireblocks TAP, please contact your Fireblocks Customer Success + * Manager or send an email to CSM@fireblocks.com. * - * @return CompletableFuture<ApiResponse<LegacyDraftReviewAndValidationResponse>> + * @return CompletableFuture<ApiResponse<DraftReviewAndValidationResponse>> * @throws ApiException if fails to make API call */ - public CompletableFuture> getDraftLegacy() + public CompletableFuture> getDraft() throws ApiException { try { - HttpRequest.Builder localVarRequestBuilder = getDraftLegacyRequestBuilder(); + HttpRequest.Builder localVarRequestBuilder = getDraftRequestBuilder(); return memberVarHttpClient .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) .thenComposeAsync( @@ -167,12 +160,12 @@ public CompletableFuture> ge } if (localVarResponse.statusCode() / 100 != 2) { return CompletableFuture.failedFuture( - getApiException("getDraftLegacy", localVarResponse)); + getApiException("getDraft", localVarResponse)); } try { String responseBody = localVarResponse.body(); return CompletableFuture.completedFuture( - new ApiResponse( + new ApiResponse( localVarResponse.statusCode(), localVarResponse.headers().map(), responseBody == null || responseBody.isBlank() @@ -180,7 +173,7 @@ public CompletableFuture> ge : memberVarObjectMapper.readValue( responseBody, new TypeReference< - LegacyDraftReviewAndValidationResponse>() {}))); + DraftReviewAndValidationResponse>() {}))); } catch (IOException e) { return CompletableFuture.failedFuture(new ApiException(e)); } @@ -190,7 +183,7 @@ public CompletableFuture> ge } } - private HttpRequest.Builder getDraftLegacyRequestBuilder() throws ApiException { + private HttpRequest.Builder getDraftRequestBuilder() throws ApiException { HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); @@ -210,28 +203,24 @@ private HttpRequest.Builder getDraftLegacyRequestBuilder() throws ApiException { return localVarRequestBuilder; } /** - * Send publish request for a certain draft id Legacy Endpoint – Send publish request of certain - * draft id and returns the response. </br> **Note:** - This endpoint will remain - * available for the foreseeable future and is not deprecated.</br> - The - * `publishDraft` endpoint under policy/paths provides improved functionality and - * better performance.</br> - These endpoints are currently in beta and might be subject - * to changes.</br> If you want to participate and learn more about the Fireblocks TAP, + * Send publish request for a certain draft id Send publish request of certain draft id and + * returns the response. </br> **Note:** These endpoints are currently in beta and might + * be subject to changes. If you want to participate and learn more about the Fireblocks TAP, * please contact your Fireblocks Customer Success Manager or send an email to * CSM@fireblocks.com. * - * @param legacyPublishDraftRequest (required) + * @param publishDraftRequest (required) * @param idempotencyKey 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. (optional) - * @return CompletableFuture<ApiResponse<LegacyPublishResult>> + * @return CompletableFuture<ApiResponse<PublishResult>> * @throws ApiException if fails to make API call */ - public CompletableFuture> publishDraftLegacy( - LegacyPublishDraftRequest legacyPublishDraftRequest, String idempotencyKey) - throws ApiException { + public CompletableFuture> publishDraft( + PublishDraftRequest publishDraftRequest, String idempotencyKey) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = - publishDraftLegacyRequestBuilder(legacyPublishDraftRequest, idempotencyKey); + publishDraftRequestBuilder(publishDraftRequest, idempotencyKey); return memberVarHttpClient .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) .thenComposeAsync( @@ -241,13 +230,12 @@ public CompletableFuture> publishDraftLegacy( } if (localVarResponse.statusCode() / 100 != 2) { return CompletableFuture.failedFuture( - getApiException( - "publishDraftLegacy", localVarResponse)); + getApiException("publishDraft", localVarResponse)); } try { String responseBody = localVarResponse.body(); return CompletableFuture.completedFuture( - new ApiResponse( + new ApiResponse( localVarResponse.statusCode(), localVarResponse.headers().map(), responseBody == null || responseBody.isBlank() @@ -255,7 +243,7 @@ public CompletableFuture> publishDraftLegacy( : memberVarObjectMapper.readValue( responseBody, new TypeReference< - LegacyPublishResult>() {}))); + PublishResult>() {}))); } catch (IOException e) { return CompletableFuture.failedFuture(new ApiException(e)); } @@ -265,11 +253,10 @@ public CompletableFuture> publishDraftLegacy( } } - private HttpRequest.Builder publishDraftLegacyRequestBuilder( - LegacyPublishDraftRequest legacyPublishDraftRequest, String idempotencyKey) - throws ApiException { + private HttpRequest.Builder publishDraftRequestBuilder( + PublishDraftRequest publishDraftRequest, String idempotencyKey) throws ApiException { ValidationUtils.assertParamExists( - "publishDraftLegacy", "legacyPublishDraftRequest", legacyPublishDraftRequest); + "publishDraft", "publishDraftRequest", publishDraftRequest); HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); @@ -284,8 +271,7 @@ private HttpRequest.Builder publishDraftLegacyRequestBuilder( localVarRequestBuilder.header("Accept", "application/json"); try { - byte[] localVarPostBody = - memberVarObjectMapper.writeValueAsBytes(legacyPublishDraftRequest); + byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(publishDraftRequest); localVarRequestBuilder.method( "POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); } catch (IOException e) { @@ -306,18 +292,18 @@ private HttpRequest.Builder publishDraftLegacyRequestBuilder( * TAP, please contact your Fireblocks Customer Success Manager or send an email to * CSM@fireblocks.com. * - * @param legacyPolicyRules (required) + * @param policyRules (required) * @param idempotencyKey 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. (optional) - * @return CompletableFuture<ApiResponse<LegacyPublishResult>> + * @return CompletableFuture<ApiResponse<PublishResult>> * @throws ApiException if fails to make API call */ - public CompletableFuture> publishPolicyRules( - LegacyPolicyRules legacyPolicyRules, String idempotencyKey) throws ApiException { + public CompletableFuture> publishPolicyRules( + PolicyRules policyRules, String idempotencyKey) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = - publishPolicyRulesRequestBuilder(legacyPolicyRules, idempotencyKey); + publishPolicyRulesRequestBuilder(policyRules, idempotencyKey); return memberVarHttpClient .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) .thenComposeAsync( @@ -333,7 +319,7 @@ public CompletableFuture> publishPolicyRules( try { String responseBody = localVarResponse.body(); return CompletableFuture.completedFuture( - new ApiResponse( + new ApiResponse( localVarResponse.statusCode(), localVarResponse.headers().map(), responseBody == null || responseBody.isBlank() @@ -341,7 +327,7 @@ public CompletableFuture> publishPolicyRules( : memberVarObjectMapper.readValue( responseBody, new TypeReference< - LegacyPublishResult>() {}))); + PublishResult>() {}))); } catch (IOException e) { return CompletableFuture.failedFuture(new ApiException(e)); } @@ -352,9 +338,8 @@ public CompletableFuture> publishPolicyRules( } private HttpRequest.Builder publishPolicyRulesRequestBuilder( - LegacyPolicyRules legacyPolicyRules, String idempotencyKey) throws ApiException { - ValidationUtils.assertParamExists( - "publishPolicyRules", "legacyPolicyRules", legacyPolicyRules); + PolicyRules policyRules, String idempotencyKey) throws ApiException { + ValidationUtils.assertParamExists("publishPolicyRules", "policyRules", policyRules); HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); @@ -369,7 +354,7 @@ private HttpRequest.Builder publishPolicyRulesRequestBuilder( localVarRequestBuilder.header("Accept", "application/json"); try { - byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(legacyPolicyRules); + byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(policyRules); localVarRequestBuilder.method( "POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); } catch (IOException e) { @@ -384,26 +369,23 @@ private HttpRequest.Builder publishPolicyRulesRequestBuilder( return localVarRequestBuilder; } /** - * Update the draft with a new set of rules Legacy Endpoint – Update the draft and return its - * validation. </br> **Note:** - This endpoint will remain available for the foreseeable - * future and is not deprecated.</br> - The `updateDraft` endpoint under - * policy/paths provides policy type-specific operations and improved functionality.</br> - * - These endpoints are currently in beta and might be subject to changes.</br> If you - * want to participate and learn more about the Fireblocks TAP, please contact your Fireblocks - * Customer Success Manager or send an email to CSM@fireblocks.com. + * Update the draft with a new set of rules Update the draft and return its validation. + * </br> **Note:** These endpoints are currently in beta and might be subject to changes. + * If you want to participate and learn more about the Fireblocks TAP, please contact your + * Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. * - * @param legacyPolicyRules (required) + * @param policyRules (required) * @param idempotencyKey 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. (optional) - * @return CompletableFuture<ApiResponse<LegacyDraftReviewAndValidationResponse>> + * @return CompletableFuture<ApiResponse<DraftReviewAndValidationResponse>> * @throws ApiException if fails to make API call */ - public CompletableFuture> updateDraftLegacy( - LegacyPolicyRules legacyPolicyRules, String idempotencyKey) throws ApiException { + public CompletableFuture> updateDraft( + PolicyRules policyRules, String idempotencyKey) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = - updateDraftLegacyRequestBuilder(legacyPolicyRules, idempotencyKey); + updateDraftRequestBuilder(policyRules, idempotencyKey); return memberVarHttpClient .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) .thenComposeAsync( @@ -413,12 +395,12 @@ public CompletableFuture> up } if (localVarResponse.statusCode() / 100 != 2) { return CompletableFuture.failedFuture( - getApiException("updateDraftLegacy", localVarResponse)); + getApiException("updateDraft", localVarResponse)); } try { String responseBody = localVarResponse.body(); return CompletableFuture.completedFuture( - new ApiResponse( + new ApiResponse( localVarResponse.statusCode(), localVarResponse.headers().map(), responseBody == null || responseBody.isBlank() @@ -426,7 +408,7 @@ public CompletableFuture> up : memberVarObjectMapper.readValue( responseBody, new TypeReference< - LegacyDraftReviewAndValidationResponse>() {}))); + DraftReviewAndValidationResponse>() {}))); } catch (IOException e) { return CompletableFuture.failedFuture(new ApiException(e)); } @@ -436,10 +418,9 @@ public CompletableFuture> up } } - private HttpRequest.Builder updateDraftLegacyRequestBuilder( - LegacyPolicyRules legacyPolicyRules, String idempotencyKey) throws ApiException { - ValidationUtils.assertParamExists( - "updateDraftLegacy", "legacyPolicyRules", legacyPolicyRules); + private HttpRequest.Builder updateDraftRequestBuilder( + PolicyRules policyRules, String idempotencyKey) throws ApiException { + ValidationUtils.assertParamExists("updateDraft", "policyRules", policyRules); HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); @@ -454,7 +435,7 @@ private HttpRequest.Builder updateDraftLegacyRequestBuilder( localVarRequestBuilder.header("Accept", "application/json"); try { - byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(legacyPolicyRules); + byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(policyRules); localVarRequestBuilder.method( "PUT", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); } catch (IOException e) { diff --git a/src/main/java/com/fireblocks/sdk/api/PolicyEditorV2BetaApi.java b/src/main/java/com/fireblocks/sdk/api/PolicyEditorV2BetaApi.java deleted file mode 100644 index 3c4f34c8..00000000 --- a/src/main/java/com/fireblocks/sdk/api/PolicyEditorV2BetaApi.java +++ /dev/null @@ -1,412 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.api; - - -import com.fasterxml.jackson.core.type.TypeReference; -import com.fasterxml.jackson.databind.ObjectMapper; -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.Pair; -import com.fireblocks.sdk.ValidationUtils; -import com.fireblocks.sdk.model.DraftReviewAndValidationResponse; -import com.fireblocks.sdk.model.PolicyAndValidationResponse; -import com.fireblocks.sdk.model.PolicyType; -import com.fireblocks.sdk.model.PublishDraftRequest; -import com.fireblocks.sdk.model.PublishResult; -import com.fireblocks.sdk.model.UpdateDraftRequest; -import java.io.IOException; -import java.io.InputStream; -import java.net.URI; -import java.net.http.HttpClient; -import java.net.http.HttpRequest; -import java.net.http.HttpResponse; -import java.time.Duration; -import java.util.ArrayList; -import java.util.List; -import java.util.StringJoiner; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; - -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class PolicyEditorV2BetaApi { - private final HttpClient memberVarHttpClient; - private final ObjectMapper memberVarObjectMapper; - private final String memberVarBaseUri; - private final Consumer memberVarInterceptor; - private final Duration memberVarReadTimeout; - private final Consumer> memberVarResponseInterceptor; - private final Consumer> memberVarAsyncResponseInterceptor; - - public PolicyEditorV2BetaApi() { - this(new ApiClient()); - } - - public PolicyEditorV2BetaApi(ApiClient apiClient) { - memberVarHttpClient = apiClient.getHttpClient(); - memberVarObjectMapper = apiClient.getObjectMapper(); - memberVarBaseUri = apiClient.getBaseUri(); - memberVarInterceptor = apiClient.getRequestInterceptor(); - memberVarReadTimeout = apiClient.getReadTimeout(); - memberVarResponseInterceptor = apiClient.getResponseInterceptor(); - memberVarAsyncResponseInterceptor = apiClient.getAsyncResponseInterceptor(); - } - - private ApiException getApiException(String operationId, HttpResponse response) { - String message = - formatExceptionMessage(operationId, response.statusCode(), response.body()); - return new ApiException( - response.statusCode(), message, response.headers(), response.body()); - } - - private String formatExceptionMessage(String operationId, int statusCode, String body) { - if (body == null || body.isEmpty()) { - body = "[no body]"; - } - return operationId + " call failed with: " + statusCode + " - " + body; - } - - /** - * Get the active policy and its validation by policy type Returns the active policy and its - * validation for a specific policy type. </br> **Note:** These endpoints are currently in - * beta and might be subject to changes. - * - * @param policyType The policy type(s) to retrieve. Can be a single type or multiple types by - * repeating the parameter (e.g., ?policyType=TRANSFER&policyType=MINT). - * (required) - * @return CompletableFuture<ApiResponse<PolicyAndValidationResponse>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> getActivePolicy( - PolicyType policyType) throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = getActivePolicyRequestBuilder(policyType); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException("getActivePolicy", localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - PolicyAndValidationResponse>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder getActivePolicyRequestBuilder(PolicyType policyType) - throws ApiException { - ValidationUtils.assertParamExists("getActivePolicy", "policyType", policyType); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = "/policy/active_policy"; - - List localVarQueryParams = new ArrayList<>(); - StringJoiner localVarQueryStringJoiner = new StringJoiner("&"); - String localVarQueryParameterBaseName; - localVarQueryParameterBaseName = "policyType"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("policyType", policyType)); - - if (!localVarQueryParams.isEmpty() || localVarQueryStringJoiner.length() != 0) { - StringJoiner queryJoiner = new StringJoiner("&"); - localVarQueryParams.forEach(p -> queryJoiner.add(p.getName() + '=' + p.getValue())); - if (localVarQueryStringJoiner.length() != 0) { - queryJoiner.add(localVarQueryStringJoiner.toString()); - } - localVarRequestBuilder.uri( - URI.create(memberVarBaseUri + localVarPath + '?' + queryJoiner.toString())); - } else { - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - } - - localVarRequestBuilder.header("Accept", "application/json"); - - localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } - /** - * Get the active draft by policy type Returns the active draft and its validation for a - * specific policy type. </br> **Note:** These endpoints are currently in beta and might - * be subject to changes. - * - * @param policyType The policy type(s) to retrieve. Can be a single type or multiple types by - * repeating the parameter (e.g., ?policyType=TRANSFER&policyType=MINT). - * (required) - * @return CompletableFuture<ApiResponse<DraftReviewAndValidationResponse>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> getDraft( - PolicyType policyType) throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = getDraftRequestBuilder(policyType); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException("getDraft", localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - DraftReviewAndValidationResponse>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder getDraftRequestBuilder(PolicyType policyType) throws ApiException { - ValidationUtils.assertParamExists("getDraft", "policyType", policyType); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = "/policy/draft"; - - List localVarQueryParams = new ArrayList<>(); - StringJoiner localVarQueryStringJoiner = new StringJoiner("&"); - String localVarQueryParameterBaseName; - localVarQueryParameterBaseName = "policyType"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("policyType", policyType)); - - if (!localVarQueryParams.isEmpty() || localVarQueryStringJoiner.length() != 0) { - StringJoiner queryJoiner = new StringJoiner("&"); - localVarQueryParams.forEach(p -> queryJoiner.add(p.getName() + '=' + p.getValue())); - if (localVarQueryStringJoiner.length() != 0) { - queryJoiner.add(localVarQueryStringJoiner.toString()); - } - localVarRequestBuilder.uri( - URI.create(memberVarBaseUri + localVarPath + '?' + queryJoiner.toString())); - } else { - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - } - - localVarRequestBuilder.header("Accept", "application/json"); - - localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } - /** - * Send publish request for a certain draft id Send publish request of certain draft id and - * returns the response. </br> **Note:** These endpoints are currently in beta and might - * be subject to changes. If you want to participate and learn more about the Fireblocks Policy - * Editor, please contact your Fireblocks Customer Success Manager or send an email to - * CSM@fireblocks.com. - * - * @param publishDraftRequest (required) - * @param idempotencyKey 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. (optional) - * @return CompletableFuture<ApiResponse<PublishResult>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> publishDraft( - PublishDraftRequest publishDraftRequest, String idempotencyKey) throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = - publishDraftRequestBuilder(publishDraftRequest, idempotencyKey); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException("publishDraft", localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - PublishResult>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder publishDraftRequestBuilder( - PublishDraftRequest publishDraftRequest, String idempotencyKey) throws ApiException { - ValidationUtils.assertParamExists( - "publishDraft", "publishDraftRequest", publishDraftRequest); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = "/policy/draft"; - - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - - if (idempotencyKey != null) { - localVarRequestBuilder.header("Idempotency-Key", idempotencyKey.toString()); - } - localVarRequestBuilder.header("Content-Type", "application/json"); - localVarRequestBuilder.header("Accept", "application/json"); - - try { - byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(publishDraftRequest); - localVarRequestBuilder.method( - "POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); - } catch (IOException e) { - throw new ApiException(e); - } - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } - /** - * Update the draft with a new set of rules by policy types Update the draft and return its - * validation for specific policy types. </br> **Note:** These endpoints are currently in - * beta and might be subject to changes. - * - * @param updateDraftRequest (required) - * @param idempotencyKey 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. (optional) - * @return CompletableFuture<ApiResponse<DraftReviewAndValidationResponse>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> updateDraft( - UpdateDraftRequest updateDraftRequest, String idempotencyKey) throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = - updateDraftRequestBuilder(updateDraftRequest, idempotencyKey); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException("updateDraft", localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - DraftReviewAndValidationResponse>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder updateDraftRequestBuilder( - UpdateDraftRequest updateDraftRequest, String idempotencyKey) throws ApiException { - ValidationUtils.assertParamExists("updateDraft", "updateDraftRequest", updateDraftRequest); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = "/policy/draft"; - - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - - if (idempotencyKey != null) { - localVarRequestBuilder.header("Idempotency-Key", idempotencyKey.toString()); - } - localVarRequestBuilder.header("Content-Type", "application/json"); - localVarRequestBuilder.header("Accept", "application/json"); - - try { - byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(updateDraftRequest); - localVarRequestBuilder.method( - "PUT", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); - } catch (IOException e) { - throw new ApiException(e); - } - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } -} diff --git a/src/main/java/com/fireblocks/sdk/api/SmartTransferApi.java b/src/main/java/com/fireblocks/sdk/api/SmartTransferApi.java index db96d41a..19c44435 100644 --- a/src/main/java/com/fireblocks/sdk/api/SmartTransferApi.java +++ b/src/main/java/com/fireblocks/sdk/api/SmartTransferApi.java @@ -20,16 +20,13 @@ import com.fireblocks.sdk.ApiResponse; import com.fireblocks.sdk.Pair; import com.fireblocks.sdk.ValidationUtils; -import com.fireblocks.sdk.model.SmartTransferApproveTerm; import com.fireblocks.sdk.model.SmartTransferCreateTicket; import com.fireblocks.sdk.model.SmartTransferCreateTicketTerm; -import com.fireblocks.sdk.model.SmartTransferFundDvpTicket; import com.fireblocks.sdk.model.SmartTransferFundTerm; import com.fireblocks.sdk.model.SmartTransferManuallyFundTerm; import com.fireblocks.sdk.model.SmartTransferSetTicketExpiration; import com.fireblocks.sdk.model.SmartTransferSetTicketExternalId; import com.fireblocks.sdk.model.SmartTransferSetUserGroups; -import com.fireblocks.sdk.model.SmartTransferStatistic; import com.fireblocks.sdk.model.SmartTransferSubmitTicket; import com.fireblocks.sdk.model.SmartTransferTicketFilteredResponse; import com.fireblocks.sdk.model.SmartTransferTicketResponse; @@ -91,104 +88,6 @@ private String formatExceptionMessage(String operationId, int statusCode, String return operationId + " call failed with: " + statusCode + " - " + body; } - /** - * Define funding source and give approve to contract to transfer asset Set funding source for - * ticket term and creating approving transaction for contract to transfer asset - * - * @param smartTransferApproveTerm (required) - * @param ticketId (required) - * @param termId (required) - * @param idempotencyKey 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. (optional) - * @return CompletableFuture<ApiResponse<SmartTransferTicketTermResponse>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> approveDvPTicketTerm( - SmartTransferApproveTerm smartTransferApproveTerm, - String ticketId, - String termId, - String idempotencyKey) - throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = - approveDvPTicketTermRequestBuilder( - smartTransferApproveTerm, ticketId, termId, idempotencyKey); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException( - "approveDvPTicketTerm", localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - SmartTransferTicketTermResponse>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder approveDvPTicketTermRequestBuilder( - SmartTransferApproveTerm smartTransferApproveTerm, - String ticketId, - String termId, - String idempotencyKey) - throws ApiException { - ValidationUtils.assertParamExists( - "approveDvPTicketTerm", "smartTransferApproveTerm", smartTransferApproveTerm); - ValidationUtils.assertParamExistsAndNotEmpty("approveDvPTicketTerm", "ticketId", ticketId); - ValidationUtils.assertParamExistsAndNotEmpty("approveDvPTicketTerm", "termId", termId); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = - "/smart_transfers/{ticketId}/terms/{termId}/dvp/approve" - .replace("{ticketId}", ApiClient.urlEncode(ticketId.toString())) - .replace("{termId}", ApiClient.urlEncode(termId.toString())); - - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - - if (idempotencyKey != null) { - localVarRequestBuilder.header("Idempotency-Key", idempotencyKey.toString()); - } - localVarRequestBuilder.header("Content-Type", "application/json"); - localVarRequestBuilder.header("Accept", "application/json"); - - try { - byte[] localVarPostBody = - memberVarObjectMapper.writeValueAsBytes(smartTransferApproveTerm); - localVarRequestBuilder.method( - "PUT", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); - } catch (IOException e) { - throw new ApiException(e); - } - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } /** * Cancel Ticket Cancel Smart Transfer ticket * @@ -645,97 +544,6 @@ private HttpRequest.Builder fulfillTicketRequestBuilder(String ticketId, String } return localVarRequestBuilder; } - /** - * Fund dvp ticket Create or fulfill dvp ticket order - * - * @param smartTransferFundDvpTicket (required) - * @param ticketId (required) - * @param idempotencyKey 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. (optional) - * @return CompletableFuture<ApiResponse<SmartTransferTicketResponse>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> fundDvpTicket( - SmartTransferFundDvpTicket smartTransferFundDvpTicket, - String ticketId, - String idempotencyKey) - throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = - fundDvpTicketRequestBuilder( - smartTransferFundDvpTicket, ticketId, idempotencyKey); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException("fundDvpTicket", localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - SmartTransferTicketResponse>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder fundDvpTicketRequestBuilder( - SmartTransferFundDvpTicket smartTransferFundDvpTicket, - String ticketId, - String idempotencyKey) - throws ApiException { - ValidationUtils.assertParamExists( - "fundDvpTicket", "smartTransferFundDvpTicket", smartTransferFundDvpTicket); - ValidationUtils.assertParamExistsAndNotEmpty("fundDvpTicket", "ticketId", ticketId); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = - "/smart_transfers/{ticketId}/dvp/fund" - .replace("{ticketId}", ApiClient.urlEncode(ticketId.toString())); - - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - - if (idempotencyKey != null) { - localVarRequestBuilder.header("Idempotency-Key", idempotencyKey.toString()); - } - localVarRequestBuilder.header("Content-Type", "application/json"); - localVarRequestBuilder.header("Accept", "application/json"); - - try { - byte[] localVarPostBody = - memberVarObjectMapper.writeValueAsBytes(smartTransferFundDvpTicket); - localVarRequestBuilder.method( - "PUT", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); - } catch (IOException e) { - throw new ApiException(e); - } - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } /** * Define funding source Set funding source for ticket term (in case of ASYNC tickets, this will * execute transfer immediately) @@ -833,68 +641,6 @@ private HttpRequest.Builder fundTicketTermRequestBuilder( } return localVarRequestBuilder; } - /** - * Get smart transfers statistic Get smart transfer statistic - * - * @return CompletableFuture<ApiResponse<SmartTransferStatistic>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> getSmartTransferStatistic() - throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = getSmartTransferStatisticRequestBuilder(); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException( - "getSmartTransferStatistic", localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - SmartTransferStatistic>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder getSmartTransferStatisticRequestBuilder() throws ApiException { - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = "/smart_transfers/statistic"; - - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - - localVarRequestBuilder.header("Accept", "application/json"); - - localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } /** * Get user group Get Smart Transfer user groups * @@ -1128,8 +874,8 @@ private HttpRequest.Builder removeTicketTermRequestBuilder(String ticketId, Stri * (optional) * @param expiresAfter Lower bound of search range. Optional (optional) * @param expiresBefore Upper bound of search range. Optional (optional) - * @param type Type of transfer. ASYNC executes transfers as they are funded, DVP executes all - * terms (legs) as one dvp transfer (optional) + * @param type Type of transfer. ASYNC executes transfers as they are funded, ATOMIC executes + * all terms (legs) as one atomic transfer (optional) * @param externalRefId External ref. ID that workspace can use to identify ticket outside of * Fireblocks system. (optional) * @param after ID of the record after which to fetch $limit records (optional) diff --git a/src/main/java/com/fireblocks/sdk/api/StakingApi.java b/src/main/java/com/fireblocks/sdk/api/StakingBetaApi.java similarity index 55% rename from src/main/java/com/fireblocks/sdk/api/StakingApi.java rename to src/main/java/com/fireblocks/sdk/api/StakingBetaApi.java index 7adbf50e..dbfb3c5a 100644 --- a/src/main/java/com/fireblocks/sdk/api/StakingApi.java +++ b/src/main/java/com/fireblocks/sdk/api/StakingBetaApi.java @@ -20,21 +20,12 @@ import com.fireblocks.sdk.ApiResponse; import com.fireblocks.sdk.Pair; import com.fireblocks.sdk.ValidationUtils; -import com.fireblocks.sdk.model.ChainDescriptor; -import com.fireblocks.sdk.model.ChainInfoResponse; -import com.fireblocks.sdk.model.ClaimRewardsRequest; -import com.fireblocks.sdk.model.Delegation; -import com.fireblocks.sdk.model.DelegationSummary; -import com.fireblocks.sdk.model.MergeStakeAccountsRequest; -import com.fireblocks.sdk.model.MergeStakeAccountsResponse; -import com.fireblocks.sdk.model.Provider; -import com.fireblocks.sdk.model.SplitRequest; -import com.fireblocks.sdk.model.SplitResponse; -import com.fireblocks.sdk.model.StakeRequest; -import com.fireblocks.sdk.model.StakeResponse; -import com.fireblocks.sdk.model.StakingProvider; -import com.fireblocks.sdk.model.UnstakeRequest; -import com.fireblocks.sdk.model.WithdrawRequest; +import com.fireblocks.sdk.model.ChainInfoResponseDto; +import com.fireblocks.sdk.model.DelegationDto; +import com.fireblocks.sdk.model.DelegationSummaryDto; +import com.fireblocks.sdk.model.ExecuteActionRequest; +import com.fireblocks.sdk.model.ExecuteActionResponse; +import com.fireblocks.sdk.model.ProviderDto; import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -52,7 +43,7 @@ @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") -public class StakingApi { +public class StakingBetaApi { private final HttpClient memberVarHttpClient; private final ObjectMapper memberVarObjectMapper; private final String memberVarBaseUri; @@ -61,11 +52,11 @@ public class StakingApi { private final Consumer> memberVarResponseInterceptor; private final Consumer> memberVarAsyncResponseInterceptor; - public StakingApi() { + public StakingBetaApi() { this(new ApiClient()); } - public StakingApi(ApiClient apiClient) { + public StakingBetaApi(ApiClient apiClient) { memberVarHttpClient = apiClient.getHttpClient(); memberVarObjectMapper = apiClient.getObjectMapper(); memberVarBaseUri = apiClient.getBaseUri(); @@ -90,18 +81,18 @@ private String formatExceptionMessage(String operationId, int statusCode, String } /** - * Approve staking terms of service Approve the terms of service of the staking provider. This - * must be called before performing a staking action for the first time with this provider. + * Approve the terms of service of the staking provider. This must be called before performing a + * staking action for the first time with this provider. * * @param providerId The unique identifier of the staking provider (required) * @param idempotencyKey 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. (optional) - * @return CompletableFuture<ApiResponse<Void>> + * @return CompletableFuture<ApiResponse<Object>> * @throws ApiException if fails to make API call */ - public CompletableFuture> approveTermsOfServiceByProviderId( - StakingProvider providerId, String idempotencyKey) throws ApiException { + public CompletableFuture> approveTermsOfServiceByProviderId( + String providerId, String idempotencyKey) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = approveTermsOfServiceByProviderIdRequestBuilder(providerId, idempotencyKey); @@ -118,11 +109,21 @@ public CompletableFuture> approveTermsOfServiceByProviderId( "approveTermsOfServiceByProviderId", localVarResponse)); } - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - null)); + try { + String responseBody = localVarResponse.body(); + return CompletableFuture.completedFuture( + new ApiResponse( + localVarResponse.statusCode(), + localVarResponse.headers().map(), + responseBody == null || responseBody.isBlank() + ? null + : memberVarObjectMapper.readValue( + responseBody, + new TypeReference< + Object>() {}))); + } catch (IOException e) { + return CompletableFuture.failedFuture(new ApiException(e)); + } }); } catch (ApiException e) { return CompletableFuture.failedFuture(e); @@ -130,8 +131,8 @@ public CompletableFuture> approveTermsOfServiceByProviderId( } private HttpRequest.Builder approveTermsOfServiceByProviderIdRequestBuilder( - StakingProvider providerId, String idempotencyKey) throws ApiException { - ValidationUtils.assertParamExists( + String providerId, String idempotencyKey) throws ApiException { + ValidationUtils.assertParamExistsAndNotEmpty( "approveTermsOfServiceByProviderId", "providerId", providerId); HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); @@ -157,24 +158,28 @@ private HttpRequest.Builder approveTermsOfServiceByProviderIdRequestBuilder( return localVarRequestBuilder; } /** - * Execute a Claim Rewards operation Perform a chain-specific Claim Rewards. + * Perform a chain-specific staking action (e.g. stake, unstake, withdraw). * - * @param claimRewardsRequest (required) - * @param chainDescriptor The protocol identifier (e.g. \"MATIC\"/\"SOL\") - * to use (required) + * @param executeActionRequest (required) + * @param chainDescriptor The protocol identifier (e.g. \"ETH\"/\"SOL\") to + * use (required) + * @param actionId The operation that can be executed on a vault/position (required) * @param idempotencyKey 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. (optional) - * @return CompletableFuture<ApiResponse<Void>> + * @return CompletableFuture<ApiResponse<ExecuteActionResponse>> * @throws ApiException if fails to make API call */ - public CompletableFuture> claimRewards( - ClaimRewardsRequest claimRewardsRequest, String chainDescriptor, String idempotencyKey) + public CompletableFuture> executeAction( + ExecuteActionRequest executeActionRequest, + String chainDescriptor, + String actionId, + String idempotencyKey) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = - claimRewardsRequestBuilder( - claimRewardsRequest, chainDescriptor, idempotencyKey); + executeActionRequestBuilder( + executeActionRequest, chainDescriptor, actionId, idempotencyKey); return memberVarHttpClient .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) .thenComposeAsync( @@ -184,34 +189,49 @@ public CompletableFuture> claimRewards( } if (localVarResponse.statusCode() / 100 != 2) { return CompletableFuture.failedFuture( - getApiException("claimRewards", localVarResponse)); + getApiException("executeAction", localVarResponse)); + } + try { + String responseBody = localVarResponse.body(); + return CompletableFuture.completedFuture( + new ApiResponse( + localVarResponse.statusCode(), + localVarResponse.headers().map(), + responseBody == null || responseBody.isBlank() + ? null + : memberVarObjectMapper.readValue( + responseBody, + new TypeReference< + ExecuteActionResponse>() {}))); + } catch (IOException e) { + return CompletableFuture.failedFuture(new ApiException(e)); } - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - null)); }); } catch (ApiException e) { return CompletableFuture.failedFuture(e); } } - private HttpRequest.Builder claimRewardsRequestBuilder( - ClaimRewardsRequest claimRewardsRequest, String chainDescriptor, String idempotencyKey) + private HttpRequest.Builder executeActionRequestBuilder( + ExecuteActionRequest executeActionRequest, + String chainDescriptor, + String actionId, + String idempotencyKey) throws ApiException { ValidationUtils.assertParamExists( - "claimRewards", "claimRewardsRequest", claimRewardsRequest); + "executeAction", "executeActionRequest", executeActionRequest); ValidationUtils.assertParamExistsAndNotEmpty( - "claimRewards", "chainDescriptor", chainDescriptor); + "executeAction", "chainDescriptor", chainDescriptor); + ValidationUtils.assertParamExistsAndNotEmpty("executeAction", "actionId", actionId); HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); String localVarPath = - "/staking/chains/{chainDescriptor}/claim_rewards" + "/staking/chains/{chainDescriptor}/{actionId}" .replace( "{chainDescriptor}", - ApiClient.urlEncode(chainDescriptor.toString())); + ApiClient.urlEncode(chainDescriptor.toString())) + .replace("{actionId}", ApiClient.urlEncode(actionId.toString())); localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); @@ -222,7 +242,7 @@ private HttpRequest.Builder claimRewardsRequestBuilder( localVarRequestBuilder.header("Accept", "application/json"); try { - byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(claimRewardsRequest); + byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(executeActionRequest); localVarRequestBuilder.method( "POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); } catch (IOException e) { @@ -237,18 +257,17 @@ private HttpRequest.Builder claimRewardsRequestBuilder( return localVarRequestBuilder; } /** - * List staking positions details Return detailed information on all staking positions, - * including the staked amount, rewards, status and more. + * Return detailed information on all staking positions, including the staked amount, rewards, + * status and more. * - * @param chainDescriptor Use \"ETH\" / \"SOL\" / \"MATIC\" / - * \"STETH_ETH\" in order to obtain information related to the specific blockchain - * network or retrieve information about all chains that have data available by providing no - * argument. (optional) - * @return CompletableFuture<ApiResponse<List<Delegation>>> + * @param chainDescriptor Use \"ETH\" / \"SOL\" in order to obtain + * information related to the specific blockchain network or retrieve information about all + * chains that have data available by providing no argument. (optional) + * @return CompletableFuture<ApiResponse<List<DelegationDto>>> * @throws ApiException if fails to make API call */ - public CompletableFuture>> getAllDelegations( - ChainDescriptor chainDescriptor) throws ApiException { + public CompletableFuture>> getAllDelegations( + String chainDescriptor) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = getAllDelegationsRequestBuilder(chainDescriptor); @@ -266,7 +285,7 @@ public CompletableFuture>> getAllDelegations( try { String responseBody = localVarResponse.body(); return CompletableFuture.completedFuture( - new ApiResponse>( + new ApiResponse>( localVarResponse.statusCode(), localVarResponse.headers().map(), responseBody == null || responseBody.isBlank() @@ -275,7 +294,7 @@ public CompletableFuture>> getAllDelegations( responseBody, new TypeReference< List< - Delegation>>() {}))); + DelegationDto>>() {}))); } catch (IOException e) { return CompletableFuture.failedFuture(new ApiException(e)); } @@ -285,7 +304,7 @@ public CompletableFuture>> getAllDelegations( } } - private HttpRequest.Builder getAllDelegationsRequestBuilder(ChainDescriptor chainDescriptor) + private HttpRequest.Builder getAllDelegationsRequestBuilder(String chainDescriptor) throws ApiException { HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); @@ -322,17 +341,16 @@ private HttpRequest.Builder getAllDelegationsRequestBuilder(ChainDescriptor chai return localVarRequestBuilder; } /** - * Get chain-specific staking summary Return chain-specific, staking-related information summary - * (e.g. epoch details, lockup durations, estimated rewards, etc.) + * Return chain-specific, staking-related information summary (e.g. epoch details, lockup + * durations, estimated rewards, etc.) * - * @param chainDescriptor The protocol identifier (e.g. - * \"ETH\"/\"SOL\"/\"MATIC\"/\"STETH_ETH\") to use - * (required) - * @return CompletableFuture<ApiResponse<ChainInfoResponse>> + * @param chainDescriptor The protocol identifier (e.g. \"ETH\"/\"SOL\") to + * use (required) + * @return CompletableFuture<ApiResponse<ChainInfoResponseDto>> * @throws ApiException if fails to make API call */ - public CompletableFuture> getChainInfo( - ChainDescriptor chainDescriptor) throws ApiException { + public CompletableFuture> getChainInfo(String chainDescriptor) + throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = getChainInfoRequestBuilder(chainDescriptor); @@ -350,7 +368,7 @@ public CompletableFuture> getChainInfo( try { String responseBody = localVarResponse.body(); return CompletableFuture.completedFuture( - new ApiResponse( + new ApiResponse( localVarResponse.statusCode(), localVarResponse.headers().map(), responseBody == null || responseBody.isBlank() @@ -358,7 +376,7 @@ public CompletableFuture> getChainInfo( : memberVarObjectMapper.readValue( responseBody, new TypeReference< - ChainInfoResponse>() {}))); + ChainInfoResponseDto>() {}))); } catch (IOException e) { return CompletableFuture.failedFuture(new ApiException(e)); } @@ -368,9 +386,10 @@ public CompletableFuture> getChainInfo( } } - private HttpRequest.Builder getChainInfoRequestBuilder(ChainDescriptor chainDescriptor) + private HttpRequest.Builder getChainInfoRequestBuilder(String chainDescriptor) throws ApiException { - ValidationUtils.assertParamExists("getChainInfo", "chainDescriptor", chainDescriptor); + ValidationUtils.assertParamExistsAndNotEmpty( + "getChainInfo", "chainDescriptor", chainDescriptor); HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); @@ -394,12 +413,12 @@ private HttpRequest.Builder getChainInfoRequestBuilder(ChainDescriptor chainDesc return localVarRequestBuilder; } /** - * List staking supported chains Return an alphabetical list of supported chains. + * Return an alphabetical list of supported chains. * - * @return CompletableFuture<ApiResponse<List<ChainDescriptor>>> + * @return CompletableFuture<ApiResponse<List<String>>> * @throws ApiException if fails to make API call */ - public CompletableFuture>> getChains() throws ApiException { + public CompletableFuture>> getChains() throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = getChainsRequestBuilder(); return memberVarHttpClient @@ -416,7 +435,7 @@ public CompletableFuture>> getChains() throws try { String responseBody = localVarResponse.body(); return CompletableFuture.completedFuture( - new ApiResponse>( + new ApiResponse>( localVarResponse.statusCode(), localVarResponse.headers().map(), responseBody == null || responseBody.isBlank() @@ -424,8 +443,7 @@ public CompletableFuture>> getChains() throws : memberVarObjectMapper.readValue( responseBody, new TypeReference< - List< - ChainDescriptor>>() {}))); + List>() {}))); } catch (IOException e) { return CompletableFuture.failedFuture(new ApiException(e)); } @@ -455,14 +473,14 @@ private HttpRequest.Builder getChainsRequestBuilder() throws ApiException { return localVarRequestBuilder; } /** - * Get staking position details Return detailed information on a staking position, including the - * staked amount, rewards, status and more. + * Return detailed information on a staking position, including the staked amount, rewards, + * status and more. * * @param id The unique identifier of the staking position (required) - * @return CompletableFuture<ApiResponse<Delegation>> + * @return CompletableFuture<ApiResponse<DelegationDto>> * @throws ApiException if fails to make API call */ - public CompletableFuture> getDelegationById(String id) + public CompletableFuture> getDelegationById(String id) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = getDelegationByIdRequestBuilder(id); @@ -480,7 +498,7 @@ public CompletableFuture> getDelegationById(String id) try { String responseBody = localVarResponse.body(); return CompletableFuture.completedFuture( - new ApiResponse( + new ApiResponse( localVarResponse.statusCode(), localVarResponse.headers().map(), responseBody == null || responseBody.isBlank() @@ -488,7 +506,7 @@ public CompletableFuture> getDelegationById(String id) : memberVarObjectMapper.readValue( responseBody, new TypeReference< - Delegation>() {}))); + DelegationDto>() {}))); } catch (IOException e) { return CompletableFuture.failedFuture(new ApiException(e)); } @@ -520,12 +538,12 @@ private HttpRequest.Builder getDelegationByIdRequestBuilder(String id) throws Ap return localVarRequestBuilder; } /** - * List staking providers details Return information on all the available staking providers. + * Return information on all the available staking providers. * - * @return CompletableFuture<ApiResponse<List<Provider>>> + * @return CompletableFuture<ApiResponse<List<ProviderDto>>> * @throws ApiException if fails to make API call */ - public CompletableFuture>> getProviders() throws ApiException { + public CompletableFuture>> getProviders() throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = getProvidersRequestBuilder(); return memberVarHttpClient @@ -542,7 +560,7 @@ public CompletableFuture>> getProviders() throws ApiE try { String responseBody = localVarResponse.body(); return CompletableFuture.completedFuture( - new ApiResponse>( + new ApiResponse>( localVarResponse.statusCode(), localVarResponse.headers().map(), responseBody == null || responseBody.isBlank() @@ -550,7 +568,8 @@ public CompletableFuture>> getProviders() throws ApiE : memberVarObjectMapper.readValue( responseBody, new TypeReference< - List>() {}))); + List< + ProviderDto>>() {}))); } catch (IOException e) { return CompletableFuture.failedFuture(new ApiException(e)); } @@ -580,13 +599,13 @@ private HttpRequest.Builder getProvidersRequestBuilder() throws ApiException { return localVarRequestBuilder; } /** - * Get staking summary details Return a summary of all vaults, categorized by their status - * (active, inactive), the total amounts staked and total rewards per-chain. + * Return a summary of all vaults, categorized by their status (active, inactive), the total + * amounts staked and total rewards per-chain. * - * @return CompletableFuture<ApiResponse<DelegationSummary>> + * @return CompletableFuture<ApiResponse<DelegationSummaryDto>> * @throws ApiException if fails to make API call */ - public CompletableFuture> getSummary() throws ApiException { + public CompletableFuture> getSummary() throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = getSummaryRequestBuilder(); return memberVarHttpClient @@ -603,7 +622,7 @@ public CompletableFuture> getSummary() throws Api try { String responseBody = localVarResponse.body(); return CompletableFuture.completedFuture( - new ApiResponse( + new ApiResponse( localVarResponse.statusCode(), localVarResponse.headers().map(), responseBody == null || responseBody.isBlank() @@ -611,7 +630,7 @@ public CompletableFuture> getSummary() throws Api : memberVarObjectMapper.readValue( responseBody, new TypeReference< - DelegationSummary>() {}))); + DelegationSummaryDto>() {}))); } catch (IOException e) { return CompletableFuture.failedFuture(new ApiException(e)); } @@ -641,13 +660,13 @@ private HttpRequest.Builder getSummaryRequestBuilder() throws ApiException { return localVarRequestBuilder; } /** - * Get staking summary details by vault Return a summary for each vault, categorized by their - * status (active, inactive), the total amounts staked and total rewards per-chain. + * Return a summary for each vault, categorized by their status (active, inactive), the total + * amounts staked and total rewards per-chain. * - * @return CompletableFuture<ApiResponse<Map<String, DelegationSummary>>> + * @return CompletableFuture<ApiResponse<Map<String, DelegationSummaryDto>>> * @throws ApiException if fails to make API call */ - public CompletableFuture>> getSummaryByVault() + public CompletableFuture>> getSummaryByVault() throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = getSummaryByVaultRequestBuilder(); @@ -665,7 +684,7 @@ public CompletableFuture>> getSummary try { String responseBody = localVarResponse.body(); return CompletableFuture.completedFuture( - new ApiResponse>( + new ApiResponse>( localVarResponse.statusCode(), localVarResponse.headers().map(), responseBody == null || responseBody.isBlank() @@ -675,7 +694,7 @@ public CompletableFuture>> getSummary new TypeReference< Map< String, - DelegationSummary>>() {}))); + DelegationSummaryDto>>() {}))); } catch (IOException e) { return CompletableFuture.failedFuture(new ApiException(e)); } @@ -704,429 +723,4 @@ private HttpRequest.Builder getSummaryByVaultRequestBuilder() throws ApiExceptio } return localVarRequestBuilder; } - /** - * Merge Solana on stake accounts Perform a Solana Merge of two active stake accounts into one. - * Endpoint Permission: Owner, Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. - * - * @param mergeStakeAccountsRequest (required) - * @param chainDescriptor The protocol identifier (e.g. - * \"SOL\"/\"SOL_TEST\") to use (required) - * @param idempotencyKey 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. (optional) - * @return CompletableFuture<ApiResponse<MergeStakeAccountsResponse>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> mergeStakeAccounts( - MergeStakeAccountsRequest mergeStakeAccountsRequest, - String chainDescriptor, - String idempotencyKey) - throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = - mergeStakeAccountsRequestBuilder( - mergeStakeAccountsRequest, chainDescriptor, idempotencyKey); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException( - "mergeStakeAccounts", localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - MergeStakeAccountsResponse>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder mergeStakeAccountsRequestBuilder( - MergeStakeAccountsRequest mergeStakeAccountsRequest, - String chainDescriptor, - String idempotencyKey) - throws ApiException { - ValidationUtils.assertParamExists( - "mergeStakeAccounts", "mergeStakeAccountsRequest", mergeStakeAccountsRequest); - ValidationUtils.assertParamExistsAndNotEmpty( - "mergeStakeAccounts", "chainDescriptor", chainDescriptor); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = - "/staking/chains/{chainDescriptor}/merge" - .replace( - "{chainDescriptor}", - ApiClient.urlEncode(chainDescriptor.toString())); - - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - - if (idempotencyKey != null) { - localVarRequestBuilder.header("Idempotency-Key", idempotencyKey.toString()); - } - localVarRequestBuilder.header("Content-Type", "application/json"); - localVarRequestBuilder.header("Accept", "application/json"); - - try { - byte[] localVarPostBody = - memberVarObjectMapper.writeValueAsBytes(mergeStakeAccountsRequest); - localVarRequestBuilder.method( - "POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); - } catch (IOException e) { - throw new ApiException(e); - } - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } - /** - * Execute a Split operation on SOL/SOL_TEST stake account Perform a Solana Split stake account. - * - * @param splitRequest (required) - * @param chainDescriptor The protocol identifier (e.g. - * \"SOL\"/\"SOL_TEST\") to use (required) - * @param idempotencyKey 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. (optional) - * @return CompletableFuture<ApiResponse<SplitResponse>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> split( - SplitRequest splitRequest, String chainDescriptor, String idempotencyKey) - throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = - splitRequestBuilder(splitRequest, chainDescriptor, idempotencyKey); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException("split", localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - SplitResponse>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder splitRequestBuilder( - SplitRequest splitRequest, String chainDescriptor, String idempotencyKey) - throws ApiException { - ValidationUtils.assertParamExists("split", "splitRequest", splitRequest); - ValidationUtils.assertParamExistsAndNotEmpty("split", "chainDescriptor", chainDescriptor); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = - "/staking/chains/{chainDescriptor}/split" - .replace( - "{chainDescriptor}", - ApiClient.urlEncode(chainDescriptor.toString())); - - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - - if (idempotencyKey != null) { - localVarRequestBuilder.header("Idempotency-Key", idempotencyKey.toString()); - } - localVarRequestBuilder.header("Content-Type", "application/json"); - localVarRequestBuilder.header("Accept", "application/json"); - - try { - byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(splitRequest); - localVarRequestBuilder.method( - "POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); - } catch (IOException e) { - throw new ApiException(e); - } - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } - /** - * Initiate Stake Operation Perform a chain-specific Stake. - * - * @param stakeRequest (required) - * @param chainDescriptor The protocol identifier (e.g. - * \"ETH\"/\"SOL\"/\"MATIC\") to use (required) - * @param idempotencyKey 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. (optional) - * @return CompletableFuture<ApiResponse<StakeResponse>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> stake( - StakeRequest stakeRequest, ChainDescriptor chainDescriptor, String idempotencyKey) - throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = - stakeRequestBuilder(stakeRequest, chainDescriptor, idempotencyKey); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException("stake", localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - StakeResponse>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder stakeRequestBuilder( - StakeRequest stakeRequest, ChainDescriptor chainDescriptor, String idempotencyKey) - throws ApiException { - ValidationUtils.assertParamExists("stake", "stakeRequest", stakeRequest); - ValidationUtils.assertParamExists("stake", "chainDescriptor", chainDescriptor); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = - "/staking/chains/{chainDescriptor}/stake" - .replace( - "{chainDescriptor}", - ApiClient.urlEncode(chainDescriptor.toString())); - - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - - if (idempotencyKey != null) { - localVarRequestBuilder.header("Idempotency-Key", idempotencyKey.toString()); - } - localVarRequestBuilder.header("Content-Type", "application/json"); - localVarRequestBuilder.header("Accept", "application/json"); - - try { - byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(stakeRequest); - localVarRequestBuilder.method( - "POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); - } catch (IOException e) { - throw new ApiException(e); - } - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } - /** - * Execute an Unstake operation Execute an Unstake operation - * - * @param unstakeRequest (required) - * @param chainDescriptor The protocol identifier (e.g. - * \"ETH\"/\"SOL\"/\"MATIC\") to use (required) - * @param idempotencyKey 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. (optional) - * @return CompletableFuture<ApiResponse<Void>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> unstake( - UnstakeRequest unstakeRequest, ChainDescriptor chainDescriptor, String idempotencyKey) - throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = - unstakeRequestBuilder(unstakeRequest, chainDescriptor, idempotencyKey); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException("unstake", localVarResponse)); - } - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - null)); - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder unstakeRequestBuilder( - UnstakeRequest unstakeRequest, ChainDescriptor chainDescriptor, String idempotencyKey) - throws ApiException { - ValidationUtils.assertParamExists("unstake", "unstakeRequest", unstakeRequest); - ValidationUtils.assertParamExists("unstake", "chainDescriptor", chainDescriptor); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = - "/staking/chains/{chainDescriptor}/unstake" - .replace( - "{chainDescriptor}", - ApiClient.urlEncode(chainDescriptor.toString())); - - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - - if (idempotencyKey != null) { - localVarRequestBuilder.header("Idempotency-Key", idempotencyKey.toString()); - } - localVarRequestBuilder.header("Content-Type", "application/json"); - localVarRequestBuilder.header("Accept", "application/json"); - - try { - byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(unstakeRequest); - localVarRequestBuilder.method( - "POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); - } catch (IOException e) { - throw new ApiException(e); - } - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } - /** - * Execute a Withdraw operation Perform a chain-specific Withdraw. - * - * @param withdrawRequest (required) - * @param chainDescriptor The protocol identifier (e.g. - * \"ETH\"/\"SOL\"/\"MATIC\") to use (required) - * @param idempotencyKey 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. (optional) - * @return CompletableFuture<ApiResponse<Void>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> withdraw( - WithdrawRequest withdrawRequest, ChainDescriptor chainDescriptor, String idempotencyKey) - throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = - withdrawRequestBuilder(withdrawRequest, chainDescriptor, idempotencyKey); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException("withdraw", localVarResponse)); - } - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - null)); - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder withdrawRequestBuilder( - WithdrawRequest withdrawRequest, ChainDescriptor chainDescriptor, String idempotencyKey) - throws ApiException { - ValidationUtils.assertParamExists("withdraw", "withdrawRequest", withdrawRequest); - ValidationUtils.assertParamExists("withdraw", "chainDescriptor", chainDescriptor); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = - "/staking/chains/{chainDescriptor}/withdraw" - .replace( - "{chainDescriptor}", - ApiClient.urlEncode(chainDescriptor.toString())); - - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - - if (idempotencyKey != null) { - localVarRequestBuilder.header("Idempotency-Key", idempotencyKey.toString()); - } - localVarRequestBuilder.header("Content-Type", "application/json"); - localVarRequestBuilder.header("Accept", "application/json"); - - try { - byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(withdrawRequest); - localVarRequestBuilder.method( - "POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); - } catch (IOException e) { - throw new ApiException(e); - } - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } } diff --git a/src/main/java/com/fireblocks/sdk/api/TagsApi.java b/src/main/java/com/fireblocks/sdk/api/TagsApi.java deleted file mode 100644 index a7f47c52..00000000 --- a/src/main/java/com/fireblocks/sdk/api/TagsApi.java +++ /dev/null @@ -1,447 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.api; - - -import com.fasterxml.jackson.core.type.TypeReference; -import com.fasterxml.jackson.databind.ObjectMapper; -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.Pair; -import com.fireblocks.sdk.ValidationUtils; -import com.fireblocks.sdk.model.CreateTagRequest; -import com.fireblocks.sdk.model.Tag; -import com.fireblocks.sdk.model.TagsPagedResponse; -import com.fireblocks.sdk.model.UpdateTagRequest; -import java.io.IOException; -import java.io.InputStream; -import java.math.BigDecimal; -import java.net.URI; -import java.net.http.HttpClient; -import java.net.http.HttpRequest; -import java.net.http.HttpResponse; -import java.time.Duration; -import java.util.ArrayList; -import java.util.List; -import java.util.StringJoiner; -import java.util.UUID; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; - -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class TagsApi { - private final HttpClient memberVarHttpClient; - private final ObjectMapper memberVarObjectMapper; - private final String memberVarBaseUri; - private final Consumer memberVarInterceptor; - private final Duration memberVarReadTimeout; - private final Consumer> memberVarResponseInterceptor; - private final Consumer> memberVarAsyncResponseInterceptor; - - public TagsApi() { - this(new ApiClient()); - } - - public TagsApi(ApiClient apiClient) { - memberVarHttpClient = apiClient.getHttpClient(); - memberVarObjectMapper = apiClient.getObjectMapper(); - memberVarBaseUri = apiClient.getBaseUri(); - memberVarInterceptor = apiClient.getRequestInterceptor(); - memberVarReadTimeout = apiClient.getReadTimeout(); - memberVarResponseInterceptor = apiClient.getResponseInterceptor(); - memberVarAsyncResponseInterceptor = apiClient.getAsyncResponseInterceptor(); - } - - private ApiException getApiException(String operationId, HttpResponse response) { - String message = - formatExceptionMessage(operationId, response.statusCode(), response.body()); - return new ApiException( - response.statusCode(), message, response.headers(), response.body()); - } - - private String formatExceptionMessage(String operationId, int statusCode, String body) { - if (body == null || body.isEmpty()) { - body = "[no body]"; - } - return operationId + " call failed with: " + statusCode + " - " + body; - } - - /** - * Create a tag Create a new tag. - * - * @param createTagRequest (required) - * @param idempotencyKey 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. (optional) - * @return CompletableFuture<ApiResponse<Tag>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> createTag( - CreateTagRequest createTagRequest, String idempotencyKey) throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = - createTagRequestBuilder(createTagRequest, idempotencyKey); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException("createTag", localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder createTagRequestBuilder( - CreateTagRequest createTagRequest, String idempotencyKey) throws ApiException { - ValidationUtils.assertParamExists("createTag", "createTagRequest", createTagRequest); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = "/tags"; - - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - - if (idempotencyKey != null) { - localVarRequestBuilder.header("Idempotency-Key", idempotencyKey.toString()); - } - localVarRequestBuilder.header("Content-Type", "application/json"); - localVarRequestBuilder.header("Accept", "application/json"); - - try { - byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(createTagRequest); - localVarRequestBuilder.method( - "POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); - } catch (IOException e) { - throw new ApiException(e); - } - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } - /** - * Delete a tag Delete the specified tag. - * - * @param tagId The ID of the tag to retrieve (required) - * @return CompletableFuture<ApiResponse<Void>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> deleteTag(UUID tagId) throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = deleteTagRequestBuilder(tagId); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException("deleteTag", localVarResponse)); - } - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - null)); - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder deleteTagRequestBuilder(UUID tagId) throws ApiException { - ValidationUtils.assertParamExistsAndNotEmpty("deleteTag", "tagId", tagId.toString()); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = - "/tags/{tagId}".replace("{tagId}", ApiClient.urlEncode(tagId.toString())); - - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - - localVarRequestBuilder.header("Accept", "application/json"); - - localVarRequestBuilder.method("DELETE", HttpRequest.BodyPublishers.noBody()); - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } - /** - * Get a tag Retrieve an existing tag by ID. - * - * @param tagId The ID of the tag to retrieve (required) - * @return CompletableFuture<ApiResponse<Tag>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> getTag(UUID tagId) throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = getTagRequestBuilder(tagId); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException("getTag", localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder getTagRequestBuilder(UUID tagId) throws ApiException { - ValidationUtils.assertParamExistsAndNotEmpty("getTag", "tagId", tagId.toString()); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = - "/tags/{tagId}".replace("{tagId}", ApiClient.urlEncode(tagId.toString())); - - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - - localVarRequestBuilder.header("Accept", "application/json"); - - localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } - /** - * Get list of tags Retrieve a paged list of all tags according to filters. - * - * @param pageCursor Page cursor to get the next page. (optional) - * @param pageSize Maximum number of items in the page (optional, default to 100) - * @param label Label prefix to filter by. (optional) - * @param tagIds List of tag IDs to filter by. (optional - * @return CompletableFuture<ApiResponse<TagsPagedResponse>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> getTags( - String pageCursor, BigDecimal pageSize, String label, List tagIds) - throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = - getTagsRequestBuilder(pageCursor, pageSize, label, tagIds); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException("getTags", localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - TagsPagedResponse>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder getTagsRequestBuilder( - String pageCursor, BigDecimal pageSize, String label, List tagIds) - throws ApiException { - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = "/tags"; - - List localVarQueryParams = new ArrayList<>(); - StringJoiner localVarQueryStringJoiner = new StringJoiner("&"); - String localVarQueryParameterBaseName; - localVarQueryParameterBaseName = "pageCursor"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("pageCursor", pageCursor)); - localVarQueryParameterBaseName = "pageSize"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("pageSize", pageSize)); - localVarQueryParameterBaseName = "label"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("label", label)); - localVarQueryParameterBaseName = "tagIds"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("multi", "tagIds", tagIds)); - - if (!localVarQueryParams.isEmpty() || localVarQueryStringJoiner.length() != 0) { - StringJoiner queryJoiner = new StringJoiner("&"); - localVarQueryParams.forEach(p -> queryJoiner.add(p.getName() + '=' + p.getValue())); - if (localVarQueryStringJoiner.length() != 0) { - queryJoiner.add(localVarQueryStringJoiner.toString()); - } - localVarRequestBuilder.uri( - URI.create(memberVarBaseUri + localVarPath + '?' + queryJoiner.toString())); - } else { - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - } - - localVarRequestBuilder.header("Accept", "application/json"); - - localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } - /** - * Update a tag Update an existing specified tag. - * - * @param updateTagRequest (required) - * @param tagId The ID of the tag to update (required) - * @param idempotencyKey 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. (optional) - * @return CompletableFuture<ApiResponse<Tag>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> updateTag( - UpdateTagRequest updateTagRequest, UUID tagId, String idempotencyKey) - throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = - updateTagRequestBuilder(updateTagRequest, tagId, idempotencyKey); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException("updateTag", localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder updateTagRequestBuilder( - UpdateTagRequest updateTagRequest, UUID tagId, String idempotencyKey) - throws ApiException { - ValidationUtils.assertParamExists("updateTag", "updateTagRequest", updateTagRequest); - ValidationUtils.assertParamExistsAndNotEmpty("updateTag", "tagId", tagId.toString()); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = - "/tags/{tagId}".replace("{tagId}", ApiClient.urlEncode(tagId.toString())); - - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - - if (idempotencyKey != null) { - localVarRequestBuilder.header("Idempotency-Key", idempotencyKey.toString()); - } - localVarRequestBuilder.header("Content-Type", "application/json"); - localVarRequestBuilder.header("Accept", "application/json"); - - try { - byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(updateTagRequest); - localVarRequestBuilder.method( - "PATCH", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); - } catch (IOException e) { - throw new ApiException(e); - } - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } -} diff --git a/src/main/java/com/fireblocks/sdk/api/TokenizationApi.java b/src/main/java/com/fireblocks/sdk/api/TokenizationApi.java index 41d479d7..f9d47432 100644 --- a/src/main/java/com/fireblocks/sdk/api/TokenizationApi.java +++ b/src/main/java/com/fireblocks/sdk/api/TokenizationApi.java @@ -20,34 +20,10 @@ import com.fireblocks.sdk.ApiResponse; import com.fireblocks.sdk.Pair; import com.fireblocks.sdk.ValidationUtils; -import com.fireblocks.sdk.model.AdapterProcessingResult; -import com.fireblocks.sdk.model.CollectionBurnRequestDto; -import com.fireblocks.sdk.model.CollectionBurnResponseDto; -import com.fireblocks.sdk.model.CollectionDeployRequestDto; -import com.fireblocks.sdk.model.CollectionLinkDto; -import com.fireblocks.sdk.model.CollectionMintRequestDto; -import com.fireblocks.sdk.model.CollectionMintResponseDto; -import com.fireblocks.sdk.model.CreateMultichainTokenRequest; import com.fireblocks.sdk.model.CreateTokenRequestDto; -import com.fireblocks.sdk.model.DeployLayerZeroAdaptersRequest; -import com.fireblocks.sdk.model.DeployableAddressResponse; -import com.fireblocks.sdk.model.GetDeployableAddressRequest; -import com.fireblocks.sdk.model.GetLayerZeroDvnConfigResponse; -import com.fireblocks.sdk.model.GetLayerZeroPeersResponse; -import com.fireblocks.sdk.model.GetLinkedCollectionsPaginatedResponse; -import com.fireblocks.sdk.model.ReissueMultichainTokenRequest; -import com.fireblocks.sdk.model.RemoveLayerZeroAdaptersRequest; -import com.fireblocks.sdk.model.RemoveLayerZeroAdaptersResponse; -import com.fireblocks.sdk.model.RemoveLayerZeroPeersRequest; -import com.fireblocks.sdk.model.RemoveLayerZeroPeersResponse; -import com.fireblocks.sdk.model.SetLayerZeroDvnConfigRequest; -import com.fireblocks.sdk.model.SetLayerZeroDvnConfigResponse; -import com.fireblocks.sdk.model.SetLayerZeroPeersRequest; -import com.fireblocks.sdk.model.SetLayerZeroPeersResponse; import com.fireblocks.sdk.model.TokenLinkDto; import com.fireblocks.sdk.model.TokenLinkRequestDto; import com.fireblocks.sdk.model.TokensPaginatedResponse; -import com.fireblocks.sdk.model.ValidateLayerZeroChannelResponse; import java.io.IOException; import java.io.InputStream; import java.math.BigDecimal; @@ -59,7 +35,6 @@ import java.util.ArrayList; import java.util.List; import java.util.StringJoiner; -import java.util.UUID; import java.util.concurrent.CompletableFuture; import java.util.function.Consumer; @@ -104,1345 +79,16 @@ private String formatExceptionMessage(String operationId, int statusCode, String } /** - * Burn tokens Burn tokens in a collection - * - * @param collectionBurnRequestDto (required) - * @param id The collection link id (required) - * @param idempotencyKey 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. (optional) - * @return CompletableFuture<ApiResponse<CollectionBurnResponseDto>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> burnCollectionToken( - CollectionBurnRequestDto collectionBurnRequestDto, String id, String idempotencyKey) - throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = - burnCollectionTokenRequestBuilder(collectionBurnRequestDto, id, idempotencyKey); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException( - "burnCollectionToken", localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - CollectionBurnResponseDto>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder burnCollectionTokenRequestBuilder( - CollectionBurnRequestDto collectionBurnRequestDto, String id, String idempotencyKey) - throws ApiException { - ValidationUtils.assertParamExists( - "burnCollectionToken", "collectionBurnRequestDto", collectionBurnRequestDto); - ValidationUtils.assertParamExistsAndNotEmpty("burnCollectionToken", "id", id); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = - "/tokenization/collections/{id}/tokens/burn" - .replace("{id}", ApiClient.urlEncode(id.toString())); - - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - - if (idempotencyKey != null) { - localVarRequestBuilder.header("Idempotency-Key", idempotencyKey.toString()); - } - localVarRequestBuilder.header("Content-Type", "application/json"); - localVarRequestBuilder.header("Accept", "application/json"); - - try { - byte[] localVarPostBody = - memberVarObjectMapper.writeValueAsBytes(collectionBurnRequestDto); - localVarRequestBuilder.method( - "POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); - } catch (IOException e) { - throw new ApiException(e); - } - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } - /** - * Create a new collection Create a new collection and link it as a token - * - * @param collectionDeployRequestDto (required) - * @param idempotencyKey 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. (optional) - * @return CompletableFuture<ApiResponse<CollectionLinkDto>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> createNewCollection( - CollectionDeployRequestDto collectionDeployRequestDto, String idempotencyKey) - throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = - createNewCollectionRequestBuilder(collectionDeployRequestDto, idempotencyKey); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException( - "createNewCollection", localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - CollectionLinkDto>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder createNewCollectionRequestBuilder( - CollectionDeployRequestDto collectionDeployRequestDto, String idempotencyKey) - throws ApiException { - ValidationUtils.assertParamExists( - "createNewCollection", "collectionDeployRequestDto", collectionDeployRequestDto); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = "/tokenization/collections"; - - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - - if (idempotencyKey != null) { - localVarRequestBuilder.header("Idempotency-Key", idempotencyKey.toString()); - } - localVarRequestBuilder.header("Content-Type", "application/json"); - localVarRequestBuilder.header("Accept", "application/json"); - - try { - byte[] localVarPostBody = - memberVarObjectMapper.writeValueAsBytes(collectionDeployRequestDto); - localVarRequestBuilder.method( - "POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); - } catch (IOException e) { - throw new ApiException(e); - } - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } - /** - * Remove LayerZero adapters Remove LayerZero adapters by deactivating and unlinking them. This - * endpoint revokes roles and deactivates the specified adapter contracts. - * - * @param removeLayerZeroAdaptersRequest (required) - * @param idempotencyKey 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. (optional) - * @return CompletableFuture<ApiResponse<RemoveLayerZeroAdaptersResponse>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> - deactivateAndUnlinkAdapters( - RemoveLayerZeroAdaptersRequest removeLayerZeroAdaptersRequest, - String idempotencyKey) - throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = - deactivateAndUnlinkAdaptersRequestBuilder( - removeLayerZeroAdaptersRequest, idempotencyKey); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException( - "deactivateAndUnlinkAdapters", - localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - RemoveLayerZeroAdaptersResponse>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder deactivateAndUnlinkAdaptersRequestBuilder( - RemoveLayerZeroAdaptersRequest removeLayerZeroAdaptersRequest, String idempotencyKey) - throws ApiException { - ValidationUtils.assertParamExists( - "deactivateAndUnlinkAdapters", - "removeLayerZeroAdaptersRequest", - removeLayerZeroAdaptersRequest); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = "/tokenization/multichain/bridge/layerzero"; - - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - - if (idempotencyKey != null) { - localVarRequestBuilder.header("Idempotency-Key", idempotencyKey.toString()); - } - localVarRequestBuilder.header("Content-Type", "application/json"); - localVarRequestBuilder.header("Accept", "application/json"); - - try { - byte[] localVarPostBody = - memberVarObjectMapper.writeValueAsBytes(removeLayerZeroAdaptersRequest); - localVarRequestBuilder.method( - "DELETE", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); - } catch (IOException e) { - throw new ApiException(e); - } - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } - /** - * Deploy LayerZero adapters Deploy LayerZero adapters for multichain token bridging - * functionality. This endpoint creates adapter contracts that enable cross-chain token - * transfers. - * - * @param deployLayerZeroAdaptersRequest (required) - * @param idempotencyKey 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. (optional) - * @return CompletableFuture<ApiResponse<List<AdapterProcessingResult>>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture>> deployAndLinkAdapters( - DeployLayerZeroAdaptersRequest deployLayerZeroAdaptersRequest, String idempotencyKey) - throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = - deployAndLinkAdaptersRequestBuilder( - deployLayerZeroAdaptersRequest, idempotencyKey); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException( - "deployAndLinkAdapters", localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse>( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - List< - AdapterProcessingResult>>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder deployAndLinkAdaptersRequestBuilder( - DeployLayerZeroAdaptersRequest deployLayerZeroAdaptersRequest, String idempotencyKey) - throws ApiException { - ValidationUtils.assertParamExists( - "deployAndLinkAdapters", - "deployLayerZeroAdaptersRequest", - deployLayerZeroAdaptersRequest); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = "/tokenization/multichain/bridge/layerzero"; - - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - - if (idempotencyKey != null) { - localVarRequestBuilder.header("Idempotency-Key", idempotencyKey.toString()); - } - localVarRequestBuilder.header("Content-Type", "application/json"); - localVarRequestBuilder.header("Accept", "application/json"); - - try { - byte[] localVarPostBody = - memberVarObjectMapper.writeValueAsBytes(deployLayerZeroAdaptersRequest); - localVarRequestBuilder.method( - "POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); - } catch (IOException e) { - throw new ApiException(e); - } - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } - /** - * Get collection token details Get collection token details by id - * - * @param id The collection link id (required) - * @param tokenId The tokenId as it appears on the blockchain (required) - * @return CompletableFuture<ApiResponse<CollectionLinkDto>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> fetchCollectionTokenDetails( - String id, String tokenId) throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = - fetchCollectionTokenDetailsRequestBuilder(id, tokenId); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException( - "fetchCollectionTokenDetails", - localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - CollectionLinkDto>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder fetchCollectionTokenDetailsRequestBuilder(String id, String tokenId) - throws ApiException { - ValidationUtils.assertParamExistsAndNotEmpty("fetchCollectionTokenDetails", "id", id); - ValidationUtils.assertParamExistsAndNotEmpty( - "fetchCollectionTokenDetails", "tokenId", tokenId); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = - "/tokenization/collections/{id}/tokens/{tokenId}" - .replace("{id}", ApiClient.urlEncode(id.toString())) - .replace("{tokenId}", ApiClient.urlEncode(tokenId.toString())); - - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - - localVarRequestBuilder.header("Accept", "application/json"); - - localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } - /** - * Get a collection by id Get a collection by id - * - * @param id The token link id (required) - * @return CompletableFuture<ApiResponse<CollectionLinkDto>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> getCollectionById(String id) - throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = getCollectionByIdRequestBuilder(id); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException("getCollectionById", localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - CollectionLinkDto>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder getCollectionByIdRequestBuilder(String id) throws ApiException { - ValidationUtils.assertParamExistsAndNotEmpty("getCollectionById", "id", id); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = - "/tokenization/collections/{id}" - .replace("{id}", ApiClient.urlEncode(id.toString())); - - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - - localVarRequestBuilder.header("Accept", "application/json"); - - localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } - /** - * Get deterministic address for contract deployment Get a deterministic address for contract - * deployment. The address is derived from the contract's bytecode and provided salt. This - * endpoint is used to get the address of a contract that will be deployed in the future. - * - * @param getDeployableAddressRequest (required) - * @param idempotencyKey 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. (optional) - * @return CompletableFuture<ApiResponse<DeployableAddressResponse>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> getDeployableAddress( - GetDeployableAddressRequest getDeployableAddressRequest, String idempotencyKey) - throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = - getDeployableAddressRequestBuilder(getDeployableAddressRequest, idempotencyKey); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException( - "getDeployableAddress", localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - DeployableAddressResponse>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder getDeployableAddressRequestBuilder( - GetDeployableAddressRequest getDeployableAddressRequest, String idempotencyKey) - throws ApiException { - ValidationUtils.assertParamExists( - "getDeployableAddress", "getDeployableAddressRequest", getDeployableAddressRequest); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = "/tokenization/multichain/deterministic_address"; - - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - - if (idempotencyKey != null) { - localVarRequestBuilder.header("Idempotency-Key", idempotencyKey.toString()); - } - localVarRequestBuilder.header("Content-Type", "application/json"); - localVarRequestBuilder.header("Accept", "application/json"); - - try { - byte[] localVarPostBody = - memberVarObjectMapper.writeValueAsBytes(getDeployableAddressRequest); - localVarRequestBuilder.method( - "POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); - } catch (IOException e) { - throw new ApiException(e); - } - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } - /** - * Get LayerZero DVN configuration Retrieve the DVN (Data Verification Network) configuration - * for a specific adapter. Returns DVN configurations for channels between the source adapter - * and its peers. - * - * @param adapterTokenLinkId The token link id of the adapter token link (required) - * @param peerAdapterTokenLinkId Optional peer adapter token link ID to filter results - * (optional) - * @return CompletableFuture<ApiResponse<GetLayerZeroDvnConfigResponse>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> getLayerZeroDvnConfig( - UUID adapterTokenLinkId, UUID peerAdapterTokenLinkId) throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = - getLayerZeroDvnConfigRequestBuilder(adapterTokenLinkId, peerAdapterTokenLinkId); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException( - "getLayerZeroDvnConfig", localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - GetLayerZeroDvnConfigResponse>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder getLayerZeroDvnConfigRequestBuilder( - UUID adapterTokenLinkId, UUID peerAdapterTokenLinkId) throws ApiException { - ValidationUtils.assertParamExistsAndNotEmpty( - "getLayerZeroDvnConfig", "adapterTokenLinkId", adapterTokenLinkId.toString()); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = - "/tokenization/multichain/bridge/layerzero/config/{adapterTokenLinkId}/dvns" - .replace( - "{adapterTokenLinkId}", - ApiClient.urlEncode(adapterTokenLinkId.toString())); - - List localVarQueryParams = new ArrayList<>(); - StringJoiner localVarQueryStringJoiner = new StringJoiner("&"); - String localVarQueryParameterBaseName; - localVarQueryParameterBaseName = "peerAdapterTokenLinkId"; - localVarQueryParams.addAll( - ApiClient.parameterToPairs("peerAdapterTokenLinkId", peerAdapterTokenLinkId)); - - if (!localVarQueryParams.isEmpty() || localVarQueryStringJoiner.length() != 0) { - StringJoiner queryJoiner = new StringJoiner("&"); - localVarQueryParams.forEach(p -> queryJoiner.add(p.getName() + '=' + p.getValue())); - if (localVarQueryStringJoiner.length() != 0) { - queryJoiner.add(localVarQueryStringJoiner.toString()); - } - localVarRequestBuilder.uri( - URI.create(memberVarBaseUri + localVarPath + '?' + queryJoiner.toString())); - } else { - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - } - - localVarRequestBuilder.header("Accept", "application/json"); - - localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } - /** - * Get LayerZero peers Retrieve the LayerZero peers configured for a specific adapter. Returns - * information about peer relationships for cross-chain communication. - * - * @param adapterTokenLinkId The token link id of the adapter token link (required) - * @return CompletableFuture<ApiResponse<GetLayerZeroPeersResponse>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> getLayerZeroPeers( - UUID adapterTokenLinkId) throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = - getLayerZeroPeersRequestBuilder(adapterTokenLinkId); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException("getLayerZeroPeers", localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - GetLayerZeroPeersResponse>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder getLayerZeroPeersRequestBuilder(UUID adapterTokenLinkId) - throws ApiException { - ValidationUtils.assertParamExistsAndNotEmpty( - "getLayerZeroPeers", "adapterTokenLinkId", adapterTokenLinkId.toString()); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = - "/tokenization/multichain/bridge/layerzero/config/{adapterTokenLinkId}/peers" - .replace( - "{adapterTokenLinkId}", - ApiClient.urlEncode(adapterTokenLinkId.toString())); - - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - - localVarRequestBuilder.header("Accept", "application/json"); - - localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } - /** - * Get collections Get collections (paginated) - * - * @param pageCursor Page cursor to get the next page, for example - - * \"MjAyMy0xMi0xMyAyMDozNjowOC4zMDI=:MTEwMA==\" (optional) - * @param pageSize Number of items per page (max 100), requesting more then 100 will return 100 - * items (optional, default to 100) - * @param status A comma separated list of statuses to filter. Default is - * \"COMPLETED\" (optional) - * @return CompletableFuture<ApiResponse<GetLinkedCollectionsPaginatedResponse>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> - getLinkedCollections(String pageCursor, BigDecimal pageSize, Object status) - throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = - getLinkedCollectionsRequestBuilder(pageCursor, pageSize, status); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException( - "getLinkedCollections", localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - GetLinkedCollectionsPaginatedResponse>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder getLinkedCollectionsRequestBuilder( - String pageCursor, BigDecimal pageSize, Object status) throws ApiException { - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = "/tokenization/collections"; - - List localVarQueryParams = new ArrayList<>(); - StringJoiner localVarQueryStringJoiner = new StringJoiner("&"); - String localVarQueryParameterBaseName; - localVarQueryParameterBaseName = "pageCursor"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("pageCursor", pageCursor)); - localVarQueryParameterBaseName = "pageSize"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("pageSize", pageSize)); - localVarQueryParameterBaseName = "status"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("status", status)); - - if (!localVarQueryParams.isEmpty() || localVarQueryStringJoiner.length() != 0) { - StringJoiner queryJoiner = new StringJoiner("&"); - localVarQueryParams.forEach(p -> queryJoiner.add(p.getName() + '=' + p.getValue())); - if (localVarQueryStringJoiner.length() != 0) { - queryJoiner.add(localVarQueryStringJoiner.toString()); - } - localVarRequestBuilder.uri( - URI.create(memberVarBaseUri + localVarPath + '?' + queryJoiner.toString())); - } else { - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - } - - localVarRequestBuilder.header("Accept", "application/json"); - - localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } - /** - * Return a linked token Return a linked token, with its status and metadata. - * - * @param id The token link id (required) - * @return CompletableFuture<ApiResponse<TokenLinkDto>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> getLinkedToken(String id) - throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = getLinkedTokenRequestBuilder(id); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException("getLinkedToken", localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - TokenLinkDto>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder getLinkedTokenRequestBuilder(String id) throws ApiException { - ValidationUtils.assertParamExistsAndNotEmpty("getLinkedToken", "id", id); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = - "/tokenization/tokens/{id}".replace("{id}", ApiClient.urlEncode(id.toString())); - - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - - localVarRequestBuilder.header("Accept", "application/json"); - - localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } - /** - * List all linked tokens Return all linked tokens (paginated) - * - * @param pageCursor Page cursor to get the next page (optional) - * @param pageSize Number of items per page, requesting more then max will return max items - * (optional) - * @param status A comma separated list of statuses to filter. Default is - * \"COMPLETED\" (optional) - * @return CompletableFuture<ApiResponse<TokensPaginatedResponse>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> getLinkedTokens( - String pageCursor, BigDecimal pageSize, Object status) throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = - getLinkedTokensRequestBuilder(pageCursor, pageSize, status); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException("getLinkedTokens", localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - TokensPaginatedResponse>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder getLinkedTokensRequestBuilder( - String pageCursor, BigDecimal pageSize, Object status) throws ApiException { - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = "/tokenization/tokens"; - - List localVarQueryParams = new ArrayList<>(); - StringJoiner localVarQueryStringJoiner = new StringJoiner("&"); - String localVarQueryParameterBaseName; - localVarQueryParameterBaseName = "pageCursor"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("pageCursor", pageCursor)); - localVarQueryParameterBaseName = "pageSize"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("pageSize", pageSize)); - localVarQueryParameterBaseName = "status"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("status", status)); - - if (!localVarQueryParams.isEmpty() || localVarQueryStringJoiner.length() != 0) { - StringJoiner queryJoiner = new StringJoiner("&"); - localVarQueryParams.forEach(p -> queryJoiner.add(p.getName() + '=' + p.getValue())); - if (localVarQueryStringJoiner.length() != 0) { - queryJoiner.add(localVarQueryStringJoiner.toString()); - } - localVarRequestBuilder.uri( - URI.create(memberVarBaseUri + localVarPath + '?' + queryJoiner.toString())); - } else { - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - } - - localVarRequestBuilder.header("Accept", "application/json"); - - localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } - /** - * Issue a new token Facilitates the creation of a new token, supporting both EVM-based and - * Stellar/Ripple platforms. For EVM, it deploys the corresponding contract template to the - * blockchain and links the token to the workspace. For Stellar/Ripple, it links a newly created - * token directly to the workspace without deploying a contract. Returns the token link with - * status \"PENDING\" until the token is deployed or \"SUCCESS\" if no - * deployment is needed. - * - * @param createTokenRequestDto (required) - * @param idempotencyKey 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. (optional) - * @return CompletableFuture<ApiResponse<TokenLinkDto>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> issueNewToken( - CreateTokenRequestDto createTokenRequestDto, String idempotencyKey) - throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = - issueNewTokenRequestBuilder(createTokenRequestDto, idempotencyKey); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException("issueNewToken", localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - TokenLinkDto>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder issueNewTokenRequestBuilder( - CreateTokenRequestDto createTokenRequestDto, String idempotencyKey) - throws ApiException { - ValidationUtils.assertParamExists( - "issueNewToken", "createTokenRequestDto", createTokenRequestDto); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = "/tokenization/tokens"; - - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - - if (idempotencyKey != null) { - localVarRequestBuilder.header("Idempotency-Key", idempotencyKey.toString()); - } - localVarRequestBuilder.header("Content-Type", "application/json"); - localVarRequestBuilder.header("Accept", "application/json"); - - try { - byte[] localVarPostBody = - memberVarObjectMapper.writeValueAsBytes(createTokenRequestDto); - localVarRequestBuilder.method( - "POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); - } catch (IOException e) { - throw new ApiException(e); - } - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } - /** - * Issue a token on one or more blockchains Facilitates the creation of a new token on one or - * more blockchains. - * - * @param createMultichainTokenRequest (required) - * @param idempotencyKey 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. (optional) - * @return CompletableFuture<ApiResponse<List<TokenLinkDto>>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture>> issueTokenMultiChain( - CreateMultichainTokenRequest createMultichainTokenRequest, String idempotencyKey) - throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = - issueTokenMultiChainRequestBuilder( - createMultichainTokenRequest, idempotencyKey); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException( - "issueTokenMultiChain", localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse>( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - List< - TokenLinkDto>>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder issueTokenMultiChainRequestBuilder( - CreateMultichainTokenRequest createMultichainTokenRequest, String idempotencyKey) - throws ApiException { - ValidationUtils.assertParamExists( - "issueTokenMultiChain", - "createMultichainTokenRequest", - createMultichainTokenRequest); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = "/tokenization/multichain/tokens"; - - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - - if (idempotencyKey != null) { - localVarRequestBuilder.header("Idempotency-Key", idempotencyKey.toString()); - } - localVarRequestBuilder.header("Content-Type", "application/json"); - localVarRequestBuilder.header("Accept", "application/json"); - - try { - byte[] localVarPostBody = - memberVarObjectMapper.writeValueAsBytes(createMultichainTokenRequest); - localVarRequestBuilder.method( - "POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); - } catch (IOException e) { - throw new ApiException(e); - } - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } - /** - * Link a contract Link an a contract - * - * @param tokenLinkRequestDto (required) - * @param idempotencyKey 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. (optional) - * @return CompletableFuture<ApiResponse<TokenLinkDto>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> link( - TokenLinkRequestDto tokenLinkRequestDto, String idempotencyKey) throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = - linkRequestBuilder(tokenLinkRequestDto, idempotencyKey); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException("link", localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - TokenLinkDto>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder linkRequestBuilder( - TokenLinkRequestDto tokenLinkRequestDto, String idempotencyKey) throws ApiException { - ValidationUtils.assertParamExists("link", "tokenLinkRequestDto", tokenLinkRequestDto); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = "/tokenization/tokens/link"; - - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - - if (idempotencyKey != null) { - localVarRequestBuilder.header("Idempotency-Key", idempotencyKey.toString()); - } - localVarRequestBuilder.header("Content-Type", "application/json"); - localVarRequestBuilder.header("Accept", "application/json"); - - try { - byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(tokenLinkRequestDto); - localVarRequestBuilder.method( - "POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); - } catch (IOException e) { - throw new ApiException(e); - } - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } - /** - * Mint tokens Mint tokens and upload metadata - * - * @param collectionMintRequestDto (required) - * @param id The collection link id (required) - * @param idempotencyKey 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. (optional) - * @return CompletableFuture<ApiResponse<CollectionMintResponseDto>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> mintCollectionToken( - CollectionMintRequestDto collectionMintRequestDto, String id, String idempotencyKey) - throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = - mintCollectionTokenRequestBuilder(collectionMintRequestDto, id, idempotencyKey); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException( - "mintCollectionToken", localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - CollectionMintResponseDto>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder mintCollectionTokenRequestBuilder( - CollectionMintRequestDto collectionMintRequestDto, String id, String idempotencyKey) - throws ApiException { - ValidationUtils.assertParamExists( - "mintCollectionToken", "collectionMintRequestDto", collectionMintRequestDto); - ValidationUtils.assertParamExistsAndNotEmpty("mintCollectionToken", "id", id); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = - "/tokenization/collections/{id}/tokens/mint" - .replace("{id}", ApiClient.urlEncode(id.toString())); - - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - - if (idempotencyKey != null) { - localVarRequestBuilder.header("Idempotency-Key", idempotencyKey.toString()); - } - localVarRequestBuilder.header("Content-Type", "application/json"); - localVarRequestBuilder.header("Accept", "application/json"); - - try { - byte[] localVarPostBody = - memberVarObjectMapper.writeValueAsBytes(collectionMintRequestDto); - localVarRequestBuilder.method( - "POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); - } catch (IOException e) { - throw new ApiException(e); - } - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } - /** - * Reissue a multichain token Reissue a multichain token. This endpoint allows you to reissue a - * token on one or more blockchains. The token must be initially issued using the - * issueTokenMultiChain endpoint. + * Return a linked token Return a linked token, with its status and metadata. * - * @param reissueMultichainTokenRequest (required) - * @param tokenLinkId The ID of the token link (required) - * @param idempotencyKey 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. (optional) - * @return CompletableFuture<ApiResponse<List<TokenLinkDto>>> + * @param id The token link id (required) + * @return CompletableFuture<ApiResponse<TokenLinkDto>> * @throws ApiException if fails to make API call */ - public CompletableFuture>> reIssueTokenMultiChain( - ReissueMultichainTokenRequest reissueMultichainTokenRequest, - String tokenLinkId, - String idempotencyKey) + public CompletableFuture> getLinkedToken(String id) throws ApiException { try { - HttpRequest.Builder localVarRequestBuilder = - reIssueTokenMultiChainRequestBuilder( - reissueMultichainTokenRequest, tokenLinkId, idempotencyKey); + HttpRequest.Builder localVarRequestBuilder = getLinkedTokenRequestBuilder(id); return memberVarHttpClient .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) .thenComposeAsync( @@ -1452,13 +98,12 @@ public CompletableFuture>> reIssueTokenMultiChain } if (localVarResponse.statusCode() / 100 != 2) { return CompletableFuture.failedFuture( - getApiException( - "reIssueTokenMultiChain", localVarResponse)); + getApiException("getLinkedToken", localVarResponse)); } try { String responseBody = localVarResponse.body(); return CompletableFuture.completedFuture( - new ApiResponse>( + new ApiResponse( localVarResponse.statusCode(), localVarResponse.headers().map(), responseBody == null || responseBody.isBlank() @@ -1466,8 +111,7 @@ public CompletableFuture>> reIssueTokenMultiChain : memberVarObjectMapper.readValue( responseBody, new TypeReference< - List< - TokenLinkDto>>() {}))); + TokenLinkDto>() {}))); } catch (IOException e) { return CompletableFuture.failedFuture(new ApiException(e)); } @@ -1477,40 +121,19 @@ public CompletableFuture>> reIssueTokenMultiChain } } - private HttpRequest.Builder reIssueTokenMultiChainRequestBuilder( - ReissueMultichainTokenRequest reissueMultichainTokenRequest, - String tokenLinkId, - String idempotencyKey) - throws ApiException { - ValidationUtils.assertParamExists( - "reIssueTokenMultiChain", - "reissueMultichainTokenRequest", - reissueMultichainTokenRequest); - ValidationUtils.assertParamExistsAndNotEmpty( - "reIssueTokenMultiChain", "tokenLinkId", tokenLinkId); + private HttpRequest.Builder getLinkedTokenRequestBuilder(String id) throws ApiException { + ValidationUtils.assertParamExistsAndNotEmpty("getLinkedToken", "id", id); HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); String localVarPath = - "/tokenization/multichain/reissue/token/{tokenLinkId}" - .replace("{tokenLinkId}", ApiClient.urlEncode(tokenLinkId.toString())); + "/tokenization/tokens/{id}".replace("{id}", ApiClient.urlEncode(id.toString())); localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - if (idempotencyKey != null) { - localVarRequestBuilder.header("Idempotency-Key", idempotencyKey.toString()); - } - localVarRequestBuilder.header("Content-Type", "application/json"); localVarRequestBuilder.header("Accept", "application/json"); - try { - byte[] localVarPostBody = - memberVarObjectMapper.writeValueAsBytes(reissueMultichainTokenRequest); - localVarRequestBuilder.method( - "POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); - } catch (IOException e) { - throw new ApiException(e); - } + localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); if (memberVarReadTimeout != null) { localVarRequestBuilder.timeout(memberVarReadTimeout); } @@ -1520,22 +143,21 @@ private HttpRequest.Builder reIssueTokenMultiChainRequestBuilder( return localVarRequestBuilder; } /** - * Remove LayerZero peers Remove LayerZero peers to disconnect adapter contracts. This endpoint - * removes peer relationships between LayerZero adapters. + * List all linked tokens Return all linked tokens (paginated) * - * @param removeLayerZeroPeersRequest (required) - * @param idempotencyKey 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. (optional) - * @return CompletableFuture<ApiResponse<RemoveLayerZeroPeersResponse>> + * @param pageCursor Page cursor to get the next page (optional) + * @param pageSize Number of items per page, requesting more then max will return max items + * (optional) + * @param status A comma separated list of statuses to filter. Default is + * \"COMPLETED\" (optional) + * @return CompletableFuture<ApiResponse<TokensPaginatedResponse>> * @throws ApiException if fails to make API call */ - public CompletableFuture> removeLayerZeroPeers( - RemoveLayerZeroPeersRequest removeLayerZeroPeersRequest, String idempotencyKey) - throws ApiException { + public CompletableFuture> getLinkedTokens( + String pageCursor, BigDecimal pageSize, Object status) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = - removeLayerZeroPeersRequestBuilder(removeLayerZeroPeersRequest, idempotencyKey); + getLinkedTokensRequestBuilder(pageCursor, pageSize, status); return memberVarHttpClient .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) .thenComposeAsync( @@ -1545,13 +167,12 @@ public CompletableFuture> removeLayerZ } if (localVarResponse.statusCode() / 100 != 2) { return CompletableFuture.failedFuture( - getApiException( - "removeLayerZeroPeers", localVarResponse)); + getApiException("getLinkedTokens", localVarResponse)); } try { String responseBody = localVarResponse.body(); return CompletableFuture.completedFuture( - new ApiResponse( + new ApiResponse( localVarResponse.statusCode(), localVarResponse.headers().map(), responseBody == null || responseBody.isBlank() @@ -1559,7 +180,7 @@ public CompletableFuture> removeLayerZ : memberVarObjectMapper.readValue( responseBody, new TypeReference< - RemoveLayerZeroPeersResponse>() {}))); + TokensPaginatedResponse>() {}))); } catch (IOException e) { return CompletableFuture.failedFuture(new ApiException(e)); } @@ -1569,32 +190,38 @@ public CompletableFuture> removeLayerZ } } - private HttpRequest.Builder removeLayerZeroPeersRequestBuilder( - RemoveLayerZeroPeersRequest removeLayerZeroPeersRequest, String idempotencyKey) - throws ApiException { - ValidationUtils.assertParamExists( - "removeLayerZeroPeers", "removeLayerZeroPeersRequest", removeLayerZeroPeersRequest); + private HttpRequest.Builder getLinkedTokensRequestBuilder( + String pageCursor, BigDecimal pageSize, Object status) throws ApiException { HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - String localVarPath = "/tokenization/multichain/bridge/layerzero/config/peers"; + String localVarPath = "/tokenization/tokens"; - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); + List localVarQueryParams = new ArrayList<>(); + StringJoiner localVarQueryStringJoiner = new StringJoiner("&"); + String localVarQueryParameterBaseName; + localVarQueryParameterBaseName = "pageCursor"; + localVarQueryParams.addAll(ApiClient.parameterToPairs("pageCursor", pageCursor)); + localVarQueryParameterBaseName = "pageSize"; + localVarQueryParams.addAll(ApiClient.parameterToPairs("pageSize", pageSize)); + localVarQueryParameterBaseName = "status"; + localVarQueryParams.addAll(ApiClient.parameterToPairs("status", status)); - if (idempotencyKey != null) { - localVarRequestBuilder.header("Idempotency-Key", idempotencyKey.toString()); + if (!localVarQueryParams.isEmpty() || localVarQueryStringJoiner.length() != 0) { + StringJoiner queryJoiner = new StringJoiner("&"); + localVarQueryParams.forEach(p -> queryJoiner.add(p.getName() + '=' + p.getValue())); + if (localVarQueryStringJoiner.length() != 0) { + queryJoiner.add(localVarQueryStringJoiner.toString()); + } + localVarRequestBuilder.uri( + URI.create(memberVarBaseUri + localVarPath + '?' + queryJoiner.toString())); + } else { + localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); } - localVarRequestBuilder.header("Content-Type", "application/json"); + localVarRequestBuilder.header("Accept", "application/json"); - try { - byte[] localVarPostBody = - memberVarObjectMapper.writeValueAsBytes(removeLayerZeroPeersRequest); - localVarRequestBuilder.method( - "DELETE", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); - } catch (IOException e) { - throw new ApiException(e); - } + localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); if (memberVarReadTimeout != null) { localVarRequestBuilder.timeout(memberVarReadTimeout); } @@ -1604,24 +231,26 @@ private HttpRequest.Builder removeLayerZeroPeersRequestBuilder( return localVarRequestBuilder; } /** - * Set LayerZero DVN configuration Configure DVN settings for LayerZero adapters. This endpoint - * sets up the DVN configuration for message verification between source and destination - * adapters. + * Issue a new token Facilitates the creation of a new token, supporting both EVM-based and + * Stellar/Ripple platforms. For EVM, it deploys the corresponding contract template to the + * blockchain and links the token to the workspace. For Stellar/Ripple, it links a newly created + * token directly to the workspace without deploying a contract. Returns the token link with + * status \"PENDING\" until the token is deployed or \"SUCCESS\" if no + * deployment is needed. * - * @param setLayerZeroDvnConfigRequest (required) + * @param createTokenRequestDto (required) * @param idempotencyKey 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. (optional) - * @return CompletableFuture<ApiResponse<SetLayerZeroDvnConfigResponse>> + * @return CompletableFuture<ApiResponse<TokenLinkDto>> * @throws ApiException if fails to make API call */ - public CompletableFuture> setLayerZeroDvnConfig( - SetLayerZeroDvnConfigRequest setLayerZeroDvnConfigRequest, String idempotencyKey) + public CompletableFuture> issueNewToken( + CreateTokenRequestDto createTokenRequestDto, String idempotencyKey) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = - setLayerZeroDvnConfigRequestBuilder( - setLayerZeroDvnConfigRequest, idempotencyKey); + issueNewTokenRequestBuilder(createTokenRequestDto, idempotencyKey); return memberVarHttpClient .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) .thenComposeAsync( @@ -1631,13 +260,12 @@ public CompletableFuture> setLayerZer } if (localVarResponse.statusCode() / 100 != 2) { return CompletableFuture.failedFuture( - getApiException( - "setLayerZeroDvnConfig", localVarResponse)); + getApiException("issueNewToken", localVarResponse)); } try { String responseBody = localVarResponse.body(); return CompletableFuture.completedFuture( - new ApiResponse( + new ApiResponse( localVarResponse.statusCode(), localVarResponse.headers().map(), responseBody == null || responseBody.isBlank() @@ -1645,7 +273,7 @@ public CompletableFuture> setLayerZer : memberVarObjectMapper.readValue( responseBody, new TypeReference< - SetLayerZeroDvnConfigResponse>() {}))); + TokenLinkDto>() {}))); } catch (IOException e) { return CompletableFuture.failedFuture(new ApiException(e)); } @@ -1655,17 +283,15 @@ public CompletableFuture> setLayerZer } } - private HttpRequest.Builder setLayerZeroDvnConfigRequestBuilder( - SetLayerZeroDvnConfigRequest setLayerZeroDvnConfigRequest, String idempotencyKey) + private HttpRequest.Builder issueNewTokenRequestBuilder( + CreateTokenRequestDto createTokenRequestDto, String idempotencyKey) throws ApiException { ValidationUtils.assertParamExists( - "setLayerZeroDvnConfig", - "setLayerZeroDvnConfigRequest", - setLayerZeroDvnConfigRequest); + "issueNewToken", "createTokenRequestDto", createTokenRequestDto); HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - String localVarPath = "/tokenization/multichain/bridge/layerzero/config/dvns"; + String localVarPath = "/tokenization/tokens"; localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); @@ -1677,7 +303,7 @@ private HttpRequest.Builder setLayerZeroDvnConfigRequestBuilder( try { byte[] localVarPostBody = - memberVarObjectMapper.writeValueAsBytes(setLayerZeroDvnConfigRequest); + memberVarObjectMapper.writeValueAsBytes(createTokenRequestDto); localVarRequestBuilder.method( "POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); } catch (IOException e) { @@ -1692,24 +318,22 @@ private HttpRequest.Builder setLayerZeroDvnConfigRequestBuilder( return localVarRequestBuilder; } /** - * Set LayerZero peers Set LayerZero peers to establish connections between adapter contracts. - * This endpoint creates peer relationships that enable cross-chain communication. It sets the - * destination adapter as a peer of the source adapter. If `bidirectional` is true, it - * also sets the source adapter as a peer of the destination adapter(s). + * Link a token Link an already existing token (by assetId, collectionId or contractId as refId) + * to a workspace across EVM, Stellar, or Ripple platforms. The token will be linked to the + * workspace if it does not already exist. * - * @param setLayerZeroPeersRequest (required) + * @param tokenLinkRequestDto (required) * @param idempotencyKey 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. (optional) - * @return CompletableFuture<ApiResponse<SetLayerZeroPeersResponse>> + * @return CompletableFuture<ApiResponse<TokenLinkDto>> * @throws ApiException if fails to make API call */ - public CompletableFuture> setLayerZeroPeers( - SetLayerZeroPeersRequest setLayerZeroPeersRequest, String idempotencyKey) - throws ApiException { + public CompletableFuture> link( + TokenLinkRequestDto tokenLinkRequestDto, String idempotencyKey) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = - setLayerZeroPeersRequestBuilder(setLayerZeroPeersRequest, idempotencyKey); + linkRequestBuilder(tokenLinkRequestDto, idempotencyKey); return memberVarHttpClient .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) .thenComposeAsync( @@ -1719,12 +343,12 @@ public CompletableFuture> setLayerZeroPee } if (localVarResponse.statusCode() / 100 != 2) { return CompletableFuture.failedFuture( - getApiException("setLayerZeroPeers", localVarResponse)); + getApiException("link", localVarResponse)); } try { String responseBody = localVarResponse.body(); return CompletableFuture.completedFuture( - new ApiResponse( + new ApiResponse( localVarResponse.statusCode(), localVarResponse.headers().map(), responseBody == null || responseBody.isBlank() @@ -1732,7 +356,7 @@ public CompletableFuture> setLayerZeroPee : memberVarObjectMapper.readValue( responseBody, new TypeReference< - SetLayerZeroPeersResponse>() {}))); + TokenLinkDto>() {}))); } catch (IOException e) { return CompletableFuture.failedFuture(new ApiException(e)); } @@ -1742,15 +366,13 @@ public CompletableFuture> setLayerZeroPee } } - private HttpRequest.Builder setLayerZeroPeersRequestBuilder( - SetLayerZeroPeersRequest setLayerZeroPeersRequest, String idempotencyKey) - throws ApiException { - ValidationUtils.assertParamExists( - "setLayerZeroPeers", "setLayerZeroPeersRequest", setLayerZeroPeersRequest); + private HttpRequest.Builder linkRequestBuilder( + TokenLinkRequestDto tokenLinkRequestDto, String idempotencyKey) throws ApiException { + ValidationUtils.assertParamExists("link", "tokenLinkRequestDto", tokenLinkRequestDto); HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - String localVarPath = "/tokenization/multichain/bridge/layerzero/config/peers"; + String localVarPath = "/tokenization/tokens/link"; localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); @@ -1761,8 +383,7 @@ private HttpRequest.Builder setLayerZeroPeersRequestBuilder( localVarRequestBuilder.header("Accept", "application/json"); try { - byte[] localVarPostBody = - memberVarObjectMapper.writeValueAsBytes(setLayerZeroPeersRequest); + byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(tokenLinkRequestDto); localVarRequestBuilder.method( "POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); } catch (IOException e) { @@ -1830,157 +451,4 @@ private HttpRequest.Builder unlinkRequestBuilder(String id) throws ApiException } return localVarRequestBuilder; } - /** - * Delete a collection link Delete a collection link - * - * @param id The token link id (required) - * @return CompletableFuture<ApiResponse<Void>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> unlinkCollection(String id) throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = unlinkCollectionRequestBuilder(id); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException("unlinkCollection", localVarResponse)); - } - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - null)); - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder unlinkCollectionRequestBuilder(String id) throws ApiException { - ValidationUtils.assertParamExistsAndNotEmpty("unlinkCollection", "id", id); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = - "/tokenization/collections/{id}" - .replace("{id}", ApiClient.urlEncode(id.toString())); - - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - - localVarRequestBuilder.header("Accept", "application/json"); - - localVarRequestBuilder.method("DELETE", HttpRequest.BodyPublishers.noBody()); - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } - /** - * Validate LayerZero channel configuration Validate the LayerZero channel configuration between - * adapters. This endpoint checks if the channel configuration is correct and returns any - * validation errors. - * - * @param adapterTokenLinkId The token link ID of the adapter (required) - * @param peerAdapterTokenLinkId Peer adapter token link ID to validate against (required) - * @return CompletableFuture<ApiResponse<ValidateLayerZeroChannelResponse>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> - validateLayerZeroChannelConfig(UUID adapterTokenLinkId, UUID peerAdapterTokenLinkId) - throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = - validateLayerZeroChannelConfigRequestBuilder( - adapterTokenLinkId, peerAdapterTokenLinkId); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException( - "validateLayerZeroChannelConfig", - localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - ValidateLayerZeroChannelResponse>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder validateLayerZeroChannelConfigRequestBuilder( - UUID adapterTokenLinkId, UUID peerAdapterTokenLinkId) throws ApiException { - ValidationUtils.assertParamExistsAndNotEmpty( - "validateLayerZeroChannelConfig", - "adapterTokenLinkId", - adapterTokenLinkId.toString()); - ValidationUtils.assertParamExistsAndNotEmpty( - "validateLayerZeroChannelConfig", - "peerAdapterTokenLinkId", - peerAdapterTokenLinkId.toString()); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = "/tokenization/multichain/bridge/layerzero/validate"; - - List localVarQueryParams = new ArrayList<>(); - StringJoiner localVarQueryStringJoiner = new StringJoiner("&"); - String localVarQueryParameterBaseName; - localVarQueryParameterBaseName = "adapterTokenLinkId"; - localVarQueryParams.addAll( - ApiClient.parameterToPairs("adapterTokenLinkId", adapterTokenLinkId)); - localVarQueryParameterBaseName = "peerAdapterTokenLinkId"; - localVarQueryParams.addAll( - ApiClient.parameterToPairs("peerAdapterTokenLinkId", peerAdapterTokenLinkId)); - - if (!localVarQueryParams.isEmpty() || localVarQueryStringJoiner.length() != 0) { - StringJoiner queryJoiner = new StringJoiner("&"); - localVarQueryParams.forEach(p -> queryJoiner.add(p.getName() + '=' + p.getValue())); - if (localVarQueryStringJoiner.length() != 0) { - queryJoiner.add(localVarQueryStringJoiner.toString()); - } - localVarRequestBuilder.uri( - URI.create(memberVarBaseUri + localVarPath + '?' + queryJoiner.toString())); - } else { - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - } - - localVarRequestBuilder.header("Accept", "application/json"); - - localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } } diff --git a/src/main/java/com/fireblocks/sdk/api/TradingBetaApi.java b/src/main/java/com/fireblocks/sdk/api/TradingBetaApi.java deleted file mode 100644 index a1a23ca2..00000000 --- a/src/main/java/com/fireblocks/sdk/api/TradingBetaApi.java +++ /dev/null @@ -1,542 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.api; - - -import com.fasterxml.jackson.core.type.TypeReference; -import com.fasterxml.jackson.databind.ObjectMapper; -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.Pair; -import com.fireblocks.sdk.ValidationUtils; -import com.fireblocks.sdk.model.CreateOrderRequest; -import com.fireblocks.sdk.model.CreateQuote; -import com.fireblocks.sdk.model.GetOrdersResponse; -import com.fireblocks.sdk.model.OrderDetails; -import com.fireblocks.sdk.model.OrderStatus; -import com.fireblocks.sdk.model.ProvidersListResponse; -import com.fireblocks.sdk.model.QuotesResponse; -import java.io.IOException; -import java.io.InputStream; -import java.net.URI; -import java.net.http.HttpClient; -import java.net.http.HttpRequest; -import java.net.http.HttpResponse; -import java.time.Duration; -import java.util.ArrayList; -import java.util.List; -import java.util.StringJoiner; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; - -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class TradingBetaApi { - private final HttpClient memberVarHttpClient; - private final ObjectMapper memberVarObjectMapper; - private final String memberVarBaseUri; - private final Consumer memberVarInterceptor; - private final Duration memberVarReadTimeout; - private final Consumer> memberVarResponseInterceptor; - private final Consumer> memberVarAsyncResponseInterceptor; - - public TradingBetaApi() { - this(new ApiClient()); - } - - public TradingBetaApi(ApiClient apiClient) { - memberVarHttpClient = apiClient.getHttpClient(); - memberVarObjectMapper = apiClient.getObjectMapper(); - memberVarBaseUri = apiClient.getBaseUri(); - memberVarInterceptor = apiClient.getRequestInterceptor(); - memberVarReadTimeout = apiClient.getReadTimeout(); - memberVarResponseInterceptor = apiClient.getResponseInterceptor(); - memberVarAsyncResponseInterceptor = apiClient.getAsyncResponseInterceptor(); - } - - private ApiException getApiException(String operationId, HttpResponse response) { - String message = - formatExceptionMessage(operationId, response.statusCode(), response.body()); - return new ApiException( - response.statusCode(), message, response.headers(), response.body()); - } - - private String formatExceptionMessage(String operationId, int statusCode, String body) { - if (body == null || body.isEmpty()) { - body = "[no body]"; - } - return operationId + " call failed with: " + statusCode + " - " + body; - } - - /** - * Create an order Create an order to buy or sell an asset. If no source is given, an external - * source will be use. Note: These endpoints are currently in beta and might be subject to - * changes. If you want to participate and learn more about the Fireblocks Trading, please - * contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. - * Endpoint Permission: Owner, Admin, Non-Signing Admin, Signer, Editor. - * - * @param createOrderRequest (required) - * @param idempotencyKey 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. (optional) - * @return CompletableFuture<ApiResponse<OrderDetails>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> createOrder( - CreateOrderRequest createOrderRequest, String idempotencyKey) throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = - createOrderRequestBuilder(createOrderRequest, idempotencyKey); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException("createOrder", localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - OrderDetails>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder createOrderRequestBuilder( - CreateOrderRequest createOrderRequest, String idempotencyKey) throws ApiException { - ValidationUtils.assertParamExists("createOrder", "createOrderRequest", createOrderRequest); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = "/trading/orders"; - - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - - if (idempotencyKey != null) { - localVarRequestBuilder.header("Idempotency-Key", idempotencyKey.toString()); - } - localVarRequestBuilder.header("Content-Type", "application/json"); - localVarRequestBuilder.header("Accept", "application/json"); - - try { - byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(createOrderRequest); - localVarRequestBuilder.method( - "POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); - } catch (IOException e) { - throw new ApiException(e); - } - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } - /** - * Create a quote Generate a time-limited quote for asset conversion, providing exchange rate - * and amount calculations. Note: These endpoints are currently in beta and might be subject to - * changes. If you want to participate and learn more about the Fireblocks Trading, please - * contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. - * Endpoint Permission: Owner, Admin, Non-Signing Admin, Signer, Editor. - * - * @param createQuote (required) - * @param idempotencyKey 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. (optional) - * @return CompletableFuture<ApiResponse<QuotesResponse>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> createQuote( - CreateQuote createQuote, String idempotencyKey) throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = - createQuoteRequestBuilder(createQuote, idempotencyKey); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException("createQuote", localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - QuotesResponse>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder createQuoteRequestBuilder( - CreateQuote createQuote, String idempotencyKey) throws ApiException { - ValidationUtils.assertParamExists("createQuote", "createQuote", createQuote); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = "/trading/quotes"; - - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - - if (idempotencyKey != null) { - localVarRequestBuilder.header("Idempotency-Key", idempotencyKey.toString()); - } - localVarRequestBuilder.header("Content-Type", "application/json"); - localVarRequestBuilder.header("Accept", "application/json"); - - try { - byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(createQuote); - localVarRequestBuilder.method( - "POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); - } catch (IOException e) { - throw new ApiException(e); - } - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } - /** - * Get order details Retrieve detailed information about a specific order by its ID. Note:These - * endpoints are currently in beta and might be subject to changes. If you want to participate - * and learn more about the Fireblocks Trading, please contact your Fireblocks Customer Success - * Manager or send an email to CSM@fireblocks.com. Endpoint Permission: Owner, Admin, - * Non-Signing Admin, Signer, Approver, Editor, Viewer. - * - * @param orderId The ID of the order to fetch. (required) - * @return CompletableFuture<ApiResponse<OrderDetails>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> getOrder(String orderId) - throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = getOrderRequestBuilder(orderId); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException("getOrder", localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - OrderDetails>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder getOrderRequestBuilder(String orderId) throws ApiException { - ValidationUtils.assertParamExistsAndNotEmpty("getOrder", "orderId", orderId); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = - "/trading/orders/{orderId}" - .replace("{orderId}", ApiClient.urlEncode(orderId.toString())); - - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - - localVarRequestBuilder.header("Accept", "application/json"); - - localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } - /** - * Get orders Retrieve a paginated list of orders with optional filtering by account, provider, - * status, and time range. Note:These endpoints are currently in beta and might be subject to - * changes. If you want to participate and learn more about the Fireblocks Trading, please - * contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. - * Endpoint Permission: Owner, Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. - * - * @param pageSize pageSize for pagination. (required) - * @param pageCursor (optional) - * @param order ASC / DESC ordering (default DESC) (optional, default to DESC) - * @param accountId Filter by accountId. (optional - * @param providerId Filter by providerId. (optional - * @param statuses Filter by order status. (optional - * @param startTime (optional) - * @param endTime (optional) - * @param assetConversionType (optional) - * @return CompletableFuture<ApiResponse<GetOrdersResponse>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> getOrders( - Integer pageSize, - String pageCursor, - String order, - List accountId, - List providerId, - List statuses, - Integer startTime, - Integer endTime, - String assetConversionType) - throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = - getOrdersRequestBuilder( - pageSize, - pageCursor, - order, - accountId, - providerId, - statuses, - startTime, - endTime, - assetConversionType); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException("getOrders", localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - GetOrdersResponse>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder getOrdersRequestBuilder( - Integer pageSize, - String pageCursor, - String order, - List accountId, - List providerId, - List statuses, - Integer startTime, - Integer endTime, - String assetConversionType) - throws ApiException { - ValidationUtils.assertParamExists("getOrders", "pageSize", pageSize); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = "/trading/orders"; - - List localVarQueryParams = new ArrayList<>(); - StringJoiner localVarQueryStringJoiner = new StringJoiner("&"); - String localVarQueryParameterBaseName; - localVarQueryParameterBaseName = "pageSize"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("pageSize", pageSize)); - localVarQueryParameterBaseName = "pageCursor"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("pageCursor", pageCursor)); - localVarQueryParameterBaseName = "order"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("order", order)); - localVarQueryParameterBaseName = "accountId"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("multi", "accountId", accountId)); - localVarQueryParameterBaseName = "providerId"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("multi", "providerId", providerId)); - localVarQueryParameterBaseName = "statuses"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("multi", "statuses", statuses)); - localVarQueryParameterBaseName = "startTime"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("startTime", startTime)); - localVarQueryParameterBaseName = "endTime"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("endTime", endTime)); - localVarQueryParameterBaseName = "assetConversionType"; - localVarQueryParams.addAll( - ApiClient.parameterToPairs("assetConversionType", assetConversionType)); - - if (!localVarQueryParams.isEmpty() || localVarQueryStringJoiner.length() != 0) { - StringJoiner queryJoiner = new StringJoiner("&"); - localVarQueryParams.forEach(p -> queryJoiner.add(p.getName() + '=' + p.getValue())); - if (localVarQueryStringJoiner.length() != 0) { - queryJoiner.add(localVarQueryStringJoiner.toString()); - } - localVarRequestBuilder.uri( - URI.create(memberVarBaseUri + localVarPath + '?' + queryJoiner.toString())); - } else { - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - } - - localVarRequestBuilder.header("Accept", "application/json"); - - localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } - /** - * Get providers Retrieve a list of all available external providers supporting trading - * activities through the platform. Note: These endpoints are currently in beta and might be - * subject to changes. If you want to participate and learn more about the Fireblocks Trading, - * please contact your Fireblocks Customer Success Manager or send an email to - * CSM@fireblocks.com. Endpoint Permission: Owner, Admin, Non-Signing Admin, Signer, Approver, - * Editor, Viewer. - * - * @param pageSize Page size for pagination. (optional, default to 20) - * @param pageCursor Page cursor for pagination. (optional) - * @return CompletableFuture<ApiResponse<ProvidersListResponse>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> getTradingProviders( - Integer pageSize, String pageCursor) throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = - getTradingProvidersRequestBuilder(pageSize, pageCursor); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException( - "getTradingProviders", localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - ProvidersListResponse>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder getTradingProvidersRequestBuilder( - Integer pageSize, String pageCursor) throws ApiException { - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = "/trading/providers"; - - List localVarQueryParams = new ArrayList<>(); - StringJoiner localVarQueryStringJoiner = new StringJoiner("&"); - String localVarQueryParameterBaseName; - localVarQueryParameterBaseName = "pageSize"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("pageSize", pageSize)); - localVarQueryParameterBaseName = "pageCursor"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("pageCursor", pageCursor)); - - if (!localVarQueryParams.isEmpty() || localVarQueryStringJoiner.length() != 0) { - StringJoiner queryJoiner = new StringJoiner("&"); - localVarQueryParams.forEach(p -> queryJoiner.add(p.getName() + '=' + p.getValue())); - if (localVarQueryStringJoiner.length() != 0) { - queryJoiner.add(localVarQueryStringJoiner.toString()); - } - localVarRequestBuilder.uri( - URI.create(memberVarBaseUri + localVarPath + '?' + queryJoiner.toString())); - } else { - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - } - - localVarRequestBuilder.header("Accept", "application/json"); - - localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } -} diff --git a/src/main/java/com/fireblocks/sdk/api/TransactionsApi.java b/src/main/java/com/fireblocks/sdk/api/TransactionsApi.java index 27eb33d4..cb3afcdb 100644 --- a/src/main/java/com/fireblocks/sdk/api/TransactionsApi.java +++ b/src/main/java/com/fireblocks/sdk/api/TransactionsApi.java @@ -27,14 +27,12 @@ import com.fireblocks.sdk.model.EstimatedNetworkFeeResponse; import com.fireblocks.sdk.model.EstimatedTransactionFeeResponse; import com.fireblocks.sdk.model.FreezeTransactionResponse; -import com.fireblocks.sdk.model.RescanTransaction; import com.fireblocks.sdk.model.SetConfirmationsThresholdRequest; import com.fireblocks.sdk.model.SetConfirmationsThresholdResponse; import com.fireblocks.sdk.model.TransactionRequest; import com.fireblocks.sdk.model.TransactionResponse; import com.fireblocks.sdk.model.UnfreezeTransactionResponse; import com.fireblocks.sdk.model.ValidateAddressResponse; -import com.fireblocks.sdk.model.ValidatedTransactionsForRescan; import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -892,91 +890,6 @@ private HttpRequest.Builder getTransactionsRequestBuilder( } return localVarRequestBuilder; } - /** - * rescan array of transactions rescan transaction by running an async job. </br> - * **Note**: - These endpoints are currently in beta and might be subject to changes. - We limit - * the amount of the transaction to 16 per request. - * - * @param rescanTransaction (required) - * @param idempotencyKey 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. (optional) - * @return - * CompletableFuture<ApiResponse<List<ValidatedTransactionsForRescan>>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture>> - rescanTransactionsBeta(List rescanTransaction, String idempotencyKey) - throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = - rescanTransactionsBetaRequestBuilder(rescanTransaction, idempotencyKey); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException( - "rescanTransactionsBeta", localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse>( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - List< - ValidatedTransactionsForRescan>>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder rescanTransactionsBetaRequestBuilder( - List rescanTransaction, String idempotencyKey) throws ApiException { - ValidationUtils.assertParamExists( - "rescanTransactionsBeta", "rescanTransaction", rescanTransaction); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = "/transactions/rescan"; - - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - - if (idempotencyKey != null) { - localVarRequestBuilder.header("Idempotency-Key", idempotencyKey.toString()); - } - localVarRequestBuilder.header("Content-Type", "application/json"); - localVarRequestBuilder.header("Accept", "application/json"); - - try { - byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(rescanTransaction); - localVarRequestBuilder.method( - "POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); - } catch (IOException e) { - throw new ApiException(e); - } - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } /** * Set confirmation threshold by transaction hash Overrides the required number of confirmations * for transaction completion by transaction hash. diff --git a/src/main/java/com/fireblocks/sdk/api/TravelRuleApi.java b/src/main/java/com/fireblocks/sdk/api/TravelRuleBetaApi.java similarity index 73% rename from src/main/java/com/fireblocks/sdk/api/TravelRuleApi.java rename to src/main/java/com/fireblocks/sdk/api/TravelRuleBetaApi.java index 114a70fe..057e8165 100644 --- a/src/main/java/com/fireblocks/sdk/api/TravelRuleApi.java +++ b/src/main/java/com/fireblocks/sdk/api/TravelRuleBetaApi.java @@ -24,8 +24,8 @@ import com.fireblocks.sdk.model.TravelRuleUpdateVASPDetails; import com.fireblocks.sdk.model.TravelRuleVASP; import com.fireblocks.sdk.model.TravelRuleValidateFullTransactionRequest; +import com.fireblocks.sdk.model.TravelRuleValidateTransactionRequest; import com.fireblocks.sdk.model.TravelRuleValidateTransactionResponse; -import com.fireblocks.sdk.model.TravelRuleVaspForVault; import java.io.IOException; import java.io.InputStream; import java.math.BigDecimal; @@ -43,7 +43,7 @@ @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") -public class TravelRuleApi { +public class TravelRuleBetaApi { private final HttpClient memberVarHttpClient; private final ObjectMapper memberVarObjectMapper; private final String memberVarBaseUri; @@ -52,11 +52,11 @@ public class TravelRuleApi { private final Consumer> memberVarResponseInterceptor; private final Consumer> memberVarAsyncResponseInterceptor; - public TravelRuleApi() { + public TravelRuleBetaApi() { this(new ApiClient()); } - public TravelRuleApi(ApiClient apiClient) { + public TravelRuleBetaApi(ApiClient apiClient) { memberVarHttpClient = apiClient.getHttpClient(); memberVarObjectMapper = apiClient.getObjectMapper(); memberVarBaseUri = apiClient.getBaseUri(); @@ -82,15 +82,19 @@ private String formatExceptionMessage(String operationId, int statusCode, String /** * Get VASP details Get VASP Details. Returns information about a VASP that has the specified - * DID. + * DID. **Note:** The reference content in this section documents the Travel Rule beta endpoint. + * The beta endpoint includes APIs that are currently in preview and aren't yet generally + * available. To enroll in the beta and enable this endpoint, contact your Fireblocks Customer + * Success Manager or send an email to [CSM@fireblocks.com](mailto:CSM@fireblocks.com). * * @param did (required) - * @param fields A CSV of fields to return. Choose from the following options: (optional + * @param fields CSV of fields to return (all, \"blank\" or see list of all field + * names below) (optional) * @return CompletableFuture<ApiResponse<TravelRuleVASP>> * @throws ApiException if fails to make API call */ - public CompletableFuture> getVASPByDID( - String did, List fields) throws ApiException { + public CompletableFuture> getVASPByDID(String did, String fields) + throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = getVASPByDIDRequestBuilder(did, fields); return memberVarHttpClient @@ -125,7 +129,7 @@ public CompletableFuture> getVASPByDID( } } - private HttpRequest.Builder getVASPByDIDRequestBuilder(String did, List fields) + private HttpRequest.Builder getVASPByDIDRequestBuilder(String did, String fields) throws ApiException { ValidationUtils.assertParamExistsAndNotEmpty("getVASPByDID", "did", did); @@ -139,7 +143,7 @@ private HttpRequest.Builder getVASPByDIDRequestBuilder(String did, List StringJoiner localVarQueryStringJoiner = new StringJoiner("&"); String localVarQueryParameterBaseName; localVarQueryParameterBaseName = "fields"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("multi", "fields", fields)); + localVarQueryParams.addAll(ApiClient.parameterToPairs("fields", fields)); if (!localVarQueryParams.isEmpty() || localVarQueryStringJoiner.length() != 0) { StringJoiner queryJoiner = new StringJoiner("&"); @@ -165,34 +169,26 @@ private HttpRequest.Builder getVASPByDIDRequestBuilder(String did, List return localVarRequestBuilder; } /** - * Get All VASPs Get All VASPs. Returns a list of VASPs. VASPs can be searched and sorted. + * Get All VASPs Get All VASPs. Returns a list of VASPs. VASPs can be searched and sorted and + * results are paginated. **Note:** The reference content in this section documents the Travel + * Rule beta endpoint. The beta endpoint includes APIs that are currently in preview and + * aren't yet generally available. To enroll in the beta and enable this endpoint, contact + * your Fireblocks Customer Success Manager or send an email to + * [CSM@fireblocks.com](mailto:CSM@fireblocks.com). * * @param order Field to order by (optional) - * @param pageSize Records per page (optional, default to 500) + * @param perPage Records per page (optional) + * @param page Page number (optional) * @param fields CSV of fields to return (all, \"blank\" or see list of all field - * names below) (optional - * @param search Search query (optional) - * @param reviewValue Filter by the VASP's review status. Possible values include: - * \"TRUSTED\", \"BLOCKED\", \"MANUAL\", or - * \"NULL\". When provided, only VASPs that match the specified reviewValue will - * be returned (i.e., VASPs that have already been reviewed to this status). (optional) - * @param pageCursor Cursor for pagination. When provided, the response will include the next - * page of results. (optional) + * names below) (optional) * @return CompletableFuture<ApiResponse<TravelRuleGetAllVASPsResponse>> * @throws ApiException if fails to make API call */ public CompletableFuture> getVASPs( - String order, - BigDecimal pageSize, - List fields, - String search, - String reviewValue, - String pageCursor) - throws ApiException { + String order, BigDecimal perPage, BigDecimal page, String fields) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = - getVASPsRequestBuilder( - order, pageSize, fields, search, reviewValue, pageCursor); + getVASPsRequestBuilder(order, perPage, page, fields); return memberVarHttpClient .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) .thenComposeAsync( @@ -226,13 +222,7 @@ public CompletableFuture> getVASPs( } private HttpRequest.Builder getVASPsRequestBuilder( - String order, - BigDecimal pageSize, - List fields, - String search, - String reviewValue, - String pageCursor) - throws ApiException { + String order, BigDecimal perPage, BigDecimal page, String fields) throws ApiException { HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); @@ -243,16 +233,12 @@ private HttpRequest.Builder getVASPsRequestBuilder( String localVarQueryParameterBaseName; localVarQueryParameterBaseName = "order"; localVarQueryParams.addAll(ApiClient.parameterToPairs("order", order)); - localVarQueryParameterBaseName = "pageSize"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("pageSize", pageSize)); + localVarQueryParameterBaseName = "per_page"; + localVarQueryParams.addAll(ApiClient.parameterToPairs("per_page", perPage)); + localVarQueryParameterBaseName = "page"; + localVarQueryParams.addAll(ApiClient.parameterToPairs("page", page)); localVarQueryParameterBaseName = "fields"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("multi", "fields", fields)); - localVarQueryParameterBaseName = "search"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("search", search)); - localVarQueryParameterBaseName = "reviewValue"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("reviewValue", reviewValue)); - localVarQueryParameterBaseName = "pageCursor"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("pageCursor", pageCursor)); + localVarQueryParams.addAll(ApiClient.parameterToPairs("fields", fields)); if (!localVarQueryParams.isEmpty() || localVarQueryStringJoiner.length() != 0) { StringJoiner queryJoiner = new StringJoiner("&"); @@ -278,96 +264,26 @@ private HttpRequest.Builder getVASPsRequestBuilder( return localVarRequestBuilder; } /** - * Get assigned VASP to vault Get assigned VASP Did for a specific vault. Returns empty string - * vaspDid value in response if none assigned. - * - * @param vaultAccountId The ID of the vault account (required) - * @return CompletableFuture<ApiResponse<TravelRuleVaspForVault>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> getVaspForVault( - String vaultAccountId) throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = - getVaspForVaultRequestBuilder(vaultAccountId); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException("getVaspForVault", localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - TravelRuleVaspForVault>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder getVaspForVaultRequestBuilder(String vaultAccountId) - throws ApiException { - ValidationUtils.assertParamExistsAndNotEmpty( - "getVaspForVault", "vaultAccountId", vaultAccountId); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = - "/screening/travel_rule/vault/{vaultAccountId}/vasp" - .replace( - "{vaultAccountId}", ApiClient.urlEncode(vaultAccountId.toString())); - - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - - localVarRequestBuilder.header("Accept", "application/json"); - - localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } - /** - * Assign VASP to vault Sets the VASP Did for a specific vault. Pass empty string to remove - * existing one. + * Add jsonDidKey to VASP details Update VASP Details. Updates a VASP with the provided + * parameters. Use this endpoint to add your public jsonDIDkey generated by Notabene. **Note:** + * The reference content in this section documents the Travel Rule beta endpoint. The beta + * endpoint includes APIs that are currently in preview and aren't yet generally available. + * To enroll in the beta and enable this endpoint, contact your Fireblocks Customer Success + * Manager or send an email to [CSM@fireblocks.com](mailto:CSM@fireblocks.com). * - * @param travelRuleVaspForVault (required) - * @param vaultAccountId The ID of the vault account (required) + * @param travelRuleUpdateVASPDetails (required) * @param idempotencyKey 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. (optional) - * @return CompletableFuture<ApiResponse<TravelRuleVaspForVault>> + * @return CompletableFuture<ApiResponse<TravelRuleUpdateVASPDetails>> * @throws ApiException if fails to make API call */ - public CompletableFuture> setVaspForVault( - TravelRuleVaspForVault travelRuleVaspForVault, - String vaultAccountId, - String idempotencyKey) + public CompletableFuture> updateVasp( + TravelRuleUpdateVASPDetails travelRuleUpdateVASPDetails, String idempotencyKey) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = - setVaspForVaultRequestBuilder( - travelRuleVaspForVault, vaultAccountId, idempotencyKey); + updateVaspRequestBuilder(travelRuleUpdateVASPDetails, idempotencyKey); return memberVarHttpClient .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) .thenComposeAsync( @@ -377,12 +293,12 @@ public CompletableFuture> setVaspForVault( } if (localVarResponse.statusCode() / 100 != 2) { return CompletableFuture.failedFuture( - getApiException("setVaspForVault", localVarResponse)); + getApiException("updateVasp", localVarResponse)); } try { String responseBody = localVarResponse.body(); return CompletableFuture.completedFuture( - new ApiResponse( + new ApiResponse( localVarResponse.statusCode(), localVarResponse.headers().map(), responseBody == null || responseBody.isBlank() @@ -390,7 +306,7 @@ public CompletableFuture> setVaspForVault( : memberVarObjectMapper.readValue( responseBody, new TypeReference< - TravelRuleVaspForVault>() {}))); + TravelRuleUpdateVASPDetails>() {}))); } catch (IOException e) { return CompletableFuture.failedFuture(new ApiException(e)); } @@ -400,22 +316,15 @@ public CompletableFuture> setVaspForVault( } } - private HttpRequest.Builder setVaspForVaultRequestBuilder( - TravelRuleVaspForVault travelRuleVaspForVault, - String vaultAccountId, - String idempotencyKey) + private HttpRequest.Builder updateVaspRequestBuilder( + TravelRuleUpdateVASPDetails travelRuleUpdateVASPDetails, String idempotencyKey) throws ApiException { ValidationUtils.assertParamExists( - "setVaspForVault", "travelRuleVaspForVault", travelRuleVaspForVault); - ValidationUtils.assertParamExistsAndNotEmpty( - "setVaspForVault", "vaultAccountId", vaultAccountId); + "updateVasp", "travelRuleUpdateVASPDetails", travelRuleUpdateVASPDetails); HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - String localVarPath = - "/screening/travel_rule/vault/{vaultAccountId}/vasp" - .replace( - "{vaultAccountId}", ApiClient.urlEncode(vaultAccountId.toString())); + String localVarPath = "/screening/travel_rule/vasp/update"; localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); @@ -427,9 +336,9 @@ private HttpRequest.Builder setVaspForVaultRequestBuilder( try { byte[] localVarPostBody = - memberVarObjectMapper.writeValueAsBytes(travelRuleVaspForVault); + memberVarObjectMapper.writeValueAsBytes(travelRuleUpdateVASPDetails); localVarRequestBuilder.method( - "POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); + "PUT", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); } catch (IOException e) { throw new ApiException(e); } @@ -442,22 +351,30 @@ private HttpRequest.Builder setVaspForVaultRequestBuilder( return localVarRequestBuilder; } /** - * Add jsonDidKey to VASP details Update VASP Details. Updates a VASP with the provided - * parameters. Use this endpoint to add your public jsonDIDkey generated by Notabene. + * Validate Full Travel Rule Transaction Validate Full Travel Rule transactions. Checks for all + * required information on the originator and beneficiary VASPs. **Note:** The reference content + * in this section documents the Travel Rule beta endpoint. The beta endpoint includes APIs that + * are currently in preview and aren't yet generally available. To enroll in the beta and + * enable this endpoint, contact your Fireblocks Customer Success Manager or send an email to + * [CSM@fireblocks.com](mailto:CSM@fireblocks.com). * - * @param travelRuleUpdateVASPDetails (required) + * @param travelRuleValidateFullTransactionRequest (required) * @param idempotencyKey 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. (optional) - * @return CompletableFuture<ApiResponse<TravelRuleUpdateVASPDetails>> + * @return CompletableFuture<ApiResponse<TravelRuleValidateTransactionResponse>> * @throws ApiException if fails to make API call */ - public CompletableFuture> updateVasp( - TravelRuleUpdateVASPDetails travelRuleUpdateVASPDetails, String idempotencyKey) - throws ApiException { + public CompletableFuture> + validateFullTravelRuleTransaction( + TravelRuleValidateFullTransactionRequest + travelRuleValidateFullTransactionRequest, + String idempotencyKey) + throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = - updateVaspRequestBuilder(travelRuleUpdateVASPDetails, idempotencyKey); + validateFullTravelRuleTransactionRequestBuilder( + travelRuleValidateFullTransactionRequest, idempotencyKey); return memberVarHttpClient .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) .thenComposeAsync( @@ -467,12 +384,14 @@ public CompletableFuture> updateVasp( } if (localVarResponse.statusCode() / 100 != 2) { return CompletableFuture.failedFuture( - getApiException("updateVasp", localVarResponse)); + getApiException( + "validateFullTravelRuleTransaction", + localVarResponse)); } try { String responseBody = localVarResponse.body(); return CompletableFuture.completedFuture( - new ApiResponse( + new ApiResponse( localVarResponse.statusCode(), localVarResponse.headers().map(), responseBody == null || responseBody.isBlank() @@ -480,7 +399,7 @@ public CompletableFuture> updateVasp( : memberVarObjectMapper.readValue( responseBody, new TypeReference< - TravelRuleUpdateVASPDetails>() {}))); + TravelRuleValidateTransactionResponse>() {}))); } catch (IOException e) { return CompletableFuture.failedFuture(new ApiException(e)); } @@ -490,15 +409,18 @@ public CompletableFuture> updateVasp( } } - private HttpRequest.Builder updateVaspRequestBuilder( - TravelRuleUpdateVASPDetails travelRuleUpdateVASPDetails, String idempotencyKey) + private HttpRequest.Builder validateFullTravelRuleTransactionRequestBuilder( + TravelRuleValidateFullTransactionRequest travelRuleValidateFullTransactionRequest, + String idempotencyKey) throws ApiException { ValidationUtils.assertParamExists( - "updateVasp", "travelRuleUpdateVASPDetails", travelRuleUpdateVASPDetails); + "validateFullTravelRuleTransaction", + "travelRuleValidateFullTransactionRequest", + travelRuleValidateFullTransactionRequest); HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - String localVarPath = "/screening/travel_rule/vasp/update"; + String localVarPath = "/screening/travel_rule/transaction/validate/full"; localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); @@ -510,9 +432,10 @@ private HttpRequest.Builder updateVaspRequestBuilder( try { byte[] localVarPostBody = - memberVarObjectMapper.writeValueAsBytes(travelRuleUpdateVASPDetails); + memberVarObjectMapper.writeValueAsBytes( + travelRuleValidateFullTransactionRequest); localVarRequestBuilder.method( - "PUT", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); + "POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); } catch (IOException e) { throw new ApiException(e); } @@ -525,17 +448,14 @@ private HttpRequest.Builder updateVaspRequestBuilder( return localVarRequestBuilder; } /** - * Validate Full Travel Rule Transaction Validate Full Travel Rule transactions. Checks for all - * required information on the originator and beneficiary VASPs. + * Validate Travel Rule Transaction Validate Travel Rule transactions. Checks what beneficiary + * VASP details are required by your jurisdiction and the beneficiary's jurisdiction. + * **Note:** The reference content in this section documents the Travel Rule beta endpoint. The + * beta endpoint includes APIs that are currently in preview and aren't yet generally + * available. To enroll in the beta and enable this endpoint, contact your Fireblocks Customer + * Success Manager or send an email to [CSM@fireblocks.com](mailto:CSM@fireblocks.com). * - * @param travelRuleValidateFullTransactionRequest (required) - * @param notation Specifies the notation of the transaction. Possible values are: - - * `notabene`: Uses Notabene notation (default behavior). - - * `fireblocks`: Uses Fireblocks notation, with automatic translation of asset - * tickers and amounts. - `<none>`: Defaults to `notabene` for - * backward compatibility. **Note:** The default value for the `notation` - * parameter will change from `notabene` to `fireblocks` Update your - * integrations accordingly. (optional + * @param travelRuleValidateTransactionRequest (required) * @param idempotencyKey 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. (optional) @@ -543,16 +463,14 @@ private HttpRequest.Builder updateVaspRequestBuilder( * @throws ApiException if fails to make API call */ public CompletableFuture> - validateFullTravelRuleTransaction( - TravelRuleValidateFullTransactionRequest - travelRuleValidateFullTransactionRequest, - List notation, + validateTravelRuleTransaction( + TravelRuleValidateTransactionRequest travelRuleValidateTransactionRequest, String idempotencyKey) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = - validateFullTravelRuleTransactionRequestBuilder( - travelRuleValidateFullTransactionRequest, notation, idempotencyKey); + validateTravelRuleTransactionRequestBuilder( + travelRuleValidateTransactionRequest, idempotencyKey); return memberVarHttpClient .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) .thenComposeAsync( @@ -563,7 +481,7 @@ private HttpRequest.Builder updateVaspRequestBuilder( if (localVarResponse.statusCode() / 100 != 2) { return CompletableFuture.failedFuture( getApiException( - "validateFullTravelRuleTransaction", + "validateTravelRuleTransaction", localVarResponse)); } try { @@ -587,37 +505,20 @@ private HttpRequest.Builder updateVaspRequestBuilder( } } - private HttpRequest.Builder validateFullTravelRuleTransactionRequestBuilder( - TravelRuleValidateFullTransactionRequest travelRuleValidateFullTransactionRequest, - List notation, + private HttpRequest.Builder validateTravelRuleTransactionRequestBuilder( + TravelRuleValidateTransactionRequest travelRuleValidateTransactionRequest, String idempotencyKey) throws ApiException { ValidationUtils.assertParamExists( - "validateFullTravelRuleTransaction", - "travelRuleValidateFullTransactionRequest", - travelRuleValidateFullTransactionRequest); + "validateTravelRuleTransaction", + "travelRuleValidateTransactionRequest", + travelRuleValidateTransactionRequest); HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - String localVarPath = "/screening/travel_rule/transaction/validate/full"; + String localVarPath = "/screening/travel_rule/transaction/validate"; - List localVarQueryParams = new ArrayList<>(); - StringJoiner localVarQueryStringJoiner = new StringJoiner("&"); - String localVarQueryParameterBaseName; - localVarQueryParameterBaseName = "notation"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("multi", "notation", notation)); - - if (!localVarQueryParams.isEmpty() || localVarQueryStringJoiner.length() != 0) { - StringJoiner queryJoiner = new StringJoiner("&"); - localVarQueryParams.forEach(p -> queryJoiner.add(p.getName() + '=' + p.getValue())); - if (localVarQueryStringJoiner.length() != 0) { - queryJoiner.add(localVarQueryStringJoiner.toString()); - } - localVarRequestBuilder.uri( - URI.create(memberVarBaseUri + localVarPath + '?' + queryJoiner.toString())); - } else { - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - } + localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); if (idempotencyKey != null) { localVarRequestBuilder.header("Idempotency-Key", idempotencyKey.toString()); @@ -627,8 +528,7 @@ private HttpRequest.Builder validateFullTravelRuleTransactionRequestBuilder( try { byte[] localVarPostBody = - memberVarObjectMapper.writeValueAsBytes( - travelRuleValidateFullTransactionRequest); + memberVarObjectMapper.writeValueAsBytes(travelRuleValidateTransactionRequest); localVarRequestBuilder.method( "POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); } catch (IOException e) { diff --git a/src/main/java/com/fireblocks/sdk/api/VaultsApi.java b/src/main/java/com/fireblocks/sdk/api/VaultsApi.java index 880c80fb..a172468f 100644 --- a/src/main/java/com/fireblocks/sdk/api/VaultsApi.java +++ b/src/main/java/com/fireblocks/sdk/api/VaultsApi.java @@ -24,9 +24,6 @@ import com.fireblocks.sdk.model.CreateAddressResponse; import com.fireblocks.sdk.model.CreateAssetsRequest; import com.fireblocks.sdk.model.CreateMultipleAccountsRequest; -import com.fireblocks.sdk.model.CreateMultipleDepositAddressesJobStatus; -import com.fireblocks.sdk.model.CreateMultipleDepositAddressesRequest; -import com.fireblocks.sdk.model.CreateMultipleVaultAccountsJobStatus; import com.fireblocks.sdk.model.CreateVaultAccountRequest; import com.fireblocks.sdk.model.CreateVaultAssetResponse; import com.fireblocks.sdk.model.GetMaxSpendableAmountResponse; @@ -43,7 +40,6 @@ import com.fireblocks.sdk.model.UpdateVaultAccountRequest; import com.fireblocks.sdk.model.VaultAccount; import com.fireblocks.sdk.model.VaultAccountsPagedResponse; -import com.fireblocks.sdk.model.VaultAccountsTagAttachmentsRequest; import com.fireblocks.sdk.model.VaultActionStatus; import com.fireblocks.sdk.model.VaultAsset; import java.io.IOException; @@ -57,7 +53,6 @@ import java.util.ArrayList; import java.util.List; import java.util.StringJoiner; -import java.util.UUID; import java.util.concurrent.CompletableFuture; import java.util.function.Consumer; @@ -183,84 +178,6 @@ private HttpRequest.Builder activateAssetForVaultAccountRequestBuilder( } return localVarRequestBuilder; } - /** - * Attach tags to a vault accounts Attach one or more tags to the requested vault accounts. - * - * @param vaultAccountsTagAttachmentsRequest (required) - * @param idempotencyKey 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. (optional) - * @return CompletableFuture<ApiResponse<Void>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> attachTagsToVaultAccounts( - VaultAccountsTagAttachmentsRequest vaultAccountsTagAttachmentsRequest, - String idempotencyKey) - throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = - attachTagsToVaultAccountsRequestBuilder( - vaultAccountsTagAttachmentsRequest, idempotencyKey); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException( - "attachTagsToVaultAccounts", localVarResponse)); - } - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - null)); - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder attachTagsToVaultAccountsRequestBuilder( - VaultAccountsTagAttachmentsRequest vaultAccountsTagAttachmentsRequest, - String idempotencyKey) - throws ApiException { - ValidationUtils.assertParamExists( - "attachTagsToVaultAccounts", - "vaultAccountsTagAttachmentsRequest", - vaultAccountsTagAttachmentsRequest); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = "/vault/accounts/attached_tags/attach"; - - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - - if (idempotencyKey != null) { - localVarRequestBuilder.header("Idempotency-Key", idempotencyKey.toString()); - } - localVarRequestBuilder.header("Content-Type", "application/json"); - localVarRequestBuilder.header("Accept", "application/json"); - - try { - byte[] localVarPostBody = - memberVarObjectMapper.writeValueAsBytes(vaultAccountsTagAttachmentsRequest); - localVarRequestBuilder.method( - "POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); - } catch (IOException e) { - throw new ApiException(e); - } - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } /** * Convert a segwit address to legacy format Converts an existing segwit address to the legacy * format. @@ -350,7 +267,6 @@ private HttpRequest.Builder createLegacyAddressRequestBuilder( * Bulk creation of new vault accounts Create multiple vault accounts by running an async job. * </br> **Note**: - These endpoints are currently in beta and might be subject to * changes. - We limit accounts to 10k per operation and 200k per customer during beta testing. - * Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor. * * @param createMultipleAccountsRequest (required) * @param idempotencyKey A unique identifier for the request. If the request is sent multiple @@ -435,97 +351,6 @@ private HttpRequest.Builder createMultipleAccountsRequestBuilder( } return localVarRequestBuilder; } - /** - * Bulk creation of new deposit addresses Create multiple deposit address by running an async - * job. </br> **Note**: - We limit accounts to 10k per operation. Endpoint Permission: - * Admin, Non-Signing Admin. - * - * @param createMultipleDepositAddressesRequest (required) - * @param idempotencyKey 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. (optional) - * @return CompletableFuture<ApiResponse<JobCreated>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> createMultipleDepositAddresses( - CreateMultipleDepositAddressesRequest createMultipleDepositAddressesRequest, - String idempotencyKey) - throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = - createMultipleDepositAddressesRequestBuilder( - createMultipleDepositAddressesRequest, idempotencyKey); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException( - "createMultipleDepositAddresses", - localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - JobCreated>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder createMultipleDepositAddressesRequestBuilder( - CreateMultipleDepositAddressesRequest createMultipleDepositAddressesRequest, - String idempotencyKey) - throws ApiException { - ValidationUtils.assertParamExists( - "createMultipleDepositAddresses", - "createMultipleDepositAddressesRequest", - createMultipleDepositAddressesRequest); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = "/vault/accounts/addresses/bulk"; - - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - - if (idempotencyKey != null) { - localVarRequestBuilder.header("Idempotency-Key", idempotencyKey.toString()); - } - localVarRequestBuilder.header("Content-Type", "application/json"); - localVarRequestBuilder.header("Accept", "application/json"); - - try { - byte[] localVarPostBody = - memberVarObjectMapper.writeValueAsBytes(createMultipleDepositAddressesRequest); - localVarRequestBuilder.method( - "POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); - } catch (IOException e) { - throw new ApiException(e); - } - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } /** * Create a new vault account Creates a new vault account with the requested name. * @@ -803,85 +628,6 @@ private HttpRequest.Builder createVaultAccountAssetAddressRequestBuilder( } return localVarRequestBuilder; } - /** - * Detach tags from a vault accounts Detach one or more tags from the requested vault account. - * - * @param vaultAccountsTagAttachmentsRequest (required) - * @param idempotencyKey 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. (optional) - * @return CompletableFuture<ApiResponse<Void>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> detachTagsFromVaultAccounts( - VaultAccountsTagAttachmentsRequest vaultAccountsTagAttachmentsRequest, - String idempotencyKey) - throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = - detachTagsFromVaultAccountsRequestBuilder( - vaultAccountsTagAttachmentsRequest, idempotencyKey); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException( - "detachTagsFromVaultAccounts", - localVarResponse)); - } - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - null)); - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder detachTagsFromVaultAccountsRequestBuilder( - VaultAccountsTagAttachmentsRequest vaultAccountsTagAttachmentsRequest, - String idempotencyKey) - throws ApiException { - ValidationUtils.assertParamExists( - "detachTagsFromVaultAccounts", - "vaultAccountsTagAttachmentsRequest", - vaultAccountsTagAttachmentsRequest); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = "/vault/accounts/attached_tags/detach"; - - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - - if (idempotencyKey != null) { - localVarRequestBuilder.header("Idempotency-Key", idempotencyKey.toString()); - } - localVarRequestBuilder.header("Content-Type", "application/json"); - localVarRequestBuilder.header("Accept", "application/json"); - - try { - byte[] localVarPostBody = - memberVarObjectMapper.writeValueAsBytes(vaultAccountsTagAttachmentsRequest); - localVarRequestBuilder.method( - "POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); - } catch (IOException e) { - throw new ApiException(e); - } - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } /** * List asset wallets (Paginated) Gets all asset wallets at all of the vault accounts in your * workspace. An asset wallet is an asset at a vault account. This method allows fast traversal @@ -998,151 +744,6 @@ private HttpRequest.Builder getAssetWalletsRequestBuilder( } return localVarRequestBuilder; } - /** - * Get job status of bulk creation of new deposit addresses Returns the status of bulk creation - * of new deposit addresses job and the result or error Endpoint Permission: Admin, Non-Signing - * Admin, Signer, Approver, Editor, Viewer. - * - * @param jobId The ID of the job to create addresses (required) - * @return CompletableFuture<ApiResponse<CreateMultipleDepositAddressesJobStatus>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> - getCreateMultipleDepositAddressesJobStatus(String jobId) throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = - getCreateMultipleDepositAddressesJobStatusRequestBuilder(jobId); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException( - "getCreateMultipleDepositAddressesJobStatus", - localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse< - CreateMultipleDepositAddressesJobStatus>( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - CreateMultipleDepositAddressesJobStatus>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder getCreateMultipleDepositAddressesJobStatusRequestBuilder( - String jobId) throws ApiException { - ValidationUtils.assertParamExistsAndNotEmpty( - "getCreateMultipleDepositAddressesJobStatus", "jobId", jobId); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = - "/vault/accounts/addresses/bulk/{jobId}" - .replace("{jobId}", ApiClient.urlEncode(jobId.toString())); - - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - - localVarRequestBuilder.header("Accept", "application/json"); - - localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } - /** - * Get job status of bulk creation of new vault accounts Returns the status of bulk creation of - * new vault accounts job and the result or error Endpoint Permission: Admin, Non-Signing Admin, - * Signer, Approver, Editor, Viewer. - * - * @param jobId The ID of the job to create addresses (required) - * @return CompletableFuture<ApiResponse<CreateMultipleVaultAccountsJobStatus>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> - getCreateMultipleVaultAccountsJobStatus(String jobId) throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = - getCreateMultipleVaultAccountsJobStatusRequestBuilder(jobId); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException( - "getCreateMultipleVaultAccountsJobStatus", - localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - CreateMultipleVaultAccountsJobStatus>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder getCreateMultipleVaultAccountsJobStatusRequestBuilder(String jobId) - throws ApiException { - ValidationUtils.assertParamExistsAndNotEmpty( - "getCreateMultipleVaultAccountsJobStatus", "jobId", jobId); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = - "/vault/accounts/bulk/{jobId}" - .replace("{jobId}", ApiClient.urlEncode(jobId.toString())); - - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - - localVarRequestBuilder.header("Accept", "application/json"); - - localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } /** * Get the maximum spendable amount in a single transaction. Get the maximum amount of a * particular asset that can be spent in a single transaction from a specified vault account @@ -1251,7 +852,6 @@ private HttpRequest.Builder getMaxSpendableAmountRequestBuilder( * @param before (optional) * @param after (optional) * @param limit (optional, default to 200) - * @param tagIds List of tag IDs to filter vault accounts. (optional * @return CompletableFuture<ApiResponse<VaultAccountsPagedResponse>> * @throws ApiException if fails to make API call */ @@ -1263,8 +863,7 @@ public CompletableFuture> getPagedVaultA String orderBy, String before, String after, - BigDecimal limit, - List tagIds) + BigDecimal limit) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = @@ -1276,8 +875,7 @@ public CompletableFuture> getPagedVaultA orderBy, before, after, - limit, - tagIds); + limit); return memberVarHttpClient .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) .thenComposeAsync( @@ -1319,8 +917,7 @@ private HttpRequest.Builder getPagedVaultAccountsRequestBuilder( String orderBy, String before, String after, - BigDecimal limit, - List tagIds) + BigDecimal limit) throws ApiException { HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); @@ -1347,8 +944,6 @@ private HttpRequest.Builder getPagedVaultAccountsRequestBuilder( localVarQueryParams.addAll(ApiClient.parameterToPairs("after", after)); localVarQueryParameterBaseName = "limit"; localVarQueryParams.addAll(ApiClient.parameterToPairs("limit", limit)); - localVarQueryParameterBaseName = "tagIds"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("multi", "tagIds", tagIds)); if (!localVarQueryParams.isEmpty() || localVarQueryStringJoiner.length() != 0) { StringJoiner queryJoiner = new StringJoiner("&"); diff --git a/src/main/java/com/fireblocks/sdk/api/Web3ConnectionsApi.java b/src/main/java/com/fireblocks/sdk/api/Web3ConnectionsApi.java index 483c8f66..7317594a 100644 --- a/src/main/java/com/fireblocks/sdk/api/Web3ConnectionsApi.java +++ b/src/main/java/com/fireblocks/sdk/api/Web3ConnectionsApi.java @@ -36,7 +36,6 @@ import java.util.ArrayList; import java.util.List; import java.util.StringJoiner; -import java.util.UUID; import java.util.concurrent.CompletableFuture; import java.util.function.Consumer; @@ -89,19 +88,15 @@ private String formatExceptionMessage(String operationId, int statusCode, String * @param idempotencyKey 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. (optional) - * @param xEndUserWalletId Unique ID of the End-User wallet to the API request. Required for - * end-user wallet operations. (optional) * @return CompletableFuture<ApiResponse<CreateConnectionResponse>> * @throws ApiException if fails to make API call */ public CompletableFuture> create( - CreateConnectionRequest createConnectionRequest, - String idempotencyKey, - UUID xEndUserWalletId) + CreateConnectionRequest createConnectionRequest, String idempotencyKey) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = - createRequestBuilder(createConnectionRequest, idempotencyKey, xEndUserWalletId); + createRequestBuilder(createConnectionRequest, idempotencyKey); return memberVarHttpClient .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) .thenComposeAsync( @@ -135,9 +130,7 @@ public CompletableFuture> create( } private HttpRequest.Builder createRequestBuilder( - CreateConnectionRequest createConnectionRequest, - String idempotencyKey, - UUID xEndUserWalletId) + CreateConnectionRequest createConnectionRequest, String idempotencyKey) throws ApiException { ValidationUtils.assertParamExists( "create", "createConnectionRequest", createConnectionRequest); @@ -151,9 +144,6 @@ private HttpRequest.Builder createRequestBuilder( if (idempotencyKey != null) { localVarRequestBuilder.header("Idempotency-Key", idempotencyKey.toString()); } - if (xEndUserWalletId != null) { - localVarRequestBuilder.header("X-End-User-Wallet-Id", xEndUserWalletId.toString()); - } localVarRequestBuilder.header("Content-Type", "application/json"); localVarRequestBuilder.header("Accept", "application/json"); @@ -176,8 +166,6 @@ private HttpRequest.Builder createRequestBuilder( /** * List all open Web3 connections. Get open Web3 connections. * - * @param xEndUserWalletId Unique ID of the End-User wallet to the API request. Required for - * end-user wallet operations. (optional) * @param order List order; ascending or descending. (optional, default to ASC) * @param filter Parsed filter object (optional) * @param sort Property to sort Web3 connections by. (optional, default to createdAt) @@ -187,16 +175,11 @@ private HttpRequest.Builder createRequestBuilder( * @throws ApiException if fails to make API call */ public CompletableFuture> get( - UUID xEndUserWalletId, - String order, - GetFilterParameter filter, - String sort, - BigDecimal pageSize, - String next) + String order, GetFilterParameter filter, String sort, BigDecimal pageSize, String next) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = - getRequestBuilder(xEndUserWalletId, order, filter, sort, pageSize, next); + getRequestBuilder(order, filter, sort, pageSize, next); return memberVarHttpClient .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) .thenComposeAsync( @@ -230,12 +213,7 @@ public CompletableFuture> get( } private HttpRequest.Builder getRequestBuilder( - UUID xEndUserWalletId, - String order, - GetFilterParameter filter, - String sort, - BigDecimal pageSize, - String next) + String order, GetFilterParameter filter, String sort, BigDecimal pageSize, String next) throws ApiException { HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); @@ -276,9 +254,6 @@ private HttpRequest.Builder getRequestBuilder( localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); } - if (xEndUserWalletId != null) { - localVarRequestBuilder.header("X-End-User-Wallet-Id", xEndUserWalletId.toString()); - } localVarRequestBuilder.header("Accept", "application/json"); localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); @@ -294,15 +269,12 @@ private HttpRequest.Builder getRequestBuilder( * Remove an existing Web3 connection. Remove a Web3 connection * * @param id The ID of the existing Web3 connection to remove. (required) - * @param xEndUserWalletId Unique ID of the End-User wallet to the API request. Required for - * end-user wallet operations. (optional) * @return CompletableFuture<ApiResponse<Void>> * @throws ApiException if fails to make API call */ - public CompletableFuture> remove(String id, UUID xEndUserWalletId) - throws ApiException { + public CompletableFuture> remove(String id) throws ApiException { try { - HttpRequest.Builder localVarRequestBuilder = removeRequestBuilder(id, xEndUserWalletId); + HttpRequest.Builder localVarRequestBuilder = removeRequestBuilder(id); return memberVarHttpClient .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) .thenComposeAsync( @@ -325,8 +297,7 @@ public CompletableFuture> remove(String id, UUID xEndUserWalle } } - private HttpRequest.Builder removeRequestBuilder(String id, UUID xEndUserWalletId) - throws ApiException { + private HttpRequest.Builder removeRequestBuilder(String id) throws ApiException { ValidationUtils.assertParamExistsAndNotEmpty("remove", "id", id); HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); @@ -336,9 +307,6 @@ private HttpRequest.Builder removeRequestBuilder(String id, UUID xEndUserWalletI localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - if (xEndUserWalletId != null) { - localVarRequestBuilder.header("X-End-User-Wallet-Id", xEndUserWalletId.toString()); - } localVarRequestBuilder.header("Accept", "application/json"); localVarRequestBuilder.method("DELETE", HttpRequest.BodyPublishers.noBody()); @@ -361,21 +329,15 @@ private HttpRequest.Builder removeRequestBuilder(String id, UUID xEndUserWalletI * @param idempotencyKey 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. (optional) - * @param xEndUserWalletId Unique ID of the End-User wallet to the API request. Required for - * end-user wallet operations. (optional) * @return CompletableFuture<ApiResponse<Void>> * @throws ApiException if fails to make API call */ public CompletableFuture> submit( - RespondToConnectionRequest respondToConnectionRequest, - String id, - String idempotencyKey, - UUID xEndUserWalletId) + RespondToConnectionRequest respondToConnectionRequest, String id, String idempotencyKey) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = - submitRequestBuilder( - respondToConnectionRequest, id, idempotencyKey, xEndUserWalletId); + submitRequestBuilder(respondToConnectionRequest, id, idempotencyKey); return memberVarHttpClient .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) .thenComposeAsync( @@ -399,10 +361,7 @@ public CompletableFuture> submit( } private HttpRequest.Builder submitRequestBuilder( - RespondToConnectionRequest respondToConnectionRequest, - String id, - String idempotencyKey, - UUID xEndUserWalletId) + RespondToConnectionRequest respondToConnectionRequest, String id, String idempotencyKey) throws ApiException { ValidationUtils.assertParamExists( "submit", "respondToConnectionRequest", respondToConnectionRequest); @@ -418,9 +377,6 @@ private HttpRequest.Builder submitRequestBuilder( if (idempotencyKey != null) { localVarRequestBuilder.header("Idempotency-Key", idempotencyKey.toString()); } - if (xEndUserWalletId != null) { - localVarRequestBuilder.header("X-End-User-Wallet-Id", xEndUserWalletId.toString()); - } localVarRequestBuilder.header("Content-Type", "application/json"); localVarRequestBuilder.header("Accept", "application/json"); diff --git a/src/main/java/com/fireblocks/sdk/api/WebhooksV2Api.java b/src/main/java/com/fireblocks/sdk/api/WebhooksV2Api.java deleted file mode 100644 index 0c007e40..00000000 --- a/src/main/java/com/fireblocks/sdk/api/WebhooksV2Api.java +++ /dev/null @@ -1,1124 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.api; - - -import com.fasterxml.jackson.core.type.TypeReference; -import com.fasterxml.jackson.databind.ObjectMapper; -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.Pair; -import com.fireblocks.sdk.ValidationUtils; -import com.fireblocks.sdk.model.CreateWebhookRequest; -import com.fireblocks.sdk.model.NotificationAttemptsPaginatedResponse; -import com.fireblocks.sdk.model.NotificationPaginatedResponse; -import com.fireblocks.sdk.model.NotificationStatus; -import com.fireblocks.sdk.model.NotificationWithData; -import com.fireblocks.sdk.model.ResendFailedNotificationsJobStatusResponse; -import com.fireblocks.sdk.model.ResendFailedNotificationsRequest; -import com.fireblocks.sdk.model.ResendFailedNotificationsResponse; -import com.fireblocks.sdk.model.ResendNotificationsByResourceIdRequest; -import com.fireblocks.sdk.model.UpdateWebhookRequest; -import com.fireblocks.sdk.model.Webhook; -import com.fireblocks.sdk.model.WebhookEvent; -import com.fireblocks.sdk.model.WebhookPaginatedResponse; -import java.io.IOException; -import java.io.InputStream; -import java.math.BigDecimal; -import java.net.URI; -import java.net.http.HttpClient; -import java.net.http.HttpRequest; -import java.net.http.HttpResponse; -import java.time.Duration; -import java.util.ArrayList; -import java.util.List; -import java.util.StringJoiner; -import java.util.UUID; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; - -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class WebhooksV2Api { - private final HttpClient memberVarHttpClient; - private final ObjectMapper memberVarObjectMapper; - private final String memberVarBaseUri; - private final Consumer memberVarInterceptor; - private final Duration memberVarReadTimeout; - private final Consumer> memberVarResponseInterceptor; - private final Consumer> memberVarAsyncResponseInterceptor; - - public WebhooksV2Api() { - this(new ApiClient()); - } - - public WebhooksV2Api(ApiClient apiClient) { - memberVarHttpClient = apiClient.getHttpClient(); - memberVarObjectMapper = apiClient.getObjectMapper(); - memberVarBaseUri = apiClient.getBaseUri(); - memberVarInterceptor = apiClient.getRequestInterceptor(); - memberVarReadTimeout = apiClient.getReadTimeout(); - memberVarResponseInterceptor = apiClient.getResponseInterceptor(); - memberVarAsyncResponseInterceptor = apiClient.getAsyncResponseInterceptor(); - } - - private ApiException getApiException(String operationId, HttpResponse response) { - String message = - formatExceptionMessage(operationId, response.statusCode(), response.body()); - return new ApiException( - response.statusCode(), message, response.headers(), response.body()); - } - - private String formatExceptionMessage(String operationId, int statusCode, String body) { - if (body == null || body.isEmpty()) { - body = "[no body]"; - } - return operationId + " call failed with: " + statusCode + " - " + body; - } - - /** - * Create new webhook Creates a new webhook, which will be triggered on the specified events - * Endpoint Permission: Owner, Admin, Non-Signing Admin. - * - * @param createWebhookRequest (required) - * @param idempotencyKey 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. (optional) - * @return CompletableFuture<ApiResponse<Webhook>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> createWebhook( - CreateWebhookRequest createWebhookRequest, String idempotencyKey) throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = - createWebhookRequestBuilder(createWebhookRequest, idempotencyKey); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException("createWebhook", localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - Webhook>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder createWebhookRequestBuilder( - CreateWebhookRequest createWebhookRequest, String idempotencyKey) throws ApiException { - ValidationUtils.assertParamExists( - "createWebhook", "createWebhookRequest", createWebhookRequest); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = "/webhooks"; - - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - - if (idempotencyKey != null) { - localVarRequestBuilder.header("Idempotency-Key", idempotencyKey.toString()); - } - localVarRequestBuilder.header("Content-Type", "application/json"); - localVarRequestBuilder.header("Accept", "application/json"); - - try { - byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(createWebhookRequest); - localVarRequestBuilder.method( - "POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); - } catch (IOException e) { - throw new ApiException(e); - } - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } - /** - * Delete webhook Delete a webhook by its id Endpoint Permission: Owner, Admin, Non-Signing - * Admin. - * - * @param webhookId The unique identifier of the webhook (required) - * @return CompletableFuture<ApiResponse<Webhook>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> deleteWebhook(UUID webhookId) - throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = deleteWebhookRequestBuilder(webhookId); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException("deleteWebhook", localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - Webhook>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder deleteWebhookRequestBuilder(UUID webhookId) throws ApiException { - ValidationUtils.assertParamExistsAndNotEmpty( - "deleteWebhook", "webhookId", webhookId.toString()); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = - "/webhooks/{webhookId}" - .replace("{webhookId}", ApiClient.urlEncode(webhookId.toString())); - - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - - localVarRequestBuilder.header("Accept", "application/json"); - - localVarRequestBuilder.method("DELETE", HttpRequest.BodyPublishers.noBody()); - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } - /** - * Get notification by id Get notification by id - * - * @param webhookId The ID of the webhook to fetch (required) - * @param notificationId The ID of the notification to fetch (required) - * @param includeData Include the data of the notification (optional) - * @return CompletableFuture<ApiResponse<NotificationWithData>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> getNotification( - String webhookId, String notificationId, Boolean includeData) throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = - getNotificationRequestBuilder(webhookId, notificationId, includeData); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException("getNotification", localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - NotificationWithData>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder getNotificationRequestBuilder( - String webhookId, String notificationId, Boolean includeData) throws ApiException { - ValidationUtils.assertParamExistsAndNotEmpty("getNotification", "webhookId", webhookId); - ValidationUtils.assertParamExistsAndNotEmpty( - "getNotification", "notificationId", notificationId); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = - "/webhooks/{webhookId}/notifications/{notificationId}" - .replace("{webhookId}", ApiClient.urlEncode(webhookId.toString())) - .replace( - "{notificationId}", ApiClient.urlEncode(notificationId.toString())); - - List localVarQueryParams = new ArrayList<>(); - StringJoiner localVarQueryStringJoiner = new StringJoiner("&"); - String localVarQueryParameterBaseName; - localVarQueryParameterBaseName = "includeData"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("includeData", includeData)); - - if (!localVarQueryParams.isEmpty() || localVarQueryStringJoiner.length() != 0) { - StringJoiner queryJoiner = new StringJoiner("&"); - localVarQueryParams.forEach(p -> queryJoiner.add(p.getName() + '=' + p.getValue())); - if (localVarQueryStringJoiner.length() != 0) { - queryJoiner.add(localVarQueryStringJoiner.toString()); - } - localVarRequestBuilder.uri( - URI.create(memberVarBaseUri + localVarPath + '?' + queryJoiner.toString())); - } else { - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - } - - localVarRequestBuilder.header("Accept", "application/json"); - - localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } - /** - * Get notification attempts Get notification attempts by notification id - * - * @param webhookId The ID of the webhook to fetch (required) - * @param notificationId The ID of the notification to fetch (required) - * @param pageCursor Cursor of the required page (optional) - * @param pageSize Maximum number of items in the page (optional, default to 10) - * @return CompletableFuture<ApiResponse<NotificationAttemptsPaginatedResponse>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> - getNotificationAttempts( - String webhookId, String notificationId, String pageCursor, BigDecimal pageSize) - throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = - getNotificationAttemptsRequestBuilder( - webhookId, notificationId, pageCursor, pageSize); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException( - "getNotificationAttempts", localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - NotificationAttemptsPaginatedResponse>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder getNotificationAttemptsRequestBuilder( - String webhookId, String notificationId, String pageCursor, BigDecimal pageSize) - throws ApiException { - ValidationUtils.assertParamExistsAndNotEmpty( - "getNotificationAttempts", "webhookId", webhookId); - ValidationUtils.assertParamExistsAndNotEmpty( - "getNotificationAttempts", "notificationId", notificationId); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = - "/webhooks/{webhookId}/notifications/{notificationId}/attempts" - .replace("{webhookId}", ApiClient.urlEncode(webhookId.toString())) - .replace( - "{notificationId}", ApiClient.urlEncode(notificationId.toString())); - - List localVarQueryParams = new ArrayList<>(); - StringJoiner localVarQueryStringJoiner = new StringJoiner("&"); - String localVarQueryParameterBaseName; - localVarQueryParameterBaseName = "pageCursor"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("pageCursor", pageCursor)); - localVarQueryParameterBaseName = "pageSize"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("pageSize", pageSize)); - - if (!localVarQueryParams.isEmpty() || localVarQueryStringJoiner.length() != 0) { - StringJoiner queryJoiner = new StringJoiner("&"); - localVarQueryParams.forEach(p -> queryJoiner.add(p.getName() + '=' + p.getValue())); - if (localVarQueryStringJoiner.length() != 0) { - queryJoiner.add(localVarQueryStringJoiner.toString()); - } - localVarRequestBuilder.uri( - URI.create(memberVarBaseUri + localVarPath + '?' + queryJoiner.toString())); - } else { - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - } - - localVarRequestBuilder.header("Accept", "application/json"); - - localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } - /** - * Get all notifications by webhook id Get all notifications by webhook id (paginated) - * - * @param webhookId (required) - * @param order ASC / DESC ordering (default DESC) (optional, default to DESC) - * @param sortBy Sort by field (optional, default to updatedAt) - * @param pageCursor Cursor of the required page (optional) - * @param pageSize Maximum number of items in the page (optional, default to 100) - * @param startTime Start time in milliseconds since epoch to filter by notifications created - * after this time (default 31 days ago) (optional) - * @param endTime End time in milliseconds since epoch to filter by notifications created before - * this time (default current time) (optional) - * @param statuses List of notification statuses to filter by (optional - * @param events List of webhook event types to filter by (optional - * @param resourceId Resource ID to filter by (optional) - * @return CompletableFuture<ApiResponse<NotificationPaginatedResponse>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> getNotifications( - UUID webhookId, - String order, - String sortBy, - String pageCursor, - BigDecimal pageSize, - BigDecimal startTime, - BigDecimal endTime, - List statuses, - List events, - String resourceId) - throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = - getNotificationsRequestBuilder( - webhookId, - order, - sortBy, - pageCursor, - pageSize, - startTime, - endTime, - statuses, - events, - resourceId); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException("getNotifications", localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - NotificationPaginatedResponse>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder getNotificationsRequestBuilder( - UUID webhookId, - String order, - String sortBy, - String pageCursor, - BigDecimal pageSize, - BigDecimal startTime, - BigDecimal endTime, - List statuses, - List events, - String resourceId) - throws ApiException { - ValidationUtils.assertParamExistsAndNotEmpty( - "getNotifications", "webhookId", webhookId.toString()); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = - "/webhooks/{webhookId}/notifications" - .replace("{webhookId}", ApiClient.urlEncode(webhookId.toString())); - - List localVarQueryParams = new ArrayList<>(); - StringJoiner localVarQueryStringJoiner = new StringJoiner("&"); - String localVarQueryParameterBaseName; - localVarQueryParameterBaseName = "order"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("order", order)); - localVarQueryParameterBaseName = "sortBy"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("sortBy", sortBy)); - localVarQueryParameterBaseName = "pageCursor"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("pageCursor", pageCursor)); - localVarQueryParameterBaseName = "pageSize"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("pageSize", pageSize)); - localVarQueryParameterBaseName = "startTime"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("startTime", startTime)); - localVarQueryParameterBaseName = "endTime"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("endTime", endTime)); - localVarQueryParameterBaseName = "statuses"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("multi", "statuses", statuses)); - localVarQueryParameterBaseName = "events"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("multi", "events", events)); - localVarQueryParameterBaseName = "resourceId"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("resourceId", resourceId)); - - if (!localVarQueryParams.isEmpty() || localVarQueryStringJoiner.length() != 0) { - StringJoiner queryJoiner = new StringJoiner("&"); - localVarQueryParams.forEach(p -> queryJoiner.add(p.getName() + '=' + p.getValue())); - if (localVarQueryStringJoiner.length() != 0) { - queryJoiner.add(localVarQueryStringJoiner.toString()); - } - localVarRequestBuilder.uri( - URI.create(memberVarBaseUri + localVarPath + '?' + queryJoiner.toString())); - } else { - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - } - - localVarRequestBuilder.header("Accept", "application/json"); - - localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } - /** - * Get resend job status Get the status of a resend job - * - * @param webhookId The ID of the webhook (required) - * @param jobId The ID of the resend job (required) - * @return - * CompletableFuture<ApiResponse<ResendFailedNotificationsJobStatusResponse>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> - getResendJobStatus(String webhookId, String jobId) throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = - getResendJobStatusRequestBuilder(webhookId, jobId); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException( - "getResendJobStatus", localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse< - ResendFailedNotificationsJobStatusResponse>( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - ResendFailedNotificationsJobStatusResponse>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder getResendJobStatusRequestBuilder(String webhookId, String jobId) - throws ApiException { - ValidationUtils.assertParamExistsAndNotEmpty("getResendJobStatus", "webhookId", webhookId); - ValidationUtils.assertParamExistsAndNotEmpty("getResendJobStatus", "jobId", jobId); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = - "/webhooks/{webhookId}/notifications/resend_failed/jobs/{jobId}" - .replace("{webhookId}", ApiClient.urlEncode(webhookId.toString())) - .replace("{jobId}", ApiClient.urlEncode(jobId.toString())); - - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - - localVarRequestBuilder.header("Accept", "application/json"); - - localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } - /** - * Get webhook by id Retrieve a webhook by its id - * - * @param webhookId The unique identifier of the webhook (required) - * @return CompletableFuture<ApiResponse<Webhook>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> getWebhook(UUID webhookId) throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = getWebhookRequestBuilder(webhookId); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException("getWebhook", localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - Webhook>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder getWebhookRequestBuilder(UUID webhookId) throws ApiException { - ValidationUtils.assertParamExistsAndNotEmpty( - "getWebhook", "webhookId", webhookId.toString()); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = - "/webhooks/{webhookId}" - .replace("{webhookId}", ApiClient.urlEncode(webhookId.toString())); - - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - - localVarRequestBuilder.header("Accept", "application/json"); - - localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } - /** - * Get all webhooks Get all webhooks (paginated) - * - * @param order ASC / DESC ordering (default DESC) (optional, default to DESC) - * @param pageCursor Cursor of the required page (optional) - * @param pageSize Maximum number of items in the page (optional, default to 10) - * @return CompletableFuture<ApiResponse<WebhookPaginatedResponse>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> getWebhooks( - String order, String pageCursor, BigDecimal pageSize) throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = - getWebhooksRequestBuilder(order, pageCursor, pageSize); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException("getWebhooks", localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - WebhookPaginatedResponse>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder getWebhooksRequestBuilder( - String order, String pageCursor, BigDecimal pageSize) throws ApiException { - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = "/webhooks"; - - List localVarQueryParams = new ArrayList<>(); - StringJoiner localVarQueryStringJoiner = new StringJoiner("&"); - String localVarQueryParameterBaseName; - localVarQueryParameterBaseName = "order"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("order", order)); - localVarQueryParameterBaseName = "pageCursor"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("pageCursor", pageCursor)); - localVarQueryParameterBaseName = "pageSize"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("pageSize", pageSize)); - - if (!localVarQueryParams.isEmpty() || localVarQueryStringJoiner.length() != 0) { - StringJoiner queryJoiner = new StringJoiner("&"); - localVarQueryParams.forEach(p -> queryJoiner.add(p.getName() + '=' + p.getValue())); - if (localVarQueryStringJoiner.length() != 0) { - queryJoiner.add(localVarQueryStringJoiner.toString()); - } - localVarRequestBuilder.uri( - URI.create(memberVarBaseUri + localVarPath + '?' + queryJoiner.toString())); - } else { - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - } - - localVarRequestBuilder.header("Accept", "application/json"); - - localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } - /** - * Resend failed notifications Resend all failed notifications for a webhook in the last 24 - * hours Endpoint Permission: Owner, Admin, Non-Signing Admin, Editor, Signer. - * - * @param resendFailedNotificationsRequest (required) - * @param webhookId The ID of the webhook (required) - * @param idempotencyKey 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. (optional) - * @return CompletableFuture<ApiResponse<ResendFailedNotificationsResponse>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> - resendFailedNotifications( - ResendFailedNotificationsRequest resendFailedNotificationsRequest, - String webhookId, - String idempotencyKey) - throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = - resendFailedNotificationsRequestBuilder( - resendFailedNotificationsRequest, webhookId, idempotencyKey); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException( - "resendFailedNotifications", localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - ResendFailedNotificationsResponse>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder resendFailedNotificationsRequestBuilder( - ResendFailedNotificationsRequest resendFailedNotificationsRequest, - String webhookId, - String idempotencyKey) - throws ApiException { - ValidationUtils.assertParamExists( - "resendFailedNotifications", - "resendFailedNotificationsRequest", - resendFailedNotificationsRequest); - ValidationUtils.assertParamExistsAndNotEmpty( - "resendFailedNotifications", "webhookId", webhookId); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = - "/webhooks/{webhookId}/notifications/resend_failed" - .replace("{webhookId}", ApiClient.urlEncode(webhookId.toString())); - - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - - if (idempotencyKey != null) { - localVarRequestBuilder.header("Idempotency-Key", idempotencyKey.toString()); - } - localVarRequestBuilder.header("Content-Type", "application/json"); - localVarRequestBuilder.header("Accept", "application/json"); - - try { - byte[] localVarPostBody = - memberVarObjectMapper.writeValueAsBytes(resendFailedNotificationsRequest); - localVarRequestBuilder.method( - "POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); - } catch (IOException e) { - throw new ApiException(e); - } - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } - /** - * Resend notification by id Resend notification by ID Endpoint Permission: Owner, Admin, - * Non-Signing Admin, Editor, Signer. - * - * @param webhookId The ID of the webhook (required) - * @param notificationId The ID of the notification (required) - * @param idempotencyKey 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. (optional) - * @return CompletableFuture<ApiResponse<Void>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> resendNotificationById( - String webhookId, String notificationId, String idempotencyKey) throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = - resendNotificationByIdRequestBuilder(webhookId, notificationId, idempotencyKey); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException( - "resendNotificationById", localVarResponse)); - } - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - null)); - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder resendNotificationByIdRequestBuilder( - String webhookId, String notificationId, String idempotencyKey) throws ApiException { - ValidationUtils.assertParamExistsAndNotEmpty( - "resendNotificationById", "webhookId", webhookId); - ValidationUtils.assertParamExistsAndNotEmpty( - "resendNotificationById", "notificationId", notificationId); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = - "/webhooks/{webhookId}/notifications/{notificationId}/resend" - .replace("{webhookId}", ApiClient.urlEncode(webhookId.toString())) - .replace( - "{notificationId}", ApiClient.urlEncode(notificationId.toString())); - - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - - if (idempotencyKey != null) { - localVarRequestBuilder.header("Idempotency-Key", idempotencyKey.toString()); - } - localVarRequestBuilder.header("Accept", "application/json"); - - localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.noBody()); - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } - /** - * Resend notifications by resource Id Resend notifications by resource Id Endpoint Permission: - * Owner, Admin, Non-Signing Admin, Editor, Signer. - * - * @param resendNotificationsByResourceIdRequest (required) - * @param webhookId The ID of the webhook (required) - * @param idempotencyKey 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. (optional) - * @return CompletableFuture<ApiResponse<Void>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> resendNotificationsByResourceId( - ResendNotificationsByResourceIdRequest resendNotificationsByResourceIdRequest, - String webhookId, - String idempotencyKey) - throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = - resendNotificationsByResourceIdRequestBuilder( - resendNotificationsByResourceIdRequest, webhookId, idempotencyKey); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException( - "resendNotificationsByResourceId", - localVarResponse)); - } - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - null)); - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder resendNotificationsByResourceIdRequestBuilder( - ResendNotificationsByResourceIdRequest resendNotificationsByResourceIdRequest, - String webhookId, - String idempotencyKey) - throws ApiException { - ValidationUtils.assertParamExists( - "resendNotificationsByResourceId", - "resendNotificationsByResourceIdRequest", - resendNotificationsByResourceIdRequest); - ValidationUtils.assertParamExistsAndNotEmpty( - "resendNotificationsByResourceId", "webhookId", webhookId); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = - "/webhooks/{webhookId}/notifications/resend_by_resource" - .replace("{webhookId}", ApiClient.urlEncode(webhookId.toString())); - - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - - if (idempotencyKey != null) { - localVarRequestBuilder.header("Idempotency-Key", idempotencyKey.toString()); - } - localVarRequestBuilder.header("Content-Type", "application/json"); - localVarRequestBuilder.header("Accept", "application/json"); - - try { - byte[] localVarPostBody = - memberVarObjectMapper.writeValueAsBytes(resendNotificationsByResourceIdRequest); - localVarRequestBuilder.method( - "POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); - } catch (IOException e) { - throw new ApiException(e); - } - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } - /** - * Update webhook Update a webhook by its id Endpoint Permission: Owner, Admin, Non-Signing - * Admin. - * - * @param updateWebhookRequest (required) - * @param webhookId The unique identifier of the webhook (required) - * @return CompletableFuture<ApiResponse<Webhook>> - * @throws ApiException if fails to make API call - */ - public CompletableFuture> updateWebhook( - UpdateWebhookRequest updateWebhookRequest, UUID webhookId) throws ApiException { - try { - HttpRequest.Builder localVarRequestBuilder = - updateWebhookRequestBuilder(updateWebhookRequest, webhookId); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException("updateWebhook", localVarResponse)); - } - try { - String responseBody = localVarResponse.body(); - return CompletableFuture.completedFuture( - new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseBody == null || responseBody.isBlank() - ? null - : memberVarObjectMapper.readValue( - responseBody, - new TypeReference< - Webhook>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder updateWebhookRequestBuilder( - UpdateWebhookRequest updateWebhookRequest, UUID webhookId) throws ApiException { - ValidationUtils.assertParamExists( - "updateWebhook", "updateWebhookRequest", updateWebhookRequest); - ValidationUtils.assertParamExistsAndNotEmpty( - "updateWebhook", "webhookId", webhookId.toString()); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = - "/webhooks/{webhookId}" - .replace("{webhookId}", ApiClient.urlEncode(webhookId.toString())); - - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - - localVarRequestBuilder.header("Content-Type", "application/json"); - localVarRequestBuilder.header("Accept", "application/json"); - - try { - byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(updateWebhookRequest); - localVarRequestBuilder.method( - "PATCH", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); - } catch (IOException e) { - throw new ApiException(e); - } - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/AbiFunction.java b/src/main/java/com/fireblocks/sdk/model/AbiFunction.java index 17b01eca..5d41ce52 100644 --- a/src/main/java/com/fireblocks/sdk/model/AbiFunction.java +++ b/src/main/java/com/fireblocks/sdk/model/AbiFunction.java @@ -80,19 +80,11 @@ public static StateMutabilityEnum fromValue(String value) { public static final String JSON_PROPERTY_STATE_MUTABILITY = "stateMutability"; @jakarta.annotation.Nullable private StateMutabilityEnum stateMutability; - /** The type of the function */ + /** The type if the function */ public enum TypeEnum { - CONSTRUCTOR(String.valueOf("constructor")), - FUNCTION(String.valueOf("function")), - ERROR(String.valueOf("error")), - - EVENT(String.valueOf("event")), - - RECEIVE(String.valueOf("receive")), - - FALLBACK(String.valueOf("fallback")); + CONSTRUCTOR(String.valueOf("constructor")); private String value; @@ -125,10 +117,10 @@ public static TypeEnum fromValue(String value) { @jakarta.annotation.Nonnull private TypeEnum type; public static final String JSON_PROPERTY_INPUTS = "inputs"; - @jakarta.annotation.Nullable private List inputs = new ArrayList<>(); + @jakarta.annotation.Nonnull private List inputs; public static final String JSON_PROPERTY_OUTPUTS = "outputs"; - @jakarta.annotation.Nullable private List outputs = new ArrayList<>(); + @jakarta.annotation.Nullable private List outputs; public static final String JSON_PROPERTY_DESCRIPTION = "description"; @jakarta.annotation.Nullable private String description; @@ -136,8 +128,11 @@ public static TypeEnum fromValue(String value) { public AbiFunction() {} @JsonCreator - public AbiFunction(@JsonProperty(value = JSON_PROPERTY_TYPE, required = true) TypeEnum type) { + public AbiFunction( + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) TypeEnum type, + @JsonProperty(value = JSON_PROPERTY_INPUTS, required = true) List inputs) { this.type = type; + this.inputs = inputs; } public AbiFunction name(@jakarta.annotation.Nullable String name) { @@ -194,7 +189,7 @@ public AbiFunction type(@jakarta.annotation.Nonnull TypeEnum type) { } /** - * The type of the function + * The type if the function * * @return type */ @@ -211,7 +206,7 @@ public void setType(@jakarta.annotation.Nonnull TypeEnum type) { this.type = type; } - public AbiFunction inputs(@jakarta.annotation.Nullable List inputs) { + public AbiFunction inputs(@jakarta.annotation.Nonnull List inputs) { this.inputs = inputs; return this; } @@ -229,16 +224,16 @@ public AbiFunction addInputsItem(Parameter inputsItem) { * * @return inputs */ - @jakarta.annotation.Nullable + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_INPUTS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getInputs() { return inputs; } @JsonProperty(JSON_PROPERTY_INPUTS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInputs(@jakarta.annotation.Nullable List inputs) { + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setInputs(@jakarta.annotation.Nonnull List inputs) { this.inputs = inputs; } diff --git a/src/main/java/com/fireblocks/sdk/model/AccessType.java b/src/main/java/com/fireblocks/sdk/model/AccessType.java deleted file mode 100644 index 3e20aa97..00000000 --- a/src/main/java/com/fireblocks/sdk/model/AccessType.java +++ /dev/null @@ -1,323 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.core.JsonGenerator; -import com.fasterxml.jackson.core.JsonParser; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.core.JsonToken; -import com.fasterxml.jackson.databind.DeserializationContext; -import com.fasterxml.jackson.databind.JsonMappingException; -import com.fasterxml.jackson.databind.JsonNode; -import com.fasterxml.jackson.databind.MapperFeature; -import com.fasterxml.jackson.databind.SerializerProvider; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import com.fasterxml.jackson.databind.deser.std.StdDeserializer; -import com.fasterxml.jackson.databind.ser.std.StdSerializer; -import com.fireblocks.sdk.JSON; -import java.io.IOException; -import java.util.Collections; -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; -import java.util.StringJoiner; -import java.util.logging.Level; -import java.util.logging.Logger; - -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -@JsonDeserialize(using = AccessType.AccessTypeDeserializer.class) -@JsonSerialize(using = AccessType.AccessTypeSerializer.class) -public class AccessType extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(AccessType.class.getName()); - - public static class AccessTypeSerializer extends StdSerializer { - public AccessTypeSerializer(Class t) { - super(t); - } - - public AccessTypeSerializer() { - this(null); - } - - @Override - public void serialize(AccessType value, JsonGenerator jgen, SerializerProvider provider) - throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); - } - } - - public static class AccessTypeDeserializer extends StdDeserializer { - public AccessTypeDeserializer() { - this(AccessType.class); - } - - public AccessTypeDeserializer(Class vc) { - super(vc); - } - - @Override - public AccessType deserialize(JsonParser jp, DeserializationContext ctxt) - throws IOException, JsonProcessingException { - JsonNode tree = jp.readValueAsTree(); - Object deserialized = null; - boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); - int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); - // deserialize AccountAccess - try { - boolean attemptParsing = true; - // ensure that we respect type coercion as set on the client ObjectMapper - if (AccountAccess.class.equals(Integer.class) - || AccountAccess.class.equals(Long.class) - || AccountAccess.class.equals(Float.class) - || AccountAccess.class.equals(Double.class) - || AccountAccess.class.equals(Boolean.class) - || AccountAccess.class.equals(String.class)) { - attemptParsing = typeCoercion; - if (!attemptParsing) { - attemptParsing |= - ((AccountAccess.class.equals(Integer.class) - || AccountAccess.class.equals(Long.class)) - && token == JsonToken.VALUE_NUMBER_INT); - attemptParsing |= - ((AccountAccess.class.equals(Float.class) - || AccountAccess.class.equals(Double.class)) - && token == JsonToken.VALUE_NUMBER_FLOAT); - attemptParsing |= - (AccountAccess.class.equals(Boolean.class) - && (token == JsonToken.VALUE_FALSE - || token == JsonToken.VALUE_TRUE)); - attemptParsing |= - (AccountAccess.class.equals(String.class) - && token == JsonToken.VALUE_STRING); - } - } - if (attemptParsing) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(AccountAccess.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'AccountAccess'"); - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'AccountAccess'", e); - } - - // deserialize DirectAccess - try { - boolean attemptParsing = true; - // ensure that we respect type coercion as set on the client ObjectMapper - if (DirectAccess.class.equals(Integer.class) - || DirectAccess.class.equals(Long.class) - || DirectAccess.class.equals(Float.class) - || DirectAccess.class.equals(Double.class) - || DirectAccess.class.equals(Boolean.class) - || DirectAccess.class.equals(String.class)) { - attemptParsing = typeCoercion; - if (!attemptParsing) { - attemptParsing |= - ((DirectAccess.class.equals(Integer.class) - || DirectAccess.class.equals(Long.class)) - && token == JsonToken.VALUE_NUMBER_INT); - attemptParsing |= - ((DirectAccess.class.equals(Float.class) - || DirectAccess.class.equals(Double.class)) - && token == JsonToken.VALUE_NUMBER_FLOAT); - attemptParsing |= - (DirectAccess.class.equals(Boolean.class) - && (token == JsonToken.VALUE_FALSE - || token == JsonToken.VALUE_TRUE)); - attemptParsing |= - (DirectAccess.class.equals(String.class) - && token == JsonToken.VALUE_STRING); - } - } - if (attemptParsing) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(DirectAccess.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'DirectAccess'"); - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'DirectAccess'", e); - } - - if (match == 1) { - AccessType ret = new AccessType(); - ret.setActualInstance(deserialized); - return ret; - } - throw new IOException( - String.format( - "Failed deserialization for AccessType: %d classes match result," - + " expected 1", - match)); - } - - /** Handle deserialization of the 'null' value. */ - @Override - public AccessType getNullValue(DeserializationContext ctxt) throws JsonMappingException { - throw new JsonMappingException(ctxt.getParser(), "AccessType cannot be null"); - } - } - - // store a list of schema names defined in oneOf - public static final Map> schemas = new HashMap<>(); - - public AccessType() { - super("oneOf", Boolean.FALSE); - } - - public AccessType(AccountAccess o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public AccessType(DirectAccess o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("AccountAccess", AccountAccess.class); - schemas.put("DirectAccess", DirectAccess.class); - JSON.registerDescendants(AccessType.class, Collections.unmodifiableMap(schemas)); - // Initialize and register the discriminator mappings. - Map> mappings = new HashMap>(); - mappings.put("PROVIDER", DirectAccess.class); - mappings.put("PROVIDER_ACCOUNT", AccountAccess.class); - mappings.put("AccountAccess", AccountAccess.class); - mappings.put("DirectAccess", DirectAccess.class); - mappings.put("AccessType", AccessType.class); - JSON.registerDiscriminator(AccessType.class, "type", mappings); - } - - @Override - public Map> getSchemas() { - return AccessType.schemas; - } - - /** - * Set the instance that matches the oneOf child schema, check the instance parameter is valid - * against the oneOf child schemas: AccountAccess, DirectAccess - * - *

It could be an instance of the 'oneOf' schemas. The oneOf child schemas may themselves be - * a composed schema (allOf, anyOf, oneOf). - */ - @Override - public void setActualInstance(Object instance) { - if (JSON.isInstanceOf(AccountAccess.class, instance, new HashSet>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(DirectAccess.class, instance, new HashSet>())) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be AccountAccess, DirectAccess"); - } - - /** - * Get the actual instance, which can be the following: AccountAccess, DirectAccess - * - * @return The actual instance (AccountAccess, DirectAccess) - */ - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `AccountAccess`. If the actual instance is not `AccountAccess`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `AccountAccess` - * @throws ClassCastException if the instance is not `AccountAccess` - */ - public AccountAccess getAccountAccess() throws ClassCastException { - return (AccountAccess) super.getActualInstance(); - } - - /** - * Get the actual instance of `DirectAccess`. If the actual instance is not `DirectAccess`, the - * ClassCastException will be thrown. - * - * @return The actual instance of `DirectAccess` - * @throws ClassCastException if the instance is not `DirectAccess` - */ - public DirectAccess getDirectAccess() throws ClassCastException { - return (DirectAccess) super.getActualInstance(); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - if (getActualInstance() instanceof AccountAccess) { - if (getActualInstance() != null) { - joiner.add( - ((AccountAccess) getActualInstance()) - .toUrlQueryString(prefix + "one_of_0" + suffix)); - } - return joiner.toString(); - } - if (getActualInstance() instanceof DirectAccess) { - if (getActualInstance() != null) { - joiner.add( - ((DirectAccess) getActualInstance()) - .toUrlQueryString(prefix + "one_of_1" + suffix)); - } - return joiner.toString(); - } - return null; - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/AccountAccess.java b/src/main/java/com/fireblocks/sdk/model/AccountAccess.java deleted file mode 100644 index 1611e981..00000000 --- a/src/main/java/com/fireblocks/sdk/model/AccountAccess.java +++ /dev/null @@ -1,260 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** AccountAccess */ -@JsonPropertyOrder({ - AccountAccess.JSON_PROPERTY_TYPE, - AccountAccess.JSON_PROPERTY_PROVIDER_ID, - AccountAccess.JSON_PROPERTY_ACCOUNT_ID -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class AccountAccess { - /** Indicates this uses account-based access */ - public enum TypeEnum { - PROVIDER_ACCOUNT(String.valueOf("PROVIDER_ACCOUNT")); - - private String value; - - TypeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static TypeEnum fromValue(String value) { - for (TypeEnum b : TypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_TYPE = "type"; - @jakarta.annotation.Nonnull private TypeEnum type; - - public static final String JSON_PROPERTY_PROVIDER_ID = "providerId"; - @jakarta.annotation.Nullable private String providerId; - - public static final String JSON_PROPERTY_ACCOUNT_ID = "accountId"; - @jakarta.annotation.Nonnull private String accountId; - - public AccountAccess() {} - - @JsonCreator - public AccountAccess( - @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) TypeEnum type, - @JsonProperty(value = JSON_PROPERTY_ACCOUNT_ID, required = true) String accountId) { - this.type = type; - this.accountId = accountId; - } - - public AccountAccess type(@jakarta.annotation.Nonnull TypeEnum type) { - this.type = type; - return this; - } - - /** - * Indicates this uses account-based access - * - * @return type - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { - return type; - } - - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(@jakarta.annotation.Nonnull TypeEnum type) { - this.type = type; - } - - public AccountAccess providerId(@jakarta.annotation.Nullable String providerId) { - this.providerId = providerId; - return this; - } - - /** - * The ID of the provider - * - * @return providerId - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROVIDER_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getProviderId() { - return providerId; - } - - @JsonProperty(JSON_PROPERTY_PROVIDER_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setProviderId(@jakarta.annotation.Nullable String providerId) { - this.providerId = providerId; - } - - public AccountAccess accountId(@jakarta.annotation.Nonnull String accountId) { - this.accountId = accountId; - return this; - } - - /** - * The ID of the account - * - * @return accountId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getAccountId() { - return accountId; - } - - @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAccountId(@jakarta.annotation.Nonnull String accountId) { - this.accountId = accountId; - } - - /** Return true if this AccountAccess object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AccountAccess accountAccess = (AccountAccess) o; - return Objects.equals(this.type, accountAccess.type) - && Objects.equals(this.providerId, accountAccess.providerId) - && Objects.equals(this.accountId, accountAccess.accountId); - } - - @Override - public int hashCode() { - return Objects.hash(type, providerId, accountId); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AccountAccess {\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" providerId: ").append(toIndentedString(providerId)).append("\n"); - sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `type` to the URL query string - if (getType() != null) { - joiner.add( - String.format( - "%stype%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getType())))); - } - - // add `providerId` to the URL query string - if (getProviderId() != null) { - joiner.add( - String.format( - "%sproviderId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getProviderId())))); - } - - // add `accountId` to the URL query string - if (getAccountId() != null) { - joiner.add( - String.format( - "%saccountId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAccountId())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/AccountBase.java b/src/main/java/com/fireblocks/sdk/model/AccountBase.java deleted file mode 100644 index d16ee78e..00000000 --- a/src/main/java/com/fireblocks/sdk/model/AccountBase.java +++ /dev/null @@ -1,184 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** AccountBase */ -@JsonPropertyOrder({AccountBase.JSON_PROPERTY_ID, AccountBase.JSON_PROPERTY_NAME}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class AccountBase { - public static final String JSON_PROPERTY_ID = "id"; - @jakarta.annotation.Nonnull private String id; - - public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nonnull private String name; - - public AccountBase() {} - - @JsonCreator - public AccountBase( - @JsonProperty(value = JSON_PROPERTY_ID, required = true) String id, - @JsonProperty(value = JSON_PROPERTY_NAME, required = true) String name) { - this.id = id; - this.name = name; - } - - public AccountBase id(@jakarta.annotation.Nonnull String id) { - this.id = id; - return this; - } - - /** - * The ID of the account - * - * @return id - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getId() { - return id; - } - - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(@jakarta.annotation.Nonnull String id) { - this.id = id; - } - - public AccountBase name(@jakarta.annotation.Nonnull String name) { - this.name = name; - return this; - } - - /** - * The name of the account - * - * @return name - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getName() { - return name; - } - - @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(@jakarta.annotation.Nonnull String name) { - this.name = name; - } - - /** Return true if this AccountBase object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AccountBase accountBase = (AccountBase) o; - return Objects.equals(this.id, accountBase.id) - && Objects.equals(this.name, accountBase.name); - } - - @Override - public int hashCode() { - return Objects.hash(id, name); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AccountBase {\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `id` to the URL query string - if (getId() != null) { - joiner.add( - String.format( - "%sid%s=%s", - prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); - } - - // add `name` to the URL query string - if (getName() != null) { - joiner.add( - String.format( - "%sname%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getName())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/AccountBasedAccessProvider.java b/src/main/java/com/fireblocks/sdk/model/AccountBasedAccessProvider.java deleted file mode 100644 index 92cc22a9..00000000 --- a/src/main/java/com/fireblocks/sdk/model/AccountBasedAccessProvider.java +++ /dev/null @@ -1,409 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** AccountBasedAccessProvider */ -@JsonPropertyOrder({ - AccountBasedAccessProvider.JSON_PROPERTY_ID, - AccountBasedAccessProvider.JSON_PROPERTY_NAME, - AccountBasedAccessProvider.JSON_PROPERTY_LOGO, - AccountBasedAccessProvider.JSON_PROPERTY_ACCOUNT_BASED, - AccountBasedAccessProvider.JSON_PROPERTY_MANIFEST, - AccountBasedAccessProvider.JSON_PROPERTY_CONNECTED, - AccountBasedAccessProvider.JSON_PROPERTY_ACCOUNTS -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class AccountBasedAccessProvider { - public static final String JSON_PROPERTY_ID = "id"; - @jakarta.annotation.Nonnull private String id; - - public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nonnull private String name; - - public static final String JSON_PROPERTY_LOGO = "logo"; - @jakarta.annotation.Nullable private String logo; - - public static final String JSON_PROPERTY_ACCOUNT_BASED = "accountBased"; - @jakarta.annotation.Nonnull private Boolean accountBased; - - public static final String JSON_PROPERTY_MANIFEST = "manifest"; - @jakarta.annotation.Nonnull private Manifest manifest; - - public static final String JSON_PROPERTY_CONNECTED = "connected"; - @jakarta.annotation.Nonnull private Boolean connected; - - public static final String JSON_PROPERTY_ACCOUNTS = "accounts"; - @jakarta.annotation.Nullable private List accounts = new ArrayList<>(); - - public AccountBasedAccessProvider() {} - - @JsonCreator - public AccountBasedAccessProvider( - @JsonProperty(value = JSON_PROPERTY_ID, required = true) String id, - @JsonProperty(value = JSON_PROPERTY_NAME, required = true) String name, - @JsonProperty(value = JSON_PROPERTY_ACCOUNT_BASED, required = true) - Boolean accountBased, - @JsonProperty(value = JSON_PROPERTY_MANIFEST, required = true) Manifest manifest, - @JsonProperty(value = JSON_PROPERTY_CONNECTED, required = true) Boolean connected) { - this.id = id; - this.name = name; - this.accountBased = accountBased; - this.manifest = manifest; - this.connected = connected; - } - - public AccountBasedAccessProvider id(@jakarta.annotation.Nonnull String id) { - this.id = id; - return this; - } - - /** - * Unique identifier for the provider - * - * @return id - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getId() { - return id; - } - - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(@jakarta.annotation.Nonnull String id) { - this.id = id; - } - - public AccountBasedAccessProvider name(@jakarta.annotation.Nonnull String name) { - this.name = name; - return this; - } - - /** - * Display name of the provider - * - * @return name - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getName() { - return name; - } - - @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(@jakarta.annotation.Nonnull String name) { - this.name = name; - } - - public AccountBasedAccessProvider logo(@jakarta.annotation.Nullable String logo) { - this.logo = logo; - return this; - } - - /** - * URL to the logo image of the provider - * - * @return logo - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_LOGO) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getLogo() { - return logo; - } - - @JsonProperty(JSON_PROPERTY_LOGO) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLogo(@jakarta.annotation.Nullable String logo) { - this.logo = logo; - } - - public AccountBasedAccessProvider accountBased( - @jakarta.annotation.Nonnull Boolean accountBased) { - this.accountBased = accountBased; - return this; - } - - /** - * Indicates whether the provider access model is through accounts or directly - * - * @return accountBased - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ACCOUNT_BASED) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Boolean getAccountBased() { - return accountBased; - } - - @JsonProperty(JSON_PROPERTY_ACCOUNT_BASED) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAccountBased(@jakarta.annotation.Nonnull Boolean accountBased) { - this.accountBased = accountBased; - } - - public AccountBasedAccessProvider manifest(@jakarta.annotation.Nonnull Manifest manifest) { - this.manifest = manifest; - return this; - } - - /** - * Get manifest - * - * @return manifest - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_MANIFEST) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Manifest getManifest() { - return manifest; - } - - @JsonProperty(JSON_PROPERTY_MANIFEST) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setManifest(@jakarta.annotation.Nonnull Manifest manifest) { - this.manifest = manifest; - } - - public AccountBasedAccessProvider connected(@jakarta.annotation.Nonnull Boolean connected) { - this.connected = connected; - return this; - } - - /** - * Whether the provider is currently connected - * - * @return connected - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CONNECTED) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Boolean getConnected() { - return connected; - } - - @JsonProperty(JSON_PROPERTY_CONNECTED) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setConnected(@jakarta.annotation.Nonnull Boolean connected) { - this.connected = connected; - } - - public AccountBasedAccessProvider accounts( - @jakarta.annotation.Nullable List accounts) { - this.accounts = accounts; - return this; - } - - public AccountBasedAccessProvider addAccountsItem(AccountBase accountsItem) { - if (this.accounts == null) { - this.accounts = new ArrayList<>(); - } - this.accounts.add(accountsItem); - return this; - } - - /** - * Get accounts - * - * @return accounts - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ACCOUNTS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getAccounts() { - return accounts; - } - - @JsonProperty(JSON_PROPERTY_ACCOUNTS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAccounts(@jakarta.annotation.Nullable List accounts) { - this.accounts = accounts; - } - - /** Return true if this AccountBasedAccessProvider object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AccountBasedAccessProvider accountBasedAccessProvider = (AccountBasedAccessProvider) o; - return Objects.equals(this.id, accountBasedAccessProvider.id) - && Objects.equals(this.name, accountBasedAccessProvider.name) - && Objects.equals(this.logo, accountBasedAccessProvider.logo) - && Objects.equals(this.accountBased, accountBasedAccessProvider.accountBased) - && Objects.equals(this.manifest, accountBasedAccessProvider.manifest) - && Objects.equals(this.connected, accountBasedAccessProvider.connected) - && Objects.equals(this.accounts, accountBasedAccessProvider.accounts); - } - - @Override - public int hashCode() { - return Objects.hash(id, name, logo, accountBased, manifest, connected, accounts); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AccountBasedAccessProvider {\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" logo: ").append(toIndentedString(logo)).append("\n"); - sb.append(" accountBased: ").append(toIndentedString(accountBased)).append("\n"); - sb.append(" manifest: ").append(toIndentedString(manifest)).append("\n"); - sb.append(" connected: ").append(toIndentedString(connected)).append("\n"); - sb.append(" accounts: ").append(toIndentedString(accounts)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `id` to the URL query string - if (getId() != null) { - joiner.add( - String.format( - "%sid%s=%s", - prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); - } - - // add `name` to the URL query string - if (getName() != null) { - joiner.add( - String.format( - "%sname%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getName())))); - } - - // add `logo` to the URL query string - if (getLogo() != null) { - joiner.add( - String.format( - "%slogo%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getLogo())))); - } - - // add `accountBased` to the URL query string - if (getAccountBased() != null) { - joiner.add( - String.format( - "%saccountBased%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAccountBased())))); - } - - // add `manifest` to the URL query string - if (getManifest() != null) { - joiner.add(getManifest().toUrlQueryString(prefix + "manifest" + suffix)); - } - - // add `connected` to the URL query string - if (getConnected() != null) { - joiner.add( - String.format( - "%sconnected%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getConnected())))); - } - - // add `accounts` to the URL query string - if (getAccounts() != null) { - for (int i = 0; i < getAccounts().size(); i++) { - if (getAccounts().get(i) != null) { - joiner.add( - getAccounts() - .get(i) - .toUrlQueryString( - String.format( - "%saccounts%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/AccountConfig.java b/src/main/java/com/fireblocks/sdk/model/AccountConfig.java deleted file mode 100644 index a48f1202..00000000 --- a/src/main/java/com/fireblocks/sdk/model/AccountConfig.java +++ /dev/null @@ -1,384 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fireblocks.sdk.ApiClient; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** Policy source/destination configuration */ -@JsonPropertyOrder({ - AccountConfig.JSON_PROPERTY_TYPE, - AccountConfig.JSON_PROPERTY_SUB_TYPE, - AccountConfig.JSON_PROPERTY_IDS, - AccountConfig.JSON_PROPERTY_OPERATOR, - AccountConfig.JSON_PROPERTY_MATCH_FROM -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class AccountConfig { - public static final String JSON_PROPERTY_TYPE = "type"; - @jakarta.annotation.Nonnull private AccountType2 type; - - public static final String JSON_PROPERTY_SUB_TYPE = "subType"; - @jakarta.annotation.Nullable private List subType = new ArrayList<>(); - - public static final String JSON_PROPERTY_IDS = "ids"; - @jakarta.annotation.Nullable private List ids = new ArrayList<>(); - - public static final String JSON_PROPERTY_OPERATOR = "operator"; - @jakarta.annotation.Nonnull private PolicyOperator operator; - - /** Whether to match from account or source */ - public enum MatchFromEnum { - ACCOUNT(String.valueOf("ACCOUNT")), - - SOURCE(String.valueOf("SOURCE")); - - private String value; - - MatchFromEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static MatchFromEnum fromValue(String value) { - for (MatchFromEnum b : MatchFromEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_MATCH_FROM = "matchFrom"; - @jakarta.annotation.Nullable private MatchFromEnum matchFrom; - - public AccountConfig() {} - - @JsonCreator - public AccountConfig( - @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) AccountType2 type, - @JsonProperty(value = JSON_PROPERTY_OPERATOR, required = true) - PolicyOperator operator) { - this.type = type; - this.operator = operator; - } - - public AccountConfig type(@jakarta.annotation.Nonnull AccountType2 type) { - this.type = type; - return this; - } - - /** - * Get type - * - * @return type - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccountType2 getType() { - return type; - } - - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(@jakarta.annotation.Nonnull AccountType2 type) { - this.type = type; - } - - public AccountConfig subType(@jakarta.annotation.Nullable List subType) { - this.subType = subType; - return this; - } - - public AccountConfig addSubTypeItem(AccountIdentifier subTypeItem) { - if (this.subType == null) { - this.subType = new ArrayList<>(); - } - this.subType.add(subTypeItem); - return this; - } - - /** - * Get subType - * - * @return subType - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SUB_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getSubType() { - return subType; - } - - @JsonProperty(JSON_PROPERTY_SUB_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSubType(@jakarta.annotation.Nullable List subType) { - this.subType = subType; - } - - public AccountConfig ids(@jakarta.annotation.Nullable List ids) { - this.ids = ids; - return this; - } - - public AccountConfig addIdsItem(AccountIdentifier idsItem) { - if (this.ids == null) { - this.ids = new ArrayList<>(); - } - this.ids.add(idsItem); - return this; - } - - /** - * Get ids - * - * @return ids - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_IDS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getIds() { - return ids; - } - - @JsonProperty(JSON_PROPERTY_IDS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIds(@jakarta.annotation.Nullable List ids) { - this.ids = ids; - } - - public AccountConfig operator(@jakarta.annotation.Nonnull PolicyOperator operator) { - this.operator = operator; - return this; - } - - /** - * Get operator - * - * @return operator - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_OPERATOR) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public PolicyOperator getOperator() { - return operator; - } - - @JsonProperty(JSON_PROPERTY_OPERATOR) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setOperator(@jakarta.annotation.Nonnull PolicyOperator operator) { - this.operator = operator; - } - - public AccountConfig matchFrom(@jakarta.annotation.Nullable MatchFromEnum matchFrom) { - this.matchFrom = matchFrom; - return this; - } - - /** - * Whether to match from account or source - * - * @return matchFrom - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MATCH_FROM) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public MatchFromEnum getMatchFrom() { - return matchFrom; - } - - @JsonProperty(JSON_PROPERTY_MATCH_FROM) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMatchFrom(@jakarta.annotation.Nullable MatchFromEnum matchFrom) { - this.matchFrom = matchFrom; - } - - /** Return true if this AccountConfig object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AccountConfig accountConfig = (AccountConfig) o; - return Objects.equals(this.type, accountConfig.type) - && Objects.equals(this.subType, accountConfig.subType) - && Objects.equals(this.ids, accountConfig.ids) - && Objects.equals(this.operator, accountConfig.operator) - && Objects.equals(this.matchFrom, accountConfig.matchFrom); - } - - @Override - public int hashCode() { - return Objects.hash(type, subType, ids, operator, matchFrom); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AccountConfig {\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" subType: ").append(toIndentedString(subType)).append("\n"); - sb.append(" ids: ").append(toIndentedString(ids)).append("\n"); - sb.append(" operator: ").append(toIndentedString(operator)).append("\n"); - sb.append(" matchFrom: ").append(toIndentedString(matchFrom)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `type` to the URL query string - if (getType() != null) { - joiner.add( - String.format( - "%stype%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getType())))); - } - - // add `subType` to the URL query string - if (getSubType() != null) { - for (int i = 0; i < getSubType().size(); i++) { - if (getSubType().get(i) != null) { - joiner.add( - getSubType() - .get(i) - .toUrlQueryString( - String.format( - "%ssubType%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } - } - - // add `ids` to the URL query string - if (getIds() != null) { - for (int i = 0; i < getIds().size(); i++) { - if (getIds().get(i) != null) { - joiner.add( - getIds().get(i) - .toUrlQueryString( - String.format( - "%sids%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } - } - - // add `operator` to the URL query string - if (getOperator() != null) { - joiner.add( - String.format( - "%soperator%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getOperator())))); - } - - // add `matchFrom` to the URL query string - if (getMatchFrom() != null) { - joiner.add( - String.format( - "%smatchFrom%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getMatchFrom())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/AccountHolderDetails.java b/src/main/java/com/fireblocks/sdk/model/AccountHolderDetails.java deleted file mode 100644 index 82f8d48d..00000000 --- a/src/main/java/com/fireblocks/sdk/model/AccountHolderDetails.java +++ /dev/null @@ -1,343 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** AccountHolderDetails */ -@JsonPropertyOrder({ - AccountHolderDetails.JSON_PROPERTY_NAME, - AccountHolderDetails.JSON_PROPERTY_CITY, - AccountHolderDetails.JSON_PROPERTY_COUNTRY, - AccountHolderDetails.JSON_PROPERTY_SUBDIVISION, - AccountHolderDetails.JSON_PROPERTY_ADDRESS, - AccountHolderDetails.JSON_PROPERTY_POSTAL_CODE -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class AccountHolderDetails { - public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nonnull private String name; - - public static final String JSON_PROPERTY_CITY = "city"; - @jakarta.annotation.Nullable private String city; - - public static final String JSON_PROPERTY_COUNTRY = "country"; - @jakarta.annotation.Nullable private String country; - - public static final String JSON_PROPERTY_SUBDIVISION = "subdivision"; - @jakarta.annotation.Nullable private String subdivision; - - public static final String JSON_PROPERTY_ADDRESS = "address"; - @jakarta.annotation.Nullable private String address; - - public static final String JSON_PROPERTY_POSTAL_CODE = "postalCode"; - @jakarta.annotation.Nullable private String postalCode; - - public AccountHolderDetails() {} - - @JsonCreator - public AccountHolderDetails( - @JsonProperty(value = JSON_PROPERTY_NAME, required = true) String name) { - this.name = name; - } - - public AccountHolderDetails name(@jakarta.annotation.Nonnull String name) { - this.name = name; - return this; - } - - /** - * Full name of the account holder. - * - * @return name - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getName() { - return name; - } - - @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(@jakarta.annotation.Nonnull String name) { - this.name = name; - } - - public AccountHolderDetails city(@jakarta.annotation.Nullable String city) { - this.city = city; - return this; - } - - /** - * Get city - * - * @return city - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CITY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getCity() { - return city; - } - - @JsonProperty(JSON_PROPERTY_CITY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCity(@jakarta.annotation.Nullable String city) { - this.city = city; - } - - public AccountHolderDetails country(@jakarta.annotation.Nullable String country) { - this.country = country; - return this; - } - - /** - * Country code, as specified in ISO 3166-1 alpha-2. - * - * @return country - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COUNTRY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getCountry() { - return country; - } - - @JsonProperty(JSON_PROPERTY_COUNTRY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCountry(@jakarta.annotation.Nullable String country) { - this.country = country; - } - - public AccountHolderDetails subdivision(@jakarta.annotation.Nullable String subdivision) { - this.subdivision = subdivision; - return this; - } - - /** - * Country administrative subdivision, as specified in ISO 3166-2. - * - * @return subdivision - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SUBDIVISION) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getSubdivision() { - return subdivision; - } - - @JsonProperty(JSON_PROPERTY_SUBDIVISION) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSubdivision(@jakarta.annotation.Nullable String subdivision) { - this.subdivision = subdivision; - } - - public AccountHolderDetails address(@jakarta.annotation.Nullable String address) { - this.address = address; - return this; - } - - /** - * Account holder street address. - * - * @return address - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ADDRESS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getAddress() { - return address; - } - - @JsonProperty(JSON_PROPERTY_ADDRESS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAddress(@jakarta.annotation.Nullable String address) { - this.address = address; - } - - public AccountHolderDetails postalCode(@jakarta.annotation.Nullable String postalCode) { - this.postalCode = postalCode; - return this; - } - - /** - * Get postalCode - * - * @return postalCode - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_POSTAL_CODE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getPostalCode() { - return postalCode; - } - - @JsonProperty(JSON_PROPERTY_POSTAL_CODE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPostalCode(@jakarta.annotation.Nullable String postalCode) { - this.postalCode = postalCode; - } - - /** Return true if this AccountHolderDetails object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AccountHolderDetails accountHolderDetails = (AccountHolderDetails) o; - return Objects.equals(this.name, accountHolderDetails.name) - && Objects.equals(this.city, accountHolderDetails.city) - && Objects.equals(this.country, accountHolderDetails.country) - && Objects.equals(this.subdivision, accountHolderDetails.subdivision) - && Objects.equals(this.address, accountHolderDetails.address) - && Objects.equals(this.postalCode, accountHolderDetails.postalCode); - } - - @Override - public int hashCode() { - return Objects.hash(name, city, country, subdivision, address, postalCode); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AccountHolderDetails {\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" city: ").append(toIndentedString(city)).append("\n"); - sb.append(" country: ").append(toIndentedString(country)).append("\n"); - sb.append(" subdivision: ").append(toIndentedString(subdivision)).append("\n"); - sb.append(" address: ").append(toIndentedString(address)).append("\n"); - sb.append(" postalCode: ").append(toIndentedString(postalCode)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `name` to the URL query string - if (getName() != null) { - joiner.add( - String.format( - "%sname%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getName())))); - } - - // add `city` to the URL query string - if (getCity() != null) { - joiner.add( - String.format( - "%scity%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getCity())))); - } - - // add `country` to the URL query string - if (getCountry() != null) { - joiner.add( - String.format( - "%scountry%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getCountry())))); - } - - // add `subdivision` to the URL query string - if (getSubdivision() != null) { - joiner.add( - String.format( - "%ssubdivision%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getSubdivision())))); - } - - // add `address` to the URL query string - if (getAddress() != null) { - joiner.add( - String.format( - "%saddress%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAddress())))); - } - - // add `postalCode` to the URL query string - if (getPostalCode() != null) { - joiner.add( - String.format( - "%spostalCode%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getPostalCode())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/AccountIdentifier.java b/src/main/java/com/fireblocks/sdk/model/AccountIdentifier.java deleted file mode 100644 index b89a63bb..00000000 --- a/src/main/java/com/fireblocks/sdk/model/AccountIdentifier.java +++ /dev/null @@ -1,263 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** Account identifier with type, ID, subtype, and address */ -@JsonPropertyOrder({ - AccountIdentifier.JSON_PROPERTY_TYPE, - AccountIdentifier.JSON_PROPERTY_ID, - AccountIdentifier.JSON_PROPERTY_SUB_TYPE, - AccountIdentifier.JSON_PROPERTY_ADDRESS -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class AccountIdentifier { - public static final String JSON_PROPERTY_TYPE = "type"; - @jakarta.annotation.Nonnull private AccountType2 type; - - public static final String JSON_PROPERTY_ID = "id"; - @jakarta.annotation.Nullable private String id; - - public static final String JSON_PROPERTY_SUB_TYPE = "subType"; - @jakarta.annotation.Nullable private String subType; - - public static final String JSON_PROPERTY_ADDRESS = "address"; - @jakarta.annotation.Nullable private String address; - - public AccountIdentifier() {} - - @JsonCreator - public AccountIdentifier( - @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) AccountType2 type) { - this.type = type; - } - - public AccountIdentifier type(@jakarta.annotation.Nonnull AccountType2 type) { - this.type = type; - return this; - } - - /** - * Get type - * - * @return type - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccountType2 getType() { - return type; - } - - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(@jakarta.annotation.Nonnull AccountType2 type) { - this.type = type; - } - - public AccountIdentifier id(@jakarta.annotation.Nullable String id) { - this.id = id; - return this; - } - - /** - * Account ID - * - * @return id - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getId() { - return id; - } - - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(@jakarta.annotation.Nullable String id) { - this.id = id; - } - - public AccountIdentifier subType(@jakarta.annotation.Nullable String subType) { - this.subType = subType; - return this; - } - - /** - * Account subtype - * - * @return subType - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SUB_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getSubType() { - return subType; - } - - @JsonProperty(JSON_PROPERTY_SUB_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSubType(@jakarta.annotation.Nullable String subType) { - this.subType = subType; - } - - public AccountIdentifier address(@jakarta.annotation.Nullable String address) { - this.address = address; - return this; - } - - /** - * Account address - * - * @return address - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ADDRESS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getAddress() { - return address; - } - - @JsonProperty(JSON_PROPERTY_ADDRESS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAddress(@jakarta.annotation.Nullable String address) { - this.address = address; - } - - /** Return true if this AccountIdentifier object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AccountIdentifier accountIdentifier = (AccountIdentifier) o; - return Objects.equals(this.type, accountIdentifier.type) - && Objects.equals(this.id, accountIdentifier.id) - && Objects.equals(this.subType, accountIdentifier.subType) - && Objects.equals(this.address, accountIdentifier.address); - } - - @Override - public int hashCode() { - return Objects.hash(type, id, subType, address); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AccountIdentifier {\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" subType: ").append(toIndentedString(subType)).append("\n"); - sb.append(" address: ").append(toIndentedString(address)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `type` to the URL query string - if (getType() != null) { - joiner.add( - String.format( - "%stype%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getType())))); - } - - // add `id` to the URL query string - if (getId() != null) { - joiner.add( - String.format( - "%sid%s=%s", - prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); - } - - // add `subType` to the URL query string - if (getSubType() != null) { - joiner.add( - String.format( - "%ssubType%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getSubType())))); - } - - // add `address` to the URL query string - if (getAddress() != null) { - joiner.add( - String.format( - "%saddress%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAddress())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/AccountProviderID.java b/src/main/java/com/fireblocks/sdk/model/AccountProviderID.java deleted file mode 100644 index d340e593..00000000 --- a/src/main/java/com/fireblocks/sdk/model/AccountProviderID.java +++ /dev/null @@ -1,189 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** AccountProviderID */ -@JsonPropertyOrder({ - AccountProviderID.JSON_PROPERTY_PROVIDER_ID, - AccountProviderID.JSON_PROPERTY_ACCOUNT_ID -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class AccountProviderID { - public static final String JSON_PROPERTY_PROVIDER_ID = "providerId"; - @jakarta.annotation.Nonnull private String providerId; - - public static final String JSON_PROPERTY_ACCOUNT_ID = "accountId"; - @jakarta.annotation.Nonnull private String accountId; - - public AccountProviderID() {} - - @JsonCreator - public AccountProviderID( - @JsonProperty(value = JSON_PROPERTY_PROVIDER_ID, required = true) String providerId, - @JsonProperty(value = JSON_PROPERTY_ACCOUNT_ID, required = true) String accountId) { - this.providerId = providerId; - this.accountId = accountId; - } - - public AccountProviderID providerId(@jakarta.annotation.Nonnull String providerId) { - this.providerId = providerId; - return this; - } - - /** - * The ID of the provider associated with the account. - * - * @return providerId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PROVIDER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getProviderId() { - return providerId; - } - - @JsonProperty(JSON_PROPERTY_PROVIDER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setProviderId(@jakarta.annotation.Nonnull String providerId) { - this.providerId = providerId; - } - - public AccountProviderID accountId(@jakarta.annotation.Nonnull String accountId) { - this.accountId = accountId; - return this; - } - - /** - * The ID of the account associated with the provider. - * - * @return accountId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getAccountId() { - return accountId; - } - - @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAccountId(@jakarta.annotation.Nonnull String accountId) { - this.accountId = accountId; - } - - /** Return true if this AccountProviderID object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AccountProviderID accountProviderID = (AccountProviderID) o; - return Objects.equals(this.providerId, accountProviderID.providerId) - && Objects.equals(this.accountId, accountProviderID.accountId); - } - - @Override - public int hashCode() { - return Objects.hash(providerId, accountId); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AccountProviderID {\n"); - sb.append(" providerId: ").append(toIndentedString(providerId)).append("\n"); - sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `providerId` to the URL query string - if (getProviderId() != null) { - joiner.add( - String.format( - "%sproviderId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getProviderId())))); - } - - // add `accountId` to the URL query string - if (getAccountId() != null) { - joiner.add( - String.format( - "%saccountId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAccountId())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/AccountReference.java b/src/main/java/com/fireblocks/sdk/model/AccountReference.java deleted file mode 100644 index d43facba..00000000 --- a/src/main/java/com/fireblocks/sdk/model/AccountReference.java +++ /dev/null @@ -1,337 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.core.JsonGenerator; -import com.fasterxml.jackson.core.JsonParser; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.core.JsonToken; -import com.fasterxml.jackson.databind.DeserializationContext; -import com.fasterxml.jackson.databind.JsonMappingException; -import com.fasterxml.jackson.databind.JsonNode; -import com.fasterxml.jackson.databind.MapperFeature; -import com.fasterxml.jackson.databind.SerializerProvider; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import com.fasterxml.jackson.databind.deser.std.StdDeserializer; -import com.fasterxml.jackson.databind.ser.std.StdSerializer; -import com.fireblocks.sdk.JSON; -import java.io.IOException; -import java.util.Collections; -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; -import java.util.StringJoiner; -import java.util.logging.Level; -import java.util.logging.Logger; - -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -@JsonDeserialize(using = AccountReference.AccountReferenceDeserializer.class) -@JsonSerialize(using = AccountReference.AccountReferenceSerializer.class) -public class AccountReference extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(AccountReference.class.getName()); - - public static class AccountReferenceSerializer extends StdSerializer { - public AccountReferenceSerializer(Class t) { - super(t); - } - - public AccountReferenceSerializer() { - this(null); - } - - @Override - public void serialize( - AccountReference value, JsonGenerator jgen, SerializerProvider provider) - throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); - } - } - - public static class AccountReferenceDeserializer extends StdDeserializer { - public AccountReferenceDeserializer() { - this(AccountReference.class); - } - - public AccountReferenceDeserializer(Class vc) { - super(vc); - } - - @Override - public AccountReference deserialize(JsonParser jp, DeserializationContext ctxt) - throws IOException, JsonProcessingException { - JsonNode tree = jp.readValueAsTree(); - Object deserialized = null; - boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); - int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); - // deserialize InternalReference - try { - boolean attemptParsing = true; - // ensure that we respect type coercion as set on the client ObjectMapper - if (InternalReference.class.equals(Integer.class) - || InternalReference.class.equals(Long.class) - || InternalReference.class.equals(Float.class) - || InternalReference.class.equals(Double.class) - || InternalReference.class.equals(Boolean.class) - || InternalReference.class.equals(String.class)) { - attemptParsing = typeCoercion; - if (!attemptParsing) { - attemptParsing |= - ((InternalReference.class.equals(Integer.class) - || InternalReference.class.equals(Long.class)) - && token == JsonToken.VALUE_NUMBER_INT); - attemptParsing |= - ((InternalReference.class.equals(Float.class) - || InternalReference.class.equals(Double.class)) - && token == JsonToken.VALUE_NUMBER_FLOAT); - attemptParsing |= - (InternalReference.class.equals(Boolean.class) - && (token == JsonToken.VALUE_FALSE - || token == JsonToken.VALUE_TRUE)); - attemptParsing |= - (InternalReference.class.equals(String.class) - && token == JsonToken.VALUE_STRING); - } - } - if (attemptParsing) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(InternalReference.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'InternalReference'"); - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'InternalReference'", e); - } - - // deserialize OneTimeAddressReference - try { - boolean attemptParsing = true; - // ensure that we respect type coercion as set on the client ObjectMapper - if (OneTimeAddressReference.class.equals(Integer.class) - || OneTimeAddressReference.class.equals(Long.class) - || OneTimeAddressReference.class.equals(Float.class) - || OneTimeAddressReference.class.equals(Double.class) - || OneTimeAddressReference.class.equals(Boolean.class) - || OneTimeAddressReference.class.equals(String.class)) { - attemptParsing = typeCoercion; - if (!attemptParsing) { - attemptParsing |= - ((OneTimeAddressReference.class.equals(Integer.class) - || OneTimeAddressReference.class.equals(Long.class)) - && token == JsonToken.VALUE_NUMBER_INT); - attemptParsing |= - ((OneTimeAddressReference.class.equals(Float.class) - || OneTimeAddressReference.class.equals( - Double.class)) - && token == JsonToken.VALUE_NUMBER_FLOAT); - attemptParsing |= - (OneTimeAddressReference.class.equals(Boolean.class) - && (token == JsonToken.VALUE_FALSE - || token == JsonToken.VALUE_TRUE)); - attemptParsing |= - (OneTimeAddressReference.class.equals(String.class) - && token == JsonToken.VALUE_STRING); - } - } - if (attemptParsing) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(OneTimeAddressReference.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'OneTimeAddressReference'"); - } - } catch (Exception e) { - // deserialization failed, continue - log.log( - Level.FINER, - "Input data does not match schema 'OneTimeAddressReference'", - e); - } - - if (match == 1) { - AccountReference ret = new AccountReference(); - ret.setActualInstance(deserialized); - return ret; - } - throw new IOException( - String.format( - "Failed deserialization for AccountReference: %d classes match result," - + " expected 1", - match)); - } - - /** Handle deserialization of the 'null' value. */ - @Override - public AccountReference getNullValue(DeserializationContext ctxt) - throws JsonMappingException { - throw new JsonMappingException(ctxt.getParser(), "AccountReference cannot be null"); - } - } - - // store a list of schema names defined in oneOf - public static final Map> schemas = new HashMap<>(); - - public AccountReference() { - super("oneOf", Boolean.FALSE); - } - - public AccountReference(InternalReference o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public AccountReference(OneTimeAddressReference o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("InternalReference", InternalReference.class); - schemas.put("OneTimeAddressReference", OneTimeAddressReference.class); - JSON.registerDescendants(AccountReference.class, Collections.unmodifiableMap(schemas)); - // Initialize and register the discriminator mappings. - Map> mappings = new HashMap>(); - mappings.put("EXCHANGE_ACCOUNT", InternalReference.class); - mappings.put("EXTERNAL_WALLET", InternalReference.class); - mappings.put("FIAT_ACCOUNT", InternalReference.class); - mappings.put("INTERNAL_WALLET", InternalReference.class); - mappings.put("ONE_TIME_ADDRESS", OneTimeAddressReference.class); - mappings.put("VAULT_ACCOUNT", InternalReference.class); - mappings.put("InternalReference", InternalReference.class); - mappings.put("OneTimeAddressReference", OneTimeAddressReference.class); - mappings.put("AccountReference", AccountReference.class); - JSON.registerDiscriminator(AccountReference.class, "type", mappings); - } - - @Override - public Map> getSchemas() { - return AccountReference.schemas; - } - - /** - * Set the instance that matches the oneOf child schema, check the instance parameter is valid - * against the oneOf child schemas: InternalReference, OneTimeAddressReference - * - *

It could be an instance of the 'oneOf' schemas. The oneOf child schemas may themselves be - * a composed schema (allOf, anyOf, oneOf). - */ - @Override - public void setActualInstance(Object instance) { - if (JSON.isInstanceOf(InternalReference.class, instance, new HashSet>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(OneTimeAddressReference.class, instance, new HashSet>())) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException( - "Invalid instance type. Must be InternalReference, OneTimeAddressReference"); - } - - /** - * Get the actual instance, which can be the following: InternalReference, - * OneTimeAddressReference - * - * @return The actual instance (InternalReference, OneTimeAddressReference) - */ - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `InternalReference`. If the actual instance is not - * `InternalReference`, the ClassCastException will be thrown. - * - * @return The actual instance of `InternalReference` - * @throws ClassCastException if the instance is not `InternalReference` - */ - public InternalReference getInternalReference() throws ClassCastException { - return (InternalReference) super.getActualInstance(); - } - - /** - * Get the actual instance of `OneTimeAddressReference`. If the actual instance is not - * `OneTimeAddressReference`, the ClassCastException will be thrown. - * - * @return The actual instance of `OneTimeAddressReference` - * @throws ClassCastException if the instance is not `OneTimeAddressReference` - */ - public OneTimeAddressReference getOneTimeAddressReference() throws ClassCastException { - return (OneTimeAddressReference) super.getActualInstance(); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - if (getActualInstance() instanceof InternalReference) { - if (getActualInstance() != null) { - joiner.add( - ((InternalReference) getActualInstance()) - .toUrlQueryString(prefix + "one_of_0" + suffix)); - } - return joiner.toString(); - } - if (getActualInstance() instanceof OneTimeAddressReference) { - if (getActualInstance() != null) { - joiner.add( - ((OneTimeAddressReference) getActualInstance()) - .toUrlQueryString(prefix + "one_of_1" + suffix)); - } - return joiner.toString(); - } - return null; - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/AccountType2.java b/src/main/java/com/fireblocks/sdk/model/AccountType2.java deleted file mode 100644 index 1414b340..00000000 --- a/src/main/java/com/fireblocks/sdk/model/AccountType2.java +++ /dev/null @@ -1,98 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - -/** Type of account */ -public enum AccountType2 { - EXCHANGE("EXCHANGE"), - - UNMANAGED("UNMANAGED"), - - VAULT("VAULT"), - - GLOBAL_WHITELIST("GLOBAL_WHITELIST"), - - NETWORK_CONNECTION("NETWORK_CONNECTION"), - - FIAT_ACCOUNT("FIAT_ACCOUNT"), - - CONNECTED_ACCOUNT("CONNECTED_ACCOUNT"), - - ONE_TIME_ADDRESS("ONE_TIME_ADDRESS"), - - SRC_DST_NA("SRC_DST_NA"), - - MULTIPLE_VENUES("MULTIPLE_VENUES"), - - END_USER_WALLET("END_USER_WALLET"), - - OEC_PARTNER("OEC_PARTNER"), - - CONTRACT("CONTRACT"), - - INTERNAL("INTERNAL"), - - EXTERNAL("EXTERNAL"), - - DAPP_CONNECTION("DAPP_CONNECTION"), - - UNKNOWN("UNKNOWN"), - - STAR("*"), - - ANY("ANY"); - - private String value; - - AccountType2(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static AccountType2 fromValue(String value) { - for (AccountType2 b : AccountType2.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - if (prefix == null) { - prefix = ""; - } - - return String.format("%s=%s", prefix, this.toString()); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/AchPaymentInfo.java b/src/main/java/com/fireblocks/sdk/model/AchPaymentInfo.java deleted file mode 100644 index 0e3c5af4..00000000 --- a/src/main/java/com/fireblocks/sdk/model/AchPaymentInfo.java +++ /dev/null @@ -1,557 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** ACH payment information for US Automated Clearing House transfers */ -@JsonPropertyOrder({ - AchPaymentInfo.JSON_PROPERTY_RAIL, - AchPaymentInfo.JSON_PROPERTY_ADDRESSING_SYSTEM, - AchPaymentInfo.JSON_PROPERTY_ACCOUNT_HOLDER_GIVEN_NAME, - AchPaymentInfo.JSON_PROPERTY_ACCOUNT_HOLDER_SURNAME, - AchPaymentInfo.JSON_PROPERTY_COUNTRY, - AchPaymentInfo.JSON_PROPERTY_ACCOUNT_NUMBER, - AchPaymentInfo.JSON_PROPERTY_ROUTING_NUMBER, - AchPaymentInfo.JSON_PROPERTY_ACCOUNT_TYPE -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class AchPaymentInfo { - /** The payment rail type for ACH transfers */ - public enum RailEnum { - ACH(String.valueOf("ACH")); - - private String value; - - RailEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static RailEnum fromValue(String value) { - for (RailEnum b : RailEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_RAIL = "rail"; - @jakarta.annotation.Nonnull private RailEnum rail; - - /** The addressing system used for ACH transfers */ - public enum AddressingSystemEnum { - ACH(String.valueOf("ACH")); - - private String value; - - AddressingSystemEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static AddressingSystemEnum fromValue(String value) { - for (AddressingSystemEnum b : AddressingSystemEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_ADDRESSING_SYSTEM = "addressingSystem"; - @jakarta.annotation.Nonnull private AddressingSystemEnum addressingSystem; - - public static final String JSON_PROPERTY_ACCOUNT_HOLDER_GIVEN_NAME = "accountHolderGivenName"; - @jakarta.annotation.Nonnull private String accountHolderGivenName; - - public static final String JSON_PROPERTY_ACCOUNT_HOLDER_SURNAME = "accountHolderSurname"; - @jakarta.annotation.Nonnull private String accountHolderSurname; - - public static final String JSON_PROPERTY_COUNTRY = "country"; - @jakarta.annotation.Nonnull private String country; - - public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; - @jakarta.annotation.Nonnull private String accountNumber; - - public static final String JSON_PROPERTY_ROUTING_NUMBER = "routingNumber"; - @jakarta.annotation.Nonnull private String routingNumber; - - /** The type of bank account */ - public enum AccountTypeEnum { - CHECKING(String.valueOf("CHECKING")), - - SAVINGS(String.valueOf("SAVINGS")); - - private String value; - - AccountTypeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static AccountTypeEnum fromValue(String value) { - for (AccountTypeEnum b : AccountTypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_ACCOUNT_TYPE = "accountType"; - @jakarta.annotation.Nonnull private AccountTypeEnum accountType; - - public AchPaymentInfo() {} - - @JsonCreator - public AchPaymentInfo( - @JsonProperty(value = JSON_PROPERTY_RAIL, required = true) RailEnum rail, - @JsonProperty(value = JSON_PROPERTY_ADDRESSING_SYSTEM, required = true) - AddressingSystemEnum addressingSystem, - @JsonProperty(value = JSON_PROPERTY_ACCOUNT_HOLDER_GIVEN_NAME, required = true) - String accountHolderGivenName, - @JsonProperty(value = JSON_PROPERTY_ACCOUNT_HOLDER_SURNAME, required = true) - String accountHolderSurname, - @JsonProperty(value = JSON_PROPERTY_COUNTRY, required = true) String country, - @JsonProperty(value = JSON_PROPERTY_ACCOUNT_NUMBER, required = true) - String accountNumber, - @JsonProperty(value = JSON_PROPERTY_ROUTING_NUMBER, required = true) - String routingNumber, - @JsonProperty(value = JSON_PROPERTY_ACCOUNT_TYPE, required = true) - AccountTypeEnum accountType) { - this.rail = rail; - this.addressingSystem = addressingSystem; - this.accountHolderGivenName = accountHolderGivenName; - this.accountHolderSurname = accountHolderSurname; - this.country = country; - this.accountNumber = accountNumber; - this.routingNumber = routingNumber; - this.accountType = accountType; - } - - public AchPaymentInfo rail(@jakarta.annotation.Nonnull RailEnum rail) { - this.rail = rail; - return this; - } - - /** - * The payment rail type for ACH transfers - * - * @return rail - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_RAIL) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public RailEnum getRail() { - return rail; - } - - @JsonProperty(JSON_PROPERTY_RAIL) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setRail(@jakarta.annotation.Nonnull RailEnum rail) { - this.rail = rail; - } - - public AchPaymentInfo addressingSystem( - @jakarta.annotation.Nonnull AddressingSystemEnum addressingSystem) { - this.addressingSystem = addressingSystem; - return this; - } - - /** - * The addressing system used for ACH transfers - * - * @return addressingSystem - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ADDRESSING_SYSTEM) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AddressingSystemEnum getAddressingSystem() { - return addressingSystem; - } - - @JsonProperty(JSON_PROPERTY_ADDRESSING_SYSTEM) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAddressingSystem( - @jakarta.annotation.Nonnull AddressingSystemEnum addressingSystem) { - this.addressingSystem = addressingSystem; - } - - public AchPaymentInfo accountHolderGivenName( - @jakarta.annotation.Nonnull String accountHolderGivenName) { - this.accountHolderGivenName = accountHolderGivenName; - return this; - } - - /** - * The given name (first name) of the account holder - * - * @return accountHolderGivenName - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_GIVEN_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getAccountHolderGivenName() { - return accountHolderGivenName; - } - - @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_GIVEN_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAccountHolderGivenName( - @jakarta.annotation.Nonnull String accountHolderGivenName) { - this.accountHolderGivenName = accountHolderGivenName; - } - - public AchPaymentInfo accountHolderSurname( - @jakarta.annotation.Nonnull String accountHolderSurname) { - this.accountHolderSurname = accountHolderSurname; - return this; - } - - /** - * The surname (last name) of the account holder - * - * @return accountHolderSurname - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_SURNAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getAccountHolderSurname() { - return accountHolderSurname; - } - - @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_SURNAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAccountHolderSurname(@jakarta.annotation.Nonnull String accountHolderSurname) { - this.accountHolderSurname = accountHolderSurname; - } - - public AchPaymentInfo country(@jakarta.annotation.Nonnull String country) { - this.country = country; - return this; - } - - /** - * The country for the transfer (ISO 3166-1 alpha-2 code) - * - * @return country - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_COUNTRY) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getCountry() { - return country; - } - - @JsonProperty(JSON_PROPERTY_COUNTRY) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCountry(@jakarta.annotation.Nonnull String country) { - this.country = country; - } - - public AchPaymentInfo accountNumber(@jakarta.annotation.Nonnull String accountNumber) { - this.accountNumber = accountNumber; - return this; - } - - /** - * The bank account number - * - * @return accountNumber - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getAccountNumber() { - return accountNumber; - } - - @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAccountNumber(@jakarta.annotation.Nonnull String accountNumber) { - this.accountNumber = accountNumber; - } - - public AchPaymentInfo routingNumber(@jakarta.annotation.Nonnull String routingNumber) { - this.routingNumber = routingNumber; - return this; - } - - /** - * The bank routing number (ABA routing number) - * - * @return routingNumber - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ROUTING_NUMBER) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getRoutingNumber() { - return routingNumber; - } - - @JsonProperty(JSON_PROPERTY_ROUTING_NUMBER) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setRoutingNumber(@jakarta.annotation.Nonnull String routingNumber) { - this.routingNumber = routingNumber; - } - - public AchPaymentInfo accountType(@jakarta.annotation.Nonnull AccountTypeEnum accountType) { - this.accountType = accountType; - return this; - } - - /** - * The type of bank account - * - * @return accountType - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ACCOUNT_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccountTypeEnum getAccountType() { - return accountType; - } - - @JsonProperty(JSON_PROPERTY_ACCOUNT_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAccountType(@jakarta.annotation.Nonnull AccountTypeEnum accountType) { - this.accountType = accountType; - } - - /** Return true if this AchPaymentInfo object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AchPaymentInfo achPaymentInfo = (AchPaymentInfo) o; - return Objects.equals(this.rail, achPaymentInfo.rail) - && Objects.equals(this.addressingSystem, achPaymentInfo.addressingSystem) - && Objects.equals( - this.accountHolderGivenName, achPaymentInfo.accountHolderGivenName) - && Objects.equals(this.accountHolderSurname, achPaymentInfo.accountHolderSurname) - && Objects.equals(this.country, achPaymentInfo.country) - && Objects.equals(this.accountNumber, achPaymentInfo.accountNumber) - && Objects.equals(this.routingNumber, achPaymentInfo.routingNumber) - && Objects.equals(this.accountType, achPaymentInfo.accountType); - } - - @Override - public int hashCode() { - return Objects.hash( - rail, - addressingSystem, - accountHolderGivenName, - accountHolderSurname, - country, - accountNumber, - routingNumber, - accountType); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AchPaymentInfo {\n"); - sb.append(" rail: ").append(toIndentedString(rail)).append("\n"); - sb.append(" addressingSystem: ").append(toIndentedString(addressingSystem)).append("\n"); - sb.append(" accountHolderGivenName: ") - .append(toIndentedString(accountHolderGivenName)) - .append("\n"); - sb.append(" accountHolderSurname: ") - .append(toIndentedString(accountHolderSurname)) - .append("\n"); - sb.append(" country: ").append(toIndentedString(country)).append("\n"); - sb.append(" accountNumber: ").append(toIndentedString(accountNumber)).append("\n"); - sb.append(" routingNumber: ").append(toIndentedString(routingNumber)).append("\n"); - sb.append(" accountType: ").append(toIndentedString(accountType)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `rail` to the URL query string - if (getRail() != null) { - joiner.add( - String.format( - "%srail%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getRail())))); - } - - // add `addressingSystem` to the URL query string - if (getAddressingSystem() != null) { - joiner.add( - String.format( - "%saddressingSystem%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAddressingSystem())))); - } - - // add `accountHolderGivenName` to the URL query string - if (getAccountHolderGivenName() != null) { - joiner.add( - String.format( - "%saccountHolderGivenName%s=%s", - prefix, - suffix, - ApiClient.urlEncode( - ApiClient.valueToString(getAccountHolderGivenName())))); - } - - // add `accountHolderSurname` to the URL query string - if (getAccountHolderSurname() != null) { - joiner.add( - String.format( - "%saccountHolderSurname%s=%s", - prefix, - suffix, - ApiClient.urlEncode( - ApiClient.valueToString(getAccountHolderSurname())))); - } - - // add `country` to the URL query string - if (getCountry() != null) { - joiner.add( - String.format( - "%scountry%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getCountry())))); - } - - // add `accountNumber` to the URL query string - if (getAccountNumber() != null) { - joiner.add( - String.format( - "%saccountNumber%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAccountNumber())))); - } - - // add `routingNumber` to the URL query string - if (getRoutingNumber() != null) { - joiner.add( - String.format( - "%sroutingNumber%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getRoutingNumber())))); - } - - // add `accountType` to the URL query string - if (getAccountType() != null) { - joiner.add( - String.format( - "%saccountType%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAccountType())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/AdapterProcessingResult.java b/src/main/java/com/fireblocks/sdk/model/AdapterProcessingResult.java deleted file mode 100644 index 37efe762..00000000 --- a/src/main/java/com/fireblocks/sdk/model/AdapterProcessingResult.java +++ /dev/null @@ -1,192 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** AdapterProcessingResult */ -@JsonPropertyOrder({ - AdapterProcessingResult.JSON_PROPERTY_INPUT_TOKEN_LINK_ID, - AdapterProcessingResult.JSON_PROPERTY_ADAPTER_LINK_ID -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class AdapterProcessingResult { - public static final String JSON_PROPERTY_INPUT_TOKEN_LINK_ID = "inputTokenLinkId"; - @jakarta.annotation.Nonnull private String inputTokenLinkId; - - public static final String JSON_PROPERTY_ADAPTER_LINK_ID = "adapterLinkId"; - @jakarta.annotation.Nonnull private String adapterLinkId; - - public AdapterProcessingResult() {} - - @JsonCreator - public AdapterProcessingResult( - @JsonProperty(value = JSON_PROPERTY_INPUT_TOKEN_LINK_ID, required = true) - String inputTokenLinkId, - @JsonProperty(value = JSON_PROPERTY_ADAPTER_LINK_ID, required = true) - String adapterLinkId) { - this.inputTokenLinkId = inputTokenLinkId; - this.adapterLinkId = adapterLinkId; - } - - public AdapterProcessingResult inputTokenLinkId( - @jakarta.annotation.Nonnull String inputTokenLinkId) { - this.inputTokenLinkId = inputTokenLinkId; - return this; - } - - /** - * The input token link ID - * - * @return inputTokenLinkId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_INPUT_TOKEN_LINK_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getInputTokenLinkId() { - return inputTokenLinkId; - } - - @JsonProperty(JSON_PROPERTY_INPUT_TOKEN_LINK_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setInputTokenLinkId(@jakarta.annotation.Nonnull String inputTokenLinkId) { - this.inputTokenLinkId = inputTokenLinkId; - } - - public AdapterProcessingResult adapterLinkId(@jakarta.annotation.Nonnull String adapterLinkId) { - this.adapterLinkId = adapterLinkId; - return this; - } - - /** - * The adapter link ID - * - * @return adapterLinkId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ADAPTER_LINK_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getAdapterLinkId() { - return adapterLinkId; - } - - @JsonProperty(JSON_PROPERTY_ADAPTER_LINK_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAdapterLinkId(@jakarta.annotation.Nonnull String adapterLinkId) { - this.adapterLinkId = adapterLinkId; - } - - /** Return true if this AdapterProcessingResult object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AdapterProcessingResult adapterProcessingResult = (AdapterProcessingResult) o; - return Objects.equals(this.inputTokenLinkId, adapterProcessingResult.inputTokenLinkId) - && Objects.equals(this.adapterLinkId, adapterProcessingResult.adapterLinkId); - } - - @Override - public int hashCode() { - return Objects.hash(inputTokenLinkId, adapterLinkId); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AdapterProcessingResult {\n"); - sb.append(" inputTokenLinkId: ").append(toIndentedString(inputTokenLinkId)).append("\n"); - sb.append(" adapterLinkId: ").append(toIndentedString(adapterLinkId)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `inputTokenLinkId` to the URL query string - if (getInputTokenLinkId() != null) { - joiner.add( - String.format( - "%sinputTokenLinkId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getInputTokenLinkId())))); - } - - // add `adapterLinkId` to the URL query string - if (getAdapterLinkId() != null) { - joiner.add( - String.format( - "%sadapterLinkId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAdapterLinkId())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/AddAbiRequestDto.java b/src/main/java/com/fireblocks/sdk/model/AddAbiRequestDto.java deleted file mode 100644 index e38712a7..00000000 --- a/src/main/java/com/fireblocks/sdk/model/AddAbiRequestDto.java +++ /dev/null @@ -1,292 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** AddAbiRequestDto */ -@JsonPropertyOrder({ - AddAbiRequestDto.JSON_PROPERTY_CONTRACT_ADDRESS, - AddAbiRequestDto.JSON_PROPERTY_BASE_ASSET_ID, - AddAbiRequestDto.JSON_PROPERTY_ABI, - AddAbiRequestDto.JSON_PROPERTY_NAME -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class AddAbiRequestDto { - public static final String JSON_PROPERTY_CONTRACT_ADDRESS = "contractAddress"; - @jakarta.annotation.Nonnull private String contractAddress; - - public static final String JSON_PROPERTY_BASE_ASSET_ID = "baseAssetId"; - @jakarta.annotation.Nonnull private String baseAssetId; - - public static final String JSON_PROPERTY_ABI = "abi"; - @jakarta.annotation.Nonnull private List abi = new ArrayList<>(); - - public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nullable private String name; - - public AddAbiRequestDto() {} - - @JsonCreator - public AddAbiRequestDto( - @JsonProperty(value = JSON_PROPERTY_CONTRACT_ADDRESS, required = true) - String contractAddress, - @JsonProperty(value = JSON_PROPERTY_BASE_ASSET_ID, required = true) String baseAssetId, - @JsonProperty(value = JSON_PROPERTY_ABI, required = true) List abi) { - this.contractAddress = contractAddress; - this.baseAssetId = baseAssetId; - this.abi = abi; - } - - public AddAbiRequestDto contractAddress(@jakarta.annotation.Nonnull String contractAddress) { - this.contractAddress = contractAddress; - return this; - } - - /** - * The address of deployed contract - * - * @return contractAddress - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CONTRACT_ADDRESS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getContractAddress() { - return contractAddress; - } - - @JsonProperty(JSON_PROPERTY_CONTRACT_ADDRESS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setContractAddress(@jakarta.annotation.Nonnull String contractAddress) { - this.contractAddress = contractAddress; - } - - public AddAbiRequestDto baseAssetId(@jakarta.annotation.Nonnull String baseAssetId) { - this.baseAssetId = baseAssetId; - return this; - } - - /** - * The blockchain base assetId - * - * @return baseAssetId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BASE_ASSET_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getBaseAssetId() { - return baseAssetId; - } - - @JsonProperty(JSON_PROPERTY_BASE_ASSET_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBaseAssetId(@jakarta.annotation.Nonnull String baseAssetId) { - this.baseAssetId = baseAssetId; - } - - public AddAbiRequestDto abi(@jakarta.annotation.Nonnull List abi) { - this.abi = abi; - return this; - } - - public AddAbiRequestDto addAbiItem(AbiFunction abiItem) { - if (this.abi == null) { - this.abi = new ArrayList<>(); - } - this.abi.add(abiItem); - return this; - } - - /** - * The ABI of the contract - * - * @return abi - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ABI) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getAbi() { - return abi; - } - - @JsonProperty(JSON_PROPERTY_ABI) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAbi(@jakarta.annotation.Nonnull List abi) { - this.abi = abi; - } - - public AddAbiRequestDto name(@jakarta.annotation.Nullable String name) { - this.name = name; - return this; - } - - /** - * The name of the contract - * - * @return name - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getName() { - return name; - } - - @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(@jakarta.annotation.Nullable String name) { - this.name = name; - } - - /** Return true if this AddAbiRequestDto object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AddAbiRequestDto addAbiRequestDto = (AddAbiRequestDto) o; - return Objects.equals(this.contractAddress, addAbiRequestDto.contractAddress) - && Objects.equals(this.baseAssetId, addAbiRequestDto.baseAssetId) - && Objects.equals(this.abi, addAbiRequestDto.abi) - && Objects.equals(this.name, addAbiRequestDto.name); - } - - @Override - public int hashCode() { - return Objects.hash(contractAddress, baseAssetId, abi, name); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AddAbiRequestDto {\n"); - sb.append(" contractAddress: ").append(toIndentedString(contractAddress)).append("\n"); - sb.append(" baseAssetId: ").append(toIndentedString(baseAssetId)).append("\n"); - sb.append(" abi: ").append(toIndentedString(abi)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `contractAddress` to the URL query string - if (getContractAddress() != null) { - joiner.add( - String.format( - "%scontractAddress%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getContractAddress())))); - } - - // add `baseAssetId` to the URL query string - if (getBaseAssetId() != null) { - joiner.add( - String.format( - "%sbaseAssetId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBaseAssetId())))); - } - - // add `abi` to the URL query string - if (getAbi() != null) { - for (int i = 0; i < getAbi().size(); i++) { - if (getAbi().get(i) != null) { - joiner.add( - getAbi().get(i) - .toUrlQueryString( - String.format( - "%sabi%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } - } - - // add `name` to the URL query string - if (getName() != null) { - joiner.add( - String.format( - "%sname%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getName())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequest.java b/src/main/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequest.java index 1af1273e..e29dc439 100644 --- a/src/main/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequest.java @@ -86,90 +86,106 @@ public AddAssetToExternalWalletRequest deserialize( boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); int match = 0; JsonToken token = tree.traverse(jp.getCodec()).nextToken(); - // deserialize AdditionalInfoRequest + // deserialize AddAssetToExternalWalletRequestOneOf try { boolean attemptParsing = true; // ensure that we respect type coercion as set on the client ObjectMapper - if (AdditionalInfoRequest.class.equals(Integer.class) - || AdditionalInfoRequest.class.equals(Long.class) - || AdditionalInfoRequest.class.equals(Float.class) - || AdditionalInfoRequest.class.equals(Double.class) - || AdditionalInfoRequest.class.equals(Boolean.class) - || AdditionalInfoRequest.class.equals(String.class)) { + if (AddAssetToExternalWalletRequestOneOf.class.equals(Integer.class) + || AddAssetToExternalWalletRequestOneOf.class.equals(Long.class) + || AddAssetToExternalWalletRequestOneOf.class.equals(Float.class) + || AddAssetToExternalWalletRequestOneOf.class.equals(Double.class) + || AddAssetToExternalWalletRequestOneOf.class.equals(Boolean.class) + || AddAssetToExternalWalletRequestOneOf.class.equals(String.class)) { attemptParsing = typeCoercion; if (!attemptParsing) { attemptParsing |= - ((AdditionalInfoRequest.class.equals(Integer.class) - || AdditionalInfoRequest.class.equals(Long.class)) + ((AddAssetToExternalWalletRequestOneOf.class.equals(Integer.class) + || AddAssetToExternalWalletRequestOneOf.class + .equals(Long.class)) && token == JsonToken.VALUE_NUMBER_INT); attemptParsing |= - ((AdditionalInfoRequest.class.equals(Float.class) - || AdditionalInfoRequest.class.equals(Double.class)) + ((AddAssetToExternalWalletRequestOneOf.class.equals(Float.class) + || AddAssetToExternalWalletRequestOneOf.class + .equals(Double.class)) && token == JsonToken.VALUE_NUMBER_FLOAT); attemptParsing |= - (AdditionalInfoRequest.class.equals(Boolean.class) + (AddAssetToExternalWalletRequestOneOf.class.equals(Boolean.class) && (token == JsonToken.VALUE_FALSE || token == JsonToken.VALUE_TRUE)); attemptParsing |= - (AdditionalInfoRequest.class.equals(String.class) + (AddAssetToExternalWalletRequestOneOf.class.equals(String.class) && token == JsonToken.VALUE_STRING); } } if (attemptParsing) { deserialized = - tree.traverse(jp.getCodec()).readValueAs(AdditionalInfoRequest.class); + tree.traverse(jp.getCodec()) + .readValueAs(AddAssetToExternalWalletRequestOneOf.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. match++; - log.log(Level.FINER, "Input data matches schema 'AdditionalInfoRequest'"); + log.log( + Level.FINER, + "Input data matches schema 'AddAssetToExternalWalletRequestOneOf'"); } } catch (Exception e) { // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'AdditionalInfoRequest'", e); + log.log( + Level.FINER, + "Input data does not match schema 'AddAssetToExternalWalletRequestOneOf'", + e); } - // deserialize BasicAddressRequest + // deserialize AddAssetToExternalWalletRequestOneOf1 try { boolean attemptParsing = true; // ensure that we respect type coercion as set on the client ObjectMapper - if (BasicAddressRequest.class.equals(Integer.class) - || BasicAddressRequest.class.equals(Long.class) - || BasicAddressRequest.class.equals(Float.class) - || BasicAddressRequest.class.equals(Double.class) - || BasicAddressRequest.class.equals(Boolean.class) - || BasicAddressRequest.class.equals(String.class)) { + if (AddAssetToExternalWalletRequestOneOf1.class.equals(Integer.class) + || AddAssetToExternalWalletRequestOneOf1.class.equals(Long.class) + || AddAssetToExternalWalletRequestOneOf1.class.equals(Float.class) + || AddAssetToExternalWalletRequestOneOf1.class.equals(Double.class) + || AddAssetToExternalWalletRequestOneOf1.class.equals(Boolean.class) + || AddAssetToExternalWalletRequestOneOf1.class.equals(String.class)) { attemptParsing = typeCoercion; if (!attemptParsing) { attemptParsing |= - ((BasicAddressRequest.class.equals(Integer.class) - || BasicAddressRequest.class.equals(Long.class)) + ((AddAssetToExternalWalletRequestOneOf1.class.equals(Integer.class) + || AddAssetToExternalWalletRequestOneOf1.class + .equals(Long.class)) && token == JsonToken.VALUE_NUMBER_INT); attemptParsing |= - ((BasicAddressRequest.class.equals(Float.class) - || BasicAddressRequest.class.equals(Double.class)) + ((AddAssetToExternalWalletRequestOneOf1.class.equals(Float.class) + || AddAssetToExternalWalletRequestOneOf1.class + .equals(Double.class)) && token == JsonToken.VALUE_NUMBER_FLOAT); attemptParsing |= - (BasicAddressRequest.class.equals(Boolean.class) + (AddAssetToExternalWalletRequestOneOf1.class.equals(Boolean.class) && (token == JsonToken.VALUE_FALSE || token == JsonToken.VALUE_TRUE)); attemptParsing |= - (BasicAddressRequest.class.equals(String.class) + (AddAssetToExternalWalletRequestOneOf1.class.equals(String.class) && token == JsonToken.VALUE_STRING); } } if (attemptParsing) { deserialized = - tree.traverse(jp.getCodec()).readValueAs(BasicAddressRequest.class); + tree.traverse(jp.getCodec()) + .readValueAs(AddAssetToExternalWalletRequestOneOf1.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. match++; - log.log(Level.FINER, "Input data matches schema 'BasicAddressRequest'"); + log.log( + Level.FINER, + "Input data matches schema 'AddAssetToExternalWalletRequestOneOf1'"); } } catch (Exception e) { // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'BasicAddressRequest'", e); + log.log( + Level.FINER, + "Input data does not match schema 'AddAssetToExternalWalletRequestOneOf1'", + e); } if (match == 1) { @@ -200,19 +216,22 @@ public AddAssetToExternalWalletRequest() { super("oneOf", Boolean.FALSE); } - public AddAssetToExternalWalletRequest(AdditionalInfoRequest o) { + public AddAssetToExternalWalletRequest(AddAssetToExternalWalletRequestOneOf o) { super("oneOf", Boolean.FALSE); setActualInstance(o); } - public AddAssetToExternalWalletRequest(BasicAddressRequest o) { + public AddAssetToExternalWalletRequest(AddAssetToExternalWalletRequestOneOf1 o) { super("oneOf", Boolean.FALSE); setActualInstance(o); } static { - schemas.put("AdditionalInfoRequest", AdditionalInfoRequest.class); - schemas.put("BasicAddressRequest", BasicAddressRequest.class); + schemas.put( + "AddAssetToExternalWalletRequestOneOf", AddAssetToExternalWalletRequestOneOf.class); + schemas.put( + "AddAssetToExternalWalletRequestOneOf1", + AddAssetToExternalWalletRequestOneOf1.class); JSON.registerDescendants( AddAssetToExternalWalletRequest.class, Collections.unmodifiableMap(schemas)); } @@ -224,32 +243,37 @@ public Map> getSchemas() { /** * Set the instance that matches the oneOf child schema, check the instance parameter is valid - * against the oneOf child schemas: AdditionalInfoRequest, BasicAddressRequest + * against the oneOf child schemas: AddAssetToExternalWalletRequestOneOf, + * AddAssetToExternalWalletRequestOneOf1 * *

It could be an instance of the 'oneOf' schemas. The oneOf child schemas may themselves be * a composed schema (allOf, anyOf, oneOf). */ @Override public void setActualInstance(Object instance) { - if (JSON.isInstanceOf(AdditionalInfoRequest.class, instance, new HashSet>())) { + if (JSON.isInstanceOf( + AddAssetToExternalWalletRequestOneOf.class, instance, new HashSet>())) { super.setActualInstance(instance); return; } - if (JSON.isInstanceOf(BasicAddressRequest.class, instance, new HashSet>())) { + if (JSON.isInstanceOf( + AddAssetToExternalWalletRequestOneOf1.class, instance, new HashSet>())) { super.setActualInstance(instance); return; } throw new RuntimeException( - "Invalid instance type. Must be AdditionalInfoRequest, BasicAddressRequest"); + "Invalid instance type. Must be AddAssetToExternalWalletRequestOneOf," + + " AddAssetToExternalWalletRequestOneOf1"); } /** - * Get the actual instance, which can be the following: AdditionalInfoRequest, - * BasicAddressRequest + * Get the actual instance, which can be the following: AddAssetToExternalWalletRequestOneOf, + * AddAssetToExternalWalletRequestOneOf1 * - * @return The actual instance (AdditionalInfoRequest, BasicAddressRequest) + * @return The actual instance (AddAssetToExternalWalletRequestOneOf, + * AddAssetToExternalWalletRequestOneOf1) */ @Override public Object getActualInstance() { @@ -257,25 +281,27 @@ public Object getActualInstance() { } /** - * Get the actual instance of `AdditionalInfoRequest`. If the actual instance is not - * `AdditionalInfoRequest`, the ClassCastException will be thrown. + * Get the actual instance of `AddAssetToExternalWalletRequestOneOf`. If the actual instance is + * not `AddAssetToExternalWalletRequestOneOf`, the ClassCastException will be thrown. * - * @return The actual instance of `AdditionalInfoRequest` - * @throws ClassCastException if the instance is not `AdditionalInfoRequest` + * @return The actual instance of `AddAssetToExternalWalletRequestOneOf` + * @throws ClassCastException if the instance is not `AddAssetToExternalWalletRequestOneOf` */ - public AdditionalInfoRequest getAdditionalInfoRequest() throws ClassCastException { - return (AdditionalInfoRequest) super.getActualInstance(); + public AddAssetToExternalWalletRequestOneOf getAddAssetToExternalWalletRequestOneOf() + throws ClassCastException { + return (AddAssetToExternalWalletRequestOneOf) super.getActualInstance(); } /** - * Get the actual instance of `BasicAddressRequest`. If the actual instance is not - * `BasicAddressRequest`, the ClassCastException will be thrown. + * Get the actual instance of `AddAssetToExternalWalletRequestOneOf1`. If the actual instance is + * not `AddAssetToExternalWalletRequestOneOf1`, the ClassCastException will be thrown. * - * @return The actual instance of `BasicAddressRequest` - * @throws ClassCastException if the instance is not `BasicAddressRequest` + * @return The actual instance of `AddAssetToExternalWalletRequestOneOf1` + * @throws ClassCastException if the instance is not `AddAssetToExternalWalletRequestOneOf1` */ - public BasicAddressRequest getBasicAddressRequest() throws ClassCastException { - return (BasicAddressRequest) super.getActualInstance(); + public AddAssetToExternalWalletRequestOneOf1 getAddAssetToExternalWalletRequestOneOf1() + throws ClassCastException { + return (AddAssetToExternalWalletRequestOneOf1) super.getActualInstance(); } /** @@ -310,18 +336,18 @@ public String toUrlQueryString(String prefix) { StringJoiner joiner = new StringJoiner("&"); - if (getActualInstance() instanceof BasicAddressRequest) { + if (getActualInstance() instanceof AddAssetToExternalWalletRequestOneOf) { if (getActualInstance() != null) { joiner.add( - ((BasicAddressRequest) getActualInstance()) + ((AddAssetToExternalWalletRequestOneOf) getActualInstance()) .toUrlQueryString(prefix + "one_of_0" + suffix)); } return joiner.toString(); } - if (getActualInstance() instanceof AdditionalInfoRequest) { + if (getActualInstance() instanceof AddAssetToExternalWalletRequestOneOf1) { if (getActualInstance() != null) { joiner.add( - ((AdditionalInfoRequest) getActualInstance()) + ((AddAssetToExternalWalletRequestOneOf1) getActualInstance()) .toUrlQueryString(prefix + "one_of_1" + suffix)); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/BasicAddressRequest.java b/src/main/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOf.java similarity index 82% rename from src/main/java/com/fireblocks/sdk/model/BasicAddressRequest.java rename to src/main/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOf.java index ff1fc883..9ace6840 100644 --- a/src/main/java/com/fireblocks/sdk/model/BasicAddressRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOf.java @@ -21,36 +21,37 @@ import java.util.Objects; import java.util.StringJoiner; -/** Basic external wallet request with address information */ +/** AddAssetToExternalWalletRequestOneOf */ @JsonPropertyOrder({ - BasicAddressRequest.JSON_PROPERTY_ADDRESS, - BasicAddressRequest.JSON_PROPERTY_TAG + AddAssetToExternalWalletRequestOneOf.JSON_PROPERTY_ADDRESS, + AddAssetToExternalWalletRequestOneOf.JSON_PROPERTY_TAG }) @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") -public class BasicAddressRequest { +public class AddAssetToExternalWalletRequestOneOf { public static final String JSON_PROPERTY_ADDRESS = "address"; @jakarta.annotation.Nonnull private String address; public static final String JSON_PROPERTY_TAG = "tag"; @jakarta.annotation.Nullable private String tag; - public BasicAddressRequest() {} + public AddAssetToExternalWalletRequestOneOf() {} @JsonCreator - public BasicAddressRequest( + public AddAssetToExternalWalletRequestOneOf( @JsonProperty(value = JSON_PROPERTY_ADDRESS, required = true) String address) { this.address = address; } - public BasicAddressRequest address(@jakarta.annotation.Nonnull String address) { + public AddAssetToExternalWalletRequestOneOf address( + @jakarta.annotation.Nonnull String address) { this.address = address; return this; } /** - * The wallet's address (or xpub) of the external wallet + * The wallet's address (or xpub) of the wallet * * @return address */ @@ -67,7 +68,7 @@ public void setAddress(@jakarta.annotation.Nonnull String address) { this.address = address; } - public BasicAddressRequest tag(@jakarta.annotation.Nullable String tag) { + public AddAssetToExternalWalletRequestOneOf tag(@jakarta.annotation.Nullable String tag) { this.tag = tag; return this; } @@ -91,7 +92,7 @@ public void setTag(@jakarta.annotation.Nullable String tag) { this.tag = tag; } - /** Return true if this BasicAddressRequest object is equal to o. */ + /** Return true if this AddAssetToExternalWalletRequest_oneOf object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -100,9 +101,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - BasicAddressRequest basicAddressRequest = (BasicAddressRequest) o; - return Objects.equals(this.address, basicAddressRequest.address) - && Objects.equals(this.tag, basicAddressRequest.tag); + AddAssetToExternalWalletRequestOneOf addAssetToExternalWalletRequestOneOf = + (AddAssetToExternalWalletRequestOneOf) o; + return Objects.equals(this.address, addAssetToExternalWalletRequestOneOf.address) + && Objects.equals(this.tag, addAssetToExternalWalletRequestOneOf.tag); } @Override @@ -113,7 +115,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class BasicAddressRequest {\n"); + sb.append("class AddAssetToExternalWalletRequestOneOf {\n"); sb.append(" address: ").append(toIndentedString(address)).append("\n"); sb.append(" tag: ").append(toIndentedString(tag)).append("\n"); sb.append("}"); diff --git a/src/main/java/com/fireblocks/sdk/model/AdditionalInfoRequest.java b/src/main/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOf1.java similarity index 72% rename from src/main/java/com/fireblocks/sdk/model/AdditionalInfoRequest.java rename to src/main/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOf1.java index 25ea936a..6dae7ac8 100644 --- a/src/main/java/com/fireblocks/sdk/model/AdditionalInfoRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOf1.java @@ -20,26 +20,29 @@ import java.util.Objects; import java.util.StringJoiner; -/** External wallet request with additional payment information for various payment rails */ -@JsonPropertyOrder({AdditionalInfoRequest.JSON_PROPERTY_ADDITIONAL_INFO}) +/** AddAssetToExternalWalletRequestOneOf1 */ +@JsonPropertyOrder({AddAssetToExternalWalletRequestOneOf1.JSON_PROPERTY_ADDITIONAL_INFO}) @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") -public class AdditionalInfoRequest { +public class AddAssetToExternalWalletRequestOneOf1 { public static final String JSON_PROPERTY_ADDITIONAL_INFO = "additionalInfo"; - @jakarta.annotation.Nonnull private AdditionalInfoRequestAdditionalInfo additionalInfo; - public AdditionalInfoRequest() {} + @jakarta.annotation.Nonnull + private AddAssetToExternalWalletRequestOneOf1AdditionalInfo additionalInfo; + + public AddAssetToExternalWalletRequestOneOf1() {} @JsonCreator - public AdditionalInfoRequest( + public AddAssetToExternalWalletRequestOneOf1( @JsonProperty(value = JSON_PROPERTY_ADDITIONAL_INFO, required = true) - AdditionalInfoRequestAdditionalInfo additionalInfo) { + AddAssetToExternalWalletRequestOneOf1AdditionalInfo additionalInfo) { this.additionalInfo = additionalInfo; } - public AdditionalInfoRequest additionalInfo( - @jakarta.annotation.Nonnull AdditionalInfoRequestAdditionalInfo additionalInfo) { + public AddAssetToExternalWalletRequestOneOf1 additionalInfo( + @jakarta.annotation.Nonnull + AddAssetToExternalWalletRequestOneOf1AdditionalInfo additionalInfo) { this.additionalInfo = additionalInfo; return this; } @@ -52,18 +55,19 @@ public AdditionalInfoRequest additionalInfo( @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ADDITIONAL_INFO) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AdditionalInfoRequestAdditionalInfo getAdditionalInfo() { + public AddAssetToExternalWalletRequestOneOf1AdditionalInfo getAdditionalInfo() { return additionalInfo; } @JsonProperty(JSON_PROPERTY_ADDITIONAL_INFO) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setAdditionalInfo( - @jakarta.annotation.Nonnull AdditionalInfoRequestAdditionalInfo additionalInfo) { + @jakarta.annotation.Nonnull + AddAssetToExternalWalletRequestOneOf1AdditionalInfo additionalInfo) { this.additionalInfo = additionalInfo; } - /** Return true if this AdditionalInfoRequest object is equal to o. */ + /** Return true if this AddAssetToExternalWalletRequest_oneOf_1 object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -72,8 +76,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - AdditionalInfoRequest additionalInfoRequest = (AdditionalInfoRequest) o; - return Objects.equals(this.additionalInfo, additionalInfoRequest.additionalInfo); + AddAssetToExternalWalletRequestOneOf1 addAssetToExternalWalletRequestOneOf1 = + (AddAssetToExternalWalletRequestOneOf1) o; + return Objects.equals( + this.additionalInfo, addAssetToExternalWalletRequestOneOf1.additionalInfo); } @Override @@ -84,7 +90,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class AdditionalInfoRequest {\n"); + sb.append("class AddAssetToExternalWalletRequestOneOf1 {\n"); sb.append(" additionalInfo: ").append(toIndentedString(additionalInfo)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOf1AdditionalInfo.java b/src/main/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOf1AdditionalInfo.java new file mode 100644 index 00000000..1db2c8eb --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOf1AdditionalInfo.java @@ -0,0 +1,532 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.fireblocks.sdk.model; + + +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.core.JsonToken; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.JsonMappingException; +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.MapperFeature; +import com.fasterxml.jackson.databind.SerializerProvider; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.fasterxml.jackson.databind.ser.std.StdSerializer; +import com.fireblocks.sdk.JSON; +import java.io.IOException; +import java.util.Collections; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.StringJoiner; +import java.util.logging.Level; +import java.util.logging.Logger; + +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") +@JsonDeserialize( + using = + AddAssetToExternalWalletRequestOneOf1AdditionalInfo + .AddAssetToExternalWalletRequestOneOf1AdditionalInfoDeserializer.class) +@JsonSerialize( + using = + AddAssetToExternalWalletRequestOneOf1AdditionalInfo + .AddAssetToExternalWalletRequestOneOf1AdditionalInfoSerializer.class) +public class AddAssetToExternalWalletRequestOneOf1AdditionalInfo extends AbstractOpenApiSchema { + private static final Logger log = + Logger.getLogger(AddAssetToExternalWalletRequestOneOf1AdditionalInfo.class.getName()); + + public static class AddAssetToExternalWalletRequestOneOf1AdditionalInfoSerializer + extends StdSerializer { + public AddAssetToExternalWalletRequestOneOf1AdditionalInfoSerializer( + Class t) { + super(t); + } + + public AddAssetToExternalWalletRequestOneOf1AdditionalInfoSerializer() { + this(null); + } + + @Override + public void serialize( + AddAssetToExternalWalletRequestOneOf1AdditionalInfo value, + JsonGenerator jgen, + SerializerProvider provider) + throws IOException, JsonProcessingException { + jgen.writeObject(value.getActualInstance()); + } + } + + public static class AddAssetToExternalWalletRequestOneOf1AdditionalInfoDeserializer + extends StdDeserializer { + public AddAssetToExternalWalletRequestOneOf1AdditionalInfoDeserializer() { + this(AddAssetToExternalWalletRequestOneOf1AdditionalInfo.class); + } + + public AddAssetToExternalWalletRequestOneOf1AdditionalInfoDeserializer(Class vc) { + super(vc); + } + + @Override + public AddAssetToExternalWalletRequestOneOf1AdditionalInfo deserialize( + JsonParser jp, DeserializationContext ctxt) + throws IOException, JsonProcessingException { + JsonNode tree = jp.readValueAsTree(); + Object deserialized = null; + boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); + int match = 0; + JsonToken token = tree.traverse(jp.getCodec()).nextToken(); + // deserialize AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf + try { + boolean attemptParsing = true; + // ensure that we respect type coercion as set on the client ObjectMapper + if (AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf.class.equals( + Integer.class) + || AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf.class.equals( + Long.class) + || AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf.class.equals( + Float.class) + || AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf.class.equals( + Double.class) + || AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf.class.equals( + Boolean.class) + || AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf.class.equals( + String.class)) { + attemptParsing = typeCoercion; + if (!attemptParsing) { + attemptParsing |= + ((AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf.class + .equals(Integer.class) + || AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf + .class + .equals(Long.class)) + && token == JsonToken.VALUE_NUMBER_INT); + attemptParsing |= + ((AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf.class + .equals(Float.class) + || AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf + .class + .equals(Double.class)) + && token == JsonToken.VALUE_NUMBER_FLOAT); + attemptParsing |= + (AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf.class + .equals(Boolean.class) + && (token == JsonToken.VALUE_FALSE + || token == JsonToken.VALUE_TRUE)); + attemptParsing |= + (AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf.class + .equals(String.class) + && token == JsonToken.VALUE_STRING); + } + } + if (attemptParsing) { + deserialized = + tree.traverse(jp.getCodec()) + .readValueAs( + AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf + .class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log( + Level.FINER, + "Input data matches schema" + + " 'AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf'"); + } + } catch (Exception e) { + // deserialization failed, continue + log.log( + Level.FINER, + "Input data does not match schema" + + " 'AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf'", + e); + } + + // deserialize AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 + try { + boolean attemptParsing = true; + // ensure that we respect type coercion as set on the client ObjectMapper + if (AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1.class.equals( + Integer.class) + || AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1.class.equals( + Long.class) + || AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1.class.equals( + Float.class) + || AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1.class.equals( + Double.class) + || AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1.class.equals( + Boolean.class) + || AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1.class.equals( + String.class)) { + attemptParsing = typeCoercion; + if (!attemptParsing) { + attemptParsing |= + ((AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1.class + .equals(Integer.class) + || AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 + .class + .equals(Long.class)) + && token == JsonToken.VALUE_NUMBER_INT); + attemptParsing |= + ((AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1.class + .equals(Float.class) + || AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 + .class + .equals(Double.class)) + && token == JsonToken.VALUE_NUMBER_FLOAT); + attemptParsing |= + (AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1.class + .equals(Boolean.class) + && (token == JsonToken.VALUE_FALSE + || token == JsonToken.VALUE_TRUE)); + attemptParsing |= + (AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1.class + .equals(String.class) + && token == JsonToken.VALUE_STRING); + } + } + if (attemptParsing) { + deserialized = + tree.traverse(jp.getCodec()) + .readValueAs( + AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 + .class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log( + Level.FINER, + "Input data matches schema" + + " 'AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1'"); + } + } catch (Exception e) { + // deserialization failed, continue + log.log( + Level.FINER, + "Input data does not match schema" + + " 'AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1'", + e); + } + + // deserialize AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2 + try { + boolean attemptParsing = true; + // ensure that we respect type coercion as set on the client ObjectMapper + if (AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2.class.equals( + Integer.class) + || AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2.class.equals( + Long.class) + || AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2.class.equals( + Float.class) + || AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2.class.equals( + Double.class) + || AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2.class.equals( + Boolean.class) + || AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2.class.equals( + String.class)) { + attemptParsing = typeCoercion; + if (!attemptParsing) { + attemptParsing |= + ((AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2.class + .equals(Integer.class) + || AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2 + .class + .equals(Long.class)) + && token == JsonToken.VALUE_NUMBER_INT); + attemptParsing |= + ((AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2.class + .equals(Float.class) + || AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2 + .class + .equals(Double.class)) + && token == JsonToken.VALUE_NUMBER_FLOAT); + attemptParsing |= + (AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2.class + .equals(Boolean.class) + && (token == JsonToken.VALUE_FALSE + || token == JsonToken.VALUE_TRUE)); + attemptParsing |= + (AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2.class + .equals(String.class) + && token == JsonToken.VALUE_STRING); + } + } + if (attemptParsing) { + deserialized = + tree.traverse(jp.getCodec()) + .readValueAs( + AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2 + .class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log( + Level.FINER, + "Input data matches schema" + + " 'AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2'"); + } + } catch (Exception e) { + // deserialization failed, continue + log.log( + Level.FINER, + "Input data does not match schema" + + " 'AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2'", + e); + } + + if (match == 1) { + AddAssetToExternalWalletRequestOneOf1AdditionalInfo ret = + new AddAssetToExternalWalletRequestOneOf1AdditionalInfo(); + ret.setActualInstance(deserialized); + return ret; + } + throw new IOException( + String.format( + "Failed deserialization for" + + " AddAssetToExternalWalletRequestOneOf1AdditionalInfo: %d classes" + + " match result, expected 1", + match)); + } + + /** Handle deserialization of the 'null' value. */ + @Override + public AddAssetToExternalWalletRequestOneOf1AdditionalInfo getNullValue( + DeserializationContext ctxt) throws JsonMappingException { + throw new JsonMappingException( + ctxt.getParser(), + "AddAssetToExternalWalletRequestOneOf1AdditionalInfo cannot be null"); + } + } + + // store a list of schema names defined in oneOf + public static final Map> schemas = new HashMap<>(); + + public AddAssetToExternalWalletRequestOneOf1AdditionalInfo() { + super("oneOf", Boolean.FALSE); + } + + public AddAssetToExternalWalletRequestOneOf1AdditionalInfo( + AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public AddAssetToExternalWalletRequestOneOf1AdditionalInfo( + AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public AddAssetToExternalWalletRequestOneOf1AdditionalInfo( + AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2 o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put( + "AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf", + AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf.class); + schemas.put( + "AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1", + AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1.class); + schemas.put( + "AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2", + AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2.class); + JSON.registerDescendants( + AddAssetToExternalWalletRequestOneOf1AdditionalInfo.class, + Collections.unmodifiableMap(schemas)); + } + + @Override + public Map> getSchemas() { + return AddAssetToExternalWalletRequestOneOf1AdditionalInfo.schemas; + } + + /** + * Set the instance that matches the oneOf child schema, check the instance parameter is valid + * against the oneOf child schemas: AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf, + * AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1, + * AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2 + * + *

It could be an instance of the 'oneOf' schemas. The oneOf child schemas may themselves be + * a composed schema (allOf, anyOf, oneOf). + */ + @Override + public void setActualInstance(Object instance) { + if (JSON.isInstanceOf( + AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf.class, + instance, + new HashSet>())) { + super.setActualInstance(instance); + return; + } + + if (JSON.isInstanceOf( + AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1.class, + instance, + new HashSet>())) { + super.setActualInstance(instance); + return; + } + + if (JSON.isInstanceOf( + AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2.class, + instance, + new HashSet>())) { + super.setActualInstance(instance); + return; + } + + throw new RuntimeException( + "Invalid instance type. Must be" + + " AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf," + + " AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1," + + " AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2"); + } + + /** + * Get the actual instance, which can be the following: + * AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf, + * AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1, + * AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2 + * + * @return The actual instance (AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf, + * AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1, + * AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2) + */ + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf`. If the + * actual instance is not `AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf`, the + * ClassCastException will be thrown. + * + * @return The actual instance of `AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf` + * @throws ClassCastException if the instance is not + * `AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf` + */ + public AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf + getAddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf() + throws ClassCastException { + return (AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf) super.getActualInstance(); + } + + /** + * Get the actual instance of `AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1`. If + * the actual instance is not `AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1`, the + * ClassCastException will be thrown. + * + * @return The actual instance of `AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1` + * @throws ClassCastException if the instance is not + * `AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1` + */ + public AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 + getAddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1() + throws ClassCastException { + return (AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1) + super.getActualInstance(); + } + + /** + * Get the actual instance of `AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2`. If + * the actual instance is not `AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2`, the + * ClassCastException will be thrown. + * + * @return The actual instance of `AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2` + * @throws ClassCastException if the instance is not + * `AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2` + */ + public AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2 + getAddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2() + throws ClassCastException { + return (AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2) + super.getActualInstance(); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + if (getActualInstance() + instanceof AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf) { + if (getActualInstance() != null) { + joiner.add( + ((AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf) + getActualInstance()) + .toUrlQueryString(prefix + "one_of_0" + suffix)); + } + return joiner.toString(); + } + if (getActualInstance() + instanceof AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1) { + if (getActualInstance() != null) { + joiner.add( + ((AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1) + getActualInstance()) + .toUrlQueryString(prefix + "one_of_1" + suffix)); + } + return joiner.toString(); + } + if (getActualInstance() + instanceof AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2) { + if (getActualInstance() != null) { + joiner.add( + ((AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2) + getActualInstance()) + .toUrlQueryString(prefix + "one_of_2" + suffix)); + } + return joiner.toString(); + } + return null; + } +} diff --git a/src/main/java/com/fireblocks/sdk/model/IbanPaymentInfo.java b/src/main/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf.java similarity index 78% rename from src/main/java/com/fireblocks/sdk/model/IbanPaymentInfo.java rename to src/main/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf.java index 7d30e189..529cfdfe 100644 --- a/src/main/java/com/fireblocks/sdk/model/IbanPaymentInfo.java +++ b/src/main/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf.java @@ -21,24 +21,26 @@ import java.util.Objects; import java.util.StringJoiner; -/** IBAN payment information for European bank transfers */ +/** AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf */ @JsonPropertyOrder({ - IbanPaymentInfo.JSON_PROPERTY_ACCOUNT_HOLDER_GIVEN_NAME, - IbanPaymentInfo.JSON_PROPERTY_ACCOUNT_HOLDER_SURNAME, - IbanPaymentInfo.JSON_PROPERTY_ACCOUNT_HOLDER_CITY, - IbanPaymentInfo.JSON_PROPERTY_ACCOUNT_HOLDER_COUNTRY, - IbanPaymentInfo.JSON_PROPERTY_ACCOUNT_HOLDER_ADDRESS1, - IbanPaymentInfo.JSON_PROPERTY_ACCOUNT_HOLDER_ADDRESS2, - IbanPaymentInfo.JSON_PROPERTY_ACCOUNT_HOLDER_DISTRICT, - IbanPaymentInfo.JSON_PROPERTY_ACCOUNT_HOLDER_POSTAL_CODE, - IbanPaymentInfo.JSON_PROPERTY_IBAN, - IbanPaymentInfo.JSON_PROPERTY_IBAN_CITY, - IbanPaymentInfo.JSON_PROPERTY_IBAN_COUNTRY + AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf + .JSON_PROPERTY_ACCOUNT_HOLDER_GIVEN_NAME, + AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf.JSON_PROPERTY_ACCOUNT_HOLDER_SURNAME, + AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf.JSON_PROPERTY_ACCOUNT_HOLDER_CITY, + AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf.JSON_PROPERTY_ACCOUNT_HOLDER_COUNTRY, + AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf.JSON_PROPERTY_ACCOUNT_HOLDER_ADDRESS1, + AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf.JSON_PROPERTY_ACCOUNT_HOLDER_ADDRESS2, + AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf.JSON_PROPERTY_ACCOUNT_HOLDER_DISTRICT, + AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf + .JSON_PROPERTY_ACCOUNT_HOLDER_POSTAL_CODE, + AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf.JSON_PROPERTY_IBAN, + AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf.JSON_PROPERTY_IBAN_CITY, + AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf.JSON_PROPERTY_IBAN_COUNTRY }) @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") -public class IbanPaymentInfo { +public class AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf { public static final String JSON_PROPERTY_ACCOUNT_HOLDER_GIVEN_NAME = "accountHolderGivenName"; @jakarta.annotation.Nonnull private String accountHolderGivenName; @@ -72,10 +74,10 @@ public class IbanPaymentInfo { public static final String JSON_PROPERTY_IBAN_COUNTRY = "ibanCountry"; @jakarta.annotation.Nonnull private String ibanCountry; - public IbanPaymentInfo() {} + public AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf() {} @JsonCreator - public IbanPaymentInfo( + public AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf( @JsonProperty(value = JSON_PROPERTY_ACCOUNT_HOLDER_GIVEN_NAME, required = true) String accountHolderGivenName, @JsonProperty(value = JSON_PROPERTY_ACCOUNT_HOLDER_CITY, required = true) @@ -99,14 +101,14 @@ public IbanPaymentInfo( this.ibanCountry = ibanCountry; } - public IbanPaymentInfo accountHolderGivenName( + public AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf accountHolderGivenName( @jakarta.annotation.Nonnull String accountHolderGivenName) { this.accountHolderGivenName = accountHolderGivenName; return this; } /** - * The given name (first name) of the account holder + * Get accountHolderGivenName * * @return accountHolderGivenName */ @@ -124,14 +126,14 @@ public void setAccountHolderGivenName( this.accountHolderGivenName = accountHolderGivenName; } - public IbanPaymentInfo accountHolderSurname( + public AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf accountHolderSurname( @jakarta.annotation.Nullable String accountHolderSurname) { this.accountHolderSurname = accountHolderSurname; return this; } /** - * The surname (last name) of the account holder + * Get accountHolderSurname * * @return accountHolderSurname */ @@ -148,13 +150,14 @@ public void setAccountHolderSurname(@jakarta.annotation.Nullable String accountH this.accountHolderSurname = accountHolderSurname; } - public IbanPaymentInfo accountHolderCity(@jakarta.annotation.Nonnull String accountHolderCity) { + public AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf accountHolderCity( + @jakarta.annotation.Nonnull String accountHolderCity) { this.accountHolderCity = accountHolderCity; return this; } /** - * The city where the account holder resides + * Get accountHolderCity * * @return accountHolderCity */ @@ -171,14 +174,14 @@ public void setAccountHolderCity(@jakarta.annotation.Nonnull String accountHolde this.accountHolderCity = accountHolderCity; } - public IbanPaymentInfo accountHolderCountry( + public AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf accountHolderCountry( @jakarta.annotation.Nonnull String accountHolderCountry) { this.accountHolderCountry = accountHolderCountry; return this; } /** - * The country where the account holder resides (ISO 3166-1 alpha-2 code) + * Get accountHolderCountry * * @return accountHolderCountry */ @@ -195,14 +198,14 @@ public void setAccountHolderCountry(@jakarta.annotation.Nonnull String accountHo this.accountHolderCountry = accountHolderCountry; } - public IbanPaymentInfo accountHolderAddress1( + public AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf accountHolderAddress1( @jakarta.annotation.Nonnull String accountHolderAddress1) { this.accountHolderAddress1 = accountHolderAddress1; return this; } /** - * The primary address line of the account holder + * Get accountHolderAddress1 * * @return accountHolderAddress1 */ @@ -219,14 +222,14 @@ public void setAccountHolderAddress1(@jakarta.annotation.Nonnull String accountH this.accountHolderAddress1 = accountHolderAddress1; } - public IbanPaymentInfo accountHolderAddress2( + public AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf accountHolderAddress2( @jakarta.annotation.Nullable String accountHolderAddress2) { this.accountHolderAddress2 = accountHolderAddress2; return this; } /** - * The secondary address line of the account holder (optional) + * Get accountHolderAddress2 * * @return accountHolderAddress2 */ @@ -244,14 +247,14 @@ public void setAccountHolderAddress2( this.accountHolderAddress2 = accountHolderAddress2; } - public IbanPaymentInfo accountHolderDistrict( + public AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf accountHolderDistrict( @jakarta.annotation.Nullable String accountHolderDistrict) { this.accountHolderDistrict = accountHolderDistrict; return this; } /** - * The district or region where the account holder resides + * Get accountHolderDistrict * * @return accountHolderDistrict */ @@ -269,14 +272,14 @@ public void setAccountHolderDistrict( this.accountHolderDistrict = accountHolderDistrict; } - public IbanPaymentInfo accountHolderPostalCode( + public AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf accountHolderPostalCode( @jakarta.annotation.Nonnull String accountHolderPostalCode) { this.accountHolderPostalCode = accountHolderPostalCode; return this; } /** - * The postal code of the account holder's address + * Get accountHolderPostalCode * * @return accountHolderPostalCode */ @@ -294,13 +297,14 @@ public void setAccountHolderPostalCode( this.accountHolderPostalCode = accountHolderPostalCode; } - public IbanPaymentInfo iban(@jakarta.annotation.Nonnull String iban) { + public AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf iban( + @jakarta.annotation.Nonnull String iban) { this.iban = iban; return this; } /** - * The International Bank Account Number (IBAN) + * Get iban * * @return iban */ @@ -317,13 +321,14 @@ public void setIban(@jakarta.annotation.Nonnull String iban) { this.iban = iban; } - public IbanPaymentInfo ibanCity(@jakarta.annotation.Nonnull String ibanCity) { + public AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf ibanCity( + @jakarta.annotation.Nonnull String ibanCity) { this.ibanCity = ibanCity; return this; } /** - * The city associated with the IBAN + * Get ibanCity * * @return ibanCity */ @@ -340,13 +345,14 @@ public void setIbanCity(@jakarta.annotation.Nonnull String ibanCity) { this.ibanCity = ibanCity; } - public IbanPaymentInfo ibanCountry(@jakarta.annotation.Nonnull String ibanCountry) { + public AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf ibanCountry( + @jakarta.annotation.Nonnull String ibanCountry) { this.ibanCountry = ibanCountry; return this; } /** - * The country associated with the IBAN (ISO 3166-1 alpha-2 code) + * Get ibanCountry * * @return ibanCountry */ @@ -363,7 +369,10 @@ public void setIbanCountry(@jakarta.annotation.Nonnull String ibanCountry) { this.ibanCountry = ibanCountry; } - /** Return true if this IbanPaymentInfo object is equal to o. */ + /** + * Return true if this AddAssetToExternalWalletRequest_oneOf_1_additionalInfo_oneOf object is + * equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -372,19 +381,48 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - IbanPaymentInfo ibanPaymentInfo = (IbanPaymentInfo) o; - return Objects.equals(this.accountHolderGivenName, ibanPaymentInfo.accountHolderGivenName) - && Objects.equals(this.accountHolderSurname, ibanPaymentInfo.accountHolderSurname) - && Objects.equals(this.accountHolderCity, ibanPaymentInfo.accountHolderCity) - && Objects.equals(this.accountHolderCountry, ibanPaymentInfo.accountHolderCountry) - && Objects.equals(this.accountHolderAddress1, ibanPaymentInfo.accountHolderAddress1) - && Objects.equals(this.accountHolderAddress2, ibanPaymentInfo.accountHolderAddress2) - && Objects.equals(this.accountHolderDistrict, ibanPaymentInfo.accountHolderDistrict) + AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf + addAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf = + (AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf) o; + return Objects.equals( + this.accountHolderGivenName, + addAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf + .accountHolderGivenName) + && Objects.equals( + this.accountHolderSurname, + addAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf + .accountHolderSurname) + && Objects.equals( + this.accountHolderCity, + addAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf.accountHolderCity) + && Objects.equals( + this.accountHolderCountry, + addAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf + .accountHolderCountry) + && Objects.equals( + this.accountHolderAddress1, + addAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf + .accountHolderAddress1) + && Objects.equals( + this.accountHolderAddress2, + addAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf + .accountHolderAddress2) + && Objects.equals( + this.accountHolderDistrict, + addAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf + .accountHolderDistrict) + && Objects.equals( + this.accountHolderPostalCode, + addAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf + .accountHolderPostalCode) + && Objects.equals( + this.iban, addAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf.iban) + && Objects.equals( + this.ibanCity, + addAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf.ibanCity) && Objects.equals( - this.accountHolderPostalCode, ibanPaymentInfo.accountHolderPostalCode) - && Objects.equals(this.iban, ibanPaymentInfo.iban) - && Objects.equals(this.ibanCity, ibanPaymentInfo.ibanCity) - && Objects.equals(this.ibanCountry, ibanPaymentInfo.ibanCountry); + this.ibanCountry, + addAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf.ibanCountry); } @Override @@ -406,7 +444,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class IbanPaymentInfo {\n"); + sb.append("class AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf {\n"); sb.append(" accountHolderGivenName: ") .append(toIndentedString(accountHolderGivenName)) .append("\n"); diff --git a/src/main/java/com/fireblocks/sdk/model/AbaPaymentInfo.java b/src/main/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1.java similarity index 77% rename from src/main/java/com/fireblocks/sdk/model/AbaPaymentInfo.java rename to src/main/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1.java index ae9087bc..3dd6060d 100644 --- a/src/main/java/com/fireblocks/sdk/model/AbaPaymentInfo.java +++ b/src/main/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1.java @@ -21,24 +21,26 @@ import java.util.Objects; import java.util.StringJoiner; -/** ABA payment information for US bank transfers */ +/** AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 */ @JsonPropertyOrder({ - AbaPaymentInfo.JSON_PROPERTY_ACCOUNT_HOLDER_GIVEN_NAME, - AbaPaymentInfo.JSON_PROPERTY_ACCOUNT_HOLDER_SURNAME, - AbaPaymentInfo.JSON_PROPERTY_ACCOUNT_HOLDER_CITY, - AbaPaymentInfo.JSON_PROPERTY_ACCOUNT_HOLDER_COUNTRY, - AbaPaymentInfo.JSON_PROPERTY_ACCOUNT_HOLDER_ADDRESS1, - AbaPaymentInfo.JSON_PROPERTY_ACCOUNT_HOLDER_ADDRESS2, - AbaPaymentInfo.JSON_PROPERTY_ACCOUNT_HOLDER_DISTRICT, - AbaPaymentInfo.JSON_PROPERTY_ACCOUNT_HOLDER_POSTAL_CODE, - AbaPaymentInfo.JSON_PROPERTY_ABA_ROUTING_NUMBER, - AbaPaymentInfo.JSON_PROPERTY_ABA_ACCOUNT_NUMBER, - AbaPaymentInfo.JSON_PROPERTY_ABA_COUNTRY + AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 + .JSON_PROPERTY_ACCOUNT_HOLDER_GIVEN_NAME, + AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1.JSON_PROPERTY_ACCOUNT_HOLDER_SURNAME, + AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1.JSON_PROPERTY_ACCOUNT_HOLDER_CITY, + AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1.JSON_PROPERTY_ACCOUNT_HOLDER_COUNTRY, + AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1.JSON_PROPERTY_ACCOUNT_HOLDER_ADDRESS1, + AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1.JSON_PROPERTY_ACCOUNT_HOLDER_ADDRESS2, + AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1.JSON_PROPERTY_ACCOUNT_HOLDER_DISTRICT, + AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 + .JSON_PROPERTY_ACCOUNT_HOLDER_POSTAL_CODE, + AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1.JSON_PROPERTY_ABA_ROUTING_NUMBER, + AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1.JSON_PROPERTY_ABA_ACCOUNT_NUMBER, + AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1.JSON_PROPERTY_ABA_COUNTRY }) @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") -public class AbaPaymentInfo { +public class AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 { public static final String JSON_PROPERTY_ACCOUNT_HOLDER_GIVEN_NAME = "accountHolderGivenName"; @jakarta.annotation.Nonnull private String accountHolderGivenName; @@ -72,10 +74,10 @@ public class AbaPaymentInfo { public static final String JSON_PROPERTY_ABA_COUNTRY = "abaCountry"; @jakarta.annotation.Nonnull private String abaCountry; - public AbaPaymentInfo() {} + public AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1() {} @JsonCreator - public AbaPaymentInfo( + public AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1( @JsonProperty(value = JSON_PROPERTY_ACCOUNT_HOLDER_GIVEN_NAME, required = true) String accountHolderGivenName, @JsonProperty(value = JSON_PROPERTY_ACCOUNT_HOLDER_CITY, required = true) @@ -101,14 +103,14 @@ public AbaPaymentInfo( this.abaCountry = abaCountry; } - public AbaPaymentInfo accountHolderGivenName( + public AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 accountHolderGivenName( @jakarta.annotation.Nonnull String accountHolderGivenName) { this.accountHolderGivenName = accountHolderGivenName; return this; } /** - * The given name (first name) of the account holder + * Get accountHolderGivenName * * @return accountHolderGivenName */ @@ -126,14 +128,14 @@ public void setAccountHolderGivenName( this.accountHolderGivenName = accountHolderGivenName; } - public AbaPaymentInfo accountHolderSurname( + public AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 accountHolderSurname( @jakarta.annotation.Nullable String accountHolderSurname) { this.accountHolderSurname = accountHolderSurname; return this; } /** - * The surname (last name) of the account holder + * Get accountHolderSurname * * @return accountHolderSurname */ @@ -150,13 +152,14 @@ public void setAccountHolderSurname(@jakarta.annotation.Nullable String accountH this.accountHolderSurname = accountHolderSurname; } - public AbaPaymentInfo accountHolderCity(@jakarta.annotation.Nonnull String accountHolderCity) { + public AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 accountHolderCity( + @jakarta.annotation.Nonnull String accountHolderCity) { this.accountHolderCity = accountHolderCity; return this; } /** - * The city where the account holder resides + * Get accountHolderCity * * @return accountHolderCity */ @@ -173,14 +176,14 @@ public void setAccountHolderCity(@jakarta.annotation.Nonnull String accountHolde this.accountHolderCity = accountHolderCity; } - public AbaPaymentInfo accountHolderCountry( + public AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 accountHolderCountry( @jakarta.annotation.Nonnull String accountHolderCountry) { this.accountHolderCountry = accountHolderCountry; return this; } /** - * The country where the account holder resides (ISO 3166-1 alpha-2 code) + * Get accountHolderCountry * * @return accountHolderCountry */ @@ -197,14 +200,14 @@ public void setAccountHolderCountry(@jakarta.annotation.Nonnull String accountHo this.accountHolderCountry = accountHolderCountry; } - public AbaPaymentInfo accountHolderAddress1( + public AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 accountHolderAddress1( @jakarta.annotation.Nonnull String accountHolderAddress1) { this.accountHolderAddress1 = accountHolderAddress1; return this; } /** - * The primary address line of the account holder + * Get accountHolderAddress1 * * @return accountHolderAddress1 */ @@ -221,14 +224,14 @@ public void setAccountHolderAddress1(@jakarta.annotation.Nonnull String accountH this.accountHolderAddress1 = accountHolderAddress1; } - public AbaPaymentInfo accountHolderAddress2( + public AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 accountHolderAddress2( @jakarta.annotation.Nullable String accountHolderAddress2) { this.accountHolderAddress2 = accountHolderAddress2; return this; } /** - * The secondary address line of the account holder (optional) + * Get accountHolderAddress2 * * @return accountHolderAddress2 */ @@ -246,14 +249,14 @@ public void setAccountHolderAddress2( this.accountHolderAddress2 = accountHolderAddress2; } - public AbaPaymentInfo accountHolderDistrict( + public AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 accountHolderDistrict( @jakarta.annotation.Nullable String accountHolderDistrict) { this.accountHolderDistrict = accountHolderDistrict; return this; } /** - * The district or region where the account holder resides + * Get accountHolderDistrict * * @return accountHolderDistrict */ @@ -271,14 +274,14 @@ public void setAccountHolderDistrict( this.accountHolderDistrict = accountHolderDistrict; } - public AbaPaymentInfo accountHolderPostalCode( + public AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 accountHolderPostalCode( @jakarta.annotation.Nonnull String accountHolderPostalCode) { this.accountHolderPostalCode = accountHolderPostalCode; return this; } /** - * The postal code of the account holder's address + * Get accountHolderPostalCode * * @return accountHolderPostalCode */ @@ -296,13 +299,14 @@ public void setAccountHolderPostalCode( this.accountHolderPostalCode = accountHolderPostalCode; } - public AbaPaymentInfo abaRoutingNumber(@jakarta.annotation.Nonnull String abaRoutingNumber) { + public AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 abaRoutingNumber( + @jakarta.annotation.Nonnull String abaRoutingNumber) { this.abaRoutingNumber = abaRoutingNumber; return this; } /** - * The ABA routing number for the bank + * Get abaRoutingNumber * * @return abaRoutingNumber */ @@ -319,13 +323,14 @@ public void setAbaRoutingNumber(@jakarta.annotation.Nonnull String abaRoutingNum this.abaRoutingNumber = abaRoutingNumber; } - public AbaPaymentInfo abaAccountNumber(@jakarta.annotation.Nonnull String abaAccountNumber) { + public AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 abaAccountNumber( + @jakarta.annotation.Nonnull String abaAccountNumber) { this.abaAccountNumber = abaAccountNumber; return this; } /** - * The account number at the bank + * Get abaAccountNumber * * @return abaAccountNumber */ @@ -342,13 +347,14 @@ public void setAbaAccountNumber(@jakarta.annotation.Nonnull String abaAccountNum this.abaAccountNumber = abaAccountNumber; } - public AbaPaymentInfo abaCountry(@jakarta.annotation.Nonnull String abaCountry) { + public AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 abaCountry( + @jakarta.annotation.Nonnull String abaCountry) { this.abaCountry = abaCountry; return this; } /** - * The country for the ABA transfer (ISO 3166-1 alpha-2 code) + * Get abaCountry * * @return abaCountry */ @@ -365,7 +371,10 @@ public void setAbaCountry(@jakarta.annotation.Nonnull String abaCountry) { this.abaCountry = abaCountry; } - /** Return true if this AbaPaymentInfo object is equal to o. */ + /** + * Return true if this AddAssetToExternalWalletRequest_oneOf_1_additionalInfo_oneOf_1 object is + * equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -374,19 +383,49 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - AbaPaymentInfo abaPaymentInfo = (AbaPaymentInfo) o; - return Objects.equals(this.accountHolderGivenName, abaPaymentInfo.accountHolderGivenName) - && Objects.equals(this.accountHolderSurname, abaPaymentInfo.accountHolderSurname) - && Objects.equals(this.accountHolderCity, abaPaymentInfo.accountHolderCity) - && Objects.equals(this.accountHolderCountry, abaPaymentInfo.accountHolderCountry) - && Objects.equals(this.accountHolderAddress1, abaPaymentInfo.accountHolderAddress1) - && Objects.equals(this.accountHolderAddress2, abaPaymentInfo.accountHolderAddress2) - && Objects.equals(this.accountHolderDistrict, abaPaymentInfo.accountHolderDistrict) + AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 + addAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 = + (AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1) o; + return Objects.equals( + this.accountHolderGivenName, + addAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 + .accountHolderGivenName) + && Objects.equals( + this.accountHolderSurname, + addAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 + .accountHolderSurname) + && Objects.equals( + this.accountHolderCity, + addAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1.accountHolderCity) + && Objects.equals( + this.accountHolderCountry, + addAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 + .accountHolderCountry) + && Objects.equals( + this.accountHolderAddress1, + addAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 + .accountHolderAddress1) + && Objects.equals( + this.accountHolderAddress2, + addAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 + .accountHolderAddress2) + && Objects.equals( + this.accountHolderDistrict, + addAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 + .accountHolderDistrict) + && Objects.equals( + this.accountHolderPostalCode, + addAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 + .accountHolderPostalCode) + && Objects.equals( + this.abaRoutingNumber, + addAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1.abaRoutingNumber) + && Objects.equals( + this.abaAccountNumber, + addAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1.abaAccountNumber) && Objects.equals( - this.accountHolderPostalCode, abaPaymentInfo.accountHolderPostalCode) - && Objects.equals(this.abaRoutingNumber, abaPaymentInfo.abaRoutingNumber) - && Objects.equals(this.abaAccountNumber, abaPaymentInfo.abaAccountNumber) - && Objects.equals(this.abaCountry, abaPaymentInfo.abaCountry); + this.abaCountry, + addAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1.abaCountry); } @Override @@ -408,7 +447,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class AbaPaymentInfo {\n"); + sb.append("class AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 {\n"); sb.append(" accountHolderGivenName: ") .append(toIndentedString(accountHolderGivenName)) .append("\n"); diff --git a/src/main/java/com/fireblocks/sdk/model/SpeiBasicPaymentInfo.java b/src/main/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2.java similarity index 76% rename from src/main/java/com/fireblocks/sdk/model/SpeiBasicPaymentInfo.java rename to src/main/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2.java index 363b3ad3..4c4033eb 100644 --- a/src/main/java/com/fireblocks/sdk/model/SpeiBasicPaymentInfo.java +++ b/src/main/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2.java @@ -21,36 +21,37 @@ import java.util.Objects; import java.util.StringJoiner; -/** Basic SPEI payment information for Mexican bank transfers */ +/** AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2 */ @JsonPropertyOrder({ - SpeiBasicPaymentInfo.JSON_PROPERTY_SPEI_CLABE, - SpeiBasicPaymentInfo.JSON_PROPERTY_SPEI_NAME + AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2.JSON_PROPERTY_SPEI_CLABE, + AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2.JSON_PROPERTY_SPEI_NAME }) @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") -public class SpeiBasicPaymentInfo { +public class AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2 { public static final String JSON_PROPERTY_SPEI_CLABE = "speiClabe"; @jakarta.annotation.Nonnull private String speiClabe; public static final String JSON_PROPERTY_SPEI_NAME = "speiName"; @jakarta.annotation.Nullable private String speiName; - public SpeiBasicPaymentInfo() {} + public AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2() {} @JsonCreator - public SpeiBasicPaymentInfo( + public AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2( @JsonProperty(value = JSON_PROPERTY_SPEI_CLABE, required = true) String speiClabe) { this.speiClabe = speiClabe; } - public SpeiBasicPaymentInfo speiClabe(@jakarta.annotation.Nonnull String speiClabe) { + public AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2 speiClabe( + @jakarta.annotation.Nonnull String speiClabe) { this.speiClabe = speiClabe; return this; } /** - * The CLABE (Clave Bancaria Estandarizada) number for SPEI transfers + * Get speiClabe * * @return speiClabe */ @@ -67,13 +68,14 @@ public void setSpeiClabe(@jakarta.annotation.Nonnull String speiClabe) { this.speiClabe = speiClabe; } - public SpeiBasicPaymentInfo speiName(@jakarta.annotation.Nullable String speiName) { + public AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2 speiName( + @jakarta.annotation.Nullable String speiName) { this.speiName = speiName; return this; } /** - * The name associated with the SPEI account + * Get speiName * * @return speiName */ @@ -90,7 +92,10 @@ public void setSpeiName(@jakarta.annotation.Nullable String speiName) { this.speiName = speiName; } - /** Return true if this SpeiBasicPaymentInfo object is equal to o. */ + /** + * Return true if this AddAssetToExternalWalletRequest_oneOf_1_additionalInfo_oneOf_2 object is + * equal to o. + */ @Override public boolean equals(Object o) { if (this == o) { @@ -99,9 +104,15 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SpeiBasicPaymentInfo speiBasicPaymentInfo = (SpeiBasicPaymentInfo) o; - return Objects.equals(this.speiClabe, speiBasicPaymentInfo.speiClabe) - && Objects.equals(this.speiName, speiBasicPaymentInfo.speiName); + AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2 + addAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2 = + (AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2) o; + return Objects.equals( + this.speiClabe, + addAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2.speiClabe) + && Objects.equals( + this.speiName, + addAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2.speiName); } @Override @@ -112,7 +123,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class SpeiBasicPaymentInfo {\n"); + sb.append("class AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2 {\n"); sb.append(" speiClabe: ").append(toIndentedString(speiClabe)).append("\n"); sb.append(" speiName: ").append(toIndentedString(speiName)).append("\n"); sb.append("}"); diff --git a/src/main/java/com/fireblocks/sdk/model/AddCosignerRequest.java b/src/main/java/com/fireblocks/sdk/model/AddCosignerRequest.java deleted file mode 100644 index c75a07f1..00000000 --- a/src/main/java/com/fireblocks/sdk/model/AddCosignerRequest.java +++ /dev/null @@ -1,230 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; -import java.util.UUID; - -/** AddCosignerRequest */ -@JsonPropertyOrder({ - AddCosignerRequest.JSON_PROPERTY_API_KEY_ID, - AddCosignerRequest.JSON_PROPERTY_NAME, - AddCosignerRequest.JSON_PROPERTY_EXISTING_COSIGNER -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class AddCosignerRequest { - public static final String JSON_PROPERTY_API_KEY_ID = "apiKeyId"; - @jakarta.annotation.Nonnull private UUID apiKeyId; - - public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nonnull private String name; - - public static final String JSON_PROPERTY_EXISTING_COSIGNER = "existingCosigner"; - @jakarta.annotation.Nullable private Boolean existingCosigner = false; - - public AddCosignerRequest() {} - - @JsonCreator - public AddCosignerRequest( - @JsonProperty(value = JSON_PROPERTY_API_KEY_ID, required = true) UUID apiKeyId, - @JsonProperty(value = JSON_PROPERTY_NAME, required = true) String name) { - this.apiKeyId = apiKeyId; - this.name = name; - } - - public AddCosignerRequest apiKeyId(@jakarta.annotation.Nonnull UUID apiKeyId) { - this.apiKeyId = apiKeyId; - return this; - } - - /** - * The id of the API key to be paired with the cosigner - * - * @return apiKeyId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_API_KEY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public UUID getApiKeyId() { - return apiKeyId; - } - - @JsonProperty(JSON_PROPERTY_API_KEY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setApiKeyId(@jakarta.annotation.Nonnull UUID apiKeyId) { - this.apiKeyId = apiKeyId; - } - - public AddCosignerRequest name(@jakarta.annotation.Nonnull String name) { - this.name = name; - return this; - } - - /** - * The name of the cosigner - * - * @return name - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getName() { - return name; - } - - @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(@jakarta.annotation.Nonnull String name) { - this.name = name; - } - - public AddCosignerRequest existingCosigner( - @jakarta.annotation.Nullable Boolean existingCosigner) { - this.existingCosigner = existingCosigner; - return this; - } - - /** - * Whether the cosigner already exists in another workspace - * - * @return existingCosigner - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EXISTING_COSIGNER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getExistingCosigner() { - return existingCosigner; - } - - @JsonProperty(JSON_PROPERTY_EXISTING_COSIGNER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setExistingCosigner(@jakarta.annotation.Nullable Boolean existingCosigner) { - this.existingCosigner = existingCosigner; - } - - /** Return true if this AddCosignerRequest object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AddCosignerRequest addCosignerRequest = (AddCosignerRequest) o; - return Objects.equals(this.apiKeyId, addCosignerRequest.apiKeyId) - && Objects.equals(this.name, addCosignerRequest.name) - && Objects.equals(this.existingCosigner, addCosignerRequest.existingCosigner); - } - - @Override - public int hashCode() { - return Objects.hash(apiKeyId, name, existingCosigner); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AddCosignerRequest {\n"); - sb.append(" apiKeyId: ").append(toIndentedString(apiKeyId)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" existingCosigner: ").append(toIndentedString(existingCosigner)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `apiKeyId` to the URL query string - if (getApiKeyId() != null) { - joiner.add( - String.format( - "%sapiKeyId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getApiKeyId())))); - } - - // add `name` to the URL query string - if (getName() != null) { - joiner.add( - String.format( - "%sname%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getName())))); - } - - // add `existingCosigner` to the URL query string - if (getExistingCosigner() != null) { - joiner.add( - String.format( - "%sexistingCosigner%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getExistingCosigner())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/AddCosignerResponse.java b/src/main/java/com/fireblocks/sdk/model/AddCosignerResponse.java deleted file mode 100644 index 8947f0a4..00000000 --- a/src/main/java/com/fireblocks/sdk/model/AddCosignerResponse.java +++ /dev/null @@ -1,275 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; -import java.util.UUID; - -/** AddCosignerResponse */ -@JsonPropertyOrder({ - AddCosignerResponse.JSON_PROPERTY_API_KEY_ID, - AddCosignerResponse.JSON_PROPERTY_NAME, - AddCosignerResponse.JSON_PROPERTY_EXISTING_COSIGNER, - AddCosignerResponse.JSON_PROPERTY_PENDING_COSIGNER_ID -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class AddCosignerResponse { - public static final String JSON_PROPERTY_API_KEY_ID = "apiKeyId"; - @jakarta.annotation.Nonnull private UUID apiKeyId; - - public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nonnull private String name; - - public static final String JSON_PROPERTY_EXISTING_COSIGNER = "existingCosigner"; - @jakarta.annotation.Nullable private Boolean existingCosigner = false; - - public static final String JSON_PROPERTY_PENDING_COSIGNER_ID = "pendingCosignerId"; - @jakarta.annotation.Nonnull private UUID pendingCosignerId; - - public AddCosignerResponse() {} - - @JsonCreator - public AddCosignerResponse( - @JsonProperty(value = JSON_PROPERTY_API_KEY_ID, required = true) UUID apiKeyId, - @JsonProperty(value = JSON_PROPERTY_NAME, required = true) String name, - @JsonProperty(value = JSON_PROPERTY_PENDING_COSIGNER_ID, required = true) - UUID pendingCosignerId) { - this.apiKeyId = apiKeyId; - this.name = name; - this.pendingCosignerId = pendingCosignerId; - } - - public AddCosignerResponse apiKeyId(@jakarta.annotation.Nonnull UUID apiKeyId) { - this.apiKeyId = apiKeyId; - return this; - } - - /** - * The id of the API key to be paired with the cosigner - * - * @return apiKeyId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_API_KEY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public UUID getApiKeyId() { - return apiKeyId; - } - - @JsonProperty(JSON_PROPERTY_API_KEY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setApiKeyId(@jakarta.annotation.Nonnull UUID apiKeyId) { - this.apiKeyId = apiKeyId; - } - - public AddCosignerResponse name(@jakarta.annotation.Nonnull String name) { - this.name = name; - return this; - } - - /** - * The name of the cosigner - * - * @return name - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getName() { - return name; - } - - @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(@jakarta.annotation.Nonnull String name) { - this.name = name; - } - - public AddCosignerResponse existingCosigner( - @jakarta.annotation.Nullable Boolean existingCosigner) { - this.existingCosigner = existingCosigner; - return this; - } - - /** - * Whether the cosigner already exists in another workspace - * - * @return existingCosigner - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EXISTING_COSIGNER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getExistingCosigner() { - return existingCosigner; - } - - @JsonProperty(JSON_PROPERTY_EXISTING_COSIGNER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setExistingCosigner(@jakarta.annotation.Nullable Boolean existingCosigner) { - this.existingCosigner = existingCosigner; - } - - public AddCosignerResponse pendingCosignerId( - @jakarta.annotation.Nonnull UUID pendingCosignerId) { - this.pendingCosignerId = pendingCosignerId; - return this; - } - - /** - * The unique identifier of a pending cosigner - * - * @return pendingCosignerId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PENDING_COSIGNER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public UUID getPendingCosignerId() { - return pendingCosignerId; - } - - @JsonProperty(JSON_PROPERTY_PENDING_COSIGNER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPendingCosignerId(@jakarta.annotation.Nonnull UUID pendingCosignerId) { - this.pendingCosignerId = pendingCosignerId; - } - - /** Return true if this AddCosignerResponse object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AddCosignerResponse addCosignerResponse = (AddCosignerResponse) o; - return Objects.equals(this.apiKeyId, addCosignerResponse.apiKeyId) - && Objects.equals(this.name, addCosignerResponse.name) - && Objects.equals(this.existingCosigner, addCosignerResponse.existingCosigner) - && Objects.equals(this.pendingCosignerId, addCosignerResponse.pendingCosignerId); - } - - @Override - public int hashCode() { - return Objects.hash(apiKeyId, name, existingCosigner, pendingCosignerId); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AddCosignerResponse {\n"); - sb.append(" apiKeyId: ").append(toIndentedString(apiKeyId)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" existingCosigner: ").append(toIndentedString(existingCosigner)).append("\n"); - sb.append(" pendingCosignerId: ") - .append(toIndentedString(pendingCosignerId)) - .append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `apiKeyId` to the URL query string - if (getApiKeyId() != null) { - joiner.add( - String.format( - "%sapiKeyId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getApiKeyId())))); - } - - // add `name` to the URL query string - if (getName() != null) { - joiner.add( - String.format( - "%sname%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getName())))); - } - - // add `existingCosigner` to the URL query string - if (getExistingCosigner() != null) { - joiner.add( - String.format( - "%sexistingCosigner%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getExistingCosigner())))); - } - - // add `pendingCosignerId` to the URL query string - if (getPendingCosignerId() != null) { - joiner.add( - String.format( - "%spendingCosignerId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getPendingCosignerId())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/AddExchangeAccountRequest.java b/src/main/java/com/fireblocks/sdk/model/AddExchangeAccountRequest.java deleted file mode 100644 index af1d9adf..00000000 --- a/src/main/java/com/fireblocks/sdk/model/AddExchangeAccountRequest.java +++ /dev/null @@ -1,309 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** AddExchangeAccountRequest */ -@JsonPropertyOrder({ - AddExchangeAccountRequest.JSON_PROPERTY_EXCHANGE_TYPE, - AddExchangeAccountRequest.JSON_PROPERTY_NAME, - AddExchangeAccountRequest.JSON_PROPERTY_CREDS, - AddExchangeAccountRequest.JSON_PROPERTY_KEY, - AddExchangeAccountRequest.JSON_PROPERTY_MAIN_ACCOUNT_ID -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class AddExchangeAccountRequest { - public static final String JSON_PROPERTY_EXCHANGE_TYPE = "exchangeType"; - @jakarta.annotation.Nonnull private ExchangeType exchangeType; - - public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nonnull private String name; - - public static final String JSON_PROPERTY_CREDS = "creds"; - @jakarta.annotation.Nullable private String creds; - - public static final String JSON_PROPERTY_KEY = "key"; - @jakarta.annotation.Nullable private String key; - - public static final String JSON_PROPERTY_MAIN_ACCOUNT_ID = "mainAccountId"; - @jakarta.annotation.Nullable private String mainAccountId; - - public AddExchangeAccountRequest() {} - - @JsonCreator - public AddExchangeAccountRequest( - @JsonProperty(value = JSON_PROPERTY_EXCHANGE_TYPE, required = true) - ExchangeType exchangeType, - @JsonProperty(value = JSON_PROPERTY_NAME, required = true) String name) { - this.exchangeType = exchangeType; - this.name = name; - } - - public AddExchangeAccountRequest exchangeType( - @jakarta.annotation.Nonnull ExchangeType exchangeType) { - this.exchangeType = exchangeType; - return this; - } - - /** - * Get exchangeType - * - * @return exchangeType - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_EXCHANGE_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public ExchangeType getExchangeType() { - return exchangeType; - } - - @JsonProperty(JSON_PROPERTY_EXCHANGE_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setExchangeType(@jakarta.annotation.Nonnull ExchangeType exchangeType) { - this.exchangeType = exchangeType; - } - - public AddExchangeAccountRequest name(@jakarta.annotation.Nonnull String name) { - this.name = name; - return this; - } - - /** - * Display name of the exchange account - * - * @return name - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getName() { - return name; - } - - @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(@jakarta.annotation.Nonnull String name) { - this.name = name; - } - - public AddExchangeAccountRequest creds(@jakarta.annotation.Nullable String creds) { - this.creds = creds; - return this; - } - - /** - * Encrypted credentials - * - * @return creds - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CREDS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getCreds() { - return creds; - } - - @JsonProperty(JSON_PROPERTY_CREDS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCreds(@jakarta.annotation.Nullable String creds) { - this.creds = creds; - } - - public AddExchangeAccountRequest key(@jakarta.annotation.Nullable String key) { - this.key = key; - return this; - } - - /** - * Api key of the exchange - * - * @return key - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_KEY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getKey() { - return key; - } - - @JsonProperty(JSON_PROPERTY_KEY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setKey(@jakarta.annotation.Nullable String key) { - this.key = key; - } - - public AddExchangeAccountRequest mainAccountId( - @jakarta.annotation.Nullable String mainAccountId) { - this.mainAccountId = mainAccountId; - return this; - } - - /** - * Optional - main account id of the exchange - * - * @return mainAccountId - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAIN_ACCOUNT_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getMainAccountId() { - return mainAccountId; - } - - @JsonProperty(JSON_PROPERTY_MAIN_ACCOUNT_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMainAccountId(@jakarta.annotation.Nullable String mainAccountId) { - this.mainAccountId = mainAccountId; - } - - /** Return true if this AddExchangeAccountRequest object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AddExchangeAccountRequest addExchangeAccountRequest = (AddExchangeAccountRequest) o; - return Objects.equals(this.exchangeType, addExchangeAccountRequest.exchangeType) - && Objects.equals(this.name, addExchangeAccountRequest.name) - && Objects.equals(this.creds, addExchangeAccountRequest.creds) - && Objects.equals(this.key, addExchangeAccountRequest.key) - && Objects.equals(this.mainAccountId, addExchangeAccountRequest.mainAccountId); - } - - @Override - public int hashCode() { - return Objects.hash(exchangeType, name, creds, key, mainAccountId); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AddExchangeAccountRequest {\n"); - sb.append(" exchangeType: ").append(toIndentedString(exchangeType)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" creds: ").append(toIndentedString(creds)).append("\n"); - sb.append(" key: ").append(toIndentedString(key)).append("\n"); - sb.append(" mainAccountId: ").append(toIndentedString(mainAccountId)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `exchangeType` to the URL query string - if (getExchangeType() != null) { - joiner.add( - String.format( - "%sexchangeType%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getExchangeType())))); - } - - // add `name` to the URL query string - if (getName() != null) { - joiner.add( - String.format( - "%sname%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getName())))); - } - - // add `creds` to the URL query string - if (getCreds() != null) { - joiner.add( - String.format( - "%screds%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getCreds())))); - } - - // add `key` to the URL query string - if (getKey() != null) { - joiner.add( - String.format( - "%skey%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getKey())))); - } - - // add `mainAccountId` to the URL query string - if (getMainAccountId() != null) { - joiner.add( - String.format( - "%smainAccountId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getMainAccountId())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/AddExchangeAccountResponse.java b/src/main/java/com/fireblocks/sdk/model/AddExchangeAccountResponse.java deleted file mode 100644 index 3dbd29cf..00000000 --- a/src/main/java/com/fireblocks/sdk/model/AddExchangeAccountResponse.java +++ /dev/null @@ -1,218 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** AddExchangeAccountResponse */ -@JsonPropertyOrder({ - AddExchangeAccountResponse.JSON_PROPERTY_ID, - AddExchangeAccountResponse.JSON_PROPERTY_NAME, - AddExchangeAccountResponse.JSON_PROPERTY_EXCHANGE_TYPE -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class AddExchangeAccountResponse { - public static final String JSON_PROPERTY_ID = "id"; - @jakarta.annotation.Nullable private String id; - - public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nullable private String name; - - public static final String JSON_PROPERTY_EXCHANGE_TYPE = "exchangeType"; - @jakarta.annotation.Nullable private ExchangeType exchangeType; - - public AddExchangeAccountResponse() {} - - public AddExchangeAccountResponse id(@jakarta.annotation.Nullable String id) { - this.id = id; - return this; - } - - /** - * Exchange account's identifier - * - * @return id - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getId() { - return id; - } - - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(@jakarta.annotation.Nullable String id) { - this.id = id; - } - - public AddExchangeAccountResponse name(@jakarta.annotation.Nullable String name) { - this.name = name; - return this; - } - - /** - * Display name of the exchange account - * - * @return name - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getName() { - return name; - } - - @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(@jakarta.annotation.Nullable String name) { - this.name = name; - } - - public AddExchangeAccountResponse exchangeType( - @jakarta.annotation.Nullable ExchangeType exchangeType) { - this.exchangeType = exchangeType; - return this; - } - - /** - * Get exchangeType - * - * @return exchangeType - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EXCHANGE_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public ExchangeType getExchangeType() { - return exchangeType; - } - - @JsonProperty(JSON_PROPERTY_EXCHANGE_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setExchangeType(@jakarta.annotation.Nullable ExchangeType exchangeType) { - this.exchangeType = exchangeType; - } - - /** Return true if this AddExchangeAccountResponse object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AddExchangeAccountResponse addExchangeAccountResponse = (AddExchangeAccountResponse) o; - return Objects.equals(this.id, addExchangeAccountResponse.id) - && Objects.equals(this.name, addExchangeAccountResponse.name) - && Objects.equals(this.exchangeType, addExchangeAccountResponse.exchangeType); - } - - @Override - public int hashCode() { - return Objects.hash(id, name, exchangeType); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AddExchangeAccountResponse {\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" exchangeType: ").append(toIndentedString(exchangeType)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `id` to the URL query string - if (getId() != null) { - joiner.add( - String.format( - "%sid%s=%s", - prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); - } - - // add `name` to the URL query string - if (getName() != null) { - joiner.add( - String.format( - "%sname%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getName())))); - } - - // add `exchangeType` to the URL query string - if (getExchangeType() != null) { - joiner.add( - String.format( - "%sexchangeType%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getExchangeType())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/AdditionalInfo.java b/src/main/java/com/fireblocks/sdk/model/AdditionalInfoDto.java similarity index 90% rename from src/main/java/com/fireblocks/sdk/model/AdditionalInfo.java rename to src/main/java/com/fireblocks/sdk/model/AdditionalInfoDto.java index 9dce42d9..5a232c66 100644 --- a/src/main/java/com/fireblocks/sdk/model/AdditionalInfo.java +++ b/src/main/java/com/fireblocks/sdk/model/AdditionalInfoDto.java @@ -22,19 +22,16 @@ import java.util.Objects; import java.util.StringJoiner; -/** - * Additional information related to the blockchain. This may include extra details about the - * blockchain network. - */ +/** AdditionalInfoDto */ @JsonPropertyOrder({ - AdditionalInfo.JSON_PROPERTY_ESTIMATED_ANNUAL_REWARD, - AdditionalInfo.JSON_PROPERTY_LOCKUP_PERIOD, - AdditionalInfo.JSON_PROPERTY_ACTIVATION_PERIOD + AdditionalInfoDto.JSON_PROPERTY_ESTIMATED_ANNUAL_REWARD, + AdditionalInfoDto.JSON_PROPERTY_LOCKUP_PERIOD, + AdditionalInfoDto.JSON_PROPERTY_ACTIVATION_PERIOD }) @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") -public class AdditionalInfo { +public class AdditionalInfoDto { public static final String JSON_PROPERTY_ESTIMATED_ANNUAL_REWARD = "estimatedAnnualReward"; @jakarta.annotation.Nonnull private BigDecimal estimatedAnnualReward; @@ -44,10 +41,10 @@ public class AdditionalInfo { public static final String JSON_PROPERTY_ACTIVATION_PERIOD = "activationPeriod"; @jakarta.annotation.Nonnull private BigDecimal activationPeriod; - public AdditionalInfo() {} + public AdditionalInfoDto() {} @JsonCreator - public AdditionalInfo( + public AdditionalInfoDto( @JsonProperty(value = JSON_PROPERTY_ESTIMATED_ANNUAL_REWARD, required = true) BigDecimal estimatedAnnualReward, @JsonProperty(value = JSON_PROPERTY_LOCKUP_PERIOD, required = true) @@ -59,7 +56,7 @@ public AdditionalInfo( this.activationPeriod = activationPeriod; } - public AdditionalInfo estimatedAnnualReward( + public AdditionalInfoDto estimatedAnnualReward( @jakarta.annotation.Nonnull BigDecimal estimatedAnnualReward) { this.estimatedAnnualReward = estimatedAnnualReward; return this; @@ -85,7 +82,7 @@ public void setEstimatedAnnualReward( this.estimatedAnnualReward = estimatedAnnualReward; } - public AdditionalInfo lockupPeriod(@jakarta.annotation.Nonnull BigDecimal lockupPeriod) { + public AdditionalInfoDto lockupPeriod(@jakarta.annotation.Nonnull BigDecimal lockupPeriod) { this.lockupPeriod = lockupPeriod; return this; } @@ -109,7 +106,7 @@ public void setLockupPeriod(@jakarta.annotation.Nonnull BigDecimal lockupPeriod) this.lockupPeriod = lockupPeriod; } - public AdditionalInfo activationPeriod( + public AdditionalInfoDto activationPeriod( @jakarta.annotation.Nonnull BigDecimal activationPeriod) { this.activationPeriod = activationPeriod; return this; @@ -134,7 +131,7 @@ public void setActivationPeriod(@jakarta.annotation.Nonnull BigDecimal activatio this.activationPeriod = activationPeriod; } - /** Return true if this AdditionalInfo object is equal to o. */ + /** Return true if this AdditionalInfoDto object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -143,10 +140,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - AdditionalInfo additionalInfo = (AdditionalInfo) o; - return Objects.equals(this.estimatedAnnualReward, additionalInfo.estimatedAnnualReward) - && Objects.equals(this.lockupPeriod, additionalInfo.lockupPeriod) - && Objects.equals(this.activationPeriod, additionalInfo.activationPeriod); + AdditionalInfoDto additionalInfoDto = (AdditionalInfoDto) o; + return Objects.equals(this.estimatedAnnualReward, additionalInfoDto.estimatedAnnualReward) + && Objects.equals(this.lockupPeriod, additionalInfoDto.lockupPeriod) + && Objects.equals(this.activationPeriod, additionalInfoDto.activationPeriod); } @Override @@ -157,7 +154,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class AdditionalInfo {\n"); + sb.append("class AdditionalInfoDto {\n"); sb.append(" estimatedAnnualReward: ") .append(toIndentedString(estimatedAnnualReward)) .append("\n"); diff --git a/src/main/java/com/fireblocks/sdk/model/AdditionalInfoRequestAdditionalInfo.java b/src/main/java/com/fireblocks/sdk/model/AdditionalInfoRequestAdditionalInfo.java deleted file mode 100644 index 43814474..00000000 --- a/src/main/java/com/fireblocks/sdk/model/AdditionalInfoRequestAdditionalInfo.java +++ /dev/null @@ -1,924 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.core.JsonGenerator; -import com.fasterxml.jackson.core.JsonParser; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.core.JsonToken; -import com.fasterxml.jackson.databind.DeserializationContext; -import com.fasterxml.jackson.databind.JsonMappingException; -import com.fasterxml.jackson.databind.JsonNode; -import com.fasterxml.jackson.databind.MapperFeature; -import com.fasterxml.jackson.databind.SerializerProvider; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import com.fasterxml.jackson.databind.deser.std.StdDeserializer; -import com.fasterxml.jackson.databind.ser.std.StdSerializer; -import com.fireblocks.sdk.JSON; -import java.io.IOException; -import java.util.Collections; -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; -import java.util.StringJoiner; -import java.util.logging.Level; -import java.util.logging.Logger; - -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -@JsonDeserialize( - using = - AdditionalInfoRequestAdditionalInfo.AdditionalInfoRequestAdditionalInfoDeserializer - .class) -@JsonSerialize( - using = - AdditionalInfoRequestAdditionalInfo.AdditionalInfoRequestAdditionalInfoSerializer - .class) -public class AdditionalInfoRequestAdditionalInfo extends AbstractOpenApiSchema { - private static final Logger log = - Logger.getLogger(AdditionalInfoRequestAdditionalInfo.class.getName()); - - public static class AdditionalInfoRequestAdditionalInfoSerializer - extends StdSerializer { - public AdditionalInfoRequestAdditionalInfoSerializer( - Class t) { - super(t); - } - - public AdditionalInfoRequestAdditionalInfoSerializer() { - this(null); - } - - @Override - public void serialize( - AdditionalInfoRequestAdditionalInfo value, - JsonGenerator jgen, - SerializerProvider provider) - throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); - } - } - - public static class AdditionalInfoRequestAdditionalInfoDeserializer - extends StdDeserializer { - public AdditionalInfoRequestAdditionalInfoDeserializer() { - this(AdditionalInfoRequestAdditionalInfo.class); - } - - public AdditionalInfoRequestAdditionalInfoDeserializer(Class vc) { - super(vc); - } - - @Override - public AdditionalInfoRequestAdditionalInfo deserialize( - JsonParser jp, DeserializationContext ctxt) - throws IOException, JsonProcessingException { - JsonNode tree = jp.readValueAsTree(); - Object deserialized = null; - boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); - int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); - // deserialize AbaPaymentInfo - try { - boolean attemptParsing = true; - // ensure that we respect type coercion as set on the client ObjectMapper - if (AbaPaymentInfo.class.equals(Integer.class) - || AbaPaymentInfo.class.equals(Long.class) - || AbaPaymentInfo.class.equals(Float.class) - || AbaPaymentInfo.class.equals(Double.class) - || AbaPaymentInfo.class.equals(Boolean.class) - || AbaPaymentInfo.class.equals(String.class)) { - attemptParsing = typeCoercion; - if (!attemptParsing) { - attemptParsing |= - ((AbaPaymentInfo.class.equals(Integer.class) - || AbaPaymentInfo.class.equals(Long.class)) - && token == JsonToken.VALUE_NUMBER_INT); - attemptParsing |= - ((AbaPaymentInfo.class.equals(Float.class) - || AbaPaymentInfo.class.equals(Double.class)) - && token == JsonToken.VALUE_NUMBER_FLOAT); - attemptParsing |= - (AbaPaymentInfo.class.equals(Boolean.class) - && (token == JsonToken.VALUE_FALSE - || token == JsonToken.VALUE_TRUE)); - attemptParsing |= - (AbaPaymentInfo.class.equals(String.class) - && token == JsonToken.VALUE_STRING); - } - } - if (attemptParsing) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(AbaPaymentInfo.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'AbaPaymentInfo'"); - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'AbaPaymentInfo'", e); - } - - // deserialize AchPaymentInfo - try { - boolean attemptParsing = true; - // ensure that we respect type coercion as set on the client ObjectMapper - if (AchPaymentInfo.class.equals(Integer.class) - || AchPaymentInfo.class.equals(Long.class) - || AchPaymentInfo.class.equals(Float.class) - || AchPaymentInfo.class.equals(Double.class) - || AchPaymentInfo.class.equals(Boolean.class) - || AchPaymentInfo.class.equals(String.class)) { - attemptParsing = typeCoercion; - if (!attemptParsing) { - attemptParsing |= - ((AchPaymentInfo.class.equals(Integer.class) - || AchPaymentInfo.class.equals(Long.class)) - && token == JsonToken.VALUE_NUMBER_INT); - attemptParsing |= - ((AchPaymentInfo.class.equals(Float.class) - || AchPaymentInfo.class.equals(Double.class)) - && token == JsonToken.VALUE_NUMBER_FLOAT); - attemptParsing |= - (AchPaymentInfo.class.equals(Boolean.class) - && (token == JsonToken.VALUE_FALSE - || token == JsonToken.VALUE_TRUE)); - attemptParsing |= - (AchPaymentInfo.class.equals(String.class) - && token == JsonToken.VALUE_STRING); - } - } - if (attemptParsing) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(AchPaymentInfo.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'AchPaymentInfo'"); - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'AchPaymentInfo'", e); - } - - // deserialize IbanPaymentInfo - try { - boolean attemptParsing = true; - // ensure that we respect type coercion as set on the client ObjectMapper - if (IbanPaymentInfo.class.equals(Integer.class) - || IbanPaymentInfo.class.equals(Long.class) - || IbanPaymentInfo.class.equals(Float.class) - || IbanPaymentInfo.class.equals(Double.class) - || IbanPaymentInfo.class.equals(Boolean.class) - || IbanPaymentInfo.class.equals(String.class)) { - attemptParsing = typeCoercion; - if (!attemptParsing) { - attemptParsing |= - ((IbanPaymentInfo.class.equals(Integer.class) - || IbanPaymentInfo.class.equals(Long.class)) - && token == JsonToken.VALUE_NUMBER_INT); - attemptParsing |= - ((IbanPaymentInfo.class.equals(Float.class) - || IbanPaymentInfo.class.equals(Double.class)) - && token == JsonToken.VALUE_NUMBER_FLOAT); - attemptParsing |= - (IbanPaymentInfo.class.equals(Boolean.class) - && (token == JsonToken.VALUE_FALSE - || token == JsonToken.VALUE_TRUE)); - attemptParsing |= - (IbanPaymentInfo.class.equals(String.class) - && token == JsonToken.VALUE_STRING); - } - } - if (attemptParsing) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(IbanPaymentInfo.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'IbanPaymentInfo'"); - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'IbanPaymentInfo'", e); - } - - // deserialize LbtPaymentInfo - try { - boolean attemptParsing = true; - // ensure that we respect type coercion as set on the client ObjectMapper - if (LbtPaymentInfo.class.equals(Integer.class) - || LbtPaymentInfo.class.equals(Long.class) - || LbtPaymentInfo.class.equals(Float.class) - || LbtPaymentInfo.class.equals(Double.class) - || LbtPaymentInfo.class.equals(Boolean.class) - || LbtPaymentInfo.class.equals(String.class)) { - attemptParsing = typeCoercion; - if (!attemptParsing) { - attemptParsing |= - ((LbtPaymentInfo.class.equals(Integer.class) - || LbtPaymentInfo.class.equals(Long.class)) - && token == JsonToken.VALUE_NUMBER_INT); - attemptParsing |= - ((LbtPaymentInfo.class.equals(Float.class) - || LbtPaymentInfo.class.equals(Double.class)) - && token == JsonToken.VALUE_NUMBER_FLOAT); - attemptParsing |= - (LbtPaymentInfo.class.equals(Boolean.class) - && (token == JsonToken.VALUE_FALSE - || token == JsonToken.VALUE_TRUE)); - attemptParsing |= - (LbtPaymentInfo.class.equals(String.class) - && token == JsonToken.VALUE_STRING); - } - } - if (attemptParsing) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(LbtPaymentInfo.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'LbtPaymentInfo'"); - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'LbtPaymentInfo'", e); - } - - // deserialize MomoPaymentInfo - try { - boolean attemptParsing = true; - // ensure that we respect type coercion as set on the client ObjectMapper - if (MomoPaymentInfo.class.equals(Integer.class) - || MomoPaymentInfo.class.equals(Long.class) - || MomoPaymentInfo.class.equals(Float.class) - || MomoPaymentInfo.class.equals(Double.class) - || MomoPaymentInfo.class.equals(Boolean.class) - || MomoPaymentInfo.class.equals(String.class)) { - attemptParsing = typeCoercion; - if (!attemptParsing) { - attemptParsing |= - ((MomoPaymentInfo.class.equals(Integer.class) - || MomoPaymentInfo.class.equals(Long.class)) - && token == JsonToken.VALUE_NUMBER_INT); - attemptParsing |= - ((MomoPaymentInfo.class.equals(Float.class) - || MomoPaymentInfo.class.equals(Double.class)) - && token == JsonToken.VALUE_NUMBER_FLOAT); - attemptParsing |= - (MomoPaymentInfo.class.equals(Boolean.class) - && (token == JsonToken.VALUE_FALSE - || token == JsonToken.VALUE_TRUE)); - attemptParsing |= - (MomoPaymentInfo.class.equals(String.class) - && token == JsonToken.VALUE_STRING); - } - } - if (attemptParsing) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(MomoPaymentInfo.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'MomoPaymentInfo'"); - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'MomoPaymentInfo'", e); - } - - // deserialize PixPaymentInfo - try { - boolean attemptParsing = true; - // ensure that we respect type coercion as set on the client ObjectMapper - if (PixPaymentInfo.class.equals(Integer.class) - || PixPaymentInfo.class.equals(Long.class) - || PixPaymentInfo.class.equals(Float.class) - || PixPaymentInfo.class.equals(Double.class) - || PixPaymentInfo.class.equals(Boolean.class) - || PixPaymentInfo.class.equals(String.class)) { - attemptParsing = typeCoercion; - if (!attemptParsing) { - attemptParsing |= - ((PixPaymentInfo.class.equals(Integer.class) - || PixPaymentInfo.class.equals(Long.class)) - && token == JsonToken.VALUE_NUMBER_INT); - attemptParsing |= - ((PixPaymentInfo.class.equals(Float.class) - || PixPaymentInfo.class.equals(Double.class)) - && token == JsonToken.VALUE_NUMBER_FLOAT); - attemptParsing |= - (PixPaymentInfo.class.equals(Boolean.class) - && (token == JsonToken.VALUE_FALSE - || token == JsonToken.VALUE_TRUE)); - attemptParsing |= - (PixPaymentInfo.class.equals(String.class) - && token == JsonToken.VALUE_STRING); - } - } - if (attemptParsing) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(PixPaymentInfo.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'PixPaymentInfo'"); - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'PixPaymentInfo'", e); - } - - // deserialize SepaPaymentInfo - try { - boolean attemptParsing = true; - // ensure that we respect type coercion as set on the client ObjectMapper - if (SepaPaymentInfo.class.equals(Integer.class) - || SepaPaymentInfo.class.equals(Long.class) - || SepaPaymentInfo.class.equals(Float.class) - || SepaPaymentInfo.class.equals(Double.class) - || SepaPaymentInfo.class.equals(Boolean.class) - || SepaPaymentInfo.class.equals(String.class)) { - attemptParsing = typeCoercion; - if (!attemptParsing) { - attemptParsing |= - ((SepaPaymentInfo.class.equals(Integer.class) - || SepaPaymentInfo.class.equals(Long.class)) - && token == JsonToken.VALUE_NUMBER_INT); - attemptParsing |= - ((SepaPaymentInfo.class.equals(Float.class) - || SepaPaymentInfo.class.equals(Double.class)) - && token == JsonToken.VALUE_NUMBER_FLOAT); - attemptParsing |= - (SepaPaymentInfo.class.equals(Boolean.class) - && (token == JsonToken.VALUE_FALSE - || token == JsonToken.VALUE_TRUE)); - attemptParsing |= - (SepaPaymentInfo.class.equals(String.class) - && token == JsonToken.VALUE_STRING); - } - } - if (attemptParsing) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(SepaPaymentInfo.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'SepaPaymentInfo'"); - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'SepaPaymentInfo'", e); - } - - // deserialize SpeiAdvancedPaymentInfo - try { - boolean attemptParsing = true; - // ensure that we respect type coercion as set on the client ObjectMapper - if (SpeiAdvancedPaymentInfo.class.equals(Integer.class) - || SpeiAdvancedPaymentInfo.class.equals(Long.class) - || SpeiAdvancedPaymentInfo.class.equals(Float.class) - || SpeiAdvancedPaymentInfo.class.equals(Double.class) - || SpeiAdvancedPaymentInfo.class.equals(Boolean.class) - || SpeiAdvancedPaymentInfo.class.equals(String.class)) { - attemptParsing = typeCoercion; - if (!attemptParsing) { - attemptParsing |= - ((SpeiAdvancedPaymentInfo.class.equals(Integer.class) - || SpeiAdvancedPaymentInfo.class.equals(Long.class)) - && token == JsonToken.VALUE_NUMBER_INT); - attemptParsing |= - ((SpeiAdvancedPaymentInfo.class.equals(Float.class) - || SpeiAdvancedPaymentInfo.class.equals( - Double.class)) - && token == JsonToken.VALUE_NUMBER_FLOAT); - attemptParsing |= - (SpeiAdvancedPaymentInfo.class.equals(Boolean.class) - && (token == JsonToken.VALUE_FALSE - || token == JsonToken.VALUE_TRUE)); - attemptParsing |= - (SpeiAdvancedPaymentInfo.class.equals(String.class) - && token == JsonToken.VALUE_STRING); - } - } - if (attemptParsing) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(SpeiAdvancedPaymentInfo.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'SpeiAdvancedPaymentInfo'"); - } - } catch (Exception e) { - // deserialization failed, continue - log.log( - Level.FINER, - "Input data does not match schema 'SpeiAdvancedPaymentInfo'", - e); - } - - // deserialize SpeiBasicPaymentInfo - try { - boolean attemptParsing = true; - // ensure that we respect type coercion as set on the client ObjectMapper - if (SpeiBasicPaymentInfo.class.equals(Integer.class) - || SpeiBasicPaymentInfo.class.equals(Long.class) - || SpeiBasicPaymentInfo.class.equals(Float.class) - || SpeiBasicPaymentInfo.class.equals(Double.class) - || SpeiBasicPaymentInfo.class.equals(Boolean.class) - || SpeiBasicPaymentInfo.class.equals(String.class)) { - attemptParsing = typeCoercion; - if (!attemptParsing) { - attemptParsing |= - ((SpeiBasicPaymentInfo.class.equals(Integer.class) - || SpeiBasicPaymentInfo.class.equals(Long.class)) - && token == JsonToken.VALUE_NUMBER_INT); - attemptParsing |= - ((SpeiBasicPaymentInfo.class.equals(Float.class) - || SpeiBasicPaymentInfo.class.equals(Double.class)) - && token == JsonToken.VALUE_NUMBER_FLOAT); - attemptParsing |= - (SpeiBasicPaymentInfo.class.equals(Boolean.class) - && (token == JsonToken.VALUE_FALSE - || token == JsonToken.VALUE_TRUE)); - attemptParsing |= - (SpeiBasicPaymentInfo.class.equals(String.class) - && token == JsonToken.VALUE_STRING); - } - } - if (attemptParsing) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(SpeiBasicPaymentInfo.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'SpeiBasicPaymentInfo'"); - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'SpeiBasicPaymentInfo'", e); - } - - // deserialize UsWirePaymentInfo - try { - boolean attemptParsing = true; - // ensure that we respect type coercion as set on the client ObjectMapper - if (UsWirePaymentInfo.class.equals(Integer.class) - || UsWirePaymentInfo.class.equals(Long.class) - || UsWirePaymentInfo.class.equals(Float.class) - || UsWirePaymentInfo.class.equals(Double.class) - || UsWirePaymentInfo.class.equals(Boolean.class) - || UsWirePaymentInfo.class.equals(String.class)) { - attemptParsing = typeCoercion; - if (!attemptParsing) { - attemptParsing |= - ((UsWirePaymentInfo.class.equals(Integer.class) - || UsWirePaymentInfo.class.equals(Long.class)) - && token == JsonToken.VALUE_NUMBER_INT); - attemptParsing |= - ((UsWirePaymentInfo.class.equals(Float.class) - || UsWirePaymentInfo.class.equals(Double.class)) - && token == JsonToken.VALUE_NUMBER_FLOAT); - attemptParsing |= - (UsWirePaymentInfo.class.equals(Boolean.class) - && (token == JsonToken.VALUE_FALSE - || token == JsonToken.VALUE_TRUE)); - attemptParsing |= - (UsWirePaymentInfo.class.equals(String.class) - && token == JsonToken.VALUE_STRING); - } - } - if (attemptParsing) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(UsWirePaymentInfo.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'UsWirePaymentInfo'"); - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'UsWirePaymentInfo'", e); - } - - if (match == 1) { - AdditionalInfoRequestAdditionalInfo ret = new AdditionalInfoRequestAdditionalInfo(); - ret.setActualInstance(deserialized); - return ret; - } - throw new IOException( - String.format( - "Failed deserialization for AdditionalInfoRequestAdditionalInfo: %d" - + " classes match result, expected 1", - match)); - } - - /** Handle deserialization of the 'null' value. */ - @Override - public AdditionalInfoRequestAdditionalInfo getNullValue(DeserializationContext ctxt) - throws JsonMappingException { - throw new JsonMappingException( - ctxt.getParser(), "AdditionalInfoRequestAdditionalInfo cannot be null"); - } - } - - // store a list of schema names defined in oneOf - public static final Map> schemas = new HashMap<>(); - - public AdditionalInfoRequestAdditionalInfo() { - super("oneOf", Boolean.FALSE); - } - - public AdditionalInfoRequestAdditionalInfo(AbaPaymentInfo o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public AdditionalInfoRequestAdditionalInfo(AchPaymentInfo o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public AdditionalInfoRequestAdditionalInfo(IbanPaymentInfo o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public AdditionalInfoRequestAdditionalInfo(LbtPaymentInfo o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public AdditionalInfoRequestAdditionalInfo(MomoPaymentInfo o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public AdditionalInfoRequestAdditionalInfo(PixPaymentInfo o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public AdditionalInfoRequestAdditionalInfo(SepaPaymentInfo o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public AdditionalInfoRequestAdditionalInfo(SpeiAdvancedPaymentInfo o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public AdditionalInfoRequestAdditionalInfo(SpeiBasicPaymentInfo o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public AdditionalInfoRequestAdditionalInfo(UsWirePaymentInfo o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("AbaPaymentInfo", AbaPaymentInfo.class); - schemas.put("AchPaymentInfo", AchPaymentInfo.class); - schemas.put("IbanPaymentInfo", IbanPaymentInfo.class); - schemas.put("LbtPaymentInfo", LbtPaymentInfo.class); - schemas.put("MomoPaymentInfo", MomoPaymentInfo.class); - schemas.put("PixPaymentInfo", PixPaymentInfo.class); - schemas.put("SepaPaymentInfo", SepaPaymentInfo.class); - schemas.put("SpeiAdvancedPaymentInfo", SpeiAdvancedPaymentInfo.class); - schemas.put("SpeiBasicPaymentInfo", SpeiBasicPaymentInfo.class); - schemas.put("UsWirePaymentInfo", UsWirePaymentInfo.class); - JSON.registerDescendants( - AdditionalInfoRequestAdditionalInfo.class, Collections.unmodifiableMap(schemas)); - } - - @Override - public Map> getSchemas() { - return AdditionalInfoRequestAdditionalInfo.schemas; - } - - /** - * Set the instance that matches the oneOf child schema, check the instance parameter is valid - * against the oneOf child schemas: AbaPaymentInfo, AchPaymentInfo, IbanPaymentInfo, - * LbtPaymentInfo, MomoPaymentInfo, PixPaymentInfo, SepaPaymentInfo, SpeiAdvancedPaymentInfo, - * SpeiBasicPaymentInfo, UsWirePaymentInfo - * - *

It could be an instance of the 'oneOf' schemas. The oneOf child schemas may themselves be - * a composed schema (allOf, anyOf, oneOf). - */ - @Override - public void setActualInstance(Object instance) { - if (JSON.isInstanceOf(AbaPaymentInfo.class, instance, new HashSet>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(AchPaymentInfo.class, instance, new HashSet>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(IbanPaymentInfo.class, instance, new HashSet>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(LbtPaymentInfo.class, instance, new HashSet>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(MomoPaymentInfo.class, instance, new HashSet>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(PixPaymentInfo.class, instance, new HashSet>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(SepaPaymentInfo.class, instance, new HashSet>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(SpeiAdvancedPaymentInfo.class, instance, new HashSet>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(SpeiBasicPaymentInfo.class, instance, new HashSet>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(UsWirePaymentInfo.class, instance, new HashSet>())) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException( - "Invalid instance type. Must be AbaPaymentInfo, AchPaymentInfo, IbanPaymentInfo," - + " LbtPaymentInfo, MomoPaymentInfo, PixPaymentInfo, SepaPaymentInfo," - + " SpeiAdvancedPaymentInfo, SpeiBasicPaymentInfo, UsWirePaymentInfo"); - } - - /** - * Get the actual instance, which can be the following: AbaPaymentInfo, AchPaymentInfo, - * IbanPaymentInfo, LbtPaymentInfo, MomoPaymentInfo, PixPaymentInfo, SepaPaymentInfo, - * SpeiAdvancedPaymentInfo, SpeiBasicPaymentInfo, UsWirePaymentInfo - * - * @return The actual instance (AbaPaymentInfo, AchPaymentInfo, IbanPaymentInfo, LbtPaymentInfo, - * MomoPaymentInfo, PixPaymentInfo, SepaPaymentInfo, SpeiAdvancedPaymentInfo, - * SpeiBasicPaymentInfo, UsWirePaymentInfo) - */ - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `AbaPaymentInfo`. If the actual instance is not `AbaPaymentInfo`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `AbaPaymentInfo` - * @throws ClassCastException if the instance is not `AbaPaymentInfo` - */ - public AbaPaymentInfo getAbaPaymentInfo() throws ClassCastException { - return (AbaPaymentInfo) super.getActualInstance(); - } - - /** - * Get the actual instance of `AchPaymentInfo`. If the actual instance is not `AchPaymentInfo`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `AchPaymentInfo` - * @throws ClassCastException if the instance is not `AchPaymentInfo` - */ - public AchPaymentInfo getAchPaymentInfo() throws ClassCastException { - return (AchPaymentInfo) super.getActualInstance(); - } - - /** - * Get the actual instance of `IbanPaymentInfo`. If the actual instance is not - * `IbanPaymentInfo`, the ClassCastException will be thrown. - * - * @return The actual instance of `IbanPaymentInfo` - * @throws ClassCastException if the instance is not `IbanPaymentInfo` - */ - public IbanPaymentInfo getIbanPaymentInfo() throws ClassCastException { - return (IbanPaymentInfo) super.getActualInstance(); - } - - /** - * Get the actual instance of `LbtPaymentInfo`. If the actual instance is not `LbtPaymentInfo`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `LbtPaymentInfo` - * @throws ClassCastException if the instance is not `LbtPaymentInfo` - */ - public LbtPaymentInfo getLbtPaymentInfo() throws ClassCastException { - return (LbtPaymentInfo) super.getActualInstance(); - } - - /** - * Get the actual instance of `MomoPaymentInfo`. If the actual instance is not - * `MomoPaymentInfo`, the ClassCastException will be thrown. - * - * @return The actual instance of `MomoPaymentInfo` - * @throws ClassCastException if the instance is not `MomoPaymentInfo` - */ - public MomoPaymentInfo getMomoPaymentInfo() throws ClassCastException { - return (MomoPaymentInfo) super.getActualInstance(); - } - - /** - * Get the actual instance of `PixPaymentInfo`. If the actual instance is not `PixPaymentInfo`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `PixPaymentInfo` - * @throws ClassCastException if the instance is not `PixPaymentInfo` - */ - public PixPaymentInfo getPixPaymentInfo() throws ClassCastException { - return (PixPaymentInfo) super.getActualInstance(); - } - - /** - * Get the actual instance of `SepaPaymentInfo`. If the actual instance is not - * `SepaPaymentInfo`, the ClassCastException will be thrown. - * - * @return The actual instance of `SepaPaymentInfo` - * @throws ClassCastException if the instance is not `SepaPaymentInfo` - */ - public SepaPaymentInfo getSepaPaymentInfo() throws ClassCastException { - return (SepaPaymentInfo) super.getActualInstance(); - } - - /** - * Get the actual instance of `SpeiAdvancedPaymentInfo`. If the actual instance is not - * `SpeiAdvancedPaymentInfo`, the ClassCastException will be thrown. - * - * @return The actual instance of `SpeiAdvancedPaymentInfo` - * @throws ClassCastException if the instance is not `SpeiAdvancedPaymentInfo` - */ - public SpeiAdvancedPaymentInfo getSpeiAdvancedPaymentInfo() throws ClassCastException { - return (SpeiAdvancedPaymentInfo) super.getActualInstance(); - } - - /** - * Get the actual instance of `SpeiBasicPaymentInfo`. If the actual instance is not - * `SpeiBasicPaymentInfo`, the ClassCastException will be thrown. - * - * @return The actual instance of `SpeiBasicPaymentInfo` - * @throws ClassCastException if the instance is not `SpeiBasicPaymentInfo` - */ - public SpeiBasicPaymentInfo getSpeiBasicPaymentInfo() throws ClassCastException { - return (SpeiBasicPaymentInfo) super.getActualInstance(); - } - - /** - * Get the actual instance of `UsWirePaymentInfo`. If the actual instance is not - * `UsWirePaymentInfo`, the ClassCastException will be thrown. - * - * @return The actual instance of `UsWirePaymentInfo` - * @throws ClassCastException if the instance is not `UsWirePaymentInfo` - */ - public UsWirePaymentInfo getUsWirePaymentInfo() throws ClassCastException { - return (UsWirePaymentInfo) super.getActualInstance(); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - if (getActualInstance() instanceof IbanPaymentInfo) { - if (getActualInstance() != null) { - joiner.add( - ((IbanPaymentInfo) getActualInstance()) - .toUrlQueryString(prefix + "one_of_0" + suffix)); - } - return joiner.toString(); - } - if (getActualInstance() instanceof AbaPaymentInfo) { - if (getActualInstance() != null) { - joiner.add( - ((AbaPaymentInfo) getActualInstance()) - .toUrlQueryString(prefix + "one_of_1" + suffix)); - } - return joiner.toString(); - } - if (getActualInstance() instanceof SpeiBasicPaymentInfo) { - if (getActualInstance() != null) { - joiner.add( - ((SpeiBasicPaymentInfo) getActualInstance()) - .toUrlQueryString(prefix + "one_of_2" + suffix)); - } - return joiner.toString(); - } - if (getActualInstance() instanceof SpeiAdvancedPaymentInfo) { - if (getActualInstance() != null) { - joiner.add( - ((SpeiAdvancedPaymentInfo) getActualInstance()) - .toUrlQueryString(prefix + "one_of_3" + suffix)); - } - return joiner.toString(); - } - if (getActualInstance() instanceof PixPaymentInfo) { - if (getActualInstance() != null) { - joiner.add( - ((PixPaymentInfo) getActualInstance()) - .toUrlQueryString(prefix + "one_of_4" + suffix)); - } - return joiner.toString(); - } - if (getActualInstance() instanceof SepaPaymentInfo) { - if (getActualInstance() != null) { - joiner.add( - ((SepaPaymentInfo) getActualInstance()) - .toUrlQueryString(prefix + "one_of_5" + suffix)); - } - return joiner.toString(); - } - if (getActualInstance() instanceof AchPaymentInfo) { - if (getActualInstance() != null) { - joiner.add( - ((AchPaymentInfo) getActualInstance()) - .toUrlQueryString(prefix + "one_of_6" + suffix)); - } - return joiner.toString(); - } - if (getActualInstance() instanceof UsWirePaymentInfo) { - if (getActualInstance() != null) { - joiner.add( - ((UsWirePaymentInfo) getActualInstance()) - .toUrlQueryString(prefix + "one_of_7" + suffix)); - } - return joiner.toString(); - } - if (getActualInstance() instanceof MomoPaymentInfo) { - if (getActualInstance() != null) { - joiner.add( - ((MomoPaymentInfo) getActualInstance()) - .toUrlQueryString(prefix + "one_of_8" + suffix)); - } - return joiner.toString(); - } - if (getActualInstance() instanceof LbtPaymentInfo) { - if (getActualInstance() != null) { - joiner.add( - ((LbtPaymentInfo) getActualInstance()) - .toUrlQueryString(prefix + "one_of_9" + suffix)); - } - return joiner.toString(); - } - return null; - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/AddressNotAvailableError.java b/src/main/java/com/fireblocks/sdk/model/AddressNotAvailableError.java deleted file mode 100644 index 2e0c03c7..00000000 --- a/src/main/java/com/fireblocks/sdk/model/AddressNotAvailableError.java +++ /dev/null @@ -1,190 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.math.BigDecimal; -import java.util.Objects; -import java.util.StringJoiner; - -/** AddressNotAvailableError */ -@JsonPropertyOrder({ - AddressNotAvailableError.JSON_PROPERTY_MESSAGE, - AddressNotAvailableError.JSON_PROPERTY_CODE -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class AddressNotAvailableError { - public static final String JSON_PROPERTY_MESSAGE = "message"; - @jakarta.annotation.Nonnull private String message; - - public static final String JSON_PROPERTY_CODE = "code"; - @jakarta.annotation.Nonnull private BigDecimal code; - - public AddressNotAvailableError() {} - - @JsonCreator - public AddressNotAvailableError( - @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = true) String message, - @JsonProperty(value = JSON_PROPERTY_CODE, required = true) BigDecimal code) { - this.message = message; - this.code = code; - } - - public AddressNotAvailableError message(@jakarta.annotation.Nonnull String message) { - this.message = message; - return this; - } - - /** - * Conflict error message - * - * @return message - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_MESSAGE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getMessage() { - return message; - } - - @JsonProperty(JSON_PROPERTY_MESSAGE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setMessage(@jakarta.annotation.Nonnull String message) { - this.message = message; - } - - public AddressNotAvailableError code(@jakarta.annotation.Nonnull BigDecimal code) { - this.code = code; - return this; - } - - /** - * Error code - * - * @return code - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CODE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public BigDecimal getCode() { - return code; - } - - @JsonProperty(JSON_PROPERTY_CODE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCode(@jakarta.annotation.Nonnull BigDecimal code) { - this.code = code; - } - - /** Return true if this AddressNotAvailableError object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AddressNotAvailableError addressNotAvailableError = (AddressNotAvailableError) o; - return Objects.equals(this.message, addressNotAvailableError.message) - && Objects.equals(this.code, addressNotAvailableError.code); - } - - @Override - public int hashCode() { - return Objects.hash(message, code); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AddressNotAvailableError {\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); - sb.append(" code: ").append(toIndentedString(code)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `message` to the URL query string - if (getMessage() != null) { - joiner.add( - String.format( - "%smessage%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getMessage())))); - } - - // add `code` to the URL query string - if (getCode() != null) { - joiner.add( - String.format( - "%scode%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getCode())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/AmlRegistrationResultFullPayload.java b/src/main/java/com/fireblocks/sdk/model/AmlRegistrationResultFullPayload.java deleted file mode 100644 index 9440d3be..00000000 --- a/src/main/java/com/fireblocks/sdk/model/AmlRegistrationResultFullPayload.java +++ /dev/null @@ -1,222 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.math.BigDecimal; -import java.util.Objects; -import java.util.StringJoiner; - -/** The results of the AML address registration. */ -@JsonPropertyOrder({ - AmlRegistrationResultFullPayload.JSON_PROPERTY_PROVIDER, - AmlRegistrationResultFullPayload.JSON_PROPERTY_SUCCESS, - AmlRegistrationResultFullPayload.JSON_PROPERTY_TIMESTAMP -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class AmlRegistrationResultFullPayload { - public static final String JSON_PROPERTY_PROVIDER = "provider"; - @jakarta.annotation.Nullable private String provider; - - public static final String JSON_PROPERTY_SUCCESS = "success"; - @jakarta.annotation.Nullable private Boolean success; - - public static final String JSON_PROPERTY_TIMESTAMP = "timestamp"; - @jakarta.annotation.Nullable private BigDecimal timestamp; - - public AmlRegistrationResultFullPayload() {} - - public AmlRegistrationResultFullPayload provider(@jakarta.annotation.Nullable String provider) { - this.provider = provider; - return this; - } - - /** - * Get provider - * - * @return provider - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROVIDER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getProvider() { - return provider; - } - - @JsonProperty(JSON_PROPERTY_PROVIDER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setProvider(@jakarta.annotation.Nullable String provider) { - this.provider = provider; - } - - public AmlRegistrationResultFullPayload success(@jakarta.annotation.Nullable Boolean success) { - this.success = success; - return this; - } - - /** - * Get success - * - * @return success - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SUCCESS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getSuccess() { - return success; - } - - @JsonProperty(JSON_PROPERTY_SUCCESS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSuccess(@jakarta.annotation.Nullable Boolean success) { - this.success = success; - } - - public AmlRegistrationResultFullPayload timestamp( - @jakarta.annotation.Nullable BigDecimal timestamp) { - this.timestamp = timestamp; - return this; - } - - /** - * Get timestamp - * - * @return timestamp - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TIMESTAMP) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public BigDecimal getTimestamp() { - return timestamp; - } - - @JsonProperty(JSON_PROPERTY_TIMESTAMP) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTimestamp(@jakarta.annotation.Nullable BigDecimal timestamp) { - this.timestamp = timestamp; - } - - /** Return true if this AmlRegistrationResultFullPayload object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AmlRegistrationResultFullPayload amlRegistrationResultFullPayload = - (AmlRegistrationResultFullPayload) o; - return Objects.equals(this.provider, amlRegistrationResultFullPayload.provider) - && Objects.equals(this.success, amlRegistrationResultFullPayload.success) - && Objects.equals(this.timestamp, amlRegistrationResultFullPayload.timestamp); - } - - @Override - public int hashCode() { - return Objects.hash(provider, success, timestamp); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AmlRegistrationResultFullPayload {\n"); - sb.append(" provider: ").append(toIndentedString(provider)).append("\n"); - sb.append(" success: ").append(toIndentedString(success)).append("\n"); - sb.append(" timestamp: ").append(toIndentedString(timestamp)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `provider` to the URL query string - if (getProvider() != null) { - joiner.add( - String.format( - "%sprovider%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getProvider())))); - } - - // add `success` to the URL query string - if (getSuccess() != null) { - joiner.add( - String.format( - "%ssuccess%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getSuccess())))); - } - - // add `timestamp` to the URL query string - if (getTimestamp() != null) { - joiner.add( - String.format( - "%stimestamp%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getTimestamp())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/AmlVerdictManualRequest.java b/src/main/java/com/fireblocks/sdk/model/AmlVerdictManualRequest.java deleted file mode 100644 index 355b21eb..00000000 --- a/src/main/java/com/fireblocks/sdk/model/AmlVerdictManualRequest.java +++ /dev/null @@ -1,224 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; -import java.util.UUID; - -/** AmlVerdictManualRequest */ -@JsonPropertyOrder({ - AmlVerdictManualRequest.JSON_PROPERTY_VERDICT, - AmlVerdictManualRequest.JSON_PROPERTY_TX_ID -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class AmlVerdictManualRequest { - /** The AML verdict to set for the transaction */ - public enum VerdictEnum { - ACCEPT(String.valueOf("ACCEPT")), - - REJECT(String.valueOf("REJECT")); - - private String value; - - VerdictEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static VerdictEnum fromValue(String value) { - for (VerdictEnum b : VerdictEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_VERDICT = "verdict"; - @jakarta.annotation.Nonnull private VerdictEnum verdict; - - public static final String JSON_PROPERTY_TX_ID = "txId"; - @jakarta.annotation.Nonnull private UUID txId; - - public AmlVerdictManualRequest() {} - - @JsonCreator - public AmlVerdictManualRequest( - @JsonProperty(value = JSON_PROPERTY_VERDICT, required = true) VerdictEnum verdict, - @JsonProperty(value = JSON_PROPERTY_TX_ID, required = true) UUID txId) { - this.verdict = verdict; - this.txId = txId; - } - - public AmlVerdictManualRequest verdict(@jakarta.annotation.Nonnull VerdictEnum verdict) { - this.verdict = verdict; - return this; - } - - /** - * The AML verdict to set for the transaction - * - * @return verdict - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_VERDICT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public VerdictEnum getVerdict() { - return verdict; - } - - @JsonProperty(JSON_PROPERTY_VERDICT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setVerdict(@jakarta.annotation.Nonnull VerdictEnum verdict) { - this.verdict = verdict; - } - - public AmlVerdictManualRequest txId(@jakarta.annotation.Nonnull UUID txId) { - this.txId = txId; - return this; - } - - /** - * The transaction ID to set the verdict for - * - * @return txId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TX_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public UUID getTxId() { - return txId; - } - - @JsonProperty(JSON_PROPERTY_TX_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTxId(@jakarta.annotation.Nonnull UUID txId) { - this.txId = txId; - } - - /** Return true if this AmlVerdictManualRequest object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AmlVerdictManualRequest amlVerdictManualRequest = (AmlVerdictManualRequest) o; - return Objects.equals(this.verdict, amlVerdictManualRequest.verdict) - && Objects.equals(this.txId, amlVerdictManualRequest.txId); - } - - @Override - public int hashCode() { - return Objects.hash(verdict, txId); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AmlVerdictManualRequest {\n"); - sb.append(" verdict: ").append(toIndentedString(verdict)).append("\n"); - sb.append(" txId: ").append(toIndentedString(txId)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `verdict` to the URL query string - if (getVerdict() != null) { - joiner.add( - String.format( - "%sverdict%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getVerdict())))); - } - - // add `txId` to the URL query string - if (getTxId() != null) { - joiner.add( - String.format( - "%stxId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getTxId())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/AmlVerdictManualResponse.java b/src/main/java/com/fireblocks/sdk/model/AmlVerdictManualResponse.java deleted file mode 100644 index 333a68d3..00000000 --- a/src/main/java/com/fireblocks/sdk/model/AmlVerdictManualResponse.java +++ /dev/null @@ -1,189 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** AmlVerdictManualResponse */ -@JsonPropertyOrder({ - AmlVerdictManualResponse.JSON_PROPERTY_SUCCESS, - AmlVerdictManualResponse.JSON_PROPERTY_MESSAGE -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class AmlVerdictManualResponse { - public static final String JSON_PROPERTY_SUCCESS = "success"; - @jakarta.annotation.Nonnull private Boolean success; - - public static final String JSON_PROPERTY_MESSAGE = "message"; - @jakarta.annotation.Nonnull private String message; - - public AmlVerdictManualResponse() {} - - @JsonCreator - public AmlVerdictManualResponse( - @JsonProperty(value = JSON_PROPERTY_SUCCESS, required = true) Boolean success, - @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = true) String message) { - this.success = success; - this.message = message; - } - - public AmlVerdictManualResponse success(@jakarta.annotation.Nonnull Boolean success) { - this.success = success; - return this; - } - - /** - * Get success - * - * @return success - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SUCCESS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Boolean getSuccess() { - return success; - } - - @JsonProperty(JSON_PROPERTY_SUCCESS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSuccess(@jakarta.annotation.Nonnull Boolean success) { - this.success = success; - } - - public AmlVerdictManualResponse message(@jakarta.annotation.Nonnull String message) { - this.message = message; - return this; - } - - /** - * Get message - * - * @return message - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_MESSAGE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getMessage() { - return message; - } - - @JsonProperty(JSON_PROPERTY_MESSAGE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setMessage(@jakarta.annotation.Nonnull String message) { - this.message = message; - } - - /** Return true if this AmlVerdictManualResponse object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AmlVerdictManualResponse amlVerdictManualResponse = (AmlVerdictManualResponse) o; - return Objects.equals(this.success, amlVerdictManualResponse.success) - && Objects.equals(this.message, amlVerdictManualResponse.message); - } - - @Override - public int hashCode() { - return Objects.hash(success, message); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AmlVerdictManualResponse {\n"); - sb.append(" success: ").append(toIndentedString(success)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `success` to the URL query string - if (getSuccess() != null) { - joiner.add( - String.format( - "%ssuccess%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getSuccess())))); - } - - // add `message` to the URL query string - if (getMessage() != null) { - joiner.add( - String.format( - "%smessage%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getMessage())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/LegacyAmountAggregationTimePeriodMethod.java b/src/main/java/com/fireblocks/sdk/model/AmountAggregationTimePeriodMethod.java similarity index 82% rename from src/main/java/com/fireblocks/sdk/model/LegacyAmountAggregationTimePeriodMethod.java rename to src/main/java/com/fireblocks/sdk/model/AmountAggregationTimePeriodMethod.java index a2e6a0aa..c2a21e87 100644 --- a/src/main/java/com/fireblocks/sdk/model/LegacyAmountAggregationTimePeriodMethod.java +++ b/src/main/java/com/fireblocks/sdk/model/AmountAggregationTimePeriodMethod.java @@ -20,14 +20,14 @@ * * PER_SINGLE_MATCH - Apply the limit to each listed entity * ACROSS_ALL_MATCHES - Apply the limit * to the sum of all listed entities */ -public enum LegacyAmountAggregationTimePeriodMethod { +public enum AmountAggregationTimePeriodMethod { PER_SINGLE_MATCH("PER_SINGLE_MATCH"), ACROSS_ALL_MATCHES("ACROSS_ALL_MATCHES"); private String value; - LegacyAmountAggregationTimePeriodMethod(String value) { + AmountAggregationTimePeriodMethod(String value) { this.value = value; } @@ -42,9 +42,8 @@ public String toString() { } @JsonCreator - public static LegacyAmountAggregationTimePeriodMethod fromValue(String value) { - for (LegacyAmountAggregationTimePeriodMethod b : - LegacyAmountAggregationTimePeriodMethod.values()) { + public static AmountAggregationTimePeriodMethod fromValue(String value) { + for (AmountAggregationTimePeriodMethod b : AmountAggregationTimePeriodMethod.values()) { if (b.value.equals(value)) { return b; } diff --git a/src/main/java/com/fireblocks/sdk/model/AmountOverTimeConfig.java b/src/main/java/com/fireblocks/sdk/model/AmountOverTimeConfig.java deleted file mode 100644 index fcb0a523..00000000 --- a/src/main/java/com/fireblocks/sdk/model/AmountOverTimeConfig.java +++ /dev/null @@ -1,257 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** Amount over time configuration */ -@JsonPropertyOrder({ - AmountOverTimeConfig.JSON_PROPERTY_RANGE, - AmountOverTimeConfig.JSON_PROPERTY_CURRENCY, - AmountOverTimeConfig.JSON_PROPERTY_TIME_PERIOD -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class AmountOverTimeConfig { - public static final String JSON_PROPERTY_RANGE = "range"; - @jakarta.annotation.Nonnull private AmountOverTimeConfigRange range; - - /** Currency for the amount */ - public enum CurrencyEnum { - NATIVE(String.valueOf("NATIVE")), - - USD(String.valueOf("USD")), - - EUR(String.valueOf("EUR")); - - private String value; - - CurrencyEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static CurrencyEnum fromValue(String value) { - for (CurrencyEnum b : CurrencyEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_CURRENCY = "currency"; - @jakarta.annotation.Nullable private CurrencyEnum currency; - - public static final String JSON_PROPERTY_TIME_PERIOD = "timePeriod"; - @jakarta.annotation.Nonnull private TimePeriodConfig timePeriod; - - public AmountOverTimeConfig() {} - - @JsonCreator - public AmountOverTimeConfig( - @JsonProperty(value = JSON_PROPERTY_RANGE, required = true) - AmountOverTimeConfigRange range, - @JsonProperty(value = JSON_PROPERTY_TIME_PERIOD, required = true) - TimePeriodConfig timePeriod) { - this.range = range; - this.timePeriod = timePeriod; - } - - public AmountOverTimeConfig range(@jakarta.annotation.Nonnull AmountOverTimeConfigRange range) { - this.range = range; - return this; - } - - /** - * Get range - * - * @return range - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_RANGE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AmountOverTimeConfigRange getRange() { - return range; - } - - @JsonProperty(JSON_PROPERTY_RANGE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setRange(@jakarta.annotation.Nonnull AmountOverTimeConfigRange range) { - this.range = range; - } - - public AmountOverTimeConfig currency(@jakarta.annotation.Nullable CurrencyEnum currency) { - this.currency = currency; - return this; - } - - /** - * Currency for the amount - * - * @return currency - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CURRENCY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CurrencyEnum getCurrency() { - return currency; - } - - @JsonProperty(JSON_PROPERTY_CURRENCY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCurrency(@jakarta.annotation.Nullable CurrencyEnum currency) { - this.currency = currency; - } - - public AmountOverTimeConfig timePeriod( - @jakarta.annotation.Nonnull TimePeriodConfig timePeriod) { - this.timePeriod = timePeriod; - return this; - } - - /** - * Get timePeriod - * - * @return timePeriod - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TIME_PERIOD) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TimePeriodConfig getTimePeriod() { - return timePeriod; - } - - @JsonProperty(JSON_PROPERTY_TIME_PERIOD) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTimePeriod(@jakarta.annotation.Nonnull TimePeriodConfig timePeriod) { - this.timePeriod = timePeriod; - } - - /** Return true if this AmountOverTimeConfig object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AmountOverTimeConfig amountOverTimeConfig = (AmountOverTimeConfig) o; - return Objects.equals(this.range, amountOverTimeConfig.range) - && Objects.equals(this.currency, amountOverTimeConfig.currency) - && Objects.equals(this.timePeriod, amountOverTimeConfig.timePeriod); - } - - @Override - public int hashCode() { - return Objects.hash(range, currency, timePeriod); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AmountOverTimeConfig {\n"); - sb.append(" range: ").append(toIndentedString(range)).append("\n"); - sb.append(" currency: ").append(toIndentedString(currency)).append("\n"); - sb.append(" timePeriod: ").append(toIndentedString(timePeriod)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `range` to the URL query string - if (getRange() != null) { - joiner.add(getRange().toUrlQueryString(prefix + "range" + suffix)); - } - - // add `currency` to the URL query string - if (getCurrency() != null) { - joiner.add( - String.format( - "%scurrency%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getCurrency())))); - } - - // add `timePeriod` to the URL query string - if (getTimePeriod() != null) { - joiner.add(getTimePeriod().toUrlQueryString(prefix + "timePeriod" + suffix)); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/AmountOverTimeConfigRange.java b/src/main/java/com/fireblocks/sdk/model/AmountOverTimeConfigRange.java deleted file mode 100644 index 3a0389d9..00000000 --- a/src/main/java/com/fireblocks/sdk/model/AmountOverTimeConfigRange.java +++ /dev/null @@ -1,187 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** Amount range configuration */ -@JsonPropertyOrder({ - AmountOverTimeConfigRange.JSON_PROPERTY_MIN, - AmountOverTimeConfigRange.JSON_PROPERTY_MAX -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class AmountOverTimeConfigRange { - public static final String JSON_PROPERTY_MIN = "min"; - @jakarta.annotation.Nonnull private String min; - - public static final String JSON_PROPERTY_MAX = "max"; - @jakarta.annotation.Nullable private String max; - - public AmountOverTimeConfigRange() {} - - @JsonCreator - public AmountOverTimeConfigRange( - @JsonProperty(value = JSON_PROPERTY_MIN, required = true) String min) { - this.min = min; - } - - public AmountOverTimeConfigRange min(@jakarta.annotation.Nonnull String min) { - this.min = min; - return this; - } - - /** - * Minimum amount - * - * @return min - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_MIN) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getMin() { - return min; - } - - @JsonProperty(JSON_PROPERTY_MIN) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setMin(@jakarta.annotation.Nonnull String min) { - this.min = min; - } - - public AmountOverTimeConfigRange max(@jakarta.annotation.Nullable String max) { - this.max = max; - return this; - } - - /** - * Maximum amount (optional) - * - * @return max - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAX) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getMax() { - return max; - } - - @JsonProperty(JSON_PROPERTY_MAX) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMax(@jakarta.annotation.Nullable String max) { - this.max = max; - } - - /** Return true if this AmountOverTimeConfig_range object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AmountOverTimeConfigRange amountOverTimeConfigRange = (AmountOverTimeConfigRange) o; - return Objects.equals(this.min, amountOverTimeConfigRange.min) - && Objects.equals(this.max, amountOverTimeConfigRange.max); - } - - @Override - public int hashCode() { - return Objects.hash(min, max); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AmountOverTimeConfigRange {\n"); - sb.append(" min: ").append(toIndentedString(min)).append("\n"); - sb.append(" max: ").append(toIndentedString(max)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `min` to the URL query string - if (getMin() != null) { - joiner.add( - String.format( - "%smin%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getMin())))); - } - - // add `max` to the URL query string - if (getMax() != null) { - joiner.add( - String.format( - "%smax%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getMax())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/AmountRange.java b/src/main/java/com/fireblocks/sdk/model/AmountRange.java deleted file mode 100644 index 61a6099d..00000000 --- a/src/main/java/com/fireblocks/sdk/model/AmountRange.java +++ /dev/null @@ -1,230 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** Amount range configuration */ -@JsonPropertyOrder({ - AmountRange.JSON_PROPERTY_MIN, - AmountRange.JSON_PROPERTY_MAX, - AmountRange.JSON_PROPERTY_CURRENCY -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class AmountRange { - public static final String JSON_PROPERTY_MIN = "min"; - @jakarta.annotation.Nonnull private String min; - - public static final String JSON_PROPERTY_MAX = "max"; - @jakarta.annotation.Nonnull private String max; - - public static final String JSON_PROPERTY_CURRENCY = "currency"; - @jakarta.annotation.Nonnull private String currency; - - public AmountRange() {} - - @JsonCreator - public AmountRange( - @JsonProperty(value = JSON_PROPERTY_MIN, required = true) String min, - @JsonProperty(value = JSON_PROPERTY_MAX, required = true) String max, - @JsonProperty(value = JSON_PROPERTY_CURRENCY, required = true) String currency) { - this.min = min; - this.max = max; - this.currency = currency; - } - - public AmountRange min(@jakarta.annotation.Nonnull String min) { - this.min = min; - return this; - } - - /** - * Minimum amount - * - * @return min - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_MIN) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getMin() { - return min; - } - - @JsonProperty(JSON_PROPERTY_MIN) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setMin(@jakarta.annotation.Nonnull String min) { - this.min = min; - } - - public AmountRange max(@jakarta.annotation.Nonnull String max) { - this.max = max; - return this; - } - - /** - * Maximum amount - * - * @return max - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_MAX) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getMax() { - return max; - } - - @JsonProperty(JSON_PROPERTY_MAX) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setMax(@jakarta.annotation.Nonnull String max) { - this.max = max; - } - - public AmountRange currency(@jakarta.annotation.Nonnull String currency) { - this.currency = currency; - return this; - } - - /** - * Currency for the amount - * - * @return currency - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CURRENCY) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getCurrency() { - return currency; - } - - @JsonProperty(JSON_PROPERTY_CURRENCY) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCurrency(@jakarta.annotation.Nonnull String currency) { - this.currency = currency; - } - - /** Return true if this AmountRange object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AmountRange amountRange = (AmountRange) o; - return Objects.equals(this.min, amountRange.min) - && Objects.equals(this.max, amountRange.max) - && Objects.equals(this.currency, amountRange.currency); - } - - @Override - public int hashCode() { - return Objects.hash(min, max, currency); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AmountRange {\n"); - sb.append(" min: ").append(toIndentedString(min)).append("\n"); - sb.append(" max: ").append(toIndentedString(max)).append("\n"); - sb.append(" currency: ").append(toIndentedString(currency)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `min` to the URL query string - if (getMin() != null) { - joiner.add( - String.format( - "%smin%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getMin())))); - } - - // add `max` to the URL query string - if (getMax() != null) { - joiner.add( - String.format( - "%smax%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getMax())))); - } - - // add `currency` to the URL query string - if (getCurrency() != null) { - joiner.add( - String.format( - "%scurrency%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getCurrency())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/ApiKey.java b/src/main/java/com/fireblocks/sdk/model/ApiKey.java index 7cb2e64c..37e7d187 100644 --- a/src/main/java/com/fireblocks/sdk/model/ApiKey.java +++ b/src/main/java/com/fireblocks/sdk/model/ApiKey.java @@ -24,11 +24,7 @@ import java.util.UUID; /** ApiKey */ -@JsonPropertyOrder({ - ApiKey.JSON_PROPERTY_ID, - ApiKey.JSON_PROPERTY_LAST_SEEN, - ApiKey.JSON_PROPERTY_CALLBACK_HANDLER -}) +@JsonPropertyOrder({ApiKey.JSON_PROPERTY_ID, ApiKey.JSON_PROPERTY_LAST_SEEN}) @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") @@ -37,16 +33,17 @@ public class ApiKey { @jakarta.annotation.Nonnull private UUID id; public static final String JSON_PROPERTY_LAST_SEEN = "lastSeen"; - @jakarta.annotation.Nullable private OffsetDateTime lastSeen; - - public static final String JSON_PROPERTY_CALLBACK_HANDLER = "callbackHandler"; - @jakarta.annotation.Nullable private CallbackHandler callbackHandler; + @jakarta.annotation.Nonnull private OffsetDateTime lastSeen; public ApiKey() {} @JsonCreator - public ApiKey(@JsonProperty(value = JSON_PROPERTY_ID, required = true) UUID id) { + public ApiKey( + @JsonProperty(value = JSON_PROPERTY_ID, required = true) UUID id, + @JsonProperty(value = JSON_PROPERTY_LAST_SEEN, required = true) + OffsetDateTime lastSeen) { this.id = id; + this.lastSeen = lastSeen; } public ApiKey id(@jakarta.annotation.Nonnull UUID id) { @@ -72,7 +69,7 @@ public void setId(@jakarta.annotation.Nonnull UUID id) { this.id = id; } - public ApiKey lastSeen(@jakarta.annotation.Nullable OffsetDateTime lastSeen) { + public ApiKey lastSeen(@jakarta.annotation.Nonnull OffsetDateTime lastSeen) { this.lastSeen = lastSeen; return this; } @@ -82,42 +79,19 @@ public ApiKey lastSeen(@jakarta.annotation.Nullable OffsetDateTime lastSeen) { * * @return lastSeen */ - @jakarta.annotation.Nullable + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_LAST_SEEN) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public OffsetDateTime getLastSeen() { return lastSeen; } @JsonProperty(JSON_PROPERTY_LAST_SEEN) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLastSeen(@jakarta.annotation.Nullable OffsetDateTime lastSeen) { + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setLastSeen(@jakarta.annotation.Nonnull OffsetDateTime lastSeen) { this.lastSeen = lastSeen; } - public ApiKey callbackHandler(@jakarta.annotation.Nullable CallbackHandler callbackHandler) { - this.callbackHandler = callbackHandler; - return this; - } - - /** - * Get callbackHandler - * - * @return callbackHandler - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CALLBACK_HANDLER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CallbackHandler getCallbackHandler() { - return callbackHandler; - } - - @JsonProperty(JSON_PROPERTY_CALLBACK_HANDLER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCallbackHandler(@jakarta.annotation.Nullable CallbackHandler callbackHandler) { - this.callbackHandler = callbackHandler; - } - /** Return true if this ApiKey object is equal to o. */ @Override public boolean equals(Object o) { @@ -128,14 +102,12 @@ public boolean equals(Object o) { return false; } ApiKey apiKey = (ApiKey) o; - return Objects.equals(this.id, apiKey.id) - && Objects.equals(this.lastSeen, apiKey.lastSeen) - && Objects.equals(this.callbackHandler, apiKey.callbackHandler); + return Objects.equals(this.id, apiKey.id) && Objects.equals(this.lastSeen, apiKey.lastSeen); } @Override public int hashCode() { - return Objects.hash(id, lastSeen, callbackHandler); + return Objects.hash(id, lastSeen); } @Override @@ -144,7 +116,6 @@ public String toString() { sb.append("class ApiKey {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" lastSeen: ").append(toIndentedString(lastSeen)).append("\n"); - sb.append(" callbackHandler: ").append(toIndentedString(callbackHandler)).append("\n"); sb.append("}"); return sb.toString(); } @@ -210,11 +181,6 @@ public String toUrlQueryString(String prefix) { ApiClient.urlEncode(ApiClient.valueToString(getLastSeen())))); } - // add `callbackHandler` to the URL query string - if (getCallbackHandler() != null) { - joiner.add(getCallbackHandler().toUrlQueryString(prefix + "callbackHandler" + suffix)); - } - return joiner.toString(); } } diff --git a/src/main/java/com/fireblocks/sdk/model/ApiKeysPaginatedResponse.java b/src/main/java/com/fireblocks/sdk/model/ApiKeysPaginatedResponse.java index 585dcaac..e1927cae 100644 --- a/src/main/java/com/fireblocks/sdk/model/ApiKeysPaginatedResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/ApiKeysPaginatedResponse.java @@ -33,7 +33,7 @@ comments = "Generator version: 7.14.0") public class ApiKeysPaginatedResponse { public static final String JSON_PROPERTY_DATA = "data"; - @jakarta.annotation.Nonnull private List data = new ArrayList<>(); + @jakarta.annotation.Nonnull private List data; public static final String JSON_PROPERTY_NEXT = "next"; @jakarta.annotation.Nullable private String next; diff --git a/src/main/java/com/fireblocks/sdk/model/ApproversConfig.java b/src/main/java/com/fireblocks/sdk/model/ApproversConfig.java deleted file mode 100644 index 14dfdd60..00000000 --- a/src/main/java/com/fireblocks/sdk/model/ApproversConfig.java +++ /dev/null @@ -1,333 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fireblocks.sdk.ApiClient; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** Approvers configuration */ -@JsonPropertyOrder({ - ApproversConfig.JSON_PROPERTY_CAN_INITIATOR_APPROVE, - ApproversConfig.JSON_PROPERTY_OPERATOR, - ApproversConfig.JSON_PROPERTY_ALLOW_OPERATOR_AS_AUTHORIZER, - ApproversConfig.JSON_PROPERTY_APPROVAL_GROUPS -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class ApproversConfig { - public static final String JSON_PROPERTY_CAN_INITIATOR_APPROVE = "canInitiatorApprove"; - @jakarta.annotation.Nullable private Boolean canInitiatorApprove; - - /** Operator for approval groups */ - public enum OperatorEnum { - AND(String.valueOf("AND")), - - OR(String.valueOf("OR")); - - private String value; - - OperatorEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static OperatorEnum fromValue(String value) { - for (OperatorEnum b : OperatorEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_OPERATOR = "operator"; - @jakarta.annotation.Nullable private OperatorEnum operator; - - public static final String JSON_PROPERTY_ALLOW_OPERATOR_AS_AUTHORIZER = - "allowOperatorAsAuthorizer"; - @jakarta.annotation.Nullable private Boolean allowOperatorAsAuthorizer; - - public static final String JSON_PROPERTY_APPROVAL_GROUPS = "approvalGroups"; - - @jakarta.annotation.Nullable - private List approvalGroups = new ArrayList<>(); - - public ApproversConfig() {} - - public ApproversConfig canInitiatorApprove( - @jakarta.annotation.Nullable Boolean canInitiatorApprove) { - this.canInitiatorApprove = canInitiatorApprove; - return this; - } - - /** - * Whether initiator can approve - * - * @return canInitiatorApprove - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CAN_INITIATOR_APPROVE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getCanInitiatorApprove() { - return canInitiatorApprove; - } - - @JsonProperty(JSON_PROPERTY_CAN_INITIATOR_APPROVE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCanInitiatorApprove(@jakarta.annotation.Nullable Boolean canInitiatorApprove) { - this.canInitiatorApprove = canInitiatorApprove; - } - - public ApproversConfig operator(@jakarta.annotation.Nullable OperatorEnum operator) { - this.operator = operator; - return this; - } - - /** - * Operator for approval groups - * - * @return operator - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OPERATOR) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public OperatorEnum getOperator() { - return operator; - } - - @JsonProperty(JSON_PROPERTY_OPERATOR) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOperator(@jakarta.annotation.Nullable OperatorEnum operator) { - this.operator = operator; - } - - public ApproversConfig allowOperatorAsAuthorizer( - @jakarta.annotation.Nullable Boolean allowOperatorAsAuthorizer) { - this.allowOperatorAsAuthorizer = allowOperatorAsAuthorizer; - return this; - } - - /** - * Whether operator can be authorizer - * - * @return allowOperatorAsAuthorizer - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ALLOW_OPERATOR_AS_AUTHORIZER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getAllowOperatorAsAuthorizer() { - return allowOperatorAsAuthorizer; - } - - @JsonProperty(JSON_PROPERTY_ALLOW_OPERATOR_AS_AUTHORIZER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAllowOperatorAsAuthorizer( - @jakarta.annotation.Nullable Boolean allowOperatorAsAuthorizer) { - this.allowOperatorAsAuthorizer = allowOperatorAsAuthorizer; - } - - public ApproversConfig approvalGroups( - @jakarta.annotation.Nullable List approvalGroups) { - this.approvalGroups = approvalGroups; - return this; - } - - public ApproversConfig addApprovalGroupsItem( - ApproversConfigApprovalGroupsInner approvalGroupsItem) { - if (this.approvalGroups == null) { - this.approvalGroups = new ArrayList<>(); - } - this.approvalGroups.add(approvalGroupsItem); - return this; - } - - /** - * List of approval groups - * - * @return approvalGroups - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_APPROVAL_GROUPS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getApprovalGroups() { - return approvalGroups; - } - - @JsonProperty(JSON_PROPERTY_APPROVAL_GROUPS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setApprovalGroups( - @jakarta.annotation.Nullable List approvalGroups) { - this.approvalGroups = approvalGroups; - } - - /** Return true if this ApproversConfig object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ApproversConfig approversConfig = (ApproversConfig) o; - return Objects.equals(this.canInitiatorApprove, approversConfig.canInitiatorApprove) - && Objects.equals(this.operator, approversConfig.operator) - && Objects.equals( - this.allowOperatorAsAuthorizer, approversConfig.allowOperatorAsAuthorizer) - && Objects.equals(this.approvalGroups, approversConfig.approvalGroups); - } - - @Override - public int hashCode() { - return Objects.hash( - canInitiatorApprove, operator, allowOperatorAsAuthorizer, approvalGroups); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ApproversConfig {\n"); - sb.append(" canInitiatorApprove: ") - .append(toIndentedString(canInitiatorApprove)) - .append("\n"); - sb.append(" operator: ").append(toIndentedString(operator)).append("\n"); - sb.append(" allowOperatorAsAuthorizer: ") - .append(toIndentedString(allowOperatorAsAuthorizer)) - .append("\n"); - sb.append(" approvalGroups: ").append(toIndentedString(approvalGroups)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `canInitiatorApprove` to the URL query string - if (getCanInitiatorApprove() != null) { - joiner.add( - String.format( - "%scanInitiatorApprove%s=%s", - prefix, - suffix, - ApiClient.urlEncode( - ApiClient.valueToString(getCanInitiatorApprove())))); - } - - // add `operator` to the URL query string - if (getOperator() != null) { - joiner.add( - String.format( - "%soperator%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getOperator())))); - } - - // add `allowOperatorAsAuthorizer` to the URL query string - if (getAllowOperatorAsAuthorizer() != null) { - joiner.add( - String.format( - "%sallowOperatorAsAuthorizer%s=%s", - prefix, - suffix, - ApiClient.urlEncode( - ApiClient.valueToString(getAllowOperatorAsAuthorizer())))); - } - - // add `approvalGroups` to the URL query string - if (getApprovalGroups() != null) { - for (int i = 0; i < getApprovalGroups().size(); i++) { - if (getApprovalGroups().get(i) != null) { - joiner.add( - getApprovalGroups() - .get(i) - .toUrlQueryString( - String.format( - "%sapprovalGroups%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/ApproversConfigApprovalGroupsInner.java b/src/main/java/com/fireblocks/sdk/model/ApproversConfigApprovalGroupsInner.java deleted file mode 100644 index b5574d70..00000000 --- a/src/main/java/com/fireblocks/sdk/model/ApproversConfigApprovalGroupsInner.java +++ /dev/null @@ -1,261 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.math.BigDecimal; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** ApproversConfigApprovalGroupsInner */ -@JsonPropertyOrder({ - ApproversConfigApprovalGroupsInner.JSON_PROPERTY_THRESHOLD, - ApproversConfigApprovalGroupsInner.JSON_PROPERTY_USERS, - ApproversConfigApprovalGroupsInner.JSON_PROPERTY_GROUPS -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class ApproversConfigApprovalGroupsInner { - public static final String JSON_PROPERTY_THRESHOLD = "threshold"; - @jakarta.annotation.Nonnull private BigDecimal threshold; - - public static final String JSON_PROPERTY_USERS = "users"; - @jakarta.annotation.Nullable private List users = new ArrayList<>(); - - public static final String JSON_PROPERTY_GROUPS = "groups"; - @jakarta.annotation.Nullable private List groups = new ArrayList<>(); - - public ApproversConfigApprovalGroupsInner() {} - - @JsonCreator - public ApproversConfigApprovalGroupsInner( - @JsonProperty(value = JSON_PROPERTY_THRESHOLD, required = true) BigDecimal threshold) { - this.threshold = threshold; - } - - public ApproversConfigApprovalGroupsInner threshold( - @jakarta.annotation.Nonnull BigDecimal threshold) { - this.threshold = threshold; - return this; - } - - /** - * Approval threshold - * - * @return threshold - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_THRESHOLD) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public BigDecimal getThreshold() { - return threshold; - } - - @JsonProperty(JSON_PROPERTY_THRESHOLD) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setThreshold(@jakarta.annotation.Nonnull BigDecimal threshold) { - this.threshold = threshold; - } - - public ApproversConfigApprovalGroupsInner users( - @jakarta.annotation.Nullable List users) { - this.users = users; - return this; - } - - public ApproversConfigApprovalGroupsInner addUsersItem(String usersItem) { - if (this.users == null) { - this.users = new ArrayList<>(); - } - this.users.add(usersItem); - return this; - } - - /** - * List of user IDs - * - * @return users - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USERS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getUsers() { - return users; - } - - @JsonProperty(JSON_PROPERTY_USERS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUsers(@jakarta.annotation.Nullable List users) { - this.users = users; - } - - public ApproversConfigApprovalGroupsInner groups( - @jakarta.annotation.Nullable List groups) { - this.groups = groups; - return this; - } - - public ApproversConfigApprovalGroupsInner addGroupsItem(String groupsItem) { - if (this.groups == null) { - this.groups = new ArrayList<>(); - } - this.groups.add(groupsItem); - return this; - } - - /** - * List of policy group IDs - * - * @return groups - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_GROUPS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getGroups() { - return groups; - } - - @JsonProperty(JSON_PROPERTY_GROUPS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setGroups(@jakarta.annotation.Nullable List groups) { - this.groups = groups; - } - - /** Return true if this ApproversConfig_approvalGroups_inner object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ApproversConfigApprovalGroupsInner approversConfigApprovalGroupsInner = - (ApproversConfigApprovalGroupsInner) o; - return Objects.equals(this.threshold, approversConfigApprovalGroupsInner.threshold) - && Objects.equals(this.users, approversConfigApprovalGroupsInner.users) - && Objects.equals(this.groups, approversConfigApprovalGroupsInner.groups); - } - - @Override - public int hashCode() { - return Objects.hash(threshold, users, groups); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ApproversConfigApprovalGroupsInner {\n"); - sb.append(" threshold: ").append(toIndentedString(threshold)).append("\n"); - sb.append(" users: ").append(toIndentedString(users)).append("\n"); - sb.append(" groups: ").append(toIndentedString(groups)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `threshold` to the URL query string - if (getThreshold() != null) { - joiner.add( - String.format( - "%sthreshold%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getThreshold())))); - } - - // add `users` to the URL query string - if (getUsers() != null) { - for (int i = 0; i < getUsers().size(); i++) { - joiner.add( - String.format( - "%susers%s%s=%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode(ApiClient.valueToString(getUsers().get(i))))); - } - } - - // add `groups` to the URL query string - if (getGroups() != null) { - for (int i = 0; i < getGroups().size(); i++) { - joiner.add( - String.format( - "%sgroups%s%s=%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode(ApiClient.valueToString(getGroups().get(i))))); - } - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/Asset.java b/src/main/java/com/fireblocks/sdk/model/Asset.java deleted file mode 100644 index cc50c1c5..00000000 --- a/src/main/java/com/fireblocks/sdk/model/Asset.java +++ /dev/null @@ -1,429 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** Asset */ -@JsonPropertyOrder({ - Asset.JSON_PROPERTY_ID, - Asset.JSON_PROPERTY_LEGACY_ID, - Asset.JSON_PROPERTY_BLOCKCHAIN_ID, - Asset.JSON_PROPERTY_DISPLAY_NAME, - Asset.JSON_PROPERTY_DISPLAY_SYMBOL, - Asset.JSON_PROPERTY_ASSET_CLASS, - Asset.JSON_PROPERTY_ONCHAIN, - Asset.JSON_PROPERTY_METADATA -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class Asset { - public static final String JSON_PROPERTY_ID = "id"; - @jakarta.annotation.Nonnull private String id; - - public static final String JSON_PROPERTY_LEGACY_ID = "legacyId"; - @jakarta.annotation.Nonnull private String legacyId; - - public static final String JSON_PROPERTY_BLOCKCHAIN_ID = "blockchainId"; - @jakarta.annotation.Nullable private String blockchainId; - - public static final String JSON_PROPERTY_DISPLAY_NAME = "displayName"; - @jakarta.annotation.Nonnull private String displayName; - - public static final String JSON_PROPERTY_DISPLAY_SYMBOL = "displaySymbol"; - @jakarta.annotation.Nonnull private String displaySymbol; - - public static final String JSON_PROPERTY_ASSET_CLASS = "assetClass"; - @jakarta.annotation.Nonnull private AssetClass assetClass; - - public static final String JSON_PROPERTY_ONCHAIN = "onchain"; - @jakarta.annotation.Nullable private AssetDetailsOnchain onchain; - - public static final String JSON_PROPERTY_METADATA = "metadata"; - @jakarta.annotation.Nonnull private AssetDetailsMetadata metadata; - - public Asset() {} - - @JsonCreator - public Asset( - @JsonProperty(value = JSON_PROPERTY_ID, required = true) String id, - @JsonProperty(value = JSON_PROPERTY_LEGACY_ID, required = true) String legacyId, - @JsonProperty(value = JSON_PROPERTY_DISPLAY_NAME, required = true) String displayName, - @JsonProperty(value = JSON_PROPERTY_DISPLAY_SYMBOL, required = true) - String displaySymbol, - @JsonProperty(value = JSON_PROPERTY_ASSET_CLASS, required = true) AssetClass assetClass, - @JsonProperty(value = JSON_PROPERTY_METADATA, required = true) - AssetDetailsMetadata metadata) { - this.id = id; - this.legacyId = legacyId; - this.displayName = displayName; - this.displaySymbol = displaySymbol; - this.assetClass = assetClass; - this.metadata = metadata; - } - - public Asset id(@jakarta.annotation.Nonnull String id) { - this.id = id; - return this; - } - - /** - * The ID of the asset - * - * @return id - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getId() { - return id; - } - - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(@jakarta.annotation.Nonnull String id) { - this.id = id; - } - - public Asset legacyId(@jakarta.annotation.Nonnull String legacyId) { - this.legacyId = legacyId; - return this; - } - - /** - * The Legacy ID of the asset - * - * @return legacyId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_LEGACY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getLegacyId() { - return legacyId; - } - - @JsonProperty(JSON_PROPERTY_LEGACY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setLegacyId(@jakarta.annotation.Nonnull String legacyId) { - this.legacyId = legacyId; - } - - public Asset blockchainId(@jakarta.annotation.Nullable String blockchainId) { - this.blockchainId = blockchainId; - return this; - } - - /** - * The ID of the asset's blockchain - * - * @return blockchainId - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BLOCKCHAIN_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getBlockchainId() { - return blockchainId; - } - - @JsonProperty(JSON_PROPERTY_BLOCKCHAIN_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBlockchainId(@jakarta.annotation.Nullable String blockchainId) { - this.blockchainId = blockchainId; - } - - public Asset displayName(@jakarta.annotation.Nonnull String displayName) { - this.displayName = displayName; - return this; - } - - /** - * Asset's display name - * - * @return displayName - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DISPLAY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getDisplayName() { - return displayName; - } - - @JsonProperty(JSON_PROPERTY_DISPLAY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDisplayName(@jakarta.annotation.Nonnull String displayName) { - this.displayName = displayName; - } - - public Asset displaySymbol(@jakarta.annotation.Nonnull String displaySymbol) { - this.displaySymbol = displaySymbol; - return this; - } - - /** - * Asset's display symbol - * - * @return displaySymbol - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DISPLAY_SYMBOL) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getDisplaySymbol() { - return displaySymbol; - } - - @JsonProperty(JSON_PROPERTY_DISPLAY_SYMBOL) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDisplaySymbol(@jakarta.annotation.Nonnull String displaySymbol) { - this.displaySymbol = displaySymbol; - } - - public Asset assetClass(@jakarta.annotation.Nonnull AssetClass assetClass) { - this.assetClass = assetClass; - return this; - } - - /** - * Get assetClass - * - * @return assetClass - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ASSET_CLASS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AssetClass getAssetClass() { - return assetClass; - } - - @JsonProperty(JSON_PROPERTY_ASSET_CLASS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAssetClass(@jakarta.annotation.Nonnull AssetClass assetClass) { - this.assetClass = assetClass; - } - - public Asset onchain(@jakarta.annotation.Nullable AssetDetailsOnchain onchain) { - this.onchain = onchain; - return this; - } - - /** - * Get onchain - * - * @return onchain - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ONCHAIN) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public AssetDetailsOnchain getOnchain() { - return onchain; - } - - @JsonProperty(JSON_PROPERTY_ONCHAIN) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOnchain(@jakarta.annotation.Nullable AssetDetailsOnchain onchain) { - this.onchain = onchain; - } - - public Asset metadata(@jakarta.annotation.Nonnull AssetDetailsMetadata metadata) { - this.metadata = metadata; - return this; - } - - /** - * Get metadata - * - * @return metadata - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_METADATA) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AssetDetailsMetadata getMetadata() { - return metadata; - } - - @JsonProperty(JSON_PROPERTY_METADATA) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setMetadata(@jakarta.annotation.Nonnull AssetDetailsMetadata metadata) { - this.metadata = metadata; - } - - /** Return true if this Asset object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Asset asset = (Asset) o; - return Objects.equals(this.id, asset.id) - && Objects.equals(this.legacyId, asset.legacyId) - && Objects.equals(this.blockchainId, asset.blockchainId) - && Objects.equals(this.displayName, asset.displayName) - && Objects.equals(this.displaySymbol, asset.displaySymbol) - && Objects.equals(this.assetClass, asset.assetClass) - && Objects.equals(this.onchain, asset.onchain) - && Objects.equals(this.metadata, asset.metadata); - } - - @Override - public int hashCode() { - return Objects.hash( - id, - legacyId, - blockchainId, - displayName, - displaySymbol, - assetClass, - onchain, - metadata); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class Asset {\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" legacyId: ").append(toIndentedString(legacyId)).append("\n"); - sb.append(" blockchainId: ").append(toIndentedString(blockchainId)).append("\n"); - sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n"); - sb.append(" displaySymbol: ").append(toIndentedString(displaySymbol)).append("\n"); - sb.append(" assetClass: ").append(toIndentedString(assetClass)).append("\n"); - sb.append(" onchain: ").append(toIndentedString(onchain)).append("\n"); - sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `id` to the URL query string - if (getId() != null) { - joiner.add( - String.format( - "%sid%s=%s", - prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); - } - - // add `legacyId` to the URL query string - if (getLegacyId() != null) { - joiner.add( - String.format( - "%slegacyId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getLegacyId())))); - } - - // add `blockchainId` to the URL query string - if (getBlockchainId() != null) { - joiner.add( - String.format( - "%sblockchainId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBlockchainId())))); - } - - // add `displayName` to the URL query string - if (getDisplayName() != null) { - joiner.add( - String.format( - "%sdisplayName%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getDisplayName())))); - } - - // add `displaySymbol` to the URL query string - if (getDisplaySymbol() != null) { - joiner.add( - String.format( - "%sdisplaySymbol%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getDisplaySymbol())))); - } - - // add `assetClass` to the URL query string - if (getAssetClass() != null) { - joiner.add( - String.format( - "%sassetClass%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAssetClass())))); - } - - // add `onchain` to the URL query string - if (getOnchain() != null) { - joiner.add(getOnchain().toUrlQueryString(prefix + "onchain" + suffix)); - } - - // add `metadata` to the URL query string - if (getMetadata() != null) { - joiner.add(getMetadata().toUrlQueryString(prefix + "metadata" + suffix)); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/AssetBadRequestErrorResponse.java b/src/main/java/com/fireblocks/sdk/model/AssetBadRequestErrorResponse.java index 92306750..9fa81816 100644 --- a/src/main/java/com/fireblocks/sdk/model/AssetBadRequestErrorResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/AssetBadRequestErrorResponse.java @@ -18,7 +18,6 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fireblocks.sdk.ApiClient; -import java.math.BigDecimal; import java.util.Objects; import java.util.StringJoiner; @@ -35,14 +34,14 @@ public class AssetBadRequestErrorResponse { @jakarta.annotation.Nonnull private String message; public static final String JSON_PROPERTY_CODE = "code"; - @jakarta.annotation.Nonnull private BigDecimal code; + @jakarta.annotation.Nonnull private String code; public AssetBadRequestErrorResponse() {} @JsonCreator public AssetBadRequestErrorResponse( @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = true) String message, - @JsonProperty(value = JSON_PROPERTY_CODE, required = true) BigDecimal code) { + @JsonProperty(value = JSON_PROPERTY_CODE, required = true) String code) { this.message = message; this.code = code; } @@ -70,7 +69,7 @@ public void setMessage(@jakarta.annotation.Nonnull String message) { this.message = message; } - public AssetBadRequestErrorResponse code(@jakarta.annotation.Nonnull BigDecimal code) { + public AssetBadRequestErrorResponse code(@jakarta.annotation.Nonnull String code) { this.code = code; return this; } @@ -83,13 +82,13 @@ public AssetBadRequestErrorResponse code(@jakarta.annotation.Nonnull BigDecimal @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public BigDecimal getCode() { + public String getCode() { return code; } @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCode(@jakarta.annotation.Nonnull BigDecimal code) { + public void setCode(@jakarta.annotation.Nonnull String code) { this.code = code; } diff --git a/src/main/java/com/fireblocks/sdk/model/AssetClass.java b/src/main/java/com/fireblocks/sdk/model/AssetClass.java deleted file mode 100644 index 32c863ca..00000000 --- a/src/main/java/com/fireblocks/sdk/model/AssetClass.java +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - -/** Gets or Sets AssetClass */ -public enum AssetClass { - NATIVE("NATIVE"), - - FT("FT"), - - FIAT("FIAT"), - - NFT("NFT"), - - SFT("SFT"); - - private String value; - - AssetClass(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static AssetClass fromValue(String value) { - for (AssetClass b : AssetClass.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - if (prefix == null) { - prefix = ""; - } - - return String.format("%s=%s", prefix, this.toString()); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/AssetConfig.java b/src/main/java/com/fireblocks/sdk/model/AssetConfig.java deleted file mode 100644 index 6559de51..00000000 --- a/src/main/java/com/fireblocks/sdk/model/AssetConfig.java +++ /dev/null @@ -1,251 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** Policy asset configuration */ -@JsonPropertyOrder({ - AssetConfig.JSON_PROPERTY_NFT_TRANSFER, - AssetConfig.JSON_PROPERTY_ASSET_TYPES, - AssetConfig.JSON_PROPERTY_OPERATOR -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class AssetConfig { - public static final String JSON_PROPERTY_NFT_TRANSFER = "nftTransfer"; - @jakarta.annotation.Nonnull private Boolean nftTransfer; - - public static final String JSON_PROPERTY_ASSET_TYPES = "assetTypes"; - @jakarta.annotation.Nullable private List assetTypes = new ArrayList<>(); - - public static final String JSON_PROPERTY_OPERATOR = "operator"; - @jakarta.annotation.Nullable private PolicyOperator operator; - - public AssetConfig() {} - - @JsonCreator - public AssetConfig( - @JsonProperty(value = JSON_PROPERTY_NFT_TRANSFER, required = true) - Boolean nftTransfer) { - this.nftTransfer = nftTransfer; - } - - public AssetConfig nftTransfer(@jakarta.annotation.Nonnull Boolean nftTransfer) { - this.nftTransfer = nftTransfer; - return this; - } - - /** - * Whether this is an NFT transfer - * - * @return nftTransfer - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NFT_TRANSFER) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Boolean getNftTransfer() { - return nftTransfer; - } - - @JsonProperty(JSON_PROPERTY_NFT_TRANSFER) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setNftTransfer(@jakarta.annotation.Nonnull Boolean nftTransfer) { - this.nftTransfer = nftTransfer; - } - - public AssetConfig assetTypes( - @jakarta.annotation.Nullable List assetTypes) { - this.assetTypes = assetTypes; - return this; - } - - public AssetConfig addAssetTypesItem(AssetTypesConfigInner assetTypesItem) { - if (this.assetTypes == null) { - this.assetTypes = new ArrayList<>(); - } - this.assetTypes.add(assetTypesItem); - return this; - } - - /** - * List of asset types - * - * @return assetTypes - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ASSET_TYPES) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getAssetTypes() { - return assetTypes; - } - - @JsonProperty(JSON_PROPERTY_ASSET_TYPES) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAssetTypes(@jakarta.annotation.Nullable List assetTypes) { - this.assetTypes = assetTypes; - } - - public AssetConfig operator(@jakarta.annotation.Nullable PolicyOperator operator) { - this.operator = operator; - return this; - } - - /** - * Get operator - * - * @return operator - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OPERATOR) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public PolicyOperator getOperator() { - return operator; - } - - @JsonProperty(JSON_PROPERTY_OPERATOR) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOperator(@jakarta.annotation.Nullable PolicyOperator operator) { - this.operator = operator; - } - - /** Return true if this AssetConfig object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AssetConfig assetConfig = (AssetConfig) o; - return Objects.equals(this.nftTransfer, assetConfig.nftTransfer) - && Objects.equals(this.assetTypes, assetConfig.assetTypes) - && Objects.equals(this.operator, assetConfig.operator); - } - - @Override - public int hashCode() { - return Objects.hash(nftTransfer, assetTypes, operator); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AssetConfig {\n"); - sb.append(" nftTransfer: ").append(toIndentedString(nftTransfer)).append("\n"); - sb.append(" assetTypes: ").append(toIndentedString(assetTypes)).append("\n"); - sb.append(" operator: ").append(toIndentedString(operator)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `nftTransfer` to the URL query string - if (getNftTransfer() != null) { - joiner.add( - String.format( - "%snftTransfer%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getNftTransfer())))); - } - - // add `assetTypes` to the URL query string - if (getAssetTypes() != null) { - for (int i = 0; i < getAssetTypes().size(); i++) { - if (getAssetTypes().get(i) != null) { - joiner.add( - getAssetTypes() - .get(i) - .toUrlQueryString( - String.format( - "%sassetTypes%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } - } - - // add `operator` to the URL query string - if (getOperator() != null) { - joiner.add( - String.format( - "%soperator%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getOperator())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/AssetConflictErrorResponse.java b/src/main/java/com/fireblocks/sdk/model/AssetConflictErrorResponse.java index 43b0b9d1..c7a25238 100644 --- a/src/main/java/com/fireblocks/sdk/model/AssetConflictErrorResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/AssetConflictErrorResponse.java @@ -18,7 +18,6 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fireblocks.sdk.ApiClient; -import java.math.BigDecimal; import java.util.Objects; import java.util.StringJoiner; @@ -35,14 +34,14 @@ public class AssetConflictErrorResponse { @jakarta.annotation.Nonnull private String message; public static final String JSON_PROPERTY_CODE = "code"; - @jakarta.annotation.Nonnull private BigDecimal code; + @jakarta.annotation.Nonnull private String code; public AssetConflictErrorResponse() {} @JsonCreator public AssetConflictErrorResponse( @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = true) String message, - @JsonProperty(value = JSON_PROPERTY_CODE, required = true) BigDecimal code) { + @JsonProperty(value = JSON_PROPERTY_CODE, required = true) String code) { this.message = message; this.code = code; } @@ -70,7 +69,7 @@ public void setMessage(@jakarta.annotation.Nonnull String message) { this.message = message; } - public AssetConflictErrorResponse code(@jakarta.annotation.Nonnull BigDecimal code) { + public AssetConflictErrorResponse code(@jakarta.annotation.Nonnull String code) { this.code = code; return this; } @@ -83,13 +82,13 @@ public AssetConflictErrorResponse code(@jakarta.annotation.Nonnull BigDecimal co @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public BigDecimal getCode() { + public String getCode() { return code; } @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCode(@jakarta.annotation.Nonnull BigDecimal code) { + public void setCode(@jakarta.annotation.Nonnull String code) { this.code = code; } diff --git a/src/main/java/com/fireblocks/sdk/model/AssetDetailsMetadata.java b/src/main/java/com/fireblocks/sdk/model/AssetDetailsMetadata.java deleted file mode 100644 index e1a1311c..00000000 --- a/src/main/java/com/fireblocks/sdk/model/AssetDetailsMetadata.java +++ /dev/null @@ -1,467 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** AssetDetailsMetadata */ -@JsonPropertyOrder({ - AssetDetailsMetadata.JSON_PROPERTY_SCOPE, - AssetDetailsMetadata.JSON_PROPERTY_VERIFIED, - AssetDetailsMetadata.JSON_PROPERTY_DEPRECATED, - AssetDetailsMetadata.JSON_PROPERTY_DEPRECATION_REFERRAL_ID, - AssetDetailsMetadata.JSON_PROPERTY_WEBSITE, - AssetDetailsMetadata.JSON_PROPERTY_MEDIA, - AssetDetailsMetadata.JSON_PROPERTY_NOTE, - AssetDetailsMetadata.JSON_PROPERTY_FEATURES -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class AssetDetailsMetadata { - public static final String JSON_PROPERTY_SCOPE = "scope"; - @jakarta.annotation.Nonnull private AssetScope scope; - - public static final String JSON_PROPERTY_VERIFIED = "verified"; - @jakarta.annotation.Nonnull private Boolean verified; - - public static final String JSON_PROPERTY_DEPRECATED = "deprecated"; - @jakarta.annotation.Nonnull private Boolean deprecated; - - public static final String JSON_PROPERTY_DEPRECATION_REFERRAL_ID = "deprecationReferralId"; - @jakarta.annotation.Nullable private String deprecationReferralId; - - public static final String JSON_PROPERTY_WEBSITE = "website"; - @jakarta.annotation.Nullable private String website; - - public static final String JSON_PROPERTY_MEDIA = "media"; - @jakarta.annotation.Nullable private List media = new ArrayList<>(); - - public static final String JSON_PROPERTY_NOTE = "note"; - @jakarta.annotation.Nullable private AssetNote note; - - public static final String JSON_PROPERTY_FEATURES = "features"; - @jakarta.annotation.Nullable private List features = new ArrayList<>(); - - public AssetDetailsMetadata() {} - - @JsonCreator - public AssetDetailsMetadata( - @JsonProperty(value = JSON_PROPERTY_SCOPE, required = true) AssetScope scope, - @JsonProperty(value = JSON_PROPERTY_VERIFIED, required = true) Boolean verified, - @JsonProperty(value = JSON_PROPERTY_DEPRECATED, required = true) Boolean deprecated) { - this.scope = scope; - this.verified = verified; - this.deprecated = deprecated; - } - - public AssetDetailsMetadata scope(@jakarta.annotation.Nonnull AssetScope scope) { - this.scope = scope; - return this; - } - - /** - * Get scope - * - * @return scope - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SCOPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AssetScope getScope() { - return scope; - } - - @JsonProperty(JSON_PROPERTY_SCOPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setScope(@jakarta.annotation.Nonnull AssetScope scope) { - this.scope = scope; - } - - public AssetDetailsMetadata verified(@jakarta.annotation.Nonnull Boolean verified) { - this.verified = verified; - return this; - } - - /** - * Is asset verified by Fireblocks - * - * @return verified - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_VERIFIED) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Boolean getVerified() { - return verified; - } - - @JsonProperty(JSON_PROPERTY_VERIFIED) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setVerified(@jakarta.annotation.Nonnull Boolean verified) { - this.verified = verified; - } - - public AssetDetailsMetadata deprecated(@jakarta.annotation.Nonnull Boolean deprecated) { - this.deprecated = deprecated; - return this; - } - - /** - * Is asset deprecated - * - * @return deprecated - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DEPRECATED) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Boolean getDeprecated() { - return deprecated; - } - - @JsonProperty(JSON_PROPERTY_DEPRECATED) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDeprecated(@jakarta.annotation.Nonnull Boolean deprecated) { - this.deprecated = deprecated; - } - - public AssetDetailsMetadata deprecationReferralId( - @jakarta.annotation.Nullable String deprecationReferralId) { - this.deprecationReferralId = deprecationReferralId; - return this; - } - - /** - * New asset ID replacement - * - * @return deprecationReferralId - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DEPRECATION_REFERRAL_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getDeprecationReferralId() { - return deprecationReferralId; - } - - @JsonProperty(JSON_PROPERTY_DEPRECATION_REFERRAL_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDeprecationReferralId( - @jakarta.annotation.Nullable String deprecationReferralId) { - this.deprecationReferralId = deprecationReferralId; - } - - public AssetDetailsMetadata website(@jakarta.annotation.Nullable String website) { - this.website = website; - return this; - } - - /** - * Vendor’s website - * - * @return website - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_WEBSITE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getWebsite() { - return website; - } - - @JsonProperty(JSON_PROPERTY_WEBSITE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setWebsite(@jakarta.annotation.Nullable String website) { - this.website = website; - } - - public AssetDetailsMetadata media(@jakarta.annotation.Nullable List media) { - this.media = media; - return this; - } - - public AssetDetailsMetadata addMediaItem(AssetMedia mediaItem) { - if (this.media == null) { - this.media = new ArrayList<>(); - } - this.media.add(mediaItem); - return this; - } - - /** - * Asset’s media - * - * @return media - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MEDIA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getMedia() { - return media; - } - - @JsonProperty(JSON_PROPERTY_MEDIA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMedia(@jakarta.annotation.Nullable List media) { - this.media = media; - } - - public AssetDetailsMetadata note(@jakarta.annotation.Nullable AssetNote note) { - this.note = note; - return this; - } - - /** - * Get note - * - * @return note - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NOTE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public AssetNote getNote() { - return note; - } - - @JsonProperty(JSON_PROPERTY_NOTE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNote(@jakarta.annotation.Nullable AssetNote note) { - this.note = note; - } - - public AssetDetailsMetadata features(@jakarta.annotation.Nullable List features) { - this.features = features; - return this; - } - - public AssetDetailsMetadata addFeaturesItem(AssetFeature featuresItem) { - if (this.features == null) { - this.features = new ArrayList<>(); - } - this.features.add(featuresItem); - return this; - } - - /** - * Asset features - * - * @return features - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FEATURES) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getFeatures() { - return features; - } - - @JsonProperty(JSON_PROPERTY_FEATURES) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFeatures(@jakarta.annotation.Nullable List features) { - this.features = features; - } - - /** Return true if this AssetDetailsMetadata object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AssetDetailsMetadata assetDetailsMetadata = (AssetDetailsMetadata) o; - return Objects.equals(this.scope, assetDetailsMetadata.scope) - && Objects.equals(this.verified, assetDetailsMetadata.verified) - && Objects.equals(this.deprecated, assetDetailsMetadata.deprecated) - && Objects.equals( - this.deprecationReferralId, assetDetailsMetadata.deprecationReferralId) - && Objects.equals(this.website, assetDetailsMetadata.website) - && Objects.equals(this.media, assetDetailsMetadata.media) - && Objects.equals(this.note, assetDetailsMetadata.note) - && Objects.equals(this.features, assetDetailsMetadata.features); - } - - @Override - public int hashCode() { - return Objects.hash( - scope, verified, deprecated, deprecationReferralId, website, media, note, features); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AssetDetailsMetadata {\n"); - sb.append(" scope: ").append(toIndentedString(scope)).append("\n"); - sb.append(" verified: ").append(toIndentedString(verified)).append("\n"); - sb.append(" deprecated: ").append(toIndentedString(deprecated)).append("\n"); - sb.append(" deprecationReferralId: ") - .append(toIndentedString(deprecationReferralId)) - .append("\n"); - sb.append(" website: ").append(toIndentedString(website)).append("\n"); - sb.append(" media: ").append(toIndentedString(media)).append("\n"); - sb.append(" note: ").append(toIndentedString(note)).append("\n"); - sb.append(" features: ").append(toIndentedString(features)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `scope` to the URL query string - if (getScope() != null) { - joiner.add( - String.format( - "%sscope%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getScope())))); - } - - // add `verified` to the URL query string - if (getVerified() != null) { - joiner.add( - String.format( - "%sverified%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getVerified())))); - } - - // add `deprecated` to the URL query string - if (getDeprecated() != null) { - joiner.add( - String.format( - "%sdeprecated%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getDeprecated())))); - } - - // add `deprecationReferralId` to the URL query string - if (getDeprecationReferralId() != null) { - joiner.add( - String.format( - "%sdeprecationReferralId%s=%s", - prefix, - suffix, - ApiClient.urlEncode( - ApiClient.valueToString(getDeprecationReferralId())))); - } - - // add `website` to the URL query string - if (getWebsite() != null) { - joiner.add( - String.format( - "%swebsite%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getWebsite())))); - } - - // add `media` to the URL query string - if (getMedia() != null) { - for (int i = 0; i < getMedia().size(); i++) { - if (getMedia().get(i) != null) { - joiner.add( - getMedia() - .get(i) - .toUrlQueryString( - String.format( - "%smedia%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } - } - - // add `note` to the URL query string - if (getNote() != null) { - joiner.add(getNote().toUrlQueryString(prefix + "note" + suffix)); - } - - // add `features` to the URL query string - if (getFeatures() != null) { - for (int i = 0; i < getFeatures().size(); i++) { - if (getFeatures().get(i) != null) { - joiner.add( - String.format( - "%sfeatures%s%s=%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode( - ApiClient.valueToString(getFeatures().get(i))))); - } - } - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/AssetDetailsOnchain.java b/src/main/java/com/fireblocks/sdk/model/AssetDetailsOnchain.java deleted file mode 100644 index 7ddcd056..00000000 --- a/src/main/java/com/fireblocks/sdk/model/AssetDetailsOnchain.java +++ /dev/null @@ -1,326 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.math.BigDecimal; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** AssetDetailsOnchain */ -@JsonPropertyOrder({ - AssetDetailsOnchain.JSON_PROPERTY_SYMBOL, - AssetDetailsOnchain.JSON_PROPERTY_NAME, - AssetDetailsOnchain.JSON_PROPERTY_ADDRESS, - AssetDetailsOnchain.JSON_PROPERTY_DECIMALS, - AssetDetailsOnchain.JSON_PROPERTY_STANDARDS -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class AssetDetailsOnchain { - public static final String JSON_PROPERTY_SYMBOL = "symbol"; - @jakarta.annotation.Nonnull private String symbol; - - public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nonnull private String name; - - public static final String JSON_PROPERTY_ADDRESS = "address"; - @jakarta.annotation.Nullable private String address; - - public static final String JSON_PROPERTY_DECIMALS = "decimals"; - @jakarta.annotation.Nonnull private BigDecimal decimals; - - public static final String JSON_PROPERTY_STANDARDS = "standards"; - @jakarta.annotation.Nullable private List standards = new ArrayList<>(); - - public AssetDetailsOnchain() {} - - @JsonCreator - public AssetDetailsOnchain( - @JsonProperty(value = JSON_PROPERTY_SYMBOL, required = true) String symbol, - @JsonProperty(value = JSON_PROPERTY_NAME, required = true) String name, - @JsonProperty(value = JSON_PROPERTY_DECIMALS, required = true) BigDecimal decimals) { - this.symbol = symbol; - this.name = name; - this.decimals = decimals; - } - - public AssetDetailsOnchain symbol(@jakarta.annotation.Nonnull String symbol) { - this.symbol = symbol; - return this; - } - - /** - * The asset symbol - * - * @return symbol - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SYMBOL) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getSymbol() { - return symbol; - } - - @JsonProperty(JSON_PROPERTY_SYMBOL) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSymbol(@jakarta.annotation.Nonnull String symbol) { - this.symbol = symbol; - } - - public AssetDetailsOnchain name(@jakarta.annotation.Nonnull String name) { - this.name = name; - return this; - } - - /** - * The asset name - * - * @return name - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getName() { - return name; - } - - @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(@jakarta.annotation.Nonnull String name) { - this.name = name; - } - - public AssetDetailsOnchain address(@jakarta.annotation.Nullable String address) { - this.address = address; - return this; - } - - /** - * The asset address - * - * @return address - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ADDRESS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getAddress() { - return address; - } - - @JsonProperty(JSON_PROPERTY_ADDRESS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAddress(@jakarta.annotation.Nullable String address) { - this.address = address; - } - - public AssetDetailsOnchain decimals(@jakarta.annotation.Nonnull BigDecimal decimals) { - this.decimals = decimals; - return this; - } - - /** - * Number of decimals - * - * @return decimals - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DECIMALS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public BigDecimal getDecimals() { - return decimals; - } - - @JsonProperty(JSON_PROPERTY_DECIMALS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDecimals(@jakarta.annotation.Nonnull BigDecimal decimals) { - this.decimals = decimals; - } - - public AssetDetailsOnchain standards(@jakarta.annotation.Nullable List standards) { - this.standards = standards; - return this; - } - - public AssetDetailsOnchain addStandardsItem(String standardsItem) { - if (this.standards == null) { - this.standards = new ArrayList<>(); - } - this.standards.add(standardsItem); - return this; - } - - /** - * Supported standards - * - * @return standards - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STANDARDS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getStandards() { - return standards; - } - - @JsonProperty(JSON_PROPERTY_STANDARDS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStandards(@jakarta.annotation.Nullable List standards) { - this.standards = standards; - } - - /** Return true if this AssetDetailsOnchain object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AssetDetailsOnchain assetDetailsOnchain = (AssetDetailsOnchain) o; - return Objects.equals(this.symbol, assetDetailsOnchain.symbol) - && Objects.equals(this.name, assetDetailsOnchain.name) - && Objects.equals(this.address, assetDetailsOnchain.address) - && Objects.equals(this.decimals, assetDetailsOnchain.decimals) - && Objects.equals(this.standards, assetDetailsOnchain.standards); - } - - @Override - public int hashCode() { - return Objects.hash(symbol, name, address, decimals, standards); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AssetDetailsOnchain {\n"); - sb.append(" symbol: ").append(toIndentedString(symbol)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" address: ").append(toIndentedString(address)).append("\n"); - sb.append(" decimals: ").append(toIndentedString(decimals)).append("\n"); - sb.append(" standards: ").append(toIndentedString(standards)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `symbol` to the URL query string - if (getSymbol() != null) { - joiner.add( - String.format( - "%ssymbol%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getSymbol())))); - } - - // add `name` to the URL query string - if (getName() != null) { - joiner.add( - String.format( - "%sname%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getName())))); - } - - // add `address` to the URL query string - if (getAddress() != null) { - joiner.add( - String.format( - "%saddress%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAddress())))); - } - - // add `decimals` to the URL query string - if (getDecimals() != null) { - joiner.add( - String.format( - "%sdecimals%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getDecimals())))); - } - - // add `standards` to the URL query string - if (getStandards() != null) { - for (int i = 0; i < getStandards().size(); i++) { - joiner.add( - String.format( - "%sstandards%s%s=%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode( - ApiClient.valueToString(getStandards().get(i))))); - } - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/FeeBreakdownOneOf1.java b/src/main/java/com/fireblocks/sdk/model/AssetDoesNotExistHttpError.java similarity index 54% rename from src/main/java/com/fireblocks/sdk/model/FeeBreakdownOneOf1.java rename to src/main/java/com/fireblocks/sdk/model/AssetDoesNotExistHttpError.java index 4c1c4702..c2e3dd7c 100644 --- a/src/main/java/com/fireblocks/sdk/model/FeeBreakdownOneOf1.java +++ b/src/main/java/com/fireblocks/sdk/model/AssetDoesNotExistHttpError.java @@ -20,97 +20,97 @@ import java.util.Objects; import java.util.StringJoiner; -/** Generic fee breakdown for other blockchains */ +/** AssetDoesNotExistHttpError */ @JsonPropertyOrder({ - FeeBreakdownOneOf1.JSON_PROPERTY_BASE_FEE, - FeeBreakdownOneOf1.JSON_PROPERTY_PRIORITY_FEE, - FeeBreakdownOneOf1.JSON_PROPERTY_TOTAL_FEE + AssetDoesNotExistHttpError.JSON_PROPERTY_STATUS_CODE, + AssetDoesNotExistHttpError.JSON_PROPERTY_MESSAGE, + AssetDoesNotExistHttpError.JSON_PROPERTY_ERROR }) @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") -public class FeeBreakdownOneOf1 { - public static final String JSON_PROPERTY_BASE_FEE = "baseFee"; - @jakarta.annotation.Nullable private String baseFee; +public class AssetDoesNotExistHttpError { + public static final String JSON_PROPERTY_STATUS_CODE = "statusCode"; + @jakarta.annotation.Nullable private Integer statusCode; - public static final String JSON_PROPERTY_PRIORITY_FEE = "priorityFee"; - @jakarta.annotation.Nullable private String priorityFee; + public static final String JSON_PROPERTY_MESSAGE = "message"; + @jakarta.annotation.Nullable private String message; - public static final String JSON_PROPERTY_TOTAL_FEE = "totalFee"; - @jakarta.annotation.Nullable private String totalFee; + public static final String JSON_PROPERTY_ERROR = "error"; + @jakarta.annotation.Nullable private String error; - public FeeBreakdownOneOf1() {} + public AssetDoesNotExistHttpError() {} - public FeeBreakdownOneOf1 baseFee(@jakarta.annotation.Nullable String baseFee) { - this.baseFee = baseFee; + public AssetDoesNotExistHttpError statusCode(@jakarta.annotation.Nullable Integer statusCode) { + this.statusCode = statusCode; return this; } /** - * Base fee component + * HTTP status code * - * @return baseFee + * @return statusCode */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BASE_FEE) + @JsonProperty(JSON_PROPERTY_STATUS_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getBaseFee() { - return baseFee; + public Integer getStatusCode() { + return statusCode; } - @JsonProperty(JSON_PROPERTY_BASE_FEE) + @JsonProperty(JSON_PROPERTY_STATUS_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBaseFee(@jakarta.annotation.Nullable String baseFee) { - this.baseFee = baseFee; + public void setStatusCode(@jakarta.annotation.Nullable Integer statusCode) { + this.statusCode = statusCode; } - public FeeBreakdownOneOf1 priorityFee(@jakarta.annotation.Nullable String priorityFee) { - this.priorityFee = priorityFee; + public AssetDoesNotExistHttpError message(@jakarta.annotation.Nullable String message) { + this.message = message; return this; } /** - * Priority fee component + * Error message * - * @return priorityFee + * @return message */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PRIORITY_FEE) + @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getPriorityFee() { - return priorityFee; + public String getMessage() { + return message; } - @JsonProperty(JSON_PROPERTY_PRIORITY_FEE) + @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPriorityFee(@jakarta.annotation.Nullable String priorityFee) { - this.priorityFee = priorityFee; + public void setMessage(@jakarta.annotation.Nullable String message) { + this.message = message; } - public FeeBreakdownOneOf1 totalFee(@jakarta.annotation.Nullable String totalFee) { - this.totalFee = totalFee; + public AssetDoesNotExistHttpError error(@jakarta.annotation.Nullable String error) { + this.error = error; return this; } /** - * Total fee amount + * Short description of the HTTP error * - * @return totalFee + * @return error */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TOTAL_FEE) + @JsonProperty(JSON_PROPERTY_ERROR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getTotalFee() { - return totalFee; + public String getError() { + return error; } - @JsonProperty(JSON_PROPERTY_TOTAL_FEE) + @JsonProperty(JSON_PROPERTY_ERROR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTotalFee(@jakarta.annotation.Nullable String totalFee) { - this.totalFee = totalFee; + public void setError(@jakarta.annotation.Nullable String error) { + this.error = error; } - /** Return true if this FeeBreakdown_oneOf_1 object is equal to o. */ + /** Return true if this AssetDoesNotExistHttpError object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -119,24 +119,24 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - FeeBreakdownOneOf1 feeBreakdownOneOf1 = (FeeBreakdownOneOf1) o; - return Objects.equals(this.baseFee, feeBreakdownOneOf1.baseFee) - && Objects.equals(this.priorityFee, feeBreakdownOneOf1.priorityFee) - && Objects.equals(this.totalFee, feeBreakdownOneOf1.totalFee); + AssetDoesNotExistHttpError assetDoesNotExistHttpError = (AssetDoesNotExistHttpError) o; + return Objects.equals(this.statusCode, assetDoesNotExistHttpError.statusCode) + && Objects.equals(this.message, assetDoesNotExistHttpError.message) + && Objects.equals(this.error, assetDoesNotExistHttpError.error); } @Override public int hashCode() { - return Objects.hash(baseFee, priorityFee, totalFee); + return Objects.hash(statusCode, message, error); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class FeeBreakdownOneOf1 {\n"); - sb.append(" baseFee: ").append(toIndentedString(baseFee)).append("\n"); - sb.append(" priorityFee: ").append(toIndentedString(priorityFee)).append("\n"); - sb.append(" totalFee: ").append(toIndentedString(totalFee)).append("\n"); + sb.append("class AssetDoesNotExistHttpError {\n"); + sb.append(" statusCode: ").append(toIndentedString(statusCode)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); sb.append("}"); return sb.toString(); } @@ -184,34 +184,34 @@ public String toUrlQueryString(String prefix) { StringJoiner joiner = new StringJoiner("&"); - // add `baseFee` to the URL query string - if (getBaseFee() != null) { + // add `statusCode` to the URL query string + if (getStatusCode() != null) { joiner.add( String.format( - "%sbaseFee%s=%s", + "%sstatusCode%s=%s", prefix, suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBaseFee())))); + ApiClient.urlEncode(ApiClient.valueToString(getStatusCode())))); } - // add `priorityFee` to the URL query string - if (getPriorityFee() != null) { + // add `message` to the URL query string + if (getMessage() != null) { joiner.add( String.format( - "%spriorityFee%s=%s", + "%smessage%s=%s", prefix, suffix, - ApiClient.urlEncode(ApiClient.valueToString(getPriorityFee())))); + ApiClient.urlEncode(ApiClient.valueToString(getMessage())))); } - // add `totalFee` to the URL query string - if (getTotalFee() != null) { + // add `error` to the URL query string + if (getError() != null) { joiner.add( String.format( - "%stotalFee%s=%s", + "%serror%s=%s", prefix, suffix, - ApiClient.urlEncode(ApiClient.valueToString(getTotalFee())))); + ApiClient.urlEncode(ApiClient.valueToString(getError())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/AssetFeature.java b/src/main/java/com/fireblocks/sdk/model/AssetFeature.java deleted file mode 100644 index ac789633..00000000 --- a/src/main/java/com/fireblocks/sdk/model/AssetFeature.java +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - -/** Asset feature */ -public enum AssetFeature { - STABLECOIN("STABLECOIN"); - - private String value; - - AssetFeature(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static AssetFeature fromValue(String value) { - for (AssetFeature b : AssetFeature.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - if (prefix == null) { - prefix = ""; - } - - return String.format("%s=%s", prefix, this.toString()); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/AssetForbiddenErrorResponse.java b/src/main/java/com/fireblocks/sdk/model/AssetForbiddenErrorResponse.java index 88499ba5..f1a4642f 100644 --- a/src/main/java/com/fireblocks/sdk/model/AssetForbiddenErrorResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/AssetForbiddenErrorResponse.java @@ -18,7 +18,6 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fireblocks.sdk.ApiClient; -import java.math.BigDecimal; import java.util.Objects; import java.util.StringJoiner; @@ -35,14 +34,14 @@ public class AssetForbiddenErrorResponse { @jakarta.annotation.Nonnull private String message; public static final String JSON_PROPERTY_CODE = "code"; - @jakarta.annotation.Nonnull private BigDecimal code; + @jakarta.annotation.Nonnull private String code; public AssetForbiddenErrorResponse() {} @JsonCreator public AssetForbiddenErrorResponse( @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = true) String message, - @JsonProperty(value = JSON_PROPERTY_CODE, required = true) BigDecimal code) { + @JsonProperty(value = JSON_PROPERTY_CODE, required = true) String code) { this.message = message; this.code = code; } @@ -70,7 +69,7 @@ public void setMessage(@jakarta.annotation.Nonnull String message) { this.message = message; } - public AssetForbiddenErrorResponse code(@jakarta.annotation.Nonnull BigDecimal code) { + public AssetForbiddenErrorResponse code(@jakarta.annotation.Nonnull String code) { this.code = code; return this; } @@ -83,13 +82,13 @@ public AssetForbiddenErrorResponse code(@jakarta.annotation.Nonnull BigDecimal c @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public BigDecimal getCode() { + public String getCode() { return code; } @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCode(@jakarta.annotation.Nonnull BigDecimal code) { + public void setCode(@jakarta.annotation.Nonnull String code) { this.code = code; } diff --git a/src/main/java/com/fireblocks/sdk/model/AssetInternalServerErrorResponse.java b/src/main/java/com/fireblocks/sdk/model/AssetInternalServerErrorResponse.java index 6f96ebac..e646a7b7 100644 --- a/src/main/java/com/fireblocks/sdk/model/AssetInternalServerErrorResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/AssetInternalServerErrorResponse.java @@ -18,7 +18,6 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fireblocks.sdk.ApiClient; -import java.math.BigDecimal; import java.util.Objects; import java.util.StringJoiner; @@ -35,14 +34,14 @@ public class AssetInternalServerErrorResponse { @jakarta.annotation.Nonnull private String message; public static final String JSON_PROPERTY_CODE = "code"; - @jakarta.annotation.Nonnull private BigDecimal code; + @jakarta.annotation.Nonnull private String code; public AssetInternalServerErrorResponse() {} @JsonCreator public AssetInternalServerErrorResponse( @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = true) String message, - @JsonProperty(value = JSON_PROPERTY_CODE, required = true) BigDecimal code) { + @JsonProperty(value = JSON_PROPERTY_CODE, required = true) String code) { this.message = message; this.code = code; } @@ -70,7 +69,7 @@ public void setMessage(@jakarta.annotation.Nonnull String message) { this.message = message; } - public AssetInternalServerErrorResponse code(@jakarta.annotation.Nonnull BigDecimal code) { + public AssetInternalServerErrorResponse code(@jakarta.annotation.Nonnull String code) { this.code = code; return this; } @@ -83,13 +82,13 @@ public AssetInternalServerErrorResponse code(@jakarta.annotation.Nonnull BigDeci @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public BigDecimal getCode() { + public String getCode() { return code; } @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCode(@jakarta.annotation.Nonnull BigDecimal code) { + public void setCode(@jakarta.annotation.Nonnull String code) { this.code = code; } diff --git a/src/main/java/com/fireblocks/sdk/model/AssetMedia.java b/src/main/java/com/fireblocks/sdk/model/AssetMedia.java deleted file mode 100644 index 14561495..00000000 --- a/src/main/java/com/fireblocks/sdk/model/AssetMedia.java +++ /dev/null @@ -1,257 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** AssetMedia */ -@JsonPropertyOrder({ - AssetMedia.JSON_PROPERTY_URL, - AssetMedia.JSON_PROPERTY_TYPE, - AssetMedia.JSON_PROPERTY_ATTRIBUTES -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class AssetMedia { - public static final String JSON_PROPERTY_URL = "url"; - @jakarta.annotation.Nonnull private String url; - - /** Media type */ - public enum TypeEnum { - IMAGE_SVG_XML(String.valueOf("image/svg+xml")), - - IMAGE_PNG(String.valueOf("image/png")); - - private String value; - - TypeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static TypeEnum fromValue(String value) { - for (TypeEnum b : TypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_TYPE = "type"; - @jakarta.annotation.Nonnull private TypeEnum type; - - public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; - @jakarta.annotation.Nullable private AssetMediaAttributes attributes; - - public AssetMedia() {} - - @JsonCreator - public AssetMedia( - @JsonProperty(value = JSON_PROPERTY_URL, required = true) String url, - @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) TypeEnum type) { - this.url = url; - this.type = type; - } - - public AssetMedia url(@jakarta.annotation.Nonnull String url) { - this.url = url; - return this; - } - - /** - * Media URL - * - * @return url - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_URL) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getUrl() { - return url; - } - - @JsonProperty(JSON_PROPERTY_URL) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUrl(@jakarta.annotation.Nonnull String url) { - this.url = url; - } - - public AssetMedia type(@jakarta.annotation.Nonnull TypeEnum type) { - this.type = type; - return this; - } - - /** - * Media type - * - * @return type - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { - return type; - } - - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(@jakarta.annotation.Nonnull TypeEnum type) { - this.type = type; - } - - public AssetMedia attributes(@jakarta.annotation.Nullable AssetMediaAttributes attributes) { - this.attributes = attributes; - return this; - } - - /** - * Get attributes - * - * @return attributes - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ATTRIBUTES) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public AssetMediaAttributes getAttributes() { - return attributes; - } - - @JsonProperty(JSON_PROPERTY_ATTRIBUTES) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAttributes(@jakarta.annotation.Nullable AssetMediaAttributes attributes) { - this.attributes = attributes; - } - - /** Return true if this AssetMedia object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AssetMedia assetMedia = (AssetMedia) o; - return Objects.equals(this.url, assetMedia.url) - && Objects.equals(this.type, assetMedia.type) - && Objects.equals(this.attributes, assetMedia.attributes); - } - - @Override - public int hashCode() { - return Objects.hash(url, type, attributes); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AssetMedia {\n"); - sb.append(" url: ").append(toIndentedString(url)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `url` to the URL query string - if (getUrl() != null) { - joiner.add( - String.format( - "%surl%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getUrl())))); - } - - // add `type` to the URL query string - if (getType() != null) { - joiner.add( - String.format( - "%stype%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getType())))); - } - - // add `attributes` to the URL query string - if (getAttributes() != null) { - joiner.add(getAttributes().toUrlQueryString(prefix + "attributes" + suffix)); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/AssetMediaAttributes.java b/src/main/java/com/fireblocks/sdk/model/AssetMediaAttributes.java deleted file mode 100644 index a8709b85..00000000 --- a/src/main/java/com/fireblocks/sdk/model/AssetMediaAttributes.java +++ /dev/null @@ -1,139 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** Media attributes */ -@JsonPropertyOrder({AssetMediaAttributes.JSON_PROPERTY_MONOCHROME}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class AssetMediaAttributes { - public static final String JSON_PROPERTY_MONOCHROME = "monochrome"; - @jakarta.annotation.Nullable private Boolean monochrome; - - public AssetMediaAttributes() {} - - public AssetMediaAttributes monochrome(@jakarta.annotation.Nullable Boolean monochrome) { - this.monochrome = monochrome; - return this; - } - - /** - * Monochrome flag - * - * @return monochrome - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MONOCHROME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getMonochrome() { - return monochrome; - } - - @JsonProperty(JSON_PROPERTY_MONOCHROME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMonochrome(@jakarta.annotation.Nullable Boolean monochrome) { - this.monochrome = monochrome; - } - - /** Return true if this AssetMedia_attributes object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AssetMediaAttributes assetMediaAttributes = (AssetMediaAttributes) o; - return Objects.equals(this.monochrome, assetMediaAttributes.monochrome); - } - - @Override - public int hashCode() { - return Objects.hash(monochrome); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AssetMediaAttributes {\n"); - sb.append(" monochrome: ").append(toIndentedString(monochrome)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `monochrome` to the URL query string - if (getMonochrome() != null) { - joiner.add( - String.format( - "%smonochrome%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getMonochrome())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/AssetMetadataRequest.java b/src/main/java/com/fireblocks/sdk/model/AssetMetadataRequest.java deleted file mode 100644 index 77804276..00000000 --- a/src/main/java/com/fireblocks/sdk/model/AssetMetadataRequest.java +++ /dev/null @@ -1,133 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.Objects; -import java.util.StringJoiner; - -/** AssetMetadataRequest */ -@JsonPropertyOrder({AssetMetadataRequest.JSON_PROPERTY_NOTE}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class AssetMetadataRequest { - public static final String JSON_PROPERTY_NOTE = "note"; - @jakarta.annotation.Nullable private AssetNoteRequest note; - - public AssetMetadataRequest() {} - - public AssetMetadataRequest note(@jakarta.annotation.Nullable AssetNoteRequest note) { - this.note = note; - return this; - } - - /** - * Get note - * - * @return note - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NOTE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public AssetNoteRequest getNote() { - return note; - } - - @JsonProperty(JSON_PROPERTY_NOTE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNote(@jakarta.annotation.Nullable AssetNoteRequest note) { - this.note = note; - } - - /** Return true if this AssetMetadataRequest object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AssetMetadataRequest assetMetadataRequest = (AssetMetadataRequest) o; - return Objects.equals(this.note, assetMetadataRequest.note); - } - - @Override - public int hashCode() { - return Objects.hash(note); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AssetMetadataRequest {\n"); - sb.append(" note: ").append(toIndentedString(note)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `note` to the URL query string - if (getNote() != null) { - joiner.add(getNote().toUrlQueryString(prefix + "note" + suffix)); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/AssetNotFoundErrorResponse.java b/src/main/java/com/fireblocks/sdk/model/AssetNotFoundErrorResponse.java index d74d3f83..c6f5cc46 100644 --- a/src/main/java/com/fireblocks/sdk/model/AssetNotFoundErrorResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/AssetNotFoundErrorResponse.java @@ -18,7 +18,6 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fireblocks.sdk.ApiClient; -import java.math.BigDecimal; import java.util.Objects; import java.util.StringJoiner; @@ -35,14 +34,14 @@ public class AssetNotFoundErrorResponse { @jakarta.annotation.Nonnull private String message; public static final String JSON_PROPERTY_CODE = "code"; - @jakarta.annotation.Nonnull private BigDecimal code; + @jakarta.annotation.Nonnull private String code; public AssetNotFoundErrorResponse() {} @JsonCreator public AssetNotFoundErrorResponse( @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = true) String message, - @JsonProperty(value = JSON_PROPERTY_CODE, required = true) BigDecimal code) { + @JsonProperty(value = JSON_PROPERTY_CODE, required = true) String code) { this.message = message; this.code = code; } @@ -70,7 +69,7 @@ public void setMessage(@jakarta.annotation.Nonnull String message) { this.message = message; } - public AssetNotFoundErrorResponse code(@jakarta.annotation.Nonnull BigDecimal code) { + public AssetNotFoundErrorResponse code(@jakarta.annotation.Nonnull String code) { this.code = code; return this; } @@ -83,13 +82,13 @@ public AssetNotFoundErrorResponse code(@jakarta.annotation.Nonnull BigDecimal co @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public BigDecimal getCode() { + public String getCode() { return code; } @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCode(@jakarta.annotation.Nonnull BigDecimal code) { + public void setCode(@jakarta.annotation.Nonnull String code) { this.code = code; } diff --git a/src/main/java/com/fireblocks/sdk/model/AssetNote.java b/src/main/java/com/fireblocks/sdk/model/AssetNote.java deleted file mode 100644 index 24e047c9..00000000 --- a/src/main/java/com/fireblocks/sdk/model/AssetNote.java +++ /dev/null @@ -1,274 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.time.OffsetDateTime; -import java.util.Objects; -import java.util.StringJoiner; -import java.util.UUID; - -/** AssetNote */ -@JsonPropertyOrder({ - AssetNote.JSON_PROPERTY_TEXT, - AssetNote.JSON_PROPERTY_USER_ID, - AssetNote.JSON_PROPERTY_USER_NAME, - AssetNote.JSON_PROPERTY_UPDATED_AT -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class AssetNote { - public static final String JSON_PROPERTY_TEXT = "text"; - @jakarta.annotation.Nonnull private String text; - - public static final String JSON_PROPERTY_USER_ID = "userId"; - @jakarta.annotation.Nonnull private UUID userId; - - public static final String JSON_PROPERTY_USER_NAME = "userName"; - @jakarta.annotation.Nonnull private String userName; - - public static final String JSON_PROPERTY_UPDATED_AT = "updatedAt"; - @jakarta.annotation.Nonnull private OffsetDateTime updatedAt; - - public AssetNote() {} - - @JsonCreator - public AssetNote( - @JsonProperty(value = JSON_PROPERTY_TEXT, required = true) String text, - @JsonProperty(value = JSON_PROPERTY_USER_ID, required = true) UUID userId, - @JsonProperty(value = JSON_PROPERTY_USER_NAME, required = true) String userName, - @JsonProperty(value = JSON_PROPERTY_UPDATED_AT, required = true) - OffsetDateTime updatedAt) { - this.text = text; - this.userId = userId; - this.userName = userName; - this.updatedAt = updatedAt; - } - - public AssetNote text(@jakarta.annotation.Nonnull String text) { - this.text = text; - return this; - } - - /** - * Note content - * - * @return text - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TEXT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getText() { - return text; - } - - @JsonProperty(JSON_PROPERTY_TEXT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setText(@jakarta.annotation.Nonnull String text) { - this.text = text; - } - - public AssetNote userId(@jakarta.annotation.Nonnull UUID userId) { - this.userId = userId; - return this; - } - - /** - * Who updated the note (uuid) - * - * @return userId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public UUID getUserId() { - return userId; - } - - @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUserId(@jakarta.annotation.Nonnull UUID userId) { - this.userId = userId; - } - - public AssetNote userName(@jakarta.annotation.Nonnull String userName) { - this.userName = userName; - return this; - } - - /** - * User name - * - * @return userName - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_USER_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getUserName() { - return userName; - } - - @JsonProperty(JSON_PROPERTY_USER_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUserName(@jakarta.annotation.Nonnull String userName) { - this.userName = userName; - } - - public AssetNote updatedAt(@jakarta.annotation.Nonnull OffsetDateTime updatedAt) { - this.updatedAt = updatedAt; - return this; - } - - /** - * ISO Timestamp when last updated - * - * @return updatedAt - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_UPDATED_AT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public OffsetDateTime getUpdatedAt() { - return updatedAt; - } - - @JsonProperty(JSON_PROPERTY_UPDATED_AT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUpdatedAt(@jakarta.annotation.Nonnull OffsetDateTime updatedAt) { - this.updatedAt = updatedAt; - } - - /** Return true if this AssetNote object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AssetNote assetNote = (AssetNote) o; - return Objects.equals(this.text, assetNote.text) - && Objects.equals(this.userId, assetNote.userId) - && Objects.equals(this.userName, assetNote.userName) - && Objects.equals(this.updatedAt, assetNote.updatedAt); - } - - @Override - public int hashCode() { - return Objects.hash(text, userId, userName, updatedAt); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AssetNote {\n"); - sb.append(" text: ").append(toIndentedString(text)).append("\n"); - sb.append(" userId: ").append(toIndentedString(userId)).append("\n"); - sb.append(" userName: ").append(toIndentedString(userName)).append("\n"); - sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `text` to the URL query string - if (getText() != null) { - joiner.add( - String.format( - "%stext%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getText())))); - } - - // add `userId` to the URL query string - if (getUserId() != null) { - joiner.add( - String.format( - "%suserId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getUserId())))); - } - - // add `userName` to the URL query string - if (getUserName() != null) { - joiner.add( - String.format( - "%suserName%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getUserName())))); - } - - // add `updatedAt` to the URL query string - if (getUpdatedAt() != null) { - joiner.add( - String.format( - "%supdatedAt%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getUpdatedAt())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/AssetNoteRequest.java b/src/main/java/com/fireblocks/sdk/model/AssetNoteRequest.java deleted file mode 100644 index 8acec6be..00000000 --- a/src/main/java/com/fireblocks/sdk/model/AssetNoteRequest.java +++ /dev/null @@ -1,139 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** AssetNoteRequest */ -@JsonPropertyOrder({AssetNoteRequest.JSON_PROPERTY_TEXT}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class AssetNoteRequest { - public static final String JSON_PROPERTY_TEXT = "text"; - @jakarta.annotation.Nullable private String text; - - public AssetNoteRequest() {} - - public AssetNoteRequest text(@jakarta.annotation.Nullable String text) { - this.text = text; - return this; - } - - /** - * Asset user note - * - * @return text - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TEXT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getText() { - return text; - } - - @JsonProperty(JSON_PROPERTY_TEXT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setText(@jakarta.annotation.Nullable String text) { - this.text = text; - } - - /** Return true if this AssetNoteRequest object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AssetNoteRequest assetNoteRequest = (AssetNoteRequest) o; - return Objects.equals(this.text, assetNoteRequest.text); - } - - @Override - public int hashCode() { - return Objects.hash(text); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AssetNoteRequest {\n"); - sb.append(" text: ").append(toIndentedString(text)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `text` to the URL query string - if (getText() != null) { - joiner.add( - String.format( - "%stext%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getText())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/AssetPriceForbiddenErrorResponse.java b/src/main/java/com/fireblocks/sdk/model/AssetPriceForbiddenErrorResponse.java deleted file mode 100644 index 5e5f026c..00000000 --- a/src/main/java/com/fireblocks/sdk/model/AssetPriceForbiddenErrorResponse.java +++ /dev/null @@ -1,191 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.math.BigDecimal; -import java.util.Objects; -import java.util.StringJoiner; - -/** AssetPriceForbiddenErrorResponse */ -@JsonPropertyOrder({ - AssetPriceForbiddenErrorResponse.JSON_PROPERTY_MESSAGE, - AssetPriceForbiddenErrorResponse.JSON_PROPERTY_CODE -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class AssetPriceForbiddenErrorResponse { - public static final String JSON_PROPERTY_MESSAGE = "message"; - @jakarta.annotation.Nonnull private String message; - - public static final String JSON_PROPERTY_CODE = "code"; - @jakarta.annotation.Nonnull private BigDecimal code; - - public AssetPriceForbiddenErrorResponse() {} - - @JsonCreator - public AssetPriceForbiddenErrorResponse( - @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = true) String message, - @JsonProperty(value = JSON_PROPERTY_CODE, required = true) BigDecimal code) { - this.message = message; - this.code = code; - } - - public AssetPriceForbiddenErrorResponse message(@jakarta.annotation.Nonnull String message) { - this.message = message; - return this; - } - - /** - * Forbidden error message - * - * @return message - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_MESSAGE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getMessage() { - return message; - } - - @JsonProperty(JSON_PROPERTY_MESSAGE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setMessage(@jakarta.annotation.Nonnull String message) { - this.message = message; - } - - public AssetPriceForbiddenErrorResponse code(@jakarta.annotation.Nonnull BigDecimal code) { - this.code = code; - return this; - } - - /** - * Error code - * - * @return code - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CODE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public BigDecimal getCode() { - return code; - } - - @JsonProperty(JSON_PROPERTY_CODE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCode(@jakarta.annotation.Nonnull BigDecimal code) { - this.code = code; - } - - /** Return true if this AssetPriceForbiddenErrorResponse object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AssetPriceForbiddenErrorResponse assetPriceForbiddenErrorResponse = - (AssetPriceForbiddenErrorResponse) o; - return Objects.equals(this.message, assetPriceForbiddenErrorResponse.message) - && Objects.equals(this.code, assetPriceForbiddenErrorResponse.code); - } - - @Override - public int hashCode() { - return Objects.hash(message, code); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AssetPriceForbiddenErrorResponse {\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); - sb.append(" code: ").append(toIndentedString(code)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `message` to the URL query string - if (getMessage() != null) { - joiner.add( - String.format( - "%smessage%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getMessage())))); - } - - // add `code` to the URL query string - if (getCode() != null) { - joiner.add( - String.format( - "%scode%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getCode())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/AssetPriceNotFoundErrorResponse.java b/src/main/java/com/fireblocks/sdk/model/AssetPriceNotFoundErrorResponse.java deleted file mode 100644 index 38cde82d..00000000 --- a/src/main/java/com/fireblocks/sdk/model/AssetPriceNotFoundErrorResponse.java +++ /dev/null @@ -1,191 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.math.BigDecimal; -import java.util.Objects; -import java.util.StringJoiner; - -/** AssetPriceNotFoundErrorResponse */ -@JsonPropertyOrder({ - AssetPriceNotFoundErrorResponse.JSON_PROPERTY_MESSAGE, - AssetPriceNotFoundErrorResponse.JSON_PROPERTY_CODE -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class AssetPriceNotFoundErrorResponse { - public static final String JSON_PROPERTY_MESSAGE = "message"; - @jakarta.annotation.Nonnull private String message; - - public static final String JSON_PROPERTY_CODE = "code"; - @jakarta.annotation.Nonnull private BigDecimal code; - - public AssetPriceNotFoundErrorResponse() {} - - @JsonCreator - public AssetPriceNotFoundErrorResponse( - @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = true) String message, - @JsonProperty(value = JSON_PROPERTY_CODE, required = true) BigDecimal code) { - this.message = message; - this.code = code; - } - - public AssetPriceNotFoundErrorResponse message(@jakarta.annotation.Nonnull String message) { - this.message = message; - return this; - } - - /** - * Not found error message - * - * @return message - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_MESSAGE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getMessage() { - return message; - } - - @JsonProperty(JSON_PROPERTY_MESSAGE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setMessage(@jakarta.annotation.Nonnull String message) { - this.message = message; - } - - public AssetPriceNotFoundErrorResponse code(@jakarta.annotation.Nonnull BigDecimal code) { - this.code = code; - return this; - } - - /** - * Error code - * - * @return code - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CODE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public BigDecimal getCode() { - return code; - } - - @JsonProperty(JSON_PROPERTY_CODE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCode(@jakarta.annotation.Nonnull BigDecimal code) { - this.code = code; - } - - /** Return true if this AssetPriceNotFoundErrorResponse object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AssetPriceNotFoundErrorResponse assetPriceNotFoundErrorResponse = - (AssetPriceNotFoundErrorResponse) o; - return Objects.equals(this.message, assetPriceNotFoundErrorResponse.message) - && Objects.equals(this.code, assetPriceNotFoundErrorResponse.code); - } - - @Override - public int hashCode() { - return Objects.hash(message, code); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AssetPriceNotFoundErrorResponse {\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); - sb.append(" code: ").append(toIndentedString(code)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `message` to the URL query string - if (getMessage() != null) { - joiner.add( - String.format( - "%smessage%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getMessage())))); - } - - // add `code` to the URL query string - if (getCode() != null) { - joiner.add( - String.format( - "%scode%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getCode())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/AssetPriceResponse.java b/src/main/java/com/fireblocks/sdk/model/AssetPriceResponse.java deleted file mode 100644 index 4703a1be..00000000 --- a/src/main/java/com/fireblocks/sdk/model/AssetPriceResponse.java +++ /dev/null @@ -1,348 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fireblocks.sdk.ApiClient; -import java.math.BigDecimal; -import java.util.Objects; -import java.util.StringJoiner; - -/** AssetPriceResponse */ -@JsonPropertyOrder({ - AssetPriceResponse.JSON_PROPERTY_LEGACY_ID, - AssetPriceResponse.JSON_PROPERTY_LAST_UPDATE_AT, - AssetPriceResponse.JSON_PROPERTY_CURRENCY, - AssetPriceResponse.JSON_PROPERTY_PRICE, - AssetPriceResponse.JSON_PROPERTY_SOURCE -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class AssetPriceResponse { - public static final String JSON_PROPERTY_LEGACY_ID = "legacyId"; - @jakarta.annotation.Nonnull private String legacyId; - - public static final String JSON_PROPERTY_LAST_UPDATE_AT = "lastUpdateAt"; - @jakarta.annotation.Nonnull private BigDecimal lastUpdateAt; - - public static final String JSON_PROPERTY_CURRENCY = "currency"; - @jakarta.annotation.Nonnull private String currency; - - public static final String JSON_PROPERTY_PRICE = "price"; - @jakarta.annotation.Nonnull private BigDecimal price; - - /** Source of the price data */ - public enum SourceEnum { - PUBLIC(String.valueOf("PUBLIC")), - - PRIVATE(String.valueOf("PRIVATE")); - - private String value; - - SourceEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static SourceEnum fromValue(String value) { - for (SourceEnum b : SourceEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_SOURCE = "source"; - @jakarta.annotation.Nonnull private SourceEnum source; - - public AssetPriceResponse() {} - - @JsonCreator - public AssetPriceResponse( - @JsonProperty(value = JSON_PROPERTY_LEGACY_ID, required = true) String legacyId, - @JsonProperty(value = JSON_PROPERTY_LAST_UPDATE_AT, required = true) - BigDecimal lastUpdateAt, - @JsonProperty(value = JSON_PROPERTY_CURRENCY, required = true) String currency, - @JsonProperty(value = JSON_PROPERTY_PRICE, required = true) BigDecimal price, - @JsonProperty(value = JSON_PROPERTY_SOURCE, required = true) SourceEnum source) { - this.legacyId = legacyId; - this.lastUpdateAt = lastUpdateAt; - this.currency = currency; - this.price = price; - this.source = source; - } - - public AssetPriceResponse legacyId(@jakarta.annotation.Nonnull String legacyId) { - this.legacyId = legacyId; - return this; - } - - /** - * The ID of the asset - * - * @return legacyId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_LEGACY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getLegacyId() { - return legacyId; - } - - @JsonProperty(JSON_PROPERTY_LEGACY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setLegacyId(@jakarta.annotation.Nonnull String legacyId) { - this.legacyId = legacyId; - } - - public AssetPriceResponse lastUpdateAt(@jakarta.annotation.Nonnull BigDecimal lastUpdateAt) { - this.lastUpdateAt = lastUpdateAt; - return this; - } - - /** - * Time of last price update - * - * @return lastUpdateAt - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_LAST_UPDATE_AT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public BigDecimal getLastUpdateAt() { - return lastUpdateAt; - } - - @JsonProperty(JSON_PROPERTY_LAST_UPDATE_AT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setLastUpdateAt(@jakarta.annotation.Nonnull BigDecimal lastUpdateAt) { - this.lastUpdateAt = lastUpdateAt; - } - - public AssetPriceResponse currency(@jakarta.annotation.Nonnull String currency) { - this.currency = currency; - return this; - } - - /** - * Currency (according to ISO 4217 currency codes) - * - * @return currency - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CURRENCY) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getCurrency() { - return currency; - } - - @JsonProperty(JSON_PROPERTY_CURRENCY) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCurrency(@jakarta.annotation.Nonnull String currency) { - this.currency = currency; - } - - public AssetPriceResponse price(@jakarta.annotation.Nonnull BigDecimal price) { - this.price = price; - return this; - } - - /** - * Price in currency - * - * @return price - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PRICE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public BigDecimal getPrice() { - return price; - } - - @JsonProperty(JSON_PROPERTY_PRICE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPrice(@jakarta.annotation.Nonnull BigDecimal price) { - this.price = price; - } - - public AssetPriceResponse source(@jakarta.annotation.Nonnull SourceEnum source) { - this.source = source; - return this; - } - - /** - * Source of the price data - * - * @return source - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SOURCE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public SourceEnum getSource() { - return source; - } - - @JsonProperty(JSON_PROPERTY_SOURCE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSource(@jakarta.annotation.Nonnull SourceEnum source) { - this.source = source; - } - - /** Return true if this AssetPriceResponse object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AssetPriceResponse assetPriceResponse = (AssetPriceResponse) o; - return Objects.equals(this.legacyId, assetPriceResponse.legacyId) - && Objects.equals(this.lastUpdateAt, assetPriceResponse.lastUpdateAt) - && Objects.equals(this.currency, assetPriceResponse.currency) - && Objects.equals(this.price, assetPriceResponse.price) - && Objects.equals(this.source, assetPriceResponse.source); - } - - @Override - public int hashCode() { - return Objects.hash(legacyId, lastUpdateAt, currency, price, source); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AssetPriceResponse {\n"); - sb.append(" legacyId: ").append(toIndentedString(legacyId)).append("\n"); - sb.append(" lastUpdateAt: ").append(toIndentedString(lastUpdateAt)).append("\n"); - sb.append(" currency: ").append(toIndentedString(currency)).append("\n"); - sb.append(" price: ").append(toIndentedString(price)).append("\n"); - sb.append(" source: ").append(toIndentedString(source)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `legacyId` to the URL query string - if (getLegacyId() != null) { - joiner.add( - String.format( - "%slegacyId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getLegacyId())))); - } - - // add `lastUpdateAt` to the URL query string - if (getLastUpdateAt() != null) { - joiner.add( - String.format( - "%slastUpdateAt%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getLastUpdateAt())))); - } - - // add `currency` to the URL query string - if (getCurrency() != null) { - joiner.add( - String.format( - "%scurrency%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getCurrency())))); - } - - // add `price` to the URL query string - if (getPrice() != null) { - joiner.add( - String.format( - "%sprice%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getPrice())))); - } - - // add `source` to the URL query string - if (getSource() != null) { - joiner.add( - String.format( - "%ssource%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getSource())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/AssetResponse.java b/src/main/java/com/fireblocks/sdk/model/AssetResponse.java index c49bacf2..e2f7226c 100644 --- a/src/main/java/com/fireblocks/sdk/model/AssetResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/AssetResponse.java @@ -77,10 +77,10 @@ public static AssetClassEnum fromValue(String value) { @jakarta.annotation.Nonnull private AssetClassEnum assetClass; public static final String JSON_PROPERTY_ONCHAIN = "onchain"; - @jakarta.annotation.Nonnull private AssetOnchain onchain; + @jakarta.annotation.Nonnull private AssetResponseOnchain onchain; public static final String JSON_PROPERTY_METADATA = "metadata"; - @jakarta.annotation.Nonnull private AssetMetadata metadata; + @jakarta.annotation.Nonnull private AssetResponseMetadata metadata; public AssetResponse() {} @@ -89,8 +89,10 @@ public AssetResponse( @JsonProperty(value = JSON_PROPERTY_LEGACY_ID, required = true) String legacyId, @JsonProperty(value = JSON_PROPERTY_ASSET_CLASS, required = true) AssetClassEnum assetClass, - @JsonProperty(value = JSON_PROPERTY_ONCHAIN, required = true) AssetOnchain onchain, - @JsonProperty(value = JSON_PROPERTY_METADATA, required = true) AssetMetadata metadata) { + @JsonProperty(value = JSON_PROPERTY_ONCHAIN, required = true) + AssetResponseOnchain onchain, + @JsonProperty(value = JSON_PROPERTY_METADATA, required = true) + AssetResponseMetadata metadata) { this.legacyId = legacyId; this.assetClass = assetClass; this.onchain = onchain; @@ -143,7 +145,7 @@ public void setAssetClass(@jakarta.annotation.Nonnull AssetClassEnum assetClass) this.assetClass = assetClass; } - public AssetResponse onchain(@jakarta.annotation.Nonnull AssetOnchain onchain) { + public AssetResponse onchain(@jakarta.annotation.Nonnull AssetResponseOnchain onchain) { this.onchain = onchain; return this; } @@ -156,17 +158,17 @@ public AssetResponse onchain(@jakarta.annotation.Nonnull AssetOnchain onchain) { @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ONCHAIN) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AssetOnchain getOnchain() { + public AssetResponseOnchain getOnchain() { return onchain; } @JsonProperty(JSON_PROPERTY_ONCHAIN) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setOnchain(@jakarta.annotation.Nonnull AssetOnchain onchain) { + public void setOnchain(@jakarta.annotation.Nonnull AssetResponseOnchain onchain) { this.onchain = onchain; } - public AssetResponse metadata(@jakarta.annotation.Nonnull AssetMetadata metadata) { + public AssetResponse metadata(@jakarta.annotation.Nonnull AssetResponseMetadata metadata) { this.metadata = metadata; return this; } @@ -179,13 +181,13 @@ public AssetResponse metadata(@jakarta.annotation.Nonnull AssetMetadata metadata @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AssetMetadata getMetadata() { + public AssetResponseMetadata getMetadata() { return metadata; } @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setMetadata(@jakarta.annotation.Nonnull AssetMetadata metadata) { + public void setMetadata(@jakarta.annotation.Nonnull AssetResponseMetadata metadata) { this.metadata = metadata; } diff --git a/src/main/java/com/fireblocks/sdk/model/AssetMetadata.java b/src/main/java/com/fireblocks/sdk/model/AssetResponseMetadata.java similarity index 88% rename from src/main/java/com/fireblocks/sdk/model/AssetMetadata.java rename to src/main/java/com/fireblocks/sdk/model/AssetResponseMetadata.java index 260d24ff..c3cdd099 100644 --- a/src/main/java/com/fireblocks/sdk/model/AssetMetadata.java +++ b/src/main/java/com/fireblocks/sdk/model/AssetResponseMetadata.java @@ -22,12 +22,15 @@ import java.util.Objects; import java.util.StringJoiner; -/** AssetMetadata */ -@JsonPropertyOrder({AssetMetadata.JSON_PROPERTY_SCOPE, AssetMetadata.JSON_PROPERTY_DEPRECATED}) +/** AssetResponseMetadata */ +@JsonPropertyOrder({ + AssetResponseMetadata.JSON_PROPERTY_SCOPE, + AssetResponseMetadata.JSON_PROPERTY_DEPRECATED +}) @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") -public class AssetMetadata { +public class AssetResponseMetadata { /** The scope of the asset */ public enum ScopeEnum { GLOBAL(String.valueOf("Global")), @@ -67,17 +70,17 @@ public static ScopeEnum fromValue(String value) { public static final String JSON_PROPERTY_DEPRECATED = "deprecated"; @jakarta.annotation.Nonnull private Boolean deprecated; - public AssetMetadata() {} + public AssetResponseMetadata() {} @JsonCreator - public AssetMetadata( + public AssetResponseMetadata( @JsonProperty(value = JSON_PROPERTY_SCOPE, required = true) ScopeEnum scope, @JsonProperty(value = JSON_PROPERTY_DEPRECATED, required = true) Boolean deprecated) { this.scope = scope; this.deprecated = deprecated; } - public AssetMetadata scope(@jakarta.annotation.Nonnull ScopeEnum scope) { + public AssetResponseMetadata scope(@jakarta.annotation.Nonnull ScopeEnum scope) { this.scope = scope; return this; } @@ -100,7 +103,7 @@ public void setScope(@jakarta.annotation.Nonnull ScopeEnum scope) { this.scope = scope; } - public AssetMetadata deprecated(@jakarta.annotation.Nonnull Boolean deprecated) { + public AssetResponseMetadata deprecated(@jakarta.annotation.Nonnull Boolean deprecated) { this.deprecated = deprecated; return this; } @@ -123,7 +126,7 @@ public void setDeprecated(@jakarta.annotation.Nonnull Boolean deprecated) { this.deprecated = deprecated; } - /** Return true if this AssetMetadata object is equal to o. */ + /** Return true if this AssetResponse_metadata object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -132,9 +135,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - AssetMetadata assetMetadata = (AssetMetadata) o; - return Objects.equals(this.scope, assetMetadata.scope) - && Objects.equals(this.deprecated, assetMetadata.deprecated); + AssetResponseMetadata assetResponseMetadata = (AssetResponseMetadata) o; + return Objects.equals(this.scope, assetResponseMetadata.scope) + && Objects.equals(this.deprecated, assetResponseMetadata.deprecated); } @Override @@ -145,7 +148,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class AssetMetadata {\n"); + sb.append("class AssetResponseMetadata {\n"); sb.append(" scope: ").append(toIndentedString(scope)).append("\n"); sb.append(" deprecated: ").append(toIndentedString(deprecated)).append("\n"); sb.append("}"); diff --git a/src/main/java/com/fireblocks/sdk/model/AssetOnchain.java b/src/main/java/com/fireblocks/sdk/model/AssetResponseOnchain.java similarity index 81% rename from src/main/java/com/fireblocks/sdk/model/AssetOnchain.java rename to src/main/java/com/fireblocks/sdk/model/AssetResponseOnchain.java index 3080ad33..7e63aa18 100644 --- a/src/main/java/com/fireblocks/sdk/model/AssetOnchain.java +++ b/src/main/java/com/fireblocks/sdk/model/AssetResponseOnchain.java @@ -22,18 +22,18 @@ import java.util.Objects; import java.util.StringJoiner; -/** AssetOnchain */ +/** AssetResponseOnchain */ @JsonPropertyOrder({ - AssetOnchain.JSON_PROPERTY_SYMBOL, - AssetOnchain.JSON_PROPERTY_NAME, - AssetOnchain.JSON_PROPERTY_ADDRESS, - AssetOnchain.JSON_PROPERTY_DECIMALS, - AssetOnchain.JSON_PROPERTY_STANDARD + AssetResponseOnchain.JSON_PROPERTY_SYMBOL, + AssetResponseOnchain.JSON_PROPERTY_NAME, + AssetResponseOnchain.JSON_PROPERTY_ADDRESS, + AssetResponseOnchain.JSON_PROPERTY_DECIMALS, + AssetResponseOnchain.JSON_PROPERTY_STANDARD }) @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") -public class AssetOnchain { +public class AssetResponseOnchain { public static final String JSON_PROPERTY_SYMBOL = "symbol"; @jakarta.annotation.Nonnull private String symbol; @@ -47,21 +47,23 @@ public class AssetOnchain { @jakarta.annotation.Nonnull private BigDecimal decimals; public static final String JSON_PROPERTY_STANDARD = "standard"; - @jakarta.annotation.Nullable private String standard; + @jakarta.annotation.Nonnull private String standard; - public AssetOnchain() {} + public AssetResponseOnchain() {} @JsonCreator - public AssetOnchain( + public AssetResponseOnchain( @JsonProperty(value = JSON_PROPERTY_SYMBOL, required = true) String symbol, @JsonProperty(value = JSON_PROPERTY_NAME, required = true) String name, - @JsonProperty(value = JSON_PROPERTY_DECIMALS, required = true) BigDecimal decimals) { + @JsonProperty(value = JSON_PROPERTY_DECIMALS, required = true) BigDecimal decimals, + @JsonProperty(value = JSON_PROPERTY_STANDARD, required = true) String standard) { this.symbol = symbol; this.name = name; this.decimals = decimals; + this.standard = standard; } - public AssetOnchain symbol(@jakarta.annotation.Nonnull String symbol) { + public AssetResponseOnchain symbol(@jakarta.annotation.Nonnull String symbol) { this.symbol = symbol; return this; } @@ -84,7 +86,7 @@ public void setSymbol(@jakarta.annotation.Nonnull String symbol) { this.symbol = symbol; } - public AssetOnchain name(@jakarta.annotation.Nonnull String name) { + public AssetResponseOnchain name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } @@ -107,7 +109,7 @@ public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } - public AssetOnchain address(@jakarta.annotation.Nullable String address) { + public AssetResponseOnchain address(@jakarta.annotation.Nullable String address) { this.address = address; return this; } @@ -130,7 +132,7 @@ public void setAddress(@jakarta.annotation.Nullable String address) { this.address = address; } - public AssetOnchain decimals(@jakarta.annotation.Nonnull BigDecimal decimals) { + public AssetResponseOnchain decimals(@jakarta.annotation.Nonnull BigDecimal decimals) { this.decimals = decimals; return this; } @@ -153,7 +155,7 @@ public void setDecimals(@jakarta.annotation.Nonnull BigDecimal decimals) { this.decimals = decimals; } - public AssetOnchain standard(@jakarta.annotation.Nullable String standard) { + public AssetResponseOnchain standard(@jakarta.annotation.Nonnull String standard) { this.standard = standard; return this; } @@ -163,20 +165,20 @@ public AssetOnchain standard(@jakarta.annotation.Nullable String standard) { * * @return standard */ - @jakarta.annotation.Nullable + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_STANDARD) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getStandard() { return standard; } @JsonProperty(JSON_PROPERTY_STANDARD) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStandard(@jakarta.annotation.Nullable String standard) { + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setStandard(@jakarta.annotation.Nonnull String standard) { this.standard = standard; } - /** Return true if this AssetOnchain object is equal to o. */ + /** Return true if this AssetResponse_onchain object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -185,12 +187,12 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - AssetOnchain assetOnchain = (AssetOnchain) o; - return Objects.equals(this.symbol, assetOnchain.symbol) - && Objects.equals(this.name, assetOnchain.name) - && Objects.equals(this.address, assetOnchain.address) - && Objects.equals(this.decimals, assetOnchain.decimals) - && Objects.equals(this.standard, assetOnchain.standard); + AssetResponseOnchain assetResponseOnchain = (AssetResponseOnchain) o; + return Objects.equals(this.symbol, assetResponseOnchain.symbol) + && Objects.equals(this.name, assetResponseOnchain.name) + && Objects.equals(this.address, assetResponseOnchain.address) + && Objects.equals(this.decimals, assetResponseOnchain.decimals) + && Objects.equals(this.standard, assetResponseOnchain.standard); } @Override @@ -201,7 +203,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class AssetOnchain {\n"); + sb.append("class AssetResponseOnchain {\n"); sb.append(" symbol: ").append(toIndentedString(symbol)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" address: ").append(toIndentedString(address)).append("\n"); diff --git a/src/main/java/com/fireblocks/sdk/model/AssetScope.java b/src/main/java/com/fireblocks/sdk/model/AssetScope.java deleted file mode 100644 index ec07d078..00000000 --- a/src/main/java/com/fireblocks/sdk/model/AssetScope.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - -/** The scope of the asset */ -public enum AssetScope { - GLOBAL("GLOBAL"), - - LOCAL("LOCAL"); - - private String value; - - AssetScope(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static AssetScope fromValue(String value) { - for (AssetScope b : AssetScope.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - if (prefix == null) { - prefix = ""; - } - - return String.format("%s=%s", prefix, this.toString()); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/AssetTypesConfigInner.java b/src/main/java/com/fireblocks/sdk/model/AssetTypesConfigInner.java deleted file mode 100644 index 3d763477..00000000 --- a/src/main/java/com/fireblocks/sdk/model/AssetTypesConfigInner.java +++ /dev/null @@ -1,252 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.core.JsonGenerator; -import com.fasterxml.jackson.core.JsonParser; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.core.JsonToken; -import com.fasterxml.jackson.databind.DeserializationContext; -import com.fasterxml.jackson.databind.JsonMappingException; -import com.fasterxml.jackson.databind.JsonNode; -import com.fasterxml.jackson.databind.MapperFeature; -import com.fasterxml.jackson.databind.SerializerProvider; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import com.fasterxml.jackson.databind.deser.std.StdDeserializer; -import com.fasterxml.jackson.databind.ser.std.StdSerializer; -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.JSON; -import java.io.IOException; -import java.util.Collections; -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; -import java.util.StringJoiner; -import java.util.logging.Level; -import java.util.logging.Logger; - -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -@JsonDeserialize(using = AssetTypesConfigInner.AssetTypesConfigInnerDeserializer.class) -@JsonSerialize(using = AssetTypesConfigInner.AssetTypesConfigInnerSerializer.class) -public class AssetTypesConfigInner extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(AssetTypesConfigInner.class.getName()); - - public static class AssetTypesConfigInnerSerializer - extends StdSerializer { - public AssetTypesConfigInnerSerializer(Class t) { - super(t); - } - - public AssetTypesConfigInnerSerializer() { - this(null); - } - - @Override - public void serialize( - AssetTypesConfigInner value, JsonGenerator jgen, SerializerProvider provider) - throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); - } - } - - public static class AssetTypesConfigInnerDeserializer - extends StdDeserializer { - public AssetTypesConfigInnerDeserializer() { - this(AssetTypesConfigInner.class); - } - - public AssetTypesConfigInnerDeserializer(Class vc) { - super(vc); - } - - @Override - public AssetTypesConfigInner deserialize(JsonParser jp, DeserializationContext ctxt) - throws IOException, JsonProcessingException { - JsonNode tree = jp.readValueAsTree(); - Object deserialized = null; - boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); - int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); - // deserialize String - try { - boolean attemptParsing = true; - // ensure that we respect type coercion as set on the client ObjectMapper - if (String.class.equals(Integer.class) - || String.class.equals(Long.class) - || String.class.equals(Float.class) - || String.class.equals(Double.class) - || String.class.equals(Boolean.class) - || String.class.equals(String.class)) { - attemptParsing = typeCoercion; - if (!attemptParsing) { - attemptParsing |= - ((String.class.equals(Integer.class) - || String.class.equals(Long.class)) - && token == JsonToken.VALUE_NUMBER_INT); - attemptParsing |= - ((String.class.equals(Float.class) - || String.class.equals(Double.class)) - && token == JsonToken.VALUE_NUMBER_FLOAT); - attemptParsing |= - (String.class.equals(Boolean.class) - && (token == JsonToken.VALUE_FALSE - || token == JsonToken.VALUE_TRUE)); - attemptParsing |= - (String.class.equals(String.class) - && token == JsonToken.VALUE_STRING); - } - } - if (attemptParsing) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(String.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'String'"); - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'String'", e); - } - - if (match == 1) { - AssetTypesConfigInner ret = new AssetTypesConfigInner(); - ret.setActualInstance(deserialized); - return ret; - } - throw new IOException( - String.format( - "Failed deserialization for AssetTypesConfigInner: %d classes match" - + " result, expected 1", - match)); - } - - /** Handle deserialization of the 'null' value. */ - @Override - public AssetTypesConfigInner getNullValue(DeserializationContext ctxt) - throws JsonMappingException { - throw new JsonMappingException( - ctxt.getParser(), "AssetTypesConfigInner cannot be null"); - } - } - - // store a list of schema names defined in oneOf - public static final Map> schemas = new HashMap<>(); - - public AssetTypesConfigInner() { - super("oneOf", Boolean.FALSE); - } - - public AssetTypesConfigInner(String o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("String", String.class); - JSON.registerDescendants(AssetTypesConfigInner.class, Collections.unmodifiableMap(schemas)); - } - - @Override - public Map> getSchemas() { - return AssetTypesConfigInner.schemas; - } - - /** - * Set the instance that matches the oneOf child schema, check the instance parameter is valid - * against the oneOf child schemas: String - * - *

It could be an instance of the 'oneOf' schemas. The oneOf child schemas may themselves be - * a composed schema (allOf, anyOf, oneOf). - */ - @Override - public void setActualInstance(Object instance) { - if (JSON.isInstanceOf(String.class, instance, new HashSet>())) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be String"); - } - - /** - * Get the actual instance, which can be the following: String - * - * @return The actual instance (String) - */ - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `String`. If the actual instance is not `String`, the - * ClassCastException will be thrown. - * - * @return The actual instance of `String` - * @throws ClassCastException if the instance is not `String` - */ - public String getString() throws ClassCastException { - return (String) super.getActualInstance(); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - if (getActualInstance() instanceof String) { - if (getActualInstance() != null) { - joiner.add( - String.format( - "%sone_of_0%s=%s", - prefix, - suffix, - ApiClient.urlEncode(String.valueOf(getActualInstance())))); - } - return joiner.toString(); - } - return null; - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/AuditLogData.java b/src/main/java/com/fireblocks/sdk/model/AuditLogData.java index 8005dc57..3760e202 100644 --- a/src/main/java/com/fireblocks/sdk/model/AuditLogData.java +++ b/src/main/java/com/fireblocks/sdk/model/AuditLogData.java @@ -17,7 +17,6 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fireblocks.sdk.ApiClient; -import java.math.BigDecimal; import java.util.Objects; import java.util.StringJoiner; @@ -40,10 +39,10 @@ public class AuditLogData { @jakarta.annotation.Nullable private String id; public static final String JSON_PROPERTY_TIMESTAMP = "timestamp"; - @jakarta.annotation.Nullable private BigDecimal timestamp; + @jakarta.annotation.Nullable private String timestamp; public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; - @jakarta.annotation.Nullable private BigDecimal createdAt; + @jakarta.annotation.Nullable private String createdAt; public static final String JSON_PROPERTY_USER = "user"; @jakarta.annotation.Nullable private String user; @@ -85,7 +84,7 @@ public void setId(@jakarta.annotation.Nullable String id) { this.id = id; } - public AuditLogData timestamp(@jakarta.annotation.Nullable BigDecimal timestamp) { + public AuditLogData timestamp(@jakarta.annotation.Nullable String timestamp) { this.timestamp = timestamp; return this; } @@ -98,17 +97,17 @@ public AuditLogData timestamp(@jakarta.annotation.Nullable BigDecimal timestamp) @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TIMESTAMP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public BigDecimal getTimestamp() { + public String getTimestamp() { return timestamp; } @JsonProperty(JSON_PROPERTY_TIMESTAMP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTimestamp(@jakarta.annotation.Nullable BigDecimal timestamp) { + public void setTimestamp(@jakarta.annotation.Nullable String timestamp) { this.timestamp = timestamp; } - public AuditLogData createdAt(@jakarta.annotation.Nullable BigDecimal createdAt) { + public AuditLogData createdAt(@jakarta.annotation.Nullable String createdAt) { this.createdAt = createdAt; return this; } @@ -121,13 +120,13 @@ public AuditLogData createdAt(@jakarta.annotation.Nullable BigDecimal createdAt) @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public BigDecimal getCreatedAt() { + public String getCreatedAt() { return createdAt; } @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCreatedAt(@jakarta.annotation.Nullable BigDecimal createdAt) { + public void setCreatedAt(@jakarta.annotation.Nullable String createdAt) { this.createdAt = createdAt; } diff --git a/src/main/java/com/fireblocks/sdk/model/AuthorizationGroups.java b/src/main/java/com/fireblocks/sdk/model/AuthorizationGroups.java index 1cf9de31..8559724c 100644 --- a/src/main/java/com/fireblocks/sdk/model/AuthorizationGroups.java +++ b/src/main/java/com/fireblocks/sdk/model/AuthorizationGroups.java @@ -72,7 +72,7 @@ public static InnerEnum fromValue(String value) { } public static final String JSON_PROPERTY_USERS = "users"; - @jakarta.annotation.Nullable private Map users = new HashMap<>(); + @jakarta.annotation.Nullable private Map users; public AuthorizationGroups() {} diff --git a/src/main/java/com/fireblocks/sdk/model/AuthorizationInfo.java b/src/main/java/com/fireblocks/sdk/model/AuthorizationInfo.java index f31422b2..7bf8f90e 100644 --- a/src/main/java/com/fireblocks/sdk/model/AuthorizationInfo.java +++ b/src/main/java/com/fireblocks/sdk/model/AuthorizationInfo.java @@ -78,7 +78,7 @@ public static LogicEnum fromValue(String value) { @jakarta.annotation.Nullable private LogicEnum logic; public static final String JSON_PROPERTY_GROUPS = "groups"; - @jakarta.annotation.Nullable private List groups = new ArrayList<>(); + @jakarta.annotation.Nullable private List groups; public AuthorizationInfo() {} diff --git a/src/main/java/com/fireblocks/sdk/model/BaseProvider.java b/src/main/java/com/fireblocks/sdk/model/BaseProvider.java deleted file mode 100644 index 13511bdb..00000000 --- a/src/main/java/com/fireblocks/sdk/model/BaseProvider.java +++ /dev/null @@ -1,268 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** BaseProvider */ -@JsonPropertyOrder({ - BaseProvider.JSON_PROPERTY_ID, - BaseProvider.JSON_PROPERTY_NAME, - BaseProvider.JSON_PROPERTY_LOGO, - BaseProvider.JSON_PROPERTY_ACCOUNT_BASED -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class BaseProvider { - public static final String JSON_PROPERTY_ID = "id"; - @jakarta.annotation.Nonnull private String id; - - public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nonnull private String name; - - public static final String JSON_PROPERTY_LOGO = "logo"; - @jakarta.annotation.Nullable private String logo; - - public static final String JSON_PROPERTY_ACCOUNT_BASED = "accountBased"; - @jakarta.annotation.Nonnull private Boolean accountBased; - - public BaseProvider() {} - - @JsonCreator - public BaseProvider( - @JsonProperty(value = JSON_PROPERTY_ID, required = true) String id, - @JsonProperty(value = JSON_PROPERTY_NAME, required = true) String name, - @JsonProperty(value = JSON_PROPERTY_ACCOUNT_BASED, required = true) - Boolean accountBased) { - this.id = id; - this.name = name; - this.accountBased = accountBased; - } - - public BaseProvider id(@jakarta.annotation.Nonnull String id) { - this.id = id; - return this; - } - - /** - * Unique identifier for the provider - * - * @return id - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getId() { - return id; - } - - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(@jakarta.annotation.Nonnull String id) { - this.id = id; - } - - public BaseProvider name(@jakarta.annotation.Nonnull String name) { - this.name = name; - return this; - } - - /** - * Display name of the provider - * - * @return name - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getName() { - return name; - } - - @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(@jakarta.annotation.Nonnull String name) { - this.name = name; - } - - public BaseProvider logo(@jakarta.annotation.Nullable String logo) { - this.logo = logo; - return this; - } - - /** - * URL to the logo image of the provider - * - * @return logo - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_LOGO) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getLogo() { - return logo; - } - - @JsonProperty(JSON_PROPERTY_LOGO) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLogo(@jakarta.annotation.Nullable String logo) { - this.logo = logo; - } - - public BaseProvider accountBased(@jakarta.annotation.Nonnull Boolean accountBased) { - this.accountBased = accountBased; - return this; - } - - /** - * Indicates whether the provider access model is through accounts or directly - * - * @return accountBased - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ACCOUNT_BASED) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Boolean getAccountBased() { - return accountBased; - } - - @JsonProperty(JSON_PROPERTY_ACCOUNT_BASED) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAccountBased(@jakarta.annotation.Nonnull Boolean accountBased) { - this.accountBased = accountBased; - } - - /** Return true if this BaseProvider object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - BaseProvider baseProvider = (BaseProvider) o; - return Objects.equals(this.id, baseProvider.id) - && Objects.equals(this.name, baseProvider.name) - && Objects.equals(this.logo, baseProvider.logo) - && Objects.equals(this.accountBased, baseProvider.accountBased); - } - - @Override - public int hashCode() { - return Objects.hash(id, name, logo, accountBased); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class BaseProvider {\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" logo: ").append(toIndentedString(logo)).append("\n"); - sb.append(" accountBased: ").append(toIndentedString(accountBased)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `id` to the URL query string - if (getId() != null) { - joiner.add( - String.format( - "%sid%s=%s", - prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); - } - - // add `name` to the URL query string - if (getName() != null) { - joiner.add( - String.format( - "%sname%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getName())))); - } - - // add `logo` to the URL query string - if (getLogo() != null) { - joiner.add( - String.format( - "%slogo%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getLogo())))); - } - - // add `accountBased` to the URL query string - if (getAccountBased() != null) { - joiner.add( - String.format( - "%saccountBased%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAccountBased())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/BlockchainExplorer.java b/src/main/java/com/fireblocks/sdk/model/BlockchainExplorer.java deleted file mode 100644 index 48cb511a..00000000 --- a/src/main/java/com/fireblocks/sdk/model/BlockchainExplorer.java +++ /dev/null @@ -1,263 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** BlockchainExplorer */ -@JsonPropertyOrder({ - BlockchainExplorer.JSON_PROPERTY_BASE, - BlockchainExplorer.JSON_PROPERTY_ADDRESS, - BlockchainExplorer.JSON_PROPERTY_TX, - BlockchainExplorer.JSON_PROPERTY_TOKEN -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class BlockchainExplorer { - public static final String JSON_PROPERTY_BASE = "base"; - @jakarta.annotation.Nonnull private String base; - - public static final String JSON_PROPERTY_ADDRESS = "address"; - @jakarta.annotation.Nullable private String address; - - public static final String JSON_PROPERTY_TX = "tx"; - @jakarta.annotation.Nullable private String tx; - - public static final String JSON_PROPERTY_TOKEN = "token"; - @jakarta.annotation.Nullable private String token; - - public BlockchainExplorer() {} - - @JsonCreator - public BlockchainExplorer( - @JsonProperty(value = JSON_PROPERTY_BASE, required = true) String base) { - this.base = base; - } - - public BlockchainExplorer base(@jakarta.annotation.Nonnull String base) { - this.base = base; - return this; - } - - /** - * Explorer base url - * - * @return base - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BASE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getBase() { - return base; - } - - @JsonProperty(JSON_PROPERTY_BASE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBase(@jakarta.annotation.Nonnull String base) { - this.base = base; - } - - public BlockchainExplorer address(@jakarta.annotation.Nullable String address) { - this.address = address; - return this; - } - - /** - * Explorer address url - * - * @return address - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ADDRESS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getAddress() { - return address; - } - - @JsonProperty(JSON_PROPERTY_ADDRESS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAddress(@jakarta.annotation.Nullable String address) { - this.address = address; - } - - public BlockchainExplorer tx(@jakarta.annotation.Nullable String tx) { - this.tx = tx; - return this; - } - - /** - * Explorer transaction url - * - * @return tx - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TX) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getTx() { - return tx; - } - - @JsonProperty(JSON_PROPERTY_TX) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTx(@jakarta.annotation.Nullable String tx) { - this.tx = tx; - } - - public BlockchainExplorer token(@jakarta.annotation.Nullable String token) { - this.token = token; - return this; - } - - /** - * Explorer token url - * - * @return token - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TOKEN) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getToken() { - return token; - } - - @JsonProperty(JSON_PROPERTY_TOKEN) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setToken(@jakarta.annotation.Nullable String token) { - this.token = token; - } - - /** Return true if this BlockchainExplorer object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - BlockchainExplorer blockchainExplorer = (BlockchainExplorer) o; - return Objects.equals(this.base, blockchainExplorer.base) - && Objects.equals(this.address, blockchainExplorer.address) - && Objects.equals(this.tx, blockchainExplorer.tx) - && Objects.equals(this.token, blockchainExplorer.token); - } - - @Override - public int hashCode() { - return Objects.hash(base, address, tx, token); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class BlockchainExplorer {\n"); - sb.append(" base: ").append(toIndentedString(base)).append("\n"); - sb.append(" address: ").append(toIndentedString(address)).append("\n"); - sb.append(" tx: ").append(toIndentedString(tx)).append("\n"); - sb.append(" token: ").append(toIndentedString(token)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `base` to the URL query string - if (getBase() != null) { - joiner.add( - String.format( - "%sbase%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBase())))); - } - - // add `address` to the URL query string - if (getAddress() != null) { - joiner.add( - String.format( - "%saddress%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAddress())))); - } - - // add `tx` to the URL query string - if (getTx() != null) { - joiner.add( - String.format( - "%stx%s=%s", - prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getTx())))); - } - - // add `token` to the URL query string - if (getToken() != null) { - joiner.add( - String.format( - "%stoken%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getToken())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/BlockchainMedia.java b/src/main/java/com/fireblocks/sdk/model/BlockchainMedia.java deleted file mode 100644 index cee4c0e9..00000000 --- a/src/main/java/com/fireblocks/sdk/model/BlockchainMedia.java +++ /dev/null @@ -1,220 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** BlockchainMedia */ -@JsonPropertyOrder({BlockchainMedia.JSON_PROPERTY_URL, BlockchainMedia.JSON_PROPERTY_TYPE}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class BlockchainMedia { - public static final String JSON_PROPERTY_URL = "url"; - @jakarta.annotation.Nonnull private String url; - - /** Media type */ - public enum TypeEnum { - IMAGE_SVG_XML(String.valueOf("image/svg+xml")), - - IMAGE_PNG(String.valueOf("image/png")); - - private String value; - - TypeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static TypeEnum fromValue(String value) { - for (TypeEnum b : TypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_TYPE = "type"; - @jakarta.annotation.Nonnull private TypeEnum type; - - public BlockchainMedia() {} - - @JsonCreator - public BlockchainMedia( - @JsonProperty(value = JSON_PROPERTY_URL, required = true) String url, - @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) TypeEnum type) { - this.url = url; - this.type = type; - } - - public BlockchainMedia url(@jakarta.annotation.Nonnull String url) { - this.url = url; - return this; - } - - /** - * Media URL - * - * @return url - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_URL) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getUrl() { - return url; - } - - @JsonProperty(JSON_PROPERTY_URL) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUrl(@jakarta.annotation.Nonnull String url) { - this.url = url; - } - - public BlockchainMedia type(@jakarta.annotation.Nonnull TypeEnum type) { - this.type = type; - return this; - } - - /** - * Media type - * - * @return type - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { - return type; - } - - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(@jakarta.annotation.Nonnull TypeEnum type) { - this.type = type; - } - - /** Return true if this BlockchainMedia object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - BlockchainMedia blockchainMedia = (BlockchainMedia) o; - return Objects.equals(this.url, blockchainMedia.url) - && Objects.equals(this.type, blockchainMedia.type); - } - - @Override - public int hashCode() { - return Objects.hash(url, type); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class BlockchainMedia {\n"); - sb.append(" url: ").append(toIndentedString(url)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `url` to the URL query string - if (getUrl() != null) { - joiner.add( - String.format( - "%surl%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getUrl())))); - } - - // add `type` to the URL query string - if (getType() != null) { - joiner.add( - String.format( - "%stype%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getType())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/BlockchainMetadata.java b/src/main/java/com/fireblocks/sdk/model/BlockchainMetadata.java deleted file mode 100644 index 284c39db..00000000 --- a/src/main/java/com/fireblocks/sdk/model/BlockchainMetadata.java +++ /dev/null @@ -1,285 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** BlockchainMetadata */ -@JsonPropertyOrder({ - BlockchainMetadata.JSON_PROPERTY_SCOPE, - BlockchainMetadata.JSON_PROPERTY_DEPRECATED, - BlockchainMetadata.JSON_PROPERTY_MEDIA, - BlockchainMetadata.JSON_PROPERTY_EXPLORER -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class BlockchainMetadata { - public static final String JSON_PROPERTY_SCOPE = "scope"; - @jakarta.annotation.Nonnull private AssetScope scope; - - public static final String JSON_PROPERTY_DEPRECATED = "deprecated"; - @jakarta.annotation.Nonnull private Boolean deprecated; - - public static final String JSON_PROPERTY_MEDIA = "media"; - @jakarta.annotation.Nullable private List media = new ArrayList<>(); - - public static final String JSON_PROPERTY_EXPLORER = "explorer"; - @jakarta.annotation.Nullable private BlockchainExplorer explorer; - - public BlockchainMetadata() {} - - @JsonCreator - public BlockchainMetadata( - @JsonProperty(value = JSON_PROPERTY_SCOPE, required = true) AssetScope scope, - @JsonProperty(value = JSON_PROPERTY_DEPRECATED, required = true) Boolean deprecated) { - this.scope = scope; - this.deprecated = deprecated; - } - - public BlockchainMetadata scope(@jakarta.annotation.Nonnull AssetScope scope) { - this.scope = scope; - return this; - } - - /** - * Get scope - * - * @return scope - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SCOPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AssetScope getScope() { - return scope; - } - - @JsonProperty(JSON_PROPERTY_SCOPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setScope(@jakarta.annotation.Nonnull AssetScope scope) { - this.scope = scope; - } - - public BlockchainMetadata deprecated(@jakarta.annotation.Nonnull Boolean deprecated) { - this.deprecated = deprecated; - return this; - } - - /** - * Is blockchain deprecated - * - * @return deprecated - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DEPRECATED) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Boolean getDeprecated() { - return deprecated; - } - - @JsonProperty(JSON_PROPERTY_DEPRECATED) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDeprecated(@jakarta.annotation.Nonnull Boolean deprecated) { - this.deprecated = deprecated; - } - - public BlockchainMetadata media(@jakarta.annotation.Nullable List media) { - this.media = media; - return this; - } - - public BlockchainMetadata addMediaItem(BlockchainMedia mediaItem) { - if (this.media == null) { - this.media = new ArrayList<>(); - } - this.media.add(mediaItem); - return this; - } - - /** - * Blockchain’s media - * - * @return media - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MEDIA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getMedia() { - return media; - } - - @JsonProperty(JSON_PROPERTY_MEDIA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMedia(@jakarta.annotation.Nullable List media) { - this.media = media; - } - - public BlockchainMetadata explorer(@jakarta.annotation.Nullable BlockchainExplorer explorer) { - this.explorer = explorer; - return this; - } - - /** - * Get explorer - * - * @return explorer - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EXPLORER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public BlockchainExplorer getExplorer() { - return explorer; - } - - @JsonProperty(JSON_PROPERTY_EXPLORER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setExplorer(@jakarta.annotation.Nullable BlockchainExplorer explorer) { - this.explorer = explorer; - } - - /** Return true if this BlockchainMetadata object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - BlockchainMetadata blockchainMetadata = (BlockchainMetadata) o; - return Objects.equals(this.scope, blockchainMetadata.scope) - && Objects.equals(this.deprecated, blockchainMetadata.deprecated) - && Objects.equals(this.media, blockchainMetadata.media) - && Objects.equals(this.explorer, blockchainMetadata.explorer); - } - - @Override - public int hashCode() { - return Objects.hash(scope, deprecated, media, explorer); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class BlockchainMetadata {\n"); - sb.append(" scope: ").append(toIndentedString(scope)).append("\n"); - sb.append(" deprecated: ").append(toIndentedString(deprecated)).append("\n"); - sb.append(" media: ").append(toIndentedString(media)).append("\n"); - sb.append(" explorer: ").append(toIndentedString(explorer)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `scope` to the URL query string - if (getScope() != null) { - joiner.add( - String.format( - "%sscope%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getScope())))); - } - - // add `deprecated` to the URL query string - if (getDeprecated() != null) { - joiner.add( - String.format( - "%sdeprecated%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getDeprecated())))); - } - - // add `media` to the URL query string - if (getMedia() != null) { - for (int i = 0; i < getMedia().size(); i++) { - if (getMedia().get(i) != null) { - joiner.add( - getMedia() - .get(i) - .toUrlQueryString( - String.format( - "%smedia%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } - } - - // add `explorer` to the URL query string - if (getExplorer() != null) { - joiner.add(getExplorer().toUrlQueryString(prefix + "explorer" + suffix)); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/BlockchainNotFoundErrorResponse.java b/src/main/java/com/fireblocks/sdk/model/BlockchainNotFoundErrorResponse.java deleted file mode 100644 index 67ddd875..00000000 --- a/src/main/java/com/fireblocks/sdk/model/BlockchainNotFoundErrorResponse.java +++ /dev/null @@ -1,191 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.math.BigDecimal; -import java.util.Objects; -import java.util.StringJoiner; - -/** BlockchainNotFoundErrorResponse */ -@JsonPropertyOrder({ - BlockchainNotFoundErrorResponse.JSON_PROPERTY_MESSAGE, - BlockchainNotFoundErrorResponse.JSON_PROPERTY_CODE -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class BlockchainNotFoundErrorResponse { - public static final String JSON_PROPERTY_MESSAGE = "message"; - @jakarta.annotation.Nonnull private String message; - - public static final String JSON_PROPERTY_CODE = "code"; - @jakarta.annotation.Nonnull private BigDecimal code; - - public BlockchainNotFoundErrorResponse() {} - - @JsonCreator - public BlockchainNotFoundErrorResponse( - @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = true) String message, - @JsonProperty(value = JSON_PROPERTY_CODE, required = true) BigDecimal code) { - this.message = message; - this.code = code; - } - - public BlockchainNotFoundErrorResponse message(@jakarta.annotation.Nonnull String message) { - this.message = message; - return this; - } - - /** - * Not found error code - * - * @return message - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_MESSAGE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getMessage() { - return message; - } - - @JsonProperty(JSON_PROPERTY_MESSAGE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setMessage(@jakarta.annotation.Nonnull String message) { - this.message = message; - } - - public BlockchainNotFoundErrorResponse code(@jakarta.annotation.Nonnull BigDecimal code) { - this.code = code; - return this; - } - - /** - * Error code - * - * @return code - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CODE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public BigDecimal getCode() { - return code; - } - - @JsonProperty(JSON_PROPERTY_CODE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCode(@jakarta.annotation.Nonnull BigDecimal code) { - this.code = code; - } - - /** Return true if this BlockchainNotFoundErrorResponse object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - BlockchainNotFoundErrorResponse blockchainNotFoundErrorResponse = - (BlockchainNotFoundErrorResponse) o; - return Objects.equals(this.message, blockchainNotFoundErrorResponse.message) - && Objects.equals(this.code, blockchainNotFoundErrorResponse.code); - } - - @Override - public int hashCode() { - return Objects.hash(message, code); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class BlockchainNotFoundErrorResponse {\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); - sb.append(" code: ").append(toIndentedString(code)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `message` to the URL query string - if (getMessage() != null) { - joiner.add( - String.format( - "%smessage%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getMessage())))); - } - - // add `code` to the URL query string - if (getCode() != null) { - joiner.add( - String.format( - "%scode%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getCode())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/BlockchainOnchain.java b/src/main/java/com/fireblocks/sdk/model/BlockchainOnchain.java deleted file mode 100644 index 44ee3c26..00000000 --- a/src/main/java/com/fireblocks/sdk/model/BlockchainOnchain.java +++ /dev/null @@ -1,304 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** BlockchainOnchain */ -@JsonPropertyOrder({ - BlockchainOnchain.JSON_PROPERTY_PROTOCOL, - BlockchainOnchain.JSON_PROPERTY_CHAIN_ID, - BlockchainOnchain.JSON_PROPERTY_TEST, - BlockchainOnchain.JSON_PROPERTY_SIGNING_ALGO -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class BlockchainOnchain { - public static final String JSON_PROPERTY_PROTOCOL = "protocol"; - @jakarta.annotation.Nonnull private String protocol; - - public static final String JSON_PROPERTY_CHAIN_ID = "chainId"; - @jakarta.annotation.Nullable private String chainId; - - public static final String JSON_PROPERTY_TEST = "test"; - @jakarta.annotation.Nonnull private Boolean test; - - /** Signing alghorithm */ - public enum SigningAlgoEnum { - ECDSA_SECP256_K1(String.valueOf("ECDSA_SECP256K1")), - - EDDSA_ED25519(String.valueOf("EDDSA_ED25519")); - - private String value; - - SigningAlgoEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static SigningAlgoEnum fromValue(String value) { - for (SigningAlgoEnum b : SigningAlgoEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_SIGNING_ALGO = "signingAlgo"; - @jakarta.annotation.Nonnull private SigningAlgoEnum signingAlgo; - - public BlockchainOnchain() {} - - @JsonCreator - public BlockchainOnchain( - @JsonProperty(value = JSON_PROPERTY_PROTOCOL, required = true) String protocol, - @JsonProperty(value = JSON_PROPERTY_TEST, required = true) Boolean test, - @JsonProperty(value = JSON_PROPERTY_SIGNING_ALGO, required = true) - SigningAlgoEnum signingAlgo) { - this.protocol = protocol; - this.test = test; - this.signingAlgo = signingAlgo; - } - - public BlockchainOnchain protocol(@jakarta.annotation.Nonnull String protocol) { - this.protocol = protocol; - return this; - } - - /** - * The protocol of the blockchain - * - * @return protocol - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PROTOCOL) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getProtocol() { - return protocol; - } - - @JsonProperty(JSON_PROPERTY_PROTOCOL) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setProtocol(@jakarta.annotation.Nonnull String protocol) { - this.protocol = protocol; - } - - public BlockchainOnchain chainId(@jakarta.annotation.Nullable String chainId) { - this.chainId = chainId; - return this; - } - - /** - * Network/chain ID - * - * @return chainId - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CHAIN_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getChainId() { - return chainId; - } - - @JsonProperty(JSON_PROPERTY_CHAIN_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setChainId(@jakarta.annotation.Nullable String chainId) { - this.chainId = chainId; - } - - public BlockchainOnchain test(@jakarta.annotation.Nonnull Boolean test) { - this.test = test; - return this; - } - - /** - * Is test blockchain - * - * @return test - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TEST) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Boolean getTest() { - return test; - } - - @JsonProperty(JSON_PROPERTY_TEST) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTest(@jakarta.annotation.Nonnull Boolean test) { - this.test = test; - } - - public BlockchainOnchain signingAlgo(@jakarta.annotation.Nonnull SigningAlgoEnum signingAlgo) { - this.signingAlgo = signingAlgo; - return this; - } - - /** - * Signing alghorithm - * - * @return signingAlgo - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SIGNING_ALGO) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public SigningAlgoEnum getSigningAlgo() { - return signingAlgo; - } - - @JsonProperty(JSON_PROPERTY_SIGNING_ALGO) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSigningAlgo(@jakarta.annotation.Nonnull SigningAlgoEnum signingAlgo) { - this.signingAlgo = signingAlgo; - } - - /** Return true if this BlockchainOnchain object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - BlockchainOnchain blockchainOnchain = (BlockchainOnchain) o; - return Objects.equals(this.protocol, blockchainOnchain.protocol) - && Objects.equals(this.chainId, blockchainOnchain.chainId) - && Objects.equals(this.test, blockchainOnchain.test) - && Objects.equals(this.signingAlgo, blockchainOnchain.signingAlgo); - } - - @Override - public int hashCode() { - return Objects.hash(protocol, chainId, test, signingAlgo); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class BlockchainOnchain {\n"); - sb.append(" protocol: ").append(toIndentedString(protocol)).append("\n"); - sb.append(" chainId: ").append(toIndentedString(chainId)).append("\n"); - sb.append(" test: ").append(toIndentedString(test)).append("\n"); - sb.append(" signingAlgo: ").append(toIndentedString(signingAlgo)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `protocol` to the URL query string - if (getProtocol() != null) { - joiner.add( - String.format( - "%sprotocol%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getProtocol())))); - } - - // add `chainId` to the URL query string - if (getChainId() != null) { - joiner.add( - String.format( - "%schainId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getChainId())))); - } - - // add `test` to the URL query string - if (getTest() != null) { - joiner.add( - String.format( - "%stest%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getTest())))); - } - - // add `signingAlgo` to the URL query string - if (getSigningAlgo() != null) { - joiner.add( - String.format( - "%ssigningAlgo%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getSigningAlgo())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/BlockchainResponse.java b/src/main/java/com/fireblocks/sdk/model/BlockchainResponse.java deleted file mode 100644 index 5c75e609..00000000 --- a/src/main/java/com/fireblocks/sdk/model/BlockchainResponse.java +++ /dev/null @@ -1,343 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** BlockchainResponse */ -@JsonPropertyOrder({ - BlockchainResponse.JSON_PROPERTY_ID, - BlockchainResponse.JSON_PROPERTY_LEGACY_ID, - BlockchainResponse.JSON_PROPERTY_DISPLAY_NAME, - BlockchainResponse.JSON_PROPERTY_NATIVE_ASSET_ID, - BlockchainResponse.JSON_PROPERTY_ONCHAIN, - BlockchainResponse.JSON_PROPERTY_METADATA -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class BlockchainResponse { - public static final String JSON_PROPERTY_ID = "id"; - @jakarta.annotation.Nonnull private String id; - - public static final String JSON_PROPERTY_LEGACY_ID = "legacyId"; - @jakarta.annotation.Nonnull private String legacyId; - - public static final String JSON_PROPERTY_DISPLAY_NAME = "displayName"; - @jakarta.annotation.Nonnull private String displayName; - - public static final String JSON_PROPERTY_NATIVE_ASSET_ID = "nativeAssetId"; - @jakarta.annotation.Nonnull private String nativeAssetId; - - public static final String JSON_PROPERTY_ONCHAIN = "onchain"; - @jakarta.annotation.Nonnull private BlockchainOnchain onchain; - - public static final String JSON_PROPERTY_METADATA = "metadata"; - @jakarta.annotation.Nonnull private BlockchainMetadata metadata; - - public BlockchainResponse() {} - - @JsonCreator - public BlockchainResponse( - @JsonProperty(value = JSON_PROPERTY_ID, required = true) String id, - @JsonProperty(value = JSON_PROPERTY_LEGACY_ID, required = true) String legacyId, - @JsonProperty(value = JSON_PROPERTY_DISPLAY_NAME, required = true) String displayName, - @JsonProperty(value = JSON_PROPERTY_NATIVE_ASSET_ID, required = true) - String nativeAssetId, - @JsonProperty(value = JSON_PROPERTY_ONCHAIN, required = true) BlockchainOnchain onchain, - @JsonProperty(value = JSON_PROPERTY_METADATA, required = true) - BlockchainMetadata metadata) { - this.id = id; - this.legacyId = legacyId; - this.displayName = displayName; - this.nativeAssetId = nativeAssetId; - this.onchain = onchain; - this.metadata = metadata; - } - - public BlockchainResponse id(@jakarta.annotation.Nonnull String id) { - this.id = id; - return this; - } - - /** - * The ID of the blockchain - * - * @return id - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getId() { - return id; - } - - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(@jakarta.annotation.Nonnull String id) { - this.id = id; - } - - public BlockchainResponse legacyId(@jakarta.annotation.Nonnull String legacyId) { - this.legacyId = legacyId; - return this; - } - - /** - * The old blockchain ID representation of the blockchain - * - * @return legacyId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_LEGACY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getLegacyId() { - return legacyId; - } - - @JsonProperty(JSON_PROPERTY_LEGACY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setLegacyId(@jakarta.annotation.Nonnull String legacyId) { - this.legacyId = legacyId; - } - - public BlockchainResponse displayName(@jakarta.annotation.Nonnull String displayName) { - this.displayName = displayName; - return this; - } - - /** - * The name of the blockchain - * - * @return displayName - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DISPLAY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getDisplayName() { - return displayName; - } - - @JsonProperty(JSON_PROPERTY_DISPLAY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDisplayName(@jakarta.annotation.Nonnull String displayName) { - this.displayName = displayName; - } - - public BlockchainResponse nativeAssetId(@jakarta.annotation.Nonnull String nativeAssetId) { - this.nativeAssetId = nativeAssetId; - return this; - } - - /** - * Native asset ID of this blockchain - * - * @return nativeAssetId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NATIVE_ASSET_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getNativeAssetId() { - return nativeAssetId; - } - - @JsonProperty(JSON_PROPERTY_NATIVE_ASSET_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setNativeAssetId(@jakarta.annotation.Nonnull String nativeAssetId) { - this.nativeAssetId = nativeAssetId; - } - - public BlockchainResponse onchain(@jakarta.annotation.Nonnull BlockchainOnchain onchain) { - this.onchain = onchain; - return this; - } - - /** - * Get onchain - * - * @return onchain - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ONCHAIN) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public BlockchainOnchain getOnchain() { - return onchain; - } - - @JsonProperty(JSON_PROPERTY_ONCHAIN) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setOnchain(@jakarta.annotation.Nonnull BlockchainOnchain onchain) { - this.onchain = onchain; - } - - public BlockchainResponse metadata(@jakarta.annotation.Nonnull BlockchainMetadata metadata) { - this.metadata = metadata; - return this; - } - - /** - * Get metadata - * - * @return metadata - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_METADATA) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public BlockchainMetadata getMetadata() { - return metadata; - } - - @JsonProperty(JSON_PROPERTY_METADATA) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setMetadata(@jakarta.annotation.Nonnull BlockchainMetadata metadata) { - this.metadata = metadata; - } - - /** Return true if this BlockchainResponse object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - BlockchainResponse blockchainResponse = (BlockchainResponse) o; - return Objects.equals(this.id, blockchainResponse.id) - && Objects.equals(this.legacyId, blockchainResponse.legacyId) - && Objects.equals(this.displayName, blockchainResponse.displayName) - && Objects.equals(this.nativeAssetId, blockchainResponse.nativeAssetId) - && Objects.equals(this.onchain, blockchainResponse.onchain) - && Objects.equals(this.metadata, blockchainResponse.metadata); - } - - @Override - public int hashCode() { - return Objects.hash(id, legacyId, displayName, nativeAssetId, onchain, metadata); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class BlockchainResponse {\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" legacyId: ").append(toIndentedString(legacyId)).append("\n"); - sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n"); - sb.append(" nativeAssetId: ").append(toIndentedString(nativeAssetId)).append("\n"); - sb.append(" onchain: ").append(toIndentedString(onchain)).append("\n"); - sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `id` to the URL query string - if (getId() != null) { - joiner.add( - String.format( - "%sid%s=%s", - prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); - } - - // add `legacyId` to the URL query string - if (getLegacyId() != null) { - joiner.add( - String.format( - "%slegacyId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getLegacyId())))); - } - - // add `displayName` to the URL query string - if (getDisplayName() != null) { - joiner.add( - String.format( - "%sdisplayName%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getDisplayName())))); - } - - // add `nativeAssetId` to the URL query string - if (getNativeAssetId() != null) { - joiner.add( - String.format( - "%snativeAssetId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getNativeAssetId())))); - } - - // add `onchain` to the URL query string - if (getOnchain() != null) { - joiner.add(getOnchain().toUrlQueryString(prefix + "onchain" + suffix)); - } - - // add `metadata` to the URL query string - if (getMetadata() != null) { - joiner.add(getMetadata().toUrlQueryString(prefix + "metadata" + suffix)); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/BlockchainTransfer.java b/src/main/java/com/fireblocks/sdk/model/BlockchainTransfer.java deleted file mode 100644 index e408f50b..00000000 --- a/src/main/java/com/fireblocks/sdk/model/BlockchainTransfer.java +++ /dev/null @@ -1,258 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** BlockchainTransfer */ -@JsonPropertyOrder({ - BlockchainTransfer.JSON_PROPERTY_TYPE, - BlockchainTransfer.JSON_PROPERTY_TX_HASH, - BlockchainTransfer.JSON_PROPERTY_AMOUNT -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class BlockchainTransfer { - /** Gets or Sets type */ - public enum TypeEnum { - BLOCKCHAIN(String.valueOf("BLOCKCHAIN")); - - private String value; - - TypeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static TypeEnum fromValue(String value) { - for (TypeEnum b : TypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_TYPE = "type"; - @jakarta.annotation.Nullable private TypeEnum type; - - public static final String JSON_PROPERTY_TX_HASH = "txHash"; - @jakarta.annotation.Nullable private String txHash; - - public static final String JSON_PROPERTY_AMOUNT = "amount"; - @jakarta.annotation.Nonnull private String amount; - - public BlockchainTransfer() {} - - @JsonCreator - public BlockchainTransfer( - @JsonProperty(value = JSON_PROPERTY_AMOUNT, required = true) String amount) { - this.amount = amount; - } - - public BlockchainTransfer type(@jakarta.annotation.Nullable TypeEnum type) { - this.type = type; - return this; - } - - /** - * Get type - * - * @return type - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public TypeEnum getType() { - return type; - } - - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(@jakarta.annotation.Nullable TypeEnum type) { - this.type = type; - } - - public BlockchainTransfer txHash(@jakarta.annotation.Nullable String txHash) { - this.txHash = txHash; - return this; - } - - /** - * The hash of the transaction on the blockchain. - * - * @return txHash - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TX_HASH) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getTxHash() { - return txHash; - } - - @JsonProperty(JSON_PROPERTY_TX_HASH) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTxHash(@jakarta.annotation.Nullable String txHash) { - this.txHash = txHash; - } - - public BlockchainTransfer amount(@jakarta.annotation.Nonnull String amount) { - this.amount = amount; - return this; - } - - /** - * The amount of the transaction. - * - * @return amount - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_AMOUNT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getAmount() { - return amount; - } - - @JsonProperty(JSON_PROPERTY_AMOUNT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAmount(@jakarta.annotation.Nonnull String amount) { - this.amount = amount; - } - - /** Return true if this BlockchainTransfer object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - BlockchainTransfer blockchainTransfer = (BlockchainTransfer) o; - return Objects.equals(this.type, blockchainTransfer.type) - && Objects.equals(this.txHash, blockchainTransfer.txHash) - && Objects.equals(this.amount, blockchainTransfer.amount); - } - - @Override - public int hashCode() { - return Objects.hash(type, txHash, amount); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class BlockchainTransfer {\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" txHash: ").append(toIndentedString(txHash)).append("\n"); - sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `type` to the URL query string - if (getType() != null) { - joiner.add( - String.format( - "%stype%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getType())))); - } - - // add `txHash` to the URL query string - if (getTxHash() != null) { - joiner.add( - String.format( - "%stxHash%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getTxHash())))); - } - - // add `amount` to the URL query string - if (getAmount() != null) { - joiner.add( - String.format( - "%samount%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAmount())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/BpsFee.java b/src/main/java/com/fireblocks/sdk/model/BpsFee.java deleted file mode 100644 index 38743066..00000000 --- a/src/main/java/com/fireblocks/sdk/model/BpsFee.java +++ /dev/null @@ -1,220 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fireblocks.sdk.ApiClient; -import java.math.BigDecimal; -import java.util.Objects; -import java.util.StringJoiner; - -/** BpsFee */ -@JsonPropertyOrder({BpsFee.JSON_PROPERTY_AMOUNT_TYPE, BpsFee.JSON_PROPERTY_AMOUNT}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class BpsFee { - /** Gets or Sets amountType */ - public enum AmountTypeEnum { - BPS(String.valueOf("BPS")); - - private String value; - - AmountTypeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static AmountTypeEnum fromValue(String value) { - for (AmountTypeEnum b : AmountTypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_AMOUNT_TYPE = "amountType"; - @jakarta.annotation.Nonnull private AmountTypeEnum amountType; - - public static final String JSON_PROPERTY_AMOUNT = "amount"; - @jakarta.annotation.Nonnull private BigDecimal amount; - - public BpsFee() {} - - @JsonCreator - public BpsFee( - @JsonProperty(value = JSON_PROPERTY_AMOUNT_TYPE, required = true) - AmountTypeEnum amountType, - @JsonProperty(value = JSON_PROPERTY_AMOUNT, required = true) BigDecimal amount) { - this.amountType = amountType; - this.amount = amount; - } - - public BpsFee amountType(@jakarta.annotation.Nonnull AmountTypeEnum amountType) { - this.amountType = amountType; - return this; - } - - /** - * Get amountType - * - * @return amountType - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_AMOUNT_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AmountTypeEnum getAmountType() { - return amountType; - } - - @JsonProperty(JSON_PROPERTY_AMOUNT_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAmountType(@jakarta.annotation.Nonnull AmountTypeEnum amountType) { - this.amountType = amountType; - } - - public BpsFee amount(@jakarta.annotation.Nonnull BigDecimal amount) { - this.amount = amount; - return this; - } - - /** - * Fee in basis points (1 = 0.01%, 10000 = 100%) minimum: 0 maximum: 10000 - * - * @return amount - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_AMOUNT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public BigDecimal getAmount() { - return amount; - } - - @JsonProperty(JSON_PROPERTY_AMOUNT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAmount(@jakarta.annotation.Nonnull BigDecimal amount) { - this.amount = amount; - } - - /** Return true if this BpsFee object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - BpsFee bpsFee = (BpsFee) o; - return Objects.equals(this.amountType, bpsFee.amountType) - && Objects.equals(this.amount, bpsFee.amount); - } - - @Override - public int hashCode() { - return Objects.hash(amountType, amount); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class BpsFee {\n"); - sb.append(" amountType: ").append(toIndentedString(amountType)).append("\n"); - sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `amountType` to the URL query string - if (getAmountType() != null) { - joiner.add( - String.format( - "%samountType%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAmountType())))); - } - - // add `amount` to the URL query string - if (getAmount() != null) { - joiner.add( - String.format( - "%samount%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAmount())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/BusinessIdentification.java b/src/main/java/com/fireblocks/sdk/model/BusinessIdentification.java deleted file mode 100644 index f773d609..00000000 --- a/src/main/java/com/fireblocks/sdk/model/BusinessIdentification.java +++ /dev/null @@ -1,409 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** BusinessIdentification */ -@JsonPropertyOrder({ - BusinessIdentification.JSON_PROPERTY_EXTERNAL_REFERENCE_ID, - BusinessIdentification.JSON_PROPERTY_ENTITY_TYPE, - BusinessIdentification.JSON_PROPERTY_PARTICIPANT_RELATIONSHIP_TYPE, - BusinessIdentification.JSON_PROPERTY_BUSINESS_NAME, - BusinessIdentification.JSON_PROPERTY_REGISTRATION_NUMBER, - BusinessIdentification.JSON_PROPERTY_POSTAL_ADDRESS -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class BusinessIdentification { - public static final String JSON_PROPERTY_EXTERNAL_REFERENCE_ID = "externalReferenceId"; - @jakarta.annotation.Nonnull private String externalReferenceId; - - /** Gets or Sets entityType */ - public enum EntityTypeEnum { - BUSINESS(String.valueOf("BUSINESS")); - - private String value; - - EntityTypeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static EntityTypeEnum fromValue(String value) { - for (EntityTypeEnum b : EntityTypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_ENTITY_TYPE = "entityType"; - @jakarta.annotation.Nonnull private EntityTypeEnum entityType; - - public static final String JSON_PROPERTY_PARTICIPANT_RELATIONSHIP_TYPE = - "participantRelationshipType"; - @jakarta.annotation.Nonnull private ParticipantRelationshipType participantRelationshipType; - - public static final String JSON_PROPERTY_BUSINESS_NAME = "businessName"; - @jakarta.annotation.Nonnull private String businessName; - - public static final String JSON_PROPERTY_REGISTRATION_NUMBER = "registrationNumber"; - @jakarta.annotation.Nonnull private String registrationNumber; - - public static final String JSON_PROPERTY_POSTAL_ADDRESS = "postalAddress"; - @jakarta.annotation.Nonnull private PostalAddress postalAddress; - - public BusinessIdentification() {} - - @JsonCreator - public BusinessIdentification( - @JsonProperty(value = JSON_PROPERTY_EXTERNAL_REFERENCE_ID, required = true) - String externalReferenceId, - @JsonProperty(value = JSON_PROPERTY_ENTITY_TYPE, required = true) - EntityTypeEnum entityType, - @JsonProperty(value = JSON_PROPERTY_PARTICIPANT_RELATIONSHIP_TYPE, required = true) - ParticipantRelationshipType participantRelationshipType, - @JsonProperty(value = JSON_PROPERTY_BUSINESS_NAME, required = true) String businessName, - @JsonProperty(value = JSON_PROPERTY_REGISTRATION_NUMBER, required = true) - String registrationNumber, - @JsonProperty(value = JSON_PROPERTY_POSTAL_ADDRESS, required = true) - PostalAddress postalAddress) { - this.externalReferenceId = externalReferenceId; - this.entityType = entityType; - this.participantRelationshipType = participantRelationshipType; - this.businessName = businessName; - this.registrationNumber = registrationNumber; - this.postalAddress = postalAddress; - } - - public BusinessIdentification externalReferenceId( - @jakarta.annotation.Nonnull String externalReferenceId) { - this.externalReferenceId = externalReferenceId; - return this; - } - - /** - * Get externalReferenceId - * - * @return externalReferenceId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_EXTERNAL_REFERENCE_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getExternalReferenceId() { - return externalReferenceId; - } - - @JsonProperty(JSON_PROPERTY_EXTERNAL_REFERENCE_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setExternalReferenceId(@jakarta.annotation.Nonnull String externalReferenceId) { - this.externalReferenceId = externalReferenceId; - } - - public BusinessIdentification entityType( - @jakarta.annotation.Nonnull EntityTypeEnum entityType) { - this.entityType = entityType; - return this; - } - - /** - * Get entityType - * - * @return entityType - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ENTITY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public EntityTypeEnum getEntityType() { - return entityType; - } - - @JsonProperty(JSON_PROPERTY_ENTITY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setEntityType(@jakarta.annotation.Nonnull EntityTypeEnum entityType) { - this.entityType = entityType; - } - - public BusinessIdentification participantRelationshipType( - @jakarta.annotation.Nonnull ParticipantRelationshipType participantRelationshipType) { - this.participantRelationshipType = participantRelationshipType; - return this; - } - - /** - * Get participantRelationshipType - * - * @return participantRelationshipType - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PARTICIPANT_RELATIONSHIP_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public ParticipantRelationshipType getParticipantRelationshipType() { - return participantRelationshipType; - } - - @JsonProperty(JSON_PROPERTY_PARTICIPANT_RELATIONSHIP_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setParticipantRelationshipType( - @jakarta.annotation.Nonnull ParticipantRelationshipType participantRelationshipType) { - this.participantRelationshipType = participantRelationshipType; - } - - public BusinessIdentification businessName(@jakarta.annotation.Nonnull String businessName) { - this.businessName = businessName; - return this; - } - - /** - * Get businessName - * - * @return businessName - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BUSINESS_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getBusinessName() { - return businessName; - } - - @JsonProperty(JSON_PROPERTY_BUSINESS_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBusinessName(@jakarta.annotation.Nonnull String businessName) { - this.businessName = businessName; - } - - public BusinessIdentification registrationNumber( - @jakarta.annotation.Nonnull String registrationNumber) { - this.registrationNumber = registrationNumber; - return this; - } - - /** - * Get registrationNumber - * - * @return registrationNumber - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_REGISTRATION_NUMBER) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getRegistrationNumber() { - return registrationNumber; - } - - @JsonProperty(JSON_PROPERTY_REGISTRATION_NUMBER) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setRegistrationNumber(@jakarta.annotation.Nonnull String registrationNumber) { - this.registrationNumber = registrationNumber; - } - - public BusinessIdentification postalAddress( - @jakarta.annotation.Nonnull PostalAddress postalAddress) { - this.postalAddress = postalAddress; - return this; - } - - /** - * Get postalAddress - * - * @return postalAddress - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_POSTAL_ADDRESS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public PostalAddress getPostalAddress() { - return postalAddress; - } - - @JsonProperty(JSON_PROPERTY_POSTAL_ADDRESS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPostalAddress(@jakarta.annotation.Nonnull PostalAddress postalAddress) { - this.postalAddress = postalAddress; - } - - /** Return true if this BusinessIdentification object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - BusinessIdentification businessIdentification = (BusinessIdentification) o; - return Objects.equals(this.externalReferenceId, businessIdentification.externalReferenceId) - && Objects.equals(this.entityType, businessIdentification.entityType) - && Objects.equals( - this.participantRelationshipType, - businessIdentification.participantRelationshipType) - && Objects.equals(this.businessName, businessIdentification.businessName) - && Objects.equals( - this.registrationNumber, businessIdentification.registrationNumber) - && Objects.equals(this.postalAddress, businessIdentification.postalAddress); - } - - @Override - public int hashCode() { - return Objects.hash( - externalReferenceId, - entityType, - participantRelationshipType, - businessName, - registrationNumber, - postalAddress); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class BusinessIdentification {\n"); - sb.append(" externalReferenceId: ") - .append(toIndentedString(externalReferenceId)) - .append("\n"); - sb.append(" entityType: ").append(toIndentedString(entityType)).append("\n"); - sb.append(" participantRelationshipType: ") - .append(toIndentedString(participantRelationshipType)) - .append("\n"); - sb.append(" businessName: ").append(toIndentedString(businessName)).append("\n"); - sb.append(" registrationNumber: ") - .append(toIndentedString(registrationNumber)) - .append("\n"); - sb.append(" postalAddress: ").append(toIndentedString(postalAddress)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `externalReferenceId` to the URL query string - if (getExternalReferenceId() != null) { - joiner.add( - String.format( - "%sexternalReferenceId%s=%s", - prefix, - suffix, - ApiClient.urlEncode( - ApiClient.valueToString(getExternalReferenceId())))); - } - - // add `entityType` to the URL query string - if (getEntityType() != null) { - joiner.add( - String.format( - "%sentityType%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getEntityType())))); - } - - // add `participantRelationshipType` to the URL query string - if (getParticipantRelationshipType() != null) { - joiner.add( - String.format( - "%sparticipantRelationshipType%s=%s", - prefix, - suffix, - ApiClient.urlEncode( - ApiClient.valueToString(getParticipantRelationshipType())))); - } - - // add `businessName` to the URL query string - if (getBusinessName() != null) { - joiner.add( - String.format( - "%sbusinessName%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBusinessName())))); - } - - // add `registrationNumber` to the URL query string - if (getRegistrationNumber() != null) { - joiner.add( - String.format( - "%sregistrationNumber%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getRegistrationNumber())))); - } - - // add `postalAddress` to the URL query string - if (getPostalAddress() != null) { - joiner.add(getPostalAddress().toUrlQueryString(prefix + "postalAddress" + suffix)); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/CallbackHandler.java b/src/main/java/com/fireblocks/sdk/model/CallbackHandler.java deleted file mode 100644 index 1041f80a..00000000 --- a/src/main/java/com/fireblocks/sdk/model/CallbackHandler.java +++ /dev/null @@ -1,228 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** CallbackHandler */ -@JsonPropertyOrder({ - CallbackHandler.JSON_PROPERTY_URL, - CallbackHandler.JSON_PROPERTY_PUBLIC_KEY, - CallbackHandler.JSON_PROPERTY_CERT_PUBLIC_KEY_HASH -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class CallbackHandler { - public static final String JSON_PROPERTY_URL = "url"; - @jakarta.annotation.Nonnull private String url; - - public static final String JSON_PROPERTY_PUBLIC_KEY = "publicKey"; - @jakarta.annotation.Nullable private String publicKey; - - public static final String JSON_PROPERTY_CERT_PUBLIC_KEY_HASH = "certPublicKeyHash"; - @jakarta.annotation.Nullable private String certPublicKeyHash; - - public CallbackHandler() {} - - @JsonCreator - public CallbackHandler(@JsonProperty(value = JSON_PROPERTY_URL, required = true) String url) { - this.url = url; - } - - public CallbackHandler url(@jakarta.annotation.Nonnull String url) { - this.url = url; - return this; - } - - /** - * The callback handler's URL - * - * @return url - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_URL) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getUrl() { - return url; - } - - @JsonProperty(JSON_PROPERTY_URL) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUrl(@jakarta.annotation.Nonnull String url) { - this.url = url; - } - - public CallbackHandler publicKey(@jakarta.annotation.Nullable String publicKey) { - this.publicKey = publicKey; - return this; - } - - /** - * The callback handler's public key - * - * @return publicKey - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PUBLIC_KEY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getPublicKey() { - return publicKey; - } - - @JsonProperty(JSON_PROPERTY_PUBLIC_KEY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPublicKey(@jakarta.annotation.Nullable String publicKey) { - this.publicKey = publicKey; - } - - public CallbackHandler certPublicKeyHash( - @jakarta.annotation.Nullable String certPublicKeyHash) { - this.certPublicKeyHash = certPublicKeyHash; - return this; - } - - /** - * A hashed representation of the public key of the callback handler's certificate - * - * @return certPublicKeyHash - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CERT_PUBLIC_KEY_HASH) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getCertPublicKeyHash() { - return certPublicKeyHash; - } - - @JsonProperty(JSON_PROPERTY_CERT_PUBLIC_KEY_HASH) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCertPublicKeyHash(@jakarta.annotation.Nullable String certPublicKeyHash) { - this.certPublicKeyHash = certPublicKeyHash; - } - - /** Return true if this CallbackHandler object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - CallbackHandler callbackHandler = (CallbackHandler) o; - return Objects.equals(this.url, callbackHandler.url) - && Objects.equals(this.publicKey, callbackHandler.publicKey) - && Objects.equals(this.certPublicKeyHash, callbackHandler.certPublicKeyHash); - } - - @Override - public int hashCode() { - return Objects.hash(url, publicKey, certPublicKeyHash); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class CallbackHandler {\n"); - sb.append(" url: ").append(toIndentedString(url)).append("\n"); - sb.append(" publicKey: ").append(toIndentedString(publicKey)).append("\n"); - sb.append(" certPublicKeyHash: ") - .append(toIndentedString(certPublicKeyHash)) - .append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `url` to the URL query string - if (getUrl() != null) { - joiner.add( - String.format( - "%surl%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getUrl())))); - } - - // add `publicKey` to the URL query string - if (getPublicKey() != null) { - joiner.add( - String.format( - "%spublicKey%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getPublicKey())))); - } - - // add `certPublicKeyHash` to the URL query string - if (getCertPublicKeyHash() != null) { - joiner.add( - String.format( - "%scertPublicKeyHash%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getCertPublicKeyHash())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/CallbackHandlerRequest.java b/src/main/java/com/fireblocks/sdk/model/CallbackHandlerRequest.java deleted file mode 100644 index 3d1aa75a..00000000 --- a/src/main/java/com/fireblocks/sdk/model/CallbackHandlerRequest.java +++ /dev/null @@ -1,226 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** CallbackHandlerRequest */ -@JsonPropertyOrder({ - CallbackHandlerRequest.JSON_PROPERTY_URL, - CallbackHandlerRequest.JSON_PROPERTY_PUBLIC_KEY, - CallbackHandlerRequest.JSON_PROPERTY_CERT -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class CallbackHandlerRequest { - public static final String JSON_PROPERTY_URL = "url"; - @jakarta.annotation.Nonnull private String url; - - public static final String JSON_PROPERTY_PUBLIC_KEY = "publicKey"; - @jakarta.annotation.Nullable private String publicKey; - - public static final String JSON_PROPERTY_CERT = "cert"; - @jakarta.annotation.Nullable private String cert; - - public CallbackHandlerRequest() {} - - @JsonCreator - public CallbackHandlerRequest( - @JsonProperty(value = JSON_PROPERTY_URL, required = true) String url) { - this.url = url; - } - - public CallbackHandlerRequest url(@jakarta.annotation.Nonnull String url) { - this.url = url; - return this; - } - - /** - * The callback handler's URL - * - * @return url - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_URL) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getUrl() { - return url; - } - - @JsonProperty(JSON_PROPERTY_URL) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUrl(@jakarta.annotation.Nonnull String url) { - this.url = url; - } - - public CallbackHandlerRequest publicKey(@jakarta.annotation.Nullable String publicKey) { - this.publicKey = publicKey; - return this; - } - - /** - * The callback handler's public key - * - * @return publicKey - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PUBLIC_KEY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getPublicKey() { - return publicKey; - } - - @JsonProperty(JSON_PROPERTY_PUBLIC_KEY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPublicKey(@jakarta.annotation.Nullable String publicKey) { - this.publicKey = publicKey; - } - - public CallbackHandlerRequest cert(@jakarta.annotation.Nullable String cert) { - this.cert = cert; - return this; - } - - /** - * The callback handler's certificate - * - * @return cert - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CERT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getCert() { - return cert; - } - - @JsonProperty(JSON_PROPERTY_CERT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCert(@jakarta.annotation.Nullable String cert) { - this.cert = cert; - } - - /** Return true if this CallbackHandlerRequest object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - CallbackHandlerRequest callbackHandlerRequest = (CallbackHandlerRequest) o; - return Objects.equals(this.url, callbackHandlerRequest.url) - && Objects.equals(this.publicKey, callbackHandlerRequest.publicKey) - && Objects.equals(this.cert, callbackHandlerRequest.cert); - } - - @Override - public int hashCode() { - return Objects.hash(url, publicKey, cert); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class CallbackHandlerRequest {\n"); - sb.append(" url: ").append(toIndentedString(url)).append("\n"); - sb.append(" publicKey: ").append(toIndentedString(publicKey)).append("\n"); - sb.append(" cert: ").append(toIndentedString(cert)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `url` to the URL query string - if (getUrl() != null) { - joiner.add( - String.format( - "%surl%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getUrl())))); - } - - // add `publicKey` to the URL query string - if (getPublicKey() != null) { - joiner.add( - String.format( - "%spublicKey%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getPublicKey())))); - } - - // add `cert` to the URL query string - if (getCert() != null) { - joiner.add( - String.format( - "%scert%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getCert())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/Capability.java b/src/main/java/com/fireblocks/sdk/model/Capability.java deleted file mode 100644 index a515b093..00000000 --- a/src/main/java/com/fireblocks/sdk/model/Capability.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - -/** Gets or Sets Capability */ -public enum Capability { - WITHDRAWALS("WITHDRAWALS"), - - DEPOSITS("DEPOSITS"), - - TRADING("TRADING"); - - private String value; - - Capability(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static Capability fromValue(String value) { - for (Capability b : Capability.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - if (prefix == null) { - prefix = ""; - } - - return String.format("%s=%s", prefix, this.toString()); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/ChainDescriptor.java b/src/main/java/com/fireblocks/sdk/model/ChainDescriptor.java deleted file mode 100644 index 3233a90a..00000000 --- a/src/main/java/com/fireblocks/sdk/model/ChainDescriptor.java +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - -/** Gets or Sets ChainDescriptor */ -public enum ChainDescriptor { - ETH("ETH"), - - SOL("SOL"), - - MATIC("MATIC"), - - ETH_TEST_HOODI("ETH_TEST_HOODI"), - - ETH_TEST6("ETH_TEST6"), - - SOL_TEST("SOL_TEST"); - - private String value; - - ChainDescriptor(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static ChainDescriptor fromValue(String value) { - for (ChainDescriptor b : ChainDescriptor.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - if (prefix == null) { - prefix = ""; - } - - return String.format("%s=%s", prefix, this.toString()); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/ChainInfoResponse.java b/src/main/java/com/fireblocks/sdk/model/ChainInfoResponseDto.java similarity index 85% rename from src/main/java/com/fireblocks/sdk/model/ChainInfoResponse.java rename to src/main/java/com/fireblocks/sdk/model/ChainInfoResponseDto.java index cc4a3424..2fb87ab0 100644 --- a/src/main/java/com/fireblocks/sdk/model/ChainInfoResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/ChainInfoResponseDto.java @@ -22,18 +22,18 @@ import java.util.Objects; import java.util.StringJoiner; -/** ChainInfoResponse */ +/** ChainInfoResponseDto */ @JsonPropertyOrder({ - ChainInfoResponse.JSON_PROPERTY_CHAIN_DESCRIPTOR, - ChainInfoResponse.JSON_PROPERTY_CURRENT_EPOCH, - ChainInfoResponse.JSON_PROPERTY_EPOCH_ELAPSED, - ChainInfoResponse.JSON_PROPERTY_EPOCH_DURATION, - ChainInfoResponse.JSON_PROPERTY_ADDITIONAL_INFO + ChainInfoResponseDto.JSON_PROPERTY_CHAIN_DESCRIPTOR, + ChainInfoResponseDto.JSON_PROPERTY_CURRENT_EPOCH, + ChainInfoResponseDto.JSON_PROPERTY_EPOCH_ELAPSED, + ChainInfoResponseDto.JSON_PROPERTY_EPOCH_DURATION, + ChainInfoResponseDto.JSON_PROPERTY_ADDITIONAL_INFO }) @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") -public class ChainInfoResponse { +public class ChainInfoResponseDto { public static final String JSON_PROPERTY_CHAIN_DESCRIPTOR = "chainDescriptor"; @jakarta.annotation.Nonnull private String chainDescriptor; @@ -47,12 +47,12 @@ public class ChainInfoResponse { @jakarta.annotation.Nonnull private BigDecimal epochDuration; public static final String JSON_PROPERTY_ADDITIONAL_INFO = "additionalInfo"; - @jakarta.annotation.Nonnull private AdditionalInfo additionalInfo; + @jakarta.annotation.Nonnull private AdditionalInfoDto additionalInfo; - public ChainInfoResponse() {} + public ChainInfoResponseDto() {} @JsonCreator - public ChainInfoResponse( + public ChainInfoResponseDto( @JsonProperty(value = JSON_PROPERTY_CHAIN_DESCRIPTOR, required = true) String chainDescriptor, @JsonProperty(value = JSON_PROPERTY_CURRENT_EPOCH, required = true) @@ -62,7 +62,7 @@ public ChainInfoResponse( @JsonProperty(value = JSON_PROPERTY_EPOCH_DURATION, required = true) BigDecimal epochDuration, @JsonProperty(value = JSON_PROPERTY_ADDITIONAL_INFO, required = true) - AdditionalInfo additionalInfo) { + AdditionalInfoDto additionalInfo) { this.chainDescriptor = chainDescriptor; this.currentEpoch = currentEpoch; this.epochElapsed = epochElapsed; @@ -70,7 +70,8 @@ public ChainInfoResponse( this.additionalInfo = additionalInfo; } - public ChainInfoResponse chainDescriptor(@jakarta.annotation.Nonnull String chainDescriptor) { + public ChainInfoResponseDto chainDescriptor( + @jakarta.annotation.Nonnull String chainDescriptor) { this.chainDescriptor = chainDescriptor; return this; } @@ -93,7 +94,7 @@ public void setChainDescriptor(@jakarta.annotation.Nonnull String chainDescripto this.chainDescriptor = chainDescriptor; } - public ChainInfoResponse currentEpoch(@jakarta.annotation.Nonnull BigDecimal currentEpoch) { + public ChainInfoResponseDto currentEpoch(@jakarta.annotation.Nonnull BigDecimal currentEpoch) { this.currentEpoch = currentEpoch; return this; } @@ -116,7 +117,7 @@ public void setCurrentEpoch(@jakarta.annotation.Nonnull BigDecimal currentEpoch) this.currentEpoch = currentEpoch; } - public ChainInfoResponse epochElapsed(@jakarta.annotation.Nonnull BigDecimal epochElapsed) { + public ChainInfoResponseDto epochElapsed(@jakarta.annotation.Nonnull BigDecimal epochElapsed) { this.epochElapsed = epochElapsed; return this; } @@ -140,7 +141,8 @@ public void setEpochElapsed(@jakarta.annotation.Nonnull BigDecimal epochElapsed) this.epochElapsed = epochElapsed; } - public ChainInfoResponse epochDuration(@jakarta.annotation.Nonnull BigDecimal epochDuration) { + public ChainInfoResponseDto epochDuration( + @jakarta.annotation.Nonnull BigDecimal epochDuration) { this.epochDuration = epochDuration; return this; } @@ -163,31 +165,32 @@ public void setEpochDuration(@jakarta.annotation.Nonnull BigDecimal epochDuratio this.epochDuration = epochDuration; } - public ChainInfoResponse additionalInfo( - @jakarta.annotation.Nonnull AdditionalInfo additionalInfo) { + public ChainInfoResponseDto additionalInfo( + @jakarta.annotation.Nonnull AdditionalInfoDto additionalInfo) { this.additionalInfo = additionalInfo; return this; } /** - * Get additionalInfo + * Additional information related to the blockchain. This may include extra details about the + * blockchain network. * * @return additionalInfo */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ADDITIONAL_INFO) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AdditionalInfo getAdditionalInfo() { + public AdditionalInfoDto getAdditionalInfo() { return additionalInfo; } @JsonProperty(JSON_PROPERTY_ADDITIONAL_INFO) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAdditionalInfo(@jakarta.annotation.Nonnull AdditionalInfo additionalInfo) { + public void setAdditionalInfo(@jakarta.annotation.Nonnull AdditionalInfoDto additionalInfo) { this.additionalInfo = additionalInfo; } - /** Return true if this ChainInfoResponse object is equal to o. */ + /** Return true if this ChainInfoResponseDto object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -196,12 +199,12 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ChainInfoResponse chainInfoResponse = (ChainInfoResponse) o; - return Objects.equals(this.chainDescriptor, chainInfoResponse.chainDescriptor) - && Objects.equals(this.currentEpoch, chainInfoResponse.currentEpoch) - && Objects.equals(this.epochElapsed, chainInfoResponse.epochElapsed) - && Objects.equals(this.epochDuration, chainInfoResponse.epochDuration) - && Objects.equals(this.additionalInfo, chainInfoResponse.additionalInfo); + ChainInfoResponseDto chainInfoResponseDto = (ChainInfoResponseDto) o; + return Objects.equals(this.chainDescriptor, chainInfoResponseDto.chainDescriptor) + && Objects.equals(this.currentEpoch, chainInfoResponseDto.currentEpoch) + && Objects.equals(this.epochElapsed, chainInfoResponseDto.epochElapsed) + && Objects.equals(this.epochDuration, chainInfoResponseDto.epochDuration) + && Objects.equals(this.additionalInfo, chainInfoResponseDto.additionalInfo); } @Override @@ -213,7 +216,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class ChainInfoResponse {\n"); + sb.append("class ChainInfoResponseDto {\n"); sb.append(" chainDescriptor: ").append(toIndentedString(chainDescriptor)).append("\n"); sb.append(" currentEpoch: ").append(toIndentedString(currentEpoch)).append("\n"); sb.append(" epochElapsed: ").append(toIndentedString(epochElapsed)).append("\n"); diff --git a/src/main/java/com/fireblocks/sdk/model/ChannelDvnConfigWithConfirmations.java b/src/main/java/com/fireblocks/sdk/model/ChannelDvnConfigWithConfirmations.java deleted file mode 100644 index d5039a5c..00000000 --- a/src/main/java/com/fireblocks/sdk/model/ChannelDvnConfigWithConfirmations.java +++ /dev/null @@ -1,174 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.Objects; -import java.util.StringJoiner; - -/** ChannelDvnConfigWithConfirmations */ -@JsonPropertyOrder({ - ChannelDvnConfigWithConfirmations.JSON_PROPERTY_SEND_CONFIG, - ChannelDvnConfigWithConfirmations.JSON_PROPERTY_RECEIVE_CONFIG -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class ChannelDvnConfigWithConfirmations { - public static final String JSON_PROPERTY_SEND_CONFIG = "sendConfig"; - @jakarta.annotation.Nullable private DvnConfigWithConfirmations sendConfig; - - public static final String JSON_PROPERTY_RECEIVE_CONFIG = "receiveConfig"; - @jakarta.annotation.Nullable private DvnConfigWithConfirmations receiveConfig; - - public ChannelDvnConfigWithConfirmations() {} - - public ChannelDvnConfigWithConfirmations sendConfig( - @jakarta.annotation.Nullable DvnConfigWithConfirmations sendConfig) { - this.sendConfig = sendConfig; - return this; - } - - /** - * Outbound (source → peer) DVN config with confirmations. - * - * @return sendConfig - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SEND_CONFIG) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public DvnConfigWithConfirmations getSendConfig() { - return sendConfig; - } - - @JsonProperty(JSON_PROPERTY_SEND_CONFIG) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSendConfig(@jakarta.annotation.Nullable DvnConfigWithConfirmations sendConfig) { - this.sendConfig = sendConfig; - } - - public ChannelDvnConfigWithConfirmations receiveConfig( - @jakarta.annotation.Nullable DvnConfigWithConfirmations receiveConfig) { - this.receiveConfig = receiveConfig; - return this; - } - - /** - * Inbound (peer → source) DVN config with confirmations. - * - * @return receiveConfig - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_RECEIVE_CONFIG) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public DvnConfigWithConfirmations getReceiveConfig() { - return receiveConfig; - } - - @JsonProperty(JSON_PROPERTY_RECEIVE_CONFIG) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setReceiveConfig( - @jakarta.annotation.Nullable DvnConfigWithConfirmations receiveConfig) { - this.receiveConfig = receiveConfig; - } - - /** Return true if this ChannelDvnConfigWithConfirmations object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ChannelDvnConfigWithConfirmations channelDvnConfigWithConfirmations = - (ChannelDvnConfigWithConfirmations) o; - return Objects.equals(this.sendConfig, channelDvnConfigWithConfirmations.sendConfig) - && Objects.equals( - this.receiveConfig, channelDvnConfigWithConfirmations.receiveConfig); - } - - @Override - public int hashCode() { - return Objects.hash(sendConfig, receiveConfig); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ChannelDvnConfigWithConfirmations {\n"); - sb.append(" sendConfig: ").append(toIndentedString(sendConfig)).append("\n"); - sb.append(" receiveConfig: ").append(toIndentedString(receiveConfig)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `sendConfig` to the URL query string - if (getSendConfig() != null) { - joiner.add(getSendConfig().toUrlQueryString(prefix + "sendConfig" + suffix)); - } - - // add `receiveConfig` to the URL query string - if (getReceiveConfig() != null) { - joiner.add(getReceiveConfig().toUrlQueryString(prefix + "receiveConfig" + suffix)); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/CollectionBurnRequestDto.java b/src/main/java/com/fireblocks/sdk/model/CollectionBurnRequestDto.java deleted file mode 100644 index 8325c8be..00000000 --- a/src/main/java/com/fireblocks/sdk/model/CollectionBurnRequestDto.java +++ /dev/null @@ -1,231 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** CollectionBurnRequestDto */ -@JsonPropertyOrder({ - CollectionBurnRequestDto.JSON_PROPERTY_VAULT_ACCOUNT_ID, - CollectionBurnRequestDto.JSON_PROPERTY_TOKEN_ID, - CollectionBurnRequestDto.JSON_PROPERTY_AMOUNT -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class CollectionBurnRequestDto { - public static final String JSON_PROPERTY_VAULT_ACCOUNT_ID = "vaultAccountId"; - @jakarta.annotation.Nonnull private String vaultAccountId; - - public static final String JSON_PROPERTY_TOKEN_ID = "tokenId"; - @jakarta.annotation.Nonnull private String tokenId; - - public static final String JSON_PROPERTY_AMOUNT = "amount"; - @jakarta.annotation.Nullable private String amount; - - public CollectionBurnRequestDto() {} - - @JsonCreator - public CollectionBurnRequestDto( - @JsonProperty(value = JSON_PROPERTY_VAULT_ACCOUNT_ID, required = true) - String vaultAccountId, - @JsonProperty(value = JSON_PROPERTY_TOKEN_ID, required = true) String tokenId) { - this.vaultAccountId = vaultAccountId; - this.tokenId = tokenId; - } - - public CollectionBurnRequestDto vaultAccountId( - @jakarta.annotation.Nonnull String vaultAccountId) { - this.vaultAccountId = vaultAccountId; - return this; - } - - /** - * The id of the vault account that initiates the burn function - * - * @return vaultAccountId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_VAULT_ACCOUNT_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getVaultAccountId() { - return vaultAccountId; - } - - @JsonProperty(JSON_PROPERTY_VAULT_ACCOUNT_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setVaultAccountId(@jakarta.annotation.Nonnull String vaultAccountId) { - this.vaultAccountId = vaultAccountId; - } - - public CollectionBurnRequestDto tokenId(@jakarta.annotation.Nonnull String tokenId) { - this.tokenId = tokenId; - return this; - } - - /** - * The token id - * - * @return tokenId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TOKEN_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getTokenId() { - return tokenId; - } - - @JsonProperty(JSON_PROPERTY_TOKEN_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTokenId(@jakarta.annotation.Nonnull String tokenId) { - this.tokenId = tokenId; - } - - public CollectionBurnRequestDto amount(@jakarta.annotation.Nullable String amount) { - this.amount = amount; - return this; - } - - /** - * For ERC721, amount is optional or should always be 1 and for ERC1155, amount should be 1 or - * greater - * - * @return amount - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_AMOUNT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getAmount() { - return amount; - } - - @JsonProperty(JSON_PROPERTY_AMOUNT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAmount(@jakarta.annotation.Nullable String amount) { - this.amount = amount; - } - - /** Return true if this CollectionBurnRequestDto object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - CollectionBurnRequestDto collectionBurnRequestDto = (CollectionBurnRequestDto) o; - return Objects.equals(this.vaultAccountId, collectionBurnRequestDto.vaultAccountId) - && Objects.equals(this.tokenId, collectionBurnRequestDto.tokenId) - && Objects.equals(this.amount, collectionBurnRequestDto.amount); - } - - @Override - public int hashCode() { - return Objects.hash(vaultAccountId, tokenId, amount); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class CollectionBurnRequestDto {\n"); - sb.append(" vaultAccountId: ").append(toIndentedString(vaultAccountId)).append("\n"); - sb.append(" tokenId: ").append(toIndentedString(tokenId)).append("\n"); - sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `vaultAccountId` to the URL query string - if (getVaultAccountId() != null) { - joiner.add( - String.format( - "%svaultAccountId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getVaultAccountId())))); - } - - // add `tokenId` to the URL query string - if (getTokenId() != null) { - joiner.add( - String.format( - "%stokenId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getTokenId())))); - } - - // add `amount` to the URL query string - if (getAmount() != null) { - joiner.add( - String.format( - "%samount%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAmount())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/CollectionBurnResponseDto.java b/src/main/java/com/fireblocks/sdk/model/CollectionBurnResponseDto.java deleted file mode 100644 index 0a244953..00000000 --- a/src/main/java/com/fireblocks/sdk/model/CollectionBurnResponseDto.java +++ /dev/null @@ -1,146 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** CollectionBurnResponseDto */ -@JsonPropertyOrder({CollectionBurnResponseDto.JSON_PROPERTY_TX_ID}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class CollectionBurnResponseDto { - public static final String JSON_PROPERTY_TX_ID = "txId"; - @jakarta.annotation.Nonnull private String txId; - - public CollectionBurnResponseDto() {} - - @JsonCreator - public CollectionBurnResponseDto( - @JsonProperty(value = JSON_PROPERTY_TX_ID, required = true) String txId) { - this.txId = txId; - } - - public CollectionBurnResponseDto txId(@jakarta.annotation.Nonnull String txId) { - this.txId = txId; - return this; - } - - /** - * Transaction Id for the burn operation - * - * @return txId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TX_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getTxId() { - return txId; - } - - @JsonProperty(JSON_PROPERTY_TX_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTxId(@jakarta.annotation.Nonnull String txId) { - this.txId = txId; - } - - /** Return true if this CollectionBurnResponseDto object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - CollectionBurnResponseDto collectionBurnResponseDto = (CollectionBurnResponseDto) o; - return Objects.equals(this.txId, collectionBurnResponseDto.txId); - } - - @Override - public int hashCode() { - return Objects.hash(txId); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class CollectionBurnResponseDto {\n"); - sb.append(" txId: ").append(toIndentedString(txId)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `txId` to the URL query string - if (getTxId() != null) { - joiner.add( - String.format( - "%stxId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getTxId())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/CollectionDeployRequestDto.java b/src/main/java/com/fireblocks/sdk/model/CollectionDeployRequestDto.java deleted file mode 100644 index c5882039..00000000 --- a/src/main/java/com/fireblocks/sdk/model/CollectionDeployRequestDto.java +++ /dev/null @@ -1,397 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** CollectionDeployRequestDto */ -@JsonPropertyOrder({ - CollectionDeployRequestDto.JSON_PROPERTY_BASE_ASSET_ID, - CollectionDeployRequestDto.JSON_PROPERTY_VAULT_ACCOUNT_ID, - CollectionDeployRequestDto.JSON_PROPERTY_TYPE, - CollectionDeployRequestDto.JSON_PROPERTY_NAME, - CollectionDeployRequestDto.JSON_PROPERTY_SYMBOL, - CollectionDeployRequestDto.JSON_PROPERTY_ADMIN_ADDRESS, - CollectionDeployRequestDto.JSON_PROPERTY_DISPLAY_NAME -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class CollectionDeployRequestDto { - public static final String JSON_PROPERTY_BASE_ASSET_ID = "baseAssetId"; - @jakarta.annotation.Nonnull private String baseAssetId; - - public static final String JSON_PROPERTY_VAULT_ACCOUNT_ID = "vaultAccountId"; - @jakarta.annotation.Nonnull private String vaultAccountId; - - public static final String JSON_PROPERTY_TYPE = "type"; - @jakarta.annotation.Nonnull private CollectionType type; - - public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nonnull private String name; - - public static final String JSON_PROPERTY_SYMBOL = "symbol"; - @jakarta.annotation.Nonnull private String symbol; - - public static final String JSON_PROPERTY_ADMIN_ADDRESS = "adminAddress"; - @jakarta.annotation.Nonnull private String adminAddress; - - public static final String JSON_PROPERTY_DISPLAY_NAME = "displayName"; - @jakarta.annotation.Nullable private String displayName; - - public CollectionDeployRequestDto() {} - - @JsonCreator - public CollectionDeployRequestDto( - @JsonProperty(value = JSON_PROPERTY_BASE_ASSET_ID, required = true) String baseAssetId, - @JsonProperty(value = JSON_PROPERTY_VAULT_ACCOUNT_ID, required = true) - String vaultAccountId, - @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) CollectionType type, - @JsonProperty(value = JSON_PROPERTY_NAME, required = true) String name, - @JsonProperty(value = JSON_PROPERTY_SYMBOL, required = true) String symbol, - @JsonProperty(value = JSON_PROPERTY_ADMIN_ADDRESS, required = true) - String adminAddress) { - this.baseAssetId = baseAssetId; - this.vaultAccountId = vaultAccountId; - this.type = type; - this.name = name; - this.symbol = symbol; - this.adminAddress = adminAddress; - } - - public CollectionDeployRequestDto baseAssetId(@jakarta.annotation.Nonnull String baseAssetId) { - this.baseAssetId = baseAssetId; - return this; - } - - /** - * The blockchain base assetId - * - * @return baseAssetId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BASE_ASSET_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getBaseAssetId() { - return baseAssetId; - } - - @JsonProperty(JSON_PROPERTY_BASE_ASSET_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBaseAssetId(@jakarta.annotation.Nonnull String baseAssetId) { - this.baseAssetId = baseAssetId; - } - - public CollectionDeployRequestDto vaultAccountId( - @jakarta.annotation.Nonnull String vaultAccountId) { - this.vaultAccountId = vaultAccountId; - return this; - } - - /** - * The id of the vault account that initiated the request to issue the token - * - * @return vaultAccountId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_VAULT_ACCOUNT_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getVaultAccountId() { - return vaultAccountId; - } - - @JsonProperty(JSON_PROPERTY_VAULT_ACCOUNT_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setVaultAccountId(@jakarta.annotation.Nonnull String vaultAccountId) { - this.vaultAccountId = vaultAccountId; - } - - public CollectionDeployRequestDto type(@jakarta.annotation.Nonnull CollectionType type) { - this.type = type; - return this; - } - - /** - * Get type - * - * @return type - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CollectionType getType() { - return type; - } - - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(@jakarta.annotation.Nonnull CollectionType type) { - this.type = type; - } - - public CollectionDeployRequestDto name(@jakarta.annotation.Nonnull String name) { - this.name = name; - return this; - } - - /** - * A string that represents the name of the collection - * - * @return name - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getName() { - return name; - } - - @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(@jakarta.annotation.Nonnull String name) { - this.name = name; - } - - public CollectionDeployRequestDto symbol(@jakarta.annotation.Nonnull String symbol) { - this.symbol = symbol; - return this; - } - - /** - * A string that represents the symbol of the collection - * - * @return symbol - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SYMBOL) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getSymbol() { - return symbol; - } - - @JsonProperty(JSON_PROPERTY_SYMBOL) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSymbol(@jakarta.annotation.Nonnull String symbol) { - this.symbol = symbol; - } - - public CollectionDeployRequestDto adminAddress( - @jakarta.annotation.Nonnull String adminAddress) { - this.adminAddress = adminAddress; - return this; - } - - /** - * The EVM address of the user that will be set as the admin user of the collection - * - * @return adminAddress - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ADMIN_ADDRESS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getAdminAddress() { - return adminAddress; - } - - @JsonProperty(JSON_PROPERTY_ADMIN_ADDRESS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAdminAddress(@jakarta.annotation.Nonnull String adminAddress) { - this.adminAddress = adminAddress; - } - - public CollectionDeployRequestDto displayName(@jakarta.annotation.Nullable String displayName) { - this.displayName = displayName; - return this; - } - - /** - * A string to display as a name of the collection - * - * @return displayName - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DISPLAY_NAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getDisplayName() { - return displayName; - } - - @JsonProperty(JSON_PROPERTY_DISPLAY_NAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDisplayName(@jakarta.annotation.Nullable String displayName) { - this.displayName = displayName; - } - - /** Return true if this CollectionDeployRequestDto object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - CollectionDeployRequestDto collectionDeployRequestDto = (CollectionDeployRequestDto) o; - return Objects.equals(this.baseAssetId, collectionDeployRequestDto.baseAssetId) - && Objects.equals(this.vaultAccountId, collectionDeployRequestDto.vaultAccountId) - && Objects.equals(this.type, collectionDeployRequestDto.type) - && Objects.equals(this.name, collectionDeployRequestDto.name) - && Objects.equals(this.symbol, collectionDeployRequestDto.symbol) - && Objects.equals(this.adminAddress, collectionDeployRequestDto.adminAddress) - && Objects.equals(this.displayName, collectionDeployRequestDto.displayName); - } - - @Override - public int hashCode() { - return Objects.hash( - baseAssetId, vaultAccountId, type, name, symbol, adminAddress, displayName); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class CollectionDeployRequestDto {\n"); - sb.append(" baseAssetId: ").append(toIndentedString(baseAssetId)).append("\n"); - sb.append(" vaultAccountId: ").append(toIndentedString(vaultAccountId)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" symbol: ").append(toIndentedString(symbol)).append("\n"); - sb.append(" adminAddress: ").append(toIndentedString(adminAddress)).append("\n"); - sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `baseAssetId` to the URL query string - if (getBaseAssetId() != null) { - joiner.add( - String.format( - "%sbaseAssetId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBaseAssetId())))); - } - - // add `vaultAccountId` to the URL query string - if (getVaultAccountId() != null) { - joiner.add( - String.format( - "%svaultAccountId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getVaultAccountId())))); - } - - // add `type` to the URL query string - if (getType() != null) { - joiner.add( - String.format( - "%stype%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getType())))); - } - - // add `name` to the URL query string - if (getName() != null) { - joiner.add( - String.format( - "%sname%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getName())))); - } - - // add `symbol` to the URL query string - if (getSymbol() != null) { - joiner.add( - String.format( - "%ssymbol%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getSymbol())))); - } - - // add `adminAddress` to the URL query string - if (getAdminAddress() != null) { - joiner.add( - String.format( - "%sadminAddress%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAdminAddress())))); - } - - // add `displayName` to the URL query string - if (getDisplayName() != null) { - joiner.add( - String.format( - "%sdisplayName%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getDisplayName())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/CollectionLinkDto.java b/src/main/java/com/fireblocks/sdk/model/CollectionLinkDto.java deleted file mode 100644 index e4b00ee7..00000000 --- a/src/main/java/com/fireblocks/sdk/model/CollectionLinkDto.java +++ /dev/null @@ -1,342 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** CollectionLinkDto */ -@JsonPropertyOrder({ - CollectionLinkDto.JSON_PROPERTY_ID, - CollectionLinkDto.JSON_PROPERTY_STATUS, - CollectionLinkDto.JSON_PROPERTY_TYPE, - CollectionLinkDto.JSON_PROPERTY_DISPLAY_NAME, - CollectionLinkDto.JSON_PROPERTY_COLLECTION_METADATA -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class CollectionLinkDto { - public static final String JSON_PROPERTY_ID = "id"; - @jakarta.annotation.Nonnull private String id; - - /** The collection status */ - public enum StatusEnum { - PENDING(String.valueOf("PENDING")), - - COMPLETED(String.valueOf("COMPLETED")); - - private String value; - - StatusEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static StatusEnum fromValue(String value) { - for (StatusEnum b : StatusEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_STATUS = "status"; - @jakarta.annotation.Nonnull private StatusEnum status; - - public static final String JSON_PROPERTY_TYPE = "type"; - @jakarta.annotation.Nonnull private CollectionType type; - - public static final String JSON_PROPERTY_DISPLAY_NAME = "displayName"; - @jakarta.annotation.Nullable private String displayName; - - public static final String JSON_PROPERTY_COLLECTION_METADATA = "collectionMetadata"; - @jakarta.annotation.Nullable private CollectionMetadataDto collectionMetadata; - - public CollectionLinkDto() {} - - @JsonCreator - public CollectionLinkDto( - @JsonProperty(value = JSON_PROPERTY_ID, required = true) String id, - @JsonProperty(value = JSON_PROPERTY_STATUS, required = true) StatusEnum status, - @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) CollectionType type) { - this.id = id; - this.status = status; - this.type = type; - } - - public CollectionLinkDto id(@jakarta.annotation.Nonnull String id) { - this.id = id; - return this; - } - - /** - * The collection id - * - * @return id - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getId() { - return id; - } - - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(@jakarta.annotation.Nonnull String id) { - this.id = id; - } - - public CollectionLinkDto status(@jakarta.annotation.Nonnull StatusEnum status) { - this.status = status; - return this; - } - - /** - * The collection status - * - * @return status - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_STATUS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public StatusEnum getStatus() { - return status; - } - - @JsonProperty(JSON_PROPERTY_STATUS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStatus(@jakarta.annotation.Nonnull StatusEnum status) { - this.status = status; - } - - public CollectionLinkDto type(@jakarta.annotation.Nonnull CollectionType type) { - this.type = type; - return this; - } - - /** - * Get type - * - * @return type - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CollectionType getType() { - return type; - } - - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(@jakarta.annotation.Nonnull CollectionType type) { - this.type = type; - } - - public CollectionLinkDto displayName(@jakarta.annotation.Nullable String displayName) { - this.displayName = displayName; - return this; - } - - /** - * The display name of the collection. If was not provided, would be taken from the contract - * template - * - * @return displayName - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DISPLAY_NAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getDisplayName() { - return displayName; - } - - @JsonProperty(JSON_PROPERTY_DISPLAY_NAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDisplayName(@jakarta.annotation.Nullable String displayName) { - this.displayName = displayName; - } - - public CollectionLinkDto collectionMetadata( - @jakarta.annotation.Nullable CollectionMetadataDto collectionMetadata) { - this.collectionMetadata = collectionMetadata; - return this; - } - - /** - * The collection's metadata - * - * @return collectionMetadata - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COLLECTION_METADATA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CollectionMetadataDto getCollectionMetadata() { - return collectionMetadata; - } - - @JsonProperty(JSON_PROPERTY_COLLECTION_METADATA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCollectionMetadata( - @jakarta.annotation.Nullable CollectionMetadataDto collectionMetadata) { - this.collectionMetadata = collectionMetadata; - } - - /** Return true if this CollectionLinkDto object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - CollectionLinkDto collectionLinkDto = (CollectionLinkDto) o; - return Objects.equals(this.id, collectionLinkDto.id) - && Objects.equals(this.status, collectionLinkDto.status) - && Objects.equals(this.type, collectionLinkDto.type) - && Objects.equals(this.displayName, collectionLinkDto.displayName) - && Objects.equals(this.collectionMetadata, collectionLinkDto.collectionMetadata); - } - - @Override - public int hashCode() { - return Objects.hash(id, status, type, displayName, collectionMetadata); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class CollectionLinkDto {\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n"); - sb.append(" collectionMetadata: ") - .append(toIndentedString(collectionMetadata)) - .append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `id` to the URL query string - if (getId() != null) { - joiner.add( - String.format( - "%sid%s=%s", - prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); - } - - // add `status` to the URL query string - if (getStatus() != null) { - joiner.add( - String.format( - "%sstatus%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getStatus())))); - } - - // add `type` to the URL query string - if (getType() != null) { - joiner.add( - String.format( - "%stype%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getType())))); - } - - // add `displayName` to the URL query string - if (getDisplayName() != null) { - joiner.add( - String.format( - "%sdisplayName%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getDisplayName())))); - } - - // add `collectionMetadata` to the URL query string - if (getCollectionMetadata() != null) { - joiner.add( - getCollectionMetadata() - .toUrlQueryString(prefix + "collectionMetadata" + suffix)); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/CollectionMintRequestDto.java b/src/main/java/com/fireblocks/sdk/model/CollectionMintRequestDto.java deleted file mode 100644 index ca61183a..00000000 --- a/src/main/java/com/fireblocks/sdk/model/CollectionMintRequestDto.java +++ /dev/null @@ -1,344 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** CollectionMintRequestDto */ -@JsonPropertyOrder({ - CollectionMintRequestDto.JSON_PROPERTY_VAULT_ACCOUNT_ID, - CollectionMintRequestDto.JSON_PROPERTY_TO, - CollectionMintRequestDto.JSON_PROPERTY_TOKEN_ID, - CollectionMintRequestDto.JSON_PROPERTY_AMOUNT, - CollectionMintRequestDto.JSON_PROPERTY_METADATA_U_R_I, - CollectionMintRequestDto.JSON_PROPERTY_METADATA -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class CollectionMintRequestDto { - public static final String JSON_PROPERTY_VAULT_ACCOUNT_ID = "vaultAccountId"; - @jakarta.annotation.Nonnull private String vaultAccountId; - - public static final String JSON_PROPERTY_TO = "to"; - @jakarta.annotation.Nonnull private String to; - - public static final String JSON_PROPERTY_TOKEN_ID = "tokenId"; - @jakarta.annotation.Nonnull private String tokenId; - - public static final String JSON_PROPERTY_AMOUNT = "amount"; - @jakarta.annotation.Nullable private String amount; - - public static final String JSON_PROPERTY_METADATA_U_R_I = "metadataURI"; - @jakarta.annotation.Nullable private String metadataURI; - - public static final String JSON_PROPERTY_METADATA = "metadata"; - @jakarta.annotation.Nullable private CollectionTokenMetadataDto metadata; - - public CollectionMintRequestDto() {} - - @JsonCreator - public CollectionMintRequestDto( - @JsonProperty(value = JSON_PROPERTY_VAULT_ACCOUNT_ID, required = true) - String vaultAccountId, - @JsonProperty(value = JSON_PROPERTY_TO, required = true) String to, - @JsonProperty(value = JSON_PROPERTY_TOKEN_ID, required = true) String tokenId) { - this.vaultAccountId = vaultAccountId; - this.to = to; - this.tokenId = tokenId; - } - - public CollectionMintRequestDto vaultAccountId( - @jakarta.annotation.Nonnull String vaultAccountId) { - this.vaultAccountId = vaultAccountId; - return this; - } - - /** - * The id of the vault account that initiates the mint function. - * - * @return vaultAccountId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_VAULT_ACCOUNT_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getVaultAccountId() { - return vaultAccountId; - } - - @JsonProperty(JSON_PROPERTY_VAULT_ACCOUNT_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setVaultAccountId(@jakarta.annotation.Nonnull String vaultAccountId) { - this.vaultAccountId = vaultAccountId; - } - - public CollectionMintRequestDto to(@jakarta.annotation.Nonnull String to) { - this.to = to; - return this; - } - - /** - * The EVM address to mint to - * - * @return to - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TO) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getTo() { - return to; - } - - @JsonProperty(JSON_PROPERTY_TO) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTo(@jakarta.annotation.Nonnull String to) { - this.to = to; - } - - public CollectionMintRequestDto tokenId(@jakarta.annotation.Nonnull String tokenId) { - this.tokenId = tokenId; - return this; - } - - /** - * The token id, recommended to have numerical format and in sequential order - * - * @return tokenId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TOKEN_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getTokenId() { - return tokenId; - } - - @JsonProperty(JSON_PROPERTY_TOKEN_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTokenId(@jakarta.annotation.Nonnull String tokenId) { - this.tokenId = tokenId; - } - - public CollectionMintRequestDto amount(@jakarta.annotation.Nullable String amount) { - this.amount = amount; - return this; - } - - /** - * For ERC721, amount is optional or should always be 1 and for ERC1155, amount should be 1 or - * greater - * - * @return amount - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_AMOUNT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getAmount() { - return amount; - } - - @JsonProperty(JSON_PROPERTY_AMOUNT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAmount(@jakarta.annotation.Nullable String amount) { - this.amount = amount; - } - - public CollectionMintRequestDto metadataURI(@jakarta.annotation.Nullable String metadataURI) { - this.metadataURI = metadataURI; - return this; - } - - /** - * URL of metadata uploaded, skip uploading to IPFS if this field is provided with any value - * - * @return metadataURI - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_METADATA_U_R_I) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getMetadataURI() { - return metadataURI; - } - - @JsonProperty(JSON_PROPERTY_METADATA_U_R_I) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMetadataURI(@jakarta.annotation.Nullable String metadataURI) { - this.metadataURI = metadataURI; - } - - public CollectionMintRequestDto metadata( - @jakarta.annotation.Nullable CollectionTokenMetadataDto metadata) { - this.metadata = metadata; - return this; - } - - /** - * Metadata to upload - * - * @return metadata - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_METADATA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CollectionTokenMetadataDto getMetadata() { - return metadata; - } - - @JsonProperty(JSON_PROPERTY_METADATA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMetadata(@jakarta.annotation.Nullable CollectionTokenMetadataDto metadata) { - this.metadata = metadata; - } - - /** Return true if this CollectionMintRequestDto object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - CollectionMintRequestDto collectionMintRequestDto = (CollectionMintRequestDto) o; - return Objects.equals(this.vaultAccountId, collectionMintRequestDto.vaultAccountId) - && Objects.equals(this.to, collectionMintRequestDto.to) - && Objects.equals(this.tokenId, collectionMintRequestDto.tokenId) - && Objects.equals(this.amount, collectionMintRequestDto.amount) - && Objects.equals(this.metadataURI, collectionMintRequestDto.metadataURI) - && Objects.equals(this.metadata, collectionMintRequestDto.metadata); - } - - @Override - public int hashCode() { - return Objects.hash(vaultAccountId, to, tokenId, amount, metadataURI, metadata); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class CollectionMintRequestDto {\n"); - sb.append(" vaultAccountId: ").append(toIndentedString(vaultAccountId)).append("\n"); - sb.append(" to: ").append(toIndentedString(to)).append("\n"); - sb.append(" tokenId: ").append(toIndentedString(tokenId)).append("\n"); - sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); - sb.append(" metadataURI: ").append(toIndentedString(metadataURI)).append("\n"); - sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `vaultAccountId` to the URL query string - if (getVaultAccountId() != null) { - joiner.add( - String.format( - "%svaultAccountId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getVaultAccountId())))); - } - - // add `to` to the URL query string - if (getTo() != null) { - joiner.add( - String.format( - "%sto%s=%s", - prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getTo())))); - } - - // add `tokenId` to the URL query string - if (getTokenId() != null) { - joiner.add( - String.format( - "%stokenId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getTokenId())))); - } - - // add `amount` to the URL query string - if (getAmount() != null) { - joiner.add( - String.format( - "%samount%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAmount())))); - } - - // add `metadataURI` to the URL query string - if (getMetadataURI() != null) { - joiner.add( - String.format( - "%smetadataURI%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getMetadataURI())))); - } - - // add `metadata` to the URL query string - if (getMetadata() != null) { - joiner.add(getMetadata().toUrlQueryString(prefix + "metadata" + suffix)); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/CollectionOwnershipResponse.java b/src/main/java/com/fireblocks/sdk/model/CollectionOwnershipResponse.java index b7cc3907..cf857a28 100644 --- a/src/main/java/com/fireblocks/sdk/model/CollectionOwnershipResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/CollectionOwnershipResponse.java @@ -67,37 +67,7 @@ public enum BlockchainDescriptorEnum { XTZ_TEST(String.valueOf("XTZ_TEST")), - BASECHAIN_ETH(String.valueOf("BASECHAIN_ETH")), - - BASECHAIN_ETH_TEST3(String.valueOf("BASECHAIN_ETH_TEST3")), - - BASECHAIN_ETH_TEST5(String.valueOf("BASECHAIN_ETH_TEST5")), - - ETHERLINK(String.valueOf("ETHERLINK")), - - ETHERLINK_TEST(String.valueOf("ETHERLINK_TEST")), - - MANTLE(String.valueOf("MANTLE")), - - MANTLE_TEST(String.valueOf("MANTLE_TEST")), - - GUN_GUNZILLA(String.valueOf("GUN_GUNZILLA")), - - GUN_GUNZILLA_TEST(String.valueOf("GUN_GUNZILLA_TEST")), - - ETH_SONEIUM(String.valueOf("ETH_SONEIUM")), - - SONEIUM_MINATO_TEST(String.valueOf("SONEIUM_MINATO_TEST")), - - IOTX_IOTEX(String.valueOf("IOTX_IOTEX")), - - KLAY_KAIA(String.valueOf("KLAY_KAIA")), - - KLAY_KAIA_TEST(String.valueOf("KLAY_KAIA_TEST")), - - APECHAIN(String.valueOf("APECHAIN")), - - APECHAIN_TEST(String.valueOf("APECHAIN_TEST")); + BASECHAIN_ETH(String.valueOf("BASECHAIN_ETH")); private String value; diff --git a/src/main/java/com/fireblocks/sdk/model/CollectionTokenMetadataAttributeDto.java b/src/main/java/com/fireblocks/sdk/model/CollectionTokenMetadataAttributeDto.java deleted file mode 100644 index ce8f2622..00000000 --- a/src/main/java/com/fireblocks/sdk/model/CollectionTokenMetadataAttributeDto.java +++ /dev/null @@ -1,232 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** CollectionTokenMetadataAttributeDto */ -@JsonPropertyOrder({ - CollectionTokenMetadataAttributeDto.JSON_PROPERTY_TRAIT_TYPE, - CollectionTokenMetadataAttributeDto.JSON_PROPERTY_VALUE, - CollectionTokenMetadataAttributeDto.JSON_PROPERTY_DISPLAY_TYPE -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class CollectionTokenMetadataAttributeDto { - public static final String JSON_PROPERTY_TRAIT_TYPE = "trait_type"; - @jakarta.annotation.Nonnull private String traitType; - - public static final String JSON_PROPERTY_VALUE = "value"; - @jakarta.annotation.Nonnull private String value; - - public static final String JSON_PROPERTY_DISPLAY_TYPE = "display_type"; - @jakarta.annotation.Nullable private String displayType; - - public CollectionTokenMetadataAttributeDto() {} - - @JsonCreator - public CollectionTokenMetadataAttributeDto( - @JsonProperty(value = JSON_PROPERTY_TRAIT_TYPE, required = true) String traitType, - @JsonProperty(value = JSON_PROPERTY_VALUE, required = true) String value) { - this.traitType = traitType; - this.value = value; - } - - public CollectionTokenMetadataAttributeDto traitType( - @jakarta.annotation.Nonnull String traitType) { - this.traitType = traitType; - return this; - } - - /** - * Name of the trait - * - * @return traitType - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TRAIT_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getTraitType() { - return traitType; - } - - @JsonProperty(JSON_PROPERTY_TRAIT_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTraitType(@jakarta.annotation.Nonnull String traitType) { - this.traitType = traitType; - } - - public CollectionTokenMetadataAttributeDto value(@jakarta.annotation.Nonnull String value) { - this.value = value; - return this; - } - - /** - * Value of the trait - * - * @return value - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_VALUE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getValue() { - return value; - } - - @JsonProperty(JSON_PROPERTY_VALUE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setValue(@jakarta.annotation.Nonnull String value) { - this.value = value; - } - - public CollectionTokenMetadataAttributeDto displayType( - @jakarta.annotation.Nullable String displayType) { - this.displayType = displayType; - return this; - } - - /** - * A field indicating how you would like trait to be displayed - * - * @return displayType - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DISPLAY_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getDisplayType() { - return displayType; - } - - @JsonProperty(JSON_PROPERTY_DISPLAY_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDisplayType(@jakarta.annotation.Nullable String displayType) { - this.displayType = displayType; - } - - /** Return true if this CollectionTokenMetadataAttributeDto object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - CollectionTokenMetadataAttributeDto collectionTokenMetadataAttributeDto = - (CollectionTokenMetadataAttributeDto) o; - return Objects.equals(this.traitType, collectionTokenMetadataAttributeDto.traitType) - && Objects.equals(this.value, collectionTokenMetadataAttributeDto.value) - && Objects.equals( - this.displayType, collectionTokenMetadataAttributeDto.displayType); - } - - @Override - public int hashCode() { - return Objects.hash(traitType, value, displayType); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class CollectionTokenMetadataAttributeDto {\n"); - sb.append(" traitType: ").append(toIndentedString(traitType)).append("\n"); - sb.append(" value: ").append(toIndentedString(value)).append("\n"); - sb.append(" displayType: ").append(toIndentedString(displayType)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `trait_type` to the URL query string - if (getTraitType() != null) { - joiner.add( - String.format( - "%strait_type%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getTraitType())))); - } - - // add `value` to the URL query string - if (getValue() != null) { - joiner.add( - String.format( - "%svalue%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getValue())))); - } - - // add `display_type` to the URL query string - if (getDisplayType() != null) { - joiner.add( - String.format( - "%sdisplay_type%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getDisplayType())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/CollectionTokenMetadataDto.java b/src/main/java/com/fireblocks/sdk/model/CollectionTokenMetadataDto.java deleted file mode 100644 index df56b51f..00000000 --- a/src/main/java/com/fireblocks/sdk/model/CollectionTokenMetadataDto.java +++ /dev/null @@ -1,374 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** CollectionTokenMetadataDto */ -@JsonPropertyOrder({ - CollectionTokenMetadataDto.JSON_PROPERTY_NAME, - CollectionTokenMetadataDto.JSON_PROPERTY_DESCRIPTION, - CollectionTokenMetadataDto.JSON_PROPERTY_IMAGE, - CollectionTokenMetadataDto.JSON_PROPERTY_ANIMATION_URL, - CollectionTokenMetadataDto.JSON_PROPERTY_EXTERNAL_URL, - CollectionTokenMetadataDto.JSON_PROPERTY_ATTRIBUTES -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class CollectionTokenMetadataDto { - public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nonnull private String name; - - public static final String JSON_PROPERTY_DESCRIPTION = "description"; - @jakarta.annotation.Nonnull private String description; - - public static final String JSON_PROPERTY_IMAGE = "image"; - @jakarta.annotation.Nullable private String image; - - public static final String JSON_PROPERTY_ANIMATION_URL = "animation_url"; - @jakarta.annotation.Nullable private String animationUrl; - - public static final String JSON_PROPERTY_EXTERNAL_URL = "external_url"; - @jakarta.annotation.Nullable private String externalUrl; - - public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; - - @jakarta.annotation.Nullable - private List attributes = new ArrayList<>(); - - public CollectionTokenMetadataDto() {} - - @JsonCreator - public CollectionTokenMetadataDto( - @JsonProperty(value = JSON_PROPERTY_NAME, required = true) String name, - @JsonProperty(value = JSON_PROPERTY_DESCRIPTION, required = true) String description) { - this.name = name; - this.description = description; - } - - public CollectionTokenMetadataDto name(@jakarta.annotation.Nonnull String name) { - this.name = name; - return this; - } - - /** - * Token's name - * - * @return name - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getName() { - return name; - } - - @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(@jakarta.annotation.Nonnull String name) { - this.name = name; - } - - public CollectionTokenMetadataDto description(@jakarta.annotation.Nonnull String description) { - this.description = description; - return this; - } - - /** - * Token's description - * - * @return description - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DESCRIPTION) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getDescription() { - return description; - } - - @JsonProperty(JSON_PROPERTY_DESCRIPTION) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDescription(@jakarta.annotation.Nonnull String description) { - this.description = description; - } - - public CollectionTokenMetadataDto image(@jakarta.annotation.Nullable String image) { - this.image = image; - return this; - } - - /** - * Token's image URL - * - * @return image - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_IMAGE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getImage() { - return image; - } - - @JsonProperty(JSON_PROPERTY_IMAGE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setImage(@jakarta.annotation.Nullable String image) { - this.image = image; - } - - public CollectionTokenMetadataDto animationUrl( - @jakarta.annotation.Nullable String animationUrl) { - this.animationUrl = animationUrl; - return this; - } - - /** - * Token's animation URL - * - * @return animationUrl - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ANIMATION_URL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getAnimationUrl() { - return animationUrl; - } - - @JsonProperty(JSON_PROPERTY_ANIMATION_URL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAnimationUrl(@jakarta.annotation.Nullable String animationUrl) { - this.animationUrl = animationUrl; - } - - public CollectionTokenMetadataDto externalUrl(@jakarta.annotation.Nullable String externalUrl) { - this.externalUrl = externalUrl; - return this; - } - - /** - * Token's external URL - * - * @return externalUrl - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EXTERNAL_URL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getExternalUrl() { - return externalUrl; - } - - @JsonProperty(JSON_PROPERTY_EXTERNAL_URL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setExternalUrl(@jakarta.annotation.Nullable String externalUrl) { - this.externalUrl = externalUrl; - } - - public CollectionTokenMetadataDto attributes( - @jakarta.annotation.Nullable List attributes) { - this.attributes = attributes; - return this; - } - - public CollectionTokenMetadataDto addAttributesItem( - CollectionTokenMetadataAttributeDto attributesItem) { - if (this.attributes == null) { - this.attributes = new ArrayList<>(); - } - this.attributes.add(attributesItem); - return this; - } - - /** - * Token's metadata attributes - * - * @return attributes - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ATTRIBUTES) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getAttributes() { - return attributes; - } - - @JsonProperty(JSON_PROPERTY_ATTRIBUTES) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAttributes( - @jakarta.annotation.Nullable List attributes) { - this.attributes = attributes; - } - - /** Return true if this CollectionTokenMetadataDto object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - CollectionTokenMetadataDto collectionTokenMetadataDto = (CollectionTokenMetadataDto) o; - return Objects.equals(this.name, collectionTokenMetadataDto.name) - && Objects.equals(this.description, collectionTokenMetadataDto.description) - && Objects.equals(this.image, collectionTokenMetadataDto.image) - && Objects.equals(this.animationUrl, collectionTokenMetadataDto.animationUrl) - && Objects.equals(this.externalUrl, collectionTokenMetadataDto.externalUrl) - && Objects.equals(this.attributes, collectionTokenMetadataDto.attributes); - } - - @Override - public int hashCode() { - return Objects.hash(name, description, image, animationUrl, externalUrl, attributes); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class CollectionTokenMetadataDto {\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" description: ").append(toIndentedString(description)).append("\n"); - sb.append(" image: ").append(toIndentedString(image)).append("\n"); - sb.append(" animationUrl: ").append(toIndentedString(animationUrl)).append("\n"); - sb.append(" externalUrl: ").append(toIndentedString(externalUrl)).append("\n"); - sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `name` to the URL query string - if (getName() != null) { - joiner.add( - String.format( - "%sname%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getName())))); - } - - // add `description` to the URL query string - if (getDescription() != null) { - joiner.add( - String.format( - "%sdescription%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getDescription())))); - } - - // add `image` to the URL query string - if (getImage() != null) { - joiner.add( - String.format( - "%simage%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getImage())))); - } - - // add `animation_url` to the URL query string - if (getAnimationUrl() != null) { - joiner.add( - String.format( - "%sanimation_url%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAnimationUrl())))); - } - - // add `external_url` to the URL query string - if (getExternalUrl() != null) { - joiner.add( - String.format( - "%sexternal_url%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getExternalUrl())))); - } - - // add `attributes` to the URL query string - if (getAttributes() != null) { - for (int i = 0; i < getAttributes().size(); i++) { - if (getAttributes().get(i) != null) { - joiner.add( - getAttributes() - .get(i) - .toUrlQueryString( - String.format( - "%sattributes%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/CollectionType.java b/src/main/java/com/fireblocks/sdk/model/CollectionType.java deleted file mode 100644 index fb92340c..00000000 --- a/src/main/java/com/fireblocks/sdk/model/CollectionType.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - -/** The type of collection */ -public enum CollectionType { - NON_FUNGIBLE_TOKEN("NON_FUNGIBLE_TOKEN"), - - SEMI_FUNGIBLE_TOKEN("SEMI_FUNGIBLE_TOKEN"); - - private String value; - - CollectionType(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static CollectionType fromValue(String value) { - for (CollectionType b : CollectionType.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - if (prefix == null) { - prefix = ""; - } - - return String.format("%s=%s", prefix, this.toString()); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/CommittedQuoteType.java b/src/main/java/com/fireblocks/sdk/model/CommittedQuoteType.java deleted file mode 100644 index b4acda06..00000000 --- a/src/main/java/com/fireblocks/sdk/model/CommittedQuoteType.java +++ /dev/null @@ -1,223 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fireblocks.sdk.ApiClient; -import java.time.OffsetDateTime; -import java.util.Objects; -import java.util.StringJoiner; - -/** CommittedQuoteType */ -@JsonPropertyOrder({ - CommittedQuoteType.JSON_PROPERTY_TYPE, - CommittedQuoteType.JSON_PROPERTY_EXPIRES_AT -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class CommittedQuoteType { - /** Indicates this is a committed quote */ - public enum TypeEnum { - COMMITTED(String.valueOf("COMMITTED")); - - private String value; - - TypeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static TypeEnum fromValue(String value) { - for (TypeEnum b : TypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_TYPE = "type"; - @jakarta.annotation.Nonnull private TypeEnum type; - - public static final String JSON_PROPERTY_EXPIRES_AT = "expiresAt"; - @jakarta.annotation.Nonnull private OffsetDateTime expiresAt; - - public CommittedQuoteType() {} - - @JsonCreator - public CommittedQuoteType( - @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) TypeEnum type, - @JsonProperty(value = JSON_PROPERTY_EXPIRES_AT, required = true) - OffsetDateTime expiresAt) { - this.type = type; - this.expiresAt = expiresAt; - } - - public CommittedQuoteType type(@jakarta.annotation.Nonnull TypeEnum type) { - this.type = type; - return this; - } - - /** - * Indicates this is a committed quote - * - * @return type - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { - return type; - } - - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(@jakarta.annotation.Nonnull TypeEnum type) { - this.type = type; - } - - public CommittedQuoteType expiresAt(@jakarta.annotation.Nonnull OffsetDateTime expiresAt) { - this.expiresAt = expiresAt; - return this; - } - - /** - * ISO 8601 timestamp of the expiration time of the quote. - * - * @return expiresAt - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_EXPIRES_AT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public OffsetDateTime getExpiresAt() { - return expiresAt; - } - - @JsonProperty(JSON_PROPERTY_EXPIRES_AT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setExpiresAt(@jakarta.annotation.Nonnull OffsetDateTime expiresAt) { - this.expiresAt = expiresAt; - } - - /** Return true if this CommittedQuoteType object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - CommittedQuoteType committedQuoteType = (CommittedQuoteType) o; - return Objects.equals(this.type, committedQuoteType.type) - && Objects.equals(this.expiresAt, committedQuoteType.expiresAt); - } - - @Override - public int hashCode() { - return Objects.hash(type, expiresAt); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class CommittedQuoteType {\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" expiresAt: ").append(toIndentedString(expiresAt)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `type` to the URL query string - if (getType() != null) { - joiner.add( - String.format( - "%stype%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getType())))); - } - - // add `expiresAt` to the URL query string - if (getExpiresAt() != null) { - joiner.add( - String.format( - "%sexpiresAt%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getExpiresAt())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/ComplianceResult.java b/src/main/java/com/fireblocks/sdk/model/ComplianceResult.java new file mode 100644 index 00000000..9be63a8a --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/ComplianceResult.java @@ -0,0 +1,463 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.fireblocks.sdk.model; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fireblocks.sdk.ApiClient; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.StringJoiner; + +/** The result of the Compliance AML/Travel Rule screening. */ +@JsonPropertyOrder({ + ComplianceResult.JSON_PROPERTY_AML, + ComplianceResult.JSON_PROPERTY_TR, + ComplianceResult.JSON_PROPERTY_AML_LIST, + ComplianceResult.JSON_PROPERTY_STATUS, + ComplianceResult.JSON_PROPERTY_AML_REGISTRATION +}) +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") +public class ComplianceResult { + public static final String JSON_PROPERTY_AML = "aml"; + @jakarta.annotation.Nullable private List aml; + + public static final String JSON_PROPERTY_TR = "tr"; + @jakarta.annotation.Nullable private List tr; + + public static final String JSON_PROPERTY_AML_LIST = "amlList"; + @jakarta.annotation.Nullable private List amlList; + + /** Status of compliance result screening. */ + public enum StatusEnum { + STARTED(String.valueOf("Started")), + + AML_STARTED(String.valueOf("AMLStarted")), + + AML_COMPLETED(String.valueOf("AMLCompleted")), + + AML_FAILED(String.valueOf("AMLFailed")), + + AMLIN_BACKGROUND(String.valueOf("AMLInBackground")), + + TR_STARTED(String.valueOf("TRStarted")), + + TR_COMPLETED(String.valueOf("TRCompleted")), + + TR_FAILED(String.valueOf("TRFailed")), + + COMPLETED(String.valueOf("Completed")), + + REGISTRATION_STARTED(String.valueOf("RegistrationStarted")), + + AML_REGISTRATION_STARTED(String.valueOf("AMLRegistrationStarted")), + + AML_REGISTRATION_COMPLETED(String.valueOf("AMLRegistrationCompleted")), + + TR_UPDATE_STARTED(String.valueOf("TRUpdateStarted")), + + TR_UPDATE_COMPLETED(String.valueOf("TRUpdateCompleted")), + + UPDATE_COMPLETED(String.valueOf("UpdateCompleted")), + + INCOMING_STARTED(String.valueOf("IncomingStarted")), + + AML_INCOMING_STARTED(String.valueOf("AMLIncomingStarted")), + + AML_INCOMING_COMPLETED(String.valueOf("AMLIncomingCompleted")), + + AML_INCOMING_FAILED(String.valueOf("AMLIncomingFailed")), + + AML_INCOMING_IN_BACKGROUND(String.valueOf("AMLIncomingInBackground")), + + TR_INCOMING_STARTED(String.valueOf("TRIncomingStarted")), + + TR_INCOMING_COMPLETED(String.valueOf("TRIncomingCompleted")), + + TR_INCOMING_FAILED(String.valueOf("TRIncomingFailed")), + + INCOMING_COMPLETED(String.valueOf("IncomingCompleted")); + + private String value; + + StatusEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static StatusEnum fromValue(String value) { + for (StatusEnum b : StatusEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_STATUS = "status"; + @jakarta.annotation.Nullable private StatusEnum status; + + public static final String JSON_PROPERTY_AML_REGISTRATION = "amlRegistration"; + @jakarta.annotation.Nullable private List amlRegistration; + + public ComplianceResult() {} + + public ComplianceResult aml(@jakarta.annotation.Nullable List aml) { + this.aml = aml; + return this; + } + + public ComplianceResult addAmlItem(ComplianceScreeningResult amlItem) { + if (this.aml == null) { + this.aml = new ArrayList<>(); + } + this.aml.add(amlItem); + return this; + } + + /** + * The end result of the AML screening. + * + * @return aml + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_AML) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getAml() { + return aml; + } + + @JsonProperty(JSON_PROPERTY_AML) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setAml(@jakarta.annotation.Nullable List aml) { + this.aml = aml; + } + + public ComplianceResult tr(@jakarta.annotation.Nullable List tr) { + this.tr = tr; + return this; + } + + public ComplianceResult addTrItem(ComplianceScreeningResult trItem) { + if (this.tr == null) { + this.tr = new ArrayList<>(); + } + this.tr.add(trItem); + return this; + } + + /** + * The result of the Travel Rule screening. + * + * @return tr + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_TR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getTr() { + return tr; + } + + @JsonProperty(JSON_PROPERTY_TR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setTr(@jakarta.annotation.Nullable List tr) { + this.tr = tr; + } + + public ComplianceResult amlList( + @jakarta.annotation.Nullable List amlList) { + this.amlList = amlList; + return this; + } + + public ComplianceResult addAmlListItem(ComplianceScreeningResult amlListItem) { + if (this.amlList == null) { + this.amlList = new ArrayList<>(); + } + this.amlList.add(amlListItem); + return this; + } + + /** + * The list of all results of the AML screening. + * + * @return amlList + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_AML_LIST) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getAmlList() { + return amlList; + } + + @JsonProperty(JSON_PROPERTY_AML_LIST) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setAmlList(@jakarta.annotation.Nullable List amlList) { + this.amlList = amlList; + } + + public ComplianceResult status(@jakarta.annotation.Nullable StatusEnum status) { + this.status = status; + return this; + } + + /** + * Status of compliance result screening. + * + * @return status + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public StatusEnum getStatus() { + return status; + } + + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setStatus(@jakarta.annotation.Nullable StatusEnum status) { + this.status = status; + } + + public ComplianceResult amlRegistration( + @jakarta.annotation.Nullable List amlRegistration) { + this.amlRegistration = amlRegistration; + return this; + } + + public ComplianceResult addAmlRegistrationItem(AmlRegistrationResult amlRegistrationItem) { + if (this.amlRegistration == null) { + this.amlRegistration = new ArrayList<>(); + } + this.amlRegistration.add(amlRegistrationItem); + return this; + } + + /** + * The results of the AML address registration. + * + * @return amlRegistration + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_AML_REGISTRATION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getAmlRegistration() { + return amlRegistration; + } + + @JsonProperty(JSON_PROPERTY_AML_REGISTRATION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setAmlRegistration( + @jakarta.annotation.Nullable List amlRegistration) { + this.amlRegistration = amlRegistration; + } + + /** Return true if this ComplianceResult object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ComplianceResult complianceResult = (ComplianceResult) o; + return Objects.equals(this.aml, complianceResult.aml) + && Objects.equals(this.tr, complianceResult.tr) + && Objects.equals(this.amlList, complianceResult.amlList) + && Objects.equals(this.status, complianceResult.status) + && Objects.equals(this.amlRegistration, complianceResult.amlRegistration); + } + + @Override + public int hashCode() { + return Objects.hash(aml, tr, amlList, status, amlRegistration); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ComplianceResult {\n"); + sb.append(" aml: ").append(toIndentedString(aml)).append("\n"); + sb.append(" tr: ").append(toIndentedString(tr)).append("\n"); + sb.append(" amlList: ").append(toIndentedString(amlList)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" amlRegistration: ").append(toIndentedString(amlRegistration)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first + * line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `aml` to the URL query string + if (getAml() != null) { + for (int i = 0; i < getAml().size(); i++) { + if (getAml().get(i) != null) { + joiner.add( + getAml().get(i) + .toUrlQueryString( + String.format( + "%saml%s%s", + prefix, + suffix, + "".equals(suffix) + ? "" + : String.format( + "%s%d%s", + containerPrefix, + i, + containerSuffix)))); + } + } + } + + // add `tr` to the URL query string + if (getTr() != null) { + for (int i = 0; i < getTr().size(); i++) { + if (getTr().get(i) != null) { + joiner.add( + getTr().get(i) + .toUrlQueryString( + String.format( + "%str%s%s", + prefix, + suffix, + "".equals(suffix) + ? "" + : String.format( + "%s%d%s", + containerPrefix, + i, + containerSuffix)))); + } + } + } + + // add `amlList` to the URL query string + if (getAmlList() != null) { + for (int i = 0; i < getAmlList().size(); i++) { + if (getAmlList().get(i) != null) { + joiner.add( + getAmlList() + .get(i) + .toUrlQueryString( + String.format( + "%samlList%s%s", + prefix, + suffix, + "".equals(suffix) + ? "" + : String.format( + "%s%d%s", + containerPrefix, + i, + containerSuffix)))); + } + } + } + + // add `status` to the URL query string + if (getStatus() != null) { + joiner.add( + String.format( + "%sstatus%s=%s", + prefix, + suffix, + ApiClient.urlEncode(ApiClient.valueToString(getStatus())))); + } + + // add `amlRegistration` to the URL query string + if (getAmlRegistration() != null) { + for (int i = 0; i < getAmlRegistration().size(); i++) { + if (getAmlRegistration().get(i) != null) { + joiner.add( + getAmlRegistration() + .get(i) + .toUrlQueryString( + String.format( + "%samlRegistration%s%s", + prefix, + suffix, + "".equals(suffix) + ? "" + : String.format( + "%s%d%s", + containerPrefix, + i, + containerSuffix)))); + } + } + } + + return joiner.toString(); + } +} diff --git a/src/main/java/com/fireblocks/sdk/model/ComplianceResultFullPayload.java b/src/main/java/com/fireblocks/sdk/model/ComplianceResultFullPayload.java deleted file mode 100644 index 82f6cc9f..00000000 --- a/src/main/java/com/fireblocks/sdk/model/ComplianceResultFullPayload.java +++ /dev/null @@ -1,316 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** The result of the Compliance AML/Travel Rule screening. */ -@JsonPropertyOrder({ - ComplianceResultFullPayload.JSON_PROPERTY_AML, - ComplianceResultFullPayload.JSON_PROPERTY_TR, - ComplianceResultFullPayload.JSON_PROPERTY_AML_LIST, - ComplianceResultFullPayload.JSON_PROPERTY_STATUS, - ComplianceResultFullPayload.JSON_PROPERTY_AML_REGISTRATION -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class ComplianceResultFullPayload { - public static final String JSON_PROPERTY_AML = "aml"; - @jakarta.annotation.Nullable private ComplianceScreeningResultFullPayload aml; - - public static final String JSON_PROPERTY_TR = "tr"; - @jakarta.annotation.Nullable private ComplianceScreeningResultFullPayload tr; - - public static final String JSON_PROPERTY_AML_LIST = "amlList"; - - @jakarta.annotation.Nullable - private List amlList = new ArrayList<>(); - - public static final String JSON_PROPERTY_STATUS = "status"; - @jakarta.annotation.Nullable private ComplianceResultStatusesEnum status; - - public static final String JSON_PROPERTY_AML_REGISTRATION = "amlRegistration"; - @jakarta.annotation.Nullable private AmlRegistrationResultFullPayload amlRegistration; - - public ComplianceResultFullPayload() {} - - public ComplianceResultFullPayload aml( - @jakarta.annotation.Nullable ComplianceScreeningResultFullPayload aml) { - this.aml = aml; - return this; - } - - /** - * Get aml - * - * @return aml - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_AML) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public ComplianceScreeningResultFullPayload getAml() { - return aml; - } - - @JsonProperty(JSON_PROPERTY_AML) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAml(@jakarta.annotation.Nullable ComplianceScreeningResultFullPayload aml) { - this.aml = aml; - } - - public ComplianceResultFullPayload tr( - @jakarta.annotation.Nullable ComplianceScreeningResultFullPayload tr) { - this.tr = tr; - return this; - } - - /** - * Get tr - * - * @return tr - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TR) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public ComplianceScreeningResultFullPayload getTr() { - return tr; - } - - @JsonProperty(JSON_PROPERTY_TR) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTr(@jakarta.annotation.Nullable ComplianceScreeningResultFullPayload tr) { - this.tr = tr; - } - - public ComplianceResultFullPayload amlList( - @jakarta.annotation.Nullable List amlList) { - this.amlList = amlList; - return this; - } - - public ComplianceResultFullPayload addAmlListItem( - ComplianceScreeningResultFullPayload amlListItem) { - if (this.amlList == null) { - this.amlList = new ArrayList<>(); - } - this.amlList.add(amlListItem); - return this; - } - - /** - * The list of all results of the AML screening. - * - * @return amlList - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_AML_LIST) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getAmlList() { - return amlList; - } - - @JsonProperty(JSON_PROPERTY_AML_LIST) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAmlList( - @jakarta.annotation.Nullable List amlList) { - this.amlList = amlList; - } - - public ComplianceResultFullPayload status( - @jakarta.annotation.Nullable ComplianceResultStatusesEnum status) { - this.status = status; - return this; - } - - /** - * Get status - * - * @return status - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public ComplianceResultStatusesEnum getStatus() { - return status; - } - - @JsonProperty(JSON_PROPERTY_STATUS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStatus(@jakarta.annotation.Nullable ComplianceResultStatusesEnum status) { - this.status = status; - } - - public ComplianceResultFullPayload amlRegistration( - @jakarta.annotation.Nullable AmlRegistrationResultFullPayload amlRegistration) { - this.amlRegistration = amlRegistration; - return this; - } - - /** - * Get amlRegistration - * - * @return amlRegistration - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_AML_REGISTRATION) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public AmlRegistrationResultFullPayload getAmlRegistration() { - return amlRegistration; - } - - @JsonProperty(JSON_PROPERTY_AML_REGISTRATION) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAmlRegistration( - @jakarta.annotation.Nullable AmlRegistrationResultFullPayload amlRegistration) { - this.amlRegistration = amlRegistration; - } - - /** Return true if this ComplianceResultFullPayload object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ComplianceResultFullPayload complianceResultFullPayload = (ComplianceResultFullPayload) o; - return Objects.equals(this.aml, complianceResultFullPayload.aml) - && Objects.equals(this.tr, complianceResultFullPayload.tr) - && Objects.equals(this.amlList, complianceResultFullPayload.amlList) - && Objects.equals(this.status, complianceResultFullPayload.status) - && Objects.equals( - this.amlRegistration, complianceResultFullPayload.amlRegistration); - } - - @Override - public int hashCode() { - return Objects.hash(aml, tr, amlList, status, amlRegistration); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ComplianceResultFullPayload {\n"); - sb.append(" aml: ").append(toIndentedString(aml)).append("\n"); - sb.append(" tr: ").append(toIndentedString(tr)).append("\n"); - sb.append(" amlList: ").append(toIndentedString(amlList)).append("\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append(" amlRegistration: ").append(toIndentedString(amlRegistration)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `aml` to the URL query string - if (getAml() != null) { - joiner.add(getAml().toUrlQueryString(prefix + "aml" + suffix)); - } - - // add `tr` to the URL query string - if (getTr() != null) { - joiner.add(getTr().toUrlQueryString(prefix + "tr" + suffix)); - } - - // add `amlList` to the URL query string - if (getAmlList() != null) { - for (int i = 0; i < getAmlList().size(); i++) { - if (getAmlList().get(i) != null) { - joiner.add( - getAmlList() - .get(i) - .toUrlQueryString( - String.format( - "%samlList%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } - } - - // add `status` to the URL query string - if (getStatus() != null) { - joiner.add( - String.format( - "%sstatus%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getStatus())))); - } - - // add `amlRegistration` to the URL query string - if (getAmlRegistration() != null) { - joiner.add(getAmlRegistration().toUrlQueryString(prefix + "amlRegistration" + suffix)); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/ComplianceResultStatusesEnum.java b/src/main/java/com/fireblocks/sdk/model/ComplianceResultStatusesEnum.java deleted file mode 100644 index 35ef1de6..00000000 --- a/src/main/java/com/fireblocks/sdk/model/ComplianceResultStatusesEnum.java +++ /dev/null @@ -1,106 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - -/** Status of compliance result screening. */ -public enum ComplianceResultStatusesEnum { - STARTED("Started"), - - NETWORK_CONNECTION_ADDRESS_RESOLVE("NetworkConnectionAddressResolve"), - - SCREENING_PREPARE("ScreeningPrepare"), - - AML_STARTED("AMLStarted"), - - AML_COMPLETED("AMLCompleted"), - - AML_FAILED("AMLFailed"), - - AMLIN_BACKGROUND("AMLInBackground"), - - TR_PRECONDITION_CHECKS("TRPreconditionChecks"), - - TR_STARTED("TRStarted"), - - TR_COMPLETED("TRCompleted"), - - TR_FAILED("TRFailed"), - - COMPLETED("Completed"), - - INCOMING_STARTED("IncomingStarted"), - - INCOMING_SCREENING_PREPARE("IncomingScreeningPrepare"), - - INCOMING_WAIT_FOR_FIRST_CONFIRMATION("IncomingWaitForFirstConfirmation"), - - AML_INCOMING_STARTED("AMLIncomingStarted"), - - AML_INCOMING_COMPLETED("AMLIncomingCompleted"), - - AML_INCOMING_FAILED("AMLIncomingFailed"), - - AML_INCOMING_IN_BACKGROUND("AMLIncomingInBackground"), - - TR_INCOMING_STARTED("TRIncomingStarted"), - - TR_INCOMING_COMPLETED("TRIncomingCompleted"), - - TR_INCOMING_FAILED("TRIncomingFailed"), - - INCOMING_COMPLETED("IncomingCompleted"); - - private String value; - - ComplianceResultStatusesEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static ComplianceResultStatusesEnum fromValue(String value) { - for (ComplianceResultStatusesEnum b : ComplianceResultStatusesEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - if (prefix == null) { - prefix = ""; - } - - return String.format("%s=%s", prefix, this.toString()); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/ComplianceResults.java b/src/main/java/com/fireblocks/sdk/model/ComplianceResults.java deleted file mode 100644 index ef3fd0c3..00000000 --- a/src/main/java/com/fireblocks/sdk/model/ComplianceResults.java +++ /dev/null @@ -1,311 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** The result of the Compliance AML/Travel Rule screening. */ -@JsonPropertyOrder({ - ComplianceResults.JSON_PROPERTY_AML, - ComplianceResults.JSON_PROPERTY_TR, - ComplianceResults.JSON_PROPERTY_AML_LIST, - ComplianceResults.JSON_PROPERTY_STATUS, - ComplianceResults.JSON_PROPERTY_AML_REGISTRATION -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class ComplianceResults { - public static final String JSON_PROPERTY_AML = "aml"; - @jakarta.annotation.Nullable private ComplianceScreeningResult aml; - - public static final String JSON_PROPERTY_TR = "tr"; - @jakarta.annotation.Nullable private ComplianceScreeningResult tr; - - public static final String JSON_PROPERTY_AML_LIST = "amlList"; - - @jakarta.annotation.Nullable - private List amlList = new ArrayList<>(); - - public static final String JSON_PROPERTY_STATUS = "status"; - @jakarta.annotation.Nullable private ComplianceResultStatusesEnum status; - - public static final String JSON_PROPERTY_AML_REGISTRATION = "amlRegistration"; - @jakarta.annotation.Nullable private AmlRegistrationResult amlRegistration; - - public ComplianceResults() {} - - public ComplianceResults aml(@jakarta.annotation.Nullable ComplianceScreeningResult aml) { - this.aml = aml; - return this; - } - - /** - * Get aml - * - * @return aml - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_AML) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public ComplianceScreeningResult getAml() { - return aml; - } - - @JsonProperty(JSON_PROPERTY_AML) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAml(@jakarta.annotation.Nullable ComplianceScreeningResult aml) { - this.aml = aml; - } - - public ComplianceResults tr(@jakarta.annotation.Nullable ComplianceScreeningResult tr) { - this.tr = tr; - return this; - } - - /** - * Get tr - * - * @return tr - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TR) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public ComplianceScreeningResult getTr() { - return tr; - } - - @JsonProperty(JSON_PROPERTY_TR) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTr(@jakarta.annotation.Nullable ComplianceScreeningResult tr) { - this.tr = tr; - } - - public ComplianceResults amlList( - @jakarta.annotation.Nullable List amlList) { - this.amlList = amlList; - return this; - } - - public ComplianceResults addAmlListItem(ComplianceScreeningResult amlListItem) { - if (this.amlList == null) { - this.amlList = new ArrayList<>(); - } - this.amlList.add(amlListItem); - return this; - } - - /** - * The list of all results of the AML screening. - * - * @return amlList - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_AML_LIST) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getAmlList() { - return amlList; - } - - @JsonProperty(JSON_PROPERTY_AML_LIST) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAmlList(@jakarta.annotation.Nullable List amlList) { - this.amlList = amlList; - } - - public ComplianceResults status( - @jakarta.annotation.Nullable ComplianceResultStatusesEnum status) { - this.status = status; - return this; - } - - /** - * Get status - * - * @return status - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public ComplianceResultStatusesEnum getStatus() { - return status; - } - - @JsonProperty(JSON_PROPERTY_STATUS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStatus(@jakarta.annotation.Nullable ComplianceResultStatusesEnum status) { - this.status = status; - } - - public ComplianceResults amlRegistration( - @jakarta.annotation.Nullable AmlRegistrationResult amlRegistration) { - this.amlRegistration = amlRegistration; - return this; - } - - /** - * Get amlRegistration - * - * @return amlRegistration - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_AML_REGISTRATION) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public AmlRegistrationResult getAmlRegistration() { - return amlRegistration; - } - - @JsonProperty(JSON_PROPERTY_AML_REGISTRATION) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAmlRegistration( - @jakarta.annotation.Nullable AmlRegistrationResult amlRegistration) { - this.amlRegistration = amlRegistration; - } - - /** Return true if this ComplianceResults object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ComplianceResults complianceResults = (ComplianceResults) o; - return Objects.equals(this.aml, complianceResults.aml) - && Objects.equals(this.tr, complianceResults.tr) - && Objects.equals(this.amlList, complianceResults.amlList) - && Objects.equals(this.status, complianceResults.status) - && Objects.equals(this.amlRegistration, complianceResults.amlRegistration); - } - - @Override - public int hashCode() { - return Objects.hash(aml, tr, amlList, status, amlRegistration); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ComplianceResults {\n"); - sb.append(" aml: ").append(toIndentedString(aml)).append("\n"); - sb.append(" tr: ").append(toIndentedString(tr)).append("\n"); - sb.append(" amlList: ").append(toIndentedString(amlList)).append("\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append(" amlRegistration: ").append(toIndentedString(amlRegistration)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `aml` to the URL query string - if (getAml() != null) { - joiner.add(getAml().toUrlQueryString(prefix + "aml" + suffix)); - } - - // add `tr` to the URL query string - if (getTr() != null) { - joiner.add(getTr().toUrlQueryString(prefix + "tr" + suffix)); - } - - // add `amlList` to the URL query string - if (getAmlList() != null) { - for (int i = 0; i < getAmlList().size(); i++) { - if (getAmlList().get(i) != null) { - joiner.add( - getAmlList() - .get(i) - .toUrlQueryString( - String.format( - "%samlList%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } - } - - // add `status` to the URL query string - if (getStatus() != null) { - joiner.add( - String.format( - "%sstatus%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getStatus())))); - } - - // add `amlRegistration` to the URL query string - if (getAmlRegistration() != null) { - joiner.add(getAmlRegistration().toUrlQueryString(prefix + "amlRegistration" + suffix)); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/ComplianceScreeningResultFullPayload.java b/src/main/java/com/fireblocks/sdk/model/ComplianceScreeningResultFullPayload.java deleted file mode 100644 index f7c2ff2f..00000000 --- a/src/main/java/com/fireblocks/sdk/model/ComplianceScreeningResultFullPayload.java +++ /dev/null @@ -1,349 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fireblocks.sdk.ApiClient; -import java.math.BigDecimal; -import java.util.Objects; -import java.util.StringJoiner; - -/** The result of the Travel Rule screening. */ -@JsonPropertyOrder({ - ComplianceScreeningResultFullPayload.JSON_PROPERTY_PROVIDER, - ComplianceScreeningResultFullPayload.JSON_PROPERTY_PAYLOAD, - ComplianceScreeningResultFullPayload.JSON_PROPERTY_BYPASS_REASON, - ComplianceScreeningResultFullPayload.JSON_PROPERTY_SCREENING_STATUS, - ComplianceScreeningResultFullPayload.JSON_PROPERTY_TIMESTAMP -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class ComplianceScreeningResultFullPayload { - public static final String JSON_PROPERTY_PROVIDER = "provider"; - @jakarta.annotation.Nullable private String provider; - - public static final String JSON_PROPERTY_PAYLOAD = "payload"; - @jakarta.annotation.Nullable private Object payload; - - public static final String JSON_PROPERTY_BYPASS_REASON = "bypassReason"; - @jakarta.annotation.Nullable private String bypassReason; - - /** Gets or Sets screeningStatus */ - public enum ScreeningStatusEnum { - COMPLETED(String.valueOf("COMPLETED")), - - PENDING(String.valueOf("PENDING")), - - BYPASSED(String.valueOf("BYPASSED")), - - FAILED(String.valueOf("FAILED")), - - FROZEN(String.valueOf("FROZEN")); - - private String value; - - ScreeningStatusEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static ScreeningStatusEnum fromValue(String value) { - for (ScreeningStatusEnum b : ScreeningStatusEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_SCREENING_STATUS = "screeningStatus"; - @jakarta.annotation.Nullable private ScreeningStatusEnum screeningStatus; - - public static final String JSON_PROPERTY_TIMESTAMP = "timestamp"; - @jakarta.annotation.Nullable private BigDecimal timestamp; - - public ComplianceScreeningResultFullPayload() {} - - public ComplianceScreeningResultFullPayload provider( - @jakarta.annotation.Nullable String provider) { - this.provider = provider; - return this; - } - - /** - * Get provider - * - * @return provider - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROVIDER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getProvider() { - return provider; - } - - @JsonProperty(JSON_PROPERTY_PROVIDER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setProvider(@jakarta.annotation.Nullable String provider) { - this.provider = provider; - } - - public ComplianceScreeningResultFullPayload payload( - @jakarta.annotation.Nullable Object payload) { - this.payload = payload; - return this; - } - - /** - * 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. - * - * @return payload - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PAYLOAD) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Object getPayload() { - return payload; - } - - @JsonProperty(JSON_PROPERTY_PAYLOAD) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPayload(@jakarta.annotation.Nullable Object payload) { - this.payload = payload; - } - - public ComplianceScreeningResultFullPayload bypassReason( - @jakarta.annotation.Nullable String bypassReason) { - this.bypassReason = bypassReason; - return this; - } - - /** - * Get bypassReason - * - * @return bypassReason - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BYPASS_REASON) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getBypassReason() { - return bypassReason; - } - - @JsonProperty(JSON_PROPERTY_BYPASS_REASON) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBypassReason(@jakarta.annotation.Nullable String bypassReason) { - this.bypassReason = bypassReason; - } - - public ComplianceScreeningResultFullPayload screeningStatus( - @jakarta.annotation.Nullable ScreeningStatusEnum screeningStatus) { - this.screeningStatus = screeningStatus; - return this; - } - - /** - * Get screeningStatus - * - * @return screeningStatus - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SCREENING_STATUS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public ScreeningStatusEnum getScreeningStatus() { - return screeningStatus; - } - - @JsonProperty(JSON_PROPERTY_SCREENING_STATUS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setScreeningStatus( - @jakarta.annotation.Nullable ScreeningStatusEnum screeningStatus) { - this.screeningStatus = screeningStatus; - } - - public ComplianceScreeningResultFullPayload timestamp( - @jakarta.annotation.Nullable BigDecimal timestamp) { - this.timestamp = timestamp; - return this; - } - - /** - * Get timestamp - * - * @return timestamp - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TIMESTAMP) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public BigDecimal getTimestamp() { - return timestamp; - } - - @JsonProperty(JSON_PROPERTY_TIMESTAMP) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTimestamp(@jakarta.annotation.Nullable BigDecimal timestamp) { - this.timestamp = timestamp; - } - - /** Return true if this ComplianceScreeningResultFullPayload object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ComplianceScreeningResultFullPayload complianceScreeningResultFullPayload = - (ComplianceScreeningResultFullPayload) o; - return Objects.equals(this.provider, complianceScreeningResultFullPayload.provider) - && Objects.equals(this.payload, complianceScreeningResultFullPayload.payload) - && Objects.equals( - this.bypassReason, complianceScreeningResultFullPayload.bypassReason) - && Objects.equals( - this.screeningStatus, complianceScreeningResultFullPayload.screeningStatus) - && Objects.equals(this.timestamp, complianceScreeningResultFullPayload.timestamp); - } - - @Override - public int hashCode() { - return Objects.hash(provider, payload, bypassReason, screeningStatus, timestamp); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ComplianceScreeningResultFullPayload {\n"); - sb.append(" provider: ").append(toIndentedString(provider)).append("\n"); - sb.append(" payload: ").append(toIndentedString(payload)).append("\n"); - sb.append(" bypassReason: ").append(toIndentedString(bypassReason)).append("\n"); - sb.append(" screeningStatus: ").append(toIndentedString(screeningStatus)).append("\n"); - sb.append(" timestamp: ").append(toIndentedString(timestamp)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `provider` to the URL query string - if (getProvider() != null) { - joiner.add( - String.format( - "%sprovider%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getProvider())))); - } - - // add `payload` to the URL query string - if (getPayload() != null) { - joiner.add( - String.format( - "%spayload%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getPayload())))); - } - - // add `bypassReason` to the URL query string - if (getBypassReason() != null) { - joiner.add( - String.format( - "%sbypassReason%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBypassReason())))); - } - - // add `screeningStatus` to the URL query string - if (getScreeningStatus() != null) { - joiner.add( - String.format( - "%sscreeningStatus%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getScreeningStatus())))); - } - - // add `timestamp` to the URL query string - if (getTimestamp() != null) { - joiner.add( - String.format( - "%stimestamp%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getTimestamp())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/ConnectedAccount.java b/src/main/java/com/fireblocks/sdk/model/ConnectedAccount.java deleted file mode 100644 index fbc8fb4b..00000000 --- a/src/main/java/com/fireblocks/sdk/model/ConnectedAccount.java +++ /dev/null @@ -1,387 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** ConnectedAccount */ -@JsonPropertyOrder({ - ConnectedAccount.JSON_PROPERTY_ID, - ConnectedAccount.JSON_PROPERTY_NAME, - ConnectedAccount.JSON_PROPERTY_PROVIDER_ID, - ConnectedAccount.JSON_PROPERTY_STATUS, - ConnectedAccount.JSON_PROPERTY_TOTAL_BALANCE, - ConnectedAccount.JSON_PROPERTY_MANIFEST, - ConnectedAccount.JSON_PROPERTY_PARENT_ID -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class ConnectedAccount { - public static final String JSON_PROPERTY_ID = "id"; - @jakarta.annotation.Nonnull private String id; - - public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nonnull private String name; - - public static final String JSON_PROPERTY_PROVIDER_ID = "providerId"; - @jakarta.annotation.Nonnull private String providerId; - - public static final String JSON_PROPERTY_STATUS = "status"; - @jakarta.annotation.Nonnull private ConnectedAccountApprovalStatus status; - - public static final String JSON_PROPERTY_TOTAL_BALANCE = "totalBalance"; - @jakarta.annotation.Nonnull private ConnectedAccountTotalBalance totalBalance; - - public static final String JSON_PROPERTY_MANIFEST = "manifest"; - @jakarta.annotation.Nonnull private ConnectedAccountManifest manifest; - - public static final String JSON_PROPERTY_PARENT_ID = "parentId"; - @jakarta.annotation.Nullable private String parentId; - - public ConnectedAccount() {} - - @JsonCreator - public ConnectedAccount( - @JsonProperty(value = JSON_PROPERTY_ID, required = true) String id, - @JsonProperty(value = JSON_PROPERTY_NAME, required = true) String name, - @JsonProperty(value = JSON_PROPERTY_PROVIDER_ID, required = true) String providerId, - @JsonProperty(value = JSON_PROPERTY_STATUS, required = true) - ConnectedAccountApprovalStatus status, - @JsonProperty(value = JSON_PROPERTY_TOTAL_BALANCE, required = true) - ConnectedAccountTotalBalance totalBalance, - @JsonProperty(value = JSON_PROPERTY_MANIFEST, required = true) - ConnectedAccountManifest manifest) { - this.id = id; - this.name = name; - this.providerId = providerId; - this.status = status; - this.totalBalance = totalBalance; - this.manifest = manifest; - } - - public ConnectedAccount id(@jakarta.annotation.Nonnull String id) { - this.id = id; - return this; - } - - /** - * Unique identifier of the connected account. - * - * @return id - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getId() { - return id; - } - - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(@jakarta.annotation.Nonnull String id) { - this.id = id; - } - - public ConnectedAccount name(@jakarta.annotation.Nonnull String name) { - this.name = name; - return this; - } - - /** - * Human-readable name of the connected account. - * - * @return name - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getName() { - return name; - } - - @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(@jakarta.annotation.Nonnull String name) { - this.name = name; - } - - public ConnectedAccount providerId(@jakarta.annotation.Nonnull String providerId) { - this.providerId = providerId; - return this; - } - - /** - * The ID of the venue the account belongs to. - * - * @return providerId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PROVIDER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getProviderId() { - return providerId; - } - - @JsonProperty(JSON_PROPERTY_PROVIDER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setProviderId(@jakarta.annotation.Nonnull String providerId) { - this.providerId = providerId; - } - - public ConnectedAccount status( - @jakarta.annotation.Nonnull ConnectedAccountApprovalStatus status) { - this.status = status; - return this; - } - - /** - * Get status - * - * @return status - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_STATUS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public ConnectedAccountApprovalStatus getStatus() { - return status; - } - - @JsonProperty(JSON_PROPERTY_STATUS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStatus(@jakarta.annotation.Nonnull ConnectedAccountApprovalStatus status) { - this.status = status; - } - - public ConnectedAccount totalBalance( - @jakarta.annotation.Nonnull ConnectedAccountTotalBalance totalBalance) { - this.totalBalance = totalBalance; - return this; - } - - /** - * Get totalBalance - * - * @return totalBalance - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TOTAL_BALANCE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public ConnectedAccountTotalBalance getTotalBalance() { - return totalBalance; - } - - @JsonProperty(JSON_PROPERTY_TOTAL_BALANCE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTotalBalance( - @jakarta.annotation.Nonnull ConnectedAccountTotalBalance totalBalance) { - this.totalBalance = totalBalance; - } - - public ConnectedAccount manifest( - @jakarta.annotation.Nonnull ConnectedAccountManifest manifest) { - this.manifest = manifest; - return this; - } - - /** - * Get manifest - * - * @return manifest - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_MANIFEST) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public ConnectedAccountManifest getManifest() { - return manifest; - } - - @JsonProperty(JSON_PROPERTY_MANIFEST) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setManifest(@jakarta.annotation.Nonnull ConnectedAccountManifest manifest) { - this.manifest = manifest; - } - - public ConnectedAccount parentId(@jakarta.annotation.Nullable String parentId) { - this.parentId = parentId; - return this; - } - - /** - * The ID of the parent main account, if this is a sub account. - * - * @return parentId - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PARENT_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getParentId() { - return parentId; - } - - @JsonProperty(JSON_PROPERTY_PARENT_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setParentId(@jakarta.annotation.Nullable String parentId) { - this.parentId = parentId; - } - - /** Return true if this ConnectedAccount object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ConnectedAccount connectedAccount = (ConnectedAccount) o; - return Objects.equals(this.id, connectedAccount.id) - && Objects.equals(this.name, connectedAccount.name) - && Objects.equals(this.providerId, connectedAccount.providerId) - && Objects.equals(this.status, connectedAccount.status) - && Objects.equals(this.totalBalance, connectedAccount.totalBalance) - && Objects.equals(this.manifest, connectedAccount.manifest) - && Objects.equals(this.parentId, connectedAccount.parentId); - } - - @Override - public int hashCode() { - return Objects.hash(id, name, providerId, status, totalBalance, manifest, parentId); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ConnectedAccount {\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" providerId: ").append(toIndentedString(providerId)).append("\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append(" totalBalance: ").append(toIndentedString(totalBalance)).append("\n"); - sb.append(" manifest: ").append(toIndentedString(manifest)).append("\n"); - sb.append(" parentId: ").append(toIndentedString(parentId)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `id` to the URL query string - if (getId() != null) { - joiner.add( - String.format( - "%sid%s=%s", - prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); - } - - // add `name` to the URL query string - if (getName() != null) { - joiner.add( - String.format( - "%sname%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getName())))); - } - - // add `providerId` to the URL query string - if (getProviderId() != null) { - joiner.add( - String.format( - "%sproviderId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getProviderId())))); - } - - // add `status` to the URL query string - if (getStatus() != null) { - joiner.add( - String.format( - "%sstatus%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getStatus())))); - } - - // add `totalBalance` to the URL query string - if (getTotalBalance() != null) { - joiner.add(getTotalBalance().toUrlQueryString(prefix + "totalBalance" + suffix)); - } - - // add `manifest` to the URL query string - if (getManifest() != null) { - joiner.add(getManifest().toUrlQueryString(prefix + "manifest" + suffix)); - } - - // add `parentId` to the URL query string - if (getParentId() != null) { - joiner.add( - String.format( - "%sparentId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getParentId())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/ConnectedAccountApprovalStatus.java b/src/main/java/com/fireblocks/sdk/model/ConnectedAccountApprovalStatus.java deleted file mode 100644 index 77243cc3..00000000 --- a/src/main/java/com/fireblocks/sdk/model/ConnectedAccountApprovalStatus.java +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - -/** Gets or Sets ConnectedAccountApprovalStatus */ -public enum ConnectedAccountApprovalStatus { - WAITING_FOR_APPROVAL("WAITING_FOR_APPROVAL"), - - APPROVED("APPROVED"), - - REJECTED("REJECTED"), - - CANCELLED("CANCELLED"), - - FAILED("FAILED"); - - private String value; - - ConnectedAccountApprovalStatus(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static ConnectedAccountApprovalStatus fromValue(String value) { - for (ConnectedAccountApprovalStatus b : ConnectedAccountApprovalStatus.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - if (prefix == null) { - prefix = ""; - } - - return String.format("%s=%s", prefix, this.toString()); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/ConnectedAccountAssetType.java b/src/main/java/com/fireblocks/sdk/model/ConnectedAccountAssetType.java deleted file mode 100644 index e3fb244f..00000000 --- a/src/main/java/com/fireblocks/sdk/model/ConnectedAccountAssetType.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - -/** Gets or Sets ConnectedAccountAssetType */ -public enum ConnectedAccountAssetType { - DIGITAL("DIGITAL"), - - FIAT("FIAT"); - - private String value; - - ConnectedAccountAssetType(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static ConnectedAccountAssetType fromValue(String value) { - for (ConnectedAccountAssetType b : ConnectedAccountAssetType.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - if (prefix == null) { - prefix = ""; - } - - return String.format("%s=%s", prefix, this.toString()); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/ConnectedAccountBalances.java b/src/main/java/com/fireblocks/sdk/model/ConnectedAccountBalances.java deleted file mode 100644 index a8d90641..00000000 --- a/src/main/java/com/fireblocks/sdk/model/ConnectedAccountBalances.java +++ /dev/null @@ -1,397 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** ConnectedAccountBalances */ -@JsonPropertyOrder({ - ConnectedAccountBalances.JSON_PROPERTY_ASSET_ID, - ConnectedAccountBalances.JSON_PROPERTY_AVAILABLE_AMOUNT, - ConnectedAccountBalances.JSON_PROPERTY_TOTAL_AMOUNT, - ConnectedAccountBalances.JSON_PROPERTY_LOCKED_AMOUNT, - ConnectedAccountBalances.JSON_PROPERTY_CREDIT_AMOUNT, - ConnectedAccountBalances.JSON_PROPERTY_BALANCE_TYPE, - ConnectedAccountBalances.JSON_PROPERTY_BALANCE_NAME -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class ConnectedAccountBalances { - public static final String JSON_PROPERTY_ASSET_ID = "assetId"; - @jakarta.annotation.Nonnull private String assetId; - - public static final String JSON_PROPERTY_AVAILABLE_AMOUNT = "availableAmount"; - @jakarta.annotation.Nonnull private String availableAmount; - - public static final String JSON_PROPERTY_TOTAL_AMOUNT = "totalAmount"; - @jakarta.annotation.Nonnull private String totalAmount; - - public static final String JSON_PROPERTY_LOCKED_AMOUNT = "lockedAmount"; - @jakarta.annotation.Nullable private String lockedAmount; - - public static final String JSON_PROPERTY_CREDIT_AMOUNT = "creditAmount"; - @jakarta.annotation.Nullable private String creditAmount; - - public static final String JSON_PROPERTY_BALANCE_TYPE = "balanceType"; - @jakarta.annotation.Nonnull private String balanceType; - - public static final String JSON_PROPERTY_BALANCE_NAME = "balanceName"; - @jakarta.annotation.Nullable private String balanceName; - - public ConnectedAccountBalances() {} - - @JsonCreator - public ConnectedAccountBalances( - @JsonProperty(value = JSON_PROPERTY_ASSET_ID, required = true) String assetId, - @JsonProperty(value = JSON_PROPERTY_AVAILABLE_AMOUNT, required = true) - String availableAmount, - @JsonProperty(value = JSON_PROPERTY_TOTAL_AMOUNT, required = true) String totalAmount, - @JsonProperty(value = JSON_PROPERTY_BALANCE_TYPE, required = true) String balanceType) { - this.assetId = assetId; - this.availableAmount = availableAmount; - this.totalAmount = totalAmount; - this.balanceType = balanceType; - } - - public ConnectedAccountBalances assetId(@jakarta.annotation.Nonnull String assetId) { - this.assetId = assetId; - return this; - } - - /** - * Asset identifier (e.g., BTC, ETH, USDC). - * - * @return assetId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ASSET_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getAssetId() { - return assetId; - } - - @JsonProperty(JSON_PROPERTY_ASSET_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAssetId(@jakarta.annotation.Nonnull String assetId) { - this.assetId = assetId; - } - - public ConnectedAccountBalances availableAmount( - @jakarta.annotation.Nonnull String availableAmount) { - this.availableAmount = availableAmount; - return this; - } - - /** - * Amount available for use. - * - * @return availableAmount - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_AVAILABLE_AMOUNT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getAvailableAmount() { - return availableAmount; - } - - @JsonProperty(JSON_PROPERTY_AVAILABLE_AMOUNT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAvailableAmount(@jakarta.annotation.Nonnull String availableAmount) { - this.availableAmount = availableAmount; - } - - public ConnectedAccountBalances totalAmount(@jakarta.annotation.Nonnull String totalAmount) { - this.totalAmount = totalAmount; - return this; - } - - /** - * Total amount including locked/held balances. - * - * @return totalAmount - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TOTAL_AMOUNT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getTotalAmount() { - return totalAmount; - } - - @JsonProperty(JSON_PROPERTY_TOTAL_AMOUNT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTotalAmount(@jakarta.annotation.Nonnull String totalAmount) { - this.totalAmount = totalAmount; - } - - public ConnectedAccountBalances lockedAmount(@jakarta.annotation.Nullable String lockedAmount) { - this.lockedAmount = lockedAmount; - return this; - } - - /** - * Amount currently locked/held. - * - * @return lockedAmount - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_LOCKED_AMOUNT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getLockedAmount() { - return lockedAmount; - } - - @JsonProperty(JSON_PROPERTY_LOCKED_AMOUNT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLockedAmount(@jakarta.annotation.Nullable String lockedAmount) { - this.lockedAmount = lockedAmount; - } - - public ConnectedAccountBalances creditAmount(@jakarta.annotation.Nullable String creditAmount) { - this.creditAmount = creditAmount; - return this; - } - - /** - * Credit line amount, if applicable (0 when not used). - * - * @return creditAmount - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CREDIT_AMOUNT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getCreditAmount() { - return creditAmount; - } - - @JsonProperty(JSON_PROPERTY_CREDIT_AMOUNT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCreditAmount(@jakarta.annotation.Nullable String creditAmount) { - this.creditAmount = creditAmount; - } - - public ConnectedAccountBalances balanceType(@jakarta.annotation.Nonnull String balanceType) { - this.balanceType = balanceType; - return this; - } - - /** - * Wallet type/category (e.g., SPOT, MARGIN, FUNDING). - * - * @return balanceType - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BALANCE_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getBalanceType() { - return balanceType; - } - - @JsonProperty(JSON_PROPERTY_BALANCE_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBalanceType(@jakarta.annotation.Nonnull String balanceType) { - this.balanceType = balanceType; - } - - public ConnectedAccountBalances balanceName(@jakarta.annotation.Nullable String balanceName) { - this.balanceName = balanceName; - return this; - } - - /** - * Display name for the balance type (at the provider) - * - * @return balanceName - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BALANCE_NAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getBalanceName() { - return balanceName; - } - - @JsonProperty(JSON_PROPERTY_BALANCE_NAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBalanceName(@jakarta.annotation.Nullable String balanceName) { - this.balanceName = balanceName; - } - - /** Return true if this ConnectedAccountBalances object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ConnectedAccountBalances connectedAccountBalances = (ConnectedAccountBalances) o; - return Objects.equals(this.assetId, connectedAccountBalances.assetId) - && Objects.equals(this.availableAmount, connectedAccountBalances.availableAmount) - && Objects.equals(this.totalAmount, connectedAccountBalances.totalAmount) - && Objects.equals(this.lockedAmount, connectedAccountBalances.lockedAmount) - && Objects.equals(this.creditAmount, connectedAccountBalances.creditAmount) - && Objects.equals(this.balanceType, connectedAccountBalances.balanceType) - && Objects.equals(this.balanceName, connectedAccountBalances.balanceName); - } - - @Override - public int hashCode() { - return Objects.hash( - assetId, - availableAmount, - totalAmount, - lockedAmount, - creditAmount, - balanceType, - balanceName); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ConnectedAccountBalances {\n"); - sb.append(" assetId: ").append(toIndentedString(assetId)).append("\n"); - sb.append(" availableAmount: ").append(toIndentedString(availableAmount)).append("\n"); - sb.append(" totalAmount: ").append(toIndentedString(totalAmount)).append("\n"); - sb.append(" lockedAmount: ").append(toIndentedString(lockedAmount)).append("\n"); - sb.append(" creditAmount: ").append(toIndentedString(creditAmount)).append("\n"); - sb.append(" balanceType: ").append(toIndentedString(balanceType)).append("\n"); - sb.append(" balanceName: ").append(toIndentedString(balanceName)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `assetId` to the URL query string - if (getAssetId() != null) { - joiner.add( - String.format( - "%sassetId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAssetId())))); - } - - // add `availableAmount` to the URL query string - if (getAvailableAmount() != null) { - joiner.add( - String.format( - "%savailableAmount%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAvailableAmount())))); - } - - // add `totalAmount` to the URL query string - if (getTotalAmount() != null) { - joiner.add( - String.format( - "%stotalAmount%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getTotalAmount())))); - } - - // add `lockedAmount` to the URL query string - if (getLockedAmount() != null) { - joiner.add( - String.format( - "%slockedAmount%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getLockedAmount())))); - } - - // add `creditAmount` to the URL query string - if (getCreditAmount() != null) { - joiner.add( - String.format( - "%screditAmount%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getCreditAmount())))); - } - - // add `balanceType` to the URL query string - if (getBalanceType() != null) { - joiner.add( - String.format( - "%sbalanceType%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBalanceType())))); - } - - // add `balanceName` to the URL query string - if (getBalanceName() != null) { - joiner.add( - String.format( - "%sbalanceName%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBalanceName())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/ConnectedAccountBalancesResponse.java b/src/main/java/com/fireblocks/sdk/model/ConnectedAccountBalancesResponse.java deleted file mode 100644 index 7e7faefa..00000000 --- a/src/main/java/com/fireblocks/sdk/model/ConnectedAccountBalancesResponse.java +++ /dev/null @@ -1,253 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** ConnectedAccountBalancesResponse */ -@JsonPropertyOrder({ - ConnectedAccountBalancesResponse.JSON_PROPERTY_DATA, - ConnectedAccountBalancesResponse.JSON_PROPERTY_TOTAL, - ConnectedAccountBalancesResponse.JSON_PROPERTY_NEXT -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class ConnectedAccountBalancesResponse { - public static final String JSON_PROPERTY_DATA = "data"; - @jakarta.annotation.Nonnull private List data = new ArrayList<>(); - - public static final String JSON_PROPERTY_TOTAL = "total"; - @jakarta.annotation.Nullable private Integer total; - - public static final String JSON_PROPERTY_NEXT = "next"; - @jakarta.annotation.Nullable private String next; - - public ConnectedAccountBalancesResponse() {} - - @JsonCreator - public ConnectedAccountBalancesResponse( - @JsonProperty(value = JSON_PROPERTY_DATA, required = true) - List data) { - this.data = data; - } - - public ConnectedAccountBalancesResponse data( - @jakarta.annotation.Nonnull List data) { - this.data = data; - return this; - } - - public ConnectedAccountBalancesResponse addDataItem(ConnectedAccountBalances dataItem) { - if (this.data == null) { - this.data = new ArrayList<>(); - } - this.data.add(dataItem); - return this; - } - - /** - * Flat balance row for a single asset within an account and wallet type. One row per (assetId, - * balanceType). - * - * @return data - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getData() { - return data; - } - - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setData(@jakarta.annotation.Nonnull List data) { - this.data = data; - } - - public ConnectedAccountBalancesResponse total(@jakarta.annotation.Nullable Integer total) { - this.total = total; - return this; - } - - /** - * Total number of balance rows by query. - * - * @return total - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TOTAL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getTotal() { - return total; - } - - @JsonProperty(JSON_PROPERTY_TOTAL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTotal(@jakarta.annotation.Nullable Integer total) { - this.total = total; - } - - public ConnectedAccountBalancesResponse next(@jakarta.annotation.Nullable String next) { - this.next = next; - return this; - } - - /** - * A cursor for the next page of results, if available. - * - * @return next - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NEXT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getNext() { - return next; - } - - @JsonProperty(JSON_PROPERTY_NEXT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNext(@jakarta.annotation.Nullable String next) { - this.next = next; - } - - /** Return true if this ConnectedAccountBalancesResponse object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ConnectedAccountBalancesResponse connectedAccountBalancesResponse = - (ConnectedAccountBalancesResponse) o; - return Objects.equals(this.data, connectedAccountBalancesResponse.data) - && Objects.equals(this.total, connectedAccountBalancesResponse.total) - && Objects.equals(this.next, connectedAccountBalancesResponse.next); - } - - @Override - public int hashCode() { - return Objects.hash(data, total, next); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ConnectedAccountBalancesResponse {\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" total: ").append(toIndentedString(total)).append("\n"); - sb.append(" next: ").append(toIndentedString(next)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `data` to the URL query string - if (getData() != null) { - for (int i = 0; i < getData().size(); i++) { - if (getData().get(i) != null) { - joiner.add( - getData() - .get(i) - .toUrlQueryString( - String.format( - "%sdata%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } - } - - // add `total` to the URL query string - if (getTotal() != null) { - joiner.add( - String.format( - "%stotal%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getTotal())))); - } - - // add `next` to the URL query string - if (getNext() != null) { - joiner.add( - String.format( - "%snext%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getNext())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/ConnectedAccountCapability.java b/src/main/java/com/fireblocks/sdk/model/ConnectedAccountCapability.java deleted file mode 100644 index dee3e902..00000000 --- a/src/main/java/com/fireblocks/sdk/model/ConnectedAccountCapability.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - -/** Gets or Sets ConnectedAccountCapability */ -public enum ConnectedAccountCapability { - WITHDRAWALS("WITHDRAWALS"), - - DEPOSITS("DEPOSITS"), - - TRADING("TRADING"); - - private String value; - - ConnectedAccountCapability(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static ConnectedAccountCapability fromValue(String value) { - for (ConnectedAccountCapability b : ConnectedAccountCapability.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - if (prefix == null) { - prefix = ""; - } - - return String.format("%s=%s", prefix, this.toString()); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/ConnectedAccountManifest.java b/src/main/java/com/fireblocks/sdk/model/ConnectedAccountManifest.java deleted file mode 100644 index fec9e6b0..00000000 --- a/src/main/java/com/fireblocks/sdk/model/ConnectedAccountManifest.java +++ /dev/null @@ -1,239 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** ConnectedAccountManifest */ -@JsonPropertyOrder({ - ConnectedAccountManifest.JSON_PROPERTY_ASSET_TYPES, - ConnectedAccountManifest.JSON_PROPERTY_CAPABILITIES -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class ConnectedAccountManifest { - public static final String JSON_PROPERTY_ASSET_TYPES = "assetTypes"; - - @jakarta.annotation.Nonnull - private List assetTypes = new ArrayList<>(); - - public static final String JSON_PROPERTY_CAPABILITIES = "capabilities"; - - @jakarta.annotation.Nonnull - private List capabilities = new ArrayList<>(); - - public ConnectedAccountManifest() {} - - @JsonCreator - public ConnectedAccountManifest( - @JsonProperty(value = JSON_PROPERTY_ASSET_TYPES, required = true) - List assetTypes, - @JsonProperty(value = JSON_PROPERTY_CAPABILITIES, required = true) - List capabilities) { - this.assetTypes = assetTypes; - this.capabilities = capabilities; - } - - public ConnectedAccountManifest assetTypes( - @jakarta.annotation.Nonnull List assetTypes) { - this.assetTypes = assetTypes; - return this; - } - - public ConnectedAccountManifest addAssetTypesItem(ConnectedAccountAssetType assetTypesItem) { - if (this.assetTypes == null) { - this.assetTypes = new ArrayList<>(); - } - this.assetTypes.add(assetTypesItem); - return this; - } - - /** - * Asset types supported by the connected account. - * - * @return assetTypes - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ASSET_TYPES) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getAssetTypes() { - return assetTypes; - } - - @JsonProperty(JSON_PROPERTY_ASSET_TYPES) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAssetTypes( - @jakarta.annotation.Nonnull List assetTypes) { - this.assetTypes = assetTypes; - } - - public ConnectedAccountManifest capabilities( - @jakarta.annotation.Nonnull List capabilities) { - this.capabilities = capabilities; - return this; - } - - public ConnectedAccountManifest addCapabilitiesItem( - ConnectedAccountCapability capabilitiesItem) { - if (this.capabilities == null) { - this.capabilities = new ArrayList<>(); - } - this.capabilities.add(capabilitiesItem); - return this; - } - - /** - * Features supported for the connected account. Logic: - If account capabilities include ramp - * -> TRADING - If account capabilities include transfers -> DEPOSITS - If account - * capabilities include transfersBlockchain / transfersFiat / transfersPeerAccounts / - * transfersInternal -> WITHDRAWALS - * - * @return capabilities - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CAPABILITIES) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getCapabilities() { - return capabilities; - } - - @JsonProperty(JSON_PROPERTY_CAPABILITIES) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCapabilities( - @jakarta.annotation.Nonnull List capabilities) { - this.capabilities = capabilities; - } - - /** Return true if this ConnectedAccountManifest object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ConnectedAccountManifest connectedAccountManifest = (ConnectedAccountManifest) o; - return Objects.equals(this.assetTypes, connectedAccountManifest.assetTypes) - && Objects.equals(this.capabilities, connectedAccountManifest.capabilities); - } - - @Override - public int hashCode() { - return Objects.hash(assetTypes, capabilities); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ConnectedAccountManifest {\n"); - sb.append(" assetTypes: ").append(toIndentedString(assetTypes)).append("\n"); - sb.append(" capabilities: ").append(toIndentedString(capabilities)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `assetTypes` to the URL query string - if (getAssetTypes() != null) { - for (int i = 0; i < getAssetTypes().size(); i++) { - if (getAssetTypes().get(i) != null) { - joiner.add( - String.format( - "%sassetTypes%s%s=%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode( - ApiClient.valueToString(getAssetTypes().get(i))))); - } - } - } - - // add `capabilities` to the URL query string - if (getCapabilities() != null) { - for (int i = 0; i < getCapabilities().size(); i++) { - if (getCapabilities().get(i) != null) { - joiner.add( - String.format( - "%scapabilities%s%s=%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode( - ApiClient.valueToString(getCapabilities().get(i))))); - } - } - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/ConnectedAccountRateResponse.java b/src/main/java/com/fireblocks/sdk/model/ConnectedAccountRateResponse.java deleted file mode 100644 index 418fedf8..00000000 --- a/src/main/java/com/fireblocks/sdk/model/ConnectedAccountRateResponse.java +++ /dev/null @@ -1,275 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** ConnectedAccountRateResponse */ -@JsonPropertyOrder({ - ConnectedAccountRateResponse.JSON_PROPERTY_ACCOUNT_ID, - ConnectedAccountRateResponse.JSON_PROPERTY_BASE_ASSET_ID, - ConnectedAccountRateResponse.JSON_PROPERTY_QUOTE_ASSET_ID, - ConnectedAccountRateResponse.JSON_PROPERTY_RATE -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class ConnectedAccountRateResponse { - public static final String JSON_PROPERTY_ACCOUNT_ID = "accountId"; - @jakarta.annotation.Nonnull private String accountId; - - public static final String JSON_PROPERTY_BASE_ASSET_ID = "baseAssetId"; - @jakarta.annotation.Nonnull private String baseAssetId; - - public static final String JSON_PROPERTY_QUOTE_ASSET_ID = "quoteAssetId"; - @jakarta.annotation.Nonnull private String quoteAssetId; - - public static final String JSON_PROPERTY_RATE = "rate"; - @jakarta.annotation.Nonnull private String rate; - - public ConnectedAccountRateResponse() {} - - @JsonCreator - public ConnectedAccountRateResponse( - @JsonProperty(value = JSON_PROPERTY_ACCOUNT_ID, required = true) String accountId, - @JsonProperty(value = JSON_PROPERTY_BASE_ASSET_ID, required = true) String baseAssetId, - @JsonProperty(value = JSON_PROPERTY_QUOTE_ASSET_ID, required = true) - String quoteAssetId, - @JsonProperty(value = JSON_PROPERTY_RATE, required = true) String rate) { - this.accountId = accountId; - this.baseAssetId = baseAssetId; - this.quoteAssetId = quoteAssetId; - this.rate = rate; - } - - public ConnectedAccountRateResponse accountId(@jakarta.annotation.Nonnull String accountId) { - this.accountId = accountId; - return this; - } - - /** - * The ID of the account that generated the quote. - * - * @return accountId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getAccountId() { - return accountId; - } - - @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAccountId(@jakarta.annotation.Nonnull String accountId) { - this.accountId = accountId; - } - - public ConnectedAccountRateResponse baseAssetId( - @jakarta.annotation.Nonnull String baseAssetId) { - this.baseAssetId = baseAssetId; - return this; - } - - /** - * The source asset identifier - * - * @return baseAssetId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BASE_ASSET_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getBaseAssetId() { - return baseAssetId; - } - - @JsonProperty(JSON_PROPERTY_BASE_ASSET_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBaseAssetId(@jakarta.annotation.Nonnull String baseAssetId) { - this.baseAssetId = baseAssetId; - } - - public ConnectedAccountRateResponse quoteAssetId( - @jakarta.annotation.Nonnull String quoteAssetId) { - this.quoteAssetId = quoteAssetId; - return this; - } - - /** - * The target asset identifier - * - * @return quoteAssetId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_QUOTE_ASSET_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getQuoteAssetId() { - return quoteAssetId; - } - - @JsonProperty(JSON_PROPERTY_QUOTE_ASSET_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setQuoteAssetId(@jakarta.annotation.Nonnull String quoteAssetId) { - this.quoteAssetId = quoteAssetId; - } - - public ConnectedAccountRateResponse rate(@jakarta.annotation.Nonnull String rate) { - this.rate = rate; - return this; - } - - /** - * The exchange rate value - * - * @return rate - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_RATE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getRate() { - return rate; - } - - @JsonProperty(JSON_PROPERTY_RATE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setRate(@jakarta.annotation.Nonnull String rate) { - this.rate = rate; - } - - /** Return true if this ConnectedAccountRateResponse object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ConnectedAccountRateResponse connectedAccountRateResponse = - (ConnectedAccountRateResponse) o; - return Objects.equals(this.accountId, connectedAccountRateResponse.accountId) - && Objects.equals(this.baseAssetId, connectedAccountRateResponse.baseAssetId) - && Objects.equals(this.quoteAssetId, connectedAccountRateResponse.quoteAssetId) - && Objects.equals(this.rate, connectedAccountRateResponse.rate); - } - - @Override - public int hashCode() { - return Objects.hash(accountId, baseAssetId, quoteAssetId, rate); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ConnectedAccountRateResponse {\n"); - sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n"); - sb.append(" baseAssetId: ").append(toIndentedString(baseAssetId)).append("\n"); - sb.append(" quoteAssetId: ").append(toIndentedString(quoteAssetId)).append("\n"); - sb.append(" rate: ").append(toIndentedString(rate)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `accountId` to the URL query string - if (getAccountId() != null) { - joiner.add( - String.format( - "%saccountId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAccountId())))); - } - - // add `baseAssetId` to the URL query string - if (getBaseAssetId() != null) { - joiner.add( - String.format( - "%sbaseAssetId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBaseAssetId())))); - } - - // add `quoteAssetId` to the URL query string - if (getQuoteAssetId() != null) { - joiner.add( - String.format( - "%squoteAssetId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getQuoteAssetId())))); - } - - // add `rate` to the URL query string - if (getRate() != null) { - joiner.add( - String.format( - "%srate%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getRate())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/ConnectedAccountTotalBalance.java b/src/main/java/com/fireblocks/sdk/model/ConnectedAccountTotalBalance.java deleted file mode 100644 index dd88a792..00000000 --- a/src/main/java/com/fireblocks/sdk/model/ConnectedAccountTotalBalance.java +++ /dev/null @@ -1,246 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** ConnectedAccountTotalBalance */ -@JsonPropertyOrder({ - ConnectedAccountTotalBalance.JSON_PROPERTY_AMOUNT, - ConnectedAccountTotalBalance.JSON_PROPERTY_DENOMINATED_ASSET_ID, - ConnectedAccountTotalBalance.JSON_PROPERTY_HAS_FULL_ASSET_COVERAGE -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class ConnectedAccountTotalBalance { - public static final String JSON_PROPERTY_AMOUNT = "amount"; - @jakarta.annotation.Nonnull private String amount; - - public static final String JSON_PROPERTY_DENOMINATED_ASSET_ID = "denominatedAssetId"; - @jakarta.annotation.Nonnull private String denominatedAssetId; - - public static final String JSON_PROPERTY_HAS_FULL_ASSET_COVERAGE = "hasFullAssetCoverage"; - @jakarta.annotation.Nonnull private Boolean hasFullAssetCoverage = false; - - public ConnectedAccountTotalBalance() {} - - @JsonCreator - public ConnectedAccountTotalBalance( - @JsonProperty(value = JSON_PROPERTY_AMOUNT, required = true) String amount, - @JsonProperty(value = JSON_PROPERTY_DENOMINATED_ASSET_ID, required = true) - String denominatedAssetId, - @JsonProperty(value = JSON_PROPERTY_HAS_FULL_ASSET_COVERAGE, required = true) - Boolean hasFullAssetCoverage) { - this.amount = amount; - this.denominatedAssetId = denominatedAssetId; - this.hasFullAssetCoverage = hasFullAssetCoverage; - } - - public ConnectedAccountTotalBalance amount(@jakarta.annotation.Nonnull String amount) { - this.amount = amount; - return this; - } - - /** - * The denominated currency value of the account. - * - * @return amount - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_AMOUNT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getAmount() { - return amount; - } - - @JsonProperty(JSON_PROPERTY_AMOUNT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAmount(@jakarta.annotation.Nonnull String amount) { - this.amount = amount; - } - - public ConnectedAccountTotalBalance denominatedAssetId( - @jakarta.annotation.Nonnull String denominatedAssetId) { - this.denominatedAssetId = denominatedAssetId; - return this; - } - - /** - * The asset ID of the total balance. - * - * @return denominatedAssetId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DENOMINATED_ASSET_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getDenominatedAssetId() { - return denominatedAssetId; - } - - @JsonProperty(JSON_PROPERTY_DENOMINATED_ASSET_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDenominatedAssetId(@jakarta.annotation.Nonnull String denominatedAssetId) { - this.denominatedAssetId = denominatedAssetId; - } - - public ConnectedAccountTotalBalance hasFullAssetCoverage( - @jakarta.annotation.Nonnull Boolean hasFullAssetCoverage) { - this.hasFullAssetCoverage = hasFullAssetCoverage; - return this; - } - - /** - * Indicates whether the total amount represents the complete balance of all assets in the - * account. When true, all asset balances have been successfully converted to the denominated - * currency. When false, some assets could not be included in the total due to missing exchange - * rates or non-convertible assets. - * - * @return hasFullAssetCoverage - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_HAS_FULL_ASSET_COVERAGE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Boolean getHasFullAssetCoverage() { - return hasFullAssetCoverage; - } - - @JsonProperty(JSON_PROPERTY_HAS_FULL_ASSET_COVERAGE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setHasFullAssetCoverage(@jakarta.annotation.Nonnull Boolean hasFullAssetCoverage) { - this.hasFullAssetCoverage = hasFullAssetCoverage; - } - - /** Return true if this ConnectedAccountTotalBalance object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ConnectedAccountTotalBalance connectedAccountTotalBalance = - (ConnectedAccountTotalBalance) o; - return Objects.equals(this.amount, connectedAccountTotalBalance.amount) - && Objects.equals( - this.denominatedAssetId, connectedAccountTotalBalance.denominatedAssetId) - && Objects.equals( - this.hasFullAssetCoverage, - connectedAccountTotalBalance.hasFullAssetCoverage); - } - - @Override - public int hashCode() { - return Objects.hash(amount, denominatedAssetId, hasFullAssetCoverage); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ConnectedAccountTotalBalance {\n"); - sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); - sb.append(" denominatedAssetId: ") - .append(toIndentedString(denominatedAssetId)) - .append("\n"); - sb.append(" hasFullAssetCoverage: ") - .append(toIndentedString(hasFullAssetCoverage)) - .append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `amount` to the URL query string - if (getAmount() != null) { - joiner.add( - String.format( - "%samount%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAmount())))); - } - - // add `denominatedAssetId` to the URL query string - if (getDenominatedAssetId() != null) { - joiner.add( - String.format( - "%sdenominatedAssetId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getDenominatedAssetId())))); - } - - // add `hasFullAssetCoverage` to the URL query string - if (getHasFullAssetCoverage() != null) { - joiner.add( - String.format( - "%shasFullAssetCoverage%s=%s", - prefix, - suffix, - ApiClient.urlEncode( - ApiClient.valueToString(getHasFullAssetCoverage())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/ConnectedAccountTradingPair.java b/src/main/java/com/fireblocks/sdk/model/ConnectedAccountTradingPair.java deleted file mode 100644 index 9771505b..00000000 --- a/src/main/java/com/fireblocks/sdk/model/ConnectedAccountTradingPair.java +++ /dev/null @@ -1,298 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** ConnectedAccountTradingPair */ -@JsonPropertyOrder({ - ConnectedAccountTradingPair.JSON_PROPERTY_ID, - ConnectedAccountTradingPair.JSON_PROPERTY_BASE_ASSET_ID, - ConnectedAccountTradingPair.JSON_PROPERTY_QUOTE_ASSET_ID, - ConnectedAccountTradingPair.JSON_PROPERTY_SUPPORTED_TYPES -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class ConnectedAccountTradingPair { - public static final String JSON_PROPERTY_ID = "id"; - @jakarta.annotation.Nonnull private String id; - - public static final String JSON_PROPERTY_BASE_ASSET_ID = "baseAssetId"; - @jakarta.annotation.Nonnull private String baseAssetId; - - public static final String JSON_PROPERTY_QUOTE_ASSET_ID = "quoteAssetId"; - @jakarta.annotation.Nonnull private String quoteAssetId; - - public static final String JSON_PROPERTY_SUPPORTED_TYPES = "supportedTypes"; - - @jakarta.annotation.Nonnull - private List supportedTypes = new ArrayList<>(); - - public ConnectedAccountTradingPair() {} - - @JsonCreator - public ConnectedAccountTradingPair( - @JsonProperty(value = JSON_PROPERTY_ID, required = true) String id, - @JsonProperty(value = JSON_PROPERTY_BASE_ASSET_ID, required = true) String baseAssetId, - @JsonProperty(value = JSON_PROPERTY_QUOTE_ASSET_ID, required = true) - String quoteAssetId, - @JsonProperty(value = JSON_PROPERTY_SUPPORTED_TYPES, required = true) - List supportedTypes) { - this.id = id; - this.baseAssetId = baseAssetId; - this.quoteAssetId = quoteAssetId; - this.supportedTypes = supportedTypes; - } - - public ConnectedAccountTradingPair id(@jakarta.annotation.Nonnull String id) { - this.id = id; - return this; - } - - /** - * The ID of the trading pair. - * - * @return id - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getId() { - return id; - } - - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(@jakarta.annotation.Nonnull String id) { - this.id = id; - } - - public ConnectedAccountTradingPair baseAssetId(@jakarta.annotation.Nonnull String baseAssetId) { - this.baseAssetId = baseAssetId; - return this; - } - - /** - * The Symbol of the base asset. - * - * @return baseAssetId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BASE_ASSET_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getBaseAssetId() { - return baseAssetId; - } - - @JsonProperty(JSON_PROPERTY_BASE_ASSET_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBaseAssetId(@jakarta.annotation.Nonnull String baseAssetId) { - this.baseAssetId = baseAssetId; - } - - public ConnectedAccountTradingPair quoteAssetId( - @jakarta.annotation.Nonnull String quoteAssetId) { - this.quoteAssetId = quoteAssetId; - return this; - } - - /** - * The symbol of the quote asset. - * - * @return quoteAssetId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_QUOTE_ASSET_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getQuoteAssetId() { - return quoteAssetId; - } - - @JsonProperty(JSON_PROPERTY_QUOTE_ASSET_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setQuoteAssetId(@jakarta.annotation.Nonnull String quoteAssetId) { - this.quoteAssetId = quoteAssetId; - } - - public ConnectedAccountTradingPair supportedTypes( - @jakarta.annotation.Nonnull - List supportedTypes) { - this.supportedTypes = supportedTypes; - return this; - } - - public ConnectedAccountTradingPair addSupportedTypesItem( - ConnectedAccountTradingPairSupportedType supportedTypesItem) { - if (this.supportedTypes == null) { - this.supportedTypes = new ArrayList<>(); - } - this.supportedTypes.add(supportedTypesItem); - return this; - } - - /** - * Get supportedTypes - * - * @return supportedTypes - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SUPPORTED_TYPES) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getSupportedTypes() { - return supportedTypes; - } - - @JsonProperty(JSON_PROPERTY_SUPPORTED_TYPES) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSupportedTypes( - @jakarta.annotation.Nonnull - List supportedTypes) { - this.supportedTypes = supportedTypes; - } - - /** Return true if this ConnectedAccountTradingPair object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ConnectedAccountTradingPair connectedAccountTradingPair = (ConnectedAccountTradingPair) o; - return Objects.equals(this.id, connectedAccountTradingPair.id) - && Objects.equals(this.baseAssetId, connectedAccountTradingPair.baseAssetId) - && Objects.equals(this.quoteAssetId, connectedAccountTradingPair.quoteAssetId) - && Objects.equals(this.supportedTypes, connectedAccountTradingPair.supportedTypes); - } - - @Override - public int hashCode() { - return Objects.hash(id, baseAssetId, quoteAssetId, supportedTypes); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ConnectedAccountTradingPair {\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" baseAssetId: ").append(toIndentedString(baseAssetId)).append("\n"); - sb.append(" quoteAssetId: ").append(toIndentedString(quoteAssetId)).append("\n"); - sb.append(" supportedTypes: ").append(toIndentedString(supportedTypes)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `id` to the URL query string - if (getId() != null) { - joiner.add( - String.format( - "%sid%s=%s", - prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); - } - - // add `baseAssetId` to the URL query string - if (getBaseAssetId() != null) { - joiner.add( - String.format( - "%sbaseAssetId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBaseAssetId())))); - } - - // add `quoteAssetId` to the URL query string - if (getQuoteAssetId() != null) { - joiner.add( - String.format( - "%squoteAssetId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getQuoteAssetId())))); - } - - // add `supportedTypes` to the URL query string - if (getSupportedTypes() != null) { - for (int i = 0; i < getSupportedTypes().size(); i++) { - if (getSupportedTypes().get(i) != null) { - joiner.add( - String.format( - "%ssupportedTypes%s%s=%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode( - ApiClient.valueToString(getSupportedTypes().get(i))))); - } - } - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/ConnectedAccountTradingPairSupportedType.java b/src/main/java/com/fireblocks/sdk/model/ConnectedAccountTradingPairSupportedType.java deleted file mode 100644 index 8f863c7c..00000000 --- a/src/main/java/com/fireblocks/sdk/model/ConnectedAccountTradingPairSupportedType.java +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - -/** Gets or Sets ConnectedAccountTradingPairSupportedType */ -public enum ConnectedAccountTradingPairSupportedType { - QUOTE("QUOTE"), - - MARKET("MARKET"), - - LIMIT("LIMIT"); - - private String value; - - ConnectedAccountTradingPairSupportedType(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static ConnectedAccountTradingPairSupportedType fromValue(String value) { - for (ConnectedAccountTradingPairSupportedType b : - ConnectedAccountTradingPairSupportedType.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - if (prefix == null) { - prefix = ""; - } - - return String.format("%s=%s", prefix, this.toString()); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/ConnectedAccountTradingPairsResponse.java b/src/main/java/com/fireblocks/sdk/model/ConnectedAccountTradingPairsResponse.java deleted file mode 100644 index 5700a27b..00000000 --- a/src/main/java/com/fireblocks/sdk/model/ConnectedAccountTradingPairsResponse.java +++ /dev/null @@ -1,252 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** ConnectedAccountTradingPairsResponse */ -@JsonPropertyOrder({ - ConnectedAccountTradingPairsResponse.JSON_PROPERTY_DATA, - ConnectedAccountTradingPairsResponse.JSON_PROPERTY_TOTAL, - ConnectedAccountTradingPairsResponse.JSON_PROPERTY_NEXT -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class ConnectedAccountTradingPairsResponse { - public static final String JSON_PROPERTY_DATA = "data"; - @jakarta.annotation.Nonnull private List data = new ArrayList<>(); - - public static final String JSON_PROPERTY_TOTAL = "total"; - @jakarta.annotation.Nullable private Integer total; - - public static final String JSON_PROPERTY_NEXT = "next"; - @jakarta.annotation.Nullable private String next; - - public ConnectedAccountTradingPairsResponse() {} - - @JsonCreator - public ConnectedAccountTradingPairsResponse( - @JsonProperty(value = JSON_PROPERTY_DATA, required = true) - List data) { - this.data = data; - } - - public ConnectedAccountTradingPairsResponse data( - @jakarta.annotation.Nonnull List data) { - this.data = data; - return this; - } - - public ConnectedAccountTradingPairsResponse addDataItem(ConnectedAccountTradingPair dataItem) { - if (this.data == null) { - this.data = new ArrayList<>(); - } - this.data.add(dataItem); - return this; - } - - /** - * Get data - * - * @return data - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getData() { - return data; - } - - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setData(@jakarta.annotation.Nonnull List data) { - this.data = data; - } - - public ConnectedAccountTradingPairsResponse total(@jakarta.annotation.Nullable Integer total) { - this.total = total; - return this; - } - - /** - * Total number of asset pairs matching the query. - * - * @return total - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TOTAL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getTotal() { - return total; - } - - @JsonProperty(JSON_PROPERTY_TOTAL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTotal(@jakarta.annotation.Nullable Integer total) { - this.total = total; - } - - public ConnectedAccountTradingPairsResponse next(@jakarta.annotation.Nullable String next) { - this.next = next; - return this; - } - - /** - * A cursor for the next page of results, if available. - * - * @return next - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NEXT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getNext() { - return next; - } - - @JsonProperty(JSON_PROPERTY_NEXT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNext(@jakarta.annotation.Nullable String next) { - this.next = next; - } - - /** Return true if this ConnectedAccountTradingPairsResponse object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ConnectedAccountTradingPairsResponse connectedAccountTradingPairsResponse = - (ConnectedAccountTradingPairsResponse) o; - return Objects.equals(this.data, connectedAccountTradingPairsResponse.data) - && Objects.equals(this.total, connectedAccountTradingPairsResponse.total) - && Objects.equals(this.next, connectedAccountTradingPairsResponse.next); - } - - @Override - public int hashCode() { - return Objects.hash(data, total, next); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ConnectedAccountTradingPairsResponse {\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" total: ").append(toIndentedString(total)).append("\n"); - sb.append(" next: ").append(toIndentedString(next)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `data` to the URL query string - if (getData() != null) { - for (int i = 0; i < getData().size(); i++) { - if (getData().get(i) != null) { - joiner.add( - getData() - .get(i) - .toUrlQueryString( - String.format( - "%sdata%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } - } - - // add `total` to the URL query string - if (getTotal() != null) { - joiner.add( - String.format( - "%stotal%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getTotal())))); - } - - // add `next` to the URL query string - if (getNext() != null) { - joiner.add( - String.format( - "%snext%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getNext())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/ConnectedAccountsResponse.java b/src/main/java/com/fireblocks/sdk/model/ConnectedAccountsResponse.java deleted file mode 100644 index 156488f9..00000000 --- a/src/main/java/com/fireblocks/sdk/model/ConnectedAccountsResponse.java +++ /dev/null @@ -1,250 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** ConnectedAccountsResponse */ -@JsonPropertyOrder({ - ConnectedAccountsResponse.JSON_PROPERTY_DATA, - ConnectedAccountsResponse.JSON_PROPERTY_TOTAL, - ConnectedAccountsResponse.JSON_PROPERTY_NEXT -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class ConnectedAccountsResponse { - public static final String JSON_PROPERTY_DATA = "data"; - @jakarta.annotation.Nonnull private List data = new ArrayList<>(); - - public static final String JSON_PROPERTY_TOTAL = "total"; - @jakarta.annotation.Nullable private Integer total; - - public static final String JSON_PROPERTY_NEXT = "next"; - @jakarta.annotation.Nullable private String next; - - public ConnectedAccountsResponse() {} - - @JsonCreator - public ConnectedAccountsResponse( - @JsonProperty(value = JSON_PROPERTY_DATA, required = true) - List data) { - this.data = data; - } - - public ConnectedAccountsResponse data(@jakarta.annotation.Nonnull List data) { - this.data = data; - return this; - } - - public ConnectedAccountsResponse addDataItem(ConnectedAccount dataItem) { - if (this.data == null) { - this.data = new ArrayList<>(); - } - this.data.add(dataItem); - return this; - } - - /** - * List of connected accounts matching the query. - * - * @return data - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getData() { - return data; - } - - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setData(@jakarta.annotation.Nonnull List data) { - this.data = data; - } - - public ConnectedAccountsResponse total(@jakarta.annotation.Nullable Integer total) { - this.total = total; - return this; - } - - /** - * Total number of accounts by query. - * - * @return total - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TOTAL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getTotal() { - return total; - } - - @JsonProperty(JSON_PROPERTY_TOTAL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTotal(@jakarta.annotation.Nullable Integer total) { - this.total = total; - } - - public ConnectedAccountsResponse next(@jakarta.annotation.Nullable String next) { - this.next = next; - return this; - } - - /** - * A cursor for the next page of results, if available. - * - * @return next - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NEXT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getNext() { - return next; - } - - @JsonProperty(JSON_PROPERTY_NEXT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNext(@jakarta.annotation.Nullable String next) { - this.next = next; - } - - /** Return true if this ConnectedAccountsResponse object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ConnectedAccountsResponse connectedAccountsResponse = (ConnectedAccountsResponse) o; - return Objects.equals(this.data, connectedAccountsResponse.data) - && Objects.equals(this.total, connectedAccountsResponse.total) - && Objects.equals(this.next, connectedAccountsResponse.next); - } - - @Override - public int hashCode() { - return Objects.hash(data, total, next); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ConnectedAccountsResponse {\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" total: ").append(toIndentedString(total)).append("\n"); - sb.append(" next: ").append(toIndentedString(next)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `data` to the URL query string - if (getData() != null) { - for (int i = 0; i < getData().size(); i++) { - if (getData().get(i) != null) { - joiner.add( - getData() - .get(i) - .toUrlQueryString( - String.format( - "%sdata%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } - } - - // add `total` to the URL query string - if (getTotal() != null) { - joiner.add( - String.format( - "%stotal%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getTotal())))); - } - - // add `next` to the URL query string - if (getNext() != null) { - joiner.add( - String.format( - "%snext%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getNext())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/ConnectedSingleAccount.java b/src/main/java/com/fireblocks/sdk/model/ConnectedSingleAccount.java deleted file mode 100644 index 07f8d85a..00000000 --- a/src/main/java/com/fireblocks/sdk/model/ConnectedSingleAccount.java +++ /dev/null @@ -1,157 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** ConnectedSingleAccount */ -@JsonPropertyOrder({ConnectedSingleAccount.JSON_PROPERTY_SUB_ACCOUNTS_IDS}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class ConnectedSingleAccount { - public static final String JSON_PROPERTY_SUB_ACCOUNTS_IDS = "subAccountsIds"; - @jakarta.annotation.Nullable private List subAccountsIds = new ArrayList<>(); - - public ConnectedSingleAccount() {} - - public ConnectedSingleAccount subAccountsIds( - @jakarta.annotation.Nullable List subAccountsIds) { - this.subAccountsIds = subAccountsIds; - return this; - } - - public ConnectedSingleAccount addSubAccountsIdsItem(String subAccountsIdsItem) { - if (this.subAccountsIds == null) { - this.subAccountsIds = new ArrayList<>(); - } - this.subAccountsIds.add(subAccountsIdsItem); - return this; - } - - /** - * IDs of sub-accounts associated with this connected account. - * - * @return subAccountsIds - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SUB_ACCOUNTS_IDS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getSubAccountsIds() { - return subAccountsIds; - } - - @JsonProperty(JSON_PROPERTY_SUB_ACCOUNTS_IDS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSubAccountsIds(@jakarta.annotation.Nullable List subAccountsIds) { - this.subAccountsIds = subAccountsIds; - } - - /** Return true if this ConnectedSingleAccount object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ConnectedSingleAccount connectedSingleAccount = (ConnectedSingleAccount) o; - return Objects.equals(this.subAccountsIds, connectedSingleAccount.subAccountsIds); - } - - @Override - public int hashCode() { - return Objects.hash(subAccountsIds); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ConnectedSingleAccount {\n"); - sb.append(" subAccountsIds: ").append(toIndentedString(subAccountsIds)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `subAccountsIds` to the URL query string - if (getSubAccountsIds() != null) { - for (int i = 0; i < getSubAccountsIds().size(); i++) { - joiner.add( - String.format( - "%ssubAccountsIds%s%s=%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode( - ApiClient.valueToString(getSubAccountsIds().get(i))))); - } - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/ConnectedSingleAccountResponse.java b/src/main/java/com/fireblocks/sdk/model/ConnectedSingleAccountResponse.java deleted file mode 100644 index 50b82e2b..00000000 --- a/src/main/java/com/fireblocks/sdk/model/ConnectedSingleAccountResponse.java +++ /dev/null @@ -1,448 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** ConnectedSingleAccountResponse */ -@JsonPropertyOrder({ - ConnectedSingleAccountResponse.JSON_PROPERTY_ID, - ConnectedSingleAccountResponse.JSON_PROPERTY_NAME, - ConnectedSingleAccountResponse.JSON_PROPERTY_PROVIDER_ID, - ConnectedSingleAccountResponse.JSON_PROPERTY_STATUS, - ConnectedSingleAccountResponse.JSON_PROPERTY_TOTAL_BALANCE, - ConnectedSingleAccountResponse.JSON_PROPERTY_MANIFEST, - ConnectedSingleAccountResponse.JSON_PROPERTY_PARENT_ID, - ConnectedSingleAccountResponse.JSON_PROPERTY_SUB_ACCOUNTS_IDS -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class ConnectedSingleAccountResponse { - public static final String JSON_PROPERTY_ID = "id"; - @jakarta.annotation.Nonnull private String id; - - public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nonnull private String name; - - public static final String JSON_PROPERTY_PROVIDER_ID = "providerId"; - @jakarta.annotation.Nonnull private String providerId; - - public static final String JSON_PROPERTY_STATUS = "status"; - @jakarta.annotation.Nonnull private ConnectedAccountApprovalStatus status; - - public static final String JSON_PROPERTY_TOTAL_BALANCE = "totalBalance"; - @jakarta.annotation.Nonnull private ConnectedAccountTotalBalance totalBalance; - - public static final String JSON_PROPERTY_MANIFEST = "manifest"; - @jakarta.annotation.Nonnull private ConnectedAccountManifest manifest; - - public static final String JSON_PROPERTY_PARENT_ID = "parentId"; - @jakarta.annotation.Nullable private String parentId; - - public static final String JSON_PROPERTY_SUB_ACCOUNTS_IDS = "subAccountsIds"; - @jakarta.annotation.Nullable private List subAccountsIds = new ArrayList<>(); - - public ConnectedSingleAccountResponse() {} - - @JsonCreator - public ConnectedSingleAccountResponse( - @JsonProperty(value = JSON_PROPERTY_ID, required = true) String id, - @JsonProperty(value = JSON_PROPERTY_NAME, required = true) String name, - @JsonProperty(value = JSON_PROPERTY_PROVIDER_ID, required = true) String providerId, - @JsonProperty(value = JSON_PROPERTY_STATUS, required = true) - ConnectedAccountApprovalStatus status, - @JsonProperty(value = JSON_PROPERTY_TOTAL_BALANCE, required = true) - ConnectedAccountTotalBalance totalBalance, - @JsonProperty(value = JSON_PROPERTY_MANIFEST, required = true) - ConnectedAccountManifest manifest) { - this.id = id; - this.name = name; - this.providerId = providerId; - this.status = status; - this.totalBalance = totalBalance; - this.manifest = manifest; - } - - public ConnectedSingleAccountResponse id(@jakarta.annotation.Nonnull String id) { - this.id = id; - return this; - } - - /** - * Unique identifier of the connected account. - * - * @return id - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getId() { - return id; - } - - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(@jakarta.annotation.Nonnull String id) { - this.id = id; - } - - public ConnectedSingleAccountResponse name(@jakarta.annotation.Nonnull String name) { - this.name = name; - return this; - } - - /** - * Human-readable name of the connected account. - * - * @return name - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getName() { - return name; - } - - @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(@jakarta.annotation.Nonnull String name) { - this.name = name; - } - - public ConnectedSingleAccountResponse providerId( - @jakarta.annotation.Nonnull String providerId) { - this.providerId = providerId; - return this; - } - - /** - * The ID of the venue the account belongs to. - * - * @return providerId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PROVIDER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getProviderId() { - return providerId; - } - - @JsonProperty(JSON_PROPERTY_PROVIDER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setProviderId(@jakarta.annotation.Nonnull String providerId) { - this.providerId = providerId; - } - - public ConnectedSingleAccountResponse status( - @jakarta.annotation.Nonnull ConnectedAccountApprovalStatus status) { - this.status = status; - return this; - } - - /** - * Get status - * - * @return status - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_STATUS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public ConnectedAccountApprovalStatus getStatus() { - return status; - } - - @JsonProperty(JSON_PROPERTY_STATUS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStatus(@jakarta.annotation.Nonnull ConnectedAccountApprovalStatus status) { - this.status = status; - } - - public ConnectedSingleAccountResponse totalBalance( - @jakarta.annotation.Nonnull ConnectedAccountTotalBalance totalBalance) { - this.totalBalance = totalBalance; - return this; - } - - /** - * Get totalBalance - * - * @return totalBalance - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TOTAL_BALANCE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public ConnectedAccountTotalBalance getTotalBalance() { - return totalBalance; - } - - @JsonProperty(JSON_PROPERTY_TOTAL_BALANCE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTotalBalance( - @jakarta.annotation.Nonnull ConnectedAccountTotalBalance totalBalance) { - this.totalBalance = totalBalance; - } - - public ConnectedSingleAccountResponse manifest( - @jakarta.annotation.Nonnull ConnectedAccountManifest manifest) { - this.manifest = manifest; - return this; - } - - /** - * Get manifest - * - * @return manifest - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_MANIFEST) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public ConnectedAccountManifest getManifest() { - return manifest; - } - - @JsonProperty(JSON_PROPERTY_MANIFEST) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setManifest(@jakarta.annotation.Nonnull ConnectedAccountManifest manifest) { - this.manifest = manifest; - } - - public ConnectedSingleAccountResponse parentId(@jakarta.annotation.Nullable String parentId) { - this.parentId = parentId; - return this; - } - - /** - * The ID of the parent main account, if this is a sub account. - * - * @return parentId - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PARENT_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getParentId() { - return parentId; - } - - @JsonProperty(JSON_PROPERTY_PARENT_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setParentId(@jakarta.annotation.Nullable String parentId) { - this.parentId = parentId; - } - - public ConnectedSingleAccountResponse subAccountsIds( - @jakarta.annotation.Nullable List subAccountsIds) { - this.subAccountsIds = subAccountsIds; - return this; - } - - public ConnectedSingleAccountResponse addSubAccountsIdsItem(String subAccountsIdsItem) { - if (this.subAccountsIds == null) { - this.subAccountsIds = new ArrayList<>(); - } - this.subAccountsIds.add(subAccountsIdsItem); - return this; - } - - /** - * IDs of sub-accounts associated with this connected account. - * - * @return subAccountsIds - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SUB_ACCOUNTS_IDS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getSubAccountsIds() { - return subAccountsIds; - } - - @JsonProperty(JSON_PROPERTY_SUB_ACCOUNTS_IDS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSubAccountsIds(@jakarta.annotation.Nullable List subAccountsIds) { - this.subAccountsIds = subAccountsIds; - } - - /** Return true if this ConnectedSingleAccountResponse object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ConnectedSingleAccountResponse connectedSingleAccountResponse = - (ConnectedSingleAccountResponse) o; - return Objects.equals(this.id, connectedSingleAccountResponse.id) - && Objects.equals(this.name, connectedSingleAccountResponse.name) - && Objects.equals(this.providerId, connectedSingleAccountResponse.providerId) - && Objects.equals(this.status, connectedSingleAccountResponse.status) - && Objects.equals(this.totalBalance, connectedSingleAccountResponse.totalBalance) - && Objects.equals(this.manifest, connectedSingleAccountResponse.manifest) - && Objects.equals(this.parentId, connectedSingleAccountResponse.parentId) - && Objects.equals( - this.subAccountsIds, connectedSingleAccountResponse.subAccountsIds); - } - - @Override - public int hashCode() { - return Objects.hash( - id, name, providerId, status, totalBalance, manifest, parentId, subAccountsIds); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ConnectedSingleAccountResponse {\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" providerId: ").append(toIndentedString(providerId)).append("\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append(" totalBalance: ").append(toIndentedString(totalBalance)).append("\n"); - sb.append(" manifest: ").append(toIndentedString(manifest)).append("\n"); - sb.append(" parentId: ").append(toIndentedString(parentId)).append("\n"); - sb.append(" subAccountsIds: ").append(toIndentedString(subAccountsIds)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `id` to the URL query string - if (getId() != null) { - joiner.add( - String.format( - "%sid%s=%s", - prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); - } - - // add `name` to the URL query string - if (getName() != null) { - joiner.add( - String.format( - "%sname%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getName())))); - } - - // add `providerId` to the URL query string - if (getProviderId() != null) { - joiner.add( - String.format( - "%sproviderId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getProviderId())))); - } - - // add `status` to the URL query string - if (getStatus() != null) { - joiner.add( - String.format( - "%sstatus%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getStatus())))); - } - - // add `totalBalance` to the URL query string - if (getTotalBalance() != null) { - joiner.add(getTotalBalance().toUrlQueryString(prefix + "totalBalance" + suffix)); - } - - // add `manifest` to the URL query string - if (getManifest() != null) { - joiner.add(getManifest().toUrlQueryString(prefix + "manifest" + suffix)); - } - - // add `parentId` to the URL query string - if (getParentId() != null) { - joiner.add( - String.format( - "%sparentId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getParentId())))); - } - - // add `subAccountsIds` to the URL query string - if (getSubAccountsIds() != null) { - for (int i = 0; i < getSubAccountsIds().size(); i++) { - joiner.add( - String.format( - "%ssubAccountsIds%s%s=%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode( - ApiClient.valueToString(getSubAccountsIds().get(i))))); - } - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/ContractAbiResponseDto.java b/src/main/java/com/fireblocks/sdk/model/ContractAbiResponseDto.java index d76c460e..4ca05f02 100644 --- a/src/main/java/com/fireblocks/sdk/model/ContractAbiResponseDto.java +++ b/src/main/java/com/fireblocks/sdk/model/ContractAbiResponseDto.java @@ -32,29 +32,25 @@ comments = "Generator version: 7.14.0") public class ContractAbiResponseDto { public static final String JSON_PROPERTY_ABI = "abi"; - - @jakarta.annotation.Nonnull - private List abi = new ArrayList<>(); + @jakarta.annotation.Nonnull private List abi; public static final String JSON_PROPERTY_IMPLEMENTATION_ABI = "implementationAbi"; - @jakarta.annotation.Nullable private List implementationAbi = new ArrayList<>(); + @jakarta.annotation.Nullable private List implementationAbi; public ContractAbiResponseDto() {} @JsonCreator public ContractAbiResponseDto( - @JsonProperty(value = JSON_PROPERTY_ABI, required = true) - List abi) { + @JsonProperty(value = JSON_PROPERTY_ABI, required = true) List abi) { this.abi = abi; } - public ContractAbiResponseDto abi( - @jakarta.annotation.Nonnull List abi) { + public ContractAbiResponseDto abi(@jakarta.annotation.Nonnull List abi) { this.abi = abi; return this; } - public ContractAbiResponseDto addAbiItem(ContractAbiResponseDtoAbiInner abiItem) { + public ContractAbiResponseDto addAbiItem(AbiFunction abiItem) { if (this.abi == null) { this.abi = new ArrayList<>(); } @@ -70,13 +66,13 @@ public ContractAbiResponseDto addAbiItem(ContractAbiResponseDtoAbiInner abiItem) @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ABI) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getAbi() { + public List getAbi() { return abi; } @JsonProperty(JSON_PROPERTY_ABI) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAbi(@jakarta.annotation.Nonnull List abi) { + public void setAbi(@jakarta.annotation.Nonnull List abi) { this.abi = abi; } diff --git a/src/main/java/com/fireblocks/sdk/model/ContractAbiResponseDtoAbiInner.java b/src/main/java/com/fireblocks/sdk/model/ContractAbiResponseDtoAbiInner.java deleted file mode 100644 index 64af9163..00000000 --- a/src/main/java/com/fireblocks/sdk/model/ContractAbiResponseDtoAbiInner.java +++ /dev/null @@ -1,328 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.core.JsonGenerator; -import com.fasterxml.jackson.core.JsonParser; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.core.JsonToken; -import com.fasterxml.jackson.databind.DeserializationContext; -import com.fasterxml.jackson.databind.JsonMappingException; -import com.fasterxml.jackson.databind.JsonNode; -import com.fasterxml.jackson.databind.MapperFeature; -import com.fasterxml.jackson.databind.SerializerProvider; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import com.fasterxml.jackson.databind.deser.std.StdDeserializer; -import com.fasterxml.jackson.databind.ser.std.StdSerializer; -import com.fireblocks.sdk.JSON; -import java.io.IOException; -import java.util.Collections; -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; -import java.util.StringJoiner; -import java.util.logging.Level; -import java.util.logging.Logger; - -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -@JsonDeserialize( - using = ContractAbiResponseDtoAbiInner.ContractAbiResponseDtoAbiInnerDeserializer.class) -@JsonSerialize( - using = ContractAbiResponseDtoAbiInner.ContractAbiResponseDtoAbiInnerSerializer.class) -public class ContractAbiResponseDtoAbiInner extends AbstractOpenApiSchema { - private static final Logger log = - Logger.getLogger(ContractAbiResponseDtoAbiInner.class.getName()); - - public static class ContractAbiResponseDtoAbiInnerSerializer - extends StdSerializer { - public ContractAbiResponseDtoAbiInnerSerializer(Class t) { - super(t); - } - - public ContractAbiResponseDtoAbiInnerSerializer() { - this(null); - } - - @Override - public void serialize( - ContractAbiResponseDtoAbiInner value, - JsonGenerator jgen, - SerializerProvider provider) - throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); - } - } - - public static class ContractAbiResponseDtoAbiInnerDeserializer - extends StdDeserializer { - public ContractAbiResponseDtoAbiInnerDeserializer() { - this(ContractAbiResponseDtoAbiInner.class); - } - - public ContractAbiResponseDtoAbiInnerDeserializer(Class vc) { - super(vc); - } - - @Override - public ContractAbiResponseDtoAbiInner deserialize( - JsonParser jp, DeserializationContext ctxt) - throws IOException, JsonProcessingException { - JsonNode tree = jp.readValueAsTree(); - Object deserialized = null; - boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); - int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); - // deserialize AbiFunction - try { - boolean attemptParsing = true; - // ensure that we respect type coercion as set on the client ObjectMapper - if (AbiFunction.class.equals(Integer.class) - || AbiFunction.class.equals(Long.class) - || AbiFunction.class.equals(Float.class) - || AbiFunction.class.equals(Double.class) - || AbiFunction.class.equals(Boolean.class) - || AbiFunction.class.equals(String.class)) { - attemptParsing = typeCoercion; - if (!attemptParsing) { - attemptParsing |= - ((AbiFunction.class.equals(Integer.class) - || AbiFunction.class.equals(Long.class)) - && token == JsonToken.VALUE_NUMBER_INT); - attemptParsing |= - ((AbiFunction.class.equals(Float.class) - || AbiFunction.class.equals(Double.class)) - && token == JsonToken.VALUE_NUMBER_FLOAT); - attemptParsing |= - (AbiFunction.class.equals(Boolean.class) - && (token == JsonToken.VALUE_FALSE - || token == JsonToken.VALUE_TRUE)); - attemptParsing |= - (AbiFunction.class.equals(String.class) - && token == JsonToken.VALUE_STRING); - } - } - if (attemptParsing) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(AbiFunction.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'AbiFunction'"); - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'AbiFunction'", e); - } - - // deserialize SolanaInstruction - try { - boolean attemptParsing = true; - // ensure that we respect type coercion as set on the client ObjectMapper - if (SolanaInstruction.class.equals(Integer.class) - || SolanaInstruction.class.equals(Long.class) - || SolanaInstruction.class.equals(Float.class) - || SolanaInstruction.class.equals(Double.class) - || SolanaInstruction.class.equals(Boolean.class) - || SolanaInstruction.class.equals(String.class)) { - attemptParsing = typeCoercion; - if (!attemptParsing) { - attemptParsing |= - ((SolanaInstruction.class.equals(Integer.class) - || SolanaInstruction.class.equals(Long.class)) - && token == JsonToken.VALUE_NUMBER_INT); - attemptParsing |= - ((SolanaInstruction.class.equals(Float.class) - || SolanaInstruction.class.equals(Double.class)) - && token == JsonToken.VALUE_NUMBER_FLOAT); - attemptParsing |= - (SolanaInstruction.class.equals(Boolean.class) - && (token == JsonToken.VALUE_FALSE - || token == JsonToken.VALUE_TRUE)); - attemptParsing |= - (SolanaInstruction.class.equals(String.class) - && token == JsonToken.VALUE_STRING); - } - } - if (attemptParsing) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(SolanaInstruction.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'SolanaInstruction'"); - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'SolanaInstruction'", e); - } - - if (match == 1) { - ContractAbiResponseDtoAbiInner ret = new ContractAbiResponseDtoAbiInner(); - ret.setActualInstance(deserialized); - return ret; - } - throw new IOException( - String.format( - "Failed deserialization for ContractAbiResponseDtoAbiInner: %d classes" - + " match result, expected 1", - match)); - } - - /** Handle deserialization of the 'null' value. */ - @Override - public ContractAbiResponseDtoAbiInner getNullValue(DeserializationContext ctxt) - throws JsonMappingException { - throw new JsonMappingException( - ctxt.getParser(), "ContractAbiResponseDtoAbiInner cannot be null"); - } - } - - // store a list of schema names defined in oneOf - public static final Map> schemas = new HashMap<>(); - - public ContractAbiResponseDtoAbiInner() { - super("oneOf", Boolean.FALSE); - } - - public ContractAbiResponseDtoAbiInner(AbiFunction o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public ContractAbiResponseDtoAbiInner(SolanaInstruction o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("AbiFunction", AbiFunction.class); - schemas.put("SolanaInstruction", SolanaInstruction.class); - JSON.registerDescendants( - ContractAbiResponseDtoAbiInner.class, Collections.unmodifiableMap(schemas)); - } - - @Override - public Map> getSchemas() { - return ContractAbiResponseDtoAbiInner.schemas; - } - - /** - * Set the instance that matches the oneOf child schema, check the instance parameter is valid - * against the oneOf child schemas: AbiFunction, SolanaInstruction - * - *

It could be an instance of the 'oneOf' schemas. The oneOf child schemas may themselves be - * a composed schema (allOf, anyOf, oneOf). - */ - @Override - public void setActualInstance(Object instance) { - if (JSON.isInstanceOf(AbiFunction.class, instance, new HashSet>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(SolanaInstruction.class, instance, new HashSet>())) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be AbiFunction, SolanaInstruction"); - } - - /** - * Get the actual instance, which can be the following: AbiFunction, SolanaInstruction - * - * @return The actual instance (AbiFunction, SolanaInstruction) - */ - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `AbiFunction`. If the actual instance is not `AbiFunction`, the - * ClassCastException will be thrown. - * - * @return The actual instance of `AbiFunction` - * @throws ClassCastException if the instance is not `AbiFunction` - */ - public AbiFunction getAbiFunction() throws ClassCastException { - return (AbiFunction) super.getActualInstance(); - } - - /** - * Get the actual instance of `SolanaInstruction`. If the actual instance is not - * `SolanaInstruction`, the ClassCastException will be thrown. - * - * @return The actual instance of `SolanaInstruction` - * @throws ClassCastException if the instance is not `SolanaInstruction` - */ - public SolanaInstruction getSolanaInstruction() throws ClassCastException { - return (SolanaInstruction) super.getActualInstance(); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - if (getActualInstance() instanceof AbiFunction) { - if (getActualInstance() != null) { - joiner.add( - ((AbiFunction) getActualInstance()) - .toUrlQueryString(prefix + "one_of_0" + suffix)); - } - return joiner.toString(); - } - if (getActualInstance() instanceof SolanaInstruction) { - if (getActualInstance() != null) { - joiner.add( - ((SolanaInstruction) getActualInstance()) - .toUrlQueryString(prefix + "one_of_1" + suffix)); - } - return joiner.toString(); - } - return null; - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/ContractAttributes.java b/src/main/java/com/fireblocks/sdk/model/ContractAttributes.java index 6a092fdc..c9704cae 100644 --- a/src/main/java/com/fireblocks/sdk/model/ContractAttributes.java +++ b/src/main/java/com/fireblocks/sdk/model/ContractAttributes.java @@ -34,10 +34,10 @@ comments = "Generator version: 7.14.0") public class ContractAttributes { public static final String JSON_PROPERTY_USE_CASES = "useCases"; - @jakarta.annotation.Nonnull private List useCases = new ArrayList<>(); + @jakarta.annotation.Nonnull private List useCases; public static final String JSON_PROPERTY_STANDARDS = "standards"; - @jakarta.annotation.Nonnull private List standards = new ArrayList<>(); + @jakarta.annotation.Nonnull private List standards; public static final String JSON_PROPERTY_AUDITOR = "auditor"; @jakarta.annotation.Nonnull private AuditorData auditor; diff --git a/src/main/java/com/fireblocks/sdk/model/ContractDataDecodeDataType.java b/src/main/java/com/fireblocks/sdk/model/ContractDataDecodeDataType.java deleted file mode 100644 index eb5d9444..00000000 --- a/src/main/java/com/fireblocks/sdk/model/ContractDataDecodeDataType.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - -/** The type of the data to decode. */ -public enum ContractDataDecodeDataType { - ERROR("ERROR"), - - LOG("LOG"), - - FUNCTION("FUNCTION"); - - private String value; - - ContractDataDecodeDataType(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static ContractDataDecodeDataType fromValue(String value) { - for (ContractDataDecodeDataType b : ContractDataDecodeDataType.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - if (prefix == null) { - prefix = ""; - } - - return String.format("%s=%s", prefix, this.toString()); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/ContractDataDecodeError.java b/src/main/java/com/fireblocks/sdk/model/ContractDataDecodeError.java deleted file mode 100644 index d27edb2d..00000000 --- a/src/main/java/com/fireblocks/sdk/model/ContractDataDecodeError.java +++ /dev/null @@ -1,190 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.math.BigDecimal; -import java.util.Objects; -import java.util.StringJoiner; - -/** ContractDataDecodeError */ -@JsonPropertyOrder({ - ContractDataDecodeError.JSON_PROPERTY_MESSAGE, - ContractDataDecodeError.JSON_PROPERTY_CODE -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class ContractDataDecodeError { - public static final String JSON_PROPERTY_MESSAGE = "message"; - @jakarta.annotation.Nonnull private String message; - - public static final String JSON_PROPERTY_CODE = "code"; - @jakarta.annotation.Nonnull private BigDecimal code; - - public ContractDataDecodeError() {} - - @JsonCreator - public ContractDataDecodeError( - @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = true) String message, - @JsonProperty(value = JSON_PROPERTY_CODE, required = true) BigDecimal code) { - this.message = message; - this.code = code; - } - - public ContractDataDecodeError message(@jakarta.annotation.Nonnull String message) { - this.message = message; - return this; - } - - /** - * Bad request error message - * - * @return message - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_MESSAGE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getMessage() { - return message; - } - - @JsonProperty(JSON_PROPERTY_MESSAGE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setMessage(@jakarta.annotation.Nonnull String message) { - this.message = message; - } - - public ContractDataDecodeError code(@jakarta.annotation.Nonnull BigDecimal code) { - this.code = code; - return this; - } - - /** - * Error code - * - * @return code - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CODE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public BigDecimal getCode() { - return code; - } - - @JsonProperty(JSON_PROPERTY_CODE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCode(@jakarta.annotation.Nonnull BigDecimal code) { - this.code = code; - } - - /** Return true if this ContractDataDecodeError object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ContractDataDecodeError contractDataDecodeError = (ContractDataDecodeError) o; - return Objects.equals(this.message, contractDataDecodeError.message) - && Objects.equals(this.code, contractDataDecodeError.code); - } - - @Override - public int hashCode() { - return Objects.hash(message, code); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ContractDataDecodeError {\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); - sb.append(" code: ").append(toIndentedString(code)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `message` to the URL query string - if (getMessage() != null) { - joiner.add( - String.format( - "%smessage%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getMessage())))); - } - - // add `code` to the URL query string - if (getCode() != null) { - joiner.add( - String.format( - "%scode%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getCode())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/ContractDataDecodeRequest.java b/src/main/java/com/fireblocks/sdk/model/ContractDataDecodeRequest.java deleted file mode 100644 index aaa4df54..00000000 --- a/src/main/java/com/fireblocks/sdk/model/ContractDataDecodeRequest.java +++ /dev/null @@ -1,249 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** ContractDataDecodeRequest */ -@JsonPropertyOrder({ - ContractDataDecodeRequest.JSON_PROPERTY_DATA, - ContractDataDecodeRequest.JSON_PROPERTY_DATA_TYPE, - ContractDataDecodeRequest.JSON_PROPERTY_ABI -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class ContractDataDecodeRequest { - public static final String JSON_PROPERTY_DATA = "data"; - @jakarta.annotation.Nonnull private ContractDataDecodeRequestData data; - - public static final String JSON_PROPERTY_DATA_TYPE = "dataType"; - @jakarta.annotation.Nonnull private ContractDataDecodeDataType dataType; - - public static final String JSON_PROPERTY_ABI = "abi"; - @jakarta.annotation.Nullable private List abi = new ArrayList<>(); - - public ContractDataDecodeRequest() {} - - @JsonCreator - public ContractDataDecodeRequest( - @JsonProperty(value = JSON_PROPERTY_DATA, required = true) - ContractDataDecodeRequestData data, - @JsonProperty(value = JSON_PROPERTY_DATA_TYPE, required = true) - ContractDataDecodeDataType dataType) { - this.data = data; - this.dataType = dataType; - } - - public ContractDataDecodeRequest data( - @jakarta.annotation.Nonnull ContractDataDecodeRequestData data) { - this.data = data; - return this; - } - - /** - * Get data - * - * @return data - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public ContractDataDecodeRequestData getData() { - return data; - } - - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setData(@jakarta.annotation.Nonnull ContractDataDecodeRequestData data) { - this.data = data; - } - - public ContractDataDecodeRequest dataType( - @jakarta.annotation.Nonnull ContractDataDecodeDataType dataType) { - this.dataType = dataType; - return this; - } - - /** - * Get dataType - * - * @return dataType - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DATA_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public ContractDataDecodeDataType getDataType() { - return dataType; - } - - @JsonProperty(JSON_PROPERTY_DATA_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDataType(@jakarta.annotation.Nonnull ContractDataDecodeDataType dataType) { - this.dataType = dataType; - } - - public ContractDataDecodeRequest abi(@jakarta.annotation.Nullable List abi) { - this.abi = abi; - return this; - } - - public ContractDataDecodeRequest addAbiItem(AbiFunction abiItem) { - if (this.abi == null) { - this.abi = new ArrayList<>(); - } - this.abi.add(abiItem); - return this; - } - - /** - * The abi of the function/error/log to decode. - * - * @return abi - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ABI) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getAbi() { - return abi; - } - - @JsonProperty(JSON_PROPERTY_ABI) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAbi(@jakarta.annotation.Nullable List abi) { - this.abi = abi; - } - - /** Return true if this ContractDataDecodeRequest object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ContractDataDecodeRequest contractDataDecodeRequest = (ContractDataDecodeRequest) o; - return Objects.equals(this.data, contractDataDecodeRequest.data) - && Objects.equals(this.dataType, contractDataDecodeRequest.dataType) - && Objects.equals(this.abi, contractDataDecodeRequest.abi); - } - - @Override - public int hashCode() { - return Objects.hash(data, dataType, abi); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ContractDataDecodeRequest {\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" dataType: ").append(toIndentedString(dataType)).append("\n"); - sb.append(" abi: ").append(toIndentedString(abi)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `data` to the URL query string - if (getData() != null) { - joiner.add(getData().toUrlQueryString(prefix + "data" + suffix)); - } - - // add `dataType` to the URL query string - if (getDataType() != null) { - joiner.add( - String.format( - "%sdataType%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getDataType())))); - } - - // add `abi` to the URL query string - if (getAbi() != null) { - for (int i = 0; i < getAbi().size(); i++) { - if (getAbi().get(i) != null) { - joiner.add( - getAbi().get(i) - .toUrlQueryString( - String.format( - "%sabi%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/ContractDataDecodeRequestData.java b/src/main/java/com/fireblocks/sdk/model/ContractDataDecodeRequestData.java deleted file mode 100644 index 16089f40..00000000 --- a/src/main/java/com/fireblocks/sdk/model/ContractDataDecodeRequestData.java +++ /dev/null @@ -1,337 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.core.JsonGenerator; -import com.fasterxml.jackson.core.JsonParser; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.core.JsonToken; -import com.fasterxml.jackson.databind.DeserializationContext; -import com.fasterxml.jackson.databind.JsonMappingException; -import com.fasterxml.jackson.databind.JsonNode; -import com.fasterxml.jackson.databind.MapperFeature; -import com.fasterxml.jackson.databind.SerializerProvider; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import com.fasterxml.jackson.databind.deser.std.StdDeserializer; -import com.fasterxml.jackson.databind.ser.std.StdSerializer; -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.JSON; -import java.io.IOException; -import java.util.Collections; -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; -import java.util.StringJoiner; -import java.util.logging.Level; -import java.util.logging.Logger; - -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -@JsonDeserialize( - using = ContractDataDecodeRequestData.ContractDataDecodeRequestDataDeserializer.class) -@JsonSerialize(using = ContractDataDecodeRequestData.ContractDataDecodeRequestDataSerializer.class) -public class ContractDataDecodeRequestData extends AbstractOpenApiSchema { - private static final Logger log = - Logger.getLogger(ContractDataDecodeRequestData.class.getName()); - - public static class ContractDataDecodeRequestDataSerializer - extends StdSerializer { - public ContractDataDecodeRequestDataSerializer(Class t) { - super(t); - } - - public ContractDataDecodeRequestDataSerializer() { - this(null); - } - - @Override - public void serialize( - ContractDataDecodeRequestData value, - JsonGenerator jgen, - SerializerProvider provider) - throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); - } - } - - public static class ContractDataDecodeRequestDataDeserializer - extends StdDeserializer { - public ContractDataDecodeRequestDataDeserializer() { - this(ContractDataDecodeRequestData.class); - } - - public ContractDataDecodeRequestDataDeserializer(Class vc) { - super(vc); - } - - @Override - public ContractDataDecodeRequestData deserialize(JsonParser jp, DeserializationContext ctxt) - throws IOException, JsonProcessingException { - JsonNode tree = jp.readValueAsTree(); - Object deserialized = null; - boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); - int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); - // deserialize ContractDataLogDataParam - try { - boolean attemptParsing = true; - // ensure that we respect type coercion as set on the client ObjectMapper - if (ContractDataLogDataParam.class.equals(Integer.class) - || ContractDataLogDataParam.class.equals(Long.class) - || ContractDataLogDataParam.class.equals(Float.class) - || ContractDataLogDataParam.class.equals(Double.class) - || ContractDataLogDataParam.class.equals(Boolean.class) - || ContractDataLogDataParam.class.equals(String.class)) { - attemptParsing = typeCoercion; - if (!attemptParsing) { - attemptParsing |= - ((ContractDataLogDataParam.class.equals(Integer.class) - || ContractDataLogDataParam.class.equals( - Long.class)) - && token == JsonToken.VALUE_NUMBER_INT); - attemptParsing |= - ((ContractDataLogDataParam.class.equals(Float.class) - || ContractDataLogDataParam.class.equals( - Double.class)) - && token == JsonToken.VALUE_NUMBER_FLOAT); - attemptParsing |= - (ContractDataLogDataParam.class.equals(Boolean.class) - && (token == JsonToken.VALUE_FALSE - || token == JsonToken.VALUE_TRUE)); - attemptParsing |= - (ContractDataLogDataParam.class.equals(String.class) - && token == JsonToken.VALUE_STRING); - } - } - if (attemptParsing) { - deserialized = - tree.traverse(jp.getCodec()) - .readValueAs(ContractDataLogDataParam.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'ContractDataLogDataParam'"); - } - } catch (Exception e) { - // deserialization failed, continue - log.log( - Level.FINER, - "Input data does not match schema 'ContractDataLogDataParam'", - e); - } - - // deserialize String - try { - boolean attemptParsing = true; - // ensure that we respect type coercion as set on the client ObjectMapper - if (String.class.equals(Integer.class) - || String.class.equals(Long.class) - || String.class.equals(Float.class) - || String.class.equals(Double.class) - || String.class.equals(Boolean.class) - || String.class.equals(String.class)) { - attemptParsing = typeCoercion; - if (!attemptParsing) { - attemptParsing |= - ((String.class.equals(Integer.class) - || String.class.equals(Long.class)) - && token == JsonToken.VALUE_NUMBER_INT); - attemptParsing |= - ((String.class.equals(Float.class) - || String.class.equals(Double.class)) - && token == JsonToken.VALUE_NUMBER_FLOAT); - attemptParsing |= - (String.class.equals(Boolean.class) - && (token == JsonToken.VALUE_FALSE - || token == JsonToken.VALUE_TRUE)); - attemptParsing |= - (String.class.equals(String.class) - && token == JsonToken.VALUE_STRING); - } - } - if (attemptParsing) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(String.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'String'"); - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'String'", e); - } - - if (match == 1) { - ContractDataDecodeRequestData ret = new ContractDataDecodeRequestData(); - ret.setActualInstance(deserialized); - return ret; - } - throw new IOException( - String.format( - "Failed deserialization for ContractDataDecodeRequestData: %d classes" - + " match result, expected 1", - match)); - } - - /** Handle deserialization of the 'null' value. */ - @Override - public ContractDataDecodeRequestData getNullValue(DeserializationContext ctxt) - throws JsonMappingException { - throw new JsonMappingException( - ctxt.getParser(), "ContractDataDecodeRequestData cannot be null"); - } - } - - // store a list of schema names defined in oneOf - public static final Map> schemas = new HashMap<>(); - - public ContractDataDecodeRequestData() { - super("oneOf", Boolean.FALSE); - } - - public ContractDataDecodeRequestData(ContractDataLogDataParam o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public ContractDataDecodeRequestData(String o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("ContractDataLogDataParam", ContractDataLogDataParam.class); - schemas.put("String", String.class); - JSON.registerDescendants( - ContractDataDecodeRequestData.class, Collections.unmodifiableMap(schemas)); - } - - @Override - public Map> getSchemas() { - return ContractDataDecodeRequestData.schemas; - } - - /** - * Set the instance that matches the oneOf child schema, check the instance parameter is valid - * against the oneOf child schemas: ContractDataLogDataParam, String - * - *

It could be an instance of the 'oneOf' schemas. The oneOf child schemas may themselves be - * a composed schema (allOf, anyOf, oneOf). - */ - @Override - public void setActualInstance(Object instance) { - if (JSON.isInstanceOf(ContractDataLogDataParam.class, instance, new HashSet>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(String.class, instance, new HashSet>())) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException( - "Invalid instance type. Must be ContractDataLogDataParam, String"); - } - - /** - * Get the actual instance, which can be the following: ContractDataLogDataParam, String - * - * @return The actual instance (ContractDataLogDataParam, String) - */ - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `ContractDataLogDataParam`. If the actual instance is not - * `ContractDataLogDataParam`, the ClassCastException will be thrown. - * - * @return The actual instance of `ContractDataLogDataParam` - * @throws ClassCastException if the instance is not `ContractDataLogDataParam` - */ - public ContractDataLogDataParam getContractDataLogDataParam() throws ClassCastException { - return (ContractDataLogDataParam) super.getActualInstance(); - } - - /** - * Get the actual instance of `String`. If the actual instance is not `String`, the - * ClassCastException will be thrown. - * - * @return The actual instance of `String` - * @throws ClassCastException if the instance is not `String` - */ - public String getString() throws ClassCastException { - return (String) super.getActualInstance(); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - if (getActualInstance() instanceof String) { - if (getActualInstance() != null) { - joiner.add( - String.format( - "%sone_of_0%s=%s", - prefix, - suffix, - ApiClient.urlEncode(String.valueOf(getActualInstance())))); - } - return joiner.toString(); - } - if (getActualInstance() instanceof ContractDataLogDataParam) { - if (getActualInstance() != null) { - joiner.add( - ((ContractDataLogDataParam) getActualInstance()) - .toUrlQueryString(prefix + "one_of_1" + suffix)); - } - return joiner.toString(); - } - return null; - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/ContractDataDecodeResponseParams.java b/src/main/java/com/fireblocks/sdk/model/ContractDataDecodeResponseParams.java deleted file mode 100644 index 77d47a33..00000000 --- a/src/main/java/com/fireblocks/sdk/model/ContractDataDecodeResponseParams.java +++ /dev/null @@ -1,257 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** ContractDataDecodeResponseParams */ -@JsonPropertyOrder({ - ContractDataDecodeResponseParams.JSON_PROPERTY_NAME, - ContractDataDecodeResponseParams.JSON_PROPERTY_SIGNATURE, - ContractDataDecodeResponseParams.JSON_PROPERTY_ARGS -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class ContractDataDecodeResponseParams { - public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nonnull private String name; - - public static final String JSON_PROPERTY_SIGNATURE = "signature"; - @jakarta.annotation.Nonnull private String signature; - - public static final String JSON_PROPERTY_ARGS = "args"; - @jakarta.annotation.Nonnull private List args = new ArrayList<>(); - - public ContractDataDecodeResponseParams() {} - - @JsonCreator - public ContractDataDecodeResponseParams( - @JsonProperty(value = JSON_PROPERTY_NAME, required = true) String name, - @JsonProperty(value = JSON_PROPERTY_SIGNATURE, required = true) String signature, - @JsonProperty(value = JSON_PROPERTY_ARGS, required = true) - List args) { - this.name = name; - this.signature = signature; - this.args = args; - } - - public ContractDataDecodeResponseParams name(@jakarta.annotation.Nonnull String name) { - this.name = name; - return this; - } - - /** - * The name of the contract function. - * - * @return name - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getName() { - return name; - } - - @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(@jakarta.annotation.Nonnull String name) { - this.name = name; - } - - public ContractDataDecodeResponseParams signature( - @jakarta.annotation.Nonnull String signature) { - this.signature = signature; - return this; - } - - /** - * The signature of the contract function. - * - * @return signature - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SIGNATURE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getSignature() { - return signature; - } - - @JsonProperty(JSON_PROPERTY_SIGNATURE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSignature(@jakarta.annotation.Nonnull String signature) { - this.signature = signature; - } - - public ContractDataDecodeResponseParams args( - @jakarta.annotation.Nonnull List args) { - this.args = args; - return this; - } - - public ContractDataDecodeResponseParams addArgsItem(ParameterWithValue argsItem) { - if (this.args == null) { - this.args = new ArrayList<>(); - } - this.args.add(argsItem); - return this; - } - - /** - * Get args - * - * @return args - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ARGS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getArgs() { - return args; - } - - @JsonProperty(JSON_PROPERTY_ARGS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setArgs(@jakarta.annotation.Nonnull List args) { - this.args = args; - } - - /** Return true if this ContractDataDecodeResponseParams object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ContractDataDecodeResponseParams contractDataDecodeResponseParams = - (ContractDataDecodeResponseParams) o; - return Objects.equals(this.name, contractDataDecodeResponseParams.name) - && Objects.equals(this.signature, contractDataDecodeResponseParams.signature) - && Objects.equals(this.args, contractDataDecodeResponseParams.args); - } - - @Override - public int hashCode() { - return Objects.hash(name, signature, args); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ContractDataDecodeResponseParams {\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" signature: ").append(toIndentedString(signature)).append("\n"); - sb.append(" args: ").append(toIndentedString(args)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `name` to the URL query string - if (getName() != null) { - joiner.add( - String.format( - "%sname%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getName())))); - } - - // add `signature` to the URL query string - if (getSignature() != null) { - joiner.add( - String.format( - "%ssignature%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getSignature())))); - } - - // add `args` to the URL query string - if (getArgs() != null) { - for (int i = 0; i < getArgs().size(); i++) { - if (getArgs().get(i) != null) { - joiner.add( - getArgs() - .get(i) - .toUrlQueryString( - String.format( - "%sargs%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/ContractDataDecodedResponse.java b/src/main/java/com/fireblocks/sdk/model/ContractDataDecodedResponse.java deleted file mode 100644 index f67e78e7..00000000 --- a/src/main/java/com/fireblocks/sdk/model/ContractDataDecodedResponse.java +++ /dev/null @@ -1,219 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** ContractDataDecodedResponse */ -@JsonPropertyOrder({ - ContractDataDecodedResponse.JSON_PROPERTY_RESULT, - ContractDataDecodedResponse.JSON_PROPERTY_TYPE -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class ContractDataDecodedResponse { - public static final String JSON_PROPERTY_RESULT = "result"; - - @jakarta.annotation.Nonnull - private List result = new ArrayList<>(); - - public static final String JSON_PROPERTY_TYPE = "type"; - @jakarta.annotation.Nonnull private ContractDataDecodeDataType type; - - public ContractDataDecodedResponse() {} - - @JsonCreator - public ContractDataDecodedResponse( - @JsonProperty(value = JSON_PROPERTY_RESULT, required = true) - List result, - @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) - ContractDataDecodeDataType type) { - this.result = result; - this.type = type; - } - - public ContractDataDecodedResponse result( - @jakarta.annotation.Nonnull List result) { - this.result = result; - return this; - } - - public ContractDataDecodedResponse addResultItem(ContractDataDecodeResponseParams resultItem) { - if (this.result == null) { - this.result = new ArrayList<>(); - } - this.result.add(resultItem); - return this; - } - - /** - * The decoded parameters of the contract function call. - * - * @return result - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_RESULT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getResult() { - return result; - } - - @JsonProperty(JSON_PROPERTY_RESULT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setResult( - @jakarta.annotation.Nonnull List result) { - this.result = result; - } - - public ContractDataDecodedResponse type( - @jakarta.annotation.Nonnull ContractDataDecodeDataType type) { - this.type = type; - return this; - } - - /** - * Get type - * - * @return type - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public ContractDataDecodeDataType getType() { - return type; - } - - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(@jakarta.annotation.Nonnull ContractDataDecodeDataType type) { - this.type = type; - } - - /** Return true if this ContractDataDecodedResponse object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ContractDataDecodedResponse contractDataDecodedResponse = (ContractDataDecodedResponse) o; - return Objects.equals(this.result, contractDataDecodedResponse.result) - && Objects.equals(this.type, contractDataDecodedResponse.type); - } - - @Override - public int hashCode() { - return Objects.hash(result, type); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ContractDataDecodedResponse {\n"); - sb.append(" result: ").append(toIndentedString(result)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `result` to the URL query string - if (getResult() != null) { - for (int i = 0; i < getResult().size(); i++) { - if (getResult().get(i) != null) { - joiner.add( - getResult() - .get(i) - .toUrlQueryString( - String.format( - "%sresult%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } - } - - // add `type` to the URL query string - if (getType() != null) { - joiner.add( - String.format( - "%stype%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getType())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/ContractDataLogDataParam.java b/src/main/java/com/fireblocks/sdk/model/ContractDataLogDataParam.java deleted file mode 100644 index 2a8e2394..00000000 --- a/src/main/java/com/fireblocks/sdk/model/ContractDataLogDataParam.java +++ /dev/null @@ -1,205 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** ContractDataLogDataParam */ -@JsonPropertyOrder({ - ContractDataLogDataParam.JSON_PROPERTY_DATA, - ContractDataLogDataParam.JSON_PROPERTY_TOPICS -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class ContractDataLogDataParam { - public static final String JSON_PROPERTY_DATA = "data"; - @jakarta.annotation.Nonnull private String data; - - public static final String JSON_PROPERTY_TOPICS = "topics"; - @jakarta.annotation.Nonnull private List topics = new ArrayList<>(); - - public ContractDataLogDataParam() {} - - @JsonCreator - public ContractDataLogDataParam( - @JsonProperty(value = JSON_PROPERTY_DATA, required = true) String data, - @JsonProperty(value = JSON_PROPERTY_TOPICS, required = true) List topics) { - this.data = data; - this.topics = topics; - } - - public ContractDataLogDataParam data(@jakarta.annotation.Nonnull String data) { - this.data = data; - return this; - } - - /** - * The data to decode, which can be a string or an object containing the data and its type. - * - * @return data - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getData() { - return data; - } - - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setData(@jakarta.annotation.Nonnull String data) { - this.data = data; - } - - public ContractDataLogDataParam topics(@jakarta.annotation.Nonnull List topics) { - this.topics = topics; - return this; - } - - public ContractDataLogDataParam addTopicsItem(String topicsItem) { - if (this.topics == null) { - this.topics = new ArrayList<>(); - } - this.topics.add(topicsItem); - return this; - } - - /** - * The topics of the log, which is an array of strings. - * - * @return topics - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TOPICS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getTopics() { - return topics; - } - - @JsonProperty(JSON_PROPERTY_TOPICS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTopics(@jakarta.annotation.Nonnull List topics) { - this.topics = topics; - } - - /** Return true if this ContractDataLogDataParam object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ContractDataLogDataParam contractDataLogDataParam = (ContractDataLogDataParam) o; - return Objects.equals(this.data, contractDataLogDataParam.data) - && Objects.equals(this.topics, contractDataLogDataParam.topics); - } - - @Override - public int hashCode() { - return Objects.hash(data, topics); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ContractDataLogDataParam {\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" topics: ").append(toIndentedString(topics)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `data` to the URL query string - if (getData() != null) { - joiner.add( - String.format( - "%sdata%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getData())))); - } - - // add `topics` to the URL query string - if (getTopics() != null) { - for (int i = 0; i < getTopics().size(); i++) { - joiner.add( - String.format( - "%stopics%s%s=%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode(ApiClient.valueToString(getTopics().get(i))))); - } - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/ContractDeployRequest.java b/src/main/java/com/fireblocks/sdk/model/ContractDeployRequest.java index 7bb988af..18d8b964 100644 --- a/src/main/java/com/fireblocks/sdk/model/ContractDeployRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/ContractDeployRequest.java @@ -17,7 +17,6 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; @@ -28,10 +27,7 @@ @JsonPropertyOrder({ ContractDeployRequest.JSON_PROPERTY_ASSET_ID, ContractDeployRequest.JSON_PROPERTY_VAULT_ACCOUNT_ID, - ContractDeployRequest.JSON_PROPERTY_CONSTRUCTOR_PARAMETERS, - ContractDeployRequest.JSON_PROPERTY_USE_GASLESS, - ContractDeployRequest.JSON_PROPERTY_FEE, - ContractDeployRequest.JSON_PROPERTY_FEE_LEVEL + ContractDeployRequest.JSON_PROPERTY_CONSTRUCTOR_PARAMETERS }) @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", @@ -44,55 +40,7 @@ public class ContractDeployRequest { @jakarta.annotation.Nonnull private String vaultAccountId; public static final String JSON_PROPERTY_CONSTRUCTOR_PARAMETERS = "constructorParameters"; - - @jakarta.annotation.Nullable - private List constructorParameters = new ArrayList<>(); - - public static final String JSON_PROPERTY_USE_GASLESS = "useGasless"; - @jakarta.annotation.Nullable private Boolean useGasless; - - public static final String JSON_PROPERTY_FEE = "fee"; - @jakarta.annotation.Nullable private String fee; - - /** - * Fee level for the write function transaction. interchangeable with the 'fee' field - */ - public enum FeeLevelEnum { - LOW(String.valueOf("LOW")), - - MEDIUM(String.valueOf("MEDIUM")), - - HIGH(String.valueOf("HIGH")); - - private String value; - - FeeLevelEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static FeeLevelEnum fromValue(String value) { - for (FeeLevelEnum b : FeeLevelEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_FEE_LEVEL = "feeLevel"; - @jakarta.annotation.Nullable private FeeLevelEnum feeLevel; + @jakarta.annotation.Nullable private List constructorParameters; public ContractDeployRequest() {} @@ -185,78 +133,6 @@ public void setConstructorParameters( this.constructorParameters = constructorParameters; } - public ContractDeployRequest useGasless(@jakarta.annotation.Nullable Boolean useGasless) { - this.useGasless = useGasless; - return this; - } - - /** - * Indicates whether the token should be created in a gasless manner, utilizing the ERC-2771 - * standard. When set to true, the transaction will be relayed by a designated relayer. The - * workspace must be configured to use Fireblocks gasless relay. - * - * @return useGasless - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USE_GASLESS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getUseGasless() { - return useGasless; - } - - @JsonProperty(JSON_PROPERTY_USE_GASLESS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUseGasless(@jakarta.annotation.Nullable Boolean useGasless) { - this.useGasless = useGasless; - } - - public ContractDeployRequest fee(@jakarta.annotation.Nullable String fee) { - this.fee = fee; - return this; - } - - /** - * Max fee amount for the write function transaction. interchangeable with the - * 'feeLevel' field - * - * @return fee - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FEE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getFee() { - return fee; - } - - @JsonProperty(JSON_PROPERTY_FEE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFee(@jakarta.annotation.Nullable String fee) { - this.fee = fee; - } - - public ContractDeployRequest feeLevel(@jakarta.annotation.Nullable FeeLevelEnum feeLevel) { - this.feeLevel = feeLevel; - return this; - } - - /** - * Fee level for the write function transaction. interchangeable with the 'fee' field - * - * @return feeLevel - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FEE_LEVEL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public FeeLevelEnum getFeeLevel() { - return feeLevel; - } - - @JsonProperty(JSON_PROPERTY_FEE_LEVEL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFeeLevel(@jakarta.annotation.Nullable FeeLevelEnum feeLevel) { - this.feeLevel = feeLevel; - } - /** Return true if this ContractDeployRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -270,16 +146,12 @@ public boolean equals(Object o) { return Objects.equals(this.assetId, contractDeployRequest.assetId) && Objects.equals(this.vaultAccountId, contractDeployRequest.vaultAccountId) && Objects.equals( - this.constructorParameters, contractDeployRequest.constructorParameters) - && Objects.equals(this.useGasless, contractDeployRequest.useGasless) - && Objects.equals(this.fee, contractDeployRequest.fee) - && Objects.equals(this.feeLevel, contractDeployRequest.feeLevel); + this.constructorParameters, contractDeployRequest.constructorParameters); } @Override public int hashCode() { - return Objects.hash( - assetId, vaultAccountId, constructorParameters, useGasless, fee, feeLevel); + return Objects.hash(assetId, vaultAccountId, constructorParameters); } @Override @@ -291,9 +163,6 @@ public String toString() { sb.append(" constructorParameters: ") .append(toIndentedString(constructorParameters)) .append("\n"); - sb.append(" useGasless: ").append(toIndentedString(useGasless)).append("\n"); - sb.append(" fee: ").append(toIndentedString(fee)).append("\n"); - sb.append(" feeLevel: ").append(toIndentedString(feeLevel)).append("\n"); sb.append("}"); return sb.toString(); } @@ -384,36 +253,6 @@ public String toUrlQueryString(String prefix) { } } - // add `useGasless` to the URL query string - if (getUseGasless() != null) { - joiner.add( - String.format( - "%suseGasless%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getUseGasless())))); - } - - // add `fee` to the URL query string - if (getFee() != null) { - joiner.add( - String.format( - "%sfee%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getFee())))); - } - - // add `feeLevel` to the URL query string - if (getFeeLevel() != null) { - joiner.add( - String.format( - "%sfeeLevel%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getFeeLevel())))); - } - return joiner.toString(); } } diff --git a/src/main/java/com/fireblocks/sdk/model/ContractDoc.java b/src/main/java/com/fireblocks/sdk/model/ContractDoc.java index 2016d86f..3336a130 100644 --- a/src/main/java/com/fireblocks/sdk/model/ContractDoc.java +++ b/src/main/java/com/fireblocks/sdk/model/ContractDoc.java @@ -18,7 +18,6 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fireblocks.sdk.ApiClient; -import java.math.BigDecimal; import java.util.HashMap; import java.util.Map; import java.util.Objects; @@ -46,10 +45,10 @@ public class ContractDoc { @jakarta.annotation.Nonnull private String kind; public static final String JSON_PROPERTY_METHODS = "methods"; - @jakarta.annotation.Nonnull private Map methods = new HashMap<>(); + @jakarta.annotation.Nonnull private Map methods; public static final String JSON_PROPERTY_VERSION = "version"; - @jakarta.annotation.Nonnull private BigDecimal version; + @jakarta.annotation.Nonnull private String version; public ContractDoc() {} @@ -58,7 +57,7 @@ public ContractDoc( @JsonProperty(value = JSON_PROPERTY_KIND, required = true) String kind, @JsonProperty(value = JSON_PROPERTY_METHODS, required = true) Map methods, - @JsonProperty(value = JSON_PROPERTY_VERSION, required = true) BigDecimal version) { + @JsonProperty(value = JSON_PROPERTY_VERSION, required = true) String version) { this.kind = kind; this.methods = methods; this.version = version; @@ -164,7 +163,7 @@ public void setMethods(@jakarta.annotation.Nonnull Map meth this.methods = methods; } - public ContractDoc version(@jakarta.annotation.Nonnull BigDecimal version) { + public ContractDoc version(@jakarta.annotation.Nonnull String version) { this.version = version; return this; } @@ -177,13 +176,13 @@ public ContractDoc version(@jakarta.annotation.Nonnull BigDecimal version) { @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_VERSION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public BigDecimal getVersion() { + public String getVersion() { return version; } @JsonProperty(JSON_PROPERTY_VERSION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setVersion(@jakarta.annotation.Nonnull BigDecimal version) { + public void setVersion(@jakarta.annotation.Nonnull String version) { this.version = version; } diff --git a/src/main/java/com/fireblocks/sdk/model/ContractMethodConfig.java b/src/main/java/com/fireblocks/sdk/model/ContractMethodConfig.java deleted file mode 100644 index 2258ed86..00000000 --- a/src/main/java/com/fireblocks/sdk/model/ContractMethodConfig.java +++ /dev/null @@ -1,280 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fireblocks.sdk.ApiClient; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** Contract method configuration */ -@JsonPropertyOrder({ - ContractMethodConfig.JSON_PROPERTY_METHOD_CALLS, - ContractMethodConfig.JSON_PROPERTY_OPERATOR, - ContractMethodConfig.JSON_PROPERTY_PAYLOAD_SUFFIX -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class ContractMethodConfig { - public static final String JSON_PROPERTY_METHOD_CALLS = "methodCalls"; - @jakarta.annotation.Nonnull private List methodCalls = new ArrayList<>(); - - /** Operator for method calls */ - public enum OperatorEnum { - EITHER(String.valueOf("EITHER")), - - EXACT(String.valueOf("EXACT")); - - private String value; - - OperatorEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static OperatorEnum fromValue(String value) { - for (OperatorEnum b : OperatorEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_OPERATOR = "operator"; - @jakarta.annotation.Nonnull private OperatorEnum operator; - - public static final String JSON_PROPERTY_PAYLOAD_SUFFIX = "payloadSuffix"; - @jakarta.annotation.Nullable private String payloadSuffix; - - public ContractMethodConfig() {} - - @JsonCreator - public ContractMethodConfig( - @JsonProperty(value = JSON_PROPERTY_METHOD_CALLS, required = true) - List methodCalls, - @JsonProperty(value = JSON_PROPERTY_OPERATOR, required = true) OperatorEnum operator) { - this.methodCalls = methodCalls; - this.operator = operator; - } - - public ContractMethodConfig methodCalls(@jakarta.annotation.Nonnull List methodCalls) { - this.methodCalls = methodCalls; - return this; - } - - public ContractMethodConfig addMethodCallsItem(String methodCallsItem) { - if (this.methodCalls == null) { - this.methodCalls = new ArrayList<>(); - } - this.methodCalls.add(methodCallsItem); - return this; - } - - /** - * Get methodCalls - * - * @return methodCalls - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_METHOD_CALLS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getMethodCalls() { - return methodCalls; - } - - @JsonProperty(JSON_PROPERTY_METHOD_CALLS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setMethodCalls(@jakarta.annotation.Nonnull List methodCalls) { - this.methodCalls = methodCalls; - } - - public ContractMethodConfig operator(@jakarta.annotation.Nonnull OperatorEnum operator) { - this.operator = operator; - return this; - } - - /** - * Operator for method calls - * - * @return operator - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_OPERATOR) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public OperatorEnum getOperator() { - return operator; - } - - @JsonProperty(JSON_PROPERTY_OPERATOR) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setOperator(@jakarta.annotation.Nonnull OperatorEnum operator) { - this.operator = operator; - } - - public ContractMethodConfig payloadSuffix(@jakarta.annotation.Nullable String payloadSuffix) { - this.payloadSuffix = payloadSuffix; - return this; - } - - /** - * Payload suffix for method calls - * - * @return payloadSuffix - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PAYLOAD_SUFFIX) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getPayloadSuffix() { - return payloadSuffix; - } - - @JsonProperty(JSON_PROPERTY_PAYLOAD_SUFFIX) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPayloadSuffix(@jakarta.annotation.Nullable String payloadSuffix) { - this.payloadSuffix = payloadSuffix; - } - - /** Return true if this ContractMethodConfig object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ContractMethodConfig contractMethodConfig = (ContractMethodConfig) o; - return Objects.equals(this.methodCalls, contractMethodConfig.methodCalls) - && Objects.equals(this.operator, contractMethodConfig.operator) - && Objects.equals(this.payloadSuffix, contractMethodConfig.payloadSuffix); - } - - @Override - public int hashCode() { - return Objects.hash(methodCalls, operator, payloadSuffix); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ContractMethodConfig {\n"); - sb.append(" methodCalls: ").append(toIndentedString(methodCalls)).append("\n"); - sb.append(" operator: ").append(toIndentedString(operator)).append("\n"); - sb.append(" payloadSuffix: ").append(toIndentedString(payloadSuffix)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `methodCalls` to the URL query string - if (getMethodCalls() != null) { - for (int i = 0; i < getMethodCalls().size(); i++) { - joiner.add( - String.format( - "%smethodCalls%s%s=%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode( - ApiClient.valueToString(getMethodCalls().get(i))))); - } - } - - // add `operator` to the URL query string - if (getOperator() != null) { - joiner.add( - String.format( - "%soperator%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getOperator())))); - } - - // add `payloadSuffix` to the URL query string - if (getPayloadSuffix() != null) { - joiner.add( - String.format( - "%spayloadSuffix%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getPayloadSuffix())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/ContractMethodPattern.java b/src/main/java/com/fireblocks/sdk/model/ContractMethodPattern.java deleted file mode 100644 index 5ae7df13..00000000 --- a/src/main/java/com/fireblocks/sdk/model/ContractMethodPattern.java +++ /dev/null @@ -1,325 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.core.JsonGenerator; -import com.fasterxml.jackson.core.JsonParser; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.core.JsonToken; -import com.fasterxml.jackson.databind.DeserializationContext; -import com.fasterxml.jackson.databind.JsonMappingException; -import com.fasterxml.jackson.databind.JsonNode; -import com.fasterxml.jackson.databind.MapperFeature; -import com.fasterxml.jackson.databind.SerializerProvider; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import com.fasterxml.jackson.databind.deser.std.StdDeserializer; -import com.fasterxml.jackson.databind.ser.std.StdSerializer; -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.JSON; -import java.io.IOException; -import java.util.Collections; -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; -import java.util.StringJoiner; -import java.util.logging.Level; -import java.util.logging.Logger; - -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -@JsonDeserialize(using = ContractMethodPattern.ContractMethodPatternDeserializer.class) -@JsonSerialize(using = ContractMethodPattern.ContractMethodPatternSerializer.class) -public class ContractMethodPattern extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(ContractMethodPattern.class.getName()); - - public static class ContractMethodPatternSerializer - extends StdSerializer { - public ContractMethodPatternSerializer(Class t) { - super(t); - } - - public ContractMethodPatternSerializer() { - this(null); - } - - @Override - public void serialize( - ContractMethodPattern value, JsonGenerator jgen, SerializerProvider provider) - throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); - } - } - - public static class ContractMethodPatternDeserializer - extends StdDeserializer { - public ContractMethodPatternDeserializer() { - this(ContractMethodPattern.class); - } - - public ContractMethodPatternDeserializer(Class vc) { - super(vc); - } - - @Override - public ContractMethodPattern deserialize(JsonParser jp, DeserializationContext ctxt) - throws IOException, JsonProcessingException { - JsonNode tree = jp.readValueAsTree(); - Object deserialized = null; - boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); - int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); - // deserialize ContractMethodConfig - try { - boolean attemptParsing = true; - // ensure that we respect type coercion as set on the client ObjectMapper - if (ContractMethodConfig.class.equals(Integer.class) - || ContractMethodConfig.class.equals(Long.class) - || ContractMethodConfig.class.equals(Float.class) - || ContractMethodConfig.class.equals(Double.class) - || ContractMethodConfig.class.equals(Boolean.class) - || ContractMethodConfig.class.equals(String.class)) { - attemptParsing = typeCoercion; - if (!attemptParsing) { - attemptParsing |= - ((ContractMethodConfig.class.equals(Integer.class) - || ContractMethodConfig.class.equals(Long.class)) - && token == JsonToken.VALUE_NUMBER_INT); - attemptParsing |= - ((ContractMethodConfig.class.equals(Float.class) - || ContractMethodConfig.class.equals(Double.class)) - && token == JsonToken.VALUE_NUMBER_FLOAT); - attemptParsing |= - (ContractMethodConfig.class.equals(Boolean.class) - && (token == JsonToken.VALUE_FALSE - || token == JsonToken.VALUE_TRUE)); - attemptParsing |= - (ContractMethodConfig.class.equals(String.class) - && token == JsonToken.VALUE_STRING); - } - } - if (attemptParsing) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(ContractMethodConfig.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'ContractMethodConfig'"); - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'ContractMethodConfig'", e); - } - - // deserialize String - try { - boolean attemptParsing = true; - // ensure that we respect type coercion as set on the client ObjectMapper - if (String.class.equals(Integer.class) - || String.class.equals(Long.class) - || String.class.equals(Float.class) - || String.class.equals(Double.class) - || String.class.equals(Boolean.class) - || String.class.equals(String.class)) { - attemptParsing = typeCoercion; - if (!attemptParsing) { - attemptParsing |= - ((String.class.equals(Integer.class) - || String.class.equals(Long.class)) - && token == JsonToken.VALUE_NUMBER_INT); - attemptParsing |= - ((String.class.equals(Float.class) - || String.class.equals(Double.class)) - && token == JsonToken.VALUE_NUMBER_FLOAT); - attemptParsing |= - (String.class.equals(Boolean.class) - && (token == JsonToken.VALUE_FALSE - || token == JsonToken.VALUE_TRUE)); - attemptParsing |= - (String.class.equals(String.class) - && token == JsonToken.VALUE_STRING); - } - } - if (attemptParsing) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(String.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'String'"); - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'String'", e); - } - - if (match == 1) { - ContractMethodPattern ret = new ContractMethodPattern(); - ret.setActualInstance(deserialized); - return ret; - } - throw new IOException( - String.format( - "Failed deserialization for ContractMethodPattern: %d classes match" - + " result, expected 1", - match)); - } - - /** Handle deserialization of the 'null' value. */ - @Override - public ContractMethodPattern getNullValue(DeserializationContext ctxt) - throws JsonMappingException { - throw new JsonMappingException( - ctxt.getParser(), "ContractMethodPattern cannot be null"); - } - } - - // store a list of schema names defined in oneOf - public static final Map> schemas = new HashMap<>(); - - public ContractMethodPattern() { - super("oneOf", Boolean.FALSE); - } - - public ContractMethodPattern(ContractMethodConfig o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public ContractMethodPattern(String o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("ContractMethodConfig", ContractMethodConfig.class); - schemas.put("String", String.class); - JSON.registerDescendants(ContractMethodPattern.class, Collections.unmodifiableMap(schemas)); - } - - @Override - public Map> getSchemas() { - return ContractMethodPattern.schemas; - } - - /** - * Set the instance that matches the oneOf child schema, check the instance parameter is valid - * against the oneOf child schemas: ContractMethodConfig, String - * - *

It could be an instance of the 'oneOf' schemas. The oneOf child schemas may themselves be - * a composed schema (allOf, anyOf, oneOf). - */ - @Override - public void setActualInstance(Object instance) { - if (JSON.isInstanceOf(ContractMethodConfig.class, instance, new HashSet>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(String.class, instance, new HashSet>())) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be ContractMethodConfig, String"); - } - - /** - * Get the actual instance, which can be the following: ContractMethodConfig, String - * - * @return The actual instance (ContractMethodConfig, String) - */ - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `ContractMethodConfig`. If the actual instance is not - * `ContractMethodConfig`, the ClassCastException will be thrown. - * - * @return The actual instance of `ContractMethodConfig` - * @throws ClassCastException if the instance is not `ContractMethodConfig` - */ - public ContractMethodConfig getContractMethodConfig() throws ClassCastException { - return (ContractMethodConfig) super.getActualInstance(); - } - - /** - * Get the actual instance of `String`. If the actual instance is not `String`, the - * ClassCastException will be thrown. - * - * @return The actual instance of `String` - * @throws ClassCastException if the instance is not `String` - */ - public String getString() throws ClassCastException { - return (String) super.getActualInstance(); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - if (getActualInstance() instanceof String) { - if (getActualInstance() != null) { - joiner.add( - String.format( - "%sone_of_0%s=%s", - prefix, - suffix, - ApiClient.urlEncode(String.valueOf(getActualInstance())))); - } - return joiner.toString(); - } - if (getActualInstance() instanceof ContractMethodConfig) { - if (getActualInstance() != null) { - joiner.add( - ((ContractMethodConfig) getActualInstance()) - .toUrlQueryString(prefix + "one_of_1" + suffix)); - } - return joiner.toString(); - } - return null; - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/ContractTemplateDto.java b/src/main/java/com/fireblocks/sdk/model/ContractTemplateDto.java index 98a04866..d6528e30 100644 --- a/src/main/java/com/fireblocks/sdk/model/ContractTemplateDto.java +++ b/src/main/java/com/fireblocks/sdk/model/ContractTemplateDto.java @@ -58,7 +58,7 @@ public class ContractTemplateDto { @jakarta.annotation.Nullable private String longDescription; public static final String JSON_PROPERTY_ABI = "abi"; - @jakarta.annotation.Nonnull private List abi = new ArrayList<>(); + @jakarta.annotation.Nonnull private List> abi; public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; @jakarta.annotation.Nullable private ContractAttributes attributes; @@ -167,7 +167,7 @@ public ContractTemplateDto( @JsonProperty(value = JSON_PROPERTY_ID, required = true) String id, @JsonProperty(value = JSON_PROPERTY_NAME, required = true) String name, @JsonProperty(value = JSON_PROPERTY_DESCRIPTION, required = true) String description, - @JsonProperty(value = JSON_PROPERTY_ABI, required = true) List abi, + @JsonProperty(value = JSON_PROPERTY_ABI, required = true) List> abi, @JsonProperty(value = JSON_PROPERTY_IS_PUBLIC, required = true) Boolean isPublic, @JsonProperty(value = JSON_PROPERTY_INITIALIZATION_PHASE, required = true) InitializationPhaseEnum initializationPhase) { @@ -272,12 +272,12 @@ public void setLongDescription(@jakarta.annotation.Nullable String longDescripti this.longDescription = longDescription; } - public ContractTemplateDto abi(@jakarta.annotation.Nonnull List abi) { + public ContractTemplateDto abi(@jakarta.annotation.Nonnull List> abi) { this.abi = abi; return this; } - public ContractTemplateDto addAbiItem(AbiFunction abiItem) { + public ContractTemplateDto addAbiItem(List abiItem) { if (this.abi == null) { this.abi = new ArrayList<>(); } @@ -286,20 +286,20 @@ public ContractTemplateDto addAbiItem(AbiFunction abiItem) { } /** - * The abi of the contract template. Necessary for displaying and for after deployment encoding + * Get abi * * @return abi */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ABI) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getAbi() { + public List> getAbi() { return abi; } @JsonProperty(JSON_PROPERTY_ABI) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAbi(@jakarta.annotation.Nonnull List abi) { + public void setAbi(@jakarta.annotation.Nonnull List> abi) { this.abi = abi; } @@ -679,19 +679,15 @@ public String toUrlQueryString(String prefix) { for (int i = 0; i < getAbi().size(); i++) { if (getAbi().get(i) != null) { joiner.add( - getAbi().get(i) - .toUrlQueryString( - String.format( - "%sabi%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); + String.format( + "%sabi%s%s=%s", + prefix, + suffix, + "".equals(suffix) + ? "" + : String.format( + "%s%d%s", containerPrefix, i, containerSuffix), + ApiClient.urlEncode(ApiClient.valueToString(getAbi().get(i))))); } } } diff --git a/src/main/java/com/fireblocks/sdk/model/ContractUploadRequest.java b/src/main/java/com/fireblocks/sdk/model/ContractUploadRequest.java index bf999925..6f02d462 100644 --- a/src/main/java/com/fireblocks/sdk/model/ContractUploadRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/ContractUploadRequest.java @@ -34,8 +34,7 @@ ContractUploadRequest.JSON_PROPERTY_TYPE, ContractUploadRequest.JSON_PROPERTY_DOCS, ContractUploadRequest.JSON_PROPERTY_ABI, - ContractUploadRequest.JSON_PROPERTY_ATTRIBUTES, - ContractUploadRequest.JSON_PROPERTY_PROTOCOL + ContractUploadRequest.JSON_PROPERTY_ATTRIBUTES }) @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", @@ -96,53 +95,17 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - @jakarta.annotation.Nonnull private TypeEnum type; + @jakarta.annotation.Nullable private TypeEnum type; public static final String JSON_PROPERTY_DOCS = "docs"; @jakarta.annotation.Nullable private ContractDoc docs; public static final String JSON_PROPERTY_ABI = "abi"; - @jakarta.annotation.Nonnull private List abi = new ArrayList<>(); + @jakarta.annotation.Nonnull private List> abi; public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; @jakarta.annotation.Nullable private ContractAttributes attributes; - /** The protocol that the template will be used for */ - public enum ProtocolEnum { - ETH(String.valueOf("ETH")), - - SOL(String.valueOf("SOL")); - - private String value; - - ProtocolEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static ProtocolEnum fromValue(String value) { - for (ProtocolEnum b : ProtocolEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_PROTOCOL = "protocol"; - @jakarta.annotation.Nullable private ProtocolEnum protocol; - public ContractUploadRequest() {} @JsonCreator @@ -150,12 +113,10 @@ public ContractUploadRequest( @JsonProperty(value = JSON_PROPERTY_NAME, required = true) String name, @JsonProperty(value = JSON_PROPERTY_DESCRIPTION, required = true) String description, @JsonProperty(value = JSON_PROPERTY_BYTECODE, required = true) String bytecode, - @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) TypeEnum type, - @JsonProperty(value = JSON_PROPERTY_ABI, required = true) List abi) { + @JsonProperty(value = JSON_PROPERTY_ABI, required = true) List> abi) { this.name = name; this.description = description; this.bytecode = bytecode; - this.type = type; this.abi = abi; } @@ -275,7 +236,7 @@ public void setSourcecode(@jakarta.annotation.Nullable String sourcecode) { this.sourcecode = sourcecode; } - public ContractUploadRequest type(@jakarta.annotation.Nonnull TypeEnum type) { + public ContractUploadRequest type(@jakarta.annotation.Nullable TypeEnum type) { this.type = type; return this; } @@ -285,16 +246,16 @@ public ContractUploadRequest type(@jakarta.annotation.Nonnull TypeEnum type) { * * @return type */ - @jakarta.annotation.Nonnull + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public TypeEnum getType() { return type; } @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(@jakarta.annotation.Nonnull TypeEnum type) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setType(@jakarta.annotation.Nullable TypeEnum type) { this.type = type; } @@ -322,12 +283,12 @@ public void setDocs(@jakarta.annotation.Nullable ContractDoc docs) { this.docs = docs; } - public ContractUploadRequest abi(@jakarta.annotation.Nonnull List abi) { + public ContractUploadRequest abi(@jakarta.annotation.Nonnull List> abi) { this.abi = abi; return this; } - public ContractUploadRequest addAbiItem(AbiFunction abiItem) { + public ContractUploadRequest addAbiItem(List abiItem) { if (this.abi == null) { this.abi = new ArrayList<>(); } @@ -336,20 +297,20 @@ public ContractUploadRequest addAbiItem(AbiFunction abiItem) { } /** - * The abi of the contract template. Necessary for displaying and for after deployment encoding + * Get abi * * @return abi */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ABI) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getAbi() { + public List> getAbi() { return abi; } @JsonProperty(JSON_PROPERTY_ABI) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAbi(@jakarta.annotation.Nonnull List abi) { + public void setAbi(@jakarta.annotation.Nonnull List> abi) { this.abi = abi; } @@ -378,29 +339,6 @@ public void setAttributes(@jakarta.annotation.Nullable ContractAttributes attrib this.attributes = attributes; } - public ContractUploadRequest protocol(@jakarta.annotation.Nullable ProtocolEnum protocol) { - this.protocol = protocol; - return this; - } - - /** - * The protocol that the template will be used for - * - * @return protocol - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROTOCOL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public ProtocolEnum getProtocol() { - return protocol; - } - - @JsonProperty(JSON_PROPERTY_PROTOCOL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setProtocol(@jakarta.annotation.Nullable ProtocolEnum protocol) { - this.protocol = protocol; - } - /** Return true if this ContractUploadRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -419,8 +357,7 @@ public boolean equals(Object o) { && Objects.equals(this.type, contractUploadRequest.type) && Objects.equals(this.docs, contractUploadRequest.docs) && Objects.equals(this.abi, contractUploadRequest.abi) - && Objects.equals(this.attributes, contractUploadRequest.attributes) - && Objects.equals(this.protocol, contractUploadRequest.protocol); + && Objects.equals(this.attributes, contractUploadRequest.attributes); } @Override @@ -434,8 +371,7 @@ public int hashCode() { type, docs, abi, - attributes, - protocol); + attributes); } @Override @@ -451,7 +387,6 @@ public String toString() { sb.append(" docs: ").append(toIndentedString(docs)).append("\n"); sb.append(" abi: ").append(toIndentedString(abi)).append("\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); - sb.append(" protocol: ").append(toIndentedString(protocol)).append("\n"); sb.append("}"); return sb.toString(); } @@ -569,19 +504,15 @@ public String toUrlQueryString(String prefix) { for (int i = 0; i < getAbi().size(); i++) { if (getAbi().get(i) != null) { joiner.add( - getAbi().get(i) - .toUrlQueryString( - String.format( - "%sabi%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); + String.format( + "%sabi%s%s=%s", + prefix, + suffix, + "".equals(suffix) + ? "" + : String.format( + "%s%d%s", containerPrefix, i, containerSuffix), + ApiClient.urlEncode(ApiClient.valueToString(getAbi().get(i))))); } } } @@ -591,16 +522,6 @@ public String toUrlQueryString(String prefix) { joiner.add(getAttributes().toUrlQueryString(prefix + "attributes" + suffix)); } - // add `protocol` to the URL query string - if (getProtocol() != null) { - joiner.add( - String.format( - "%sprotocol%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getProtocol())))); - } - return joiner.toString(); } } diff --git a/src/main/java/com/fireblocks/sdk/model/ContractWithAbiDto.java b/src/main/java/com/fireblocks/sdk/model/ContractWithAbiDto.java deleted file mode 100644 index 5f00bf63..00000000 --- a/src/main/java/com/fireblocks/sdk/model/ContractWithAbiDto.java +++ /dev/null @@ -1,414 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** ContractWithAbiDto */ -@JsonPropertyOrder({ - ContractWithAbiDto.JSON_PROPERTY_CONTRACT_ADDRESS, - ContractWithAbiDto.JSON_PROPERTY_BASE_ASSET_ID, - ContractWithAbiDto.JSON_PROPERTY_NAME, - ContractWithAbiDto.JSON_PROPERTY_ABI, - ContractWithAbiDto.JSON_PROPERTY_IS_PROXY, - ContractWithAbiDto.JSON_PROPERTY_IMPLEMENTATION, - ContractWithAbiDto.JSON_PROPERTY_IS_PUBLIC -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class ContractWithAbiDto { - public static final String JSON_PROPERTY_CONTRACT_ADDRESS = "contractAddress"; - @jakarta.annotation.Nonnull private String contractAddress; - - public static final String JSON_PROPERTY_BASE_ASSET_ID = "baseAssetId"; - @jakarta.annotation.Nonnull private String baseAssetId; - - public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nonnull private String name; - - public static final String JSON_PROPERTY_ABI = "abi"; - @jakarta.annotation.Nonnull private List abi = new ArrayList<>(); - - public static final String JSON_PROPERTY_IS_PROXY = "isProxy"; - @jakarta.annotation.Nullable private Boolean isProxy; - - public static final String JSON_PROPERTY_IMPLEMENTATION = "implementation"; - @jakarta.annotation.Nullable private String implementation; - - public static final String JSON_PROPERTY_IS_PUBLIC = "isPublic"; - @jakarta.annotation.Nonnull private Boolean isPublic; - - public ContractWithAbiDto() {} - - @JsonCreator - public ContractWithAbiDto( - @JsonProperty(value = JSON_PROPERTY_CONTRACT_ADDRESS, required = true) - String contractAddress, - @JsonProperty(value = JSON_PROPERTY_BASE_ASSET_ID, required = true) String baseAssetId, - @JsonProperty(value = JSON_PROPERTY_NAME, required = true) String name, - @JsonProperty(value = JSON_PROPERTY_ABI, required = true) List abi, - @JsonProperty(value = JSON_PROPERTY_IS_PUBLIC, required = true) Boolean isPublic) { - this.contractAddress = contractAddress; - this.baseAssetId = baseAssetId; - this.name = name; - this.abi = abi; - this.isPublic = isPublic; - } - - public ContractWithAbiDto contractAddress(@jakarta.annotation.Nonnull String contractAddress) { - this.contractAddress = contractAddress; - return this; - } - - /** - * The address of the contract - * - * @return contractAddress - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CONTRACT_ADDRESS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getContractAddress() { - return contractAddress; - } - - @JsonProperty(JSON_PROPERTY_CONTRACT_ADDRESS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setContractAddress(@jakarta.annotation.Nonnull String contractAddress) { - this.contractAddress = contractAddress; - } - - public ContractWithAbiDto baseAssetId(@jakarta.annotation.Nonnull String baseAssetId) { - this.baseAssetId = baseAssetId; - return this; - } - - /** - * The blockchain base assetId - * - * @return baseAssetId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BASE_ASSET_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getBaseAssetId() { - return baseAssetId; - } - - @JsonProperty(JSON_PROPERTY_BASE_ASSET_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBaseAssetId(@jakarta.annotation.Nonnull String baseAssetId) { - this.baseAssetId = baseAssetId; - } - - public ContractWithAbiDto name(@jakarta.annotation.Nonnull String name) { - this.name = name; - return this; - } - - /** - * The name of the contract - * - * @return name - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getName() { - return name; - } - - @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(@jakarta.annotation.Nonnull String name) { - this.name = name; - } - - public ContractWithAbiDto abi(@jakarta.annotation.Nonnull List abi) { - this.abi = abi; - return this; - } - - public ContractWithAbiDto addAbiItem(AbiFunction abiItem) { - if (this.abi == null) { - this.abi = new ArrayList<>(); - } - this.abi.add(abiItem); - return this; - } - - /** - * The ABI of the contract - * - * @return abi - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ABI) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getAbi() { - return abi; - } - - @JsonProperty(JSON_PROPERTY_ABI) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAbi(@jakarta.annotation.Nonnull List abi) { - this.abi = abi; - } - - public ContractWithAbiDto isProxy(@jakarta.annotation.Nullable Boolean isProxy) { - this.isProxy = isProxy; - return this; - } - - /** - * Whether the contract is a proxy contract - * - * @return isProxy - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_IS_PROXY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getIsProxy() { - return isProxy; - } - - @JsonProperty(JSON_PROPERTY_IS_PROXY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIsProxy(@jakarta.annotation.Nullable Boolean isProxy) { - this.isProxy = isProxy; - } - - public ContractWithAbiDto implementation(@jakarta.annotation.Nullable String implementation) { - this.implementation = implementation; - return this; - } - - /** - * The implementation contract address - * - * @return implementation - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_IMPLEMENTATION) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getImplementation() { - return implementation; - } - - @JsonProperty(JSON_PROPERTY_IMPLEMENTATION) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setImplementation(@jakarta.annotation.Nullable String implementation) { - this.implementation = implementation; - } - - public ContractWithAbiDto isPublic(@jakarta.annotation.Nonnull Boolean isPublic) { - this.isPublic = isPublic; - return this; - } - - /** - * Whether the contract ABI is public - * - * @return isPublic - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_IS_PUBLIC) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Boolean getIsPublic() { - return isPublic; - } - - @JsonProperty(JSON_PROPERTY_IS_PUBLIC) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setIsPublic(@jakarta.annotation.Nonnull Boolean isPublic) { - this.isPublic = isPublic; - } - - /** Return true if this ContractWithAbiDto object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ContractWithAbiDto contractWithAbiDto = (ContractWithAbiDto) o; - return Objects.equals(this.contractAddress, contractWithAbiDto.contractAddress) - && Objects.equals(this.baseAssetId, contractWithAbiDto.baseAssetId) - && Objects.equals(this.name, contractWithAbiDto.name) - && Objects.equals(this.abi, contractWithAbiDto.abi) - && Objects.equals(this.isProxy, contractWithAbiDto.isProxy) - && Objects.equals(this.implementation, contractWithAbiDto.implementation) - && Objects.equals(this.isPublic, contractWithAbiDto.isPublic); - } - - @Override - public int hashCode() { - return Objects.hash( - contractAddress, baseAssetId, name, abi, isProxy, implementation, isPublic); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ContractWithAbiDto {\n"); - sb.append(" contractAddress: ").append(toIndentedString(contractAddress)).append("\n"); - sb.append(" baseAssetId: ").append(toIndentedString(baseAssetId)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" abi: ").append(toIndentedString(abi)).append("\n"); - sb.append(" isProxy: ").append(toIndentedString(isProxy)).append("\n"); - sb.append(" implementation: ").append(toIndentedString(implementation)).append("\n"); - sb.append(" isPublic: ").append(toIndentedString(isPublic)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `contractAddress` to the URL query string - if (getContractAddress() != null) { - joiner.add( - String.format( - "%scontractAddress%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getContractAddress())))); - } - - // add `baseAssetId` to the URL query string - if (getBaseAssetId() != null) { - joiner.add( - String.format( - "%sbaseAssetId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBaseAssetId())))); - } - - // add `name` to the URL query string - if (getName() != null) { - joiner.add( - String.format( - "%sname%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getName())))); - } - - // add `abi` to the URL query string - if (getAbi() != null) { - for (int i = 0; i < getAbi().size(); i++) { - if (getAbi().get(i) != null) { - joiner.add( - getAbi().get(i) - .toUrlQueryString( - String.format( - "%sabi%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } - } - - // add `isProxy` to the URL query string - if (getIsProxy() != null) { - joiner.add( - String.format( - "%sisProxy%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getIsProxy())))); - } - - // add `implementation` to the URL query string - if (getImplementation() != null) { - joiner.add( - String.format( - "%simplementation%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getImplementation())))); - } - - // add `isPublic` to the URL query string - if (getIsPublic() != null) { - joiner.add( - String.format( - "%sisPublic%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getIsPublic())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/ConversionOperationFailure.java b/src/main/java/com/fireblocks/sdk/model/ConversionOperationFailure.java index 3290dc17..4824458e 100644 --- a/src/main/java/com/fireblocks/sdk/model/ConversionOperationFailure.java +++ b/src/main/java/com/fireblocks/sdk/model/ConversionOperationFailure.java @@ -74,7 +74,7 @@ public static ReasonEnum fromValue(String value) { @jakarta.annotation.Nonnull private ReasonEnum reason; public static final String JSON_PROPERTY_DATA = "data"; - @jakarta.annotation.Nullable private Map data = new HashMap<>(); + @jakarta.annotation.Nullable private Map data; public ConversionOperationFailure() {} diff --git a/src/main/java/com/fireblocks/sdk/model/ConversionValidationFailure.java b/src/main/java/com/fireblocks/sdk/model/ConversionValidationFailure.java index bc6606f4..1c3a609b 100644 --- a/src/main/java/com/fireblocks/sdk/model/ConversionValidationFailure.java +++ b/src/main/java/com/fireblocks/sdk/model/ConversionValidationFailure.java @@ -101,7 +101,7 @@ public static ReasonEnum fromValue(String value) { @jakarta.annotation.Nonnull private ReasonEnum reason; public static final String JSON_PROPERTY_DATA = "data"; - @jakarta.annotation.Nullable private Map data = new HashMap<>(); + @jakarta.annotation.Nullable private Map data; public ConversionValidationFailure() {} diff --git a/src/main/java/com/fireblocks/sdk/model/Cosigner.java b/src/main/java/com/fireblocks/sdk/model/Cosigner.java index a03b64c9..0526ead8 100644 --- a/src/main/java/com/fireblocks/sdk/model/Cosigner.java +++ b/src/main/java/com/fireblocks/sdk/model/Cosigner.java @@ -17,7 +17,6 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -27,9 +26,7 @@ @JsonPropertyOrder({ Cosigner.JSON_PROPERTY_ARCHIVED, Cosigner.JSON_PROPERTY_ID, - Cosigner.JSON_PROPERTY_NAME, - Cosigner.JSON_PROPERTY_TYPE, - Cosigner.JSON_PROPERTY_VERSION + Cosigner.JSON_PROPERTY_NAME }) @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", @@ -44,51 +41,6 @@ public class Cosigner { public static final String JSON_PROPERTY_NAME = "name"; @jakarta.annotation.Nullable private String name; - /** The type of the cosigner */ - public enum TypeEnum { - SANDBOX(String.valueOf("SANDBOX")), - - SGX(String.valueOf("SGX")), - - GCP_CONFSPACE(String.valueOf("GCP-CONFSPACE")), - - AWS_NITRO(String.valueOf("AWS-NITRO")), - - PLAIN(String.valueOf("PLAIN")); - - private String value; - - TypeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static TypeEnum fromValue(String value) { - for (TypeEnum b : TypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_TYPE = "type"; - @jakarta.annotation.Nullable private TypeEnum type; - - public static final String JSON_PROPERTY_VERSION = "version"; - @jakarta.annotation.Nullable private Version version; - public Cosigner() {} @JsonCreator @@ -168,52 +120,6 @@ public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } - public Cosigner type(@jakarta.annotation.Nullable TypeEnum type) { - this.type = type; - return this; - } - - /** - * The type of the cosigner - * - * @return type - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public TypeEnum getType() { - return type; - } - - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(@jakarta.annotation.Nullable TypeEnum type) { - this.type = type; - } - - public Cosigner version(@jakarta.annotation.Nullable Version version) { - this.version = version; - return this; - } - - /** - * Get version - * - * @return version - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_VERSION) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Version getVersion() { - return version; - } - - @JsonProperty(JSON_PROPERTY_VERSION) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setVersion(@jakarta.annotation.Nullable Version version) { - this.version = version; - } - /** Return true if this Cosigner object is equal to o. */ @Override public boolean equals(Object o) { @@ -226,14 +132,12 @@ public boolean equals(Object o) { Cosigner cosigner = (Cosigner) o; return Objects.equals(this.archived, cosigner.archived) && Objects.equals(this.id, cosigner.id) - && Objects.equals(this.name, cosigner.name) - && Objects.equals(this.type, cosigner.type) - && Objects.equals(this.version, cosigner.version); + && Objects.equals(this.name, cosigner.name); } @Override public int hashCode() { - return Objects.hash(archived, id, name, type, version); + return Objects.hash(archived, id, name); } @Override @@ -243,8 +147,6 @@ public String toString() { sb.append(" archived: ").append(toIndentedString(archived)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append("}"); return sb.toString(); } @@ -320,21 +222,6 @@ public String toUrlQueryString(String prefix) { ApiClient.urlEncode(ApiClient.valueToString(getName())))); } - // add `type` to the URL query string - if (getType() != null) { - joiner.add( - String.format( - "%stype%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getType())))); - } - - // add `version` to the URL query string - if (getVersion() != null) { - joiner.add(getVersion().toUrlQueryString(prefix + "version" + suffix)); - } - return joiner.toString(); } } diff --git a/src/main/java/com/fireblocks/sdk/model/CosignersPaginatedResponse.java b/src/main/java/com/fireblocks/sdk/model/CosignersPaginatedResponse.java index d42dc7cf..a2f7be27 100644 --- a/src/main/java/com/fireblocks/sdk/model/CosignersPaginatedResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/CosignersPaginatedResponse.java @@ -33,7 +33,7 @@ comments = "Generator version: 7.14.0") public class CosignersPaginatedResponse { public static final String JSON_PROPERTY_DATA = "data"; - @jakarta.annotation.Nonnull private List data = new ArrayList<>(); + @jakarta.annotation.Nonnull private List data; public static final String JSON_PROPERTY_NEXT = "next"; @jakarta.annotation.Nullable private String next; diff --git a/src/main/java/com/fireblocks/sdk/model/CreateInternalTransferRequest.java b/src/main/java/com/fireblocks/sdk/model/CreateInternalTransferRequest.java index 5401abd6..55117856 100644 --- a/src/main/java/com/fireblocks/sdk/model/CreateInternalTransferRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/CreateInternalTransferRequest.java @@ -13,7 +13,6 @@ package com.fireblocks.sdk.model; -import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; @@ -33,34 +32,20 @@ comments = "Generator version: 7.14.0") public class CreateInternalTransferRequest { public static final String JSON_PROPERTY_ASSET = "asset"; - @jakarta.annotation.Nonnull private String asset; + @jakarta.annotation.Nullable private String asset; public static final String JSON_PROPERTY_AMOUNT = "amount"; - @jakarta.annotation.Nonnull private String amount; + @jakarta.annotation.Nullable private String amount; public static final String JSON_PROPERTY_SOURCE_TYPE = "sourceType"; - @jakarta.annotation.Nonnull private TradingAccountType sourceType; + @jakarta.annotation.Nullable private TradingAccountType sourceType; public static final String JSON_PROPERTY_DEST_TYPE = "destType"; - @jakarta.annotation.Nonnull private TradingAccountType destType; + @jakarta.annotation.Nullable private TradingAccountType destType; public CreateInternalTransferRequest() {} - @JsonCreator - public CreateInternalTransferRequest( - @JsonProperty(value = JSON_PROPERTY_ASSET, required = true) String asset, - @JsonProperty(value = JSON_PROPERTY_AMOUNT, required = true) String amount, - @JsonProperty(value = JSON_PROPERTY_SOURCE_TYPE, required = true) - TradingAccountType sourceType, - @JsonProperty(value = JSON_PROPERTY_DEST_TYPE, required = true) - TradingAccountType destType) { - this.asset = asset; - this.amount = amount; - this.sourceType = sourceType; - this.destType = destType; - } - - public CreateInternalTransferRequest asset(@jakarta.annotation.Nonnull String asset) { + public CreateInternalTransferRequest asset(@jakarta.annotation.Nullable String asset) { this.asset = asset; return this; } @@ -70,20 +55,20 @@ public CreateInternalTransferRequest asset(@jakarta.annotation.Nonnull String as * * @return asset */ - @jakarta.annotation.Nonnull + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ASSET) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getAsset() { return asset; } @JsonProperty(JSON_PROPERTY_ASSET) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAsset(@jakarta.annotation.Nonnull String asset) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setAsset(@jakarta.annotation.Nullable String asset) { this.asset = asset; } - public CreateInternalTransferRequest amount(@jakarta.annotation.Nonnull String amount) { + public CreateInternalTransferRequest amount(@jakarta.annotation.Nullable String amount) { this.amount = amount; return this; } @@ -93,21 +78,21 @@ public CreateInternalTransferRequest amount(@jakarta.annotation.Nonnull String a * * @return amount */ - @jakarta.annotation.Nonnull + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_AMOUNT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getAmount() { return amount; } @JsonProperty(JSON_PROPERTY_AMOUNT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAmount(@jakarta.annotation.Nonnull String amount) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setAmount(@jakarta.annotation.Nullable String amount) { this.amount = amount; } public CreateInternalTransferRequest sourceType( - @jakarta.annotation.Nonnull TradingAccountType sourceType) { + @jakarta.annotation.Nullable TradingAccountType sourceType) { this.sourceType = sourceType; return this; } @@ -117,21 +102,21 @@ public CreateInternalTransferRequest sourceType( * * @return sourceType */ - @jakarta.annotation.Nonnull + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SOURCE_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public TradingAccountType getSourceType() { return sourceType; } @JsonProperty(JSON_PROPERTY_SOURCE_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSourceType(@jakarta.annotation.Nonnull TradingAccountType sourceType) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSourceType(@jakarta.annotation.Nullable TradingAccountType sourceType) { this.sourceType = sourceType; } public CreateInternalTransferRequest destType( - @jakarta.annotation.Nonnull TradingAccountType destType) { + @jakarta.annotation.Nullable TradingAccountType destType) { this.destType = destType; return this; } @@ -141,16 +126,16 @@ public CreateInternalTransferRequest destType( * * @return destType */ - @jakarta.annotation.Nonnull + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DEST_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public TradingAccountType getDestType() { return destType; } @JsonProperty(JSON_PROPERTY_DEST_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDestType(@jakarta.annotation.Nonnull TradingAccountType destType) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDestType(@jakarta.annotation.Nullable TradingAccountType destType) { this.destType = destType; } diff --git a/src/main/java/com/fireblocks/sdk/model/CreateMultichainTokenRequest.java b/src/main/java/com/fireblocks/sdk/model/CreateMultichainTokenRequest.java deleted file mode 100644 index 41579b22..00000000 --- a/src/main/java/com/fireblocks/sdk/model/CreateMultichainTokenRequest.java +++ /dev/null @@ -1,487 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fireblocks.sdk.ApiClient; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** CreateMultichainTokenRequest */ -@JsonPropertyOrder({ - CreateMultichainTokenRequest.JSON_PROPERTY_VAULT_ACCOUNT_ID, - CreateMultichainTokenRequest.JSON_PROPERTY_CREATE_PARAMS, - CreateMultichainTokenRequest.JSON_PROPERTY_SALT, - CreateMultichainTokenRequest.JSON_PROPERTY_CHAINS, - CreateMultichainTokenRequest.JSON_PROPERTY_DISPLAY_NAME, - CreateMultichainTokenRequest.JSON_PROPERTY_USE_GASLESS, - CreateMultichainTokenRequest.JSON_PROPERTY_FEE, - CreateMultichainTokenRequest.JSON_PROPERTY_FEE_LEVEL -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class CreateMultichainTokenRequest { - public static final String JSON_PROPERTY_VAULT_ACCOUNT_ID = "vaultAccountId"; - @jakarta.annotation.Nonnull private String vaultAccountId; - - public static final String JSON_PROPERTY_CREATE_PARAMS = "createParams"; - @jakarta.annotation.Nonnull private EVMTokenCreateParamsDto createParams; - - public static final String JSON_PROPERTY_SALT = "salt"; - @jakarta.annotation.Nullable private String salt; - - public static final String JSON_PROPERTY_CHAINS = "chains"; - @jakarta.annotation.Nonnull private List chains = new ArrayList<>(); - - public static final String JSON_PROPERTY_DISPLAY_NAME = "displayName"; - @jakarta.annotation.Nullable private String displayName; - - public static final String JSON_PROPERTY_USE_GASLESS = "useGasless"; - @jakarta.annotation.Nullable private Boolean useGasless; - - public static final String JSON_PROPERTY_FEE = "fee"; - @jakarta.annotation.Nullable private String fee; - - /** - * Fee level for the write function transaction. interchangeable with the 'fee' field - */ - public enum FeeLevelEnum { - LOW(String.valueOf("LOW")), - - MEDIUM(String.valueOf("MEDIUM")), - - HIGH(String.valueOf("HIGH")); - - private String value; - - FeeLevelEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static FeeLevelEnum fromValue(String value) { - for (FeeLevelEnum b : FeeLevelEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_FEE_LEVEL = "feeLevel"; - @jakarta.annotation.Nullable private FeeLevelEnum feeLevel; - - public CreateMultichainTokenRequest() {} - - @JsonCreator - public CreateMultichainTokenRequest( - @JsonProperty(value = JSON_PROPERTY_VAULT_ACCOUNT_ID, required = true) - String vaultAccountId, - @JsonProperty(value = JSON_PROPERTY_CREATE_PARAMS, required = true) - EVMTokenCreateParamsDto createParams, - @JsonProperty(value = JSON_PROPERTY_CHAINS, required = true) List chains) { - this.vaultAccountId = vaultAccountId; - this.createParams = createParams; - this.chains = chains; - } - - public CreateMultichainTokenRequest vaultAccountId( - @jakarta.annotation.Nonnull String vaultAccountId) { - this.vaultAccountId = vaultAccountId; - return this; - } - - /** - * The id of the vault account that initiated the request to issue the token - * - * @return vaultAccountId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_VAULT_ACCOUNT_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getVaultAccountId() { - return vaultAccountId; - } - - @JsonProperty(JSON_PROPERTY_VAULT_ACCOUNT_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setVaultAccountId(@jakarta.annotation.Nonnull String vaultAccountId) { - this.vaultAccountId = vaultAccountId; - } - - public CreateMultichainTokenRequest createParams( - @jakarta.annotation.Nonnull EVMTokenCreateParamsDto createParams) { - this.createParams = createParams; - return this; - } - - /** - * Get createParams - * - * @return createParams - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CREATE_PARAMS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public EVMTokenCreateParamsDto getCreateParams() { - return createParams; - } - - @JsonProperty(JSON_PROPERTY_CREATE_PARAMS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCreateParams(@jakarta.annotation.Nonnull EVMTokenCreateParamsDto createParams) { - this.createParams = createParams; - } - - public CreateMultichainTokenRequest salt(@jakarta.annotation.Nullable String salt) { - this.salt = salt; - return this; - } - - /** - * The salt to calculate the deterministic address. Must be a number between 0 and 2^256 -1, for - * it to fit in the bytes32 parameter. - * - * @return salt - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SALT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getSalt() { - return salt; - } - - @JsonProperty(JSON_PROPERTY_SALT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSalt(@jakarta.annotation.Nullable String salt) { - this.salt = salt; - } - - public CreateMultichainTokenRequest chains(@jakarta.annotation.Nonnull List chains) { - this.chains = chains; - return this; - } - - public CreateMultichainTokenRequest addChainsItem(String chainsItem) { - if (this.chains == null) { - this.chains = new ArrayList<>(); - } - this.chains.add(chainsItem); - return this; - } - - /** - * The base asset identifiers of the blockchains (legacyId) to calculate deterministic addresses - * - * @return chains - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CHAINS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getChains() { - return chains; - } - - @JsonProperty(JSON_PROPERTY_CHAINS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setChains(@jakarta.annotation.Nonnull List chains) { - this.chains = chains; - } - - public CreateMultichainTokenRequest displayName( - @jakarta.annotation.Nullable String displayName) { - this.displayName = displayName; - return this; - } - - /** - * Get displayName - * - * @return displayName - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DISPLAY_NAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getDisplayName() { - return displayName; - } - - @JsonProperty(JSON_PROPERTY_DISPLAY_NAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDisplayName(@jakarta.annotation.Nullable String displayName) { - this.displayName = displayName; - } - - public CreateMultichainTokenRequest useGasless( - @jakarta.annotation.Nullable Boolean useGasless) { - this.useGasless = useGasless; - return this; - } - - /** - * Indicates whether the token should be created in a gasless manner, utilizing the ERC-2771 - * standard. When set to true, the transaction will be relayed by a designated relayer. The - * workspace must be configured to use Fireblocks gasless relay. - * - * @return useGasless - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USE_GASLESS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getUseGasless() { - return useGasless; - } - - @JsonProperty(JSON_PROPERTY_USE_GASLESS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUseGasless(@jakarta.annotation.Nullable Boolean useGasless) { - this.useGasless = useGasless; - } - - public CreateMultichainTokenRequest fee(@jakarta.annotation.Nullable String fee) { - this.fee = fee; - return this; - } - - /** - * Max fee amount for the write function transaction. interchangeable with the - * 'feeLevel' field - * - * @return fee - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FEE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getFee() { - return fee; - } - - @JsonProperty(JSON_PROPERTY_FEE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFee(@jakarta.annotation.Nullable String fee) { - this.fee = fee; - } - - public CreateMultichainTokenRequest feeLevel( - @jakarta.annotation.Nullable FeeLevelEnum feeLevel) { - this.feeLevel = feeLevel; - return this; - } - - /** - * Fee level for the write function transaction. interchangeable with the 'fee' field - * - * @return feeLevel - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FEE_LEVEL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public FeeLevelEnum getFeeLevel() { - return feeLevel; - } - - @JsonProperty(JSON_PROPERTY_FEE_LEVEL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFeeLevel(@jakarta.annotation.Nullable FeeLevelEnum feeLevel) { - this.feeLevel = feeLevel; - } - - /** Return true if this CreateMultichainTokenRequest object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - CreateMultichainTokenRequest createMultichainTokenRequest = - (CreateMultichainTokenRequest) o; - return Objects.equals(this.vaultAccountId, createMultichainTokenRequest.vaultAccountId) - && Objects.equals(this.createParams, createMultichainTokenRequest.createParams) - && Objects.equals(this.salt, createMultichainTokenRequest.salt) - && Objects.equals(this.chains, createMultichainTokenRequest.chains) - && Objects.equals(this.displayName, createMultichainTokenRequest.displayName) - && Objects.equals(this.useGasless, createMultichainTokenRequest.useGasless) - && Objects.equals(this.fee, createMultichainTokenRequest.fee) - && Objects.equals(this.feeLevel, createMultichainTokenRequest.feeLevel); - } - - @Override - public int hashCode() { - return Objects.hash( - vaultAccountId, createParams, salt, chains, displayName, useGasless, fee, feeLevel); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class CreateMultichainTokenRequest {\n"); - sb.append(" vaultAccountId: ").append(toIndentedString(vaultAccountId)).append("\n"); - sb.append(" createParams: ").append(toIndentedString(createParams)).append("\n"); - sb.append(" salt: ").append(toIndentedString(salt)).append("\n"); - sb.append(" chains: ").append(toIndentedString(chains)).append("\n"); - sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n"); - sb.append(" useGasless: ").append(toIndentedString(useGasless)).append("\n"); - sb.append(" fee: ").append(toIndentedString(fee)).append("\n"); - sb.append(" feeLevel: ").append(toIndentedString(feeLevel)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `vaultAccountId` to the URL query string - if (getVaultAccountId() != null) { - joiner.add( - String.format( - "%svaultAccountId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getVaultAccountId())))); - } - - // add `createParams` to the URL query string - if (getCreateParams() != null) { - joiner.add(getCreateParams().toUrlQueryString(prefix + "createParams" + suffix)); - } - - // add `salt` to the URL query string - if (getSalt() != null) { - joiner.add( - String.format( - "%ssalt%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getSalt())))); - } - - // add `chains` to the URL query string - if (getChains() != null) { - for (int i = 0; i < getChains().size(); i++) { - joiner.add( - String.format( - "%schains%s%s=%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode(ApiClient.valueToString(getChains().get(i))))); - } - } - - // add `displayName` to the URL query string - if (getDisplayName() != null) { - joiner.add( - String.format( - "%sdisplayName%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getDisplayName())))); - } - - // add `useGasless` to the URL query string - if (getUseGasless() != null) { - joiner.add( - String.format( - "%suseGasless%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getUseGasless())))); - } - - // add `fee` to the URL query string - if (getFee() != null) { - joiner.add( - String.format( - "%sfee%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getFee())))); - } - - // add `feeLevel` to the URL query string - if (getFeeLevel() != null) { - joiner.add( - String.format( - "%sfeeLevel%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getFeeLevel())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/CreateMultipleAccountsRequest.java b/src/main/java/com/fireblocks/sdk/model/CreateMultipleAccountsRequest.java index fa181dad..5d88436d 100644 --- a/src/main/java/com/fireblocks/sdk/model/CreateMultipleAccountsRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/CreateMultipleAccountsRequest.java @@ -13,7 +13,6 @@ package com.fireblocks.sdk.model; -import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; @@ -26,43 +25,21 @@ /** CreateMultipleAccountsRequest */ @JsonPropertyOrder({ CreateMultipleAccountsRequest.JSON_PROPERTY_COUNT, - CreateMultipleAccountsRequest.JSON_PROPERTY_BASE_ASSET_IDS, - CreateMultipleAccountsRequest.JSON_PROPERTY_NAMES, - CreateMultipleAccountsRequest.JSON_PROPERTY_VAULT_ACCOUNT_NAMES_STARTING_INDEX, - CreateMultipleAccountsRequest.JSON_PROPERTY_PREFIX + CreateMultipleAccountsRequest.JSON_PROPERTY_ASSET_IDS }) @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") public class CreateMultipleAccountsRequest { public static final String JSON_PROPERTY_COUNT = "count"; - @jakarta.annotation.Nonnull private Integer count; + @jakarta.annotation.Nullable private Integer count; - public static final String JSON_PROPERTY_BASE_ASSET_IDS = "baseAssetIds"; - @jakarta.annotation.Nonnull private List baseAssetIds = new ArrayList<>(); - - public static final String JSON_PROPERTY_NAMES = "names"; - @jakarta.annotation.Nullable private List names = new ArrayList<>(); - - public static final String JSON_PROPERTY_VAULT_ACCOUNT_NAMES_STARTING_INDEX = - "vaultAccountNamesStartingIndex"; - @jakarta.annotation.Nullable private Integer vaultAccountNamesStartingIndex; - - public static final String JSON_PROPERTY_PREFIX = "prefix"; - @jakarta.annotation.Nullable private String prefix; + public static final String JSON_PROPERTY_ASSET_IDS = "assetIds"; + @jakarta.annotation.Nullable private List assetIds; public CreateMultipleAccountsRequest() {} - @JsonCreator - public CreateMultipleAccountsRequest( - @JsonProperty(value = JSON_PROPERTY_COUNT, required = true) Integer count, - @JsonProperty(value = JSON_PROPERTY_BASE_ASSET_IDS, required = true) - List baseAssetIds) { - this.count = count; - this.baseAssetIds = baseAssetIds; - } - - public CreateMultipleAccountsRequest count(@jakarta.annotation.Nonnull Integer count) { + public CreateMultipleAccountsRequest count(@jakarta.annotation.Nullable Integer count) { this.count = count; return this; } @@ -72,130 +49,49 @@ public CreateMultipleAccountsRequest count(@jakarta.annotation.Nonnull Integer c * * @return count */ - @jakarta.annotation.Nonnull + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_COUNT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getCount() { return count; } @JsonProperty(JSON_PROPERTY_COUNT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCount(@jakarta.annotation.Nonnull Integer count) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCount(@jakarta.annotation.Nullable Integer count) { this.count = count; } - public CreateMultipleAccountsRequest baseAssetIds( - @jakarta.annotation.Nonnull List baseAssetIds) { - this.baseAssetIds = baseAssetIds; - return this; - } - - public CreateMultipleAccountsRequest addBaseAssetIdsItem(String baseAssetIdsItem) { - if (this.baseAssetIds == null) { - this.baseAssetIds = new ArrayList<>(); - } - this.baseAssetIds.add(baseAssetIdsItem); - return this; - } - - /** - * Array of base asset IDs - * - * @return baseAssetIds - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BASE_ASSET_IDS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getBaseAssetIds() { - return baseAssetIds; - } - - @JsonProperty(JSON_PROPERTY_BASE_ASSET_IDS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBaseAssetIds(@jakarta.annotation.Nonnull List baseAssetIds) { - this.baseAssetIds = baseAssetIds; - } - - public CreateMultipleAccountsRequest names(@jakarta.annotation.Nullable List names) { - this.names = names; + public CreateMultipleAccountsRequest assetIds( + @jakarta.annotation.Nullable List assetIds) { + this.assetIds = assetIds; return this; } - public CreateMultipleAccountsRequest addNamesItem(String namesItem) { - if (this.names == null) { - this.names = new ArrayList<>(); + public CreateMultipleAccountsRequest addAssetIdsItem(String assetIdsItem) { + if (this.assetIds == null) { + this.assetIds = new ArrayList<>(); } - this.names.add(namesItem); - return this; - } - - /** - * Names to assign to vault accounts. if vaultAccountNamesStartingIndex or prefix is used - * it'll fail - * - * @return names - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAMES) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getNames() { - return names; - } - - @JsonProperty(JSON_PROPERTY_NAMES) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNames(@jakarta.annotation.Nullable List names) { - this.names = names; - } - - public CreateMultipleAccountsRequest vaultAccountNamesStartingIndex( - @jakarta.annotation.Nullable Integer vaultAccountNamesStartingIndex) { - this.vaultAccountNamesStartingIndex = vaultAccountNamesStartingIndex; + this.assetIds.add(assetIdsItem); return this; } /** - * Copy vault accounts names starting from this index. If names array is used it'll fail + * Array of asset IDs * - * @return vaultAccountNamesStartingIndex + * @return assetIds */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_VAULT_ACCOUNT_NAMES_STARTING_INDEX) + @JsonProperty(JSON_PROPERTY_ASSET_IDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getVaultAccountNamesStartingIndex() { - return vaultAccountNamesStartingIndex; + public List getAssetIds() { + return assetIds; } - @JsonProperty(JSON_PROPERTY_VAULT_ACCOUNT_NAMES_STARTING_INDEX) + @JsonProperty(JSON_PROPERTY_ASSET_IDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setVaultAccountNamesStartingIndex( - @jakarta.annotation.Nullable Integer vaultAccountNamesStartingIndex) { - this.vaultAccountNamesStartingIndex = vaultAccountNamesStartingIndex; - } - - public CreateMultipleAccountsRequest prefix(@jakarta.annotation.Nullable String prefix) { - this.prefix = prefix; - return this; - } - - /** - * When copying from existing vault accounts (vaultAccountNamesStartingIndex) then adding a - * prefix to the names. If names array is used it'll fail - * - * @return prefix - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getPrefix() { - return prefix; - } - - @JsonProperty(JSON_PROPERTY_PREFIX) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefix(@jakarta.annotation.Nullable String prefix) { - this.prefix = prefix; + public void setAssetIds(@jakarta.annotation.Nullable List assetIds) { + this.assetIds = assetIds; } /** Return true if this CreateMultipleAccountsRequest object is equal to o. */ @@ -210,17 +106,12 @@ public boolean equals(Object o) { CreateMultipleAccountsRequest createMultipleAccountsRequest = (CreateMultipleAccountsRequest) o; return Objects.equals(this.count, createMultipleAccountsRequest.count) - && Objects.equals(this.baseAssetIds, createMultipleAccountsRequest.baseAssetIds) - && Objects.equals(this.names, createMultipleAccountsRequest.names) - && Objects.equals( - this.vaultAccountNamesStartingIndex, - createMultipleAccountsRequest.vaultAccountNamesStartingIndex) - && Objects.equals(this.prefix, createMultipleAccountsRequest.prefix); + && Objects.equals(this.assetIds, createMultipleAccountsRequest.assetIds); } @Override public int hashCode() { - return Objects.hash(count, baseAssetIds, names, vaultAccountNamesStartingIndex, prefix); + return Objects.hash(count, assetIds); } @Override @@ -228,12 +119,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CreateMultipleAccountsRequest {\n"); sb.append(" count: ").append(toIndentedString(count)).append("\n"); - sb.append(" baseAssetIds: ").append(toIndentedString(baseAssetIds)).append("\n"); - sb.append(" names: ").append(toIndentedString(names)).append("\n"); - sb.append(" vaultAccountNamesStartingIndex: ") - .append(toIndentedString(vaultAccountNamesStartingIndex)) - .append("\n"); - sb.append(" prefix: ").append(toIndentedString(prefix)).append("\n"); + sb.append(" assetIds: ").append(toIndentedString(assetIds)).append("\n"); sb.append("}"); return sb.toString(); } @@ -291,12 +177,12 @@ public String toUrlQueryString(String prefix) { ApiClient.urlEncode(ApiClient.valueToString(getCount())))); } - // add `baseAssetIds` to the URL query string - if (getBaseAssetIds() != null) { - for (int i = 0; i < getBaseAssetIds().size(); i++) { + // add `assetIds` to the URL query string + if (getAssetIds() != null) { + for (int i = 0; i < getAssetIds().size(); i++) { joiner.add( String.format( - "%sbaseAssetIds%s%s=%s", + "%sassetIds%s%s=%s", prefix, suffix, "".equals(suffix) @@ -304,47 +190,10 @@ public String toUrlQueryString(String prefix) { : String.format( "%s%d%s", containerPrefix, i, containerSuffix), ApiClient.urlEncode( - ApiClient.valueToString(getBaseAssetIds().get(i))))); - } - } - - // add `names` to the URL query string - if (getNames() != null) { - for (int i = 0; i < getNames().size(); i++) { - joiner.add( - String.format( - "%snames%s%s=%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode(ApiClient.valueToString(getNames().get(i))))); + ApiClient.valueToString(getAssetIds().get(i))))); } } - // add `vaultAccountNamesStartingIndex` to the URL query string - if (getVaultAccountNamesStartingIndex() != null) { - joiner.add( - String.format( - "%svaultAccountNamesStartingIndex%s=%s", - prefix, - suffix, - ApiClient.urlEncode( - ApiClient.valueToString(getVaultAccountNamesStartingIndex())))); - } - - // add `prefix` to the URL query string - if (getPrefix() != null) { - joiner.add( - String.format( - "%sprefix%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getPrefix())))); - } - return joiner.toString(); } } diff --git a/src/main/java/com/fireblocks/sdk/model/CreateMultipleDepositAddressesJobStatus.java b/src/main/java/com/fireblocks/sdk/model/CreateMultipleDepositAddressesJobStatus.java deleted file mode 100644 index e47cc1be..00000000 --- a/src/main/java/com/fireblocks/sdk/model/CreateMultipleDepositAddressesJobStatus.java +++ /dev/null @@ -1,254 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** CreateMultipleDepositAddressesJobStatus */ -@JsonPropertyOrder({ - CreateMultipleDepositAddressesJobStatus.JSON_PROPERTY_STATUS, - CreateMultipleDepositAddressesJobStatus.JSON_PROPERTY_ADDRESSES, - CreateMultipleDepositAddressesJobStatus.JSON_PROPERTY_ERROR_MESSAGE -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class CreateMultipleDepositAddressesJobStatus { - public static final String JSON_PROPERTY_STATUS = "status"; - @jakarta.annotation.Nonnull private String status; - - public static final String JSON_PROPERTY_ADDRESSES = "addresses"; - @jakarta.annotation.Nullable private List addresses = new ArrayList<>(); - - public static final String JSON_PROPERTY_ERROR_MESSAGE = "errorMessage"; - @jakarta.annotation.Nullable private String errorMessage; - - public CreateMultipleDepositAddressesJobStatus() {} - - @JsonCreator - public CreateMultipleDepositAddressesJobStatus( - @JsonProperty(value = JSON_PROPERTY_STATUS, required = true) String status) { - this.status = status; - } - - public CreateMultipleDepositAddressesJobStatus status( - @jakarta.annotation.Nonnull String status) { - this.status = status; - return this; - } - - /** - * Get status - * - * @return status - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_STATUS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getStatus() { - return status; - } - - @JsonProperty(JSON_PROPERTY_STATUS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStatus(@jakarta.annotation.Nonnull String status) { - this.status = status; - } - - public CreateMultipleDepositAddressesJobStatus addresses( - @jakarta.annotation.Nullable List addresses) { - this.addresses = addresses; - return this; - } - - public CreateMultipleDepositAddressesJobStatus addAddressesItem(NewAddress addressesItem) { - if (this.addresses == null) { - this.addresses = new ArrayList<>(); - } - this.addresses.add(addressesItem); - return this; - } - - /** - * Get addresses - * - * @return addresses - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ADDRESSES) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getAddresses() { - return addresses; - } - - @JsonProperty(JSON_PROPERTY_ADDRESSES) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAddresses(@jakarta.annotation.Nullable List addresses) { - this.addresses = addresses; - } - - public CreateMultipleDepositAddressesJobStatus errorMessage( - @jakarta.annotation.Nullable String errorMessage) { - this.errorMessage = errorMessage; - return this; - } - - /** - * Get errorMessage - * - * @return errorMessage - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ERROR_MESSAGE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getErrorMessage() { - return errorMessage; - } - - @JsonProperty(JSON_PROPERTY_ERROR_MESSAGE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setErrorMessage(@jakarta.annotation.Nullable String errorMessage) { - this.errorMessage = errorMessage; - } - - /** Return true if this CreateMultipleDepositAddressesJobStatus object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - CreateMultipleDepositAddressesJobStatus createMultipleDepositAddressesJobStatus = - (CreateMultipleDepositAddressesJobStatus) o; - return Objects.equals(this.status, createMultipleDepositAddressesJobStatus.status) - && Objects.equals(this.addresses, createMultipleDepositAddressesJobStatus.addresses) - && Objects.equals( - this.errorMessage, createMultipleDepositAddressesJobStatus.errorMessage); - } - - @Override - public int hashCode() { - return Objects.hash(status, addresses, errorMessage); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class CreateMultipleDepositAddressesJobStatus {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append(" addresses: ").append(toIndentedString(addresses)).append("\n"); - sb.append(" errorMessage: ").append(toIndentedString(errorMessage)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `status` to the URL query string - if (getStatus() != null) { - joiner.add( - String.format( - "%sstatus%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getStatus())))); - } - - // add `addresses` to the URL query string - if (getAddresses() != null) { - for (int i = 0; i < getAddresses().size(); i++) { - if (getAddresses().get(i) != null) { - joiner.add( - getAddresses() - .get(i) - .toUrlQueryString( - String.format( - "%saddresses%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } - } - - // add `errorMessage` to the URL query string - if (getErrorMessage() != null) { - joiner.add( - String.format( - "%serrorMessage%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getErrorMessage())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/CreateMultipleDepositAddressesRequest.java b/src/main/java/com/fireblocks/sdk/model/CreateMultipleDepositAddressesRequest.java deleted file mode 100644 index 3d2142c0..00000000 --- a/src/main/java/com/fireblocks/sdk/model/CreateMultipleDepositAddressesRequest.java +++ /dev/null @@ -1,395 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** CreateMultipleDepositAddressesRequest */ -@JsonPropertyOrder({ - CreateMultipleDepositAddressesRequest.JSON_PROPERTY_VAULT_ACCOUNT_ID, - CreateMultipleDepositAddressesRequest.JSON_PROPERTY_ASSET_ID, - CreateMultipleDepositAddressesRequest.JSON_PROPERTY_COUNT, - CreateMultipleDepositAddressesRequest.JSON_PROPERTY_DESCRIPTIONS, - CreateMultipleDepositAddressesRequest.JSON_PROPERTY_VAULT_ACCOUNT_TO_COPY_DESC_FROM, - CreateMultipleDepositAddressesRequest.JSON_PROPERTY_VAULT_ACCOUNT_TO_COPY_DESC_FROM_INDEX -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class CreateMultipleDepositAddressesRequest { - public static final String JSON_PROPERTY_VAULT_ACCOUNT_ID = "vaultAccountId"; - @jakarta.annotation.Nonnull private Integer vaultAccountId; - - public static final String JSON_PROPERTY_ASSET_ID = "assetId"; - @jakarta.annotation.Nonnull private String assetId; - - public static final String JSON_PROPERTY_COUNT = "count"; - @jakarta.annotation.Nonnull private Integer count; - - public static final String JSON_PROPERTY_DESCRIPTIONS = "descriptions"; - @jakarta.annotation.Nullable private List descriptions = new ArrayList<>(); - - public static final String JSON_PROPERTY_VAULT_ACCOUNT_TO_COPY_DESC_FROM = - "vaultAccountToCopyDescFrom"; - @jakarta.annotation.Nullable private Integer vaultAccountToCopyDescFrom; - - public static final String JSON_PROPERTY_VAULT_ACCOUNT_TO_COPY_DESC_FROM_INDEX = - "vaultAccountToCopyDescFromIndex"; - @jakarta.annotation.Nullable private Integer vaultAccountToCopyDescFromIndex; - - public CreateMultipleDepositAddressesRequest() {} - - @JsonCreator - public CreateMultipleDepositAddressesRequest( - @JsonProperty(value = JSON_PROPERTY_VAULT_ACCOUNT_ID, required = true) - Integer vaultAccountId, - @JsonProperty(value = JSON_PROPERTY_ASSET_ID, required = true) String assetId, - @JsonProperty(value = JSON_PROPERTY_COUNT, required = true) Integer count) { - this.vaultAccountId = vaultAccountId; - this.assetId = assetId; - this.count = count; - } - - public CreateMultipleDepositAddressesRequest vaultAccountId( - @jakarta.annotation.Nonnull Integer vaultAccountId) { - this.vaultAccountId = vaultAccountId; - return this; - } - - /** - * Existing Vault account ID to add deposit addresses to - * - * @return vaultAccountId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_VAULT_ACCOUNT_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getVaultAccountId() { - return vaultAccountId; - } - - @JsonProperty(JSON_PROPERTY_VAULT_ACCOUNT_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setVaultAccountId(@jakarta.annotation.Nonnull Integer vaultAccountId) { - this.vaultAccountId = vaultAccountId; - } - - public CreateMultipleDepositAddressesRequest assetId( - @jakarta.annotation.Nonnull String assetId) { - this.assetId = assetId; - return this; - } - - /** - * asset ID - * - * @return assetId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ASSET_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getAssetId() { - return assetId; - } - - @JsonProperty(JSON_PROPERTY_ASSET_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAssetId(@jakarta.annotation.Nonnull String assetId) { - this.assetId = assetId; - } - - public CreateMultipleDepositAddressesRequest count(@jakarta.annotation.Nonnull Integer count) { - this.count = count; - return this; - } - - /** - * Count of deposit addresses to issue - * - * @return count - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_COUNT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getCount() { - return count; - } - - @JsonProperty(JSON_PROPERTY_COUNT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCount(@jakarta.annotation.Nonnull Integer count) { - this.count = count; - } - - public CreateMultipleDepositAddressesRequest descriptions( - @jakarta.annotation.Nullable List descriptions) { - this.descriptions = descriptions; - return this; - } - - public CreateMultipleDepositAddressesRequest addDescriptionsItem(String descriptionsItem) { - if (this.descriptions == null) { - this.descriptions = new ArrayList<>(); - } - this.descriptions.add(descriptionsItem); - return this; - } - - /** - * Desctiptions of the newly created addresses - * - * @return descriptions - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DESCRIPTIONS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getDescriptions() { - return descriptions; - } - - @JsonProperty(JSON_PROPERTY_DESCRIPTIONS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDescriptions(@jakarta.annotation.Nullable List descriptions) { - this.descriptions = descriptions; - } - - public CreateMultipleDepositAddressesRequest vaultAccountToCopyDescFrom( - @jakarta.annotation.Nullable Integer vaultAccountToCopyDescFrom) { - this.vaultAccountToCopyDescFrom = vaultAccountToCopyDescFrom; - return this; - } - - /** - * Existing Vault Account ID to copy deposit addresses descriptions from in case no descriptions - * were provided - * - * @return vaultAccountToCopyDescFrom - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_VAULT_ACCOUNT_TO_COPY_DESC_FROM) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getVaultAccountToCopyDescFrom() { - return vaultAccountToCopyDescFrom; - } - - @JsonProperty(JSON_PROPERTY_VAULT_ACCOUNT_TO_COPY_DESC_FROM) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setVaultAccountToCopyDescFrom( - @jakarta.annotation.Nullable Integer vaultAccountToCopyDescFrom) { - this.vaultAccountToCopyDescFrom = vaultAccountToCopyDescFrom; - } - - public CreateMultipleDepositAddressesRequest vaultAccountToCopyDescFromIndex( - @jakarta.annotation.Nullable Integer vaultAccountToCopyDescFromIndex) { - this.vaultAccountToCopyDescFromIndex = vaultAccountToCopyDescFromIndex; - return this; - } - - /** - * Existing length within the vault account to copy deposit addresses descriptions from - * - * @return vaultAccountToCopyDescFromIndex - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_VAULT_ACCOUNT_TO_COPY_DESC_FROM_INDEX) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getVaultAccountToCopyDescFromIndex() { - return vaultAccountToCopyDescFromIndex; - } - - @JsonProperty(JSON_PROPERTY_VAULT_ACCOUNT_TO_COPY_DESC_FROM_INDEX) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setVaultAccountToCopyDescFromIndex( - @jakarta.annotation.Nullable Integer vaultAccountToCopyDescFromIndex) { - this.vaultAccountToCopyDescFromIndex = vaultAccountToCopyDescFromIndex; - } - - /** Return true if this CreateMultipleDepositAddressesRequest object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - CreateMultipleDepositAddressesRequest createMultipleDepositAddressesRequest = - (CreateMultipleDepositAddressesRequest) o; - return Objects.equals( - this.vaultAccountId, createMultipleDepositAddressesRequest.vaultAccountId) - && Objects.equals(this.assetId, createMultipleDepositAddressesRequest.assetId) - && Objects.equals(this.count, createMultipleDepositAddressesRequest.count) - && Objects.equals( - this.descriptions, createMultipleDepositAddressesRequest.descriptions) - && Objects.equals( - this.vaultAccountToCopyDescFrom, - createMultipleDepositAddressesRequest.vaultAccountToCopyDescFrom) - && Objects.equals( - this.vaultAccountToCopyDescFromIndex, - createMultipleDepositAddressesRequest.vaultAccountToCopyDescFromIndex); - } - - @Override - public int hashCode() { - return Objects.hash( - vaultAccountId, - assetId, - count, - descriptions, - vaultAccountToCopyDescFrom, - vaultAccountToCopyDescFromIndex); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class CreateMultipleDepositAddressesRequest {\n"); - sb.append(" vaultAccountId: ").append(toIndentedString(vaultAccountId)).append("\n"); - sb.append(" assetId: ").append(toIndentedString(assetId)).append("\n"); - sb.append(" count: ").append(toIndentedString(count)).append("\n"); - sb.append(" descriptions: ").append(toIndentedString(descriptions)).append("\n"); - sb.append(" vaultAccountToCopyDescFrom: ") - .append(toIndentedString(vaultAccountToCopyDescFrom)) - .append("\n"); - sb.append(" vaultAccountToCopyDescFromIndex: ") - .append(toIndentedString(vaultAccountToCopyDescFromIndex)) - .append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `vaultAccountId` to the URL query string - if (getVaultAccountId() != null) { - joiner.add( - String.format( - "%svaultAccountId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getVaultAccountId())))); - } - - // add `assetId` to the URL query string - if (getAssetId() != null) { - joiner.add( - String.format( - "%sassetId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAssetId())))); - } - - // add `count` to the URL query string - if (getCount() != null) { - joiner.add( - String.format( - "%scount%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getCount())))); - } - - // add `descriptions` to the URL query string - if (getDescriptions() != null) { - for (int i = 0; i < getDescriptions().size(); i++) { - joiner.add( - String.format( - "%sdescriptions%s%s=%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode( - ApiClient.valueToString(getDescriptions().get(i))))); - } - } - - // add `vaultAccountToCopyDescFrom` to the URL query string - if (getVaultAccountToCopyDescFrom() != null) { - joiner.add( - String.format( - "%svaultAccountToCopyDescFrom%s=%s", - prefix, - suffix, - ApiClient.urlEncode( - ApiClient.valueToString(getVaultAccountToCopyDescFrom())))); - } - - // add `vaultAccountToCopyDescFromIndex` to the URL query string - if (getVaultAccountToCopyDescFromIndex() != null) { - joiner.add( - String.format( - "%svaultAccountToCopyDescFromIndex%s=%s", - prefix, - suffix, - ApiClient.urlEncode( - ApiClient.valueToString( - getVaultAccountToCopyDescFromIndex())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/CreateMultipleVaultAccountsJobStatus.java b/src/main/java/com/fireblocks/sdk/model/CreateMultipleVaultAccountsJobStatus.java deleted file mode 100644 index 749aa00d..00000000 --- a/src/main/java/com/fireblocks/sdk/model/CreateMultipleVaultAccountsJobStatus.java +++ /dev/null @@ -1,253 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -import java.util.StringJoiner; - -/** CreateMultipleVaultAccountsJobStatus */ -@JsonPropertyOrder({ - CreateMultipleVaultAccountsJobStatus.JSON_PROPERTY_STATUS, - CreateMultipleVaultAccountsJobStatus.JSON_PROPERTY_VAULT_ACCOUNTS, - CreateMultipleVaultAccountsJobStatus.JSON_PROPERTY_ERROR_MESSAGE -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class CreateMultipleVaultAccountsJobStatus { - public static final String JSON_PROPERTY_STATUS = "status"; - @jakarta.annotation.Nonnull private String status; - - public static final String JSON_PROPERTY_VAULT_ACCOUNTS = "vaultAccounts"; - - @jakarta.annotation.Nullable - private Map> vaultAccounts = new HashMap<>(); - - public static final String JSON_PROPERTY_ERROR_MESSAGE = "errorMessage"; - @jakarta.annotation.Nullable private String errorMessage; - - public CreateMultipleVaultAccountsJobStatus() {} - - @JsonCreator - public CreateMultipleVaultAccountsJobStatus( - @JsonProperty(value = JSON_PROPERTY_STATUS, required = true) String status) { - this.status = status; - } - - public CreateMultipleVaultAccountsJobStatus status(@jakarta.annotation.Nonnull String status) { - this.status = status; - return this; - } - - /** - * Get status - * - * @return status - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_STATUS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getStatus() { - return status; - } - - @JsonProperty(JSON_PROPERTY_STATUS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStatus(@jakarta.annotation.Nonnull String status) { - this.status = status; - } - - public CreateMultipleVaultAccountsJobStatus vaultAccounts( - @jakarta.annotation.Nullable Map> vaultAccounts) { - this.vaultAccounts = vaultAccounts; - return this; - } - - public CreateMultipleVaultAccountsJobStatus putVaultAccountsItem( - String key, Map vaultAccountsItem) { - if (this.vaultAccounts == null) { - this.vaultAccounts = new HashMap<>(); - } - this.vaultAccounts.put(key, vaultAccountsItem); - return this; - } - - /** - * Mapping between VaultAccountId to a mapping of asset to address - * - * @return vaultAccounts - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_VAULT_ACCOUNTS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map> getVaultAccounts() { - return vaultAccounts; - } - - @JsonProperty(JSON_PROPERTY_VAULT_ACCOUNTS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setVaultAccounts( - @jakarta.annotation.Nullable Map> vaultAccounts) { - this.vaultAccounts = vaultAccounts; - } - - public CreateMultipleVaultAccountsJobStatus errorMessage( - @jakarta.annotation.Nullable String errorMessage) { - this.errorMessage = errorMessage; - return this; - } - - /** - * Get errorMessage - * - * @return errorMessage - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ERROR_MESSAGE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getErrorMessage() { - return errorMessage; - } - - @JsonProperty(JSON_PROPERTY_ERROR_MESSAGE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setErrorMessage(@jakarta.annotation.Nullable String errorMessage) { - this.errorMessage = errorMessage; - } - - /** Return true if this CreateMultipleVaultAccountsJobStatus object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - CreateMultipleVaultAccountsJobStatus createMultipleVaultAccountsJobStatus = - (CreateMultipleVaultAccountsJobStatus) o; - return Objects.equals(this.status, createMultipleVaultAccountsJobStatus.status) - && Objects.equals( - this.vaultAccounts, createMultipleVaultAccountsJobStatus.vaultAccounts) - && Objects.equals( - this.errorMessage, createMultipleVaultAccountsJobStatus.errorMessage); - } - - @Override - public int hashCode() { - return Objects.hash(status, vaultAccounts, errorMessage); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class CreateMultipleVaultAccountsJobStatus {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append(" vaultAccounts: ").append(toIndentedString(vaultAccounts)).append("\n"); - sb.append(" errorMessage: ").append(toIndentedString(errorMessage)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `status` to the URL query string - if (getStatus() != null) { - joiner.add( - String.format( - "%sstatus%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getStatus())))); - } - - // add `vaultAccounts` to the URL query string - if (getVaultAccounts() != null) { - for (String _key : getVaultAccounts().keySet()) { - joiner.add( - String.format( - "%svaultAccounts%s%s=%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", containerPrefix, _key, containerSuffix), - getVaultAccounts().get(_key), - ApiClient.urlEncode( - ApiClient.valueToString(getVaultAccounts().get(_key))))); - } - } - - // add `errorMessage` to the URL query string - if (getErrorMessage() != null) { - joiner.add( - String.format( - "%serrorMessage%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getErrorMessage())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/CreateNcwConnectionRequest.java b/src/main/java/com/fireblocks/sdk/model/CreateNcwConnectionRequest.java index 7c89ab59..cdc5a439 100644 --- a/src/main/java/com/fireblocks/sdk/model/CreateNcwConnectionRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/CreateNcwConnectionRequest.java @@ -83,7 +83,7 @@ public static FeeLevelEnum fromValue(String value) { @jakarta.annotation.Nonnull private String uri; public static final String JSON_PROPERTY_CHAIN_IDS = "chainIds"; - @jakarta.annotation.Nullable private List chainIds = new ArrayList<>(); + @jakarta.annotation.Nullable private List chainIds; public CreateNcwConnectionRequest() {} diff --git a/src/main/java/com/fireblocks/sdk/model/CreateNetworkIdRequest.java b/src/main/java/com/fireblocks/sdk/model/CreateNetworkIdRequest.java index 9b86c6dd..f87b13a7 100644 --- a/src/main/java/com/fireblocks/sdk/model/CreateNetworkIdRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/CreateNetworkIdRequest.java @@ -36,9 +36,7 @@ public class CreateNetworkIdRequest { @jakarta.annotation.Nonnull private String name; public static final String JSON_PROPERTY_ROUTING_POLICY = "routingPolicy"; - - @jakarta.annotation.Nullable - private Map routingPolicy = new HashMap<>(); + @jakarta.annotation.Nullable private Map routingPolicy; public CreateNetworkIdRequest() {} diff --git a/src/main/java/com/fireblocks/sdk/model/CreateOrderRequest.java b/src/main/java/com/fireblocks/sdk/model/CreateOrderRequest.java deleted file mode 100644 index 5f274578..00000000 --- a/src/main/java/com/fireblocks/sdk/model/CreateOrderRequest.java +++ /dev/null @@ -1,359 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** CreateOrderRequest */ -@JsonPropertyOrder({ - CreateOrderRequest.JSON_PROPERTY_VIA, - CreateOrderRequest.JSON_PROPERTY_EXECUTION_REQUEST_DETAILS, - CreateOrderRequest.JSON_PROPERTY_SETTLEMENT, - CreateOrderRequest.JSON_PROPERTY_PARTICIPANTS_IDENTIFICATION, - CreateOrderRequest.JSON_PROPERTY_CUSTOMER_INTERNAL_REFERENCE_ID, - CreateOrderRequest.JSON_PROPERTY_NOTE -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class CreateOrderRequest { - public static final String JSON_PROPERTY_VIA = "via"; - @jakarta.annotation.Nonnull private AccessType via; - - public static final String JSON_PROPERTY_EXECUTION_REQUEST_DETAILS = "executionRequestDetails"; - @jakarta.annotation.Nonnull private ExecutionRequestDetails executionRequestDetails; - - public static final String JSON_PROPERTY_SETTLEMENT = "settlement"; - @jakarta.annotation.Nonnull private Settlement settlement; - - public static final String JSON_PROPERTY_PARTICIPANTS_IDENTIFICATION = - "participantsIdentification"; - @jakarta.annotation.Nullable private ParticipantsIdentification participantsIdentification; - - public static final String JSON_PROPERTY_CUSTOMER_INTERNAL_REFERENCE_ID = - "customerInternalReferenceId"; - @jakarta.annotation.Nullable private String customerInternalReferenceId; - - public static final String JSON_PROPERTY_NOTE = "note"; - @jakarta.annotation.Nullable private String note; - - public CreateOrderRequest() {} - - @JsonCreator - public CreateOrderRequest( - @JsonProperty(value = JSON_PROPERTY_VIA, required = true) AccessType via, - @JsonProperty(value = JSON_PROPERTY_EXECUTION_REQUEST_DETAILS, required = true) - ExecutionRequestDetails executionRequestDetails, - @JsonProperty(value = JSON_PROPERTY_SETTLEMENT, required = true) - Settlement settlement) { - this.via = via; - this.executionRequestDetails = executionRequestDetails; - this.settlement = settlement; - } - - public CreateOrderRequest via(@jakarta.annotation.Nonnull AccessType via) { - this.via = via; - return this; - } - - /** - * Get via - * - * @return via - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_VIA) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccessType getVia() { - return via; - } - - @JsonProperty(JSON_PROPERTY_VIA) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setVia(@jakarta.annotation.Nonnull AccessType via) { - this.via = via; - } - - public CreateOrderRequest executionRequestDetails( - @jakarta.annotation.Nonnull ExecutionRequestDetails executionRequestDetails) { - this.executionRequestDetails = executionRequestDetails; - return this; - } - - /** - * Get executionRequestDetails - * - * @return executionRequestDetails - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_EXECUTION_REQUEST_DETAILS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public ExecutionRequestDetails getExecutionRequestDetails() { - return executionRequestDetails; - } - - @JsonProperty(JSON_PROPERTY_EXECUTION_REQUEST_DETAILS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setExecutionRequestDetails( - @jakarta.annotation.Nonnull ExecutionRequestDetails executionRequestDetails) { - this.executionRequestDetails = executionRequestDetails; - } - - public CreateOrderRequest settlement(@jakarta.annotation.Nonnull Settlement settlement) { - this.settlement = settlement; - return this; - } - - /** - * Get settlement - * - * @return settlement - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SETTLEMENT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Settlement getSettlement() { - return settlement; - } - - @JsonProperty(JSON_PROPERTY_SETTLEMENT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSettlement(@jakarta.annotation.Nonnull Settlement settlement) { - this.settlement = settlement; - } - - public CreateOrderRequest participantsIdentification( - @jakarta.annotation.Nullable ParticipantsIdentification participantsIdentification) { - this.participantsIdentification = participantsIdentification; - return this; - } - - /** - * Get participantsIdentification - * - * @return participantsIdentification - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PARTICIPANTS_IDENTIFICATION) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public ParticipantsIdentification getParticipantsIdentification() { - return participantsIdentification; - } - - @JsonProperty(JSON_PROPERTY_PARTICIPANTS_IDENTIFICATION) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setParticipantsIdentification( - @jakarta.annotation.Nullable ParticipantsIdentification participantsIdentification) { - this.participantsIdentification = participantsIdentification; - } - - public CreateOrderRequest customerInternalReferenceId( - @jakarta.annotation.Nullable String customerInternalReferenceId) { - this.customerInternalReferenceId = customerInternalReferenceId; - return this; - } - - /** - * Internal reference ID for the customer - * - * @return customerInternalReferenceId - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CUSTOMER_INTERNAL_REFERENCE_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getCustomerInternalReferenceId() { - return customerInternalReferenceId; - } - - @JsonProperty(JSON_PROPERTY_CUSTOMER_INTERNAL_REFERENCE_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCustomerInternalReferenceId( - @jakarta.annotation.Nullable String customerInternalReferenceId) { - this.customerInternalReferenceId = customerInternalReferenceId; - } - - public CreateOrderRequest note(@jakarta.annotation.Nullable String note) { - this.note = note; - return this; - } - - /** - * Optional note for the order - * - * @return note - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NOTE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getNote() { - return note; - } - - @JsonProperty(JSON_PROPERTY_NOTE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNote(@jakarta.annotation.Nullable String note) { - this.note = note; - } - - /** Return true if this CreateOrderRequest object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - CreateOrderRequest createOrderRequest = (CreateOrderRequest) o; - return Objects.equals(this.via, createOrderRequest.via) - && Objects.equals( - this.executionRequestDetails, createOrderRequest.executionRequestDetails) - && Objects.equals(this.settlement, createOrderRequest.settlement) - && Objects.equals( - this.participantsIdentification, - createOrderRequest.participantsIdentification) - && Objects.equals( - this.customerInternalReferenceId, - createOrderRequest.customerInternalReferenceId) - && Objects.equals(this.note, createOrderRequest.note); - } - - @Override - public int hashCode() { - return Objects.hash( - via, - executionRequestDetails, - settlement, - participantsIdentification, - customerInternalReferenceId, - note); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class CreateOrderRequest {\n"); - sb.append(" via: ").append(toIndentedString(via)).append("\n"); - sb.append(" executionRequestDetails: ") - .append(toIndentedString(executionRequestDetails)) - .append("\n"); - sb.append(" settlement: ").append(toIndentedString(settlement)).append("\n"); - sb.append(" participantsIdentification: ") - .append(toIndentedString(participantsIdentification)) - .append("\n"); - sb.append(" customerInternalReferenceId: ") - .append(toIndentedString(customerInternalReferenceId)) - .append("\n"); - sb.append(" note: ").append(toIndentedString(note)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `via` to the URL query string - if (getVia() != null) { - joiner.add(getVia().toUrlQueryString(prefix + "via" + suffix)); - } - - // add `executionRequestDetails` to the URL query string - if (getExecutionRequestDetails() != null) { - joiner.add( - getExecutionRequestDetails() - .toUrlQueryString(prefix + "executionRequestDetails" + suffix)); - } - - // add `settlement` to the URL query string - if (getSettlement() != null) { - joiner.add(getSettlement().toUrlQueryString(prefix + "settlement" + suffix)); - } - - // add `participantsIdentification` to the URL query string - if (getParticipantsIdentification() != null) { - joiner.add( - getParticipantsIdentification() - .toUrlQueryString(prefix + "participantsIdentification" + suffix)); - } - - // add `customerInternalReferenceId` to the URL query string - if (getCustomerInternalReferenceId() != null) { - joiner.add( - String.format( - "%scustomerInternalReferenceId%s=%s", - prefix, - suffix, - ApiClient.urlEncode( - ApiClient.valueToString(getCustomerInternalReferenceId())))); - } - - // add `note` to the URL query string - if (getNote() != null) { - joiner.add( - String.format( - "%snote%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getNote())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/CreatePayoutRequest.java b/src/main/java/com/fireblocks/sdk/model/CreatePayoutRequest.java index 7b81b148..695f054b 100644 --- a/src/main/java/com/fireblocks/sdk/model/CreatePayoutRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/CreatePayoutRequest.java @@ -35,7 +35,7 @@ public class CreatePayoutRequest { @jakarta.annotation.Nonnull private PaymentAccount paymentAccount; public static final String JSON_PROPERTY_INSTRUCTION_SET = "instructionSet"; - @jakarta.annotation.Nonnull private List instructionSet = new ArrayList<>(); + @jakarta.annotation.Nonnull private List instructionSet; public CreatePayoutRequest() {} diff --git a/src/main/java/com/fireblocks/sdk/model/CreateQuote.java b/src/main/java/com/fireblocks/sdk/model/CreateQuote.java deleted file mode 100644 index d5426127..00000000 --- a/src/main/java/com/fireblocks/sdk/model/CreateQuote.java +++ /dev/null @@ -1,533 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fireblocks.sdk.ApiClient; -import java.math.BigDecimal; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** CreateQuote */ -@JsonPropertyOrder({ - CreateQuote.JSON_PROPERTY_SCOPE, - CreateQuote.JSON_PROPERTY_BASE_ASSET_ID, - CreateQuote.JSON_PROPERTY_BASE_ASSET_RAIL, - CreateQuote.JSON_PROPERTY_QUOTE_ASSET_ID, - CreateQuote.JSON_PROPERTY_QUOTE_ASSET_RAIL, - CreateQuote.JSON_PROPERTY_BASE_AMOUNT, - CreateQuote.JSON_PROPERTY_SLIPPAGE_BPS, - CreateQuote.JSON_PROPERTY_SETTLEMENT, - CreateQuote.JSON_PROPERTY_SIDE -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class CreateQuote { - public static final String JSON_PROPERTY_SCOPE = "scope"; - @jakarta.annotation.Nonnull private List scope = new ArrayList<>(); - - public static final String JSON_PROPERTY_BASE_ASSET_ID = "baseAssetId"; - @jakarta.annotation.Nonnull private String baseAssetId; - - public static final String JSON_PROPERTY_BASE_ASSET_RAIL = "baseAssetRail"; - @jakarta.annotation.Nullable private TransferRail baseAssetRail; - - public static final String JSON_PROPERTY_QUOTE_ASSET_ID = "quoteAssetId"; - @jakarta.annotation.Nonnull private String quoteAssetId; - - public static final String JSON_PROPERTY_QUOTE_ASSET_RAIL = "quoteAssetRail"; - @jakarta.annotation.Nullable private TransferRail quoteAssetRail; - - public static final String JSON_PROPERTY_BASE_AMOUNT = "baseAmount"; - @jakarta.annotation.Nonnull private String baseAmount; - - public static final String JSON_PROPERTY_SLIPPAGE_BPS = "slippageBps"; - @jakarta.annotation.Nullable private BigDecimal slippageBps = new BigDecimal("50"); - - public static final String JSON_PROPERTY_SETTLEMENT = "settlement"; - @jakarta.annotation.Nullable private DVPSettlement settlement; - - /** Side of the order */ - public enum SideEnum { - BUY(String.valueOf("BUY")), - - SELL(String.valueOf("SELL")); - - private String value; - - SideEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static SideEnum fromValue(String value) { - for (SideEnum b : SideEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_SIDE = "side"; - @jakarta.annotation.Nonnull private SideEnum side; - - public CreateQuote() {} - - @JsonCreator - public CreateQuote( - @JsonProperty(value = JSON_PROPERTY_SCOPE, required = true) - List scope, - @JsonProperty(value = JSON_PROPERTY_BASE_ASSET_ID, required = true) String baseAssetId, - @JsonProperty(value = JSON_PROPERTY_QUOTE_ASSET_ID, required = true) - String quoteAssetId, - @JsonProperty(value = JSON_PROPERTY_BASE_AMOUNT, required = true) String baseAmount, - @JsonProperty(value = JSON_PROPERTY_SIDE, required = true) SideEnum side) { - this.scope = scope; - this.baseAssetId = baseAssetId; - this.quoteAssetId = quoteAssetId; - this.baseAmount = baseAmount; - this.side = side; - } - - public CreateQuote scope(@jakarta.annotation.Nonnull List scope) { - this.scope = scope; - return this; - } - - public CreateQuote addScopeItem(CreateQuoteScopeInner scopeItem) { - if (this.scope == null) { - this.scope = new ArrayList<>(); - } - this.scope.add(scopeItem); - return this; - } - - /** - * Get scope - * - * @return scope - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SCOPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getScope() { - return scope; - } - - @JsonProperty(JSON_PROPERTY_SCOPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setScope(@jakarta.annotation.Nonnull List scope) { - this.scope = scope; - } - - public CreateQuote baseAssetId(@jakarta.annotation.Nonnull String baseAssetId) { - this.baseAssetId = baseAssetId; - return this; - } - - /** - * Get baseAssetId - * - * @return baseAssetId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BASE_ASSET_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getBaseAssetId() { - return baseAssetId; - } - - @JsonProperty(JSON_PROPERTY_BASE_ASSET_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBaseAssetId(@jakarta.annotation.Nonnull String baseAssetId) { - this.baseAssetId = baseAssetId; - } - - public CreateQuote baseAssetRail(@jakarta.annotation.Nullable TransferRail baseAssetRail) { - this.baseAssetRail = baseAssetRail; - return this; - } - - /** - * Get baseAssetRail - * - * @return baseAssetRail - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BASE_ASSET_RAIL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public TransferRail getBaseAssetRail() { - return baseAssetRail; - } - - @JsonProperty(JSON_PROPERTY_BASE_ASSET_RAIL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBaseAssetRail(@jakarta.annotation.Nullable TransferRail baseAssetRail) { - this.baseAssetRail = baseAssetRail; - } - - public CreateQuote quoteAssetId(@jakarta.annotation.Nonnull String quoteAssetId) { - this.quoteAssetId = quoteAssetId; - return this; - } - - /** - * Get quoteAssetId - * - * @return quoteAssetId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_QUOTE_ASSET_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getQuoteAssetId() { - return quoteAssetId; - } - - @JsonProperty(JSON_PROPERTY_QUOTE_ASSET_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setQuoteAssetId(@jakarta.annotation.Nonnull String quoteAssetId) { - this.quoteAssetId = quoteAssetId; - } - - public CreateQuote quoteAssetRail(@jakarta.annotation.Nullable TransferRail quoteAssetRail) { - this.quoteAssetRail = quoteAssetRail; - return this; - } - - /** - * Get quoteAssetRail - * - * @return quoteAssetRail - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_QUOTE_ASSET_RAIL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public TransferRail getQuoteAssetRail() { - return quoteAssetRail; - } - - @JsonProperty(JSON_PROPERTY_QUOTE_ASSET_RAIL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setQuoteAssetRail(@jakarta.annotation.Nullable TransferRail quoteAssetRail) { - this.quoteAssetRail = quoteAssetRail; - } - - public CreateQuote baseAmount(@jakarta.annotation.Nonnull String baseAmount) { - this.baseAmount = baseAmount; - return this; - } - - /** - * The amount to convert from - * - * @return baseAmount - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BASE_AMOUNT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getBaseAmount() { - return baseAmount; - } - - @JsonProperty(JSON_PROPERTY_BASE_AMOUNT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBaseAmount(@jakarta.annotation.Nonnull String baseAmount) { - this.baseAmount = baseAmount; - } - - public CreateQuote slippageBps(@jakarta.annotation.Nullable BigDecimal slippageBps) { - this.slippageBps = slippageBps; - return this; - } - - /** - * Slippage tolerance in basis points (bps) for defi quotes - 1 is 0.01% and 10000 is 100% - * minimum: 1 maximum: 10000 - * - * @return slippageBps - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SLIPPAGE_BPS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public BigDecimal getSlippageBps() { - return slippageBps; - } - - @JsonProperty(JSON_PROPERTY_SLIPPAGE_BPS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSlippageBps(@jakarta.annotation.Nullable BigDecimal slippageBps) { - this.slippageBps = slippageBps; - } - - public CreateQuote settlement(@jakarta.annotation.Nullable DVPSettlement settlement) { - this.settlement = settlement; - return this; - } - - /** - * Get settlement - * - * @return settlement - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SETTLEMENT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public DVPSettlement getSettlement() { - return settlement; - } - - @JsonProperty(JSON_PROPERTY_SETTLEMENT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSettlement(@jakarta.annotation.Nullable DVPSettlement settlement) { - this.settlement = settlement; - } - - public CreateQuote side(@jakarta.annotation.Nonnull SideEnum side) { - this.side = side; - return this; - } - - /** - * Side of the order - * - * @return side - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SIDE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public SideEnum getSide() { - return side; - } - - @JsonProperty(JSON_PROPERTY_SIDE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSide(@jakarta.annotation.Nonnull SideEnum side) { - this.side = side; - } - - /** Return true if this CreateQuote object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - CreateQuote createQuote = (CreateQuote) o; - return Objects.equals(this.scope, createQuote.scope) - && Objects.equals(this.baseAssetId, createQuote.baseAssetId) - && Objects.equals(this.baseAssetRail, createQuote.baseAssetRail) - && Objects.equals(this.quoteAssetId, createQuote.quoteAssetId) - && Objects.equals(this.quoteAssetRail, createQuote.quoteAssetRail) - && Objects.equals(this.baseAmount, createQuote.baseAmount) - && Objects.equals(this.slippageBps, createQuote.slippageBps) - && Objects.equals(this.settlement, createQuote.settlement) - && Objects.equals(this.side, createQuote.side); - } - - @Override - public int hashCode() { - return Objects.hash( - scope, - baseAssetId, - baseAssetRail, - quoteAssetId, - quoteAssetRail, - baseAmount, - slippageBps, - settlement, - side); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class CreateQuote {\n"); - sb.append(" scope: ").append(toIndentedString(scope)).append("\n"); - sb.append(" baseAssetId: ").append(toIndentedString(baseAssetId)).append("\n"); - sb.append(" baseAssetRail: ").append(toIndentedString(baseAssetRail)).append("\n"); - sb.append(" quoteAssetId: ").append(toIndentedString(quoteAssetId)).append("\n"); - sb.append(" quoteAssetRail: ").append(toIndentedString(quoteAssetRail)).append("\n"); - sb.append(" baseAmount: ").append(toIndentedString(baseAmount)).append("\n"); - sb.append(" slippageBps: ").append(toIndentedString(slippageBps)).append("\n"); - sb.append(" settlement: ").append(toIndentedString(settlement)).append("\n"); - sb.append(" side: ").append(toIndentedString(side)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `scope` to the URL query string - if (getScope() != null) { - for (int i = 0; i < getScope().size(); i++) { - if (getScope().get(i) != null) { - joiner.add( - getScope() - .get(i) - .toUrlQueryString( - String.format( - "%sscope%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } - } - - // add `baseAssetId` to the URL query string - if (getBaseAssetId() != null) { - joiner.add( - String.format( - "%sbaseAssetId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBaseAssetId())))); - } - - // add `baseAssetRail` to the URL query string - if (getBaseAssetRail() != null) { - joiner.add( - String.format( - "%sbaseAssetRail%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBaseAssetRail())))); - } - - // add `quoteAssetId` to the URL query string - if (getQuoteAssetId() != null) { - joiner.add( - String.format( - "%squoteAssetId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getQuoteAssetId())))); - } - - // add `quoteAssetRail` to the URL query string - if (getQuoteAssetRail() != null) { - joiner.add( - String.format( - "%squoteAssetRail%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getQuoteAssetRail())))); - } - - // add `baseAmount` to the URL query string - if (getBaseAmount() != null) { - joiner.add( - String.format( - "%sbaseAmount%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBaseAmount())))); - } - - // add `slippageBps` to the URL query string - if (getSlippageBps() != null) { - joiner.add( - String.format( - "%sslippageBps%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getSlippageBps())))); - } - - // add `settlement` to the URL query string - if (getSettlement() != null) { - joiner.add(getSettlement().toUrlQueryString(prefix + "settlement" + suffix)); - } - - // add `side` to the URL query string - if (getSide() != null) { - joiner.add( - String.format( - "%sside%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getSide())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/CreateQuoteScopeInner.java b/src/main/java/com/fireblocks/sdk/model/CreateQuoteScopeInner.java deleted file mode 100644 index 98b6c41d..00000000 --- a/src/main/java/com/fireblocks/sdk/model/CreateQuoteScopeInner.java +++ /dev/null @@ -1,321 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.core.JsonGenerator; -import com.fasterxml.jackson.core.JsonParser; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.core.JsonToken; -import com.fasterxml.jackson.databind.DeserializationContext; -import com.fasterxml.jackson.databind.JsonMappingException; -import com.fasterxml.jackson.databind.JsonNode; -import com.fasterxml.jackson.databind.MapperFeature; -import com.fasterxml.jackson.databind.SerializerProvider; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import com.fasterxml.jackson.databind.deser.std.StdDeserializer; -import com.fasterxml.jackson.databind.ser.std.StdSerializer; -import com.fireblocks.sdk.JSON; -import java.io.IOException; -import java.util.Collections; -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; -import java.util.StringJoiner; -import java.util.logging.Level; -import java.util.logging.Logger; - -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -@JsonDeserialize(using = CreateQuoteScopeInner.CreateQuoteScopeInnerDeserializer.class) -@JsonSerialize(using = CreateQuoteScopeInner.CreateQuoteScopeInnerSerializer.class) -public class CreateQuoteScopeInner extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(CreateQuoteScopeInner.class.getName()); - - public static class CreateQuoteScopeInnerSerializer - extends StdSerializer { - public CreateQuoteScopeInnerSerializer(Class t) { - super(t); - } - - public CreateQuoteScopeInnerSerializer() { - this(null); - } - - @Override - public void serialize( - CreateQuoteScopeInner value, JsonGenerator jgen, SerializerProvider provider) - throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); - } - } - - public static class CreateQuoteScopeInnerDeserializer - extends StdDeserializer { - public CreateQuoteScopeInnerDeserializer() { - this(CreateQuoteScopeInner.class); - } - - public CreateQuoteScopeInnerDeserializer(Class vc) { - super(vc); - } - - @Override - public CreateQuoteScopeInner deserialize(JsonParser jp, DeserializationContext ctxt) - throws IOException, JsonProcessingException { - JsonNode tree = jp.readValueAsTree(); - Object deserialized = null; - boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); - int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); - // deserialize AccountProviderID - try { - boolean attemptParsing = true; - // ensure that we respect type coercion as set on the client ObjectMapper - if (AccountProviderID.class.equals(Integer.class) - || AccountProviderID.class.equals(Long.class) - || AccountProviderID.class.equals(Float.class) - || AccountProviderID.class.equals(Double.class) - || AccountProviderID.class.equals(Boolean.class) - || AccountProviderID.class.equals(String.class)) { - attemptParsing = typeCoercion; - if (!attemptParsing) { - attemptParsing |= - ((AccountProviderID.class.equals(Integer.class) - || AccountProviderID.class.equals(Long.class)) - && token == JsonToken.VALUE_NUMBER_INT); - attemptParsing |= - ((AccountProviderID.class.equals(Float.class) - || AccountProviderID.class.equals(Double.class)) - && token == JsonToken.VALUE_NUMBER_FLOAT); - attemptParsing |= - (AccountProviderID.class.equals(Boolean.class) - && (token == JsonToken.VALUE_FALSE - || token == JsonToken.VALUE_TRUE)); - attemptParsing |= - (AccountProviderID.class.equals(String.class) - && token == JsonToken.VALUE_STRING); - } - } - if (attemptParsing) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(AccountProviderID.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'AccountProviderID'"); - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'AccountProviderID'", e); - } - - // deserialize ProviderID - try { - boolean attemptParsing = true; - // ensure that we respect type coercion as set on the client ObjectMapper - if (ProviderID.class.equals(Integer.class) - || ProviderID.class.equals(Long.class) - || ProviderID.class.equals(Float.class) - || ProviderID.class.equals(Double.class) - || ProviderID.class.equals(Boolean.class) - || ProviderID.class.equals(String.class)) { - attemptParsing = typeCoercion; - if (!attemptParsing) { - attemptParsing |= - ((ProviderID.class.equals(Integer.class) - || ProviderID.class.equals(Long.class)) - && token == JsonToken.VALUE_NUMBER_INT); - attemptParsing |= - ((ProviderID.class.equals(Float.class) - || ProviderID.class.equals(Double.class)) - && token == JsonToken.VALUE_NUMBER_FLOAT); - attemptParsing |= - (ProviderID.class.equals(Boolean.class) - && (token == JsonToken.VALUE_FALSE - || token == JsonToken.VALUE_TRUE)); - attemptParsing |= - (ProviderID.class.equals(String.class) - && token == JsonToken.VALUE_STRING); - } - } - if (attemptParsing) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(ProviderID.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'ProviderID'"); - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'ProviderID'", e); - } - - if (match == 1) { - CreateQuoteScopeInner ret = new CreateQuoteScopeInner(); - ret.setActualInstance(deserialized); - return ret; - } - throw new IOException( - String.format( - "Failed deserialization for CreateQuoteScopeInner: %d classes match" - + " result, expected 1", - match)); - } - - /** Handle deserialization of the 'null' value. */ - @Override - public CreateQuoteScopeInner getNullValue(DeserializationContext ctxt) - throws JsonMappingException { - throw new JsonMappingException( - ctxt.getParser(), "CreateQuoteScopeInner cannot be null"); - } - } - - // store a list of schema names defined in oneOf - public static final Map> schemas = new HashMap<>(); - - public CreateQuoteScopeInner() { - super("oneOf", Boolean.FALSE); - } - - public CreateQuoteScopeInner(AccountProviderID o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public CreateQuoteScopeInner(ProviderID o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("AccountProviderID", AccountProviderID.class); - schemas.put("ProviderID", ProviderID.class); - JSON.registerDescendants(CreateQuoteScopeInner.class, Collections.unmodifiableMap(schemas)); - } - - @Override - public Map> getSchemas() { - return CreateQuoteScopeInner.schemas; - } - - /** - * Set the instance that matches the oneOf child schema, check the instance parameter is valid - * against the oneOf child schemas: AccountProviderID, ProviderID - * - *

It could be an instance of the 'oneOf' schemas. The oneOf child schemas may themselves be - * a composed schema (allOf, anyOf, oneOf). - */ - @Override - public void setActualInstance(Object instance) { - if (JSON.isInstanceOf(AccountProviderID.class, instance, new HashSet>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(ProviderID.class, instance, new HashSet>())) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be AccountProviderID, ProviderID"); - } - - /** - * Get the actual instance, which can be the following: AccountProviderID, ProviderID - * - * @return The actual instance (AccountProviderID, ProviderID) - */ - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `AccountProviderID`. If the actual instance is not - * `AccountProviderID`, the ClassCastException will be thrown. - * - * @return The actual instance of `AccountProviderID` - * @throws ClassCastException if the instance is not `AccountProviderID` - */ - public AccountProviderID getAccountProviderID() throws ClassCastException { - return (AccountProviderID) super.getActualInstance(); - } - - /** - * Get the actual instance of `ProviderID`. If the actual instance is not `ProviderID`, the - * ClassCastException will be thrown. - * - * @return The actual instance of `ProviderID` - * @throws ClassCastException if the instance is not `ProviderID` - */ - public ProviderID getProviderID() throws ClassCastException { - return (ProviderID) super.getActualInstance(); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - if (getActualInstance() instanceof AccountProviderID) { - if (getActualInstance() != null) { - joiner.add( - ((AccountProviderID) getActualInstance()) - .toUrlQueryString(prefix + "one_of_0" + suffix)); - } - return joiner.toString(); - } - if (getActualInstance() instanceof ProviderID) { - if (getActualInstance() != null) { - joiner.add( - ((ProviderID) getActualInstance()) - .toUrlQueryString(prefix + "one_of_1" + suffix)); - } - return joiner.toString(); - } - return null; - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/CreateSigningKeyDto.java b/src/main/java/com/fireblocks/sdk/model/CreateSigningKeyDto.java index b0b84cbb..c6c0d740 100644 --- a/src/main/java/com/fireblocks/sdk/model/CreateSigningKeyDto.java +++ b/src/main/java/com/fireblocks/sdk/model/CreateSigningKeyDto.java @@ -25,8 +25,7 @@ @JsonPropertyOrder({ CreateSigningKeyDto.JSON_PROPERTY_SIGNING_DEVICE_KEY_ID, CreateSigningKeyDto.JSON_PROPERTY_SIGNED_CERT_PEM, - CreateSigningKeyDto.JSON_PROPERTY_AGENT_USER_ID, - CreateSigningKeyDto.JSON_PROPERTY_PROOF_OF_OWNERSHIP + CreateSigningKeyDto.JSON_PROPERTY_AGENT_USER_ID }) @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", @@ -41,9 +40,6 @@ public class CreateSigningKeyDto { public static final String JSON_PROPERTY_AGENT_USER_ID = "agentUserId"; @jakarta.annotation.Nonnull private String agentUserId; - public static final String JSON_PROPERTY_PROOF_OF_OWNERSHIP = "proofOfOwnership"; - @jakarta.annotation.Nullable private CreateSigningKeyDtoProofOfOwnership proofOfOwnership; - public CreateSigningKeyDto() {} @JsonCreator @@ -130,31 +126,6 @@ public void setAgentUserId(@jakarta.annotation.Nonnull String agentUserId) { this.agentUserId = agentUserId; } - public CreateSigningKeyDto proofOfOwnership( - @jakarta.annotation.Nullable CreateSigningKeyDtoProofOfOwnership proofOfOwnership) { - this.proofOfOwnership = proofOfOwnership; - return this; - } - - /** - * Get proofOfOwnership - * - * @return proofOfOwnership - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROOF_OF_OWNERSHIP) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CreateSigningKeyDtoProofOfOwnership getProofOfOwnership() { - return proofOfOwnership; - } - - @JsonProperty(JSON_PROPERTY_PROOF_OF_OWNERSHIP) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setProofOfOwnership( - @jakarta.annotation.Nullable CreateSigningKeyDtoProofOfOwnership proofOfOwnership) { - this.proofOfOwnership = proofOfOwnership; - } - /** Return true if this CreateSigningKeyDto object is equal to o. */ @Override public boolean equals(Object o) { @@ -167,13 +138,12 @@ public boolean equals(Object o) { CreateSigningKeyDto createSigningKeyDto = (CreateSigningKeyDto) o; return Objects.equals(this.signingDeviceKeyId, createSigningKeyDto.signingDeviceKeyId) && Objects.equals(this.signedCertPem, createSigningKeyDto.signedCertPem) - && Objects.equals(this.agentUserId, createSigningKeyDto.agentUserId) - && Objects.equals(this.proofOfOwnership, createSigningKeyDto.proofOfOwnership); + && Objects.equals(this.agentUserId, createSigningKeyDto.agentUserId); } @Override public int hashCode() { - return Objects.hash(signingDeviceKeyId, signedCertPem, agentUserId, proofOfOwnership); + return Objects.hash(signingDeviceKeyId, signedCertPem, agentUserId); } @Override @@ -185,7 +155,6 @@ public String toString() { .append("\n"); sb.append(" signedCertPem: ").append(toIndentedString(signedCertPem)).append("\n"); sb.append(" agentUserId: ").append(toIndentedString(agentUserId)).append("\n"); - sb.append(" proofOfOwnership: ").append(toIndentedString(proofOfOwnership)).append("\n"); sb.append("}"); return sb.toString(); } @@ -263,12 +232,6 @@ public String toUrlQueryString(String prefix) { ApiClient.urlEncode(ApiClient.valueToString(getAgentUserId())))); } - // add `proofOfOwnership` to the URL query string - if (getProofOfOwnership() != null) { - joiner.add( - getProofOfOwnership().toUrlQueryString(prefix + "proofOfOwnership" + suffix)); - } - return joiner.toString(); } } diff --git a/src/main/java/com/fireblocks/sdk/model/CreateSigningKeyDtoProofOfOwnership.java b/src/main/java/com/fireblocks/sdk/model/CreateSigningKeyDtoProofOfOwnership.java deleted file mode 100644 index 75b1c6d5..00000000 --- a/src/main/java/com/fireblocks/sdk/model/CreateSigningKeyDtoProofOfOwnership.java +++ /dev/null @@ -1,192 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** An object containing proof of ownership for the signing key. */ -@JsonPropertyOrder({ - CreateSigningKeyDtoProofOfOwnership.JSON_PROPERTY_MESSAGE, - CreateSigningKeyDtoProofOfOwnership.JSON_PROPERTY_SIGNATURE -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class CreateSigningKeyDtoProofOfOwnership { - public static final String JSON_PROPERTY_MESSAGE = "message"; - @jakarta.annotation.Nonnull private String message; - - public static final String JSON_PROPERTY_SIGNATURE = "signature"; - @jakarta.annotation.Nonnull private String signature; - - public CreateSigningKeyDtoProofOfOwnership() {} - - @JsonCreator - public CreateSigningKeyDtoProofOfOwnership( - @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = true) String message, - @JsonProperty(value = JSON_PROPERTY_SIGNATURE, required = true) String signature) { - this.message = message; - this.signature = signature; - } - - public CreateSigningKeyDtoProofOfOwnership message(@jakarta.annotation.Nonnull String message) { - this.message = message; - return this; - } - - /** - * The message to be signed by the key as proof of ownership. 64 to 1024 bytes in hexadecimal - * format. - * - * @return message - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_MESSAGE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getMessage() { - return message; - } - - @JsonProperty(JSON_PROPERTY_MESSAGE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setMessage(@jakarta.annotation.Nonnull String message) { - this.message = message; - } - - public CreateSigningKeyDtoProofOfOwnership signature( - @jakarta.annotation.Nonnull String signature) { - this.signature = signature; - return this; - } - - /** - * The signature of the message. 64 bytes in hexadecimal format. - * - * @return signature - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SIGNATURE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getSignature() { - return signature; - } - - @JsonProperty(JSON_PROPERTY_SIGNATURE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSignature(@jakarta.annotation.Nonnull String signature) { - this.signature = signature; - } - - /** Return true if this CreateSigningKeyDto_proofOfOwnership object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - CreateSigningKeyDtoProofOfOwnership createSigningKeyDtoProofOfOwnership = - (CreateSigningKeyDtoProofOfOwnership) o; - return Objects.equals(this.message, createSigningKeyDtoProofOfOwnership.message) - && Objects.equals(this.signature, createSigningKeyDtoProofOfOwnership.signature); - } - - @Override - public int hashCode() { - return Objects.hash(message, signature); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class CreateSigningKeyDtoProofOfOwnership {\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); - sb.append(" signature: ").append(toIndentedString(signature)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `message` to the URL query string - if (getMessage() != null) { - joiner.add( - String.format( - "%smessage%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getMessage())))); - } - - // add `signature` to the URL query string - if (getSignature() != null) { - joiner.add( - String.format( - "%ssignature%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getSignature())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/CreateTagRequest.java b/src/main/java/com/fireblocks/sdk/model/CreateTagRequest.java deleted file mode 100644 index ba144520..00000000 --- a/src/main/java/com/fireblocks/sdk/model/CreateTagRequest.java +++ /dev/null @@ -1,187 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** CreateTagRequest */ -@JsonPropertyOrder({ - CreateTagRequest.JSON_PROPERTY_LABEL, - CreateTagRequest.JSON_PROPERTY_DESCRIPTION -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class CreateTagRequest { - public static final String JSON_PROPERTY_LABEL = "label"; - @jakarta.annotation.Nonnull private String label; - - public static final String JSON_PROPERTY_DESCRIPTION = "description"; - @jakarta.annotation.Nullable private String description; - - public CreateTagRequest() {} - - @JsonCreator - public CreateTagRequest( - @JsonProperty(value = JSON_PROPERTY_LABEL, required = true) String label) { - this.label = label; - } - - public CreateTagRequest label(@jakarta.annotation.Nonnull String label) { - this.label = label; - return this; - } - - /** - * The tag label - * - * @return label - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_LABEL) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getLabel() { - return label; - } - - @JsonProperty(JSON_PROPERTY_LABEL) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setLabel(@jakarta.annotation.Nonnull String label) { - this.label = label; - } - - public CreateTagRequest description(@jakarta.annotation.Nullable String description) { - this.description = description; - return this; - } - - /** - * Description for the tag - * - * @return description - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DESCRIPTION) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getDescription() { - return description; - } - - @JsonProperty(JSON_PROPERTY_DESCRIPTION) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDescription(@jakarta.annotation.Nullable String description) { - this.description = description; - } - - /** Return true if this CreateTagRequest object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - CreateTagRequest createTagRequest = (CreateTagRequest) o; - return Objects.equals(this.label, createTagRequest.label) - && Objects.equals(this.description, createTagRequest.description); - } - - @Override - public int hashCode() { - return Objects.hash(label, description); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class CreateTagRequest {\n"); - sb.append(" label: ").append(toIndentedString(label)).append("\n"); - sb.append(" description: ").append(toIndentedString(description)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `label` to the URL query string - if (getLabel() != null) { - joiner.add( - String.format( - "%slabel%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getLabel())))); - } - - // add `description` to the URL query string - if (getDescription() != null) { - joiner.add( - String.format( - "%sdescription%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getDescription())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/CreateTokenRequestDto.java b/src/main/java/com/fireblocks/sdk/model/CreateTokenRequestDto.java index 4a66f604..5dc2d662 100644 --- a/src/main/java/com/fireblocks/sdk/model/CreateTokenRequestDto.java +++ b/src/main/java/com/fireblocks/sdk/model/CreateTokenRequestDto.java @@ -17,7 +17,6 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -28,10 +27,7 @@ CreateTokenRequestDto.JSON_PROPERTY_ASSET_ID, CreateTokenRequestDto.JSON_PROPERTY_VAULT_ACCOUNT_ID, CreateTokenRequestDto.JSON_PROPERTY_CREATE_PARAMS, - CreateTokenRequestDto.JSON_PROPERTY_DISPLAY_NAME, - CreateTokenRequestDto.JSON_PROPERTY_USE_GASLESS, - CreateTokenRequestDto.JSON_PROPERTY_FEE, - CreateTokenRequestDto.JSON_PROPERTY_FEE_LEVEL + CreateTokenRequestDto.JSON_PROPERTY_DISPLAY_NAME }) @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", @@ -52,52 +48,6 @@ public class CreateTokenRequestDto { public static final String JSON_PROPERTY_DISPLAY_NAME = "displayName"; @jakarta.annotation.Nullable private String displayName; - public static final String JSON_PROPERTY_USE_GASLESS = "useGasless"; - @jakarta.annotation.Nullable private Boolean useGasless; - - public static final String JSON_PROPERTY_FEE = "fee"; - @jakarta.annotation.Nullable private String fee; - - /** - * Fee level for the write function transaction. interchangeable with the 'fee' field - */ - public enum FeeLevelEnum { - LOW(String.valueOf("LOW")), - - MEDIUM(String.valueOf("MEDIUM")), - - HIGH(String.valueOf("HIGH")); - - private String value; - - FeeLevelEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static FeeLevelEnum fromValue(String value) { - for (FeeLevelEnum b : FeeLevelEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_FEE_LEVEL = "feeLevel"; - @jakarta.annotation.Nullable private FeeLevelEnum feeLevel; - public CreateTokenRequestDto() {} @JsonCreator @@ -227,78 +177,6 @@ public void setDisplayName(@jakarta.annotation.Nullable String displayName) { this.displayName = displayName; } - public CreateTokenRequestDto useGasless(@jakarta.annotation.Nullable Boolean useGasless) { - this.useGasless = useGasless; - return this; - } - - /** - * Indicates whether the token should be created in a gasless manner, utilizing the ERC-2771 - * standard. When set to true, the transaction will be relayed by a designated relayer. The - * workspace must be configured to use Fireblocks gasless relay. - * - * @return useGasless - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USE_GASLESS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getUseGasless() { - return useGasless; - } - - @JsonProperty(JSON_PROPERTY_USE_GASLESS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUseGasless(@jakarta.annotation.Nullable Boolean useGasless) { - this.useGasless = useGasless; - } - - public CreateTokenRequestDto fee(@jakarta.annotation.Nullable String fee) { - this.fee = fee; - return this; - } - - /** - * Max fee amount for the write function transaction. interchangeable with the - * 'feeLevel' field - * - * @return fee - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FEE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getFee() { - return fee; - } - - @JsonProperty(JSON_PROPERTY_FEE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFee(@jakarta.annotation.Nullable String fee) { - this.fee = fee; - } - - public CreateTokenRequestDto feeLevel(@jakarta.annotation.Nullable FeeLevelEnum feeLevel) { - this.feeLevel = feeLevel; - return this; - } - - /** - * Fee level for the write function transaction. interchangeable with the 'fee' field - * - * @return feeLevel - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FEE_LEVEL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public FeeLevelEnum getFeeLevel() { - return feeLevel; - } - - @JsonProperty(JSON_PROPERTY_FEE_LEVEL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFeeLevel(@jakarta.annotation.Nullable FeeLevelEnum feeLevel) { - this.feeLevel = feeLevel; - } - /** Return true if this CreateTokenRequestDto object is equal to o. */ @Override public boolean equals(Object o) { @@ -313,23 +191,12 @@ public boolean equals(Object o) { && Objects.equals(this.assetId, createTokenRequestDto.assetId) && Objects.equals(this.vaultAccountId, createTokenRequestDto.vaultAccountId) && Objects.equals(this.createParams, createTokenRequestDto.createParams) - && Objects.equals(this.displayName, createTokenRequestDto.displayName) - && Objects.equals(this.useGasless, createTokenRequestDto.useGasless) - && Objects.equals(this.fee, createTokenRequestDto.fee) - && Objects.equals(this.feeLevel, createTokenRequestDto.feeLevel); + && Objects.equals(this.displayName, createTokenRequestDto.displayName); } @Override public int hashCode() { - return Objects.hash( - blockchainId, - assetId, - vaultAccountId, - createParams, - displayName, - useGasless, - fee, - feeLevel); + return Objects.hash(blockchainId, assetId, vaultAccountId, createParams, displayName); } @Override @@ -341,9 +208,6 @@ public String toString() { sb.append(" vaultAccountId: ").append(toIndentedString(vaultAccountId)).append("\n"); sb.append(" createParams: ").append(toIndentedString(createParams)).append("\n"); sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n"); - sb.append(" useGasless: ").append(toIndentedString(useGasless)).append("\n"); - sb.append(" fee: ").append(toIndentedString(fee)).append("\n"); - sb.append(" feeLevel: ").append(toIndentedString(feeLevel)).append("\n"); sb.append("}"); return sb.toString(); } @@ -436,36 +300,6 @@ public String toUrlQueryString(String prefix) { ApiClient.urlEncode(ApiClient.valueToString(getDisplayName())))); } - // add `useGasless` to the URL query string - if (getUseGasless() != null) { - joiner.add( - String.format( - "%suseGasless%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getUseGasless())))); - } - - // add `fee` to the URL query string - if (getFee() != null) { - joiner.add( - String.format( - "%sfee%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getFee())))); - } - - // add `feeLevel` to the URL query string - if (getFeeLevel() != null) { - joiner.add( - String.format( - "%sfeeLevel%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getFeeLevel())))); - } - return joiner.toString(); } } diff --git a/src/main/java/com/fireblocks/sdk/model/CreateTokenRequestDtoCreateParams.java b/src/main/java/com/fireblocks/sdk/model/CreateTokenRequestDtoCreateParams.java index 4e54e1e7..fe31fb34 100644 --- a/src/main/java/com/fireblocks/sdk/model/CreateTokenRequestDtoCreateParams.java +++ b/src/main/java/com/fireblocks/sdk/model/CreateTokenRequestDtoCreateParams.java @@ -136,55 +136,6 @@ public CreateTokenRequestDtoCreateParams deserialize( e); } - // deserialize SolanaSimpleCreateParams - try { - boolean attemptParsing = true; - // ensure that we respect type coercion as set on the client ObjectMapper - if (SolanaSimpleCreateParams.class.equals(Integer.class) - || SolanaSimpleCreateParams.class.equals(Long.class) - || SolanaSimpleCreateParams.class.equals(Float.class) - || SolanaSimpleCreateParams.class.equals(Double.class) - || SolanaSimpleCreateParams.class.equals(Boolean.class) - || SolanaSimpleCreateParams.class.equals(String.class)) { - attemptParsing = typeCoercion; - if (!attemptParsing) { - attemptParsing |= - ((SolanaSimpleCreateParams.class.equals(Integer.class) - || SolanaSimpleCreateParams.class.equals( - Long.class)) - && token == JsonToken.VALUE_NUMBER_INT); - attemptParsing |= - ((SolanaSimpleCreateParams.class.equals(Float.class) - || SolanaSimpleCreateParams.class.equals( - Double.class)) - && token == JsonToken.VALUE_NUMBER_FLOAT); - attemptParsing |= - (SolanaSimpleCreateParams.class.equals(Boolean.class) - && (token == JsonToken.VALUE_FALSE - || token == JsonToken.VALUE_TRUE)); - attemptParsing |= - (SolanaSimpleCreateParams.class.equals(String.class) - && token == JsonToken.VALUE_STRING); - } - } - if (attemptParsing) { - deserialized = - tree.traverse(jp.getCodec()) - .readValueAs(SolanaSimpleCreateParams.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'SolanaSimpleCreateParams'"); - } - } catch (Exception e) { - // deserialization failed, continue - log.log( - Level.FINER, - "Input data does not match schema 'SolanaSimpleCreateParams'", - e); - } - // deserialize StellarRippleCreateParamsDto try { boolean attemptParsing = true; @@ -269,11 +220,6 @@ public CreateTokenRequestDtoCreateParams(EVMTokenCreateParamsDto o) { setActualInstance(o); } - public CreateTokenRequestDtoCreateParams(SolanaSimpleCreateParams o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - public CreateTokenRequestDtoCreateParams(StellarRippleCreateParamsDto o) { super("oneOf", Boolean.FALSE); setActualInstance(o); @@ -281,7 +227,6 @@ public CreateTokenRequestDtoCreateParams(StellarRippleCreateParamsDto o) { static { schemas.put("EVMTokenCreateParamsDto", EVMTokenCreateParamsDto.class); - schemas.put("SolanaSimpleCreateParams", SolanaSimpleCreateParams.class); schemas.put("StellarRippleCreateParamsDto", StellarRippleCreateParamsDto.class); JSON.registerDescendants( CreateTokenRequestDtoCreateParams.class, Collections.unmodifiableMap(schemas)); @@ -294,8 +239,7 @@ public Map> getSchemas() { /** * Set the instance that matches the oneOf child schema, check the instance parameter is valid - * against the oneOf child schemas: EVMTokenCreateParamsDto, SolanaSimpleCreateParams, - * StellarRippleCreateParamsDto + * against the oneOf child schemas: EVMTokenCreateParamsDto, StellarRippleCreateParamsDto * *

It could be an instance of the 'oneOf' schemas. The oneOf child schemas may themselves be * a composed schema (allOf, anyOf, oneOf). @@ -307,11 +251,6 @@ public void setActualInstance(Object instance) { return; } - if (JSON.isInstanceOf(SolanaSimpleCreateParams.class, instance, new HashSet>())) { - super.setActualInstance(instance); - return; - } - if (JSON.isInstanceOf( StellarRippleCreateParamsDto.class, instance, new HashSet>())) { super.setActualInstance(instance); @@ -319,16 +258,15 @@ public void setActualInstance(Object instance) { } throw new RuntimeException( - "Invalid instance type. Must be EVMTokenCreateParamsDto, SolanaSimpleCreateParams," + "Invalid instance type. Must be EVMTokenCreateParamsDto," + " StellarRippleCreateParamsDto"); } /** * Get the actual instance, which can be the following: EVMTokenCreateParamsDto, - * SolanaSimpleCreateParams, StellarRippleCreateParamsDto + * StellarRippleCreateParamsDto * - * @return The actual instance (EVMTokenCreateParamsDto, SolanaSimpleCreateParams, - * StellarRippleCreateParamsDto) + * @return The actual instance (EVMTokenCreateParamsDto, StellarRippleCreateParamsDto) */ @Override public Object getActualInstance() { @@ -346,17 +284,6 @@ public EVMTokenCreateParamsDto getEVMTokenCreateParamsDto() throws ClassCastExce return (EVMTokenCreateParamsDto) super.getActualInstance(); } - /** - * Get the actual instance of `SolanaSimpleCreateParams`. If the actual instance is not - * `SolanaSimpleCreateParams`, the ClassCastException will be thrown. - * - * @return The actual instance of `SolanaSimpleCreateParams` - * @throws ClassCastException if the instance is not `SolanaSimpleCreateParams` - */ - public SolanaSimpleCreateParams getSolanaSimpleCreateParams() throws ClassCastException { - return (SolanaSimpleCreateParams) super.getActualInstance(); - } - /** * Get the actual instance of `StellarRippleCreateParamsDto`. If the actual instance is not * `StellarRippleCreateParamsDto`, the ClassCastException will be thrown. @@ -417,14 +344,6 @@ public String toUrlQueryString(String prefix) { } return joiner.toString(); } - if (getActualInstance() instanceof SolanaSimpleCreateParams) { - if (getActualInstance() != null) { - joiner.add( - ((SolanaSimpleCreateParams) getActualInstance()) - .toUrlQueryString(prefix + "one_of_2" + suffix)); - } - return joiner.toString(); - } return null; } } diff --git a/src/main/java/com/fireblocks/sdk/model/CreateUserGroupResponse.java b/src/main/java/com/fireblocks/sdk/model/CreateUserGroupResponse.java index 874e7633..81d4c2ec 100644 --- a/src/main/java/com/fireblocks/sdk/model/CreateUserGroupResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/CreateUserGroupResponse.java @@ -40,7 +40,7 @@ public class CreateUserGroupResponse { @jakarta.annotation.Nullable private String name; public static final String JSON_PROPERTY_MEMBER_IDS = "memberIds"; - @jakarta.annotation.Nullable private List memberIds = new ArrayList<>(); + @jakarta.annotation.Nullable private List memberIds; public static final String JSON_PROPERTY_STATUS = "status"; @jakarta.annotation.Nullable private String status; diff --git a/src/main/java/com/fireblocks/sdk/model/CreateValidationKeyResponseDto.java b/src/main/java/com/fireblocks/sdk/model/CreateValidationKeyResponseDto.java index 21b15770..095a253b 100644 --- a/src/main/java/com/fireblocks/sdk/model/CreateValidationKeyResponseDto.java +++ b/src/main/java/com/fireblocks/sdk/model/CreateValidationKeyResponseDto.java @@ -39,7 +39,7 @@ public class CreateValidationKeyResponseDto { @jakarta.annotation.Nonnull private ValidationKeyDto validationKey; public static final String JSON_PROPERTY_ADMINS = "admins"; - @jakarta.annotation.Nonnull private List admins = new ArrayList<>(); + @jakarta.annotation.Nonnull private List admins; public static final String JSON_PROPERTY_APPROVAL_THRESHOLD = "approvalThreshold"; @jakarta.annotation.Nonnull private BigDecimal approvalThreshold; diff --git a/src/main/java/com/fireblocks/sdk/model/CreateVaultAccountConnectionRequest.java b/src/main/java/com/fireblocks/sdk/model/CreateVaultAccountConnectionRequest.java index b7f1c6ea..da16a076 100644 --- a/src/main/java/com/fireblocks/sdk/model/CreateVaultAccountConnectionRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/CreateVaultAccountConnectionRequest.java @@ -79,7 +79,7 @@ public static FeeLevelEnum fromValue(String value) { @jakarta.annotation.Nonnull private String uri; public static final String JSON_PROPERTY_CHAIN_IDS = "chainIds"; - @jakarta.annotation.Nullable private List chainIds = new ArrayList<>(); + @jakarta.annotation.Nullable private List chainIds; public CreateVaultAccountConnectionRequest() {} diff --git a/src/main/java/com/fireblocks/sdk/model/CreateVaultAccountRequest.java b/src/main/java/com/fireblocks/sdk/model/CreateVaultAccountRequest.java index 95710c03..863068a9 100644 --- a/src/main/java/com/fireblocks/sdk/model/CreateVaultAccountRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/CreateVaultAccountRequest.java @@ -13,11 +13,9 @@ package com.fireblocks.sdk.model; -import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -27,9 +25,7 @@ CreateVaultAccountRequest.JSON_PROPERTY_NAME, CreateVaultAccountRequest.JSON_PROPERTY_HIDDEN_ON_U_I, CreateVaultAccountRequest.JSON_PROPERTY_CUSTOMER_REF_ID, - CreateVaultAccountRequest.JSON_PROPERTY_AUTO_FUEL, - CreateVaultAccountRequest.JSON_PROPERTY_VAULT_TYPE, - CreateVaultAccountRequest.JSON_PROPERTY_AUTO_ASSIGN + CreateVaultAccountRequest.JSON_PROPERTY_AUTO_FUEL }) @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", @@ -47,48 +43,6 @@ public class CreateVaultAccountRequest { public static final String JSON_PROPERTY_AUTO_FUEL = "autoFuel"; @jakarta.annotation.Nullable private Boolean autoFuel; - /** - * Type of vault account. The default type will be set to MPC.<br/> If the workspace does - * not support the selected type, it will return an error. - */ - public enum VaultTypeEnum { - MPC(String.valueOf("MPC")), - - KEY_LINK(String.valueOf("KEY_LINK")); - - private String value; - - VaultTypeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static VaultTypeEnum fromValue(String value) { - for (VaultTypeEnum b : VaultTypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_VAULT_TYPE = "vaultType"; - @jakarta.annotation.Nullable private VaultTypeEnum vaultType = VaultTypeEnum.MPC; - - public static final String JSON_PROPERTY_AUTO_ASSIGN = "autoAssign"; - @jakarta.annotation.Nullable private Boolean autoAssign = false; - public CreateVaultAccountRequest() {} public CreateVaultAccountRequest name(@jakarta.annotation.Nullable String name) { @@ -185,58 +139,6 @@ public void setAutoFuel(@jakarta.annotation.Nullable Boolean autoFuel) { this.autoFuel = autoFuel; } - public CreateVaultAccountRequest vaultType( - @jakarta.annotation.Nullable VaultTypeEnum vaultType) { - this.vaultType = vaultType; - return this; - } - - /** - * Type of vault account. The default type will be set to MPC.<br/> If the workspace does - * not support the selected type, it will return an error. - * - * @return vaultType - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_VAULT_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public VaultTypeEnum getVaultType() { - return vaultType; - } - - @JsonProperty(JSON_PROPERTY_VAULT_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setVaultType(@jakarta.annotation.Nullable VaultTypeEnum vaultType) { - this.vaultType = vaultType; - } - - public CreateVaultAccountRequest autoAssign(@jakarta.annotation.Nullable Boolean autoAssign) { - this.autoAssign = autoAssign; - return this; - } - - /** - * Applicable only when the vault account type is KEY_LINK. For MPC, this parameter will be - * ignored.<br/> If set to true and there are available keys, random keys will be assigned - * to the newly created vault account.<br/> If set to true and there are no available keys - * to be assigned, it will return an error.<br/> If set to false, the vault account will - * be created without any keys. - * - * @return autoAssign - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_AUTO_ASSIGN) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getAutoAssign() { - return autoAssign; - } - - @JsonProperty(JSON_PROPERTY_AUTO_ASSIGN) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAutoAssign(@jakarta.annotation.Nullable Boolean autoAssign) { - this.autoAssign = autoAssign; - } - /** Return true if this CreateVaultAccountRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -250,14 +152,12 @@ public boolean equals(Object o) { return Objects.equals(this.name, createVaultAccountRequest.name) && Objects.equals(this.hiddenOnUI, createVaultAccountRequest.hiddenOnUI) && Objects.equals(this.customerRefId, createVaultAccountRequest.customerRefId) - && Objects.equals(this.autoFuel, createVaultAccountRequest.autoFuel) - && Objects.equals(this.vaultType, createVaultAccountRequest.vaultType) - && Objects.equals(this.autoAssign, createVaultAccountRequest.autoAssign); + && Objects.equals(this.autoFuel, createVaultAccountRequest.autoFuel); } @Override public int hashCode() { - return Objects.hash(name, hiddenOnUI, customerRefId, autoFuel, vaultType, autoAssign); + return Objects.hash(name, hiddenOnUI, customerRefId, autoFuel); } @Override @@ -268,8 +168,6 @@ public String toString() { sb.append(" hiddenOnUI: ").append(toIndentedString(hiddenOnUI)).append("\n"); sb.append(" customerRefId: ").append(toIndentedString(customerRefId)).append("\n"); sb.append(" autoFuel: ").append(toIndentedString(autoFuel)).append("\n"); - sb.append(" vaultType: ").append(toIndentedString(vaultType)).append("\n"); - sb.append(" autoAssign: ").append(toIndentedString(autoAssign)).append("\n"); sb.append("}"); return sb.toString(); } @@ -357,26 +255,6 @@ public String toUrlQueryString(String prefix) { ApiClient.urlEncode(ApiClient.valueToString(getAutoFuel())))); } - // add `vaultType` to the URL query string - if (getVaultType() != null) { - joiner.add( - String.format( - "%svaultType%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getVaultType())))); - } - - // add `autoAssign` to the URL query string - if (getAutoAssign() != null) { - joiner.add( - String.format( - "%sautoAssign%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAutoAssign())))); - } - return joiner.toString(); } } diff --git a/src/main/java/com/fireblocks/sdk/model/CreateWebhookRequest.java b/src/main/java/com/fireblocks/sdk/model/CreateWebhookRequest.java deleted file mode 100644 index bcc5568b..00000000 --- a/src/main/java/com/fireblocks/sdk/model/CreateWebhookRequest.java +++ /dev/null @@ -1,287 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** CreateWebhookRequest */ -@JsonPropertyOrder({ - CreateWebhookRequest.JSON_PROPERTY_URL, - CreateWebhookRequest.JSON_PROPERTY_DESCRIPTION, - CreateWebhookRequest.JSON_PROPERTY_EVENTS, - CreateWebhookRequest.JSON_PROPERTY_ENABLED -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class CreateWebhookRequest { - public static final String JSON_PROPERTY_URL = "url"; - @jakarta.annotation.Nonnull private String url; - - public static final String JSON_PROPERTY_DESCRIPTION = "description"; - @jakarta.annotation.Nullable private String description; - - public static final String JSON_PROPERTY_EVENTS = "events"; - @jakarta.annotation.Nonnull private List events = new ArrayList<>(); - - public static final String JSON_PROPERTY_ENABLED = "enabled"; - @jakarta.annotation.Nullable private Boolean enabled = true; - - public CreateWebhookRequest() {} - - @JsonCreator - public CreateWebhookRequest( - @JsonProperty(value = JSON_PROPERTY_URL, required = true) String url, - @JsonProperty(value = JSON_PROPERTY_EVENTS, required = true) - List events) { - this.url = url; - this.events = events; - } - - public CreateWebhookRequest url(@jakarta.annotation.Nonnull String url) { - this.url = url; - return this; - } - - /** - * The url of the webhook where notifications will be sent. URL must be valid, unique and https. - * - * @return url - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_URL) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getUrl() { - return url; - } - - @JsonProperty(JSON_PROPERTY_URL) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUrl(@jakarta.annotation.Nonnull String url) { - this.url = url; - } - - public CreateWebhookRequest description(@jakarta.annotation.Nullable String description) { - this.description = description; - return this; - } - - /** - * description of the webhook. should not contain special characters. - * - * @return description - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DESCRIPTION) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getDescription() { - return description; - } - - @JsonProperty(JSON_PROPERTY_DESCRIPTION) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDescription(@jakarta.annotation.Nullable String description) { - this.description = description; - } - - public CreateWebhookRequest events(@jakarta.annotation.Nonnull List events) { - this.events = events; - return this; - } - - public CreateWebhookRequest addEventsItem(WebhookEvent eventsItem) { - if (this.events == null) { - this.events = new ArrayList<>(); - } - this.events.add(eventsItem); - return this; - } - - /** - * event types the webhook will subscribe to - * - * @return events - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_EVENTS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getEvents() { - return events; - } - - @JsonProperty(JSON_PROPERTY_EVENTS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setEvents(@jakarta.annotation.Nonnull List events) { - this.events = events; - } - - public CreateWebhookRequest enabled(@jakarta.annotation.Nullable Boolean enabled) { - this.enabled = enabled; - return this; - } - - /** - * The status of the webhook. If false, the webhook will not receive notifications. - * - * @return enabled - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENABLED) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getEnabled() { - return enabled; - } - - @JsonProperty(JSON_PROPERTY_ENABLED) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnabled(@jakarta.annotation.Nullable Boolean enabled) { - this.enabled = enabled; - } - - /** Return true if this CreateWebhookRequest object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - CreateWebhookRequest createWebhookRequest = (CreateWebhookRequest) o; - return Objects.equals(this.url, createWebhookRequest.url) - && Objects.equals(this.description, createWebhookRequest.description) - && Objects.equals(this.events, createWebhookRequest.events) - && Objects.equals(this.enabled, createWebhookRequest.enabled); - } - - @Override - public int hashCode() { - return Objects.hash(url, description, events, enabled); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class CreateWebhookRequest {\n"); - sb.append(" url: ").append(toIndentedString(url)).append("\n"); - sb.append(" description: ").append(toIndentedString(description)).append("\n"); - sb.append(" events: ").append(toIndentedString(events)).append("\n"); - sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `url` to the URL query string - if (getUrl() != null) { - joiner.add( - String.format( - "%surl%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getUrl())))); - } - - // add `description` to the URL query string - if (getDescription() != null) { - joiner.add( - String.format( - "%sdescription%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getDescription())))); - } - - // add `events` to the URL query string - if (getEvents() != null) { - for (int i = 0; i < getEvents().size(); i++) { - if (getEvents().get(i) != null) { - joiner.add( - String.format( - "%sevents%s%s=%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode( - ApiClient.valueToString(getEvents().get(i))))); - } - } - } - - // add `enabled` to the URL query string - if (getEnabled() != null) { - joiner.add( - String.format( - "%senabled%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getEnabled())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/DVPSettlement.java b/src/main/java/com/fireblocks/sdk/model/DVPSettlement.java deleted file mode 100644 index cdd22f37..00000000 --- a/src/main/java/com/fireblocks/sdk/model/DVPSettlement.java +++ /dev/null @@ -1,262 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** Source/Destination accounts for the quote (must have for defi quotes) */ -@JsonPropertyOrder({ - DVPSettlement.JSON_PROPERTY_TYPE, - DVPSettlement.JSON_PROPERTY_SOURCE_ACCOUNT, - DVPSettlement.JSON_PROPERTY_DESTINATION_ACCOUNT -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class DVPSettlement { - /** Gets or Sets type */ - public enum TypeEnum { - DVP(String.valueOf("DVP")); - - private String value; - - TypeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static TypeEnum fromValue(String value) { - for (TypeEnum b : TypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_TYPE = "type"; - @jakarta.annotation.Nonnull private TypeEnum type; - - public static final String JSON_PROPERTY_SOURCE_ACCOUNT = "sourceAccount"; - @jakarta.annotation.Nonnull private SettlementSourceAccount sourceAccount; - - public static final String JSON_PROPERTY_DESTINATION_ACCOUNT = "destinationAccount"; - @jakarta.annotation.Nonnull private AccountReference destinationAccount; - - public DVPSettlement() {} - - @JsonCreator - public DVPSettlement( - @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) TypeEnum type, - @JsonProperty(value = JSON_PROPERTY_SOURCE_ACCOUNT, required = true) - SettlementSourceAccount sourceAccount, - @JsonProperty(value = JSON_PROPERTY_DESTINATION_ACCOUNT, required = true) - AccountReference destinationAccount) { - this.type = type; - this.sourceAccount = sourceAccount; - this.destinationAccount = destinationAccount; - } - - public DVPSettlement type(@jakarta.annotation.Nonnull TypeEnum type) { - this.type = type; - return this; - } - - /** - * Get type - * - * @return type - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { - return type; - } - - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(@jakarta.annotation.Nonnull TypeEnum type) { - this.type = type; - } - - public DVPSettlement sourceAccount( - @jakarta.annotation.Nonnull SettlementSourceAccount sourceAccount) { - this.sourceAccount = sourceAccount; - return this; - } - - /** - * Get sourceAccount - * - * @return sourceAccount - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SOURCE_ACCOUNT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public SettlementSourceAccount getSourceAccount() { - return sourceAccount; - } - - @JsonProperty(JSON_PROPERTY_SOURCE_ACCOUNT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSourceAccount( - @jakarta.annotation.Nonnull SettlementSourceAccount sourceAccount) { - this.sourceAccount = sourceAccount; - } - - public DVPSettlement destinationAccount( - @jakarta.annotation.Nonnull AccountReference destinationAccount) { - this.destinationAccount = destinationAccount; - return this; - } - - /** - * Get destinationAccount - * - * @return destinationAccount - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DESTINATION_ACCOUNT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccountReference getDestinationAccount() { - return destinationAccount; - } - - @JsonProperty(JSON_PROPERTY_DESTINATION_ACCOUNT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDestinationAccount( - @jakarta.annotation.Nonnull AccountReference destinationAccount) { - this.destinationAccount = destinationAccount; - } - - /** Return true if this DVPSettlement object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - DVPSettlement dvPSettlement = (DVPSettlement) o; - return Objects.equals(this.type, dvPSettlement.type) - && Objects.equals(this.sourceAccount, dvPSettlement.sourceAccount) - && Objects.equals(this.destinationAccount, dvPSettlement.destinationAccount); - } - - @Override - public int hashCode() { - return Objects.hash(type, sourceAccount, destinationAccount); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class DVPSettlement {\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" sourceAccount: ").append(toIndentedString(sourceAccount)).append("\n"); - sb.append(" destinationAccount: ") - .append(toIndentedString(destinationAccount)) - .append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `type` to the URL query string - if (getType() != null) { - joiner.add( - String.format( - "%stype%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getType())))); - } - - // add `sourceAccount` to the URL query string - if (getSourceAccount() != null) { - joiner.add(getSourceAccount().toUrlQueryString(prefix + "sourceAccount" + suffix)); - } - - // add `destinationAccount` to the URL query string - if (getDestinationAccount() != null) { - joiner.add( - getDestinationAccount() - .toUrlQueryString(prefix + "destinationAccount" + suffix)); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/Delegation.java b/src/main/java/com/fireblocks/sdk/model/DelegationDto.java similarity index 73% rename from src/main/java/com/fireblocks/sdk/model/Delegation.java rename to src/main/java/com/fireblocks/sdk/model/DelegationDto.java index 577d985e..59f0f203 100644 --- a/src/main/java/com/fireblocks/sdk/model/Delegation.java +++ b/src/main/java/com/fireblocks/sdk/model/DelegationDto.java @@ -18,37 +18,34 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fireblocks.sdk.ApiClient; -import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.List; import java.util.Objects; import java.util.StringJoiner; -/** Delegation */ +/** DelegationDto */ @JsonPropertyOrder({ - Delegation.JSON_PROPERTY_ID, - Delegation.JSON_PROPERTY_VAULT_ACCOUNT_ID, - Delegation.JSON_PROPERTY_VALIDATOR_NAME, - Delegation.JSON_PROPERTY_PROVIDER_NAME, - Delegation.JSON_PROPERTY_CHAIN_DESCRIPTOR, - Delegation.JSON_PROPERTY_AMOUNT, - Delegation.JSON_PROPERTY_REWARDS_AMOUNT, - Delegation.JSON_PROPERTY_DATE_CREATED, - Delegation.JSON_PROPERTY_DATE_UPDATED, - Delegation.JSON_PROPERTY_STATUS, - Delegation.JSON_PROPERTY_RELATED_TRANSACTIONS, - Delegation.JSON_PROPERTY_VALIDATOR_ADDRESS, - Delegation.JSON_PROPERTY_PROVIDER_ID, - Delegation.JSON_PROPERTY_AVAILABLE_ACTIONS, - Delegation.JSON_PROPERTY_IN_PROGRESS, - Delegation.JSON_PROPERTY_IN_PROGRESS_TX_ID, - Delegation.JSON_PROPERTY_BLOCKCHAIN_POSITION_INFO, - Delegation.JSON_PROPERTY_RELATED_REQUESTS + DelegationDto.JSON_PROPERTY_ID, + DelegationDto.JSON_PROPERTY_VAULT_ACCOUNT_ID, + DelegationDto.JSON_PROPERTY_VALIDATOR_NAME, + DelegationDto.JSON_PROPERTY_PROVIDER_NAME, + DelegationDto.JSON_PROPERTY_CHAIN_DESCRIPTOR, + DelegationDto.JSON_PROPERTY_AMOUNT, + DelegationDto.JSON_PROPERTY_REWARDS_AMOUNT, + DelegationDto.JSON_PROPERTY_DATE_CREATED, + DelegationDto.JSON_PROPERTY_STATUS, + DelegationDto.JSON_PROPERTY_RELATED_TRANSACTIONS, + DelegationDto.JSON_PROPERTY_VALIDATOR_ADDRESS, + DelegationDto.JSON_PROPERTY_PROVIDER_ID, + DelegationDto.JSON_PROPERTY_AVAILABLE_ACTIONS, + DelegationDto.JSON_PROPERTY_IN_PROGRESS, + DelegationDto.JSON_PROPERTY_IN_PROGRESS_TX_ID, + DelegationDto.JSON_PROPERTY_BLOCKCHAIN_POSITION_INFO }) @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") -public class Delegation { +public class DelegationDto { public static final String JSON_PROPERTY_ID = "id"; @jakarta.annotation.Nonnull private String id; @@ -71,27 +68,22 @@ public class Delegation { @jakarta.annotation.Nonnull private String rewardsAmount; public static final String JSON_PROPERTY_DATE_CREATED = "dateCreated"; - @jakarta.annotation.Nonnull private OffsetDateTime dateCreated; - - public static final String JSON_PROPERTY_DATE_UPDATED = "dateUpdated"; - @jakarta.annotation.Nonnull private OffsetDateTime dateUpdated; + @jakarta.annotation.Nonnull private String dateCreated; public static final String JSON_PROPERTY_STATUS = "status"; @jakarta.annotation.Nonnull private String status; public static final String JSON_PROPERTY_RELATED_TRANSACTIONS = "relatedTransactions"; - - @jakarta.annotation.Nonnull - private List relatedTransactions = new ArrayList<>(); + @jakarta.annotation.Nonnull private List relatedTransactions; public static final String JSON_PROPERTY_VALIDATOR_ADDRESS = "validatorAddress"; @jakarta.annotation.Nonnull private String validatorAddress; public static final String JSON_PROPERTY_PROVIDER_ID = "providerId"; - @jakarta.annotation.Nonnull private StakingProvider providerId; + @jakarta.annotation.Nonnull private String providerId; public static final String JSON_PROPERTY_AVAILABLE_ACTIONS = "availableActions"; - @jakarta.annotation.Nonnull private List availableActions = new ArrayList<>(); + @jakarta.annotation.Nonnull private List availableActions; public static final String JSON_PROPERTY_IN_PROGRESS = "inProgress"; @jakarta.annotation.Nonnull private Boolean inProgress; @@ -100,15 +92,12 @@ public class Delegation { @jakarta.annotation.Nullable private String inProgressTxId; public static final String JSON_PROPERTY_BLOCKCHAIN_POSITION_INFO = "blockchainPositionInfo"; - @jakarta.annotation.Nonnull private SolanaBlockchainData blockchainPositionInfo; - - public static final String JSON_PROPERTY_RELATED_REQUESTS = "relatedRequests"; - @jakarta.annotation.Nullable private List relatedRequests = new ArrayList<>(); + @jakarta.annotation.Nonnull private SolanaBlockchainDataDto blockchainPositionInfo; - public Delegation() {} + public DelegationDto() {} @JsonCreator - public Delegation( + public DelegationDto( @JsonProperty(value = JSON_PROPERTY_ID, required = true) String id, @JsonProperty(value = JSON_PROPERTY_VAULT_ACCOUNT_ID, required = true) String vaultAccountId, @@ -120,22 +109,18 @@ public Delegation( @JsonProperty(value = JSON_PROPERTY_AMOUNT, required = true) String amount, @JsonProperty(value = JSON_PROPERTY_REWARDS_AMOUNT, required = true) String rewardsAmount, - @JsonProperty(value = JSON_PROPERTY_DATE_CREATED, required = true) - OffsetDateTime dateCreated, - @JsonProperty(value = JSON_PROPERTY_DATE_UPDATED, required = true) - OffsetDateTime dateUpdated, + @JsonProperty(value = JSON_PROPERTY_DATE_CREATED, required = true) String dateCreated, @JsonProperty(value = JSON_PROPERTY_STATUS, required = true) String status, @JsonProperty(value = JSON_PROPERTY_RELATED_TRANSACTIONS, required = true) - List relatedTransactions, + List relatedTransactions, @JsonProperty(value = JSON_PROPERTY_VALIDATOR_ADDRESS, required = true) String validatorAddress, - @JsonProperty(value = JSON_PROPERTY_PROVIDER_ID, required = true) - StakingProvider providerId, + @JsonProperty(value = JSON_PROPERTY_PROVIDER_ID, required = true) String providerId, @JsonProperty(value = JSON_PROPERTY_AVAILABLE_ACTIONS, required = true) List availableActions, @JsonProperty(value = JSON_PROPERTY_IN_PROGRESS, required = true) Boolean inProgress, @JsonProperty(value = JSON_PROPERTY_BLOCKCHAIN_POSITION_INFO, required = true) - SolanaBlockchainData blockchainPositionInfo) { + SolanaBlockchainDataDto blockchainPositionInfo) { this.id = id; this.vaultAccountId = vaultAccountId; this.validatorName = validatorName; @@ -144,7 +129,6 @@ public Delegation( this.amount = amount; this.rewardsAmount = rewardsAmount; this.dateCreated = dateCreated; - this.dateUpdated = dateUpdated; this.status = status; this.relatedTransactions = relatedTransactions; this.validatorAddress = validatorAddress; @@ -154,7 +138,7 @@ public Delegation( this.blockchainPositionInfo = blockchainPositionInfo; } - public Delegation id(@jakarta.annotation.Nonnull String id) { + public DelegationDto id(@jakarta.annotation.Nonnull String id) { this.id = id; return this; } @@ -177,7 +161,7 @@ public void setId(@jakarta.annotation.Nonnull String id) { this.id = id; } - public Delegation vaultAccountId(@jakarta.annotation.Nonnull String vaultAccountId) { + public DelegationDto vaultAccountId(@jakarta.annotation.Nonnull String vaultAccountId) { this.vaultAccountId = vaultAccountId; return this; } @@ -200,7 +184,7 @@ public void setVaultAccountId(@jakarta.annotation.Nonnull String vaultAccountId) this.vaultAccountId = vaultAccountId; } - public Delegation validatorName(@jakarta.annotation.Nonnull String validatorName) { + public DelegationDto validatorName(@jakarta.annotation.Nonnull String validatorName) { this.validatorName = validatorName; return this; } @@ -223,7 +207,7 @@ public void setValidatorName(@jakarta.annotation.Nonnull String validatorName) { this.validatorName = validatorName; } - public Delegation providerName(@jakarta.annotation.Nonnull String providerName) { + public DelegationDto providerName(@jakarta.annotation.Nonnull String providerName) { this.providerName = providerName; return this; } @@ -246,7 +230,7 @@ public void setProviderName(@jakarta.annotation.Nonnull String providerName) { this.providerName = providerName; } - public Delegation chainDescriptor(@jakarta.annotation.Nonnull String chainDescriptor) { + public DelegationDto chainDescriptor(@jakarta.annotation.Nonnull String chainDescriptor) { this.chainDescriptor = chainDescriptor; return this; } @@ -269,7 +253,7 @@ public void setChainDescriptor(@jakarta.annotation.Nonnull String chainDescripto this.chainDescriptor = chainDescriptor; } - public Delegation amount(@jakarta.annotation.Nonnull String amount) { + public DelegationDto amount(@jakarta.annotation.Nonnull String amount) { this.amount = amount; return this; } @@ -292,7 +276,7 @@ public void setAmount(@jakarta.annotation.Nonnull String amount) { this.amount = amount; } - public Delegation rewardsAmount(@jakarta.annotation.Nonnull String rewardsAmount) { + public DelegationDto rewardsAmount(@jakarta.annotation.Nonnull String rewardsAmount) { this.rewardsAmount = rewardsAmount; return this; } @@ -315,7 +299,7 @@ public void setRewardsAmount(@jakarta.annotation.Nonnull String rewardsAmount) { this.rewardsAmount = rewardsAmount; } - public Delegation dateCreated(@jakarta.annotation.Nonnull OffsetDateTime dateCreated) { + public DelegationDto dateCreated(@jakarta.annotation.Nonnull String dateCreated) { this.dateCreated = dateCreated; return this; } @@ -328,40 +312,17 @@ public Delegation dateCreated(@jakarta.annotation.Nonnull OffsetDateTime dateCre @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DATE_CREATED) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public OffsetDateTime getDateCreated() { + public String getDateCreated() { return dateCreated; } @JsonProperty(JSON_PROPERTY_DATE_CREATED) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDateCreated(@jakarta.annotation.Nonnull OffsetDateTime dateCreated) { + public void setDateCreated(@jakarta.annotation.Nonnull String dateCreated) { this.dateCreated = dateCreated; } - public Delegation dateUpdated(@jakarta.annotation.Nonnull OffsetDateTime dateUpdated) { - this.dateUpdated = dateUpdated; - return this; - } - - /** - * When has the position last changed (ISO Date). - * - * @return dateUpdated - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DATE_UPDATED) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public OffsetDateTime getDateUpdated() { - return dateUpdated; - } - - @JsonProperty(JSON_PROPERTY_DATE_UPDATED) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDateUpdated(@jakarta.annotation.Nonnull OffsetDateTime dateUpdated) { - this.dateUpdated = dateUpdated; - } - - public Delegation status(@jakarta.annotation.Nonnull String status) { + public DelegationDto status(@jakarta.annotation.Nonnull String status) { this.status = status; return this; } @@ -384,13 +345,13 @@ public void setStatus(@jakarta.annotation.Nonnull String status) { this.status = status; } - public Delegation relatedTransactions( - @jakarta.annotation.Nonnull List relatedTransactions) { + public DelegationDto relatedTransactions( + @jakarta.annotation.Nonnull List relatedTransactions) { this.relatedTransactions = relatedTransactions; return this; } - public Delegation addRelatedTransactionsItem(RelatedTransaction relatedTransactionsItem) { + public DelegationDto addRelatedTransactionsItem(RelatedTransactionDto relatedTransactionsItem) { if (this.relatedTransactions == null) { this.relatedTransactions = new ArrayList<>(); } @@ -408,18 +369,18 @@ public Delegation addRelatedTransactionsItem(RelatedTransaction relatedTransacti @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATED_TRANSACTIONS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getRelatedTransactions() { + public List getRelatedTransactions() { return relatedTransactions; } @JsonProperty(JSON_PROPERTY_RELATED_TRANSACTIONS) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setRelatedTransactions( - @jakarta.annotation.Nonnull List relatedTransactions) { + @jakarta.annotation.Nonnull List relatedTransactions) { this.relatedTransactions = relatedTransactions; } - public Delegation validatorAddress(@jakarta.annotation.Nonnull String validatorAddress) { + public DelegationDto validatorAddress(@jakarta.annotation.Nonnull String validatorAddress) { this.validatorAddress = validatorAddress; return this; } @@ -442,35 +403,36 @@ public void setValidatorAddress(@jakarta.annotation.Nonnull String validatorAddr this.validatorAddress = validatorAddress; } - public Delegation providerId(@jakarta.annotation.Nonnull StakingProvider providerId) { + public DelegationDto providerId(@jakarta.annotation.Nonnull String providerId) { this.providerId = providerId; return this; } /** - * Get providerId + * The unique identifier of the staking provider * * @return providerId */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_PROVIDER_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public StakingProvider getProviderId() { + public String getProviderId() { return providerId; } @JsonProperty(JSON_PROPERTY_PROVIDER_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setProviderId(@jakarta.annotation.Nonnull StakingProvider providerId) { + public void setProviderId(@jakarta.annotation.Nonnull String providerId) { this.providerId = providerId; } - public Delegation availableActions(@jakarta.annotation.Nonnull List availableActions) { + public DelegationDto availableActions( + @jakarta.annotation.Nonnull List availableActions) { this.availableActions = availableActions; return this; } - public Delegation addAvailableActionsItem(String availableActionsItem) { + public DelegationDto addAvailableActionsItem(String availableActionsItem) { if (this.availableActions == null) { this.availableActions = new ArrayList<>(); } @@ -497,7 +459,7 @@ public void setAvailableActions(@jakarta.annotation.Nonnull List availab this.availableActions = availableActions; } - public Delegation inProgress(@jakarta.annotation.Nonnull Boolean inProgress) { + public DelegationDto inProgress(@jakarta.annotation.Nonnull Boolean inProgress) { this.inProgress = inProgress; return this; } @@ -521,7 +483,7 @@ public void setInProgress(@jakarta.annotation.Nonnull Boolean inProgress) { this.inProgress = inProgress; } - public Delegation inProgressTxId(@jakarta.annotation.Nullable String inProgressTxId) { + public DelegationDto inProgressTxId(@jakarta.annotation.Nullable String inProgressTxId) { this.inProgressTxId = inProgressTxId; return this; } @@ -544,69 +506,35 @@ public void setInProgressTxId(@jakarta.annotation.Nullable String inProgressTxId this.inProgressTxId = inProgressTxId; } - public Delegation blockchainPositionInfo( - @jakarta.annotation.Nonnull SolanaBlockchainData blockchainPositionInfo) { + public DelegationDto blockchainPositionInfo( + @jakarta.annotation.Nonnull SolanaBlockchainDataDto blockchainPositionInfo) { this.blockchainPositionInfo = blockchainPositionInfo; return this; } /** - * Get blockchainPositionInfo + * Additional fields per blockchain - can be empty or missing if not initialized or no + * additional info exists. The type depends on the chainDescriptor value. For Solana (SOL), + * stake account address. For Ethereum (ETH), an empty object is returned as no specific data is + * available. * * @return blockchainPositionInfo */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_BLOCKCHAIN_POSITION_INFO) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public SolanaBlockchainData getBlockchainPositionInfo() { + public SolanaBlockchainDataDto getBlockchainPositionInfo() { return blockchainPositionInfo; } @JsonProperty(JSON_PROPERTY_BLOCKCHAIN_POSITION_INFO) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setBlockchainPositionInfo( - @jakarta.annotation.Nonnull SolanaBlockchainData blockchainPositionInfo) { + @jakarta.annotation.Nonnull SolanaBlockchainDataDto blockchainPositionInfo) { this.blockchainPositionInfo = blockchainPositionInfo; } - public Delegation relatedRequests( - @jakarta.annotation.Nullable List relatedRequests) { - this.relatedRequests = relatedRequests; - return this; - } - - public Delegation addRelatedRequestsItem(RelatedRequest relatedRequestsItem) { - if (this.relatedRequests == null) { - this.relatedRequests = new ArrayList<>(); - } - this.relatedRequests.add(relatedRequestsItem); - return this; - } - - /** - * An array of partial unstake requests for this position, relevant only for the Lido provider. - * Each object includes the status of the unstake request, a boolean indicating whether the - * action is in progress, the amount of tokens to unstake, and the transaction ID of the - * request. With Lido, a position may have multiple partial unstake requests in different - * states. This field is optional and not applicable for other providers. - * - * @return relatedRequests - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_RELATED_REQUESTS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getRelatedRequests() { - return relatedRequests; - } - - @JsonProperty(JSON_PROPERTY_RELATED_REQUESTS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRelatedRequests( - @jakarta.annotation.Nullable List relatedRequests) { - this.relatedRequests = relatedRequests; - } - - /** Return true if this Delegation object is equal to o. */ + /** Return true if this DelegationDto object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -615,25 +543,24 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - Delegation delegation = (Delegation) o; - return Objects.equals(this.id, delegation.id) - && Objects.equals(this.vaultAccountId, delegation.vaultAccountId) - && Objects.equals(this.validatorName, delegation.validatorName) - && Objects.equals(this.providerName, delegation.providerName) - && Objects.equals(this.chainDescriptor, delegation.chainDescriptor) - && Objects.equals(this.amount, delegation.amount) - && Objects.equals(this.rewardsAmount, delegation.rewardsAmount) - && Objects.equals(this.dateCreated, delegation.dateCreated) - && Objects.equals(this.dateUpdated, delegation.dateUpdated) - && Objects.equals(this.status, delegation.status) - && Objects.equals(this.relatedTransactions, delegation.relatedTransactions) - && Objects.equals(this.validatorAddress, delegation.validatorAddress) - && Objects.equals(this.providerId, delegation.providerId) - && Objects.equals(this.availableActions, delegation.availableActions) - && Objects.equals(this.inProgress, delegation.inProgress) - && Objects.equals(this.inProgressTxId, delegation.inProgressTxId) - && Objects.equals(this.blockchainPositionInfo, delegation.blockchainPositionInfo) - && Objects.equals(this.relatedRequests, delegation.relatedRequests); + DelegationDto delegationDto = (DelegationDto) o; + return Objects.equals(this.id, delegationDto.id) + && Objects.equals(this.vaultAccountId, delegationDto.vaultAccountId) + && Objects.equals(this.validatorName, delegationDto.validatorName) + && Objects.equals(this.providerName, delegationDto.providerName) + && Objects.equals(this.chainDescriptor, delegationDto.chainDescriptor) + && Objects.equals(this.amount, delegationDto.amount) + && Objects.equals(this.rewardsAmount, delegationDto.rewardsAmount) + && Objects.equals(this.dateCreated, delegationDto.dateCreated) + && Objects.equals(this.status, delegationDto.status) + && Objects.equals(this.relatedTransactions, delegationDto.relatedTransactions) + && Objects.equals(this.validatorAddress, delegationDto.validatorAddress) + && Objects.equals(this.providerId, delegationDto.providerId) + && Objects.equals(this.availableActions, delegationDto.availableActions) + && Objects.equals(this.inProgress, delegationDto.inProgress) + && Objects.equals(this.inProgressTxId, delegationDto.inProgressTxId) + && Objects.equals( + this.blockchainPositionInfo, delegationDto.blockchainPositionInfo); } @Override @@ -647,7 +574,6 @@ public int hashCode() { amount, rewardsAmount, dateCreated, - dateUpdated, status, relatedTransactions, validatorAddress, @@ -655,14 +581,13 @@ public int hashCode() { availableActions, inProgress, inProgressTxId, - blockchainPositionInfo, - relatedRequests); + blockchainPositionInfo); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class Delegation {\n"); + sb.append("class DelegationDto {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" vaultAccountId: ").append(toIndentedString(vaultAccountId)).append("\n"); sb.append(" validatorName: ").append(toIndentedString(validatorName)).append("\n"); @@ -671,7 +596,6 @@ public String toString() { sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); sb.append(" rewardsAmount: ").append(toIndentedString(rewardsAmount)).append("\n"); sb.append(" dateCreated: ").append(toIndentedString(dateCreated)).append("\n"); - sb.append(" dateUpdated: ").append(toIndentedString(dateUpdated)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" relatedTransactions: ") .append(toIndentedString(relatedTransactions)) @@ -684,7 +608,6 @@ public String toString() { sb.append(" blockchainPositionInfo: ") .append(toIndentedString(blockchainPositionInfo)) .append("\n"); - sb.append(" relatedRequests: ").append(toIndentedString(relatedRequests)).append("\n"); sb.append("}"); return sb.toString(); } @@ -810,16 +733,6 @@ public String toUrlQueryString(String prefix) { ApiClient.urlEncode(ApiClient.valueToString(getDateCreated())))); } - // add `dateUpdated` to the URL query string - if (getDateUpdated() != null) { - joiner.add( - String.format( - "%sdateUpdated%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getDateUpdated())))); - } - // add `status` to the URL query string if (getStatus() != null) { joiner.add( @@ -917,29 +830,6 @@ public String toUrlQueryString(String prefix) { .toUrlQueryString(prefix + "blockchainPositionInfo" + suffix)); } - // add `relatedRequests` to the URL query string - if (getRelatedRequests() != null) { - for (int i = 0; i < getRelatedRequests().size(); i++) { - if (getRelatedRequests().get(i) != null) { - joiner.add( - getRelatedRequests() - .get(i) - .toUrlQueryString( - String.format( - "%srelatedRequests%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } - } - return joiner.toString(); } } diff --git a/src/main/java/com/fireblocks/sdk/model/DelegationSummary.java b/src/main/java/com/fireblocks/sdk/model/DelegationSummaryDto.java similarity index 90% rename from src/main/java/com/fireblocks/sdk/model/DelegationSummary.java rename to src/main/java/com/fireblocks/sdk/model/DelegationSummaryDto.java index 7a321d7a..f47b6dac 100644 --- a/src/main/java/com/fireblocks/sdk/model/DelegationSummary.java +++ b/src/main/java/com/fireblocks/sdk/model/DelegationSummaryDto.java @@ -22,37 +22,33 @@ import java.util.Objects; import java.util.StringJoiner; -/** DelegationSummary */ +/** DelegationSummaryDto */ @JsonPropertyOrder({ - DelegationSummary.JSON_PROPERTY_ACTIVE, - DelegationSummary.JSON_PROPERTY_INACTIVE, - DelegationSummary.JSON_PROPERTY_REWARDS_AMOUNT, - DelegationSummary.JSON_PROPERTY_TOTAL_STAKED + DelegationSummaryDto.JSON_PROPERTY_ACTIVE, + DelegationSummaryDto.JSON_PROPERTY_INACTIVE, + DelegationSummaryDto.JSON_PROPERTY_REWARDS_AMOUNT, + DelegationSummaryDto.JSON_PROPERTY_TOTAL_STAKED }) @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") -public class DelegationSummary { +public class DelegationSummaryDto { public static final String JSON_PROPERTY_ACTIVE = "active"; - @jakarta.annotation.Nonnull private List active = new ArrayList<>(); + @jakarta.annotation.Nonnull private List active; public static final String JSON_PROPERTY_INACTIVE = "inactive"; - @jakarta.annotation.Nonnull private List inactive = new ArrayList<>(); + @jakarta.annotation.Nonnull private List inactive; public static final String JSON_PROPERTY_REWARDS_AMOUNT = "rewardsAmount"; - - @jakarta.annotation.Nonnull - private List rewardsAmount = new ArrayList<>(); + @jakarta.annotation.Nonnull private List rewardsAmount; public static final String JSON_PROPERTY_TOTAL_STAKED = "totalStaked"; + @jakarta.annotation.Nonnull private List totalStaked; - @jakarta.annotation.Nonnull - private List totalStaked = new ArrayList<>(); - - public DelegationSummary() {} + public DelegationSummaryDto() {} @JsonCreator - public DelegationSummary( + public DelegationSummaryDto( @JsonProperty(value = JSON_PROPERTY_ACTIVE, required = true) List active, @JsonProperty(value = JSON_PROPERTY_INACTIVE, required = true) @@ -67,13 +63,13 @@ public DelegationSummary( this.totalStaked = totalStaked; } - public DelegationSummary active( + public DelegationSummaryDto active( @jakarta.annotation.Nonnull List active) { this.active = active; return this; } - public DelegationSummary addActiveItem(AmountAndChainDescriptor activeItem) { + public DelegationSummaryDto addActiveItem(AmountAndChainDescriptor activeItem) { if (this.active == null) { this.active = new ArrayList<>(); } @@ -100,13 +96,13 @@ public void setActive(@jakarta.annotation.Nonnull List this.active = active; } - public DelegationSummary inactive( + public DelegationSummaryDto inactive( @jakarta.annotation.Nonnull List inactive) { this.inactive = inactive; return this; } - public DelegationSummary addInactiveItem(AmountAndChainDescriptor inactiveItem) { + public DelegationSummaryDto addInactiveItem(AmountAndChainDescriptor inactiveItem) { if (this.inactive == null) { this.inactive = new ArrayList<>(); } @@ -133,13 +129,13 @@ public void setInactive(@jakarta.annotation.Nonnull List rewardsAmount) { this.rewardsAmount = rewardsAmount; return this; } - public DelegationSummary addRewardsAmountItem(AmountAndChainDescriptor rewardsAmountItem) { + public DelegationSummaryDto addRewardsAmountItem(AmountAndChainDescriptor rewardsAmountItem) { if (this.rewardsAmount == null) { this.rewardsAmount = new ArrayList<>(); } @@ -167,13 +163,13 @@ public void setRewardsAmount( this.rewardsAmount = rewardsAmount; } - public DelegationSummary totalStaked( + public DelegationSummaryDto totalStaked( @jakarta.annotation.Nonnull List totalStaked) { this.totalStaked = totalStaked; return this; } - public DelegationSummary addTotalStakedItem(AmountAndChainDescriptor totalStakedItem) { + public DelegationSummaryDto addTotalStakedItem(AmountAndChainDescriptor totalStakedItem) { if (this.totalStaked == null) { this.totalStaked = new ArrayList<>(); } @@ -201,7 +197,7 @@ public void setTotalStaked( this.totalStaked = totalStaked; } - /** Return true if this DelegationSummary object is equal to o. */ + /** Return true if this DelegationSummaryDto object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -210,11 +206,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - DelegationSummary delegationSummary = (DelegationSummary) o; - return Objects.equals(this.active, delegationSummary.active) - && Objects.equals(this.inactive, delegationSummary.inactive) - && Objects.equals(this.rewardsAmount, delegationSummary.rewardsAmount) - && Objects.equals(this.totalStaked, delegationSummary.totalStaked); + DelegationSummaryDto delegationSummaryDto = (DelegationSummaryDto) o; + return Objects.equals(this.active, delegationSummaryDto.active) + && Objects.equals(this.inactive, delegationSummaryDto.inactive) + && Objects.equals(this.rewardsAmount, delegationSummaryDto.rewardsAmount) + && Objects.equals(this.totalStaked, delegationSummaryDto.totalStaked); } @Override @@ -225,7 +221,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class DelegationSummary {\n"); + sb.append("class DelegationSummaryDto {\n"); sb.append(" active: ").append(toIndentedString(active)).append("\n"); sb.append(" inactive: ").append(toIndentedString(inactive)).append("\n"); sb.append(" rewardsAmount: ").append(toIndentedString(rewardsAmount)).append("\n"); diff --git a/src/main/java/com/fireblocks/sdk/model/DeployLayerZeroAdaptersRequest.java b/src/main/java/com/fireblocks/sdk/model/DeployLayerZeroAdaptersRequest.java deleted file mode 100644 index e9b0faef..00000000 --- a/src/main/java/com/fireblocks/sdk/model/DeployLayerZeroAdaptersRequest.java +++ /dev/null @@ -1,460 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fireblocks.sdk.ApiClient; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** DeployLayerZeroAdaptersRequest */ -@JsonPropertyOrder({ - DeployLayerZeroAdaptersRequest.JSON_PROPERTY_VAULT_ACCOUNT_ID, - DeployLayerZeroAdaptersRequest.JSON_PROPERTY_CREATE_PARAMS, - DeployLayerZeroAdaptersRequest.JSON_PROPERTY_DISPLAY_NAME, - DeployLayerZeroAdaptersRequest.JSON_PROPERTY_USE_GASLESS, - DeployLayerZeroAdaptersRequest.JSON_PROPERTY_FEE_LEVEL, - DeployLayerZeroAdaptersRequest.JSON_PROPERTY_FEE, - DeployLayerZeroAdaptersRequest.JSON_PROPERTY_SALT -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class DeployLayerZeroAdaptersRequest { - public static final String JSON_PROPERTY_VAULT_ACCOUNT_ID = "vaultAccountId"; - @jakarta.annotation.Nonnull private String vaultAccountId; - - public static final String JSON_PROPERTY_CREATE_PARAMS = "createParams"; - - @jakarta.annotation.Nonnull - private List createParams = new ArrayList<>(); - - public static final String JSON_PROPERTY_DISPLAY_NAME = "displayName"; - @jakarta.annotation.Nullable private String displayName; - - public static final String JSON_PROPERTY_USE_GASLESS = "useGasless"; - @jakarta.annotation.Nullable private Boolean useGasless; - - /** - * Fee level for the write function transaction. interchangeable with the 'fee' field - */ - public enum FeeLevelEnum { - LOW(String.valueOf("LOW")), - - MEDIUM(String.valueOf("MEDIUM")), - - HIGH(String.valueOf("HIGH")); - - private String value; - - FeeLevelEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static FeeLevelEnum fromValue(String value) { - for (FeeLevelEnum b : FeeLevelEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_FEE_LEVEL = "feeLevel"; - @jakarta.annotation.Nullable private FeeLevelEnum feeLevel; - - public static final String JSON_PROPERTY_FEE = "fee"; - @jakarta.annotation.Nullable private String fee; - - public static final String JSON_PROPERTY_SALT = "salt"; - @jakarta.annotation.Nullable private String salt; - - public DeployLayerZeroAdaptersRequest() {} - - @JsonCreator - public DeployLayerZeroAdaptersRequest( - @JsonProperty(value = JSON_PROPERTY_VAULT_ACCOUNT_ID, required = true) - String vaultAccountId, - @JsonProperty(value = JSON_PROPERTY_CREATE_PARAMS, required = true) - List createParams) { - this.vaultAccountId = vaultAccountId; - this.createParams = createParams; - } - - public DeployLayerZeroAdaptersRequest vaultAccountId( - @jakarta.annotation.Nonnull String vaultAccountId) { - this.vaultAccountId = vaultAccountId; - return this; - } - - /** - * The id of the vault account that initiated the request to deploy adapter for the token - * - * @return vaultAccountId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_VAULT_ACCOUNT_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getVaultAccountId() { - return vaultAccountId; - } - - @JsonProperty(JSON_PROPERTY_VAULT_ACCOUNT_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setVaultAccountId(@jakarta.annotation.Nonnull String vaultAccountId) { - this.vaultAccountId = vaultAccountId; - } - - public DeployLayerZeroAdaptersRequest createParams( - @jakarta.annotation.Nonnull List createParams) { - this.createParams = createParams; - return this; - } - - public DeployLayerZeroAdaptersRequest addCreateParamsItem( - LayerZeroAdapterCreateParams createParamsItem) { - if (this.createParams == null) { - this.createParams = new ArrayList<>(); - } - this.createParams.add(createParamsItem); - return this; - } - - /** - * Array of creation parameters for LayerZero adapters, one per tokenLink. - * - * @return createParams - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CREATE_PARAMS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getCreateParams() { - return createParams; - } - - @JsonProperty(JSON_PROPERTY_CREATE_PARAMS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCreateParams( - @jakarta.annotation.Nonnull List createParams) { - this.createParams = createParams; - } - - public DeployLayerZeroAdaptersRequest displayName( - @jakarta.annotation.Nullable String displayName) { - this.displayName = displayName; - return this; - } - - /** - * The display name of the contract - * - * @return displayName - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DISPLAY_NAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getDisplayName() { - return displayName; - } - - @JsonProperty(JSON_PROPERTY_DISPLAY_NAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDisplayName(@jakarta.annotation.Nullable String displayName) { - this.displayName = displayName; - } - - public DeployLayerZeroAdaptersRequest useGasless( - @jakarta.annotation.Nullable Boolean useGasless) { - this.useGasless = useGasless; - return this; - } - - /** - * Whether to use gasless deployment or not - * - * @return useGasless - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USE_GASLESS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getUseGasless() { - return useGasless; - } - - @JsonProperty(JSON_PROPERTY_USE_GASLESS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUseGasless(@jakarta.annotation.Nullable Boolean useGasless) { - this.useGasless = useGasless; - } - - public DeployLayerZeroAdaptersRequest feeLevel( - @jakarta.annotation.Nullable FeeLevelEnum feeLevel) { - this.feeLevel = feeLevel; - return this; - } - - /** - * Fee level for the write function transaction. interchangeable with the 'fee' field - * - * @return feeLevel - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FEE_LEVEL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public FeeLevelEnum getFeeLevel() { - return feeLevel; - } - - @JsonProperty(JSON_PROPERTY_FEE_LEVEL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFeeLevel(@jakarta.annotation.Nullable FeeLevelEnum feeLevel) { - this.feeLevel = feeLevel; - } - - public DeployLayerZeroAdaptersRequest fee(@jakarta.annotation.Nullable String fee) { - this.fee = fee; - return this; - } - - /** - * Max fee amount for the write function transaction. interchangeable with the - * 'feeLevel' field - * - * @return fee - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FEE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getFee() { - return fee; - } - - @JsonProperty(JSON_PROPERTY_FEE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFee(@jakarta.annotation.Nullable String fee) { - this.fee = fee; - } - - public DeployLayerZeroAdaptersRequest salt(@jakarta.annotation.Nullable String salt) { - this.salt = salt; - return this; - } - - /** - * The salt to calculate the deterministic address. Must be a number between 0 and 2^256 -1, for - * it to fit in the bytes32 parameter - * - * @return salt - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SALT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getSalt() { - return salt; - } - - @JsonProperty(JSON_PROPERTY_SALT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSalt(@jakarta.annotation.Nullable String salt) { - this.salt = salt; - } - - /** Return true if this DeployLayerZeroAdaptersRequest object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - DeployLayerZeroAdaptersRequest deployLayerZeroAdaptersRequest = - (DeployLayerZeroAdaptersRequest) o; - return Objects.equals(this.vaultAccountId, deployLayerZeroAdaptersRequest.vaultAccountId) - && Objects.equals(this.createParams, deployLayerZeroAdaptersRequest.createParams) - && Objects.equals(this.displayName, deployLayerZeroAdaptersRequest.displayName) - && Objects.equals(this.useGasless, deployLayerZeroAdaptersRequest.useGasless) - && Objects.equals(this.feeLevel, deployLayerZeroAdaptersRequest.feeLevel) - && Objects.equals(this.fee, deployLayerZeroAdaptersRequest.fee) - && Objects.equals(this.salt, deployLayerZeroAdaptersRequest.salt); - } - - @Override - public int hashCode() { - return Objects.hash( - vaultAccountId, createParams, displayName, useGasless, feeLevel, fee, salt); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class DeployLayerZeroAdaptersRequest {\n"); - sb.append(" vaultAccountId: ").append(toIndentedString(vaultAccountId)).append("\n"); - sb.append(" createParams: ").append(toIndentedString(createParams)).append("\n"); - sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n"); - sb.append(" useGasless: ").append(toIndentedString(useGasless)).append("\n"); - sb.append(" feeLevel: ").append(toIndentedString(feeLevel)).append("\n"); - sb.append(" fee: ").append(toIndentedString(fee)).append("\n"); - sb.append(" salt: ").append(toIndentedString(salt)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `vaultAccountId` to the URL query string - if (getVaultAccountId() != null) { - joiner.add( - String.format( - "%svaultAccountId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getVaultAccountId())))); - } - - // add `createParams` to the URL query string - if (getCreateParams() != null) { - for (int i = 0; i < getCreateParams().size(); i++) { - if (getCreateParams().get(i) != null) { - joiner.add( - getCreateParams() - .get(i) - .toUrlQueryString( - String.format( - "%screateParams%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } - } - - // add `displayName` to the URL query string - if (getDisplayName() != null) { - joiner.add( - String.format( - "%sdisplayName%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getDisplayName())))); - } - - // add `useGasless` to the URL query string - if (getUseGasless() != null) { - joiner.add( - String.format( - "%suseGasless%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getUseGasless())))); - } - - // add `feeLevel` to the URL query string - if (getFeeLevel() != null) { - joiner.add( - String.format( - "%sfeeLevel%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getFeeLevel())))); - } - - // add `fee` to the URL query string - if (getFee() != null) { - joiner.add( - String.format( - "%sfee%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getFee())))); - } - - // add `salt` to the URL query string - if (getSalt() != null) { - joiner.add( - String.format( - "%ssalt%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getSalt())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/DeployableAddressResponse.java b/src/main/java/com/fireblocks/sdk/model/DeployableAddressResponse.java deleted file mode 100644 index 63f90dc7..00000000 --- a/src/main/java/com/fireblocks/sdk/model/DeployableAddressResponse.java +++ /dev/null @@ -1,146 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** Response DTO containing a deployable address */ -@JsonPropertyOrder({DeployableAddressResponse.JSON_PROPERTY_ADDRESS}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class DeployableAddressResponse { - public static final String JSON_PROPERTY_ADDRESS = "address"; - @jakarta.annotation.Nonnull private String address; - - public DeployableAddressResponse() {} - - @JsonCreator - public DeployableAddressResponse( - @JsonProperty(value = JSON_PROPERTY_ADDRESS, required = true) String address) { - this.address = address; - } - - public DeployableAddressResponse address(@jakarta.annotation.Nonnull String address) { - this.address = address; - return this; - } - - /** - * The deployable address - * - * @return address - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ADDRESS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getAddress() { - return address; - } - - @JsonProperty(JSON_PROPERTY_ADDRESS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAddress(@jakarta.annotation.Nonnull String address) { - this.address = address; - } - - /** Return true if this DeployableAddressResponse object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - DeployableAddressResponse deployableAddressResponse = (DeployableAddressResponse) o; - return Objects.equals(this.address, deployableAddressResponse.address); - } - - @Override - public int hashCode() { - return Objects.hash(address); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class DeployableAddressResponse {\n"); - sb.append(" address: ").append(toIndentedString(address)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `address` to the URL query string - if (getAddress() != null) { - joiner.add( - String.format( - "%saddress%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAddress())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/DeployedContractNotFoundError.java b/src/main/java/com/fireblocks/sdk/model/DeployedContractNotFoundError.java deleted file mode 100644 index a7bb5670..00000000 --- a/src/main/java/com/fireblocks/sdk/model/DeployedContractNotFoundError.java +++ /dev/null @@ -1,191 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.math.BigDecimal; -import java.util.Objects; -import java.util.StringJoiner; - -/** DeployedContractNotFoundError */ -@JsonPropertyOrder({ - DeployedContractNotFoundError.JSON_PROPERTY_MESSAGE, - DeployedContractNotFoundError.JSON_PROPERTY_CODE -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class DeployedContractNotFoundError { - public static final String JSON_PROPERTY_MESSAGE = "message"; - @jakarta.annotation.Nonnull private String message; - - public static final String JSON_PROPERTY_CODE = "code"; - @jakarta.annotation.Nonnull private BigDecimal code; - - public DeployedContractNotFoundError() {} - - @JsonCreator - public DeployedContractNotFoundError( - @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = true) String message, - @JsonProperty(value = JSON_PROPERTY_CODE, required = true) BigDecimal code) { - this.message = message; - this.code = code; - } - - public DeployedContractNotFoundError message(@jakarta.annotation.Nonnull String message) { - this.message = message; - return this; - } - - /** - * Not Found error message - * - * @return message - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_MESSAGE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getMessage() { - return message; - } - - @JsonProperty(JSON_PROPERTY_MESSAGE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setMessage(@jakarta.annotation.Nonnull String message) { - this.message = message; - } - - public DeployedContractNotFoundError code(@jakarta.annotation.Nonnull BigDecimal code) { - this.code = code; - return this; - } - - /** - * Error code - * - * @return code - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CODE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public BigDecimal getCode() { - return code; - } - - @JsonProperty(JSON_PROPERTY_CODE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCode(@jakarta.annotation.Nonnull BigDecimal code) { - this.code = code; - } - - /** Return true if this DeployedContractNotFoundError object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - DeployedContractNotFoundError deployedContractNotFoundError = - (DeployedContractNotFoundError) o; - return Objects.equals(this.message, deployedContractNotFoundError.message) - && Objects.equals(this.code, deployedContractNotFoundError.code); - } - - @Override - public int hashCode() { - return Objects.hash(message, code); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class DeployedContractNotFoundError {\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); - sb.append(" code: ").append(toIndentedString(code)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `message` to the URL query string - if (getMessage() != null) { - joiner.add( - String.format( - "%smessage%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getMessage())))); - } - - // add `code` to the URL query string - if (getCode() != null) { - joiner.add( - String.format( - "%scode%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getCode())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/DeployedContractResponseDto.java b/src/main/java/com/fireblocks/sdk/model/DeployedContractResponseDto.java index b224b7a3..2a4ded56 100644 --- a/src/main/java/com/fireblocks/sdk/model/DeployedContractResponseDto.java +++ b/src/main/java/com/fireblocks/sdk/model/DeployedContractResponseDto.java @@ -27,11 +27,7 @@ DeployedContractResponseDto.JSON_PROPERTY_CONTRACT_ADDRESS, DeployedContractResponseDto.JSON_PROPERTY_CONTRACT_TEMPLATE_ID, DeployedContractResponseDto.JSON_PROPERTY_VAULT_ACCOUNT_ID, - DeployedContractResponseDto.JSON_PROPERTY_BLOCKCHAIN_ID, - DeployedContractResponseDto.JSON_PROPERTY_BASE_ASSET_ID, - DeployedContractResponseDto.JSON_PROPERTY_GASLESS_CONFIG, - DeployedContractResponseDto.JSON_PROPERTY_MULTICHAIN_DEPLOYMENT_METADATA, - DeployedContractResponseDto.JSON_PROPERTY_SOLANA_CONFIG + DeployedContractResponseDto.JSON_PROPERTY_BLOCKCHAIN_ID }) @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", @@ -52,19 +48,6 @@ public class DeployedContractResponseDto { public static final String JSON_PROPERTY_BLOCKCHAIN_ID = "blockchainId"; @jakarta.annotation.Nonnull private String blockchainId; - public static final String JSON_PROPERTY_BASE_ASSET_ID = "baseAssetId"; - @jakarta.annotation.Nullable private String baseAssetId; - - public static final String JSON_PROPERTY_GASLESS_CONFIG = "gaslessConfig"; - @jakarta.annotation.Nullable private GasslessStandardConfigurations gaslessConfig; - - public static final String JSON_PROPERTY_MULTICHAIN_DEPLOYMENT_METADATA = - "multichainDeploymentMetadata"; - @jakarta.annotation.Nullable private MultichainDeploymentMetadata multichainDeploymentMetadata; - - public static final String JSON_PROPERTY_SOLANA_CONFIG = "solanaConfig"; - @jakarta.annotation.Nullable private SolanaConfig solanaConfig; - public DeployedContractResponseDto() {} @JsonCreator @@ -201,106 +184,6 @@ public void setBlockchainId(@jakarta.annotation.Nonnull String blockchainId) { this.blockchainId = blockchainId; } - public DeployedContractResponseDto baseAssetId( - @jakarta.annotation.Nullable String baseAssetId) { - this.baseAssetId = baseAssetId; - return this; - } - - /** - * The blockchain base assetId - * - * @return baseAssetId - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BASE_ASSET_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getBaseAssetId() { - return baseAssetId; - } - - @JsonProperty(JSON_PROPERTY_BASE_ASSET_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBaseAssetId(@jakarta.annotation.Nullable String baseAssetId) { - this.baseAssetId = baseAssetId; - } - - public DeployedContractResponseDto gaslessConfig( - @jakarta.annotation.Nullable GasslessStandardConfigurations gaslessConfig) { - this.gaslessConfig = gaslessConfig; - return this; - } - - /** - * Get gaslessConfig - * - * @return gaslessConfig - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_GASLESS_CONFIG) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public GasslessStandardConfigurations getGaslessConfig() { - return gaslessConfig; - } - - @JsonProperty(JSON_PROPERTY_GASLESS_CONFIG) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setGaslessConfig( - @jakarta.annotation.Nullable GasslessStandardConfigurations gaslessConfig) { - this.gaslessConfig = gaslessConfig; - } - - public DeployedContractResponseDto multichainDeploymentMetadata( - @jakarta.annotation.Nullable - MultichainDeploymentMetadata multichainDeploymentMetadata) { - this.multichainDeploymentMetadata = multichainDeploymentMetadata; - return this; - } - - /** - * Get multichainDeploymentMetadata - * - * @return multichainDeploymentMetadata - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MULTICHAIN_DEPLOYMENT_METADATA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public MultichainDeploymentMetadata getMultichainDeploymentMetadata() { - return multichainDeploymentMetadata; - } - - @JsonProperty(JSON_PROPERTY_MULTICHAIN_DEPLOYMENT_METADATA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMultichainDeploymentMetadata( - @jakarta.annotation.Nullable - MultichainDeploymentMetadata multichainDeploymentMetadata) { - this.multichainDeploymentMetadata = multichainDeploymentMetadata; - } - - public DeployedContractResponseDto solanaConfig( - @jakarta.annotation.Nullable SolanaConfig solanaConfig) { - this.solanaConfig = solanaConfig; - return this; - } - - /** - * Get solanaConfig - * - * @return solanaConfig - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOLANA_CONFIG) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SolanaConfig getSolanaConfig() { - return solanaConfig; - } - - @JsonProperty(JSON_PROPERTY_SOLANA_CONFIG) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSolanaConfig(@jakarta.annotation.Nullable SolanaConfig solanaConfig) { - this.solanaConfig = solanaConfig; - } - /** Return true if this DeployedContractResponseDto object is equal to o. */ @Override public boolean equals(Object o) { @@ -316,27 +199,12 @@ public boolean equals(Object o) { && Objects.equals( this.contractTemplateId, deployedContractResponseDto.contractTemplateId) && Objects.equals(this.vaultAccountId, deployedContractResponseDto.vaultAccountId) - && Objects.equals(this.blockchainId, deployedContractResponseDto.blockchainId) - && Objects.equals(this.baseAssetId, deployedContractResponseDto.baseAssetId) - && Objects.equals(this.gaslessConfig, deployedContractResponseDto.gaslessConfig) - && Objects.equals( - this.multichainDeploymentMetadata, - deployedContractResponseDto.multichainDeploymentMetadata) - && Objects.equals(this.solanaConfig, deployedContractResponseDto.solanaConfig); + && Objects.equals(this.blockchainId, deployedContractResponseDto.blockchainId); } @Override public int hashCode() { - return Objects.hash( - id, - contractAddress, - contractTemplateId, - vaultAccountId, - blockchainId, - baseAssetId, - gaslessConfig, - multichainDeploymentMetadata, - solanaConfig); + return Objects.hash(id, contractAddress, contractTemplateId, vaultAccountId, blockchainId); } @Override @@ -350,12 +218,6 @@ public String toString() { .append("\n"); sb.append(" vaultAccountId: ").append(toIndentedString(vaultAccountId)).append("\n"); sb.append(" blockchainId: ").append(toIndentedString(blockchainId)).append("\n"); - sb.append(" baseAssetId: ").append(toIndentedString(baseAssetId)).append("\n"); - sb.append(" gaslessConfig: ").append(toIndentedString(gaslessConfig)).append("\n"); - sb.append(" multichainDeploymentMetadata: ") - .append(toIndentedString(multichainDeploymentMetadata)) - .append("\n"); - sb.append(" solanaConfig: ").append(toIndentedString(solanaConfig)).append("\n"); sb.append("}"); return sb.toString(); } @@ -451,33 +313,6 @@ public String toUrlQueryString(String prefix) { ApiClient.urlEncode(ApiClient.valueToString(getBlockchainId())))); } - // add `baseAssetId` to the URL query string - if (getBaseAssetId() != null) { - joiner.add( - String.format( - "%sbaseAssetId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBaseAssetId())))); - } - - // add `gaslessConfig` to the URL query string - if (getGaslessConfig() != null) { - joiner.add(getGaslessConfig().toUrlQueryString(prefix + "gaslessConfig" + suffix)); - } - - // add `multichainDeploymentMetadata` to the URL query string - if (getMultichainDeploymentMetadata() != null) { - joiner.add( - getMultichainDeploymentMetadata() - .toUrlQueryString(prefix + "multichainDeploymentMetadata" + suffix)); - } - - // add `solanaConfig` to the URL query string - if (getSolanaConfig() != null) { - joiner.add(getSolanaConfig().toUrlQueryString(prefix + "solanaConfig" + suffix)); - } - return joiner.toString(); } } diff --git a/src/main/java/com/fireblocks/sdk/model/DeployedContractsPaginatedResponse.java b/src/main/java/com/fireblocks/sdk/model/DeployedContractsPaginatedResponse.java index 52fb643b..241ee099 100644 --- a/src/main/java/com/fireblocks/sdk/model/DeployedContractsPaginatedResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/DeployedContractsPaginatedResponse.java @@ -33,9 +33,7 @@ comments = "Generator version: 7.14.0") public class DeployedContractsPaginatedResponse { public static final String JSON_PROPERTY_DATA = "data"; - - @jakarta.annotation.Nonnull - private List data = new ArrayList<>(); + @jakarta.annotation.Nonnull private List data; public static final String JSON_PROPERTY_NEXT = "next"; @jakarta.annotation.Nullable private String next; diff --git a/src/main/java/com/fireblocks/sdk/model/DerivationPathConfig.java b/src/main/java/com/fireblocks/sdk/model/DerivationPathConfig.java deleted file mode 100644 index cd868ae2..00000000 --- a/src/main/java/com/fireblocks/sdk/model/DerivationPathConfig.java +++ /dev/null @@ -1,207 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.math.BigDecimal; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** Derivation path configuration */ -@JsonPropertyOrder({ - DerivationPathConfig.JSON_PROPERTY_PATH, - DerivationPathConfig.JSON_PROPERTY_PARTIAL -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class DerivationPathConfig { - public static final String JSON_PROPERTY_PATH = "path"; - @jakarta.annotation.Nonnull private List path = new ArrayList<>(); - - public static final String JSON_PROPERTY_PARTIAL = "partial"; - @jakarta.annotation.Nullable private Boolean partial; - - public DerivationPathConfig() {} - - @JsonCreator - public DerivationPathConfig( - @JsonProperty(value = JSON_PROPERTY_PATH, required = true) List path) { - this.path = path; - } - - public DerivationPathConfig path(@jakarta.annotation.Nonnull List path) { - this.path = path; - return this; - } - - public DerivationPathConfig addPathItem(BigDecimal pathItem) { - if (this.path == null) { - this.path = new ArrayList<>(); - } - this.path.add(pathItem); - return this; - } - - /** - * Derivation path as array of numbers - * - * @return path - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PATH) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getPath() { - return path; - } - - @JsonProperty(JSON_PROPERTY_PATH) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPath(@jakarta.annotation.Nonnull List path) { - this.path = path; - } - - public DerivationPathConfig partial(@jakarta.annotation.Nullable Boolean partial) { - this.partial = partial; - return this; - } - - /** - * Whether this is a partial path - * - * @return partial - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PARTIAL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getPartial() { - return partial; - } - - @JsonProperty(JSON_PROPERTY_PARTIAL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPartial(@jakarta.annotation.Nullable Boolean partial) { - this.partial = partial; - } - - /** Return true if this DerivationPathConfig object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - DerivationPathConfig derivationPathConfig = (DerivationPathConfig) o; - return Objects.equals(this.path, derivationPathConfig.path) - && Objects.equals(this.partial, derivationPathConfig.partial); - } - - @Override - public int hashCode() { - return Objects.hash(path, partial); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class DerivationPathConfig {\n"); - sb.append(" path: ").append(toIndentedString(path)).append("\n"); - sb.append(" partial: ").append(toIndentedString(partial)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `path` to the URL query string - if (getPath() != null) { - for (int i = 0; i < getPath().size(); i++) { - if (getPath().get(i) != null) { - joiner.add( - String.format( - "%spath%s%s=%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode( - ApiClient.valueToString(getPath().get(i))))); - } - } - } - - // add `partial` to the URL query string - if (getPartial() != null) { - joiner.add( - String.format( - "%spartial%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getPartial())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/DesignatedSignersConfig.java b/src/main/java/com/fireblocks/sdk/model/DesignatedSignersConfig.java deleted file mode 100644 index f5cdecc6..00000000 --- a/src/main/java/com/fireblocks/sdk/model/DesignatedSignersConfig.java +++ /dev/null @@ -1,292 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fireblocks.sdk.ApiClient; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** Designated signers configuration */ -@JsonPropertyOrder({ - DesignatedSignersConfig.JSON_PROPERTY_TYPE, - DesignatedSignersConfig.JSON_PROPERTY_USERS, - DesignatedSignersConfig.JSON_PROPERTY_GROUPS -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class DesignatedSignersConfig { - /** Type of designated signers */ - public enum TypeEnum { - SINGLE(String.valueOf("SINGLE")), - - MULTIPLE(String.valueOf("MULTIPLE")), - - INITIATOR(String.valueOf("INITIATOR")); - - private String value; - - TypeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static TypeEnum fromValue(String value) { - for (TypeEnum b : TypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_TYPE = "type"; - @jakarta.annotation.Nonnull private TypeEnum type; - - public static final String JSON_PROPERTY_USERS = "users"; - @jakarta.annotation.Nullable private List users = new ArrayList<>(); - - public static final String JSON_PROPERTY_GROUPS = "groups"; - @jakarta.annotation.Nullable private List groups = new ArrayList<>(); - - public DesignatedSignersConfig() {} - - @JsonCreator - public DesignatedSignersConfig( - @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) TypeEnum type) { - this.type = type; - } - - public DesignatedSignersConfig type(@jakarta.annotation.Nonnull TypeEnum type) { - this.type = type; - return this; - } - - /** - * Type of designated signers - * - * @return type - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { - return type; - } - - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(@jakarta.annotation.Nonnull TypeEnum type) { - this.type = type; - } - - public DesignatedSignersConfig users(@jakarta.annotation.Nullable List users) { - this.users = users; - return this; - } - - public DesignatedSignersConfig addUsersItem(String usersItem) { - if (this.users == null) { - this.users = new ArrayList<>(); - } - this.users.add(usersItem); - return this; - } - - /** - * List of user IDs - * - * @return users - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USERS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getUsers() { - return users; - } - - @JsonProperty(JSON_PROPERTY_USERS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUsers(@jakarta.annotation.Nullable List users) { - this.users = users; - } - - public DesignatedSignersConfig groups(@jakarta.annotation.Nullable List groups) { - this.groups = groups; - return this; - } - - public DesignatedSignersConfig addGroupsItem(String groupsItem) { - if (this.groups == null) { - this.groups = new ArrayList<>(); - } - this.groups.add(groupsItem); - return this; - } - - /** - * List of policy group IDs - * - * @return groups - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_GROUPS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getGroups() { - return groups; - } - - @JsonProperty(JSON_PROPERTY_GROUPS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setGroups(@jakarta.annotation.Nullable List groups) { - this.groups = groups; - } - - /** Return true if this DesignatedSignersConfig object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - DesignatedSignersConfig designatedSignersConfig = (DesignatedSignersConfig) o; - return Objects.equals(this.type, designatedSignersConfig.type) - && Objects.equals(this.users, designatedSignersConfig.users) - && Objects.equals(this.groups, designatedSignersConfig.groups); - } - - @Override - public int hashCode() { - return Objects.hash(type, users, groups); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class DesignatedSignersConfig {\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" users: ").append(toIndentedString(users)).append("\n"); - sb.append(" groups: ").append(toIndentedString(groups)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `type` to the URL query string - if (getType() != null) { - joiner.add( - String.format( - "%stype%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getType())))); - } - - // add `users` to the URL query string - if (getUsers() != null) { - for (int i = 0; i < getUsers().size(); i++) { - joiner.add( - String.format( - "%susers%s%s=%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode(ApiClient.valueToString(getUsers().get(i))))); - } - } - - // add `groups` to the URL query string - if (getGroups() != null) { - for (int i = 0; i < getGroups().size(); i++) { - joiner.add( - String.format( - "%sgroups%s%s=%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode(ApiClient.valueToString(getGroups().get(i))))); - } - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/DestinationConfig.java b/src/main/java/com/fireblocks/sdk/model/DestinationConfig.java deleted file mode 100644 index 9e8830f5..00000000 --- a/src/main/java/com/fireblocks/sdk/model/DestinationConfig.java +++ /dev/null @@ -1,464 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fireblocks.sdk.ApiClient; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** Destination configuration for policy rules */ -@JsonPropertyOrder({ - DestinationConfig.JSON_PROPERTY_TYPE, - DestinationConfig.JSON_PROPERTY_SUB_TYPE, - DestinationConfig.JSON_PROPERTY_IDS, - DestinationConfig.JSON_PROPERTY_OPERATOR, - DestinationConfig.JSON_PROPERTY_MATCH_FROM, - DestinationConfig.JSON_PROPERTY_ADDRESS_TYPE -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class DestinationConfig { - public static final String JSON_PROPERTY_TYPE = "type"; - @jakarta.annotation.Nonnull private AccountType2 type; - - public static final String JSON_PROPERTY_SUB_TYPE = "subType"; - @jakarta.annotation.Nullable private List subType = new ArrayList<>(); - - public static final String JSON_PROPERTY_IDS = "ids"; - @jakarta.annotation.Nullable private List ids = new ArrayList<>(); - - public static final String JSON_PROPERTY_OPERATOR = "operator"; - @jakarta.annotation.Nonnull private PolicyOperator operator; - - /** Whether to match from account or source */ - public enum MatchFromEnum { - ACCOUNT(String.valueOf("ACCOUNT")), - - SOURCE(String.valueOf("SOURCE")); - - private String value; - - MatchFromEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static MatchFromEnum fromValue(String value) { - for (MatchFromEnum b : MatchFromEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_MATCH_FROM = "matchFrom"; - @jakarta.annotation.Nullable private MatchFromEnum matchFrom; - - /** Type of destination addresses allowed */ - public enum AddressTypeEnum { - ALL(String.valueOf("ALL")), - - STAR(String.valueOf("*")), - - WHITELISTED(String.valueOf("WHITELISTED")), - - ONE_TIME(String.valueOf("ONE_TIME")), - - OEC_PARTNER(String.valueOf("OEC_PARTNER")); - - private String value; - - AddressTypeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static AddressTypeEnum fromValue(String value) { - for (AddressTypeEnum b : AddressTypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_ADDRESS_TYPE = "addressType"; - @jakarta.annotation.Nonnull private AddressTypeEnum addressType; - - public DestinationConfig() {} - - @JsonCreator - public DestinationConfig( - @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) AccountType2 type, - @JsonProperty(value = JSON_PROPERTY_OPERATOR, required = true) PolicyOperator operator, - @JsonProperty(value = JSON_PROPERTY_ADDRESS_TYPE, required = true) - AddressTypeEnum addressType) { - this.type = type; - this.operator = operator; - this.addressType = addressType; - } - - public DestinationConfig type(@jakarta.annotation.Nonnull AccountType2 type) { - this.type = type; - return this; - } - - /** - * Get type - * - * @return type - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccountType2 getType() { - return type; - } - - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(@jakarta.annotation.Nonnull AccountType2 type) { - this.type = type; - } - - public DestinationConfig subType(@jakarta.annotation.Nullable List subType) { - this.subType = subType; - return this; - } - - public DestinationConfig addSubTypeItem(AccountIdentifier subTypeItem) { - if (this.subType == null) { - this.subType = new ArrayList<>(); - } - this.subType.add(subTypeItem); - return this; - } - - /** - * Get subType - * - * @return subType - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SUB_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getSubType() { - return subType; - } - - @JsonProperty(JSON_PROPERTY_SUB_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSubType(@jakarta.annotation.Nullable List subType) { - this.subType = subType; - } - - public DestinationConfig ids(@jakarta.annotation.Nullable List ids) { - this.ids = ids; - return this; - } - - public DestinationConfig addIdsItem(AccountIdentifier idsItem) { - if (this.ids == null) { - this.ids = new ArrayList<>(); - } - this.ids.add(idsItem); - return this; - } - - /** - * Get ids - * - * @return ids - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_IDS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getIds() { - return ids; - } - - @JsonProperty(JSON_PROPERTY_IDS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIds(@jakarta.annotation.Nullable List ids) { - this.ids = ids; - } - - public DestinationConfig operator(@jakarta.annotation.Nonnull PolicyOperator operator) { - this.operator = operator; - return this; - } - - /** - * Get operator - * - * @return operator - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_OPERATOR) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public PolicyOperator getOperator() { - return operator; - } - - @JsonProperty(JSON_PROPERTY_OPERATOR) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setOperator(@jakarta.annotation.Nonnull PolicyOperator operator) { - this.operator = operator; - } - - public DestinationConfig matchFrom(@jakarta.annotation.Nullable MatchFromEnum matchFrom) { - this.matchFrom = matchFrom; - return this; - } - - /** - * Whether to match from account or source - * - * @return matchFrom - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MATCH_FROM) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public MatchFromEnum getMatchFrom() { - return matchFrom; - } - - @JsonProperty(JSON_PROPERTY_MATCH_FROM) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMatchFrom(@jakarta.annotation.Nullable MatchFromEnum matchFrom) { - this.matchFrom = matchFrom; - } - - public DestinationConfig addressType(@jakarta.annotation.Nonnull AddressTypeEnum addressType) { - this.addressType = addressType; - return this; - } - - /** - * Type of destination addresses allowed - * - * @return addressType - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ADDRESS_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AddressTypeEnum getAddressType() { - return addressType; - } - - @JsonProperty(JSON_PROPERTY_ADDRESS_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAddressType(@jakarta.annotation.Nonnull AddressTypeEnum addressType) { - this.addressType = addressType; - } - - /** Return true if this DestinationConfig object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - DestinationConfig destinationConfig = (DestinationConfig) o; - return Objects.equals(this.type, destinationConfig.type) - && Objects.equals(this.subType, destinationConfig.subType) - && Objects.equals(this.ids, destinationConfig.ids) - && Objects.equals(this.operator, destinationConfig.operator) - && Objects.equals(this.matchFrom, destinationConfig.matchFrom) - && Objects.equals(this.addressType, destinationConfig.addressType); - } - - @Override - public int hashCode() { - return Objects.hash(type, subType, ids, operator, matchFrom, addressType); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class DestinationConfig {\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" subType: ").append(toIndentedString(subType)).append("\n"); - sb.append(" ids: ").append(toIndentedString(ids)).append("\n"); - sb.append(" operator: ").append(toIndentedString(operator)).append("\n"); - sb.append(" matchFrom: ").append(toIndentedString(matchFrom)).append("\n"); - sb.append(" addressType: ").append(toIndentedString(addressType)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `type` to the URL query string - if (getType() != null) { - joiner.add( - String.format( - "%stype%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getType())))); - } - - // add `subType` to the URL query string - if (getSubType() != null) { - for (int i = 0; i < getSubType().size(); i++) { - if (getSubType().get(i) != null) { - joiner.add( - getSubType() - .get(i) - .toUrlQueryString( - String.format( - "%ssubType%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } - } - - // add `ids` to the URL query string - if (getIds() != null) { - for (int i = 0; i < getIds().size(); i++) { - if (getIds().get(i) != null) { - joiner.add( - getIds().get(i) - .toUrlQueryString( - String.format( - "%sids%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } - } - - // add `operator` to the URL query string - if (getOperator() != null) { - joiner.add( - String.format( - "%soperator%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getOperator())))); - } - - // add `matchFrom` to the URL query string - if (getMatchFrom() != null) { - joiner.add( - String.format( - "%smatchFrom%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getMatchFrom())))); - } - - // add `addressType` to the URL query string - if (getAddressType() != null) { - joiner.add( - String.format( - "%saddressType%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAddressType())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/DestinationTransferPeerPath.java b/src/main/java/com/fireblocks/sdk/model/DestinationTransferPeerPath.java index af83c8f2..c39c885e 100644 --- a/src/main/java/com/fireblocks/sdk/model/DestinationTransferPeerPath.java +++ b/src/main/java/com/fireblocks/sdk/model/DestinationTransferPeerPath.java @@ -29,8 +29,7 @@ DestinationTransferPeerPath.JSON_PROPERTY_ID, DestinationTransferPeerPath.JSON_PROPERTY_NAME, DestinationTransferPeerPath.JSON_PROPERTY_WALLET_ID, - DestinationTransferPeerPath.JSON_PROPERTY_ONE_TIME_ADDRESS, - DestinationTransferPeerPath.JSON_PROPERTY_IS_COLLATERAL + DestinationTransferPeerPath.JSON_PROPERTY_ONE_TIME_ADDRESS }) @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", @@ -54,9 +53,6 @@ public class DestinationTransferPeerPath { public static final String JSON_PROPERTY_ONE_TIME_ADDRESS = "oneTimeAddress"; @jakarta.annotation.Nullable private OneTimeAddress oneTimeAddress; - public static final String JSON_PROPERTY_IS_COLLATERAL = "isCollateral"; - @jakarta.annotation.Nullable private Boolean isCollateral; - public DestinationTransferPeerPath() {} @JsonCreator @@ -205,30 +201,6 @@ public void setOneTimeAddress(@jakarta.annotation.Nullable OneTimeAddress oneTim this.oneTimeAddress = oneTimeAddress; } - public DestinationTransferPeerPath isCollateral( - @jakarta.annotation.Nullable Boolean isCollateral) { - this.isCollateral = isCollateral; - return this; - } - - /** - * indicate if the destination is collateral account - * - * @return isCollateral - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_IS_COLLATERAL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getIsCollateral() { - return isCollateral; - } - - @JsonProperty(JSON_PROPERTY_IS_COLLATERAL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIsCollateral(@jakarta.annotation.Nullable Boolean isCollateral) { - this.isCollateral = isCollateral; - } - /** Return true if this DestinationTransferPeerPath object is equal to o. */ @Override public boolean equals(Object o) { @@ -244,13 +216,12 @@ public boolean equals(Object o) { && Objects.equals(this.id, destinationTransferPeerPath.id) && Objects.equals(this.name, destinationTransferPeerPath.name) && Objects.equals(this.walletId, destinationTransferPeerPath.walletId) - && Objects.equals(this.oneTimeAddress, destinationTransferPeerPath.oneTimeAddress) - && Objects.equals(this.isCollateral, destinationTransferPeerPath.isCollateral); + && Objects.equals(this.oneTimeAddress, destinationTransferPeerPath.oneTimeAddress); } @Override public int hashCode() { - return Objects.hash(type, subType, id, name, walletId, oneTimeAddress, isCollateral); + return Objects.hash(type, subType, id, name, walletId, oneTimeAddress); } @Override @@ -263,7 +234,6 @@ public String toString() { sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" walletId: ").append(toIndentedString(walletId)).append("\n"); sb.append(" oneTimeAddress: ").append(toIndentedString(oneTimeAddress)).append("\n"); - sb.append(" isCollateral: ").append(toIndentedString(isCollateral)).append("\n"); sb.append("}"); return sb.toString(); } @@ -364,16 +334,6 @@ public String toUrlQueryString(String prefix) { joiner.add(getOneTimeAddress().toUrlQueryString(prefix + "oneTimeAddress" + suffix)); } - // add `isCollateral` to the URL query string - if (getIsCollateral() != null) { - joiner.add( - String.format( - "%sisCollateral%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getIsCollateral())))); - } - return joiner.toString(); } } diff --git a/src/main/java/com/fireblocks/sdk/model/DestinationTransferPeerPathResponse.java b/src/main/java/com/fireblocks/sdk/model/DestinationTransferPeerPathResponse.java index 1b272d30..b2c93381 100644 --- a/src/main/java/com/fireblocks/sdk/model/DestinationTransferPeerPathResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/DestinationTransferPeerPathResponse.java @@ -31,8 +31,7 @@ DestinationTransferPeerPathResponse.JSON_PROPERTY_SUB_TYPE, DestinationTransferPeerPathResponse.JSON_PROPERTY_ID, DestinationTransferPeerPathResponse.JSON_PROPERTY_NAME, - DestinationTransferPeerPathResponse.JSON_PROPERTY_WALLET_ID, - DestinationTransferPeerPathResponse.JSON_PROPERTY_TRADING_ACCOUNT + DestinationTransferPeerPathResponse.JSON_PROPERTY_WALLET_ID }) @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", @@ -53,9 +52,6 @@ public class DestinationTransferPeerPathResponse { public static final String JSON_PROPERTY_WALLET_ID = "walletId"; @jakarta.annotation.Nullable private UUID walletId; - public static final String JSON_PROPERTY_TRADING_ACCOUNT = "tradingAccount"; - @jakarta.annotation.Nullable private String tradingAccount; - public DestinationTransferPeerPathResponse() {} @JsonCreator @@ -122,13 +118,14 @@ public DestinationTransferPeerPathResponse id(@jakarta.annotation.Nullable Strin /** * 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/getpagedvaultaccounts), - * [listing exchange account](https://developers.fireblocks.com/reference/getexchangeaccounts), - * [listing fiat accounts](https://developers.fireblocks.com/reference/getfiataccounts), - * [listing internal wallets](https://developers.fireblocks.com/reference/getinternalwallets), - * [listing external wallets](https://developers.fireblocks.com/reference/getexternalwallets), + * [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/getnetworkconnections). For the + * connections](https://developers.fireblocks.com/reference/get_network-connections). For the * other types, this parameter is not needed. * * @return id @@ -193,31 +190,6 @@ public void setWalletId(@jakarta.annotation.Nullable UUID walletId) { this.walletId = walletId; } - public DestinationTransferPeerPathResponse tradingAccount( - @jakarta.annotation.Nullable String tradingAccount) { - this.tradingAccount = tradingAccount; - return this; - } - - /** - * If this transaction is an exchange internal transfer, this field will be populated with the - * type of that trading account. - * - * @return tradingAccount - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TRADING_ACCOUNT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getTradingAccount() { - return tradingAccount; - } - - @JsonProperty(JSON_PROPERTY_TRADING_ACCOUNT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTradingAccount(@jakarta.annotation.Nullable String tradingAccount) { - this.tradingAccount = tradingAccount; - } - /** Return true if this DestinationTransferPeerPathResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -233,14 +205,12 @@ public boolean equals(Object o) { && Objects.equals(this.subType, destinationTransferPeerPathResponse.subType) && Objects.equals(this.id, destinationTransferPeerPathResponse.id) && Objects.equals(this.name, destinationTransferPeerPathResponse.name) - && Objects.equals(this.walletId, destinationTransferPeerPathResponse.walletId) - && Objects.equals( - this.tradingAccount, destinationTransferPeerPathResponse.tradingAccount); + && Objects.equals(this.walletId, destinationTransferPeerPathResponse.walletId); } @Override public int hashCode() { - return Objects.hash(type, subType, id, name, walletId, tradingAccount); + return Objects.hash(type, subType, id, name, walletId); } @Override @@ -252,7 +222,6 @@ public String toString() { sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" walletId: ").append(toIndentedString(walletId)).append("\n"); - sb.append(" tradingAccount: ").append(toIndentedString(tradingAccount)).append("\n"); sb.append("}"); return sb.toString(); } @@ -348,16 +317,6 @@ public String toUrlQueryString(String prefix) { ApiClient.urlEncode(ApiClient.valueToString(getWalletId())))); } - // add `tradingAccount` to the URL query string - if (getTradingAccount() != null) { - joiner.add( - String.format( - "%stradingAccount%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getTradingAccount())))); - } - return joiner.toString(); } } diff --git a/src/main/java/com/fireblocks/sdk/model/DirectAccess.java b/src/main/java/com/fireblocks/sdk/model/DirectAccess.java deleted file mode 100644 index fbff8b3f..00000000 --- a/src/main/java/com/fireblocks/sdk/model/DirectAccess.java +++ /dev/null @@ -1,218 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** DirectAccess */ -@JsonPropertyOrder({DirectAccess.JSON_PROPERTY_TYPE, DirectAccess.JSON_PROPERTY_PROVIDER_ID}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class DirectAccess { - /** Indicates this uses direct provider access */ - public enum TypeEnum { - PROVIDER(String.valueOf("PROVIDER")); - - private String value; - - TypeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static TypeEnum fromValue(String value) { - for (TypeEnum b : TypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_TYPE = "type"; - @jakarta.annotation.Nonnull private TypeEnum type; - - public static final String JSON_PROPERTY_PROVIDER_ID = "providerId"; - @jakarta.annotation.Nonnull private String providerId; - - public DirectAccess() {} - - @JsonCreator - public DirectAccess( - @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) TypeEnum type, - @JsonProperty(value = JSON_PROPERTY_PROVIDER_ID, required = true) String providerId) { - this.type = type; - this.providerId = providerId; - } - - public DirectAccess type(@jakarta.annotation.Nonnull TypeEnum type) { - this.type = type; - return this; - } - - /** - * Indicates this uses direct provider access - * - * @return type - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { - return type; - } - - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(@jakarta.annotation.Nonnull TypeEnum type) { - this.type = type; - } - - public DirectAccess providerId(@jakarta.annotation.Nonnull String providerId) { - this.providerId = providerId; - return this; - } - - /** - * The ID of the provider - * - * @return providerId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PROVIDER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getProviderId() { - return providerId; - } - - @JsonProperty(JSON_PROPERTY_PROVIDER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setProviderId(@jakarta.annotation.Nonnull String providerId) { - this.providerId = providerId; - } - - /** Return true if this DirectAccess object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - DirectAccess directAccess = (DirectAccess) o; - return Objects.equals(this.type, directAccess.type) - && Objects.equals(this.providerId, directAccess.providerId); - } - - @Override - public int hashCode() { - return Objects.hash(type, providerId); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class DirectAccess {\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" providerId: ").append(toIndentedString(providerId)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `type` to the URL query string - if (getType() != null) { - joiner.add( - String.format( - "%stype%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getType())))); - } - - // add `providerId` to the URL query string - if (getProviderId() != null) { - joiner.add( - String.format( - "%sproviderId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getProviderId())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/DirectAccessProvider.java b/src/main/java/com/fireblocks/sdk/model/DirectAccessProvider.java deleted file mode 100644 index 1cafc291..00000000 --- a/src/main/java/com/fireblocks/sdk/model/DirectAccessProvider.java +++ /dev/null @@ -1,395 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** DirectAccessProvider */ -@JsonPropertyOrder({ - DirectAccessProvider.JSON_PROPERTY_ID, - DirectAccessProvider.JSON_PROPERTY_NAME, - DirectAccessProvider.JSON_PROPERTY_LOGO, - DirectAccessProvider.JSON_PROPERTY_ACCOUNT_BASED, - DirectAccessProvider.JSON_PROPERTY_APPROVED, - DirectAccessProvider.JSON_PROPERTY_HAS_TERMS_OF_SERVICE, - DirectAccessProvider.JSON_PROPERTY_TERMS_OF_SERVICE_URL -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class DirectAccessProvider { - public static final String JSON_PROPERTY_ID = "id"; - @jakarta.annotation.Nonnull private String id; - - public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nonnull private String name; - - public static final String JSON_PROPERTY_LOGO = "logo"; - @jakarta.annotation.Nullable private String logo; - - public static final String JSON_PROPERTY_ACCOUNT_BASED = "accountBased"; - @jakarta.annotation.Nonnull private Boolean accountBased; - - public static final String JSON_PROPERTY_APPROVED = "approved"; - @jakarta.annotation.Nullable private Boolean approved; - - public static final String JSON_PROPERTY_HAS_TERMS_OF_SERVICE = "hasTermsOfService"; - @jakarta.annotation.Nonnull private Boolean hasTermsOfService; - - public static final String JSON_PROPERTY_TERMS_OF_SERVICE_URL = "termsOfServiceUrl"; - @jakarta.annotation.Nullable private String termsOfServiceUrl; - - public DirectAccessProvider() {} - - @JsonCreator - public DirectAccessProvider( - @JsonProperty(value = JSON_PROPERTY_ID, required = true) String id, - @JsonProperty(value = JSON_PROPERTY_NAME, required = true) String name, - @JsonProperty(value = JSON_PROPERTY_ACCOUNT_BASED, required = true) - Boolean accountBased, - @JsonProperty(value = JSON_PROPERTY_HAS_TERMS_OF_SERVICE, required = true) - Boolean hasTermsOfService) { - this.id = id; - this.name = name; - this.accountBased = accountBased; - this.hasTermsOfService = hasTermsOfService; - } - - public DirectAccessProvider id(@jakarta.annotation.Nonnull String id) { - this.id = id; - return this; - } - - /** - * Unique identifier for the provider - * - * @return id - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getId() { - return id; - } - - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(@jakarta.annotation.Nonnull String id) { - this.id = id; - } - - public DirectAccessProvider name(@jakarta.annotation.Nonnull String name) { - this.name = name; - return this; - } - - /** - * Display name of the provider - * - * @return name - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getName() { - return name; - } - - @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(@jakarta.annotation.Nonnull String name) { - this.name = name; - } - - public DirectAccessProvider logo(@jakarta.annotation.Nullable String logo) { - this.logo = logo; - return this; - } - - /** - * URL to the logo image of the provider - * - * @return logo - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_LOGO) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getLogo() { - return logo; - } - - @JsonProperty(JSON_PROPERTY_LOGO) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLogo(@jakarta.annotation.Nullable String logo) { - this.logo = logo; - } - - public DirectAccessProvider accountBased(@jakarta.annotation.Nonnull Boolean accountBased) { - this.accountBased = accountBased; - return this; - } - - /** - * Indicates whether the provider access model is through accounts or directly - * - * @return accountBased - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ACCOUNT_BASED) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Boolean getAccountBased() { - return accountBased; - } - - @JsonProperty(JSON_PROPERTY_ACCOUNT_BASED) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAccountBased(@jakarta.annotation.Nonnull Boolean accountBased) { - this.accountBased = accountBased; - } - - public DirectAccessProvider approved(@jakarta.annotation.Nullable Boolean approved) { - this.approved = approved; - return this; - } - - /** - * Whether the provider was approved for use - * - * @return approved - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_APPROVED) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getApproved() { - return approved; - } - - @JsonProperty(JSON_PROPERTY_APPROVED) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setApproved(@jakarta.annotation.Nullable Boolean approved) { - this.approved = approved; - } - - public DirectAccessProvider hasTermsOfService( - @jakarta.annotation.Nonnull Boolean hasTermsOfService) { - this.hasTermsOfService = hasTermsOfService; - return this; - } - - /** - * Whether the provider has terms of service - * - * @return hasTermsOfService - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_HAS_TERMS_OF_SERVICE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Boolean getHasTermsOfService() { - return hasTermsOfService; - } - - @JsonProperty(JSON_PROPERTY_HAS_TERMS_OF_SERVICE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setHasTermsOfService(@jakarta.annotation.Nonnull Boolean hasTermsOfService) { - this.hasTermsOfService = hasTermsOfService; - } - - public DirectAccessProvider termsOfServiceUrl( - @jakarta.annotation.Nullable String termsOfServiceUrl) { - this.termsOfServiceUrl = termsOfServiceUrl; - return this; - } - - /** - * URL to the terms of service document - * - * @return termsOfServiceUrl - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TERMS_OF_SERVICE_URL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getTermsOfServiceUrl() { - return termsOfServiceUrl; - } - - @JsonProperty(JSON_PROPERTY_TERMS_OF_SERVICE_URL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTermsOfServiceUrl(@jakarta.annotation.Nullable String termsOfServiceUrl) { - this.termsOfServiceUrl = termsOfServiceUrl; - } - - /** Return true if this DirectAccessProvider object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - DirectAccessProvider directAccessProvider = (DirectAccessProvider) o; - return Objects.equals(this.id, directAccessProvider.id) - && Objects.equals(this.name, directAccessProvider.name) - && Objects.equals(this.logo, directAccessProvider.logo) - && Objects.equals(this.accountBased, directAccessProvider.accountBased) - && Objects.equals(this.approved, directAccessProvider.approved) - && Objects.equals(this.hasTermsOfService, directAccessProvider.hasTermsOfService) - && Objects.equals(this.termsOfServiceUrl, directAccessProvider.termsOfServiceUrl); - } - - @Override - public int hashCode() { - return Objects.hash( - id, name, logo, accountBased, approved, hasTermsOfService, termsOfServiceUrl); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class DirectAccessProvider {\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" logo: ").append(toIndentedString(logo)).append("\n"); - sb.append(" accountBased: ").append(toIndentedString(accountBased)).append("\n"); - sb.append(" approved: ").append(toIndentedString(approved)).append("\n"); - sb.append(" hasTermsOfService: ") - .append(toIndentedString(hasTermsOfService)) - .append("\n"); - sb.append(" termsOfServiceUrl: ") - .append(toIndentedString(termsOfServiceUrl)) - .append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `id` to the URL query string - if (getId() != null) { - joiner.add( - String.format( - "%sid%s=%s", - prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); - } - - // add `name` to the URL query string - if (getName() != null) { - joiner.add( - String.format( - "%sname%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getName())))); - } - - // add `logo` to the URL query string - if (getLogo() != null) { - joiner.add( - String.format( - "%slogo%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getLogo())))); - } - - // add `accountBased` to the URL query string - if (getAccountBased() != null) { - joiner.add( - String.format( - "%saccountBased%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAccountBased())))); - } - - // add `approved` to the URL query string - if (getApproved() != null) { - joiner.add( - String.format( - "%sapproved%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getApproved())))); - } - - // add `hasTermsOfService` to the URL query string - if (getHasTermsOfService() != null) { - joiner.add( - String.format( - "%shasTermsOfService%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getHasTermsOfService())))); - } - - // add `termsOfServiceUrl` to the URL query string - if (getTermsOfServiceUrl() != null) { - joiner.add( - String.format( - "%stermsOfServiceUrl%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getTermsOfServiceUrl())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/DisbursementOperationConfigParams.java b/src/main/java/com/fireblocks/sdk/model/DisbursementOperationConfigParams.java index d4281ba1..a2173646 100644 --- a/src/main/java/com/fireblocks/sdk/model/DisbursementOperationConfigParams.java +++ b/src/main/java/com/fireblocks/sdk/model/DisbursementOperationConfigParams.java @@ -35,9 +35,7 @@ public class DisbursementOperationConfigParams { @jakarta.annotation.Nullable private Account paymentAccount; public static final String JSON_PROPERTY_INSTRUCTION_SET = "instructionSet"; - - @jakarta.annotation.Nonnull - private List instructionSet = new ArrayList<>(); + @jakarta.annotation.Nonnull private List instructionSet; public DisbursementOperationConfigParams() {} diff --git a/src/main/java/com/fireblocks/sdk/model/DisbursementOperationExecutionOutput.java b/src/main/java/com/fireblocks/sdk/model/DisbursementOperationExecutionOutput.java index 936af94a..d1ee4af6 100644 --- a/src/main/java/com/fireblocks/sdk/model/DisbursementOperationExecutionOutput.java +++ b/src/main/java/com/fireblocks/sdk/model/DisbursementOperationExecutionOutput.java @@ -29,9 +29,7 @@ comments = "Generator version: 7.14.0") public class DisbursementOperationExecutionOutput { public static final String JSON_PROPERTY_INSTRUCTION_SET = "instructionSet"; - - @jakarta.annotation.Nonnull - private List instructionSet = new ArrayList<>(); + @jakarta.annotation.Nonnull private List instructionSet; public DisbursementOperationExecutionOutput() {} diff --git a/src/main/java/com/fireblocks/sdk/model/DisbursementOperationExecutionParamsExecutionParams.java b/src/main/java/com/fireblocks/sdk/model/DisbursementOperationExecutionParamsExecutionParams.java index 12e35f29..ba38e7f5 100644 --- a/src/main/java/com/fireblocks/sdk/model/DisbursementOperationExecutionParamsExecutionParams.java +++ b/src/main/java/com/fireblocks/sdk/model/DisbursementOperationExecutionParamsExecutionParams.java @@ -39,9 +39,7 @@ public class DisbursementOperationExecutionParamsExecutionParams { @jakarta.annotation.Nullable private Account paymentAccount; public static final String JSON_PROPERTY_INSTRUCTION_SET = "instructionSet"; - - @jakarta.annotation.Nullable - private List instructionSet = new ArrayList<>(); + @jakarta.annotation.Nullable private List instructionSet; public DisbursementOperationExecutionParamsExecutionParams() {} diff --git a/src/main/java/com/fireblocks/sdk/model/DisbursementOperationInput.java b/src/main/java/com/fireblocks/sdk/model/DisbursementOperationInput.java index 0a539bfc..a509e278 100644 --- a/src/main/java/com/fireblocks/sdk/model/DisbursementOperationInput.java +++ b/src/main/java/com/fireblocks/sdk/model/DisbursementOperationInput.java @@ -40,9 +40,7 @@ public class DisbursementOperationInput { @jakarta.annotation.Nonnull private Account paymentAccount; public static final String JSON_PROPERTY_INSTRUCTION_SET = "instructionSet"; - - @jakarta.annotation.Nonnull - private List instructionSet = new ArrayList<>(); + @jakarta.annotation.Nonnull private List instructionSet; public DisbursementOperationInput() {} diff --git a/src/main/java/com/fireblocks/sdk/model/DisbursementOperationPreviewOutput.java b/src/main/java/com/fireblocks/sdk/model/DisbursementOperationPreviewOutput.java index 7ba1d36a..d0bf869d 100644 --- a/src/main/java/com/fireblocks/sdk/model/DisbursementOperationPreviewOutput.java +++ b/src/main/java/com/fireblocks/sdk/model/DisbursementOperationPreviewOutput.java @@ -31,8 +31,7 @@ public class DisbursementOperationPreviewOutput { public static final String JSON_PROPERTY_INSTRUCTION_SET = "instructionSet"; @jakarta.annotation.Nonnull - private List instructionSet = - new ArrayList<>(); + private List instructionSet; public DisbursementOperationPreviewOutput() {} diff --git a/src/main/java/com/fireblocks/sdk/model/DisbursementValidationFailure.java b/src/main/java/com/fireblocks/sdk/model/DisbursementValidationFailure.java index c7a8a18d..8f0d0ee7 100644 --- a/src/main/java/com/fireblocks/sdk/model/DisbursementValidationFailure.java +++ b/src/main/java/com/fireblocks/sdk/model/DisbursementValidationFailure.java @@ -99,7 +99,7 @@ public static ReasonEnum fromValue(String value) { @jakarta.annotation.Nonnull private ReasonEnum reason; public static final String JSON_PROPERTY_DATA = "data"; - @jakarta.annotation.Nullable private Map data = new HashMap<>(); + @jakarta.annotation.Nullable private Map data; public DisbursementValidationFailure() {} diff --git a/src/main/java/com/fireblocks/sdk/model/DraftResponse.java b/src/main/java/com/fireblocks/sdk/model/DraftResponse.java index a337a159..51e7306a 100644 --- a/src/main/java/com/fireblocks/sdk/model/DraftResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/DraftResponse.java @@ -38,7 +38,7 @@ public class DraftResponse { @jakarta.annotation.Nonnull private String status; public static final String JSON_PROPERTY_RULES = "rules"; - @jakarta.annotation.Nonnull private List rules = new ArrayList<>(); + @jakarta.annotation.Nonnull private List rules; public static final String JSON_PROPERTY_DRAFT_ID = "draftId"; @jakarta.annotation.Nonnull private String draftId; diff --git a/src/main/java/com/fireblocks/sdk/model/DvnConfig.java b/src/main/java/com/fireblocks/sdk/model/DvnConfig.java deleted file mode 100644 index 3d8ee63c..00000000 --- a/src/main/java/com/fireblocks/sdk/model/DvnConfig.java +++ /dev/null @@ -1,270 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.math.BigDecimal; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** DvnConfig */ -@JsonPropertyOrder({ - DvnConfig.JSON_PROPERTY_DVN_ADDRESSES, - DvnConfig.JSON_PROPERTY_OPTIONAL_D_V_N_ADDRESSES, - DvnConfig.JSON_PROPERTY_OPTIONAL_THRESHOLD -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class DvnConfig { - public static final String JSON_PROPERTY_DVN_ADDRESSES = "dvnAddresses"; - @jakarta.annotation.Nonnull private List dvnAddresses = new ArrayList<>(); - - public static final String JSON_PROPERTY_OPTIONAL_D_V_N_ADDRESSES = "optionalDVNAddresses"; - @jakarta.annotation.Nullable private List optionalDVNAddresses = new ArrayList<>(); - - public static final String JSON_PROPERTY_OPTIONAL_THRESHOLD = "optionalThreshold"; - @jakarta.annotation.Nonnull private BigDecimal optionalThreshold; - - public DvnConfig() {} - - @JsonCreator - public DvnConfig( - @JsonProperty(value = JSON_PROPERTY_DVN_ADDRESSES, required = true) - List dvnAddresses, - @JsonProperty(value = JSON_PROPERTY_OPTIONAL_THRESHOLD, required = true) - BigDecimal optionalThreshold) { - this.dvnAddresses = dvnAddresses; - this.optionalThreshold = optionalThreshold; - } - - public DvnConfig dvnAddresses(@jakarta.annotation.Nonnull List dvnAddresses) { - this.dvnAddresses = dvnAddresses; - return this; - } - - public DvnConfig addDvnAddressesItem(String dvnAddressesItem) { - if (this.dvnAddresses == null) { - this.dvnAddresses = new ArrayList<>(); - } - this.dvnAddresses.add(dvnAddressesItem); - return this; - } - - /** - * Array of required DVN Ethereum addresses that sign ULN messages. - * - * @return dvnAddresses - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DVN_ADDRESSES) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getDvnAddresses() { - return dvnAddresses; - } - - @JsonProperty(JSON_PROPERTY_DVN_ADDRESSES) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDvnAddresses(@jakarta.annotation.Nonnull List dvnAddresses) { - this.dvnAddresses = dvnAddresses; - } - - public DvnConfig optionalDVNAddresses( - @jakarta.annotation.Nullable List optionalDVNAddresses) { - this.optionalDVNAddresses = optionalDVNAddresses; - return this; - } - - public DvnConfig addOptionalDVNAddressesItem(String optionalDVNAddressesItem) { - if (this.optionalDVNAddresses == null) { - this.optionalDVNAddresses = new ArrayList<>(); - } - this.optionalDVNAddresses.add(optionalDVNAddressesItem); - return this; - } - - /** - * Array of optional DVN Ethereum addresses that sign ULN messages. - * - * @return optionalDVNAddresses - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OPTIONAL_D_V_N_ADDRESSES) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getOptionalDVNAddresses() { - return optionalDVNAddresses; - } - - @JsonProperty(JSON_PROPERTY_OPTIONAL_D_V_N_ADDRESSES) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOptionalDVNAddresses( - @jakarta.annotation.Nullable List optionalDVNAddresses) { - this.optionalDVNAddresses = optionalDVNAddresses; - } - - public DvnConfig optionalThreshold(@jakarta.annotation.Nonnull BigDecimal optionalThreshold) { - this.optionalThreshold = optionalThreshold; - return this; - } - - /** - * Minimum number of DVN signatures required (M-of-N). - * - * @return optionalThreshold - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_OPTIONAL_THRESHOLD) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public BigDecimal getOptionalThreshold() { - return optionalThreshold; - } - - @JsonProperty(JSON_PROPERTY_OPTIONAL_THRESHOLD) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setOptionalThreshold(@jakarta.annotation.Nonnull BigDecimal optionalThreshold) { - this.optionalThreshold = optionalThreshold; - } - - /** Return true if this DvnConfig object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - DvnConfig dvnConfig = (DvnConfig) o; - return Objects.equals(this.dvnAddresses, dvnConfig.dvnAddresses) - && Objects.equals(this.optionalDVNAddresses, dvnConfig.optionalDVNAddresses) - && Objects.equals(this.optionalThreshold, dvnConfig.optionalThreshold); - } - - @Override - public int hashCode() { - return Objects.hash(dvnAddresses, optionalDVNAddresses, optionalThreshold); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class DvnConfig {\n"); - sb.append(" dvnAddresses: ").append(toIndentedString(dvnAddresses)).append("\n"); - sb.append(" optionalDVNAddresses: ") - .append(toIndentedString(optionalDVNAddresses)) - .append("\n"); - sb.append(" optionalThreshold: ") - .append(toIndentedString(optionalThreshold)) - .append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `dvnAddresses` to the URL query string - if (getDvnAddresses() != null) { - for (int i = 0; i < getDvnAddresses().size(); i++) { - joiner.add( - String.format( - "%sdvnAddresses%s%s=%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode( - ApiClient.valueToString(getDvnAddresses().get(i))))); - } - } - - // add `optionalDVNAddresses` to the URL query string - if (getOptionalDVNAddresses() != null) { - for (int i = 0; i < getOptionalDVNAddresses().size(); i++) { - joiner.add( - String.format( - "%soptionalDVNAddresses%s%s=%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode( - ApiClient.valueToString( - getOptionalDVNAddresses().get(i))))); - } - } - - // add `optionalThreshold` to the URL query string - if (getOptionalThreshold() != null) { - joiner.add( - String.format( - "%soptionalThreshold%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getOptionalThreshold())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/DvnConfigWithConfirmations.java b/src/main/java/com/fireblocks/sdk/model/DvnConfigWithConfirmations.java deleted file mode 100644 index 340cd794..00000000 --- a/src/main/java/com/fireblocks/sdk/model/DvnConfigWithConfirmations.java +++ /dev/null @@ -1,317 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.math.BigDecimal; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** DvnConfigWithConfirmations */ -@JsonPropertyOrder({ - DvnConfigWithConfirmations.JSON_PROPERTY_DVN_ADDRESSES, - DvnConfigWithConfirmations.JSON_PROPERTY_OPTIONAL_D_V_N_ADDRESSES, - DvnConfigWithConfirmations.JSON_PROPERTY_OPTIONAL_THRESHOLD, - DvnConfigWithConfirmations.JSON_PROPERTY_CONFIRMATIONS -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class DvnConfigWithConfirmations { - public static final String JSON_PROPERTY_DVN_ADDRESSES = "dvnAddresses"; - @jakarta.annotation.Nonnull private List dvnAddresses = new ArrayList<>(); - - public static final String JSON_PROPERTY_OPTIONAL_D_V_N_ADDRESSES = "optionalDVNAddresses"; - @jakarta.annotation.Nullable private List optionalDVNAddresses = new ArrayList<>(); - - public static final String JSON_PROPERTY_OPTIONAL_THRESHOLD = "optionalThreshold"; - @jakarta.annotation.Nonnull private BigDecimal optionalThreshold; - - public static final String JSON_PROPERTY_CONFIRMATIONS = "confirmations"; - @jakarta.annotation.Nonnull private BigDecimal confirmations; - - public DvnConfigWithConfirmations() {} - - @JsonCreator - public DvnConfigWithConfirmations( - @JsonProperty(value = JSON_PROPERTY_DVN_ADDRESSES, required = true) - List dvnAddresses, - @JsonProperty(value = JSON_PROPERTY_OPTIONAL_THRESHOLD, required = true) - BigDecimal optionalThreshold, - @JsonProperty(value = JSON_PROPERTY_CONFIRMATIONS, required = true) - BigDecimal confirmations) { - this.dvnAddresses = dvnAddresses; - this.optionalThreshold = optionalThreshold; - this.confirmations = confirmations; - } - - public DvnConfigWithConfirmations dvnAddresses( - @jakarta.annotation.Nonnull List dvnAddresses) { - this.dvnAddresses = dvnAddresses; - return this; - } - - public DvnConfigWithConfirmations addDvnAddressesItem(String dvnAddressesItem) { - if (this.dvnAddresses == null) { - this.dvnAddresses = new ArrayList<>(); - } - this.dvnAddresses.add(dvnAddressesItem); - return this; - } - - /** - * Array of required DVN Ethereum addresses that sign ULN messages. - * - * @return dvnAddresses - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DVN_ADDRESSES) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getDvnAddresses() { - return dvnAddresses; - } - - @JsonProperty(JSON_PROPERTY_DVN_ADDRESSES) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDvnAddresses(@jakarta.annotation.Nonnull List dvnAddresses) { - this.dvnAddresses = dvnAddresses; - } - - public DvnConfigWithConfirmations optionalDVNAddresses( - @jakarta.annotation.Nullable List optionalDVNAddresses) { - this.optionalDVNAddresses = optionalDVNAddresses; - return this; - } - - public DvnConfigWithConfirmations addOptionalDVNAddressesItem(String optionalDVNAddressesItem) { - if (this.optionalDVNAddresses == null) { - this.optionalDVNAddresses = new ArrayList<>(); - } - this.optionalDVNAddresses.add(optionalDVNAddressesItem); - return this; - } - - /** - * Array of optional DVN Ethereum addresses that sign ULN messages. - * - * @return optionalDVNAddresses - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OPTIONAL_D_V_N_ADDRESSES) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getOptionalDVNAddresses() { - return optionalDVNAddresses; - } - - @JsonProperty(JSON_PROPERTY_OPTIONAL_D_V_N_ADDRESSES) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOptionalDVNAddresses( - @jakarta.annotation.Nullable List optionalDVNAddresses) { - this.optionalDVNAddresses = optionalDVNAddresses; - } - - public DvnConfigWithConfirmations optionalThreshold( - @jakarta.annotation.Nonnull BigDecimal optionalThreshold) { - this.optionalThreshold = optionalThreshold; - return this; - } - - /** - * Minimum number of DVN signatures required (M-of-N). - * - * @return optionalThreshold - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_OPTIONAL_THRESHOLD) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public BigDecimal getOptionalThreshold() { - return optionalThreshold; - } - - @JsonProperty(JSON_PROPERTY_OPTIONAL_THRESHOLD) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setOptionalThreshold(@jakarta.annotation.Nonnull BigDecimal optionalThreshold) { - this.optionalThreshold = optionalThreshold; - } - - public DvnConfigWithConfirmations confirmations( - @jakarta.annotation.Nonnull BigDecimal confirmations) { - this.confirmations = confirmations; - return this; - } - - /** - * Number of block confirmations required - * - * @return confirmations - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CONFIRMATIONS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public BigDecimal getConfirmations() { - return confirmations; - } - - @JsonProperty(JSON_PROPERTY_CONFIRMATIONS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setConfirmations(@jakarta.annotation.Nonnull BigDecimal confirmations) { - this.confirmations = confirmations; - } - - /** Return true if this DvnConfigWithConfirmations object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - DvnConfigWithConfirmations dvnConfigWithConfirmations = (DvnConfigWithConfirmations) o; - return Objects.equals(this.dvnAddresses, dvnConfigWithConfirmations.dvnAddresses) - && Objects.equals( - this.optionalDVNAddresses, dvnConfigWithConfirmations.optionalDVNAddresses) - && Objects.equals( - this.optionalThreshold, dvnConfigWithConfirmations.optionalThreshold) - && Objects.equals(this.confirmations, dvnConfigWithConfirmations.confirmations); - } - - @Override - public int hashCode() { - return Objects.hash(dvnAddresses, optionalDVNAddresses, optionalThreshold, confirmations); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class DvnConfigWithConfirmations {\n"); - sb.append(" dvnAddresses: ").append(toIndentedString(dvnAddresses)).append("\n"); - sb.append(" optionalDVNAddresses: ") - .append(toIndentedString(optionalDVNAddresses)) - .append("\n"); - sb.append(" optionalThreshold: ") - .append(toIndentedString(optionalThreshold)) - .append("\n"); - sb.append(" confirmations: ").append(toIndentedString(confirmations)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `dvnAddresses` to the URL query string - if (getDvnAddresses() != null) { - for (int i = 0; i < getDvnAddresses().size(); i++) { - joiner.add( - String.format( - "%sdvnAddresses%s%s=%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode( - ApiClient.valueToString(getDvnAddresses().get(i))))); - } - } - - // add `optionalDVNAddresses` to the URL query string - if (getOptionalDVNAddresses() != null) { - for (int i = 0; i < getOptionalDVNAddresses().size(); i++) { - joiner.add( - String.format( - "%soptionalDVNAddresses%s%s=%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode( - ApiClient.valueToString( - getOptionalDVNAddresses().get(i))))); - } - } - - // add `optionalThreshold` to the URL query string - if (getOptionalThreshold() != null) { - joiner.add( - String.format( - "%soptionalThreshold%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getOptionalThreshold())))); - } - - // add `confirmations` to the URL query string - if (getConfirmations() != null) { - joiner.add( - String.format( - "%sconfirmations%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getConfirmations())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/EVMTokenCreateParamsDto.java b/src/main/java/com/fireblocks/sdk/model/EVMTokenCreateParamsDto.java index 721b9c94..75569d1f 100644 --- a/src/main/java/com/fireblocks/sdk/model/EVMTokenCreateParamsDto.java +++ b/src/main/java/com/fireblocks/sdk/model/EVMTokenCreateParamsDto.java @@ -26,7 +26,7 @@ /** EVMTokenCreateParamsDto */ @JsonPropertyOrder({ EVMTokenCreateParamsDto.JSON_PROPERTY_CONTRACT_ID, - EVMTokenCreateParamsDto.JSON_PROPERTY_DEPLOY_FUNCTION_PARAMS + EVMTokenCreateParamsDto.JSON_PROPERTY_CONSTRUCTOR_PARAMS }) @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", @@ -35,10 +35,8 @@ public class EVMTokenCreateParamsDto { public static final String JSON_PROPERTY_CONTRACT_ID = "contractId"; @jakarta.annotation.Nonnull private String contractId; - public static final String JSON_PROPERTY_DEPLOY_FUNCTION_PARAMS = "deployFunctionParams"; - - @jakarta.annotation.Nullable - private List deployFunctionParams = new ArrayList<>(); + public static final String JSON_PROPERTY_CONSTRUCTOR_PARAMS = "constructorParams"; + @jakarta.annotation.Nullable private List> constructorParams; public EVMTokenCreateParamsDto() {} @@ -71,38 +69,38 @@ public void setContractId(@jakarta.annotation.Nonnull String contractId) { this.contractId = contractId; } - public EVMTokenCreateParamsDto deployFunctionParams( - @jakarta.annotation.Nullable List deployFunctionParams) { - this.deployFunctionParams = deployFunctionParams; + public EVMTokenCreateParamsDto constructorParams( + @jakarta.annotation.Nullable List> constructorParams) { + this.constructorParams = constructorParams; return this; } - public EVMTokenCreateParamsDto addDeployFunctionParamsItem( - ParameterWithValue deployFunctionParamsItem) { - if (this.deployFunctionParams == null) { - this.deployFunctionParams = new ArrayList<>(); + public EVMTokenCreateParamsDto addConstructorParamsItem( + List constructorParamsItem) { + if (this.constructorParams == null) { + this.constructorParams = new ArrayList<>(); } - this.deployFunctionParams.add(deployFunctionParamsItem); + this.constructorParams.add(constructorParamsItem); return this; } /** - * The deploy function parameters and values of the contract template + * The constructor parameters and values of the contract template * - * @return deployFunctionParams + * @return constructorParams */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DEPLOY_FUNCTION_PARAMS) + @JsonProperty(JSON_PROPERTY_CONSTRUCTOR_PARAMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getDeployFunctionParams() { - return deployFunctionParams; + public List> getConstructorParams() { + return constructorParams; } - @JsonProperty(JSON_PROPERTY_DEPLOY_FUNCTION_PARAMS) + @JsonProperty(JSON_PROPERTY_CONSTRUCTOR_PARAMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDeployFunctionParams( - @jakarta.annotation.Nullable List deployFunctionParams) { - this.deployFunctionParams = deployFunctionParams; + public void setConstructorParams( + @jakarta.annotation.Nullable List> constructorParams) { + this.constructorParams = constructorParams; } /** Return true if this EVMTokenCreateParamsDto object is equal to o. */ @@ -117,12 +115,12 @@ public boolean equals(Object o) { EVMTokenCreateParamsDto evMTokenCreateParamsDto = (EVMTokenCreateParamsDto) o; return Objects.equals(this.contractId, evMTokenCreateParamsDto.contractId) && Objects.equals( - this.deployFunctionParams, evMTokenCreateParamsDto.deployFunctionParams); + this.constructorParams, evMTokenCreateParamsDto.constructorParams); } @Override public int hashCode() { - return Objects.hash(contractId, deployFunctionParams); + return Objects.hash(contractId, constructorParams); } @Override @@ -130,8 +128,8 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class EVMTokenCreateParamsDto {\n"); sb.append(" contractId: ").append(toIndentedString(contractId)).append("\n"); - sb.append(" deployFunctionParams: ") - .append(toIndentedString(deployFunctionParams)) + sb.append(" constructorParams: ") + .append(toIndentedString(constructorParams)) .append("\n"); sb.append("}"); return sb.toString(); @@ -190,25 +188,22 @@ public String toUrlQueryString(String prefix) { ApiClient.urlEncode(ApiClient.valueToString(getContractId())))); } - // add `deployFunctionParams` to the URL query string - if (getDeployFunctionParams() != null) { - for (int i = 0; i < getDeployFunctionParams().size(); i++) { - if (getDeployFunctionParams().get(i) != null) { + // add `constructorParams` to the URL query string + if (getConstructorParams() != null) { + for (int i = 0; i < getConstructorParams().size(); i++) { + if (getConstructorParams().get(i) != null) { joiner.add( - getDeployFunctionParams() - .get(i) - .toUrlQueryString( - String.format( - "%sdeployFunctionParams%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); + String.format( + "%sconstructorParams%s%s=%s", + prefix, + suffix, + "".equals(suffix) + ? "" + : String.format( + "%s%d%s", containerPrefix, i, containerSuffix), + ApiClient.urlEncode( + ApiClient.valueToString( + getConstructorParams().get(i))))); } } } diff --git a/src/main/java/com/fireblocks/sdk/model/EmbeddedWallet.java b/src/main/java/com/fireblocks/sdk/model/EmbeddedWallet.java deleted file mode 100644 index d9827e60..00000000 --- a/src/main/java/com/fireblocks/sdk/model/EmbeddedWallet.java +++ /dev/null @@ -1,186 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** EmbeddedWallet */ -@JsonPropertyOrder({EmbeddedWallet.JSON_PROPERTY_WALLET_ID, EmbeddedWallet.JSON_PROPERTY_ENABLED}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class EmbeddedWallet { - public static final String JSON_PROPERTY_WALLET_ID = "walletId"; - @jakarta.annotation.Nonnull private String walletId; - - public static final String JSON_PROPERTY_ENABLED = "enabled"; - @jakarta.annotation.Nonnull private Boolean enabled; - - public EmbeddedWallet() {} - - @JsonCreator - public EmbeddedWallet( - @JsonProperty(value = JSON_PROPERTY_WALLET_ID, required = true) String walletId, - @JsonProperty(value = JSON_PROPERTY_ENABLED, required = true) Boolean enabled) { - this.walletId = walletId; - this.enabled = enabled; - } - - public EmbeddedWallet walletId(@jakarta.annotation.Nonnull String walletId) { - this.walletId = walletId; - return this; - } - - /** - * walletId - * - * @return walletId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_WALLET_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getWalletId() { - return walletId; - } - - @JsonProperty(JSON_PROPERTY_WALLET_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setWalletId(@jakarta.annotation.Nonnull String walletId) { - this.walletId = walletId; - } - - public EmbeddedWallet enabled(@jakarta.annotation.Nonnull Boolean enabled) { - this.enabled = enabled; - return this; - } - - /** - * enabled - * - * @return enabled - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ENABLED) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Boolean getEnabled() { - return enabled; - } - - @JsonProperty(JSON_PROPERTY_ENABLED) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setEnabled(@jakarta.annotation.Nonnull Boolean enabled) { - this.enabled = enabled; - } - - /** Return true if this EmbeddedWallet object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - EmbeddedWallet embeddedWallet = (EmbeddedWallet) o; - return Objects.equals(this.walletId, embeddedWallet.walletId) - && Objects.equals(this.enabled, embeddedWallet.enabled); - } - - @Override - public int hashCode() { - return Objects.hash(walletId, enabled); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class EmbeddedWallet {\n"); - sb.append(" walletId: ").append(toIndentedString(walletId)).append("\n"); - sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `walletId` to the URL query string - if (getWalletId() != null) { - joiner.add( - String.format( - "%swalletId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getWalletId())))); - } - - // add `enabled` to the URL query string - if (getEnabled() != null) { - joiner.add( - String.format( - "%senabled%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getEnabled())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletAccount.java b/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletAccount.java deleted file mode 100644 index f3edfccd..00000000 --- a/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletAccount.java +++ /dev/null @@ -1,189 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** EmbeddedWalletAccount */ -@JsonPropertyOrder({ - EmbeddedWalletAccount.JSON_PROPERTY_ACCOUNT_ID, - EmbeddedWalletAccount.JSON_PROPERTY_WALLET_ID -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class EmbeddedWalletAccount { - public static final String JSON_PROPERTY_ACCOUNT_ID = "accountId"; - @jakarta.annotation.Nonnull private String accountId; - - public static final String JSON_PROPERTY_WALLET_ID = "walletId"; - @jakarta.annotation.Nonnull private String walletId; - - public EmbeddedWalletAccount() {} - - @JsonCreator - public EmbeddedWalletAccount( - @JsonProperty(value = JSON_PROPERTY_ACCOUNT_ID, required = true) String accountId, - @JsonProperty(value = JSON_PROPERTY_WALLET_ID, required = true) String walletId) { - this.accountId = accountId; - this.walletId = walletId; - } - - public EmbeddedWalletAccount accountId(@jakarta.annotation.Nonnull String accountId) { - this.accountId = accountId; - return this; - } - - /** - * The ID of the account - * - * @return accountId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getAccountId() { - return accountId; - } - - @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAccountId(@jakarta.annotation.Nonnull String accountId) { - this.accountId = accountId; - } - - public EmbeddedWalletAccount walletId(@jakarta.annotation.Nonnull String walletId) { - this.walletId = walletId; - return this; - } - - /** - * Unique identifier of the Non-Custodial Wallet (UUID) - * - * @return walletId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_WALLET_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getWalletId() { - return walletId; - } - - @JsonProperty(JSON_PROPERTY_WALLET_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setWalletId(@jakarta.annotation.Nonnull String walletId) { - this.walletId = walletId; - } - - /** Return true if this EmbeddedWalletAccount object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - EmbeddedWalletAccount embeddedWalletAccount = (EmbeddedWalletAccount) o; - return Objects.equals(this.accountId, embeddedWalletAccount.accountId) - && Objects.equals(this.walletId, embeddedWalletAccount.walletId); - } - - @Override - public int hashCode() { - return Objects.hash(accountId, walletId); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class EmbeddedWalletAccount {\n"); - sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n"); - sb.append(" walletId: ").append(toIndentedString(walletId)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `accountId` to the URL query string - if (getAccountId() != null) { - joiner.add( - String.format( - "%saccountId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAccountId())))); - } - - // add `walletId` to the URL query string - if (getWalletId() != null) { - joiner.add( - String.format( - "%swalletId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getWalletId())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletAddressDetails.java b/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletAddressDetails.java deleted file mode 100644 index 2db356f0..00000000 --- a/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletAddressDetails.java +++ /dev/null @@ -1,850 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fireblocks.sdk.ApiClient; -import java.math.BigDecimal; -import java.util.Objects; -import java.util.StringJoiner; - -/** EmbeddedWalletAddressDetails */ -@JsonPropertyOrder({ - EmbeddedWalletAddressDetails.JSON_PROPERTY_ACCOUNT_NAME, - EmbeddedWalletAddressDetails.JSON_PROPERTY_ACCOUNT_ID, - EmbeddedWalletAddressDetails.JSON_PROPERTY_ASSET, - EmbeddedWalletAddressDetails.JSON_PROPERTY_ADDRESS, - EmbeddedWalletAddressDetails.JSON_PROPERTY_ADDRESS_TYPE, - EmbeddedWalletAddressDetails.JSON_PROPERTY_ADDRESS_DESCRIPTION, - EmbeddedWalletAddressDetails.JSON_PROPERTY_TAG, - EmbeddedWalletAddressDetails.JSON_PROPERTY_ADDRESS_INDEX, - EmbeddedWalletAddressDetails.JSON_PROPERTY_CHANGE, - EmbeddedWalletAddressDetails.JSON_PROPERTY_COIN_TYPE, - EmbeddedWalletAddressDetails.JSON_PROPERTY_CUSTOMER_REF_ID, - EmbeddedWalletAddressDetails.JSON_PROPERTY_ADDRESS_FORMAT, - EmbeddedWalletAddressDetails.JSON_PROPERTY_LEGACY_ADDRESS, - EmbeddedWalletAddressDetails.JSON_PROPERTY_PAYMENT_ADDRESS, - EmbeddedWalletAddressDetails.JSON_PROPERTY_USER_DEFINED, - EmbeddedWalletAddressDetails.JSON_PROPERTY_STATE -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class EmbeddedWalletAddressDetails { - public static final String JSON_PROPERTY_ACCOUNT_NAME = "accountName"; - @jakarta.annotation.Nonnull private String accountName; - - public static final String JSON_PROPERTY_ACCOUNT_ID = "accountId"; - @jakarta.annotation.Nonnull private String accountId; - - public static final String JSON_PROPERTY_ASSET = "asset"; - @jakarta.annotation.Nonnull private String asset; - - public static final String JSON_PROPERTY_ADDRESS = "address"; - @jakarta.annotation.Nonnull private String address; - - /** addressType */ - public enum AddressTypeEnum { - PERMANENT(String.valueOf("PERMANENT")), - - CHANGE(String.valueOf("CHANGE")), - - DEFAULT(String.valueOf("DEFAULT")), - - ADDRESS(String.valueOf("ADDRESS")); - - private String value; - - AddressTypeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static AddressTypeEnum fromValue(String value) { - for (AddressTypeEnum b : AddressTypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_ADDRESS_TYPE = "addressType"; - @jakarta.annotation.Nonnull private AddressTypeEnum addressType; - - public static final String JSON_PROPERTY_ADDRESS_DESCRIPTION = "addressDescription"; - @jakarta.annotation.Nonnull private String addressDescription; - - public static final String JSON_PROPERTY_TAG = "tag"; - @jakarta.annotation.Nonnull private String tag; - - public static final String JSON_PROPERTY_ADDRESS_INDEX = "addressIndex"; - @jakarta.annotation.Nullable private BigDecimal addressIndex; - - public static final String JSON_PROPERTY_CHANGE = "change"; - @jakarta.annotation.Nullable private BigDecimal change; - - public static final String JSON_PROPERTY_COIN_TYPE = "coinType"; - @jakarta.annotation.Nullable private BigDecimal coinType; - - public static final String JSON_PROPERTY_CUSTOMER_REF_ID = "customerRefId"; - @jakarta.annotation.Nullable private String customerRefId; - - public static final String JSON_PROPERTY_ADDRESS_FORMAT = "addressFormat"; - @jakarta.annotation.Nullable private String addressFormat; - - public static final String JSON_PROPERTY_LEGACY_ADDRESS = "legacyAddress"; - @jakarta.annotation.Nullable private String legacyAddress; - - public static final String JSON_PROPERTY_PAYMENT_ADDRESS = "paymentAddress"; - @jakarta.annotation.Nullable private String paymentAddress; - - public static final String JSON_PROPERTY_USER_DEFINED = "userDefined"; - @jakarta.annotation.Nullable private Boolean userDefined; - - /** state */ - public enum StateEnum { - PENDING_ACTIVATION(String.valueOf("PENDING_ACTIVATION")), - - ACTIVATION_FAILED(String.valueOf("ACTIVATION_FAILED")), - - READY(String.valueOf("READY")); - - private String value; - - StateEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static StateEnum fromValue(String value) { - for (StateEnum b : StateEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_STATE = "state"; - @jakarta.annotation.Nullable private StateEnum state; - - public EmbeddedWalletAddressDetails() {} - - @JsonCreator - public EmbeddedWalletAddressDetails( - @JsonProperty(value = JSON_PROPERTY_ACCOUNT_NAME, required = true) String accountName, - @JsonProperty(value = JSON_PROPERTY_ACCOUNT_ID, required = true) String accountId, - @JsonProperty(value = JSON_PROPERTY_ASSET, required = true) String asset, - @JsonProperty(value = JSON_PROPERTY_ADDRESS, required = true) String address, - @JsonProperty(value = JSON_PROPERTY_ADDRESS_TYPE, required = true) - AddressTypeEnum addressType, - @JsonProperty(value = JSON_PROPERTY_ADDRESS_DESCRIPTION, required = true) - String addressDescription, - @JsonProperty(value = JSON_PROPERTY_TAG, required = true) String tag) { - this.accountName = accountName; - this.accountId = accountId; - this.asset = asset; - this.address = address; - this.addressType = addressType; - this.addressDescription = addressDescription; - this.tag = tag; - } - - public EmbeddedWalletAddressDetails accountName( - @jakarta.annotation.Nonnull String accountName) { - this.accountName = accountName; - return this; - } - - /** - * accountName - * - * @return accountName - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ACCOUNT_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getAccountName() { - return accountName; - } - - @JsonProperty(JSON_PROPERTY_ACCOUNT_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAccountName(@jakarta.annotation.Nonnull String accountName) { - this.accountName = accountName; - } - - public EmbeddedWalletAddressDetails accountId(@jakarta.annotation.Nonnull String accountId) { - this.accountId = accountId; - return this; - } - - /** - * accountId - * - * @return accountId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getAccountId() { - return accountId; - } - - @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAccountId(@jakarta.annotation.Nonnull String accountId) { - this.accountId = accountId; - } - - public EmbeddedWalletAddressDetails asset(@jakarta.annotation.Nonnull String asset) { - this.asset = asset; - return this; - } - - /** - * asset - * - * @return asset - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ASSET) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getAsset() { - return asset; - } - - @JsonProperty(JSON_PROPERTY_ASSET) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAsset(@jakarta.annotation.Nonnull String asset) { - this.asset = asset; - } - - public EmbeddedWalletAddressDetails address(@jakarta.annotation.Nonnull String address) { - this.address = address; - return this; - } - - /** - * address - * - * @return address - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ADDRESS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getAddress() { - return address; - } - - @JsonProperty(JSON_PROPERTY_ADDRESS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAddress(@jakarta.annotation.Nonnull String address) { - this.address = address; - } - - public EmbeddedWalletAddressDetails addressType( - @jakarta.annotation.Nonnull AddressTypeEnum addressType) { - this.addressType = addressType; - return this; - } - - /** - * addressType - * - * @return addressType - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ADDRESS_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AddressTypeEnum getAddressType() { - return addressType; - } - - @JsonProperty(JSON_PROPERTY_ADDRESS_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAddressType(@jakarta.annotation.Nonnull AddressTypeEnum addressType) { - this.addressType = addressType; - } - - public EmbeddedWalletAddressDetails addressDescription( - @jakarta.annotation.Nonnull String addressDescription) { - this.addressDescription = addressDescription; - return this; - } - - /** - * addressDescription - * - * @return addressDescription - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ADDRESS_DESCRIPTION) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getAddressDescription() { - return addressDescription; - } - - @JsonProperty(JSON_PROPERTY_ADDRESS_DESCRIPTION) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAddressDescription(@jakarta.annotation.Nonnull String addressDescription) { - this.addressDescription = addressDescription; - } - - public EmbeddedWalletAddressDetails tag(@jakarta.annotation.Nonnull String tag) { - this.tag = tag; - return this; - } - - /** - * tag - * - * @return tag - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TAG) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getTag() { - return tag; - } - - @JsonProperty(JSON_PROPERTY_TAG) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTag(@jakarta.annotation.Nonnull String tag) { - this.tag = tag; - } - - public EmbeddedWalletAddressDetails addressIndex( - @jakarta.annotation.Nullable BigDecimal addressIndex) { - this.addressIndex = addressIndex; - return this; - } - - /** - * addressIndex - * - * @return addressIndex - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ADDRESS_INDEX) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public BigDecimal getAddressIndex() { - return addressIndex; - } - - @JsonProperty(JSON_PROPERTY_ADDRESS_INDEX) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAddressIndex(@jakarta.annotation.Nullable BigDecimal addressIndex) { - this.addressIndex = addressIndex; - } - - public EmbeddedWalletAddressDetails change(@jakarta.annotation.Nullable BigDecimal change) { - this.change = change; - return this; - } - - /** - * change - * - * @return change - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CHANGE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public BigDecimal getChange() { - return change; - } - - @JsonProperty(JSON_PROPERTY_CHANGE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setChange(@jakarta.annotation.Nullable BigDecimal change) { - this.change = change; - } - - public EmbeddedWalletAddressDetails coinType(@jakarta.annotation.Nullable BigDecimal coinType) { - this.coinType = coinType; - return this; - } - - /** - * Unique identifier of an asset (0 for BTC, 60 for ETH, etc.) - * - * @return coinType - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COIN_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public BigDecimal getCoinType() { - return coinType; - } - - @JsonProperty(JSON_PROPERTY_COIN_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCoinType(@jakarta.annotation.Nullable BigDecimal coinType) { - this.coinType = coinType; - } - - public EmbeddedWalletAddressDetails customerRefId( - @jakarta.annotation.Nullable String customerRefId) { - this.customerRefId = customerRefId; - return this; - } - - /** - * customerRefId - * - * @return customerRefId - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CUSTOMER_REF_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getCustomerRefId() { - return customerRefId; - } - - @JsonProperty(JSON_PROPERTY_CUSTOMER_REF_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCustomerRefId(@jakarta.annotation.Nullable String customerRefId) { - this.customerRefId = customerRefId; - } - - public EmbeddedWalletAddressDetails addressFormat( - @jakarta.annotation.Nullable String addressFormat) { - this.addressFormat = addressFormat; - return this; - } - - /** - * addressFormat - * - * @return addressFormat - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ADDRESS_FORMAT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getAddressFormat() { - return addressFormat; - } - - @JsonProperty(JSON_PROPERTY_ADDRESS_FORMAT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAddressFormat(@jakarta.annotation.Nullable String addressFormat) { - this.addressFormat = addressFormat; - } - - public EmbeddedWalletAddressDetails legacyAddress( - @jakarta.annotation.Nullable String legacyAddress) { - this.legacyAddress = legacyAddress; - return this; - } - - /** - * legacyAddress - * - * @return legacyAddress - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_LEGACY_ADDRESS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getLegacyAddress() { - return legacyAddress; - } - - @JsonProperty(JSON_PROPERTY_LEGACY_ADDRESS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLegacyAddress(@jakarta.annotation.Nullable String legacyAddress) { - this.legacyAddress = legacyAddress; - } - - public EmbeddedWalletAddressDetails paymentAddress( - @jakarta.annotation.Nullable String paymentAddress) { - this.paymentAddress = paymentAddress; - return this; - } - - /** - * paymentAddress - * - * @return paymentAddress - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PAYMENT_ADDRESS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getPaymentAddress() { - return paymentAddress; - } - - @JsonProperty(JSON_PROPERTY_PAYMENT_ADDRESS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPaymentAddress(@jakarta.annotation.Nullable String paymentAddress) { - this.paymentAddress = paymentAddress; - } - - public EmbeddedWalletAddressDetails userDefined( - @jakarta.annotation.Nullable Boolean userDefined) { - this.userDefined = userDefined; - return this; - } - - /** - * userDefined - * - * @return userDefined - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USER_DEFINED) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getUserDefined() { - return userDefined; - } - - @JsonProperty(JSON_PROPERTY_USER_DEFINED) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUserDefined(@jakarta.annotation.Nullable Boolean userDefined) { - this.userDefined = userDefined; - } - - public EmbeddedWalletAddressDetails state(@jakarta.annotation.Nullable StateEnum state) { - this.state = state; - return this; - } - - /** - * state - * - * @return state - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public StateEnum getState() { - return state; - } - - @JsonProperty(JSON_PROPERTY_STATE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setState(@jakarta.annotation.Nullable StateEnum state) { - this.state = state; - } - - /** Return true if this EmbeddedWalletAddressDetails object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - EmbeddedWalletAddressDetails embeddedWalletAddressDetails = - (EmbeddedWalletAddressDetails) o; - return Objects.equals(this.accountName, embeddedWalletAddressDetails.accountName) - && Objects.equals(this.accountId, embeddedWalletAddressDetails.accountId) - && Objects.equals(this.asset, embeddedWalletAddressDetails.asset) - && Objects.equals(this.address, embeddedWalletAddressDetails.address) - && Objects.equals(this.addressType, embeddedWalletAddressDetails.addressType) - && Objects.equals( - this.addressDescription, embeddedWalletAddressDetails.addressDescription) - && Objects.equals(this.tag, embeddedWalletAddressDetails.tag) - && Objects.equals(this.addressIndex, embeddedWalletAddressDetails.addressIndex) - && Objects.equals(this.change, embeddedWalletAddressDetails.change) - && Objects.equals(this.coinType, embeddedWalletAddressDetails.coinType) - && Objects.equals(this.customerRefId, embeddedWalletAddressDetails.customerRefId) - && Objects.equals(this.addressFormat, embeddedWalletAddressDetails.addressFormat) - && Objects.equals(this.legacyAddress, embeddedWalletAddressDetails.legacyAddress) - && Objects.equals(this.paymentAddress, embeddedWalletAddressDetails.paymentAddress) - && Objects.equals(this.userDefined, embeddedWalletAddressDetails.userDefined) - && Objects.equals(this.state, embeddedWalletAddressDetails.state); - } - - @Override - public int hashCode() { - return Objects.hash( - accountName, - accountId, - asset, - address, - addressType, - addressDescription, - tag, - addressIndex, - change, - coinType, - customerRefId, - addressFormat, - legacyAddress, - paymentAddress, - userDefined, - state); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class EmbeddedWalletAddressDetails {\n"); - sb.append(" accountName: ").append(toIndentedString(accountName)).append("\n"); - sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n"); - sb.append(" asset: ").append(toIndentedString(asset)).append("\n"); - sb.append(" address: ").append(toIndentedString(address)).append("\n"); - sb.append(" addressType: ").append(toIndentedString(addressType)).append("\n"); - sb.append(" addressDescription: ") - .append(toIndentedString(addressDescription)) - .append("\n"); - sb.append(" tag: ").append(toIndentedString(tag)).append("\n"); - sb.append(" addressIndex: ").append(toIndentedString(addressIndex)).append("\n"); - sb.append(" change: ").append(toIndentedString(change)).append("\n"); - sb.append(" coinType: ").append(toIndentedString(coinType)).append("\n"); - sb.append(" customerRefId: ").append(toIndentedString(customerRefId)).append("\n"); - sb.append(" addressFormat: ").append(toIndentedString(addressFormat)).append("\n"); - sb.append(" legacyAddress: ").append(toIndentedString(legacyAddress)).append("\n"); - sb.append(" paymentAddress: ").append(toIndentedString(paymentAddress)).append("\n"); - sb.append(" userDefined: ").append(toIndentedString(userDefined)).append("\n"); - sb.append(" state: ").append(toIndentedString(state)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `accountName` to the URL query string - if (getAccountName() != null) { - joiner.add( - String.format( - "%saccountName%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAccountName())))); - } - - // add `accountId` to the URL query string - if (getAccountId() != null) { - joiner.add( - String.format( - "%saccountId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAccountId())))); - } - - // add `asset` to the URL query string - if (getAsset() != null) { - joiner.add( - String.format( - "%sasset%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAsset())))); - } - - // add `address` to the URL query string - if (getAddress() != null) { - joiner.add( - String.format( - "%saddress%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAddress())))); - } - - // add `addressType` to the URL query string - if (getAddressType() != null) { - joiner.add( - String.format( - "%saddressType%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAddressType())))); - } - - // add `addressDescription` to the URL query string - if (getAddressDescription() != null) { - joiner.add( - String.format( - "%saddressDescription%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAddressDescription())))); - } - - // add `tag` to the URL query string - if (getTag() != null) { - joiner.add( - String.format( - "%stag%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getTag())))); - } - - // add `addressIndex` to the URL query string - if (getAddressIndex() != null) { - joiner.add( - String.format( - "%saddressIndex%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAddressIndex())))); - } - - // add `change` to the URL query string - if (getChange() != null) { - joiner.add( - String.format( - "%schange%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getChange())))); - } - - // add `coinType` to the URL query string - if (getCoinType() != null) { - joiner.add( - String.format( - "%scoinType%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getCoinType())))); - } - - // add `customerRefId` to the URL query string - if (getCustomerRefId() != null) { - joiner.add( - String.format( - "%scustomerRefId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getCustomerRefId())))); - } - - // add `addressFormat` to the URL query string - if (getAddressFormat() != null) { - joiner.add( - String.format( - "%saddressFormat%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAddressFormat())))); - } - - // add `legacyAddress` to the URL query string - if (getLegacyAddress() != null) { - joiner.add( - String.format( - "%slegacyAddress%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getLegacyAddress())))); - } - - // add `paymentAddress` to the URL query string - if (getPaymentAddress() != null) { - joiner.add( - String.format( - "%spaymentAddress%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getPaymentAddress())))); - } - - // add `userDefined` to the URL query string - if (getUserDefined() != null) { - joiner.add( - String.format( - "%suserDefined%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getUserDefined())))); - } - - // add `state` to the URL query string - if (getState() != null) { - joiner.add( - String.format( - "%sstate%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getState())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletAlgoritm.java b/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletAlgoritm.java deleted file mode 100644 index 68889b1d..00000000 --- a/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletAlgoritm.java +++ /dev/null @@ -1,181 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** algorithm name */ -@JsonPropertyOrder({EmbeddedWalletAlgoritm.JSON_PROPERTY_ALGORITHM}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class EmbeddedWalletAlgoritm { - /** algorithm */ - public enum AlgorithmEnum { - MPC_ECDSA_SECP256_K1(String.valueOf("MPC_ECDSA_SECP256K1")), - - MPC_EDDSA_ED25519(String.valueOf("MPC_EDDSA_ED25519")); - - private String value; - - AlgorithmEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static AlgorithmEnum fromValue(String value) { - for (AlgorithmEnum b : AlgorithmEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_ALGORITHM = "algorithm"; - @jakarta.annotation.Nonnull private AlgorithmEnum algorithm; - - public EmbeddedWalletAlgoritm() {} - - @JsonCreator - public EmbeddedWalletAlgoritm( - @JsonProperty(value = JSON_PROPERTY_ALGORITHM, required = true) - AlgorithmEnum algorithm) { - this.algorithm = algorithm; - } - - public EmbeddedWalletAlgoritm algorithm(@jakarta.annotation.Nonnull AlgorithmEnum algorithm) { - this.algorithm = algorithm; - return this; - } - - /** - * algorithm - * - * @return algorithm - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ALGORITHM) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AlgorithmEnum getAlgorithm() { - return algorithm; - } - - @JsonProperty(JSON_PROPERTY_ALGORITHM) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAlgorithm(@jakarta.annotation.Nonnull AlgorithmEnum algorithm) { - this.algorithm = algorithm; - } - - /** Return true if this EmbeddedWalletAlgoritm object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - EmbeddedWalletAlgoritm embeddedWalletAlgoritm = (EmbeddedWalletAlgoritm) o; - return Objects.equals(this.algorithm, embeddedWalletAlgoritm.algorithm); - } - - @Override - public int hashCode() { - return Objects.hash(algorithm); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class EmbeddedWalletAlgoritm {\n"); - sb.append(" algorithm: ").append(toIndentedString(algorithm)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `algorithm` to the URL query string - if (getAlgorithm() != null) { - joiner.add( - String.format( - "%salgorithm%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAlgorithm())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletAssetBalance.java b/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletAssetBalance.java deleted file mode 100644 index c9b2a450..00000000 --- a/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletAssetBalance.java +++ /dev/null @@ -1,476 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** EmbeddedWalletAssetBalance */ -@JsonPropertyOrder({ - EmbeddedWalletAssetBalance.JSON_PROPERTY_ID, - EmbeddedWalletAssetBalance.JSON_PROPERTY_TOTAL, - EmbeddedWalletAssetBalance.JSON_PROPERTY_AVAILABLE, - EmbeddedWalletAssetBalance.JSON_PROPERTY_PENDING, - EmbeddedWalletAssetBalance.JSON_PROPERTY_FROZEN, - EmbeddedWalletAssetBalance.JSON_PROPERTY_LOCKED_AMOUNT, - EmbeddedWalletAssetBalance.JSON_PROPERTY_BLOCK_HEIGHT, - EmbeddedWalletAssetBalance.JSON_PROPERTY_BLOCK_HASH, - EmbeddedWalletAssetBalance.JSON_PROPERTY_REWARD_INFO -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class EmbeddedWalletAssetBalance { - public static final String JSON_PROPERTY_ID = "id"; - @jakarta.annotation.Nonnull private String id; - - public static final String JSON_PROPERTY_TOTAL = "total"; - @jakarta.annotation.Nonnull private String total; - - public static final String JSON_PROPERTY_AVAILABLE = "available"; - @jakarta.annotation.Nonnull private String available; - - public static final String JSON_PROPERTY_PENDING = "pending"; - @jakarta.annotation.Nonnull private String pending; - - public static final String JSON_PROPERTY_FROZEN = "frozen"; - @jakarta.annotation.Nonnull private String frozen; - - public static final String JSON_PROPERTY_LOCKED_AMOUNT = "lockedAmount"; - @jakarta.annotation.Nonnull private String lockedAmount; - - public static final String JSON_PROPERTY_BLOCK_HEIGHT = "blockHeight"; - @jakarta.annotation.Nullable private String blockHeight; - - public static final String JSON_PROPERTY_BLOCK_HASH = "blockHash"; - @jakarta.annotation.Nullable private String blockHash; - - public static final String JSON_PROPERTY_REWARD_INFO = "rewardInfo"; - @jakarta.annotation.Nullable private EmbeddedWalletAssetRewardInfo rewardInfo; - - public EmbeddedWalletAssetBalance() {} - - @JsonCreator - public EmbeddedWalletAssetBalance( - @JsonProperty(value = JSON_PROPERTY_ID, required = true) String id, - @JsonProperty(value = JSON_PROPERTY_TOTAL, required = true) String total, - @JsonProperty(value = JSON_PROPERTY_AVAILABLE, required = true) String available, - @JsonProperty(value = JSON_PROPERTY_PENDING, required = true) String pending, - @JsonProperty(value = JSON_PROPERTY_FROZEN, required = true) String frozen, - @JsonProperty(value = JSON_PROPERTY_LOCKED_AMOUNT, required = true) - String lockedAmount) { - this.id = id; - this.total = total; - this.available = available; - this.pending = pending; - this.frozen = frozen; - this.lockedAmount = lockedAmount; - } - - public EmbeddedWalletAssetBalance id(@jakarta.annotation.Nonnull String id) { - this.id = id; - return this; - } - - /** - * Unique identifier of the asset balance entry - * - * @return id - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getId() { - return id; - } - - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(@jakarta.annotation.Nonnull String id) { - this.id = id; - } - - public EmbeddedWalletAssetBalance total(@jakarta.annotation.Nonnull String total) { - this.total = total; - return this; - } - - /** - * Total balance amount for the asset in the account (including pending, locked, and available) - * - * @return total - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TOTAL) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getTotal() { - return total; - } - - @JsonProperty(JSON_PROPERTY_TOTAL) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTotal(@jakarta.annotation.Nonnull String total) { - this.total = total; - } - - public EmbeddedWalletAssetBalance available(@jakarta.annotation.Nonnull String available) { - this.available = available; - return this; - } - - /** - * The balance available for use or withdrawal - * - * @return available - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_AVAILABLE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getAvailable() { - return available; - } - - @JsonProperty(JSON_PROPERTY_AVAILABLE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAvailable(@jakarta.annotation.Nonnull String available) { - this.available = available; - } - - public EmbeddedWalletAssetBalance pending(@jakarta.annotation.Nonnull String pending) { - this.pending = pending; - return this; - } - - /** - * Amount pending confirmation from blockchain (e.g., unconfirmed deposits) - * - * @return pending - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PENDING) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getPending() { - return pending; - } - - @JsonProperty(JSON_PROPERTY_PENDING) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPending(@jakarta.annotation.Nonnull String pending) { - this.pending = pending; - } - - public EmbeddedWalletAssetBalance frozen(@jakarta.annotation.Nonnull String frozen) { - this.frozen = frozen; - return this; - } - - /** - * Balance that is frozen due to policy or regulatory lock - * - * @return frozen - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_FROZEN) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getFrozen() { - return frozen; - } - - @JsonProperty(JSON_PROPERTY_FROZEN) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setFrozen(@jakarta.annotation.Nonnull String frozen) { - this.frozen = frozen; - } - - public EmbeddedWalletAssetBalance lockedAmount( - @jakarta.annotation.Nonnull String lockedAmount) { - this.lockedAmount = lockedAmount; - return this; - } - - /** - * Funds locked for operations such as staking or delegation - * - * @return lockedAmount - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_LOCKED_AMOUNT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getLockedAmount() { - return lockedAmount; - } - - @JsonProperty(JSON_PROPERTY_LOCKED_AMOUNT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setLockedAmount(@jakarta.annotation.Nonnull String lockedAmount) { - this.lockedAmount = lockedAmount; - } - - public EmbeddedWalletAssetBalance blockHeight(@jakarta.annotation.Nullable String blockHeight) { - this.blockHeight = blockHeight; - return this; - } - - /** - * Latest known blockchain height when balance was fetched - * - * @return blockHeight - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BLOCK_HEIGHT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getBlockHeight() { - return blockHeight; - } - - @JsonProperty(JSON_PROPERTY_BLOCK_HEIGHT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBlockHeight(@jakarta.annotation.Nullable String blockHeight) { - this.blockHeight = blockHeight; - } - - public EmbeddedWalletAssetBalance blockHash(@jakarta.annotation.Nullable String blockHash) { - this.blockHash = blockHash; - return this; - } - - /** - * Hash of the blockchain block associated with the current balance state - * - * @return blockHash - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BLOCK_HASH) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getBlockHash() { - return blockHash; - } - - @JsonProperty(JSON_PROPERTY_BLOCK_HASH) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBlockHash(@jakarta.annotation.Nullable String blockHash) { - this.blockHash = blockHash; - } - - public EmbeddedWalletAssetBalance rewardInfo( - @jakarta.annotation.Nullable EmbeddedWalletAssetRewardInfo rewardInfo) { - this.rewardInfo = rewardInfo; - return this; - } - - /** - * Get rewardInfo - * - * @return rewardInfo - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_REWARD_INFO) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public EmbeddedWalletAssetRewardInfo getRewardInfo() { - return rewardInfo; - } - - @JsonProperty(JSON_PROPERTY_REWARD_INFO) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRewardInfo( - @jakarta.annotation.Nullable EmbeddedWalletAssetRewardInfo rewardInfo) { - this.rewardInfo = rewardInfo; - } - - /** Return true if this EmbeddedWalletAssetBalance object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - EmbeddedWalletAssetBalance embeddedWalletAssetBalance = (EmbeddedWalletAssetBalance) o; - return Objects.equals(this.id, embeddedWalletAssetBalance.id) - && Objects.equals(this.total, embeddedWalletAssetBalance.total) - && Objects.equals(this.available, embeddedWalletAssetBalance.available) - && Objects.equals(this.pending, embeddedWalletAssetBalance.pending) - && Objects.equals(this.frozen, embeddedWalletAssetBalance.frozen) - && Objects.equals(this.lockedAmount, embeddedWalletAssetBalance.lockedAmount) - && Objects.equals(this.blockHeight, embeddedWalletAssetBalance.blockHeight) - && Objects.equals(this.blockHash, embeddedWalletAssetBalance.blockHash) - && Objects.equals(this.rewardInfo, embeddedWalletAssetBalance.rewardInfo); - } - - @Override - public int hashCode() { - return Objects.hash( - id, - total, - available, - pending, - frozen, - lockedAmount, - blockHeight, - blockHash, - rewardInfo); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class EmbeddedWalletAssetBalance {\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" total: ").append(toIndentedString(total)).append("\n"); - sb.append(" available: ").append(toIndentedString(available)).append("\n"); - sb.append(" pending: ").append(toIndentedString(pending)).append("\n"); - sb.append(" frozen: ").append(toIndentedString(frozen)).append("\n"); - sb.append(" lockedAmount: ").append(toIndentedString(lockedAmount)).append("\n"); - sb.append(" blockHeight: ").append(toIndentedString(blockHeight)).append("\n"); - sb.append(" blockHash: ").append(toIndentedString(blockHash)).append("\n"); - sb.append(" rewardInfo: ").append(toIndentedString(rewardInfo)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `id` to the URL query string - if (getId() != null) { - joiner.add( - String.format( - "%sid%s=%s", - prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); - } - - // add `total` to the URL query string - if (getTotal() != null) { - joiner.add( - String.format( - "%stotal%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getTotal())))); - } - - // add `available` to the URL query string - if (getAvailable() != null) { - joiner.add( - String.format( - "%savailable%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAvailable())))); - } - - // add `pending` to the URL query string - if (getPending() != null) { - joiner.add( - String.format( - "%spending%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getPending())))); - } - - // add `frozen` to the URL query string - if (getFrozen() != null) { - joiner.add( - String.format( - "%sfrozen%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getFrozen())))); - } - - // add `lockedAmount` to the URL query string - if (getLockedAmount() != null) { - joiner.add( - String.format( - "%slockedAmount%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getLockedAmount())))); - } - - // add `blockHeight` to the URL query string - if (getBlockHeight() != null) { - joiner.add( - String.format( - "%sblockHeight%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBlockHeight())))); - } - - // add `blockHash` to the URL query string - if (getBlockHash() != null) { - joiner.add( - String.format( - "%sblockHash%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBlockHash())))); - } - - // add `rewardInfo` to the URL query string - if (getRewardInfo() != null) { - joiner.add(getRewardInfo().toUrlQueryString(prefix + "rewardInfo" + suffix)); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletAssetResponse.java b/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletAssetResponse.java deleted file mode 100644 index 547942fd..00000000 --- a/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletAssetResponse.java +++ /dev/null @@ -1,858 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fireblocks.sdk.ApiClient; -import java.math.BigDecimal; -import java.util.Objects; -import java.util.StringJoiner; - -/** EmbeddedWalletAssetResponse */ -@JsonPropertyOrder({ - EmbeddedWalletAssetResponse.JSON_PROPERTY_ID, - EmbeddedWalletAssetResponse.JSON_PROPERTY_SYMBOL, - EmbeddedWalletAssetResponse.JSON_PROPERTY_NAME, - EmbeddedWalletAssetResponse.JSON_PROPERTY_DECIMALS, - EmbeddedWalletAssetResponse.JSON_PROPERTY_NETWORK_PROTOCOL, - EmbeddedWalletAssetResponse.JSON_PROPERTY_TESTNET, - EmbeddedWalletAssetResponse.JSON_PROPERTY_HAS_FEE, - EmbeddedWalletAssetResponse.JSON_PROPERTY_BASE_ASSET, - EmbeddedWalletAssetResponse.JSON_PROPERTY_ETH_NETWORK, - EmbeddedWalletAssetResponse.JSON_PROPERTY_ETH_CONTRACT_ADDRESS, - EmbeddedWalletAssetResponse.JSON_PROPERTY_ISSUER_ADDRESS, - EmbeddedWalletAssetResponse.JSON_PROPERTY_BLOCKCHAIN_SYMBOL, - EmbeddedWalletAssetResponse.JSON_PROPERTY_DEPRECATED, - EmbeddedWalletAssetResponse.JSON_PROPERTY_COIN_TYPE, - EmbeddedWalletAssetResponse.JSON_PROPERTY_BLOCKCHAIN, - EmbeddedWalletAssetResponse.JSON_PROPERTY_BLOCKCHAIN_DISPLAY_NAME, - EmbeddedWalletAssetResponse.JSON_PROPERTY_ALGORITHM -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class EmbeddedWalletAssetResponse { - public static final String JSON_PROPERTY_ID = "id"; - @jakarta.annotation.Nonnull private String id; - - public static final String JSON_PROPERTY_SYMBOL = "symbol"; - @jakarta.annotation.Nonnull private String symbol; - - public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nonnull private String name; - - public static final String JSON_PROPERTY_DECIMALS = "decimals"; - @jakarta.annotation.Nonnull private BigDecimal decimals; - - public static final String JSON_PROPERTY_NETWORK_PROTOCOL = "networkProtocol"; - @jakarta.annotation.Nonnull private String networkProtocol; - - public static final String JSON_PROPERTY_TESTNET = "testnet"; - @jakarta.annotation.Nonnull private Boolean testnet; - - public static final String JSON_PROPERTY_HAS_FEE = "hasFee"; - @jakarta.annotation.Nonnull private Boolean hasFee; - - public static final String JSON_PROPERTY_BASE_ASSET = "baseAsset"; - @jakarta.annotation.Nonnull private String baseAsset; - - public static final String JSON_PROPERTY_ETH_NETWORK = "ethNetwork"; - @jakarta.annotation.Nullable private String ethNetwork; - - public static final String JSON_PROPERTY_ETH_CONTRACT_ADDRESS = "ethContractAddress"; - @jakarta.annotation.Nullable private String ethContractAddress; - - public static final String JSON_PROPERTY_ISSUER_ADDRESS = "issuerAddress"; - @jakarta.annotation.Nullable private String issuerAddress; - - public static final String JSON_PROPERTY_BLOCKCHAIN_SYMBOL = "blockchainSymbol"; - @jakarta.annotation.Nullable private String blockchainSymbol; - - public static final String JSON_PROPERTY_DEPRECATED = "deprecated"; - @jakarta.annotation.Nullable private Boolean deprecated; - - public static final String JSON_PROPERTY_COIN_TYPE = "coinType"; - @jakarta.annotation.Nonnull private BigDecimal coinType; - - public static final String JSON_PROPERTY_BLOCKCHAIN = "blockchain"; - @jakarta.annotation.Nonnull private String blockchain; - - public static final String JSON_PROPERTY_BLOCKCHAIN_DISPLAY_NAME = "blockchainDisplayName"; - @jakarta.annotation.Nullable private String blockchainDisplayName; - - /** Gets or Sets algorithm */ - public enum AlgorithmEnum { - MPC_ECDSA_SECP256_K1(String.valueOf("MPC_ECDSA_SECP256K1")), - - MPC_EDDSA_ED25519(String.valueOf("MPC_EDDSA_ED25519")); - - private String value; - - AlgorithmEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static AlgorithmEnum fromValue(String value) { - for (AlgorithmEnum b : AlgorithmEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_ALGORITHM = "algorithm"; - @jakarta.annotation.Nullable private AlgorithmEnum algorithm; - - public EmbeddedWalletAssetResponse() {} - - @JsonCreator - public EmbeddedWalletAssetResponse( - @JsonProperty(value = JSON_PROPERTY_ID, required = true) String id, - @JsonProperty(value = JSON_PROPERTY_SYMBOL, required = true) String symbol, - @JsonProperty(value = JSON_PROPERTY_NAME, required = true) String name, - @JsonProperty(value = JSON_PROPERTY_DECIMALS, required = true) BigDecimal decimals, - @JsonProperty(value = JSON_PROPERTY_NETWORK_PROTOCOL, required = true) - String networkProtocol, - @JsonProperty(value = JSON_PROPERTY_TESTNET, required = true) Boolean testnet, - @JsonProperty(value = JSON_PROPERTY_HAS_FEE, required = true) Boolean hasFee, - @JsonProperty(value = JSON_PROPERTY_BASE_ASSET, required = true) String baseAsset, - @JsonProperty(value = JSON_PROPERTY_COIN_TYPE, required = true) BigDecimal coinType, - @JsonProperty(value = JSON_PROPERTY_BLOCKCHAIN, required = true) String blockchain) { - this.id = id; - this.symbol = symbol; - this.name = name; - this.decimals = decimals; - this.networkProtocol = networkProtocol; - this.testnet = testnet; - this.hasFee = hasFee; - this.baseAsset = baseAsset; - this.coinType = coinType; - this.blockchain = blockchain; - } - - public EmbeddedWalletAssetResponse id(@jakarta.annotation.Nonnull String id) { - this.id = id; - return this; - } - - /** - * Get id - * - * @return id - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getId() { - return id; - } - - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(@jakarta.annotation.Nonnull String id) { - this.id = id; - } - - public EmbeddedWalletAssetResponse symbol(@jakarta.annotation.Nonnull String symbol) { - this.symbol = symbol; - return this; - } - - /** - * The asset symbol - * - * @return symbol - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SYMBOL) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getSymbol() { - return symbol; - } - - @JsonProperty(JSON_PROPERTY_SYMBOL) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSymbol(@jakarta.annotation.Nonnull String symbol) { - this.symbol = symbol; - } - - public EmbeddedWalletAssetResponse name(@jakarta.annotation.Nonnull String name) { - this.name = name; - return this; - } - - /** - * The asset name - * - * @return name - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getName() { - return name; - } - - @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(@jakarta.annotation.Nonnull String name) { - this.name = name; - } - - public EmbeddedWalletAssetResponse decimals(@jakarta.annotation.Nonnull BigDecimal decimals) { - this.decimals = decimals; - return this; - } - - /** - * Number of decimals - * - * @return decimals - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DECIMALS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public BigDecimal getDecimals() { - return decimals; - } - - @JsonProperty(JSON_PROPERTY_DECIMALS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDecimals(@jakarta.annotation.Nonnull BigDecimal decimals) { - this.decimals = decimals; - } - - public EmbeddedWalletAssetResponse networkProtocol( - @jakarta.annotation.Nonnull String networkProtocol) { - this.networkProtocol = networkProtocol; - return this; - } - - /** - * Netowrk protocol of the blockchain (BTC, ETH) - * - * @return networkProtocol - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NETWORK_PROTOCOL) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getNetworkProtocol() { - return networkProtocol; - } - - @JsonProperty(JSON_PROPERTY_NETWORK_PROTOCOL) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setNetworkProtocol(@jakarta.annotation.Nonnull String networkProtocol) { - this.networkProtocol = networkProtocol; - } - - public EmbeddedWalletAssetResponse testnet(@jakarta.annotation.Nonnull Boolean testnet) { - this.testnet = testnet; - return this; - } - - /** - * Is in testnet - * - * @return testnet - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TESTNET) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Boolean getTestnet() { - return testnet; - } - - @JsonProperty(JSON_PROPERTY_TESTNET) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTestnet(@jakarta.annotation.Nonnull Boolean testnet) { - this.testnet = testnet; - } - - public EmbeddedWalletAssetResponse hasFee(@jakarta.annotation.Nonnull Boolean hasFee) { - this.hasFee = hasFee; - return this; - } - - /** - * Has fee - * - * @return hasFee - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_HAS_FEE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Boolean getHasFee() { - return hasFee; - } - - @JsonProperty(JSON_PROPERTY_HAS_FEE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setHasFee(@jakarta.annotation.Nonnull Boolean hasFee) { - this.hasFee = hasFee; - } - - public EmbeddedWalletAssetResponse baseAsset(@jakarta.annotation.Nonnull String baseAsset) { - this.baseAsset = baseAsset; - return this; - } - - /** - * Base asset symbol BTC_TEST, ETH_TEST5) - * - * @return baseAsset - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BASE_ASSET) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getBaseAsset() { - return baseAsset; - } - - @JsonProperty(JSON_PROPERTY_BASE_ASSET) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBaseAsset(@jakarta.annotation.Nonnull String baseAsset) { - this.baseAsset = baseAsset; - } - - public EmbeddedWalletAssetResponse ethNetwork(@jakarta.annotation.Nullable String ethNetwork) { - this.ethNetwork = ethNetwork; - return this; - } - - /** - * Get ethNetwork - * - * @return ethNetwork - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ETH_NETWORK) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getEthNetwork() { - return ethNetwork; - } - - @JsonProperty(JSON_PROPERTY_ETH_NETWORK) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEthNetwork(@jakarta.annotation.Nullable String ethNetwork) { - this.ethNetwork = ethNetwork; - } - - public EmbeddedWalletAssetResponse ethContractAddress( - @jakarta.annotation.Nullable String ethContractAddress) { - this.ethContractAddress = ethContractAddress; - return this; - } - - /** - * Get ethContractAddress - * - * @return ethContractAddress - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ETH_CONTRACT_ADDRESS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getEthContractAddress() { - return ethContractAddress; - } - - @JsonProperty(JSON_PROPERTY_ETH_CONTRACT_ADDRESS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEthContractAddress(@jakarta.annotation.Nullable String ethContractAddress) { - this.ethContractAddress = ethContractAddress; - } - - public EmbeddedWalletAssetResponse issuerAddress( - @jakarta.annotation.Nullable String issuerAddress) { - this.issuerAddress = issuerAddress; - return this; - } - - /** - * The address of the issuer of this token. Will be part of the identifier of this token on - * chain. - * - * @return issuerAddress - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ISSUER_ADDRESS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getIssuerAddress() { - return issuerAddress; - } - - @JsonProperty(JSON_PROPERTY_ISSUER_ADDRESS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIssuerAddress(@jakarta.annotation.Nullable String issuerAddress) { - this.issuerAddress = issuerAddress; - } - - public EmbeddedWalletAssetResponse blockchainSymbol( - @jakarta.annotation.Nullable String blockchainSymbol) { - this.blockchainSymbol = blockchainSymbol; - return this; - } - - /** - * Name of blockchain - * - * @return blockchainSymbol - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BLOCKCHAIN_SYMBOL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getBlockchainSymbol() { - return blockchainSymbol; - } - - @JsonProperty(JSON_PROPERTY_BLOCKCHAIN_SYMBOL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBlockchainSymbol(@jakarta.annotation.Nullable String blockchainSymbol) { - this.blockchainSymbol = blockchainSymbol; - } - - public EmbeddedWalletAssetResponse deprecated(@jakarta.annotation.Nullable Boolean deprecated) { - this.deprecated = deprecated; - return this; - } - - /** - * Is blockchain deprecated - * - * @return deprecated - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DEPRECATED) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getDeprecated() { - return deprecated; - } - - @JsonProperty(JSON_PROPERTY_DEPRECATED) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDeprecated(@jakarta.annotation.Nullable Boolean deprecated) { - this.deprecated = deprecated; - } - - public EmbeddedWalletAssetResponse coinType(@jakarta.annotation.Nonnull BigDecimal coinType) { - this.coinType = coinType; - return this; - } - - /** - * Unique identifier of an asset (0 for BTC, 60 for ETH, etc.) - * - * @return coinType - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_COIN_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public BigDecimal getCoinType() { - return coinType; - } - - @JsonProperty(JSON_PROPERTY_COIN_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCoinType(@jakarta.annotation.Nonnull BigDecimal coinType) { - this.coinType = coinType; - } - - public EmbeddedWalletAssetResponse blockchain(@jakarta.annotation.Nonnull String blockchain) { - this.blockchain = blockchain; - return this; - } - - /** - * The blockchain native asset id which the token is deployed on - * - * @return blockchain - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BLOCKCHAIN) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getBlockchain() { - return blockchain; - } - - @JsonProperty(JSON_PROPERTY_BLOCKCHAIN) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBlockchain(@jakarta.annotation.Nonnull String blockchain) { - this.blockchain = blockchain; - } - - public EmbeddedWalletAssetResponse blockchainDisplayName( - @jakarta.annotation.Nullable String blockchainDisplayName) { - this.blockchainDisplayName = blockchainDisplayName; - return this; - } - - /** - * Name of blockchain - * - * @return blockchainDisplayName - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BLOCKCHAIN_DISPLAY_NAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getBlockchainDisplayName() { - return blockchainDisplayName; - } - - @JsonProperty(JSON_PROPERTY_BLOCKCHAIN_DISPLAY_NAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBlockchainDisplayName( - @jakarta.annotation.Nullable String blockchainDisplayName) { - this.blockchainDisplayName = blockchainDisplayName; - } - - public EmbeddedWalletAssetResponse algorithm( - @jakarta.annotation.Nullable AlgorithmEnum algorithm) { - this.algorithm = algorithm; - return this; - } - - /** - * Get algorithm - * - * @return algorithm - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ALGORITHM) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public AlgorithmEnum getAlgorithm() { - return algorithm; - } - - @JsonProperty(JSON_PROPERTY_ALGORITHM) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAlgorithm(@jakarta.annotation.Nullable AlgorithmEnum algorithm) { - this.algorithm = algorithm; - } - - /** Return true if this EmbeddedWalletAssetResponse object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - EmbeddedWalletAssetResponse embeddedWalletAssetResponse = (EmbeddedWalletAssetResponse) o; - return Objects.equals(this.id, embeddedWalletAssetResponse.id) - && Objects.equals(this.symbol, embeddedWalletAssetResponse.symbol) - && Objects.equals(this.name, embeddedWalletAssetResponse.name) - && Objects.equals(this.decimals, embeddedWalletAssetResponse.decimals) - && Objects.equals(this.networkProtocol, embeddedWalletAssetResponse.networkProtocol) - && Objects.equals(this.testnet, embeddedWalletAssetResponse.testnet) - && Objects.equals(this.hasFee, embeddedWalletAssetResponse.hasFee) - && Objects.equals(this.baseAsset, embeddedWalletAssetResponse.baseAsset) - && Objects.equals(this.ethNetwork, embeddedWalletAssetResponse.ethNetwork) - && Objects.equals( - this.ethContractAddress, embeddedWalletAssetResponse.ethContractAddress) - && Objects.equals(this.issuerAddress, embeddedWalletAssetResponse.issuerAddress) - && Objects.equals( - this.blockchainSymbol, embeddedWalletAssetResponse.blockchainSymbol) - && Objects.equals(this.deprecated, embeddedWalletAssetResponse.deprecated) - && Objects.equals(this.coinType, embeddedWalletAssetResponse.coinType) - && Objects.equals(this.blockchain, embeddedWalletAssetResponse.blockchain) - && Objects.equals( - this.blockchainDisplayName, - embeddedWalletAssetResponse.blockchainDisplayName) - && Objects.equals(this.algorithm, embeddedWalletAssetResponse.algorithm); - } - - @Override - public int hashCode() { - return Objects.hash( - id, - symbol, - name, - decimals, - networkProtocol, - testnet, - hasFee, - baseAsset, - ethNetwork, - ethContractAddress, - issuerAddress, - blockchainSymbol, - deprecated, - coinType, - blockchain, - blockchainDisplayName, - algorithm); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class EmbeddedWalletAssetResponse {\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" symbol: ").append(toIndentedString(symbol)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" decimals: ").append(toIndentedString(decimals)).append("\n"); - sb.append(" networkProtocol: ").append(toIndentedString(networkProtocol)).append("\n"); - sb.append(" testnet: ").append(toIndentedString(testnet)).append("\n"); - sb.append(" hasFee: ").append(toIndentedString(hasFee)).append("\n"); - sb.append(" baseAsset: ").append(toIndentedString(baseAsset)).append("\n"); - sb.append(" ethNetwork: ").append(toIndentedString(ethNetwork)).append("\n"); - sb.append(" ethContractAddress: ") - .append(toIndentedString(ethContractAddress)) - .append("\n"); - sb.append(" issuerAddress: ").append(toIndentedString(issuerAddress)).append("\n"); - sb.append(" blockchainSymbol: ").append(toIndentedString(blockchainSymbol)).append("\n"); - sb.append(" deprecated: ").append(toIndentedString(deprecated)).append("\n"); - sb.append(" coinType: ").append(toIndentedString(coinType)).append("\n"); - sb.append(" blockchain: ").append(toIndentedString(blockchain)).append("\n"); - sb.append(" blockchainDisplayName: ") - .append(toIndentedString(blockchainDisplayName)) - .append("\n"); - sb.append(" algorithm: ").append(toIndentedString(algorithm)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `id` to the URL query string - if (getId() != null) { - joiner.add( - String.format( - "%sid%s=%s", - prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); - } - - // add `symbol` to the URL query string - if (getSymbol() != null) { - joiner.add( - String.format( - "%ssymbol%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getSymbol())))); - } - - // add `name` to the URL query string - if (getName() != null) { - joiner.add( - String.format( - "%sname%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getName())))); - } - - // add `decimals` to the URL query string - if (getDecimals() != null) { - joiner.add( - String.format( - "%sdecimals%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getDecimals())))); - } - - // add `networkProtocol` to the URL query string - if (getNetworkProtocol() != null) { - joiner.add( - String.format( - "%snetworkProtocol%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getNetworkProtocol())))); - } - - // add `testnet` to the URL query string - if (getTestnet() != null) { - joiner.add( - String.format( - "%stestnet%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getTestnet())))); - } - - // add `hasFee` to the URL query string - if (getHasFee() != null) { - joiner.add( - String.format( - "%shasFee%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getHasFee())))); - } - - // add `baseAsset` to the URL query string - if (getBaseAsset() != null) { - joiner.add( - String.format( - "%sbaseAsset%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBaseAsset())))); - } - - // add `ethNetwork` to the URL query string - if (getEthNetwork() != null) { - joiner.add( - String.format( - "%sethNetwork%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getEthNetwork())))); - } - - // add `ethContractAddress` to the URL query string - if (getEthContractAddress() != null) { - joiner.add( - String.format( - "%sethContractAddress%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getEthContractAddress())))); - } - - // add `issuerAddress` to the URL query string - if (getIssuerAddress() != null) { - joiner.add( - String.format( - "%sissuerAddress%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getIssuerAddress())))); - } - - // add `blockchainSymbol` to the URL query string - if (getBlockchainSymbol() != null) { - joiner.add( - String.format( - "%sblockchainSymbol%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBlockchainSymbol())))); - } - - // add `deprecated` to the URL query string - if (getDeprecated() != null) { - joiner.add( - String.format( - "%sdeprecated%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getDeprecated())))); - } - - // add `coinType` to the URL query string - if (getCoinType() != null) { - joiner.add( - String.format( - "%scoinType%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getCoinType())))); - } - - // add `blockchain` to the URL query string - if (getBlockchain() != null) { - joiner.add( - String.format( - "%sblockchain%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBlockchain())))); - } - - // add `blockchainDisplayName` to the URL query string - if (getBlockchainDisplayName() != null) { - joiner.add( - String.format( - "%sblockchainDisplayName%s=%s", - prefix, - suffix, - ApiClient.urlEncode( - ApiClient.valueToString(getBlockchainDisplayName())))); - } - - // add `algorithm` to the URL query string - if (getAlgorithm() != null) { - joiner.add( - String.format( - "%salgorithm%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAlgorithm())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletAssetRewardInfo.java b/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletAssetRewardInfo.java deleted file mode 100644 index 8655ec3b..00000000 --- a/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletAssetRewardInfo.java +++ /dev/null @@ -1,149 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** EmbeddedWalletAssetRewardInfo */ -@JsonPropertyOrder({EmbeddedWalletAssetRewardInfo.JSON_PROPERTY_PENDING_REWARDS}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class EmbeddedWalletAssetRewardInfo { - public static final String JSON_PROPERTY_PENDING_REWARDS = "pendingRewards"; - @jakarta.annotation.Nonnull private String pendingRewards; - - public EmbeddedWalletAssetRewardInfo() {} - - @JsonCreator - public EmbeddedWalletAssetRewardInfo( - @JsonProperty(value = JSON_PROPERTY_PENDING_REWARDS, required = true) - String pendingRewards) { - this.pendingRewards = pendingRewards; - } - - public EmbeddedWalletAssetRewardInfo pendingRewards( - @jakarta.annotation.Nonnull String pendingRewards) { - this.pendingRewards = pendingRewards; - return this; - } - - /** - * Amount that is pending for rewards - * - * @return pendingRewards - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PENDING_REWARDS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getPendingRewards() { - return pendingRewards; - } - - @JsonProperty(JSON_PROPERTY_PENDING_REWARDS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPendingRewards(@jakarta.annotation.Nonnull String pendingRewards) { - this.pendingRewards = pendingRewards; - } - - /** Return true if this EmbeddedWalletAssetRewardInfo object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - EmbeddedWalletAssetRewardInfo embeddedWalletAssetRewardInfo = - (EmbeddedWalletAssetRewardInfo) o; - return Objects.equals(this.pendingRewards, embeddedWalletAssetRewardInfo.pendingRewards); - } - - @Override - public int hashCode() { - return Objects.hash(pendingRewards); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class EmbeddedWalletAssetRewardInfo {\n"); - sb.append(" pendingRewards: ").append(toIndentedString(pendingRewards)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `pendingRewards` to the URL query string - if (getPendingRewards() != null) { - joiner.add( - String.format( - "%spendingRewards%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getPendingRewards())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletDevice.java b/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletDevice.java deleted file mode 100644 index 2d94422f..00000000 --- a/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletDevice.java +++ /dev/null @@ -1,232 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** EmbeddedWalletDevice */ -@JsonPropertyOrder({ - EmbeddedWalletDevice.JSON_PROPERTY_DEVICE_ID, - EmbeddedWalletDevice.JSON_PROPERTY_ENABLED, - EmbeddedWalletDevice.JSON_PROPERTY_PHYSICAL_DEVICE_ID -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class EmbeddedWalletDevice { - public static final String JSON_PROPERTY_DEVICE_ID = "deviceId"; - @jakarta.annotation.Nonnull private String deviceId; - - public static final String JSON_PROPERTY_ENABLED = "enabled"; - @jakarta.annotation.Nonnull private Boolean enabled; - - public static final String JSON_PROPERTY_PHYSICAL_DEVICE_ID = "physicalDeviceId"; - @jakarta.annotation.Nonnull private String physicalDeviceId; - - public EmbeddedWalletDevice() {} - - @JsonCreator - public EmbeddedWalletDevice( - @JsonProperty(value = JSON_PROPERTY_DEVICE_ID, required = true) String deviceId, - @JsonProperty(value = JSON_PROPERTY_ENABLED, required = true) Boolean enabled, - @JsonProperty(value = JSON_PROPERTY_PHYSICAL_DEVICE_ID, required = true) - String physicalDeviceId) { - this.deviceId = deviceId; - this.enabled = enabled; - this.physicalDeviceId = physicalDeviceId; - } - - public EmbeddedWalletDevice deviceId(@jakarta.annotation.Nonnull String deviceId) { - this.deviceId = deviceId; - return this; - } - - /** - * deviceId - * - * @return deviceId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DEVICE_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getDeviceId() { - return deviceId; - } - - @JsonProperty(JSON_PROPERTY_DEVICE_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDeviceId(@jakarta.annotation.Nonnull String deviceId) { - this.deviceId = deviceId; - } - - public EmbeddedWalletDevice enabled(@jakarta.annotation.Nonnull Boolean enabled) { - this.enabled = enabled; - return this; - } - - /** - * enabled - * - * @return enabled - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ENABLED) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Boolean getEnabled() { - return enabled; - } - - @JsonProperty(JSON_PROPERTY_ENABLED) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setEnabled(@jakarta.annotation.Nonnull Boolean enabled) { - this.enabled = enabled; - } - - public EmbeddedWalletDevice physicalDeviceId( - @jakarta.annotation.Nonnull String physicalDeviceId) { - this.physicalDeviceId = physicalDeviceId; - return this; - } - - /** - * physicalDeviceId - * - * @return physicalDeviceId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PHYSICAL_DEVICE_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getPhysicalDeviceId() { - return physicalDeviceId; - } - - @JsonProperty(JSON_PROPERTY_PHYSICAL_DEVICE_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPhysicalDeviceId(@jakarta.annotation.Nonnull String physicalDeviceId) { - this.physicalDeviceId = physicalDeviceId; - } - - /** Return true if this EmbeddedWalletDevice object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - EmbeddedWalletDevice embeddedWalletDevice = (EmbeddedWalletDevice) o; - return Objects.equals(this.deviceId, embeddedWalletDevice.deviceId) - && Objects.equals(this.enabled, embeddedWalletDevice.enabled) - && Objects.equals(this.physicalDeviceId, embeddedWalletDevice.physicalDeviceId); - } - - @Override - public int hashCode() { - return Objects.hash(deviceId, enabled, physicalDeviceId); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class EmbeddedWalletDevice {\n"); - sb.append(" deviceId: ").append(toIndentedString(deviceId)).append("\n"); - sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n"); - sb.append(" physicalDeviceId: ").append(toIndentedString(physicalDeviceId)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `deviceId` to the URL query string - if (getDeviceId() != null) { - joiner.add( - String.format( - "%sdeviceId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getDeviceId())))); - } - - // add `enabled` to the URL query string - if (getEnabled() != null) { - joiner.add( - String.format( - "%senabled%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getEnabled())))); - } - - // add `physicalDeviceId` to the URL query string - if (getPhysicalDeviceId() != null) { - joiner.add( - String.format( - "%sphysicalDeviceId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getPhysicalDeviceId())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletDeviceKeySetupResponse.java b/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletDeviceKeySetupResponse.java deleted file mode 100644 index 8dd8e540..00000000 --- a/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletDeviceKeySetupResponse.java +++ /dev/null @@ -1,304 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** EmbeddedWalletDeviceKeySetupResponse */ -@JsonPropertyOrder({ - EmbeddedWalletDeviceKeySetupResponse.JSON_PROPERTY_STATUS, - EmbeddedWalletDeviceKeySetupResponse.JSON_PROPERTY_DEVICE_ID, - EmbeddedWalletDeviceKeySetupResponse.JSON_PROPERTY_ENABLED, - EmbeddedWalletDeviceKeySetupResponse.JSON_PROPERTY_SETUP_STATUS -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class EmbeddedWalletDeviceKeySetupResponse { - public static final String JSON_PROPERTY_STATUS = "status"; - @jakarta.annotation.Nonnull private EmbeddedWalletSetUpStatus status; - - public static final String JSON_PROPERTY_DEVICE_ID = "deviceId"; - @jakarta.annotation.Nonnull private String deviceId; - - public static final String JSON_PROPERTY_ENABLED = "enabled"; - @jakarta.annotation.Nonnull private Boolean enabled; - - public static final String JSON_PROPERTY_SETUP_STATUS = "setupStatus"; - - @jakarta.annotation.Nonnull - private List setupStatus = - new ArrayList<>(); - - public EmbeddedWalletDeviceKeySetupResponse() {} - - @JsonCreator - public EmbeddedWalletDeviceKeySetupResponse( - @JsonProperty(value = JSON_PROPERTY_STATUS, required = true) - EmbeddedWalletSetUpStatus status, - @JsonProperty(value = JSON_PROPERTY_DEVICE_ID, required = true) String deviceId, - @JsonProperty(value = JSON_PROPERTY_ENABLED, required = true) Boolean enabled, - @JsonProperty(value = JSON_PROPERTY_SETUP_STATUS, required = true) - List setupStatus) { - this.status = status; - this.deviceId = deviceId; - this.enabled = enabled; - this.setupStatus = setupStatus; - } - - public EmbeddedWalletDeviceKeySetupResponse status( - @jakarta.annotation.Nonnull EmbeddedWalletSetUpStatus status) { - this.status = status; - return this; - } - - /** - * Get status - * - * @return status - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_STATUS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public EmbeddedWalletSetUpStatus getStatus() { - return status; - } - - @JsonProperty(JSON_PROPERTY_STATUS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStatus(@jakarta.annotation.Nonnull EmbeddedWalletSetUpStatus status) { - this.status = status; - } - - public EmbeddedWalletDeviceKeySetupResponse deviceId( - @jakarta.annotation.Nonnull String deviceId) { - this.deviceId = deviceId; - return this; - } - - /** - * deviceId - * - * @return deviceId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DEVICE_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getDeviceId() { - return deviceId; - } - - @JsonProperty(JSON_PROPERTY_DEVICE_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDeviceId(@jakarta.annotation.Nonnull String deviceId) { - this.deviceId = deviceId; - } - - public EmbeddedWalletDeviceKeySetupResponse enabled( - @jakarta.annotation.Nonnull Boolean enabled) { - this.enabled = enabled; - return this; - } - - /** - * enabled - * - * @return enabled - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ENABLED) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Boolean getEnabled() { - return enabled; - } - - @JsonProperty(JSON_PROPERTY_ENABLED) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setEnabled(@jakarta.annotation.Nonnull Boolean enabled) { - this.enabled = enabled; - } - - public EmbeddedWalletDeviceKeySetupResponse setupStatus( - @jakarta.annotation.Nonnull - List setupStatus) { - this.setupStatus = setupStatus; - return this; - } - - public EmbeddedWalletDeviceKeySetupResponse addSetupStatusItem( - EmbeddedWalletDeviceKeySetupResponseSetupStatusInner setupStatusItem) { - if (this.setupStatus == null) { - this.setupStatus = new ArrayList<>(); - } - this.setupStatus.add(setupStatusItem); - return this; - } - - /** - * setupStatus - * - * @return setupStatus - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SETUP_STATUS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getSetupStatus() { - return setupStatus; - } - - @JsonProperty(JSON_PROPERTY_SETUP_STATUS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSetupStatus( - @jakarta.annotation.Nonnull - List setupStatus) { - this.setupStatus = setupStatus; - } - - /** Return true if this EmbeddedWalletDeviceKeySetupResponse object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - EmbeddedWalletDeviceKeySetupResponse embeddedWalletDeviceKeySetupResponse = - (EmbeddedWalletDeviceKeySetupResponse) o; - return Objects.equals(this.status, embeddedWalletDeviceKeySetupResponse.status) - && Objects.equals(this.deviceId, embeddedWalletDeviceKeySetupResponse.deviceId) - && Objects.equals(this.enabled, embeddedWalletDeviceKeySetupResponse.enabled) - && Objects.equals( - this.setupStatus, embeddedWalletDeviceKeySetupResponse.setupStatus); - } - - @Override - public int hashCode() { - return Objects.hash(status, deviceId, enabled, setupStatus); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class EmbeddedWalletDeviceKeySetupResponse {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append(" deviceId: ").append(toIndentedString(deviceId)).append("\n"); - sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n"); - sb.append(" setupStatus: ").append(toIndentedString(setupStatus)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `status` to the URL query string - if (getStatus() != null) { - joiner.add(getStatus().toUrlQueryString(prefix + "status" + suffix)); - } - - // add `deviceId` to the URL query string - if (getDeviceId() != null) { - joiner.add( - String.format( - "%sdeviceId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getDeviceId())))); - } - - // add `enabled` to the URL query string - if (getEnabled() != null) { - joiner.add( - String.format( - "%senabled%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getEnabled())))); - } - - // add `setupStatus` to the URL query string - if (getSetupStatus() != null) { - for (int i = 0; i < getSetupStatus().size(); i++) { - if (getSetupStatus().get(i) != null) { - joiner.add( - getSetupStatus() - .get(i) - .toUrlQueryString( - String.format( - "%ssetupStatus%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletDeviceKeySetupResponseSetupStatusInner.java b/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletDeviceKeySetupResponseSetupStatusInner.java deleted file mode 100644 index 58c785c9..00000000 --- a/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletDeviceKeySetupResponseSetupStatusInner.java +++ /dev/null @@ -1,240 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** EmbeddedWalletDeviceKeySetupResponseSetupStatusInner */ -@JsonPropertyOrder({ - EmbeddedWalletDeviceKeySetupResponseSetupStatusInner.JSON_PROPERTY_ALGORITHM_NAME, - EmbeddedWalletDeviceKeySetupResponseSetupStatusInner.JSON_PROPERTY_CONFIRMED, - EmbeddedWalletDeviceKeySetupResponseSetupStatusInner.JSON_PROPERTY_BACKED_UP -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class EmbeddedWalletDeviceKeySetupResponseSetupStatusInner { - public static final String JSON_PROPERTY_ALGORITHM_NAME = "algorithmName"; - @jakarta.annotation.Nonnull private EmbeddedWalletAlgoritm algorithmName; - - public static final String JSON_PROPERTY_CONFIRMED = "confirmed"; - @jakarta.annotation.Nonnull private Boolean confirmed; - - public static final String JSON_PROPERTY_BACKED_UP = "backedUp"; - @jakarta.annotation.Nonnull private Boolean backedUp; - - public EmbeddedWalletDeviceKeySetupResponseSetupStatusInner() {} - - @JsonCreator - public EmbeddedWalletDeviceKeySetupResponseSetupStatusInner( - @JsonProperty(value = JSON_PROPERTY_ALGORITHM_NAME, required = true) - EmbeddedWalletAlgoritm algorithmName, - @JsonProperty(value = JSON_PROPERTY_CONFIRMED, required = true) Boolean confirmed, - @JsonProperty(value = JSON_PROPERTY_BACKED_UP, required = true) Boolean backedUp) { - this.algorithmName = algorithmName; - this.confirmed = confirmed; - this.backedUp = backedUp; - } - - public EmbeddedWalletDeviceKeySetupResponseSetupStatusInner algorithmName( - @jakarta.annotation.Nonnull EmbeddedWalletAlgoritm algorithmName) { - this.algorithmName = algorithmName; - return this; - } - - /** - * Get algorithmName - * - * @return algorithmName - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ALGORITHM_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public EmbeddedWalletAlgoritm getAlgorithmName() { - return algorithmName; - } - - @JsonProperty(JSON_PROPERTY_ALGORITHM_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAlgorithmName(@jakarta.annotation.Nonnull EmbeddedWalletAlgoritm algorithmName) { - this.algorithmName = algorithmName; - } - - public EmbeddedWalletDeviceKeySetupResponseSetupStatusInner confirmed( - @jakarta.annotation.Nonnull Boolean confirmed) { - this.confirmed = confirmed; - return this; - } - - /** - * confirmed - * - * @return confirmed - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CONFIRMED) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Boolean getConfirmed() { - return confirmed; - } - - @JsonProperty(JSON_PROPERTY_CONFIRMED) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setConfirmed(@jakarta.annotation.Nonnull Boolean confirmed) { - this.confirmed = confirmed; - } - - public EmbeddedWalletDeviceKeySetupResponseSetupStatusInner backedUp( - @jakarta.annotation.Nonnull Boolean backedUp) { - this.backedUp = backedUp; - return this; - } - - /** - * backedUp - * - * @return backedUp - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BACKED_UP) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Boolean getBackedUp() { - return backedUp; - } - - @JsonProperty(JSON_PROPERTY_BACKED_UP) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBackedUp(@jakarta.annotation.Nonnull Boolean backedUp) { - this.backedUp = backedUp; - } - - /** - * Return true if this EmbeddedWalletDeviceKeySetupResponse_setupStatus_inner object is equal to - * o. - */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - EmbeddedWalletDeviceKeySetupResponseSetupStatusInner - embeddedWalletDeviceKeySetupResponseSetupStatusInner = - (EmbeddedWalletDeviceKeySetupResponseSetupStatusInner) o; - return Objects.equals( - this.algorithmName, - embeddedWalletDeviceKeySetupResponseSetupStatusInner.algorithmName) - && Objects.equals( - this.confirmed, - embeddedWalletDeviceKeySetupResponseSetupStatusInner.confirmed) - && Objects.equals( - this.backedUp, - embeddedWalletDeviceKeySetupResponseSetupStatusInner.backedUp); - } - - @Override - public int hashCode() { - return Objects.hash(algorithmName, confirmed, backedUp); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class EmbeddedWalletDeviceKeySetupResponseSetupStatusInner {\n"); - sb.append(" algorithmName: ").append(toIndentedString(algorithmName)).append("\n"); - sb.append(" confirmed: ").append(toIndentedString(confirmed)).append("\n"); - sb.append(" backedUp: ").append(toIndentedString(backedUp)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `algorithmName` to the URL query string - if (getAlgorithmName() != null) { - joiner.add(getAlgorithmName().toUrlQueryString(prefix + "algorithmName" + suffix)); - } - - // add `confirmed` to the URL query string - if (getConfirmed() != null) { - joiner.add( - String.format( - "%sconfirmed%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getConfirmed())))); - } - - // add `backedUp` to the URL query string - if (getBackedUp() != null) { - joiner.add( - String.format( - "%sbackedUp%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBackedUp())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletLatestBackupKey.java b/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletLatestBackupKey.java deleted file mode 100644 index e4ad9349..00000000 --- a/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletLatestBackupKey.java +++ /dev/null @@ -1,310 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** EmbeddedWalletLatestBackupKey */ -@JsonPropertyOrder({ - EmbeddedWalletLatestBackupKey.JSON_PROPERTY_DEVICE_ID, - EmbeddedWalletLatestBackupKey.JSON_PROPERTY_PUBLIC_KEY, - EmbeddedWalletLatestBackupKey.JSON_PROPERTY_KEY_ID, - EmbeddedWalletLatestBackupKey.JSON_PROPERTY_ALGORITHM -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class EmbeddedWalletLatestBackupKey { - public static final String JSON_PROPERTY_DEVICE_ID = "deviceId"; - @jakarta.annotation.Nonnull private String deviceId; - - public static final String JSON_PROPERTY_PUBLIC_KEY = "publicKey"; - @jakarta.annotation.Nonnull private String publicKey; - - public static final String JSON_PROPERTY_KEY_ID = "keyId"; - @jakarta.annotation.Nonnull private String keyId; - - /** algorithm */ - public enum AlgorithmEnum { - MPC_CMP_ECDSA_SECP256_K1(String.valueOf("MPC_CMP_ECDSA_SECP256K1")), - - MPC_CMP_EDDSA_ED25519(String.valueOf("MPC_CMP_EDDSA_ED25519")), - - MPC_ECDSA_SECP256_K1(String.valueOf("MPC_ECDSA_SECP256K1")); - - private String value; - - AlgorithmEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static AlgorithmEnum fromValue(String value) { - for (AlgorithmEnum b : AlgorithmEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_ALGORITHM = "algorithm"; - @jakarta.annotation.Nonnull private AlgorithmEnum algorithm; - - public EmbeddedWalletLatestBackupKey() {} - - @JsonCreator - public EmbeddedWalletLatestBackupKey( - @JsonProperty(value = JSON_PROPERTY_DEVICE_ID, required = true) String deviceId, - @JsonProperty(value = JSON_PROPERTY_PUBLIC_KEY, required = true) String publicKey, - @JsonProperty(value = JSON_PROPERTY_KEY_ID, required = true) String keyId, - @JsonProperty(value = JSON_PROPERTY_ALGORITHM, required = true) - AlgorithmEnum algorithm) { - this.deviceId = deviceId; - this.publicKey = publicKey; - this.keyId = keyId; - this.algorithm = algorithm; - } - - public EmbeddedWalletLatestBackupKey deviceId(@jakarta.annotation.Nonnull String deviceId) { - this.deviceId = deviceId; - return this; - } - - /** - * deviceId - * - * @return deviceId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DEVICE_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getDeviceId() { - return deviceId; - } - - @JsonProperty(JSON_PROPERTY_DEVICE_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDeviceId(@jakarta.annotation.Nonnull String deviceId) { - this.deviceId = deviceId; - } - - public EmbeddedWalletLatestBackupKey publicKey(@jakarta.annotation.Nonnull String publicKey) { - this.publicKey = publicKey; - return this; - } - - /** - * publicKey - * - * @return publicKey - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PUBLIC_KEY) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getPublicKey() { - return publicKey; - } - - @JsonProperty(JSON_PROPERTY_PUBLIC_KEY) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPublicKey(@jakarta.annotation.Nonnull String publicKey) { - this.publicKey = publicKey; - } - - public EmbeddedWalletLatestBackupKey keyId(@jakarta.annotation.Nonnull String keyId) { - this.keyId = keyId; - return this; - } - - /** - * keyId - * - * @return keyId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_KEY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getKeyId() { - return keyId; - } - - @JsonProperty(JSON_PROPERTY_KEY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setKeyId(@jakarta.annotation.Nonnull String keyId) { - this.keyId = keyId; - } - - public EmbeddedWalletLatestBackupKey algorithm( - @jakarta.annotation.Nonnull AlgorithmEnum algorithm) { - this.algorithm = algorithm; - return this; - } - - /** - * algorithm - * - * @return algorithm - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ALGORITHM) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AlgorithmEnum getAlgorithm() { - return algorithm; - } - - @JsonProperty(JSON_PROPERTY_ALGORITHM) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAlgorithm(@jakarta.annotation.Nonnull AlgorithmEnum algorithm) { - this.algorithm = algorithm; - } - - /** Return true if this EmbeddedWalletLatestBackupKey object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - EmbeddedWalletLatestBackupKey embeddedWalletLatestBackupKey = - (EmbeddedWalletLatestBackupKey) o; - return Objects.equals(this.deviceId, embeddedWalletLatestBackupKey.deviceId) - && Objects.equals(this.publicKey, embeddedWalletLatestBackupKey.publicKey) - && Objects.equals(this.keyId, embeddedWalletLatestBackupKey.keyId) - && Objects.equals(this.algorithm, embeddedWalletLatestBackupKey.algorithm); - } - - @Override - public int hashCode() { - return Objects.hash(deviceId, publicKey, keyId, algorithm); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class EmbeddedWalletLatestBackupKey {\n"); - sb.append(" deviceId: ").append(toIndentedString(deviceId)).append("\n"); - sb.append(" publicKey: ").append(toIndentedString(publicKey)).append("\n"); - sb.append(" keyId: ").append(toIndentedString(keyId)).append("\n"); - sb.append(" algorithm: ").append(toIndentedString(algorithm)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `deviceId` to the URL query string - if (getDeviceId() != null) { - joiner.add( - String.format( - "%sdeviceId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getDeviceId())))); - } - - // add `publicKey` to the URL query string - if (getPublicKey() != null) { - joiner.add( - String.format( - "%spublicKey%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getPublicKey())))); - } - - // add `keyId` to the URL query string - if (getKeyId() != null) { - joiner.add( - String.format( - "%skeyId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getKeyId())))); - } - - // add `algorithm` to the URL query string - if (getAlgorithm() != null) { - joiner.add( - String.format( - "%salgorithm%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAlgorithm())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletLatestBackupResponse.java b/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletLatestBackupResponse.java deleted file mode 100644 index a24c26c1..00000000 --- a/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletLatestBackupResponse.java +++ /dev/null @@ -1,261 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.math.BigDecimal; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** EmbeddedWalletLatestBackupResponse */ -@JsonPropertyOrder({ - EmbeddedWalletLatestBackupResponse.JSON_PROPERTY_PASSPHRASE_ID, - EmbeddedWalletLatestBackupResponse.JSON_PROPERTY_CREATED_AT, - EmbeddedWalletLatestBackupResponse.JSON_PROPERTY_KEYS -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class EmbeddedWalletLatestBackupResponse { - public static final String JSON_PROPERTY_PASSPHRASE_ID = "passphraseId"; - @jakarta.annotation.Nonnull private String passphraseId; - - public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; - @jakarta.annotation.Nonnull private BigDecimal createdAt; - - public static final String JSON_PROPERTY_KEYS = "keys"; - - @jakarta.annotation.Nonnull - private List keys = new ArrayList<>(); - - public EmbeddedWalletLatestBackupResponse() {} - - @JsonCreator - public EmbeddedWalletLatestBackupResponse( - @JsonProperty(value = JSON_PROPERTY_PASSPHRASE_ID, required = true) String passphraseId, - @JsonProperty(value = JSON_PROPERTY_CREATED_AT, required = true) BigDecimal createdAt, - @JsonProperty(value = JSON_PROPERTY_KEYS, required = true) - List keys) { - this.passphraseId = passphraseId; - this.createdAt = createdAt; - this.keys = keys; - } - - public EmbeddedWalletLatestBackupResponse passphraseId( - @jakarta.annotation.Nonnull String passphraseId) { - this.passphraseId = passphraseId; - return this; - } - - /** - * passphraseId - * - * @return passphraseId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PASSPHRASE_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getPassphraseId() { - return passphraseId; - } - - @JsonProperty(JSON_PROPERTY_PASSPHRASE_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPassphraseId(@jakarta.annotation.Nonnull String passphraseId) { - this.passphraseId = passphraseId; - } - - public EmbeddedWalletLatestBackupResponse createdAt( - @jakarta.annotation.Nonnull BigDecimal createdAt) { - this.createdAt = createdAt; - return this; - } - - /** - * createdAt - * - * @return createdAt - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CREATED_AT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public BigDecimal getCreatedAt() { - return createdAt; - } - - @JsonProperty(JSON_PROPERTY_CREATED_AT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCreatedAt(@jakarta.annotation.Nonnull BigDecimal createdAt) { - this.createdAt = createdAt; - } - - public EmbeddedWalletLatestBackupResponse keys( - @jakarta.annotation.Nonnull List keys) { - this.keys = keys; - return this; - } - - public EmbeddedWalletLatestBackupResponse addKeysItem(EmbeddedWalletLatestBackupKey keysItem) { - if (this.keys == null) { - this.keys = new ArrayList<>(); - } - this.keys.add(keysItem); - return this; - } - - /** - * keys - * - * @return keys - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_KEYS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getKeys() { - return keys; - } - - @JsonProperty(JSON_PROPERTY_KEYS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setKeys(@jakarta.annotation.Nonnull List keys) { - this.keys = keys; - } - - /** Return true if this EmbeddedWalletLatestBackupResponse object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - EmbeddedWalletLatestBackupResponse embeddedWalletLatestBackupResponse = - (EmbeddedWalletLatestBackupResponse) o; - return Objects.equals(this.passphraseId, embeddedWalletLatestBackupResponse.passphraseId) - && Objects.equals(this.createdAt, embeddedWalletLatestBackupResponse.createdAt) - && Objects.equals(this.keys, embeddedWalletLatestBackupResponse.keys); - } - - @Override - public int hashCode() { - return Objects.hash(passphraseId, createdAt, keys); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class EmbeddedWalletLatestBackupResponse {\n"); - sb.append(" passphraseId: ").append(toIndentedString(passphraseId)).append("\n"); - sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); - sb.append(" keys: ").append(toIndentedString(keys)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `passphraseId` to the URL query string - if (getPassphraseId() != null) { - joiner.add( - String.format( - "%spassphraseId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getPassphraseId())))); - } - - // add `createdAt` to the URL query string - if (getCreatedAt() != null) { - joiner.add( - String.format( - "%screatedAt%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getCreatedAt())))); - } - - // add `keys` to the URL query string - if (getKeys() != null) { - for (int i = 0; i < getKeys().size(); i++) { - if (getKeys().get(i) != null) { - joiner.add( - getKeys() - .get(i) - .toUrlQueryString( - String.format( - "%skeys%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletPaginatedAddressesResponse.java b/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletPaginatedAddressesResponse.java deleted file mode 100644 index 28eb5222..00000000 --- a/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletPaginatedAddressesResponse.java +++ /dev/null @@ -1,214 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** EmbeddedWalletPaginatedAddressesResponse */ -@JsonPropertyOrder({ - EmbeddedWalletPaginatedAddressesResponse.JSON_PROPERTY_DATA, - EmbeddedWalletPaginatedAddressesResponse.JSON_PROPERTY_NEXT -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class EmbeddedWalletPaginatedAddressesResponse { - public static final String JSON_PROPERTY_DATA = "data"; - @jakarta.annotation.Nonnull private List data = new ArrayList<>(); - - public static final String JSON_PROPERTY_NEXT = "next"; - @jakarta.annotation.Nullable private String next; - - public EmbeddedWalletPaginatedAddressesResponse() {} - - @JsonCreator - public EmbeddedWalletPaginatedAddressesResponse( - @JsonProperty(value = JSON_PROPERTY_DATA, required = true) - List data) { - this.data = data; - } - - public EmbeddedWalletPaginatedAddressesResponse data( - @jakarta.annotation.Nonnull List data) { - this.data = data; - return this; - } - - public EmbeddedWalletPaginatedAddressesResponse addDataItem( - EmbeddedWalletAddressDetails dataItem) { - if (this.data == null) { - this.data = new ArrayList<>(); - } - this.data.add(dataItem); - return this; - } - - /** - * The data of the current page - * - * @return data - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getData() { - return data; - } - - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setData(@jakarta.annotation.Nonnull List data) { - this.data = data; - } - - public EmbeddedWalletPaginatedAddressesResponse next(@jakarta.annotation.Nullable String next) { - this.next = next; - return this; - } - - /** - * The ID of the next page - * - * @return next - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NEXT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getNext() { - return next; - } - - @JsonProperty(JSON_PROPERTY_NEXT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNext(@jakarta.annotation.Nullable String next) { - this.next = next; - } - - /** Return true if this EmbeddedWalletPaginatedAddressesResponse object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - EmbeddedWalletPaginatedAddressesResponse embeddedWalletPaginatedAddressesResponse = - (EmbeddedWalletPaginatedAddressesResponse) o; - return Objects.equals(this.data, embeddedWalletPaginatedAddressesResponse.data) - && Objects.equals(this.next, embeddedWalletPaginatedAddressesResponse.next); - } - - @Override - public int hashCode() { - return Objects.hash(data, next); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class EmbeddedWalletPaginatedAddressesResponse {\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" next: ").append(toIndentedString(next)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `data` to the URL query string - if (getData() != null) { - for (int i = 0; i < getData().size(); i++) { - if (getData().get(i) != null) { - joiner.add( - getData() - .get(i) - .toUrlQueryString( - String.format( - "%sdata%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } - } - - // add `next` to the URL query string - if (getNext() != null) { - joiner.add( - String.format( - "%snext%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getNext())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletPaginatedAssetsResponse.java b/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletPaginatedAssetsResponse.java deleted file mode 100644 index 8ff0baf3..00000000 --- a/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletPaginatedAssetsResponse.java +++ /dev/null @@ -1,213 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** EmbeddedWalletPaginatedAssetsResponse */ -@JsonPropertyOrder({ - EmbeddedWalletPaginatedAssetsResponse.JSON_PROPERTY_DATA, - EmbeddedWalletPaginatedAssetsResponse.JSON_PROPERTY_NEXT -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class EmbeddedWalletPaginatedAssetsResponse { - public static final String JSON_PROPERTY_DATA = "data"; - @jakarta.annotation.Nonnull private List data = new ArrayList<>(); - - public static final String JSON_PROPERTY_NEXT = "next"; - @jakarta.annotation.Nullable private String next; - - public EmbeddedWalletPaginatedAssetsResponse() {} - - @JsonCreator - public EmbeddedWalletPaginatedAssetsResponse( - @JsonProperty(value = JSON_PROPERTY_DATA, required = true) - List data) { - this.data = data; - } - - public EmbeddedWalletPaginatedAssetsResponse data( - @jakarta.annotation.Nonnull List data) { - this.data = data; - return this; - } - - public EmbeddedWalletPaginatedAssetsResponse addDataItem(EmbeddedWalletAssetResponse dataItem) { - if (this.data == null) { - this.data = new ArrayList<>(); - } - this.data.add(dataItem); - return this; - } - - /** - * The data of the current page - * - * @return data - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getData() { - return data; - } - - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setData(@jakarta.annotation.Nonnull List data) { - this.data = data; - } - - public EmbeddedWalletPaginatedAssetsResponse next(@jakarta.annotation.Nullable String next) { - this.next = next; - return this; - } - - /** - * The ID of the next page - * - * @return next - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NEXT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getNext() { - return next; - } - - @JsonProperty(JSON_PROPERTY_NEXT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNext(@jakarta.annotation.Nullable String next) { - this.next = next; - } - - /** Return true if this EmbeddedWalletPaginatedAssetsResponse object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - EmbeddedWalletPaginatedAssetsResponse embeddedWalletPaginatedAssetsResponse = - (EmbeddedWalletPaginatedAssetsResponse) o; - return Objects.equals(this.data, embeddedWalletPaginatedAssetsResponse.data) - && Objects.equals(this.next, embeddedWalletPaginatedAssetsResponse.next); - } - - @Override - public int hashCode() { - return Objects.hash(data, next); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class EmbeddedWalletPaginatedAssetsResponse {\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" next: ").append(toIndentedString(next)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `data` to the URL query string - if (getData() != null) { - for (int i = 0; i < getData().size(); i++) { - if (getData().get(i) != null) { - joiner.add( - getData() - .get(i) - .toUrlQueryString( - String.format( - "%sdata%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } - } - - // add `next` to the URL query string - if (getNext() != null) { - joiner.add( - String.format( - "%snext%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getNext())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletPaginatedWalletsResponse.java b/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletPaginatedWalletsResponse.java deleted file mode 100644 index 4ec272a8..00000000 --- a/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletPaginatedWalletsResponse.java +++ /dev/null @@ -1,212 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** EmbeddedWalletPaginatedWalletsResponse */ -@JsonPropertyOrder({ - EmbeddedWalletPaginatedWalletsResponse.JSON_PROPERTY_DATA, - EmbeddedWalletPaginatedWalletsResponse.JSON_PROPERTY_NEXT -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class EmbeddedWalletPaginatedWalletsResponse { - public static final String JSON_PROPERTY_DATA = "data"; - @jakarta.annotation.Nonnull private List data = new ArrayList<>(); - - public static final String JSON_PROPERTY_NEXT = "next"; - @jakarta.annotation.Nullable private String next; - - public EmbeddedWalletPaginatedWalletsResponse() {} - - @JsonCreator - public EmbeddedWalletPaginatedWalletsResponse( - @JsonProperty(value = JSON_PROPERTY_DATA, required = true) List data) { - this.data = data; - } - - public EmbeddedWalletPaginatedWalletsResponse data( - @jakarta.annotation.Nonnull List data) { - this.data = data; - return this; - } - - public EmbeddedWalletPaginatedWalletsResponse addDataItem(EmbeddedWallet dataItem) { - if (this.data == null) { - this.data = new ArrayList<>(); - } - this.data.add(dataItem); - return this; - } - - /** - * The data of the current page - * - * @return data - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getData() { - return data; - } - - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setData(@jakarta.annotation.Nonnull List data) { - this.data = data; - } - - public EmbeddedWalletPaginatedWalletsResponse next(@jakarta.annotation.Nullable String next) { - this.next = next; - return this; - } - - /** - * The ID of the next page - * - * @return next - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NEXT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getNext() { - return next; - } - - @JsonProperty(JSON_PROPERTY_NEXT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNext(@jakarta.annotation.Nullable String next) { - this.next = next; - } - - /** Return true if this EmbeddedWalletPaginatedWalletsResponse object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - EmbeddedWalletPaginatedWalletsResponse embeddedWalletPaginatedWalletsResponse = - (EmbeddedWalletPaginatedWalletsResponse) o; - return Objects.equals(this.data, embeddedWalletPaginatedWalletsResponse.data) - && Objects.equals(this.next, embeddedWalletPaginatedWalletsResponse.next); - } - - @Override - public int hashCode() { - return Objects.hash(data, next); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class EmbeddedWalletPaginatedWalletsResponse {\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" next: ").append(toIndentedString(next)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `data` to the URL query string - if (getData() != null) { - for (int i = 0; i < getData().size(); i++) { - if (getData().get(i) != null) { - joiner.add( - getData() - .get(i) - .toUrlQueryString( - String.format( - "%sdata%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } - } - - // add `next` to the URL query string - if (getNext() != null) { - joiner.add( - String.format( - "%snext%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getNext())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletSetUpStatus.java b/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletSetUpStatus.java deleted file mode 100644 index 1f1b6884..00000000 --- a/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletSetUpStatus.java +++ /dev/null @@ -1,180 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** embedded wallet setup status */ -@JsonPropertyOrder({EmbeddedWalletSetUpStatus.JSON_PROPERTY_STATUS}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class EmbeddedWalletSetUpStatus { - /** status */ - public enum StatusEnum { - COMPLETE(String.valueOf("COMPLETE")), - - INCOMPLETE(String.valueOf("INCOMPLETE")); - - private String value; - - StatusEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static StatusEnum fromValue(String value) { - for (StatusEnum b : StatusEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_STATUS = "status"; - @jakarta.annotation.Nonnull private StatusEnum status; - - public EmbeddedWalletSetUpStatus() {} - - @JsonCreator - public EmbeddedWalletSetUpStatus( - @JsonProperty(value = JSON_PROPERTY_STATUS, required = true) StatusEnum status) { - this.status = status; - } - - public EmbeddedWalletSetUpStatus status(@jakarta.annotation.Nonnull StatusEnum status) { - this.status = status; - return this; - } - - /** - * status - * - * @return status - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_STATUS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public StatusEnum getStatus() { - return status; - } - - @JsonProperty(JSON_PROPERTY_STATUS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStatus(@jakarta.annotation.Nonnull StatusEnum status) { - this.status = status; - } - - /** Return true if this EmbeddedWalletSetUpStatus object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - EmbeddedWalletSetUpStatus embeddedWalletSetUpStatus = (EmbeddedWalletSetUpStatus) o; - return Objects.equals(this.status, embeddedWalletSetUpStatus.status); - } - - @Override - public int hashCode() { - return Objects.hash(status); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class EmbeddedWalletSetUpStatus {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `status` to the URL query string - if (getStatus() != null) { - joiner.add( - String.format( - "%sstatus%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getStatus())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/ErrorCodes.java b/src/main/java/com/fireblocks/sdk/model/ErrorCodes.java deleted file mode 100644 index bee62cc3..00000000 --- a/src/main/java/com/fireblocks/sdk/model/ErrorCodes.java +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - -/** Gets or Sets ErrorCodes */ -public enum ErrorCodes { - INVALID_TOKEN("INVALID_TOKEN"), - - MISSING_PARAMETER("MISSING_PARAMETER"), - - INVALID_PARAMETER("INVALID_PARAMETER"), - - RESOURCE_NOT_FOUND("RESOURCE_NOT_FOUND"), - - INVALID_TIME_RANGE("INVALID_TIME_RANGE"), - - UNAUTHORIZED("UNAUTHORIZED"), - - ACCOUNT_NOT_ACTIVE("ACCOUNT_NOT_ACTIVE"), - - UNMANAGED_WALLET_NOT_APPROVED("UNMANAGED_WALLET_NOT_APPROVED"); - - private String value; - - ErrorCodes(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static ErrorCodes fromValue(String value) { - for (ErrorCodes b : ErrorCodes.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - if (prefix == null) { - prefix = ""; - } - - return String.format("%s=%s", prefix, this.toString()); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/EstimatedFeeDetails.java b/src/main/java/com/fireblocks/sdk/model/EstimatedFeeDetails.java deleted file mode 100644 index 2aac8a91..00000000 --- a/src/main/java/com/fireblocks/sdk/model/EstimatedFeeDetails.java +++ /dev/null @@ -1,203 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.Objects; -import java.util.StringJoiner; - -/** Optional detailed fee breakdown for high/medium/low estimates */ -@JsonPropertyOrder({ - EstimatedFeeDetails.JSON_PROPERTY_LOW, - EstimatedFeeDetails.JSON_PROPERTY_MEDIUM, - EstimatedFeeDetails.JSON_PROPERTY_HIGH -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class EstimatedFeeDetails { - public static final String JSON_PROPERTY_LOW = "low"; - @jakarta.annotation.Nullable private FeeBreakdown low; - - public static final String JSON_PROPERTY_MEDIUM = "medium"; - @jakarta.annotation.Nullable private FeeBreakdown medium; - - public static final String JSON_PROPERTY_HIGH = "high"; - @jakarta.annotation.Nullable private FeeBreakdown high; - - public EstimatedFeeDetails() {} - - public EstimatedFeeDetails low(@jakarta.annotation.Nullable FeeBreakdown low) { - this.low = low; - return this; - } - - /** - * Get low - * - * @return low - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_LOW) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public FeeBreakdown getLow() { - return low; - } - - @JsonProperty(JSON_PROPERTY_LOW) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLow(@jakarta.annotation.Nullable FeeBreakdown low) { - this.low = low; - } - - public EstimatedFeeDetails medium(@jakarta.annotation.Nullable FeeBreakdown medium) { - this.medium = medium; - return this; - } - - /** - * Get medium - * - * @return medium - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MEDIUM) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public FeeBreakdown getMedium() { - return medium; - } - - @JsonProperty(JSON_PROPERTY_MEDIUM) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMedium(@jakarta.annotation.Nullable FeeBreakdown medium) { - this.medium = medium; - } - - public EstimatedFeeDetails high(@jakarta.annotation.Nullable FeeBreakdown high) { - this.high = high; - return this; - } - - /** - * Get high - * - * @return high - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_HIGH) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public FeeBreakdown getHigh() { - return high; - } - - @JsonProperty(JSON_PROPERTY_HIGH) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setHigh(@jakarta.annotation.Nullable FeeBreakdown high) { - this.high = high; - } - - /** Return true if this EstimatedFeeDetails object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - EstimatedFeeDetails estimatedFeeDetails = (EstimatedFeeDetails) o; - return Objects.equals(this.low, estimatedFeeDetails.low) - && Objects.equals(this.medium, estimatedFeeDetails.medium) - && Objects.equals(this.high, estimatedFeeDetails.high); - } - - @Override - public int hashCode() { - return Objects.hash(low, medium, high); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class EstimatedFeeDetails {\n"); - sb.append(" low: ").append(toIndentedString(low)).append("\n"); - sb.append(" medium: ").append(toIndentedString(medium)).append("\n"); - sb.append(" high: ").append(toIndentedString(high)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `low` to the URL query string - if (getLow() != null) { - joiner.add(getLow().toUrlQueryString(prefix + "low" + suffix)); - } - - // add `medium` to the URL query string - if (getMedium() != null) { - joiner.add(getMedium().toUrlQueryString(prefix + "medium" + suffix)); - } - - // add `high` to the URL query string - if (getHigh() != null) { - joiner.add(getHigh().toUrlQueryString(prefix + "high" + suffix)); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/EstimatedTransactionFeeResponse.java b/src/main/java/com/fireblocks/sdk/model/EstimatedTransactionFeeResponse.java index 15cf6f70..78e8b75a 100644 --- a/src/main/java/com/fireblocks/sdk/model/EstimatedTransactionFeeResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/EstimatedTransactionFeeResponse.java @@ -24,8 +24,7 @@ @JsonPropertyOrder({ EstimatedTransactionFeeResponse.JSON_PROPERTY_LOW, EstimatedTransactionFeeResponse.JSON_PROPERTY_MEDIUM, - EstimatedTransactionFeeResponse.JSON_PROPERTY_HIGH, - EstimatedTransactionFeeResponse.JSON_PROPERTY_FEE_DETAILS + EstimatedTransactionFeeResponse.JSON_PROPERTY_HIGH }) @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", @@ -40,9 +39,6 @@ public class EstimatedTransactionFeeResponse { public static final String JSON_PROPERTY_HIGH = "high"; @jakarta.annotation.Nonnull private TransactionFee high; - public static final String JSON_PROPERTY_FEE_DETAILS = "feeDetails"; - @jakarta.annotation.Nullable private EstimatedFeeDetails feeDetails; - public EstimatedTransactionFeeResponse() {} @JsonCreator @@ -125,30 +121,6 @@ public void setHigh(@jakarta.annotation.Nonnull TransactionFee high) { this.high = high; } - public EstimatedTransactionFeeResponse feeDetails( - @jakarta.annotation.Nullable EstimatedFeeDetails feeDetails) { - this.feeDetails = feeDetails; - return this; - } - - /** - * Get feeDetails - * - * @return feeDetails - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FEE_DETAILS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public EstimatedFeeDetails getFeeDetails() { - return feeDetails; - } - - @JsonProperty(JSON_PROPERTY_FEE_DETAILS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFeeDetails(@jakarta.annotation.Nullable EstimatedFeeDetails feeDetails) { - this.feeDetails = feeDetails; - } - /** Return true if this EstimatedTransactionFeeResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -162,13 +134,12 @@ public boolean equals(Object o) { (EstimatedTransactionFeeResponse) o; return Objects.equals(this.low, estimatedTransactionFeeResponse.low) && Objects.equals(this.medium, estimatedTransactionFeeResponse.medium) - && Objects.equals(this.high, estimatedTransactionFeeResponse.high) - && Objects.equals(this.feeDetails, estimatedTransactionFeeResponse.feeDetails); + && Objects.equals(this.high, estimatedTransactionFeeResponse.high); } @Override public int hashCode() { - return Objects.hash(low, medium, high, feeDetails); + return Objects.hash(low, medium, high); } @Override @@ -178,7 +149,6 @@ public String toString() { sb.append(" low: ").append(toIndentedString(low)).append("\n"); sb.append(" medium: ").append(toIndentedString(medium)).append("\n"); sb.append(" high: ").append(toIndentedString(high)).append("\n"); - sb.append(" feeDetails: ").append(toIndentedString(feeDetails)).append("\n"); sb.append("}"); return sb.toString(); } @@ -241,11 +211,6 @@ public String toUrlQueryString(String prefix) { joiner.add(getHigh().toUrlQueryString(prefix + "high" + suffix)); } - // add `feeDetails` to the URL query string - if (getFeeDetails() != null) { - joiner.add(getFeeDetails().toUrlQueryString(prefix + "feeDetails" + suffix)); - } - return joiner.toString(); } } diff --git a/src/main/java/com/fireblocks/sdk/model/ExchangeAccount.java b/src/main/java/com/fireblocks/sdk/model/ExchangeAccount.java index 0579df69..c3ab8d6c 100644 --- a/src/main/java/com/fireblocks/sdk/model/ExchangeAccount.java +++ b/src/main/java/com/fireblocks/sdk/model/ExchangeAccount.java @@ -51,15 +51,13 @@ public class ExchangeAccount { @jakarta.annotation.Nullable private String status; public static final String JSON_PROPERTY_ASSETS = "assets"; - @jakarta.annotation.Nullable private List assets = new ArrayList<>(); + @jakarta.annotation.Nullable private List assets; public static final String JSON_PROPERTY_SUCCESS = "success"; @jakarta.annotation.Nullable private Boolean success; public static final String JSON_PROPERTY_TRADING_ACCOUNTS = "tradingAccounts"; - - @jakarta.annotation.Nullable - private List tradingAccounts = new ArrayList<>(); + @jakarta.annotation.Nullable private List tradingAccounts; public static final String JSON_PROPERTY_IS_SUBACCOUNT = "isSubaccount"; @jakarta.annotation.Nullable private Boolean isSubaccount; diff --git a/src/main/java/com/fireblocks/sdk/model/ExchangeAccountsPaged.java b/src/main/java/com/fireblocks/sdk/model/ExchangeAccountsPaged.java index bfc7b351..bf13a539 100644 --- a/src/main/java/com/fireblocks/sdk/model/ExchangeAccountsPaged.java +++ b/src/main/java/com/fireblocks/sdk/model/ExchangeAccountsPaged.java @@ -34,7 +34,7 @@ comments = "Generator version: 7.14.0") public class ExchangeAccountsPaged { public static final String JSON_PROPERTY_EXCHANGE_ACCOUNT = "ExchangeAccount"; - @jakarta.annotation.Nullable private List exchangeAccount = new ArrayList<>(); + @jakarta.annotation.Nullable private List exchangeAccount; public static final String JSON_PROPERTY_PAGING = "paging"; @jakarta.annotation.Nullable private ExchangeAccountsPagedPaging paging; diff --git a/src/main/java/com/fireblocks/sdk/model/ExchangeAsset.java b/src/main/java/com/fireblocks/sdk/model/ExchangeAsset.java index b678d0b8..4ac46323 100644 --- a/src/main/java/com/fireblocks/sdk/model/ExchangeAsset.java +++ b/src/main/java/com/fireblocks/sdk/model/ExchangeAsset.java @@ -26,12 +26,7 @@ ExchangeAsset.JSON_PROPERTY_BALANCE, ExchangeAsset.JSON_PROPERTY_LOCKED_AMOUNT, ExchangeAsset.JSON_PROPERTY_TOTAL, - ExchangeAsset.JSON_PROPERTY_AVAILABLE, - ExchangeAsset.JSON_PROPERTY_CREDIT, - ExchangeAsset.JSON_PROPERTY_ASSET_ID, - ExchangeAsset.JSON_PROPERTY_PROVIDER_SYMBOL, - ExchangeAsset.JSON_PROPERTY_ASSET_SYMBOL, - ExchangeAsset.JSON_PROPERTY_ASSET_LEGACY_ID + ExchangeAsset.JSON_PROPERTY_AVAILABLE }) @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", @@ -52,21 +47,6 @@ public class ExchangeAsset { public static final String JSON_PROPERTY_AVAILABLE = "available"; @jakarta.annotation.Nullable private String available; - public static final String JSON_PROPERTY_CREDIT = "credit"; - @jakarta.annotation.Nullable private String credit; - - public static final String JSON_PROPERTY_ASSET_ID = "assetId"; - @jakarta.annotation.Nullable private String assetId; - - public static final String JSON_PROPERTY_PROVIDER_SYMBOL = "providerSymbol"; - @jakarta.annotation.Nullable private String providerSymbol; - - public static final String JSON_PROPERTY_ASSET_SYMBOL = "assetSymbol"; - @jakarta.annotation.Nullable private String assetSymbol; - - public static final String JSON_PROPERTY_ASSET_LEGACY_ID = "assetLegacyId"; - @jakarta.annotation.Nullable private String assetLegacyId; - public ExchangeAsset() {} public ExchangeAsset id(@jakarta.annotation.Nullable String id) { @@ -184,121 +164,6 @@ public void setAvailable(@jakarta.annotation.Nullable String available) { this.available = available; } - public ExchangeAsset credit(@jakarta.annotation.Nullable String credit) { - this.credit = credit; - return this; - } - - /** - * Get credit - * - * @return credit - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CREDIT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getCredit() { - return credit; - } - - @JsonProperty(JSON_PROPERTY_CREDIT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCredit(@jakarta.annotation.Nullable String credit) { - this.credit = credit; - } - - public ExchangeAsset assetId(@jakarta.annotation.Nullable String assetId) { - this.assetId = assetId; - return this; - } - - /** - * The id of the asset - * - * @return assetId - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ASSET_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getAssetId() { - return assetId; - } - - @JsonProperty(JSON_PROPERTY_ASSET_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAssetId(@jakarta.annotation.Nullable String assetId) { - this.assetId = assetId; - } - - public ExchangeAsset providerSymbol(@jakarta.annotation.Nullable String providerSymbol) { - this.providerSymbol = providerSymbol; - return this; - } - - /** - * The provider symbol of the asset - * - * @return providerSymbol - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROVIDER_SYMBOL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getProviderSymbol() { - return providerSymbol; - } - - @JsonProperty(JSON_PROPERTY_PROVIDER_SYMBOL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setProviderSymbol(@jakarta.annotation.Nullable String providerSymbol) { - this.providerSymbol = providerSymbol; - } - - public ExchangeAsset assetSymbol(@jakarta.annotation.Nullable String assetSymbol) { - this.assetSymbol = assetSymbol; - return this; - } - - /** - * The asset symbol of the asset - * - * @return assetSymbol - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ASSET_SYMBOL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getAssetSymbol() { - return assetSymbol; - } - - @JsonProperty(JSON_PROPERTY_ASSET_SYMBOL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAssetSymbol(@jakarta.annotation.Nullable String assetSymbol) { - this.assetSymbol = assetSymbol; - } - - public ExchangeAsset assetLegacyId(@jakarta.annotation.Nullable String assetLegacyId) { - this.assetLegacyId = assetLegacyId; - return this; - } - - /** - * The asset legacy id of the asset - * - * @return assetLegacyId - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ASSET_LEGACY_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getAssetLegacyId() { - return assetLegacyId; - } - - @JsonProperty(JSON_PROPERTY_ASSET_LEGACY_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAssetLegacyId(@jakarta.annotation.Nullable String assetLegacyId) { - this.assetLegacyId = assetLegacyId; - } - /** Return true if this ExchangeAsset object is equal to o. */ @Override public boolean equals(Object o) { @@ -313,27 +178,12 @@ public boolean equals(Object o) { && Objects.equals(this.balance, exchangeAsset.balance) && Objects.equals(this.lockedAmount, exchangeAsset.lockedAmount) && Objects.equals(this.total, exchangeAsset.total) - && Objects.equals(this.available, exchangeAsset.available) - && Objects.equals(this.credit, exchangeAsset.credit) - && Objects.equals(this.assetId, exchangeAsset.assetId) - && Objects.equals(this.providerSymbol, exchangeAsset.providerSymbol) - && Objects.equals(this.assetSymbol, exchangeAsset.assetSymbol) - && Objects.equals(this.assetLegacyId, exchangeAsset.assetLegacyId); + && Objects.equals(this.available, exchangeAsset.available); } @Override public int hashCode() { - return Objects.hash( - id, - balance, - lockedAmount, - total, - available, - credit, - assetId, - providerSymbol, - assetSymbol, - assetLegacyId); + return Objects.hash(id, balance, lockedAmount, total, available); } @Override @@ -345,11 +195,6 @@ public String toString() { sb.append(" lockedAmount: ").append(toIndentedString(lockedAmount)).append("\n"); sb.append(" total: ").append(toIndentedString(total)).append("\n"); sb.append(" available: ").append(toIndentedString(available)).append("\n"); - sb.append(" credit: ").append(toIndentedString(credit)).append("\n"); - sb.append(" assetId: ").append(toIndentedString(assetId)).append("\n"); - sb.append(" providerSymbol: ").append(toIndentedString(providerSymbol)).append("\n"); - sb.append(" assetSymbol: ").append(toIndentedString(assetSymbol)).append("\n"); - sb.append(" assetLegacyId: ").append(toIndentedString(assetLegacyId)).append("\n"); sb.append("}"); return sb.toString(); } @@ -445,56 +290,6 @@ public String toUrlQueryString(String prefix) { ApiClient.urlEncode(ApiClient.valueToString(getAvailable())))); } - // add `credit` to the URL query string - if (getCredit() != null) { - joiner.add( - String.format( - "%scredit%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getCredit())))); - } - - // add `assetId` to the URL query string - if (getAssetId() != null) { - joiner.add( - String.format( - "%sassetId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAssetId())))); - } - - // add `providerSymbol` to the URL query string - if (getProviderSymbol() != null) { - joiner.add( - String.format( - "%sproviderSymbol%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getProviderSymbol())))); - } - - // add `assetSymbol` to the URL query string - if (getAssetSymbol() != null) { - joiner.add( - String.format( - "%sassetSymbol%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAssetSymbol())))); - } - - // add `assetLegacyId` to the URL query string - if (getAssetLegacyId() != null) { - joiner.add( - String.format( - "%sassetLegacyId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAssetLegacyId())))); - } - return joiner.toString(); } } diff --git a/src/main/java/com/fireblocks/sdk/model/ExchangeSettlementTransactionsResponse.java b/src/main/java/com/fireblocks/sdk/model/ExchangeSettlementTransactionsResponse.java index 3bbd5aa3..a0413fe8 100644 --- a/src/main/java/com/fireblocks/sdk/model/ExchangeSettlementTransactionsResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/ExchangeSettlementTransactionsResponse.java @@ -31,12 +31,10 @@ comments = "Generator version: 7.14.0") public class ExchangeSettlementTransactionsResponse { public static final String JSON_PROPERTY_TO_EXCHANGE = "toExchange"; - @jakarta.annotation.Nullable private List toExchange = new ArrayList<>(); + @jakarta.annotation.Nullable private List toExchange; public static final String JSON_PROPERTY_TO_COLLATERAL = "toCollateral"; - - @jakarta.annotation.Nullable - private List toCollateral = new ArrayList<>(); + @jakarta.annotation.Nullable private List toCollateral; public ExchangeSettlementTransactionsResponse() {} diff --git a/src/main/java/com/fireblocks/sdk/model/ExchangeTradingAccount.java b/src/main/java/com/fireblocks/sdk/model/ExchangeTradingAccount.java index b03f414c..60aa41ff 100644 --- a/src/main/java/com/fireblocks/sdk/model/ExchangeTradingAccount.java +++ b/src/main/java/com/fireblocks/sdk/model/ExchangeTradingAccount.java @@ -39,7 +39,7 @@ public class ExchangeTradingAccount { @jakarta.annotation.Nullable private String name; public static final String JSON_PROPERTY_ASSETS = "assets"; - @jakarta.annotation.Nullable private List assets = new ArrayList<>(); + @jakarta.annotation.Nullable private List assets; public ExchangeTradingAccount() {} diff --git a/src/main/java/com/fireblocks/sdk/model/ExchangeType.java b/src/main/java/com/fireblocks/sdk/model/ExchangeType.java index 24a89ff2..dd90bb30 100644 --- a/src/main/java/com/fireblocks/sdk/model/ExchangeType.java +++ b/src/main/java/com/fireblocks/sdk/model/ExchangeType.java @@ -16,91 +16,59 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; -/** Exchange account's type */ +/** Gets or Sets ExchangeType */ public enum ExchangeType { - INDEPENDENT_RESERVE("INDEPENDENT_RESERVE"), - - ENCLAVE_MARKETS("ENCLAVE_MARKETS"), - - BIT("BIT"), - - COINFLEX("COINFLEX"), - - KUCOIN("KUCOIN"), + BINANCE("BINANCE"), - PXS("PXS"), + BINANCEUS("BINANCEUS"), - LIQUID("LIQUID"), + BITFINEX("BITFINEX"), BITHUMB("BITHUMB"), - BITFINEX("BITFINEX"), + BITMEX("BITMEX"), BITSO("BITSO"), BITSTAMP("BITSTAMP"), - KRAKEN("KRAKEN"), + BITTREX("BITTREX"), - KRAKENINTL("KRAKENINTL"), - - BINANCE("BINANCE"), - - BINANCEUS("BINANCEUS"), - - CRYPTOCOM("CRYPTOCOM"), - - BYBIT_V2("BYBIT_V2"), + CIRCLE("CIRCLE"), COINBASEPRO("COINBASEPRO"), - COINBASEPRIME("COINBASEPRIME"), + COINMETRO("COINMETRO"), - COINBASEINTERNATIONAL("COINBASEINTERNATIONAL"), + COINSPRO("COINSPRO"), - WHITEBIT("WHITEBIT"), + CRYPTOCOM("CRYPTOCOM"), - COINBASEEXCHANGE("COINBASEEXCHANGE"), + DERIBIT("DERIBIT"), - KORBIT("KORBIT"), + FTX("FTX"), - HITBTC("HITBTC"), + FIXUS("FIXUS"), GEMINI("GEMINI"), - CIRCLE("CIRCLE"), - - BITMEX("BITMEX"), + HITBTC("HITBTC"), HUOBI("HUOBI"), - DERIBIT("DERIBIT"), - - OKCOIN_V5("OKCOIN_V5"), - - OKEX("OKEX"), - - COINMETRO("COINMETRO"), - - GATEIO("GATEIO"), - - SCRYPT("SCRYPT"), - - COINHAKO("COINHAKO"), - - LIGHTBIT("LIGHTBIT"), + KORBIT("KORBIT"), - BULLISH("BULLISH"), + KRAKEN("KRAKEN"), - CANVAS_CONNECT("CANVAS_CONNECT"), + LIQUID("LIQUID"), - BITGET("BITGET"), + POLONIEX("POLONIEX"), - LUNO("LUNO"), + OKCOIN("OKCOIN"), - BIT_GENERA("BIT_GENERA"), + OKEX("OKEX"), - TRANSFERO("TRANSFERO"); + SEEDCX("SEEDCX"); private String value; diff --git a/src/main/java/com/fireblocks/sdk/model/Settlement.java b/src/main/java/com/fireblocks/sdk/model/ExecuteActionRequest.java similarity index 55% rename from src/main/java/com/fireblocks/sdk/model/Settlement.java rename to src/main/java/com/fireblocks/sdk/model/ExecuteActionRequest.java index 7f80870c..97c11af0 100644 --- a/src/main/java/com/fireblocks/sdk/model/Settlement.java +++ b/src/main/java/com/fireblocks/sdk/model/ExecuteActionRequest.java @@ -39,269 +39,262 @@ @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") -@JsonDeserialize(using = Settlement.SettlementDeserializer.class) -@JsonSerialize(using = Settlement.SettlementSerializer.class) -public class Settlement extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(Settlement.class.getName()); +@JsonDeserialize(using = ExecuteActionRequest.ExecuteActionRequestDeserializer.class) +@JsonSerialize(using = ExecuteActionRequest.ExecuteActionRequestSerializer.class) +public class ExecuteActionRequest extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(ExecuteActionRequest.class.getName()); - public static class SettlementSerializer extends StdSerializer { - public SettlementSerializer(Class t) { + public static class ExecuteActionRequestSerializer extends StdSerializer { + public ExecuteActionRequestSerializer(Class t) { super(t); } - public SettlementSerializer() { + public ExecuteActionRequestSerializer() { this(null); } @Override - public void serialize(Settlement value, JsonGenerator jgen, SerializerProvider provider) + public void serialize( + ExecuteActionRequest value, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { jgen.writeObject(value.getActualInstance()); } } - public static class SettlementDeserializer extends StdDeserializer { - public SettlementDeserializer() { - this(Settlement.class); + public static class ExecuteActionRequestDeserializer + extends StdDeserializer { + public ExecuteActionRequestDeserializer() { + this(ExecuteActionRequest.class); } - public SettlementDeserializer(Class vc) { + public ExecuteActionRequestDeserializer(Class vc) { super(vc); } @Override - public Settlement deserialize(JsonParser jp, DeserializationContext ctxt) + public ExecuteActionRequest deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { JsonNode tree = jp.readValueAsTree(); Object deserialized = null; boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); int match = 0; JsonToken token = tree.traverse(jp.getCodec()).nextToken(); - // deserialize DVPSettlement + // deserialize StakeRequestDto try { boolean attemptParsing = true; // ensure that we respect type coercion as set on the client ObjectMapper - if (DVPSettlement.class.equals(Integer.class) - || DVPSettlement.class.equals(Long.class) - || DVPSettlement.class.equals(Float.class) - || DVPSettlement.class.equals(Double.class) - || DVPSettlement.class.equals(Boolean.class) - || DVPSettlement.class.equals(String.class)) { + if (StakeRequestDto.class.equals(Integer.class) + || StakeRequestDto.class.equals(Long.class) + || StakeRequestDto.class.equals(Float.class) + || StakeRequestDto.class.equals(Double.class) + || StakeRequestDto.class.equals(Boolean.class) + || StakeRequestDto.class.equals(String.class)) { attemptParsing = typeCoercion; if (!attemptParsing) { attemptParsing |= - ((DVPSettlement.class.equals(Integer.class) - || DVPSettlement.class.equals(Long.class)) + ((StakeRequestDto.class.equals(Integer.class) + || StakeRequestDto.class.equals(Long.class)) && token == JsonToken.VALUE_NUMBER_INT); attemptParsing |= - ((DVPSettlement.class.equals(Float.class) - || DVPSettlement.class.equals(Double.class)) + ((StakeRequestDto.class.equals(Float.class) + || StakeRequestDto.class.equals(Double.class)) && token == JsonToken.VALUE_NUMBER_FLOAT); attemptParsing |= - (DVPSettlement.class.equals(Boolean.class) + (StakeRequestDto.class.equals(Boolean.class) && (token == JsonToken.VALUE_FALSE || token == JsonToken.VALUE_TRUE)); attemptParsing |= - (DVPSettlement.class.equals(String.class) + (StakeRequestDto.class.equals(String.class) && token == JsonToken.VALUE_STRING); } } if (attemptParsing) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(DVPSettlement.class); + deserialized = tree.traverse(jp.getCodec()).readValueAs(StakeRequestDto.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. match++; - log.log(Level.FINER, "Input data matches schema 'DVPSettlement'"); + log.log(Level.FINER, "Input data matches schema 'StakeRequestDto'"); } } catch (Exception e) { // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'DVPSettlement'", e); + log.log(Level.FINER, "Input data does not match schema 'StakeRequestDto'", e); } - // deserialize PostOrderSettlement + // deserialize UnstakeRequestDto try { boolean attemptParsing = true; // ensure that we respect type coercion as set on the client ObjectMapper - if (PostOrderSettlement.class.equals(Integer.class) - || PostOrderSettlement.class.equals(Long.class) - || PostOrderSettlement.class.equals(Float.class) - || PostOrderSettlement.class.equals(Double.class) - || PostOrderSettlement.class.equals(Boolean.class) - || PostOrderSettlement.class.equals(String.class)) { + if (UnstakeRequestDto.class.equals(Integer.class) + || UnstakeRequestDto.class.equals(Long.class) + || UnstakeRequestDto.class.equals(Float.class) + || UnstakeRequestDto.class.equals(Double.class) + || UnstakeRequestDto.class.equals(Boolean.class) + || UnstakeRequestDto.class.equals(String.class)) { attemptParsing = typeCoercion; if (!attemptParsing) { attemptParsing |= - ((PostOrderSettlement.class.equals(Integer.class) - || PostOrderSettlement.class.equals(Long.class)) + ((UnstakeRequestDto.class.equals(Integer.class) + || UnstakeRequestDto.class.equals(Long.class)) && token == JsonToken.VALUE_NUMBER_INT); attemptParsing |= - ((PostOrderSettlement.class.equals(Float.class) - || PostOrderSettlement.class.equals(Double.class)) + ((UnstakeRequestDto.class.equals(Float.class) + || UnstakeRequestDto.class.equals(Double.class)) && token == JsonToken.VALUE_NUMBER_FLOAT); attemptParsing |= - (PostOrderSettlement.class.equals(Boolean.class) + (UnstakeRequestDto.class.equals(Boolean.class) && (token == JsonToken.VALUE_FALSE || token == JsonToken.VALUE_TRUE)); attemptParsing |= - (PostOrderSettlement.class.equals(String.class) + (UnstakeRequestDto.class.equals(String.class) && token == JsonToken.VALUE_STRING); } } if (attemptParsing) { deserialized = - tree.traverse(jp.getCodec()).readValueAs(PostOrderSettlement.class); + tree.traverse(jp.getCodec()).readValueAs(UnstakeRequestDto.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. match++; - log.log(Level.FINER, "Input data matches schema 'PostOrderSettlement'"); + log.log(Level.FINER, "Input data matches schema 'UnstakeRequestDto'"); } } catch (Exception e) { // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'PostOrderSettlement'", e); + log.log(Level.FINER, "Input data does not match schema 'UnstakeRequestDto'", e); } - // deserialize PrefundedSettlement + // deserialize WithdrawRequestDto try { boolean attemptParsing = true; // ensure that we respect type coercion as set on the client ObjectMapper - if (PrefundedSettlement.class.equals(Integer.class) - || PrefundedSettlement.class.equals(Long.class) - || PrefundedSettlement.class.equals(Float.class) - || PrefundedSettlement.class.equals(Double.class) - || PrefundedSettlement.class.equals(Boolean.class) - || PrefundedSettlement.class.equals(String.class)) { + if (WithdrawRequestDto.class.equals(Integer.class) + || WithdrawRequestDto.class.equals(Long.class) + || WithdrawRequestDto.class.equals(Float.class) + || WithdrawRequestDto.class.equals(Double.class) + || WithdrawRequestDto.class.equals(Boolean.class) + || WithdrawRequestDto.class.equals(String.class)) { attemptParsing = typeCoercion; if (!attemptParsing) { attemptParsing |= - ((PrefundedSettlement.class.equals(Integer.class) - || PrefundedSettlement.class.equals(Long.class)) + ((WithdrawRequestDto.class.equals(Integer.class) + || WithdrawRequestDto.class.equals(Long.class)) && token == JsonToken.VALUE_NUMBER_INT); attemptParsing |= - ((PrefundedSettlement.class.equals(Float.class) - || PrefundedSettlement.class.equals(Double.class)) + ((WithdrawRequestDto.class.equals(Float.class) + || WithdrawRequestDto.class.equals(Double.class)) && token == JsonToken.VALUE_NUMBER_FLOAT); attemptParsing |= - (PrefundedSettlement.class.equals(Boolean.class) + (WithdrawRequestDto.class.equals(Boolean.class) && (token == JsonToken.VALUE_FALSE || token == JsonToken.VALUE_TRUE)); attemptParsing |= - (PrefundedSettlement.class.equals(String.class) + (WithdrawRequestDto.class.equals(String.class) && token == JsonToken.VALUE_STRING); } } if (attemptParsing) { deserialized = - tree.traverse(jp.getCodec()).readValueAs(PrefundedSettlement.class); + tree.traverse(jp.getCodec()).readValueAs(WithdrawRequestDto.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. match++; - log.log(Level.FINER, "Input data matches schema 'PrefundedSettlement'"); + log.log(Level.FINER, "Input data matches schema 'WithdrawRequestDto'"); } } catch (Exception e) { // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'PrefundedSettlement'", e); + log.log(Level.FINER, "Input data does not match schema 'WithdrawRequestDto'", e); } if (match == 1) { - Settlement ret = new Settlement(); + ExecuteActionRequest ret = new ExecuteActionRequest(); ret.setActualInstance(deserialized); return ret; } throw new IOException( String.format( - "Failed deserialization for Settlement: %d classes match result," - + " expected 1", + "Failed deserialization for ExecuteActionRequest: %d classes match" + + " result, expected 1", match)); } /** Handle deserialization of the 'null' value. */ @Override - public Settlement getNullValue(DeserializationContext ctxt) throws JsonMappingException { - throw new JsonMappingException(ctxt.getParser(), "Settlement cannot be null"); + public ExecuteActionRequest getNullValue(DeserializationContext ctxt) + throws JsonMappingException { + throw new JsonMappingException(ctxt.getParser(), "ExecuteActionRequest cannot be null"); } } // store a list of schema names defined in oneOf public static final Map> schemas = new HashMap<>(); - public Settlement() { + public ExecuteActionRequest() { super("oneOf", Boolean.FALSE); } - public Settlement(DVPSettlement o) { + public ExecuteActionRequest(StakeRequestDto o) { super("oneOf", Boolean.FALSE); setActualInstance(o); } - public Settlement(PostOrderSettlement o) { + public ExecuteActionRequest(UnstakeRequestDto o) { super("oneOf", Boolean.FALSE); setActualInstance(o); } - public Settlement(PrefundedSettlement o) { + public ExecuteActionRequest(WithdrawRequestDto o) { super("oneOf", Boolean.FALSE); setActualInstance(o); } static { - schemas.put("DVPSettlement", DVPSettlement.class); - schemas.put("PostOrderSettlement", PostOrderSettlement.class); - schemas.put("PrefundedSettlement", PrefundedSettlement.class); - JSON.registerDescendants(Settlement.class, Collections.unmodifiableMap(schemas)); - // Initialize and register the discriminator mappings. - Map> mappings = new HashMap>(); - mappings.put("DVP", DVPSettlement.class); - mappings.put("POST_ORDER", PostOrderSettlement.class); - mappings.put("PREFUNDED", PrefundedSettlement.class); - mappings.put("DVPSettlement", DVPSettlement.class); - mappings.put("PostOrderSettlement", PostOrderSettlement.class); - mappings.put("PrefundedSettlement", PrefundedSettlement.class); - mappings.put("Settlement", Settlement.class); - JSON.registerDiscriminator(Settlement.class, "type", mappings); + schemas.put("StakeRequestDto", StakeRequestDto.class); + schemas.put("UnstakeRequestDto", UnstakeRequestDto.class); + schemas.put("WithdrawRequestDto", WithdrawRequestDto.class); + JSON.registerDescendants(ExecuteActionRequest.class, Collections.unmodifiableMap(schemas)); } @Override public Map> getSchemas() { - return Settlement.schemas; + return ExecuteActionRequest.schemas; } /** * Set the instance that matches the oneOf child schema, check the instance parameter is valid - * against the oneOf child schemas: DVPSettlement, PostOrderSettlement, PrefundedSettlement + * against the oneOf child schemas: StakeRequestDto, UnstakeRequestDto, WithdrawRequestDto * *

It could be an instance of the 'oneOf' schemas. The oneOf child schemas may themselves be * a composed schema (allOf, anyOf, oneOf). */ @Override public void setActualInstance(Object instance) { - if (JSON.isInstanceOf(DVPSettlement.class, instance, new HashSet>())) { + if (JSON.isInstanceOf(StakeRequestDto.class, instance, new HashSet>())) { super.setActualInstance(instance); return; } - if (JSON.isInstanceOf(PostOrderSettlement.class, instance, new HashSet>())) { + if (JSON.isInstanceOf(UnstakeRequestDto.class, instance, new HashSet>())) { super.setActualInstance(instance); return; } - if (JSON.isInstanceOf(PrefundedSettlement.class, instance, new HashSet>())) { + if (JSON.isInstanceOf(WithdrawRequestDto.class, instance, new HashSet>())) { super.setActualInstance(instance); return; } throw new RuntimeException( - "Invalid instance type. Must be DVPSettlement, PostOrderSettlement," - + " PrefundedSettlement"); + "Invalid instance type. Must be StakeRequestDto, UnstakeRequestDto," + + " WithdrawRequestDto"); } /** - * Get the actual instance, which can be the following: DVPSettlement, PostOrderSettlement, - * PrefundedSettlement + * Get the actual instance, which can be the following: StakeRequestDto, UnstakeRequestDto, + * WithdrawRequestDto * - * @return The actual instance (DVPSettlement, PostOrderSettlement, PrefundedSettlement) + * @return The actual instance (StakeRequestDto, UnstakeRequestDto, WithdrawRequestDto) */ @Override public Object getActualInstance() { @@ -309,36 +302,36 @@ public Object getActualInstance() { } /** - * Get the actual instance of `DVPSettlement`. If the actual instance is not `DVPSettlement`, - * the ClassCastException will be thrown. + * Get the actual instance of `StakeRequestDto`. If the actual instance is not + * `StakeRequestDto`, the ClassCastException will be thrown. * - * @return The actual instance of `DVPSettlement` - * @throws ClassCastException if the instance is not `DVPSettlement` + * @return The actual instance of `StakeRequestDto` + * @throws ClassCastException if the instance is not `StakeRequestDto` */ - public DVPSettlement getDVPSettlement() throws ClassCastException { - return (DVPSettlement) super.getActualInstance(); + public StakeRequestDto getStakeRequestDto() throws ClassCastException { + return (StakeRequestDto) super.getActualInstance(); } /** - * Get the actual instance of `PostOrderSettlement`. If the actual instance is not - * `PostOrderSettlement`, the ClassCastException will be thrown. + * Get the actual instance of `UnstakeRequestDto`. If the actual instance is not + * `UnstakeRequestDto`, the ClassCastException will be thrown. * - * @return The actual instance of `PostOrderSettlement` - * @throws ClassCastException if the instance is not `PostOrderSettlement` + * @return The actual instance of `UnstakeRequestDto` + * @throws ClassCastException if the instance is not `UnstakeRequestDto` */ - public PostOrderSettlement getPostOrderSettlement() throws ClassCastException { - return (PostOrderSettlement) super.getActualInstance(); + public UnstakeRequestDto getUnstakeRequestDto() throws ClassCastException { + return (UnstakeRequestDto) super.getActualInstance(); } /** - * Get the actual instance of `PrefundedSettlement`. If the actual instance is not - * `PrefundedSettlement`, the ClassCastException will be thrown. + * Get the actual instance of `WithdrawRequestDto`. If the actual instance is not + * `WithdrawRequestDto`, the ClassCastException will be thrown. * - * @return The actual instance of `PrefundedSettlement` - * @throws ClassCastException if the instance is not `PrefundedSettlement` + * @return The actual instance of `WithdrawRequestDto` + * @throws ClassCastException if the instance is not `WithdrawRequestDto` */ - public PrefundedSettlement getPrefundedSettlement() throws ClassCastException { - return (PrefundedSettlement) super.getActualInstance(); + public WithdrawRequestDto getWithdrawRequestDto() throws ClassCastException { + return (WithdrawRequestDto) super.getActualInstance(); } /** @@ -373,26 +366,26 @@ public String toUrlQueryString(String prefix) { StringJoiner joiner = new StringJoiner("&"); - if (getActualInstance() instanceof PrefundedSettlement) { + if (getActualInstance() instanceof StakeRequestDto) { if (getActualInstance() != null) { joiner.add( - ((PrefundedSettlement) getActualInstance()) + ((StakeRequestDto) getActualInstance()) .toUrlQueryString(prefix + "one_of_0" + suffix)); } return joiner.toString(); } - if (getActualInstance() instanceof DVPSettlement) { + if (getActualInstance() instanceof UnstakeRequestDto) { if (getActualInstance() != null) { joiner.add( - ((DVPSettlement) getActualInstance()) + ((UnstakeRequestDto) getActualInstance()) .toUrlQueryString(prefix + "one_of_1" + suffix)); } return joiner.toString(); } - if (getActualInstance() instanceof PostOrderSettlement) { + if (getActualInstance() instanceof WithdrawRequestDto) { if (getActualInstance() != null) { joiner.add( - ((PostOrderSettlement) getActualInstance()) + ((WithdrawRequestDto) getActualInstance()) .toUrlQueryString(prefix + "one_of_2" + suffix)); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/InitiatorConfigPattern.java b/src/main/java/com/fireblocks/sdk/model/ExecuteActionResponse.java similarity index 62% rename from src/main/java/com/fireblocks/sdk/model/InitiatorConfigPattern.java rename to src/main/java/com/fireblocks/sdk/model/ExecuteActionResponse.java index d817c87a..bd397db8 100644 --- a/src/main/java/com/fireblocks/sdk/model/InitiatorConfigPattern.java +++ b/src/main/java/com/fireblocks/sdk/model/ExecuteActionResponse.java @@ -40,207 +40,206 @@ @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") -@JsonDeserialize(using = InitiatorConfigPattern.InitiatorConfigPatternDeserializer.class) -@JsonSerialize(using = InitiatorConfigPattern.InitiatorConfigPatternSerializer.class) -public class InitiatorConfigPattern extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(InitiatorConfigPattern.class.getName()); +@JsonDeserialize(using = ExecuteActionResponse.ExecuteActionResponseDeserializer.class) +@JsonSerialize(using = ExecuteActionResponse.ExecuteActionResponseSerializer.class) +public class ExecuteActionResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(ExecuteActionResponse.class.getName()); - public static class InitiatorConfigPatternSerializer - extends StdSerializer { - public InitiatorConfigPatternSerializer(Class t) { + public static class ExecuteActionResponseSerializer + extends StdSerializer { + public ExecuteActionResponseSerializer(Class t) { super(t); } - public InitiatorConfigPatternSerializer() { + public ExecuteActionResponseSerializer() { this(null); } @Override public void serialize( - InitiatorConfigPattern value, JsonGenerator jgen, SerializerProvider provider) + ExecuteActionResponse value, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { jgen.writeObject(value.getActualInstance()); } } - public static class InitiatorConfigPatternDeserializer - extends StdDeserializer { - public InitiatorConfigPatternDeserializer() { - this(InitiatorConfigPattern.class); + public static class ExecuteActionResponseDeserializer + extends StdDeserializer { + public ExecuteActionResponseDeserializer() { + this(ExecuteActionResponse.class); } - public InitiatorConfigPatternDeserializer(Class vc) { + public ExecuteActionResponseDeserializer(Class vc) { super(vc); } @Override - public InitiatorConfigPattern deserialize(JsonParser jp, DeserializationContext ctxt) + public ExecuteActionResponse deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { JsonNode tree = jp.readValueAsTree(); Object deserialized = null; boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); int match = 0; JsonToken token = tree.traverse(jp.getCodec()).nextToken(); - // deserialize InitiatorConfig + // deserialize Object try { boolean attemptParsing = true; // ensure that we respect type coercion as set on the client ObjectMapper - if (InitiatorConfig.class.equals(Integer.class) - || InitiatorConfig.class.equals(Long.class) - || InitiatorConfig.class.equals(Float.class) - || InitiatorConfig.class.equals(Double.class) - || InitiatorConfig.class.equals(Boolean.class) - || InitiatorConfig.class.equals(String.class)) { + if (Object.class.equals(Integer.class) + || Object.class.equals(Long.class) + || Object.class.equals(Float.class) + || Object.class.equals(Double.class) + || Object.class.equals(Boolean.class) + || Object.class.equals(String.class)) { attemptParsing = typeCoercion; if (!attemptParsing) { attemptParsing |= - ((InitiatorConfig.class.equals(Integer.class) - || InitiatorConfig.class.equals(Long.class)) + ((Object.class.equals(Integer.class) + || Object.class.equals(Long.class)) && token == JsonToken.VALUE_NUMBER_INT); attemptParsing |= - ((InitiatorConfig.class.equals(Float.class) - || InitiatorConfig.class.equals(Double.class)) + ((Object.class.equals(Float.class) + || Object.class.equals(Double.class)) && token == JsonToken.VALUE_NUMBER_FLOAT); attemptParsing |= - (InitiatorConfig.class.equals(Boolean.class) + (Object.class.equals(Boolean.class) && (token == JsonToken.VALUE_FALSE || token == JsonToken.VALUE_TRUE)); attemptParsing |= - (InitiatorConfig.class.equals(String.class) + (Object.class.equals(String.class) && token == JsonToken.VALUE_STRING); } } if (attemptParsing) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(InitiatorConfig.class); + deserialized = tree.traverse(jp.getCodec()).readValueAs(Object.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. match++; - log.log(Level.FINER, "Input data matches schema 'InitiatorConfig'"); + log.log(Level.FINER, "Input data matches schema 'Object'"); } } catch (Exception e) { // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'InitiatorConfig'", e); + log.log(Level.FINER, "Input data does not match schema 'Object'", e); } - // deserialize String + // deserialize StakeResponseDto try { boolean attemptParsing = true; // ensure that we respect type coercion as set on the client ObjectMapper - if (String.class.equals(Integer.class) - || String.class.equals(Long.class) - || String.class.equals(Float.class) - || String.class.equals(Double.class) - || String.class.equals(Boolean.class) - || String.class.equals(String.class)) { + if (StakeResponseDto.class.equals(Integer.class) + || StakeResponseDto.class.equals(Long.class) + || StakeResponseDto.class.equals(Float.class) + || StakeResponseDto.class.equals(Double.class) + || StakeResponseDto.class.equals(Boolean.class) + || StakeResponseDto.class.equals(String.class)) { attemptParsing = typeCoercion; if (!attemptParsing) { attemptParsing |= - ((String.class.equals(Integer.class) - || String.class.equals(Long.class)) + ((StakeResponseDto.class.equals(Integer.class) + || StakeResponseDto.class.equals(Long.class)) && token == JsonToken.VALUE_NUMBER_INT); attemptParsing |= - ((String.class.equals(Float.class) - || String.class.equals(Double.class)) + ((StakeResponseDto.class.equals(Float.class) + || StakeResponseDto.class.equals(Double.class)) && token == JsonToken.VALUE_NUMBER_FLOAT); attemptParsing |= - (String.class.equals(Boolean.class) + (StakeResponseDto.class.equals(Boolean.class) && (token == JsonToken.VALUE_FALSE || token == JsonToken.VALUE_TRUE)); attemptParsing |= - (String.class.equals(String.class) + (StakeResponseDto.class.equals(String.class) && token == JsonToken.VALUE_STRING); } } if (attemptParsing) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(String.class); + deserialized = tree.traverse(jp.getCodec()).readValueAs(StakeResponseDto.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. match++; - log.log(Level.FINER, "Input data matches schema 'String'"); + log.log(Level.FINER, "Input data matches schema 'StakeResponseDto'"); } } catch (Exception e) { // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'String'", e); + log.log(Level.FINER, "Input data does not match schema 'StakeResponseDto'", e); } if (match == 1) { - InitiatorConfigPattern ret = new InitiatorConfigPattern(); + ExecuteActionResponse ret = new ExecuteActionResponse(); ret.setActualInstance(deserialized); return ret; } throw new IOException( String.format( - "Failed deserialization for InitiatorConfigPattern: %d classes match" + "Failed deserialization for ExecuteActionResponse: %d classes match" + " result, expected 1", match)); } /** Handle deserialization of the 'null' value. */ @Override - public InitiatorConfigPattern getNullValue(DeserializationContext ctxt) + public ExecuteActionResponse getNullValue(DeserializationContext ctxt) throws JsonMappingException { throw new JsonMappingException( - ctxt.getParser(), "InitiatorConfigPattern cannot be null"); + ctxt.getParser(), "ExecuteActionResponse cannot be null"); } } // store a list of schema names defined in oneOf public static final Map> schemas = new HashMap<>(); - public InitiatorConfigPattern() { + public ExecuteActionResponse() { super("oneOf", Boolean.FALSE); } - public InitiatorConfigPattern(InitiatorConfig o) { + public ExecuteActionResponse(Object o) { super("oneOf", Boolean.FALSE); setActualInstance(o); } - public InitiatorConfigPattern(String o) { + public ExecuteActionResponse(StakeResponseDto o) { super("oneOf", Boolean.FALSE); setActualInstance(o); } static { - schemas.put("InitiatorConfig", InitiatorConfig.class); - schemas.put("String", String.class); - JSON.registerDescendants( - InitiatorConfigPattern.class, Collections.unmodifiableMap(schemas)); + schemas.put("Object", Object.class); + schemas.put("StakeResponseDto", StakeResponseDto.class); + JSON.registerDescendants(ExecuteActionResponse.class, Collections.unmodifiableMap(schemas)); } @Override public Map> getSchemas() { - return InitiatorConfigPattern.schemas; + return ExecuteActionResponse.schemas; } /** * Set the instance that matches the oneOf child schema, check the instance parameter is valid - * against the oneOf child schemas: InitiatorConfig, String + * against the oneOf child schemas: Object, StakeResponseDto * *

It could be an instance of the 'oneOf' schemas. The oneOf child schemas may themselves be * a composed schema (allOf, anyOf, oneOf). */ @Override public void setActualInstance(Object instance) { - if (JSON.isInstanceOf(InitiatorConfig.class, instance, new HashSet>())) { + if (JSON.isInstanceOf(Object.class, instance, new HashSet>())) { super.setActualInstance(instance); return; } - if (JSON.isInstanceOf(String.class, instance, new HashSet>())) { + if (JSON.isInstanceOf(StakeResponseDto.class, instance, new HashSet>())) { super.setActualInstance(instance); return; } - throw new RuntimeException("Invalid instance type. Must be InitiatorConfig, String"); + throw new RuntimeException("Invalid instance type. Must be Object, StakeResponseDto"); } /** - * Get the actual instance, which can be the following: InitiatorConfig, String + * Get the actual instance, which can be the following: Object, StakeResponseDto * - * @return The actual instance (InitiatorConfig, String) + * @return The actual instance (Object, StakeResponseDto) */ @Override public Object getActualInstance() { @@ -248,25 +247,25 @@ public Object getActualInstance() { } /** - * Get the actual instance of `InitiatorConfig`. If the actual instance is not - * `InitiatorConfig`, the ClassCastException will be thrown. + * Get the actual instance of `Object`. If the actual instance is not `Object`, the + * ClassCastException will be thrown. * - * @return The actual instance of `InitiatorConfig` - * @throws ClassCastException if the instance is not `InitiatorConfig` + * @return The actual instance of `Object` + * @throws ClassCastException if the instance is not `Object` */ - public InitiatorConfig getInitiatorConfig() throws ClassCastException { - return (InitiatorConfig) super.getActualInstance(); + public Object getObject() throws ClassCastException { + return (Object) super.getActualInstance(); } /** - * Get the actual instance of `String`. If the actual instance is not `String`, the - * ClassCastException will be thrown. + * Get the actual instance of `StakeResponseDto`. If the actual instance is not + * `StakeResponseDto`, the ClassCastException will be thrown. * - * @return The actual instance of `String` - * @throws ClassCastException if the instance is not `String` + * @return The actual instance of `StakeResponseDto` + * @throws ClassCastException if the instance is not `StakeResponseDto` */ - public String getString() throws ClassCastException { - return (String) super.getActualInstance(); + public StakeResponseDto getStakeResponseDto() throws ClassCastException { + return (StakeResponseDto) super.getActualInstance(); } /** @@ -301,22 +300,22 @@ public String toUrlQueryString(String prefix) { StringJoiner joiner = new StringJoiner("&"); - if (getActualInstance() instanceof String) { + if (getActualInstance() instanceof StakeResponseDto) { if (getActualInstance() != null) { joiner.add( - String.format( - "%sone_of_0%s=%s", - prefix, - suffix, - ApiClient.urlEncode(String.valueOf(getActualInstance())))); + ((StakeResponseDto) getActualInstance()) + .toUrlQueryString(prefix + "one_of_0" + suffix)); } return joiner.toString(); } - if (getActualInstance() instanceof InitiatorConfig) { + if (getActualInstance() instanceof Object) { if (getActualInstance() != null) { joiner.add( - ((InitiatorConfig) getActualInstance()) - .toUrlQueryString(prefix + "one_of_1" + suffix)); + String.format( + "%sone_of_1%s=%s", + prefix, + suffix, + ApiClient.urlEncode(String.valueOf(getActualInstance())))); } return joiner.toString(); } diff --git a/src/main/java/com/fireblocks/sdk/model/ExecutionRequestBaseDetails.java b/src/main/java/com/fireblocks/sdk/model/ExecutionRequestBaseDetails.java deleted file mode 100644 index a975283c..00000000 --- a/src/main/java/com/fireblocks/sdk/model/ExecutionRequestBaseDetails.java +++ /dev/null @@ -1,388 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** ExecutionRequestBaseDetails */ -@JsonPropertyOrder({ - ExecutionRequestBaseDetails.JSON_PROPERTY_SIDE, - ExecutionRequestBaseDetails.JSON_PROPERTY_BASE_AMOUNT, - ExecutionRequestBaseDetails.JSON_PROPERTY_BASE_ASSET_ID, - ExecutionRequestBaseDetails.JSON_PROPERTY_BASE_ASSET_RAIL, - ExecutionRequestBaseDetails.JSON_PROPERTY_QUOTE_ASSET_ID, - ExecutionRequestBaseDetails.JSON_PROPERTY_QUOTE_ASSET_RAIL -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class ExecutionRequestBaseDetails { - /** Side of the order */ - public enum SideEnum { - BUY(String.valueOf("BUY")), - - SELL(String.valueOf("SELL")); - - private String value; - - SideEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static SideEnum fromValue(String value) { - for (SideEnum b : SideEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_SIDE = "side"; - @jakarta.annotation.Nonnull private SideEnum side = SideEnum.BUY; - - public static final String JSON_PROPERTY_BASE_AMOUNT = "baseAmount"; - @jakarta.annotation.Nonnull private String baseAmount; - - public static final String JSON_PROPERTY_BASE_ASSET_ID = "baseAssetId"; - @jakarta.annotation.Nonnull private String baseAssetId; - - public static final String JSON_PROPERTY_BASE_ASSET_RAIL = "baseAssetRail"; - @jakarta.annotation.Nullable private TransferRail baseAssetRail; - - public static final String JSON_PROPERTY_QUOTE_ASSET_ID = "quoteAssetId"; - @jakarta.annotation.Nonnull private String quoteAssetId; - - public static final String JSON_PROPERTY_QUOTE_ASSET_RAIL = "quoteAssetRail"; - @jakarta.annotation.Nullable private TransferRail quoteAssetRail; - - public ExecutionRequestBaseDetails() {} - - @JsonCreator - public ExecutionRequestBaseDetails( - @JsonProperty(value = JSON_PROPERTY_SIDE, required = true) SideEnum side, - @JsonProperty(value = JSON_PROPERTY_BASE_AMOUNT, required = true) String baseAmount, - @JsonProperty(value = JSON_PROPERTY_BASE_ASSET_ID, required = true) String baseAssetId, - @JsonProperty(value = JSON_PROPERTY_QUOTE_ASSET_ID, required = true) - String quoteAssetId) { - this.side = side; - this.baseAmount = baseAmount; - this.baseAssetId = baseAssetId; - this.quoteAssetId = quoteAssetId; - } - - public ExecutionRequestBaseDetails side(@jakarta.annotation.Nonnull SideEnum side) { - this.side = side; - return this; - } - - /** - * Side of the order - * - * @return side - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SIDE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public SideEnum getSide() { - return side; - } - - @JsonProperty(JSON_PROPERTY_SIDE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSide(@jakarta.annotation.Nonnull SideEnum side) { - this.side = side; - } - - public ExecutionRequestBaseDetails baseAmount(@jakarta.annotation.Nonnull String baseAmount) { - this.baseAmount = baseAmount; - return this; - } - - /** - * Amount to convert - * - * @return baseAmount - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BASE_AMOUNT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getBaseAmount() { - return baseAmount; - } - - @JsonProperty(JSON_PROPERTY_BASE_AMOUNT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBaseAmount(@jakarta.annotation.Nonnull String baseAmount) { - this.baseAmount = baseAmount; - } - - public ExecutionRequestBaseDetails baseAssetId(@jakarta.annotation.Nonnull String baseAssetId) { - this.baseAssetId = baseAssetId; - return this; - } - - /** - * Source asset identifier - * - * @return baseAssetId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BASE_ASSET_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getBaseAssetId() { - return baseAssetId; - } - - @JsonProperty(JSON_PROPERTY_BASE_ASSET_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBaseAssetId(@jakarta.annotation.Nonnull String baseAssetId) { - this.baseAssetId = baseAssetId; - } - - public ExecutionRequestBaseDetails baseAssetRail( - @jakarta.annotation.Nullable TransferRail baseAssetRail) { - this.baseAssetRail = baseAssetRail; - return this; - } - - /** - * Get baseAssetRail - * - * @return baseAssetRail - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BASE_ASSET_RAIL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public TransferRail getBaseAssetRail() { - return baseAssetRail; - } - - @JsonProperty(JSON_PROPERTY_BASE_ASSET_RAIL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBaseAssetRail(@jakarta.annotation.Nullable TransferRail baseAssetRail) { - this.baseAssetRail = baseAssetRail; - } - - public ExecutionRequestBaseDetails quoteAssetId( - @jakarta.annotation.Nonnull String quoteAssetId) { - this.quoteAssetId = quoteAssetId; - return this; - } - - /** - * Target asset identifier - * - * @return quoteAssetId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_QUOTE_ASSET_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getQuoteAssetId() { - return quoteAssetId; - } - - @JsonProperty(JSON_PROPERTY_QUOTE_ASSET_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setQuoteAssetId(@jakarta.annotation.Nonnull String quoteAssetId) { - this.quoteAssetId = quoteAssetId; - } - - public ExecutionRequestBaseDetails quoteAssetRail( - @jakarta.annotation.Nullable TransferRail quoteAssetRail) { - this.quoteAssetRail = quoteAssetRail; - return this; - } - - /** - * Get quoteAssetRail - * - * @return quoteAssetRail - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_QUOTE_ASSET_RAIL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public TransferRail getQuoteAssetRail() { - return quoteAssetRail; - } - - @JsonProperty(JSON_PROPERTY_QUOTE_ASSET_RAIL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setQuoteAssetRail(@jakarta.annotation.Nullable TransferRail quoteAssetRail) { - this.quoteAssetRail = quoteAssetRail; - } - - /** Return true if this ExecutionRequestBaseDetails object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ExecutionRequestBaseDetails executionRequestBaseDetails = (ExecutionRequestBaseDetails) o; - return Objects.equals(this.side, executionRequestBaseDetails.side) - && Objects.equals(this.baseAmount, executionRequestBaseDetails.baseAmount) - && Objects.equals(this.baseAssetId, executionRequestBaseDetails.baseAssetId) - && Objects.equals(this.baseAssetRail, executionRequestBaseDetails.baseAssetRail) - && Objects.equals(this.quoteAssetId, executionRequestBaseDetails.quoteAssetId) - && Objects.equals(this.quoteAssetRail, executionRequestBaseDetails.quoteAssetRail); - } - - @Override - public int hashCode() { - return Objects.hash( - side, baseAmount, baseAssetId, baseAssetRail, quoteAssetId, quoteAssetRail); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ExecutionRequestBaseDetails {\n"); - sb.append(" side: ").append(toIndentedString(side)).append("\n"); - sb.append(" baseAmount: ").append(toIndentedString(baseAmount)).append("\n"); - sb.append(" baseAssetId: ").append(toIndentedString(baseAssetId)).append("\n"); - sb.append(" baseAssetRail: ").append(toIndentedString(baseAssetRail)).append("\n"); - sb.append(" quoteAssetId: ").append(toIndentedString(quoteAssetId)).append("\n"); - sb.append(" quoteAssetRail: ").append(toIndentedString(quoteAssetRail)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `side` to the URL query string - if (getSide() != null) { - joiner.add( - String.format( - "%sside%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getSide())))); - } - - // add `baseAmount` to the URL query string - if (getBaseAmount() != null) { - joiner.add( - String.format( - "%sbaseAmount%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBaseAmount())))); - } - - // add `baseAssetId` to the URL query string - if (getBaseAssetId() != null) { - joiner.add( - String.format( - "%sbaseAssetId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBaseAssetId())))); - } - - // add `baseAssetRail` to the URL query string - if (getBaseAssetRail() != null) { - joiner.add( - String.format( - "%sbaseAssetRail%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBaseAssetRail())))); - } - - // add `quoteAssetId` to the URL query string - if (getQuoteAssetId() != null) { - joiner.add( - String.format( - "%squoteAssetId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getQuoteAssetId())))); - } - - // add `quoteAssetRail` to the URL query string - if (getQuoteAssetRail() != null) { - joiner.add( - String.format( - "%squoteAssetRail%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getQuoteAssetRail())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/ExecutionRequestDetails.java b/src/main/java/com/fireblocks/sdk/model/ExecutionRequestDetails.java deleted file mode 100644 index 57077c5a..00000000 --- a/src/main/java/com/fireblocks/sdk/model/ExecutionRequestDetails.java +++ /dev/null @@ -1,447 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.core.JsonGenerator; -import com.fasterxml.jackson.core.JsonParser; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.core.JsonToken; -import com.fasterxml.jackson.databind.DeserializationContext; -import com.fasterxml.jackson.databind.JsonMappingException; -import com.fasterxml.jackson.databind.JsonNode; -import com.fasterxml.jackson.databind.MapperFeature; -import com.fasterxml.jackson.databind.SerializerProvider; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import com.fasterxml.jackson.databind.deser.std.StdDeserializer; -import com.fasterxml.jackson.databind.ser.std.StdSerializer; -import com.fireblocks.sdk.JSON; -import java.io.IOException; -import java.util.Collections; -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; -import java.util.StringJoiner; -import java.util.logging.Level; -import java.util.logging.Logger; - -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -@JsonDeserialize(using = ExecutionRequestDetails.ExecutionRequestDetailsDeserializer.class) -@JsonSerialize(using = ExecutionRequestDetails.ExecutionRequestDetailsSerializer.class) -public class ExecutionRequestDetails extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(ExecutionRequestDetails.class.getName()); - - public static class ExecutionRequestDetailsSerializer - extends StdSerializer { - public ExecutionRequestDetailsSerializer(Class t) { - super(t); - } - - public ExecutionRequestDetailsSerializer() { - this(null); - } - - @Override - public void serialize( - ExecutionRequestDetails value, JsonGenerator jgen, SerializerProvider provider) - throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); - } - } - - public static class ExecutionRequestDetailsDeserializer - extends StdDeserializer { - public ExecutionRequestDetailsDeserializer() { - this(ExecutionRequestDetails.class); - } - - public ExecutionRequestDetailsDeserializer(Class vc) { - super(vc); - } - - @Override - public ExecutionRequestDetails deserialize(JsonParser jp, DeserializationContext ctxt) - throws IOException, JsonProcessingException { - JsonNode tree = jp.readValueAsTree(); - Object deserialized = null; - boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); - int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); - // deserialize LimitExecutionRequestDetails - try { - boolean attemptParsing = true; - // ensure that we respect type coercion as set on the client ObjectMapper - if (LimitExecutionRequestDetails.class.equals(Integer.class) - || LimitExecutionRequestDetails.class.equals(Long.class) - || LimitExecutionRequestDetails.class.equals(Float.class) - || LimitExecutionRequestDetails.class.equals(Double.class) - || LimitExecutionRequestDetails.class.equals(Boolean.class) - || LimitExecutionRequestDetails.class.equals(String.class)) { - attemptParsing = typeCoercion; - if (!attemptParsing) { - attemptParsing |= - ((LimitExecutionRequestDetails.class.equals(Integer.class) - || LimitExecutionRequestDetails.class.equals( - Long.class)) - && token == JsonToken.VALUE_NUMBER_INT); - attemptParsing |= - ((LimitExecutionRequestDetails.class.equals(Float.class) - || LimitExecutionRequestDetails.class.equals( - Double.class)) - && token == JsonToken.VALUE_NUMBER_FLOAT); - attemptParsing |= - (LimitExecutionRequestDetails.class.equals(Boolean.class) - && (token == JsonToken.VALUE_FALSE - || token == JsonToken.VALUE_TRUE)); - attemptParsing |= - (LimitExecutionRequestDetails.class.equals(String.class) - && token == JsonToken.VALUE_STRING); - } - } - if (attemptParsing) { - deserialized = - tree.traverse(jp.getCodec()) - .readValueAs(LimitExecutionRequestDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log( - Level.FINER, - "Input data matches schema 'LimitExecutionRequestDetails'"); - } - } catch (Exception e) { - // deserialization failed, continue - log.log( - Level.FINER, - "Input data does not match schema 'LimitExecutionRequestDetails'", - e); - } - - // deserialize MarketExecutionRequestDetails - try { - boolean attemptParsing = true; - // ensure that we respect type coercion as set on the client ObjectMapper - if (MarketExecutionRequestDetails.class.equals(Integer.class) - || MarketExecutionRequestDetails.class.equals(Long.class) - || MarketExecutionRequestDetails.class.equals(Float.class) - || MarketExecutionRequestDetails.class.equals(Double.class) - || MarketExecutionRequestDetails.class.equals(Boolean.class) - || MarketExecutionRequestDetails.class.equals(String.class)) { - attemptParsing = typeCoercion; - if (!attemptParsing) { - attemptParsing |= - ((MarketExecutionRequestDetails.class.equals(Integer.class) - || MarketExecutionRequestDetails.class.equals( - Long.class)) - && token == JsonToken.VALUE_NUMBER_INT); - attemptParsing |= - ((MarketExecutionRequestDetails.class.equals(Float.class) - || MarketExecutionRequestDetails.class.equals( - Double.class)) - && token == JsonToken.VALUE_NUMBER_FLOAT); - attemptParsing |= - (MarketExecutionRequestDetails.class.equals(Boolean.class) - && (token == JsonToken.VALUE_FALSE - || token == JsonToken.VALUE_TRUE)); - attemptParsing |= - (MarketExecutionRequestDetails.class.equals(String.class) - && token == JsonToken.VALUE_STRING); - } - } - if (attemptParsing) { - deserialized = - tree.traverse(jp.getCodec()) - .readValueAs(MarketExecutionRequestDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log( - Level.FINER, - "Input data matches schema 'MarketExecutionRequestDetails'"); - } - } catch (Exception e) { - // deserialization failed, continue - log.log( - Level.FINER, - "Input data does not match schema 'MarketExecutionRequestDetails'", - e); - } - - // deserialize QuoteExecutionWithRequoteRequestDetails - try { - boolean attemptParsing = true; - // ensure that we respect type coercion as set on the client ObjectMapper - if (QuoteExecutionWithRequoteRequestDetails.class.equals(Integer.class) - || QuoteExecutionWithRequoteRequestDetails.class.equals(Long.class) - || QuoteExecutionWithRequoteRequestDetails.class.equals(Float.class) - || QuoteExecutionWithRequoteRequestDetails.class.equals(Double.class) - || QuoteExecutionWithRequoteRequestDetails.class.equals(Boolean.class) - || QuoteExecutionWithRequoteRequestDetails.class.equals(String.class)) { - attemptParsing = typeCoercion; - if (!attemptParsing) { - attemptParsing |= - ((QuoteExecutionWithRequoteRequestDetails.class.equals( - Integer.class) - || QuoteExecutionWithRequoteRequestDetails.class - .equals(Long.class)) - && token == JsonToken.VALUE_NUMBER_INT); - attemptParsing |= - ((QuoteExecutionWithRequoteRequestDetails.class.equals(Float.class) - || QuoteExecutionWithRequoteRequestDetails.class - .equals(Double.class)) - && token == JsonToken.VALUE_NUMBER_FLOAT); - attemptParsing |= - (QuoteExecutionWithRequoteRequestDetails.class.equals(Boolean.class) - && (token == JsonToken.VALUE_FALSE - || token == JsonToken.VALUE_TRUE)); - attemptParsing |= - (QuoteExecutionWithRequoteRequestDetails.class.equals(String.class) - && token == JsonToken.VALUE_STRING); - } - } - if (attemptParsing) { - deserialized = - tree.traverse(jp.getCodec()) - .readValueAs(QuoteExecutionWithRequoteRequestDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log( - Level.FINER, - "Input data matches schema 'QuoteExecutionWithRequoteRequestDetails'"); - } - } catch (Exception e) { - // deserialization failed, continue - log.log( - Level.FINER, - "Input data does not match schema" - + " 'QuoteExecutionWithRequoteRequestDetails'", - e); - } - - if (match == 1) { - ExecutionRequestDetails ret = new ExecutionRequestDetails(); - ret.setActualInstance(deserialized); - return ret; - } - throw new IOException( - String.format( - "Failed deserialization for ExecutionRequestDetails: %d classes match" - + " result, expected 1", - match)); - } - - /** Handle deserialization of the 'null' value. */ - @Override - public ExecutionRequestDetails getNullValue(DeserializationContext ctxt) - throws JsonMappingException { - throw new JsonMappingException( - ctxt.getParser(), "ExecutionRequestDetails cannot be null"); - } - } - - // store a list of schema names defined in oneOf - public static final Map> schemas = new HashMap<>(); - - public ExecutionRequestDetails() { - super("oneOf", Boolean.FALSE); - } - - public ExecutionRequestDetails(LimitExecutionRequestDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public ExecutionRequestDetails(MarketExecutionRequestDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public ExecutionRequestDetails(QuoteExecutionWithRequoteRequestDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("LimitExecutionRequestDetails", LimitExecutionRequestDetails.class); - schemas.put("MarketExecutionRequestDetails", MarketExecutionRequestDetails.class); - schemas.put( - "QuoteExecutionWithRequoteRequestDetails", - QuoteExecutionWithRequoteRequestDetails.class); - JSON.registerDescendants( - ExecutionRequestDetails.class, Collections.unmodifiableMap(schemas)); - // Initialize and register the discriminator mappings. - Map> mappings = new HashMap>(); - mappings.put("LIMIT", LimitExecutionRequestDetails.class); - mappings.put("MARKET", MarketExecutionRequestDetails.class); - mappings.put("QUOTE", QuoteExecutionWithRequoteRequestDetails.class); - mappings.put("LimitExecutionRequestDetails", LimitExecutionRequestDetails.class); - mappings.put("MarketExecutionRequestDetails", MarketExecutionRequestDetails.class); - mappings.put( - "QuoteExecutionWithRequoteRequestDetails", - QuoteExecutionWithRequoteRequestDetails.class); - mappings.put("ExecutionRequestDetails", ExecutionRequestDetails.class); - JSON.registerDiscriminator(ExecutionRequestDetails.class, "type", mappings); - } - - @Override - public Map> getSchemas() { - return ExecutionRequestDetails.schemas; - } - - /** - * Set the instance that matches the oneOf child schema, check the instance parameter is valid - * against the oneOf child schemas: LimitExecutionRequestDetails, MarketExecutionRequestDetails, - * QuoteExecutionWithRequoteRequestDetails - * - *

It could be an instance of the 'oneOf' schemas. The oneOf child schemas may themselves be - * a composed schema (allOf, anyOf, oneOf). - */ - @Override - public void setActualInstance(Object instance) { - if (JSON.isInstanceOf( - LimitExecutionRequestDetails.class, instance, new HashSet>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf( - MarketExecutionRequestDetails.class, instance, new HashSet>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf( - QuoteExecutionWithRequoteRequestDetails.class, instance, new HashSet>())) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException( - "Invalid instance type. Must be LimitExecutionRequestDetails," - + " MarketExecutionRequestDetails, QuoteExecutionWithRequoteRequestDetails"); - } - - /** - * Get the actual instance, which can be the following: LimitExecutionRequestDetails, - * MarketExecutionRequestDetails, QuoteExecutionWithRequoteRequestDetails - * - * @return The actual instance (LimitExecutionRequestDetails, MarketExecutionRequestDetails, - * QuoteExecutionWithRequoteRequestDetails) - */ - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `LimitExecutionRequestDetails`. If the actual instance is not - * `LimitExecutionRequestDetails`, the ClassCastException will be thrown. - * - * @return The actual instance of `LimitExecutionRequestDetails` - * @throws ClassCastException if the instance is not `LimitExecutionRequestDetails` - */ - public LimitExecutionRequestDetails getLimitExecutionRequestDetails() - throws ClassCastException { - return (LimitExecutionRequestDetails) super.getActualInstance(); - } - - /** - * Get the actual instance of `MarketExecutionRequestDetails`. If the actual instance is not - * `MarketExecutionRequestDetails`, the ClassCastException will be thrown. - * - * @return The actual instance of `MarketExecutionRequestDetails` - * @throws ClassCastException if the instance is not `MarketExecutionRequestDetails` - */ - public MarketExecutionRequestDetails getMarketExecutionRequestDetails() - throws ClassCastException { - return (MarketExecutionRequestDetails) super.getActualInstance(); - } - - /** - * Get the actual instance of `QuoteExecutionWithRequoteRequestDetails`. If the actual instance - * is not `QuoteExecutionWithRequoteRequestDetails`, the ClassCastException will be thrown. - * - * @return The actual instance of `QuoteExecutionWithRequoteRequestDetails` - * @throws ClassCastException if the instance is not `QuoteExecutionWithRequoteRequestDetails` - */ - public QuoteExecutionWithRequoteRequestDetails getQuoteExecutionWithRequoteRequestDetails() - throws ClassCastException { - return (QuoteExecutionWithRequoteRequestDetails) super.getActualInstance(); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - if (getActualInstance() instanceof LimitExecutionRequestDetails) { - if (getActualInstance() != null) { - joiner.add( - ((LimitExecutionRequestDetails) getActualInstance()) - .toUrlQueryString(prefix + "one_of_0" + suffix)); - } - return joiner.toString(); - } - if (getActualInstance() instanceof MarketExecutionRequestDetails) { - if (getActualInstance() != null) { - joiner.add( - ((MarketExecutionRequestDetails) getActualInstance()) - .toUrlQueryString(prefix + "one_of_1" + suffix)); - } - return joiner.toString(); - } - if (getActualInstance() instanceof QuoteExecutionWithRequoteRequestDetails) { - if (getActualInstance() != null) { - joiner.add( - ((QuoteExecutionWithRequoteRequestDetails) getActualInstance()) - .toUrlQueryString(prefix + "one_of_2" + suffix)); - } - return joiner.toString(); - } - return null; - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/ExecutionResponseBaseDetails.java b/src/main/java/com/fireblocks/sdk/model/ExecutionResponseBaseDetails.java deleted file mode 100644 index 31e4216a..00000000 --- a/src/main/java/com/fireblocks/sdk/model/ExecutionResponseBaseDetails.java +++ /dev/null @@ -1,390 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** ExecutionResponseBaseDetails */ -@JsonPropertyOrder({ - ExecutionResponseBaseDetails.JSON_PROPERTY_SIDE, - ExecutionResponseBaseDetails.JSON_PROPERTY_BASE_AMOUNT, - ExecutionResponseBaseDetails.JSON_PROPERTY_BASE_ASSET_ID, - ExecutionResponseBaseDetails.JSON_PROPERTY_BASE_ASSET_RAIL, - ExecutionResponseBaseDetails.JSON_PROPERTY_QUOTE_ASSET_ID, - ExecutionResponseBaseDetails.JSON_PROPERTY_QUOTE_ASSET_RAIL -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class ExecutionResponseBaseDetails { - /** Side of the order */ - public enum SideEnum { - BUY(String.valueOf("BUY")), - - SELL(String.valueOf("SELL")); - - private String value; - - SideEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static SideEnum fromValue(String value) { - for (SideEnum b : SideEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_SIDE = "side"; - @jakarta.annotation.Nonnull private SideEnum side = SideEnum.BUY; - - public static final String JSON_PROPERTY_BASE_AMOUNT = "baseAmount"; - @jakarta.annotation.Nonnull private String baseAmount; - - public static final String JSON_PROPERTY_BASE_ASSET_ID = "baseAssetId"; - @jakarta.annotation.Nonnull private String baseAssetId; - - public static final String JSON_PROPERTY_BASE_ASSET_RAIL = "baseAssetRail"; - @jakarta.annotation.Nullable private TransferRail baseAssetRail; - - public static final String JSON_PROPERTY_QUOTE_ASSET_ID = "quoteAssetId"; - @jakarta.annotation.Nonnull private String quoteAssetId; - - public static final String JSON_PROPERTY_QUOTE_ASSET_RAIL = "quoteAssetRail"; - @jakarta.annotation.Nullable private TransferRail quoteAssetRail; - - public ExecutionResponseBaseDetails() {} - - @JsonCreator - public ExecutionResponseBaseDetails( - @JsonProperty(value = JSON_PROPERTY_SIDE, required = true) SideEnum side, - @JsonProperty(value = JSON_PROPERTY_BASE_AMOUNT, required = true) String baseAmount, - @JsonProperty(value = JSON_PROPERTY_BASE_ASSET_ID, required = true) String baseAssetId, - @JsonProperty(value = JSON_PROPERTY_QUOTE_ASSET_ID, required = true) - String quoteAssetId) { - this.side = side; - this.baseAmount = baseAmount; - this.baseAssetId = baseAssetId; - this.quoteAssetId = quoteAssetId; - } - - public ExecutionResponseBaseDetails side(@jakarta.annotation.Nonnull SideEnum side) { - this.side = side; - return this; - } - - /** - * Side of the order - * - * @return side - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SIDE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public SideEnum getSide() { - return side; - } - - @JsonProperty(JSON_PROPERTY_SIDE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSide(@jakarta.annotation.Nonnull SideEnum side) { - this.side = side; - } - - public ExecutionResponseBaseDetails baseAmount(@jakarta.annotation.Nonnull String baseAmount) { - this.baseAmount = baseAmount; - return this; - } - - /** - * Amount to convert - * - * @return baseAmount - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BASE_AMOUNT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getBaseAmount() { - return baseAmount; - } - - @JsonProperty(JSON_PROPERTY_BASE_AMOUNT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBaseAmount(@jakarta.annotation.Nonnull String baseAmount) { - this.baseAmount = baseAmount; - } - - public ExecutionResponseBaseDetails baseAssetId( - @jakarta.annotation.Nonnull String baseAssetId) { - this.baseAssetId = baseAssetId; - return this; - } - - /** - * Source asset identifier - * - * @return baseAssetId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BASE_ASSET_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getBaseAssetId() { - return baseAssetId; - } - - @JsonProperty(JSON_PROPERTY_BASE_ASSET_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBaseAssetId(@jakarta.annotation.Nonnull String baseAssetId) { - this.baseAssetId = baseAssetId; - } - - public ExecutionResponseBaseDetails baseAssetRail( - @jakarta.annotation.Nullable TransferRail baseAssetRail) { - this.baseAssetRail = baseAssetRail; - return this; - } - - /** - * Get baseAssetRail - * - * @return baseAssetRail - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BASE_ASSET_RAIL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public TransferRail getBaseAssetRail() { - return baseAssetRail; - } - - @JsonProperty(JSON_PROPERTY_BASE_ASSET_RAIL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBaseAssetRail(@jakarta.annotation.Nullable TransferRail baseAssetRail) { - this.baseAssetRail = baseAssetRail; - } - - public ExecutionResponseBaseDetails quoteAssetId( - @jakarta.annotation.Nonnull String quoteAssetId) { - this.quoteAssetId = quoteAssetId; - return this; - } - - /** - * Target asset identifier - * - * @return quoteAssetId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_QUOTE_ASSET_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getQuoteAssetId() { - return quoteAssetId; - } - - @JsonProperty(JSON_PROPERTY_QUOTE_ASSET_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setQuoteAssetId(@jakarta.annotation.Nonnull String quoteAssetId) { - this.quoteAssetId = quoteAssetId; - } - - public ExecutionResponseBaseDetails quoteAssetRail( - @jakarta.annotation.Nullable TransferRail quoteAssetRail) { - this.quoteAssetRail = quoteAssetRail; - return this; - } - - /** - * Get quoteAssetRail - * - * @return quoteAssetRail - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_QUOTE_ASSET_RAIL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public TransferRail getQuoteAssetRail() { - return quoteAssetRail; - } - - @JsonProperty(JSON_PROPERTY_QUOTE_ASSET_RAIL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setQuoteAssetRail(@jakarta.annotation.Nullable TransferRail quoteAssetRail) { - this.quoteAssetRail = quoteAssetRail; - } - - /** Return true if this ExecutionResponseBaseDetails object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ExecutionResponseBaseDetails executionResponseBaseDetails = - (ExecutionResponseBaseDetails) o; - return Objects.equals(this.side, executionResponseBaseDetails.side) - && Objects.equals(this.baseAmount, executionResponseBaseDetails.baseAmount) - && Objects.equals(this.baseAssetId, executionResponseBaseDetails.baseAssetId) - && Objects.equals(this.baseAssetRail, executionResponseBaseDetails.baseAssetRail) - && Objects.equals(this.quoteAssetId, executionResponseBaseDetails.quoteAssetId) - && Objects.equals(this.quoteAssetRail, executionResponseBaseDetails.quoteAssetRail); - } - - @Override - public int hashCode() { - return Objects.hash( - side, baseAmount, baseAssetId, baseAssetRail, quoteAssetId, quoteAssetRail); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ExecutionResponseBaseDetails {\n"); - sb.append(" side: ").append(toIndentedString(side)).append("\n"); - sb.append(" baseAmount: ").append(toIndentedString(baseAmount)).append("\n"); - sb.append(" baseAssetId: ").append(toIndentedString(baseAssetId)).append("\n"); - sb.append(" baseAssetRail: ").append(toIndentedString(baseAssetRail)).append("\n"); - sb.append(" quoteAssetId: ").append(toIndentedString(quoteAssetId)).append("\n"); - sb.append(" quoteAssetRail: ").append(toIndentedString(quoteAssetRail)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `side` to the URL query string - if (getSide() != null) { - joiner.add( - String.format( - "%sside%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getSide())))); - } - - // add `baseAmount` to the URL query string - if (getBaseAmount() != null) { - joiner.add( - String.format( - "%sbaseAmount%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBaseAmount())))); - } - - // add `baseAssetId` to the URL query string - if (getBaseAssetId() != null) { - joiner.add( - String.format( - "%sbaseAssetId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBaseAssetId())))); - } - - // add `baseAssetRail` to the URL query string - if (getBaseAssetRail() != null) { - joiner.add( - String.format( - "%sbaseAssetRail%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBaseAssetRail())))); - } - - // add `quoteAssetId` to the URL query string - if (getQuoteAssetId() != null) { - joiner.add( - String.format( - "%squoteAssetId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getQuoteAssetId())))); - } - - // add `quoteAssetRail` to the URL query string - if (getQuoteAssetRail() != null) { - joiner.add( - String.format( - "%squoteAssetRail%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getQuoteAssetRail())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/ExecutionResponseDetails.java b/src/main/java/com/fireblocks/sdk/model/ExecutionResponseDetails.java deleted file mode 100644 index b7b3675a..00000000 --- a/src/main/java/com/fireblocks/sdk/model/ExecutionResponseDetails.java +++ /dev/null @@ -1,450 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.core.JsonGenerator; -import com.fasterxml.jackson.core.JsonParser; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.core.JsonToken; -import com.fasterxml.jackson.databind.DeserializationContext; -import com.fasterxml.jackson.databind.JsonMappingException; -import com.fasterxml.jackson.databind.JsonNode; -import com.fasterxml.jackson.databind.MapperFeature; -import com.fasterxml.jackson.databind.SerializerProvider; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import com.fasterxml.jackson.databind.deser.std.StdDeserializer; -import com.fasterxml.jackson.databind.ser.std.StdSerializer; -import com.fireblocks.sdk.JSON; -import java.io.IOException; -import java.util.Collections; -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; -import java.util.StringJoiner; -import java.util.logging.Level; -import java.util.logging.Logger; - -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -@JsonDeserialize(using = ExecutionResponseDetails.ExecutionResponseDetailsDeserializer.class) -@JsonSerialize(using = ExecutionResponseDetails.ExecutionResponseDetailsSerializer.class) -public class ExecutionResponseDetails extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(ExecutionResponseDetails.class.getName()); - - public static class ExecutionResponseDetailsSerializer - extends StdSerializer { - public ExecutionResponseDetailsSerializer(Class t) { - super(t); - } - - public ExecutionResponseDetailsSerializer() { - this(null); - } - - @Override - public void serialize( - ExecutionResponseDetails value, JsonGenerator jgen, SerializerProvider provider) - throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); - } - } - - public static class ExecutionResponseDetailsDeserializer - extends StdDeserializer { - public ExecutionResponseDetailsDeserializer() { - this(ExecutionResponseDetails.class); - } - - public ExecutionResponseDetailsDeserializer(Class vc) { - super(vc); - } - - @Override - public ExecutionResponseDetails deserialize(JsonParser jp, DeserializationContext ctxt) - throws IOException, JsonProcessingException { - JsonNode tree = jp.readValueAsTree(); - Object deserialized = null; - boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); - int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); - // deserialize LimitExecutionResponseDetails - try { - boolean attemptParsing = true; - // ensure that we respect type coercion as set on the client ObjectMapper - if (LimitExecutionResponseDetails.class.equals(Integer.class) - || LimitExecutionResponseDetails.class.equals(Long.class) - || LimitExecutionResponseDetails.class.equals(Float.class) - || LimitExecutionResponseDetails.class.equals(Double.class) - || LimitExecutionResponseDetails.class.equals(Boolean.class) - || LimitExecutionResponseDetails.class.equals(String.class)) { - attemptParsing = typeCoercion; - if (!attemptParsing) { - attemptParsing |= - ((LimitExecutionResponseDetails.class.equals(Integer.class) - || LimitExecutionResponseDetails.class.equals( - Long.class)) - && token == JsonToken.VALUE_NUMBER_INT); - attemptParsing |= - ((LimitExecutionResponseDetails.class.equals(Float.class) - || LimitExecutionResponseDetails.class.equals( - Double.class)) - && token == JsonToken.VALUE_NUMBER_FLOAT); - attemptParsing |= - (LimitExecutionResponseDetails.class.equals(Boolean.class) - && (token == JsonToken.VALUE_FALSE - || token == JsonToken.VALUE_TRUE)); - attemptParsing |= - (LimitExecutionResponseDetails.class.equals(String.class) - && token == JsonToken.VALUE_STRING); - } - } - if (attemptParsing) { - deserialized = - tree.traverse(jp.getCodec()) - .readValueAs(LimitExecutionResponseDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log( - Level.FINER, - "Input data matches schema 'LimitExecutionResponseDetails'"); - } - } catch (Exception e) { - // deserialization failed, continue - log.log( - Level.FINER, - "Input data does not match schema 'LimitExecutionResponseDetails'", - e); - } - - // deserialize MarketExecutionResponseDetails - try { - boolean attemptParsing = true; - // ensure that we respect type coercion as set on the client ObjectMapper - if (MarketExecutionResponseDetails.class.equals(Integer.class) - || MarketExecutionResponseDetails.class.equals(Long.class) - || MarketExecutionResponseDetails.class.equals(Float.class) - || MarketExecutionResponseDetails.class.equals(Double.class) - || MarketExecutionResponseDetails.class.equals(Boolean.class) - || MarketExecutionResponseDetails.class.equals(String.class)) { - attemptParsing = typeCoercion; - if (!attemptParsing) { - attemptParsing |= - ((MarketExecutionResponseDetails.class.equals(Integer.class) - || MarketExecutionResponseDetails.class.equals( - Long.class)) - && token == JsonToken.VALUE_NUMBER_INT); - attemptParsing |= - ((MarketExecutionResponseDetails.class.equals(Float.class) - || MarketExecutionResponseDetails.class.equals( - Double.class)) - && token == JsonToken.VALUE_NUMBER_FLOAT); - attemptParsing |= - (MarketExecutionResponseDetails.class.equals(Boolean.class) - && (token == JsonToken.VALUE_FALSE - || token == JsonToken.VALUE_TRUE)); - attemptParsing |= - (MarketExecutionResponseDetails.class.equals(String.class) - && token == JsonToken.VALUE_STRING); - } - } - if (attemptParsing) { - deserialized = - tree.traverse(jp.getCodec()) - .readValueAs(MarketExecutionResponseDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log( - Level.FINER, - "Input data matches schema 'MarketExecutionResponseDetails'"); - } - } catch (Exception e) { - // deserialization failed, continue - log.log( - Level.FINER, - "Input data does not match schema 'MarketExecutionResponseDetails'", - e); - } - - // deserialize QuoteExecutionWithRequoteResponseDetails - try { - boolean attemptParsing = true; - // ensure that we respect type coercion as set on the client ObjectMapper - if (QuoteExecutionWithRequoteResponseDetails.class.equals(Integer.class) - || QuoteExecutionWithRequoteResponseDetails.class.equals(Long.class) - || QuoteExecutionWithRequoteResponseDetails.class.equals(Float.class) - || QuoteExecutionWithRequoteResponseDetails.class.equals(Double.class) - || QuoteExecutionWithRequoteResponseDetails.class.equals(Boolean.class) - || QuoteExecutionWithRequoteResponseDetails.class.equals(String.class)) { - attemptParsing = typeCoercion; - if (!attemptParsing) { - attemptParsing |= - ((QuoteExecutionWithRequoteResponseDetails.class.equals( - Integer.class) - || QuoteExecutionWithRequoteResponseDetails.class - .equals(Long.class)) - && token == JsonToken.VALUE_NUMBER_INT); - attemptParsing |= - ((QuoteExecutionWithRequoteResponseDetails.class.equals(Float.class) - || QuoteExecutionWithRequoteResponseDetails.class - .equals(Double.class)) - && token == JsonToken.VALUE_NUMBER_FLOAT); - attemptParsing |= - (QuoteExecutionWithRequoteResponseDetails.class.equals( - Boolean.class) - && (token == JsonToken.VALUE_FALSE - || token == JsonToken.VALUE_TRUE)); - attemptParsing |= - (QuoteExecutionWithRequoteResponseDetails.class.equals(String.class) - && token == JsonToken.VALUE_STRING); - } - } - if (attemptParsing) { - deserialized = - tree.traverse(jp.getCodec()) - .readValueAs(QuoteExecutionWithRequoteResponseDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log( - Level.FINER, - "Input data matches schema 'QuoteExecutionWithRequoteResponseDetails'"); - } - } catch (Exception e) { - // deserialization failed, continue - log.log( - Level.FINER, - "Input data does not match schema" - + " 'QuoteExecutionWithRequoteResponseDetails'", - e); - } - - if (match == 1) { - ExecutionResponseDetails ret = new ExecutionResponseDetails(); - ret.setActualInstance(deserialized); - return ret; - } - throw new IOException( - String.format( - "Failed deserialization for ExecutionResponseDetails: %d classes match" - + " result, expected 1", - match)); - } - - /** Handle deserialization of the 'null' value. */ - @Override - public ExecutionResponseDetails getNullValue(DeserializationContext ctxt) - throws JsonMappingException { - throw new JsonMappingException( - ctxt.getParser(), "ExecutionResponseDetails cannot be null"); - } - } - - // store a list of schema names defined in oneOf - public static final Map> schemas = new HashMap<>(); - - public ExecutionResponseDetails() { - super("oneOf", Boolean.FALSE); - } - - public ExecutionResponseDetails(LimitExecutionResponseDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public ExecutionResponseDetails(MarketExecutionResponseDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public ExecutionResponseDetails(QuoteExecutionWithRequoteResponseDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("LimitExecutionResponseDetails", LimitExecutionResponseDetails.class); - schemas.put("MarketExecutionResponseDetails", MarketExecutionResponseDetails.class); - schemas.put( - "QuoteExecutionWithRequoteResponseDetails", - QuoteExecutionWithRequoteResponseDetails.class); - JSON.registerDescendants( - ExecutionResponseDetails.class, Collections.unmodifiableMap(schemas)); - // Initialize and register the discriminator mappings. - Map> mappings = new HashMap>(); - mappings.put("LIMIT", LimitExecutionResponseDetails.class); - mappings.put("MARKET", MarketExecutionResponseDetails.class); - mappings.put("QUOTE", QuoteExecutionWithRequoteResponseDetails.class); - mappings.put("LimitExecutionResponseDetails", LimitExecutionResponseDetails.class); - mappings.put("MarketExecutionResponseDetails", MarketExecutionResponseDetails.class); - mappings.put( - "QuoteExecutionWithRequoteResponseDetails", - QuoteExecutionWithRequoteResponseDetails.class); - mappings.put("ExecutionResponseDetails", ExecutionResponseDetails.class); - JSON.registerDiscriminator(ExecutionResponseDetails.class, "type", mappings); - } - - @Override - public Map> getSchemas() { - return ExecutionResponseDetails.schemas; - } - - /** - * Set the instance that matches the oneOf child schema, check the instance parameter is valid - * against the oneOf child schemas: LimitExecutionResponseDetails, - * MarketExecutionResponseDetails, QuoteExecutionWithRequoteResponseDetails - * - *

It could be an instance of the 'oneOf' schemas. The oneOf child schemas may themselves be - * a composed schema (allOf, anyOf, oneOf). - */ - @Override - public void setActualInstance(Object instance) { - if (JSON.isInstanceOf( - LimitExecutionResponseDetails.class, instance, new HashSet>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf( - MarketExecutionResponseDetails.class, instance, new HashSet>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf( - QuoteExecutionWithRequoteResponseDetails.class, - instance, - new HashSet>())) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException( - "Invalid instance type. Must be LimitExecutionResponseDetails," - + " MarketExecutionResponseDetails, QuoteExecutionWithRequoteResponseDetails"); - } - - /** - * Get the actual instance, which can be the following: LimitExecutionResponseDetails, - * MarketExecutionResponseDetails, QuoteExecutionWithRequoteResponseDetails - * - * @return The actual instance (LimitExecutionResponseDetails, MarketExecutionResponseDetails, - * QuoteExecutionWithRequoteResponseDetails) - */ - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `LimitExecutionResponseDetails`. If the actual instance is not - * `LimitExecutionResponseDetails`, the ClassCastException will be thrown. - * - * @return The actual instance of `LimitExecutionResponseDetails` - * @throws ClassCastException if the instance is not `LimitExecutionResponseDetails` - */ - public LimitExecutionResponseDetails getLimitExecutionResponseDetails() - throws ClassCastException { - return (LimitExecutionResponseDetails) super.getActualInstance(); - } - - /** - * Get the actual instance of `MarketExecutionResponseDetails`. If the actual instance is not - * `MarketExecutionResponseDetails`, the ClassCastException will be thrown. - * - * @return The actual instance of `MarketExecutionResponseDetails` - * @throws ClassCastException if the instance is not `MarketExecutionResponseDetails` - */ - public MarketExecutionResponseDetails getMarketExecutionResponseDetails() - throws ClassCastException { - return (MarketExecutionResponseDetails) super.getActualInstance(); - } - - /** - * Get the actual instance of `QuoteExecutionWithRequoteResponseDetails`. If the actual instance - * is not `QuoteExecutionWithRequoteResponseDetails`, the ClassCastException will be thrown. - * - * @return The actual instance of `QuoteExecutionWithRequoteResponseDetails` - * @throws ClassCastException if the instance is not `QuoteExecutionWithRequoteResponseDetails` - */ - public QuoteExecutionWithRequoteResponseDetails getQuoteExecutionWithRequoteResponseDetails() - throws ClassCastException { - return (QuoteExecutionWithRequoteResponseDetails) super.getActualInstance(); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - if (getActualInstance() instanceof LimitExecutionResponseDetails) { - if (getActualInstance() != null) { - joiner.add( - ((LimitExecutionResponseDetails) getActualInstance()) - .toUrlQueryString(prefix + "one_of_0" + suffix)); - } - return joiner.toString(); - } - if (getActualInstance() instanceof MarketExecutionResponseDetails) { - if (getActualInstance() != null) { - joiner.add( - ((MarketExecutionResponseDetails) getActualInstance()) - .toUrlQueryString(prefix + "one_of_1" + suffix)); - } - return joiner.toString(); - } - if (getActualInstance() instanceof QuoteExecutionWithRequoteResponseDetails) { - if (getActualInstance() != null) { - joiner.add( - ((QuoteExecutionWithRequoteResponseDetails) getActualInstance()) - .toUrlQueryString(prefix + "one_of_2" + suffix)); - } - return joiner.toString(); - } - return null; - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/ExecutionStep.java b/src/main/java/com/fireblocks/sdk/model/ExecutionStep.java deleted file mode 100644 index 8555dc20..00000000 --- a/src/main/java/com/fireblocks/sdk/model/ExecutionStep.java +++ /dev/null @@ -1,341 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** ExecutionStep */ -@JsonPropertyOrder({ - ExecutionStep.JSON_PROPERTY_TYPE, - ExecutionStep.JSON_PROPERTY_STATUS, - ExecutionStep.JSON_PROPERTY_FEE, - ExecutionStep.JSON_PROPERTY_TX_ID, - ExecutionStep.JSON_PROPERTY_TX_HASH, - ExecutionStep.JSON_PROPERTY_ERROR -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class ExecutionStep { - public static final String JSON_PROPERTY_TYPE = "type"; - @jakarta.annotation.Nonnull private ExecutionStepType type; - - public static final String JSON_PROPERTY_STATUS = "status"; - @jakarta.annotation.Nonnull private ExecutionStepStatusEnum status; - - public static final String JSON_PROPERTY_FEE = "fee"; - @jakarta.annotation.Nullable private Fee fee; - - public static final String JSON_PROPERTY_TX_ID = "txId"; - @jakarta.annotation.Nullable private String txId; - - public static final String JSON_PROPERTY_TX_HASH = "txHash"; - @jakarta.annotation.Nullable private String txHash; - - public static final String JSON_PROPERTY_ERROR = "error"; - @jakarta.annotation.Nullable private ExecutionStepError error; - - public ExecutionStep() {} - - @JsonCreator - public ExecutionStep( - @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) ExecutionStepType type, - @JsonProperty(value = JSON_PROPERTY_STATUS, required = true) - ExecutionStepStatusEnum status) { - this.type = type; - this.status = status; - } - - public ExecutionStep type(@jakarta.annotation.Nonnull ExecutionStepType type) { - this.type = type; - return this; - } - - /** - * Get type - * - * @return type - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public ExecutionStepType getType() { - return type; - } - - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(@jakarta.annotation.Nonnull ExecutionStepType type) { - this.type = type; - } - - public ExecutionStep status(@jakarta.annotation.Nonnull ExecutionStepStatusEnum status) { - this.status = status; - return this; - } - - /** - * Get status - * - * @return status - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_STATUS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public ExecutionStepStatusEnum getStatus() { - return status; - } - - @JsonProperty(JSON_PROPERTY_STATUS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStatus(@jakarta.annotation.Nonnull ExecutionStepStatusEnum status) { - this.status = status; - } - - public ExecutionStep fee(@jakarta.annotation.Nullable Fee fee) { - this.fee = fee; - return this; - } - - /** - * Get fee - * - * @return fee - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FEE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Fee getFee() { - return fee; - } - - @JsonProperty(JSON_PROPERTY_FEE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFee(@jakarta.annotation.Nullable Fee fee) { - this.fee = fee; - } - - public ExecutionStep txId(@jakarta.annotation.Nullable String txId) { - this.txId = txId; - return this; - } - - /** - * Get txId - * - * @return txId - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TX_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getTxId() { - return txId; - } - - @JsonProperty(JSON_PROPERTY_TX_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTxId(@jakarta.annotation.Nullable String txId) { - this.txId = txId; - } - - public ExecutionStep txHash(@jakarta.annotation.Nullable String txHash) { - this.txHash = txHash; - return this; - } - - /** - * Get txHash - * - * @return txHash - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TX_HASH) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getTxHash() { - return txHash; - } - - @JsonProperty(JSON_PROPERTY_TX_HASH) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTxHash(@jakarta.annotation.Nullable String txHash) { - this.txHash = txHash; - } - - public ExecutionStep error(@jakarta.annotation.Nullable ExecutionStepError error) { - this.error = error; - return this; - } - - /** - * Get error - * - * @return error - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ERROR) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public ExecutionStepError getError() { - return error; - } - - @JsonProperty(JSON_PROPERTY_ERROR) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setError(@jakarta.annotation.Nullable ExecutionStepError error) { - this.error = error; - } - - /** Return true if this ExecutionStep object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ExecutionStep executionStep = (ExecutionStep) o; - return Objects.equals(this.type, executionStep.type) - && Objects.equals(this.status, executionStep.status) - && Objects.equals(this.fee, executionStep.fee) - && Objects.equals(this.txId, executionStep.txId) - && Objects.equals(this.txHash, executionStep.txHash) - && Objects.equals(this.error, executionStep.error); - } - - @Override - public int hashCode() { - return Objects.hash(type, status, fee, txId, txHash, error); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ExecutionStep {\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append(" fee: ").append(toIndentedString(fee)).append("\n"); - sb.append(" txId: ").append(toIndentedString(txId)).append("\n"); - sb.append(" txHash: ").append(toIndentedString(txHash)).append("\n"); - sb.append(" error: ").append(toIndentedString(error)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `type` to the URL query string - if (getType() != null) { - joiner.add( - String.format( - "%stype%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getType())))); - } - - // add `status` to the URL query string - if (getStatus() != null) { - joiner.add( - String.format( - "%sstatus%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getStatus())))); - } - - // add `fee` to the URL query string - if (getFee() != null) { - joiner.add(getFee().toUrlQueryString(prefix + "fee" + suffix)); - } - - // add `txId` to the URL query string - if (getTxId() != null) { - joiner.add( - String.format( - "%stxId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getTxId())))); - } - - // add `txHash` to the URL query string - if (getTxHash() != null) { - joiner.add( - String.format( - "%stxHash%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getTxHash())))); - } - - // add `error` to the URL query string - if (getError() != null) { - joiner.add( - String.format( - "%serror%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getError())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/ExecutionStepDetails.java b/src/main/java/com/fireblocks/sdk/model/ExecutionStepDetails.java deleted file mode 100644 index cfa67af1..00000000 --- a/src/main/java/com/fireblocks/sdk/model/ExecutionStepDetails.java +++ /dev/null @@ -1,182 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** ExecutionStepDetails */ -@JsonPropertyOrder({ - ExecutionStepDetails.JSON_PROPERTY_TYPE, - ExecutionStepDetails.JSON_PROPERTY_FEE -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class ExecutionStepDetails { - public static final String JSON_PROPERTY_TYPE = "type"; - @jakarta.annotation.Nonnull private ExecutionStepType type; - - public static final String JSON_PROPERTY_FEE = "fee"; - @jakarta.annotation.Nullable private Fee fee; - - public ExecutionStepDetails() {} - - @JsonCreator - public ExecutionStepDetails( - @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) ExecutionStepType type) { - this.type = type; - } - - public ExecutionStepDetails type(@jakarta.annotation.Nonnull ExecutionStepType type) { - this.type = type; - return this; - } - - /** - * Get type - * - * @return type - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public ExecutionStepType getType() { - return type; - } - - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(@jakarta.annotation.Nonnull ExecutionStepType type) { - this.type = type; - } - - public ExecutionStepDetails fee(@jakarta.annotation.Nullable Fee fee) { - this.fee = fee; - return this; - } - - /** - * Get fee - * - * @return fee - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FEE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Fee getFee() { - return fee; - } - - @JsonProperty(JSON_PROPERTY_FEE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFee(@jakarta.annotation.Nullable Fee fee) { - this.fee = fee; - } - - /** Return true if this ExecutionStepDetails object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ExecutionStepDetails executionStepDetails = (ExecutionStepDetails) o; - return Objects.equals(this.type, executionStepDetails.type) - && Objects.equals(this.fee, executionStepDetails.fee); - } - - @Override - public int hashCode() { - return Objects.hash(type, fee); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ExecutionStepDetails {\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" fee: ").append(toIndentedString(fee)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `type` to the URL query string - if (getType() != null) { - joiner.add( - String.format( - "%stype%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getType())))); - } - - // add `fee` to the URL query string - if (getFee() != null) { - joiner.add(getFee().toUrlQueryString(prefix + "fee" + suffix)); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/ExecutionStepError.java b/src/main/java/com/fireblocks/sdk/model/ExecutionStepError.java deleted file mode 100644 index 68925457..00000000 --- a/src/main/java/com/fireblocks/sdk/model/ExecutionStepError.java +++ /dev/null @@ -1,74 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - -/** Gets or Sets ExecutionStepError */ -public enum ExecutionStepError { - INTERNAL_ERROR("INTERNAL_ERROR"), - - QUOTE_EXPIRED("QUOTE_EXPIRED"), - - INSUFFICIENT_OUTPUT_AMOUNT("INSUFFICIENT_OUTPUT_AMOUNT"), - - INSUFFICIENT_FUNDS("INSUFFICIENT_FUNDS"), - - LAST_TRANSACTION_FAILED("LAST_TRANSACTION_FAILED"), - - SWAP_APPROVAL_FAILED("SWAP_APPROVAL_FAILED"), - - PROVIDER_EXECUTION_ERROR("PROVIDER_EXECUTION_ERROR"); - - private String value; - - ExecutionStepError(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static ExecutionStepError fromValue(String value) { - for (ExecutionStepError b : ExecutionStepError.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - if (prefix == null) { - prefix = ""; - } - - return String.format("%s=%s", prefix, this.toString()); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/ExecutionStepStatusEnum.java b/src/main/java/com/fireblocks/sdk/model/ExecutionStepStatusEnum.java deleted file mode 100644 index 147adfeb..00000000 --- a/src/main/java/com/fireblocks/sdk/model/ExecutionStepStatusEnum.java +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - -/** Gets or Sets ExecutionStepStatusEnum */ -public enum ExecutionStepStatusEnum { - WAITING("WAITING"), - - PROCESSING("PROCESSING"), - - COMPLETED("COMPLETED"), - - FAILED("FAILED"), - - CANCELLED("CANCELLED"); - - private String value; - - ExecutionStepStatusEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static ExecutionStepStatusEnum fromValue(String value) { - for (ExecutionStepStatusEnum b : ExecutionStepStatusEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - if (prefix == null) { - prefix = ""; - } - - return String.format("%s=%s", prefix, this.toString()); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/ExecutionStepType.java b/src/main/java/com/fireblocks/sdk/model/ExecutionStepType.java deleted file mode 100644 index 4fafdc4e..00000000 --- a/src/main/java/com/fireblocks/sdk/model/ExecutionStepType.java +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - -/** Gets or Sets ExecutionStepType */ -public enum ExecutionStepType { - APPROVE("APPROVE"), - - PERMIT("PERMIT"), - - CONTRACT_CALL("CONTRACT_CALL"), - - EXECUTE("EXECUTE"), - - SETTLEMENT("SETTLEMENT"); - - private String value; - - ExecutionStepType(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static ExecutionStepType fromValue(String value) { - for (ExecutionStepType b : ExecutionStepType.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - if (prefix == null) { - prefix = ""; - } - - return String.format("%s=%s", prefix, this.toString()); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/ExternalAccount.java b/src/main/java/com/fireblocks/sdk/model/ExternalAccount.java deleted file mode 100644 index 0999b81c..00000000 --- a/src/main/java/com/fireblocks/sdk/model/ExternalAccount.java +++ /dev/null @@ -1,178 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** ExternalAccount */ -@JsonPropertyOrder({ExternalAccount.JSON_PROPERTY_TYPE}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class ExternalAccount { - /** Gets or Sets type */ - public enum TypeEnum { - EXTERNAL(String.valueOf("EXTERNAL")); - - private String value; - - TypeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static TypeEnum fromValue(String value) { - for (TypeEnum b : TypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_TYPE = "type"; - @jakarta.annotation.Nonnull private TypeEnum type; - - public ExternalAccount() {} - - @JsonCreator - public ExternalAccount( - @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) TypeEnum type) { - this.type = type; - } - - public ExternalAccount type(@jakarta.annotation.Nonnull TypeEnum type) { - this.type = type; - return this; - } - - /** - * Get type - * - * @return type - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { - return type; - } - - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(@jakarta.annotation.Nonnull TypeEnum type) { - this.type = type; - } - - /** Return true if this ExternalAccount object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ExternalAccount externalAccount = (ExternalAccount) o; - return Objects.equals(this.type, externalAccount.type); - } - - @Override - public int hashCode() { - return Objects.hash(type); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ExternalAccount {\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `type` to the URL query string - if (getType() != null) { - joiner.add( - String.format( - "%stype%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getType())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/ExternalWalletAsset.java b/src/main/java/com/fireblocks/sdk/model/ExternalWalletAsset.java index 239cfc3b..a6103e31 100644 --- a/src/main/java/com/fireblocks/sdk/model/ExternalWalletAsset.java +++ b/src/main/java/com/fireblocks/sdk/model/ExternalWalletAsset.java @@ -59,9 +59,7 @@ public class ExternalWalletAsset { @jakarta.annotation.Nullable private String activationTime; public static final String JSON_PROPERTY_ADDITIONAL_INFO = "additionalInfo"; - - @jakarta.annotation.Nullable - private List additionalInfo = new ArrayList<>(); + @jakarta.annotation.Nullable private List additionalInfo; public ExternalWalletAsset() {} diff --git a/src/main/java/com/fireblocks/sdk/model/Fee.java b/src/main/java/com/fireblocks/sdk/model/Fee.java deleted file mode 100644 index 355f2a02..00000000 --- a/src/main/java/com/fireblocks/sdk/model/Fee.java +++ /dev/null @@ -1,368 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.JSON; -import java.math.BigDecimal; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -import java.util.StringJoiner; - -/** Fee */ -@JsonPropertyOrder({ - Fee.JSON_PROPERTY_FEE_TYPE, - Fee.JSON_PROPERTY_ASSET_ID, - Fee.JSON_PROPERTY_AMOUNT_TYPE, - Fee.JSON_PROPERTY_AMOUNT -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -@JsonIgnoreProperties( - value = "amountType", // ignore manually set amountType, it will be automatically generated - // by Jackson during serialization - allowSetters = true // allows the amountType to be set during deserialization - ) -@JsonTypeInfo( - use = JsonTypeInfo.Id.NAME, - include = JsonTypeInfo.As.PROPERTY, - property = "amountType", - visible = true) -public class Fee { - /** - * The type of fee, such as ORDER, NETWORK, or SPREAD. ORDER - Fee for executing the order. - * NETWORK - Fee for network transactions. SPREAD - Fee for the difference between buy and sell - * prices. - */ - public enum FeeTypeEnum { - ORDER(String.valueOf("ORDER")), - - NETWORK(String.valueOf("NETWORK")), - - SPREAD(String.valueOf("SPREAD")); - - private String value; - - FeeTypeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static FeeTypeEnum fromValue(String value) { - for (FeeTypeEnum b : FeeTypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_FEE_TYPE = "feeType"; - @jakarta.annotation.Nonnull private FeeTypeEnum feeType; - - public static final String JSON_PROPERTY_ASSET_ID = "assetId"; - @jakarta.annotation.Nonnull private String assetId; - - /** Gets or Sets amountType */ - public enum AmountTypeEnum { - BPS(String.valueOf("BPS")); - - private String value; - - AmountTypeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static AmountTypeEnum fromValue(String value) { - for (AmountTypeEnum b : AmountTypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_AMOUNT_TYPE = "amountType"; - @jakarta.annotation.Nonnull private AmountTypeEnum amountType; - - public static final String JSON_PROPERTY_AMOUNT = "amount"; - @jakarta.annotation.Nonnull private BigDecimal amount; - - public Fee() {} - - @JsonCreator - public Fee( - @JsonProperty(value = JSON_PROPERTY_FEE_TYPE, required = true) FeeTypeEnum feeType, - @JsonProperty(value = JSON_PROPERTY_ASSET_ID, required = true) String assetId, - @JsonProperty(value = JSON_PROPERTY_AMOUNT_TYPE, required = true) - AmountTypeEnum amountType, - @JsonProperty(value = JSON_PROPERTY_AMOUNT, required = true) BigDecimal amount) { - this.feeType = feeType; - this.assetId = assetId; - this.amountType = amountType; - this.amount = amount; - } - - public Fee feeType(@jakarta.annotation.Nonnull FeeTypeEnum feeType) { - this.feeType = feeType; - return this; - } - - /** - * The type of fee, such as ORDER, NETWORK, or SPREAD. ORDER - Fee for executing the order. - * NETWORK - Fee for network transactions. SPREAD - Fee for the difference between buy and sell - * prices. - * - * @return feeType - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_FEE_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public FeeTypeEnum getFeeType() { - return feeType; - } - - @JsonProperty(JSON_PROPERTY_FEE_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setFeeType(@jakarta.annotation.Nonnull FeeTypeEnum feeType) { - this.feeType = feeType; - } - - public Fee assetId(@jakarta.annotation.Nonnull String assetId) { - this.assetId = assetId; - return this; - } - - /** - * The asset identifier for the fee. - * - * @return assetId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ASSET_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getAssetId() { - return assetId; - } - - @JsonProperty(JSON_PROPERTY_ASSET_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAssetId(@jakarta.annotation.Nonnull String assetId) { - this.assetId = assetId; - } - - public Fee amountType(@jakarta.annotation.Nonnull AmountTypeEnum amountType) { - this.amountType = amountType; - return this; - } - - /** - * Get amountType - * - * @return amountType - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_AMOUNT_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AmountTypeEnum getAmountType() { - return amountType; - } - - @JsonProperty(JSON_PROPERTY_AMOUNT_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAmountType(@jakarta.annotation.Nonnull AmountTypeEnum amountType) { - this.amountType = amountType; - } - - public Fee amount(@jakarta.annotation.Nonnull BigDecimal amount) { - this.amount = amount; - return this; - } - - /** - * Fee in basis points (1 = 0.01%, 10000 = 100%) minimum: 0 maximum: 10000 - * - * @return amount - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_AMOUNT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public BigDecimal getAmount() { - return amount; - } - - @JsonProperty(JSON_PROPERTY_AMOUNT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAmount(@jakarta.annotation.Nonnull BigDecimal amount) { - this.amount = amount; - } - - /** Return true if this Fee object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Fee fee = (Fee) o; - return Objects.equals(this.feeType, fee.feeType) - && Objects.equals(this.assetId, fee.assetId) - && Objects.equals(this.amountType, fee.amountType) - && Objects.equals(this.amount, fee.amount); - } - - @Override - public int hashCode() { - return Objects.hash(feeType, assetId, amountType, amount); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class Fee {\n"); - sb.append(" feeType: ").append(toIndentedString(feeType)).append("\n"); - sb.append(" assetId: ").append(toIndentedString(assetId)).append("\n"); - sb.append(" amountType: ").append(toIndentedString(amountType)).append("\n"); - sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `feeType` to the URL query string - if (getFeeType() != null) { - joiner.add( - String.format( - "%sfeeType%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getFeeType())))); - } - - // add `assetId` to the URL query string - if (getAssetId() != null) { - joiner.add( - String.format( - "%sassetId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAssetId())))); - } - - // add `amountType` to the URL query string - if (getAmountType() != null) { - joiner.add( - String.format( - "%samountType%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAmountType())))); - } - - // add `amount` to the URL query string - if (getAmount() != null) { - joiner.add( - String.format( - "%samount%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAmount())))); - } - - return joiner.toString(); - } - - static { - // Initialize and register the discriminator mappings. - Map> mappings = new HashMap>(); - mappings.put("Fee", Fee.class); - JSON.registerDiscriminator(Fee.class, "amountType", mappings); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/FeeBreakdown.java b/src/main/java/com/fireblocks/sdk/model/FeeBreakdown.java deleted file mode 100644 index 60e9d459..00000000 --- a/src/main/java/com/fireblocks/sdk/model/FeeBreakdown.java +++ /dev/null @@ -1,318 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.core.JsonGenerator; -import com.fasterxml.jackson.core.JsonParser; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.core.JsonToken; -import com.fasterxml.jackson.databind.DeserializationContext; -import com.fasterxml.jackson.databind.JsonMappingException; -import com.fasterxml.jackson.databind.JsonNode; -import com.fasterxml.jackson.databind.MapperFeature; -import com.fasterxml.jackson.databind.SerializerProvider; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import com.fasterxml.jackson.databind.deser.std.StdDeserializer; -import com.fasterxml.jackson.databind.ser.std.StdSerializer; -import com.fireblocks.sdk.JSON; -import java.io.IOException; -import java.util.Collections; -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; -import java.util.StringJoiner; -import java.util.logging.Level; -import java.util.logging.Logger; - -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -@JsonDeserialize(using = FeeBreakdown.FeeBreakdownDeserializer.class) -@JsonSerialize(using = FeeBreakdown.FeeBreakdownSerializer.class) -public class FeeBreakdown extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(FeeBreakdown.class.getName()); - - public static class FeeBreakdownSerializer extends StdSerializer { - public FeeBreakdownSerializer(Class t) { - super(t); - } - - public FeeBreakdownSerializer() { - this(null); - } - - @Override - public void serialize(FeeBreakdown value, JsonGenerator jgen, SerializerProvider provider) - throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); - } - } - - public static class FeeBreakdownDeserializer extends StdDeserializer { - public FeeBreakdownDeserializer() { - this(FeeBreakdown.class); - } - - public FeeBreakdownDeserializer(Class vc) { - super(vc); - } - - @Override - public FeeBreakdown deserialize(JsonParser jp, DeserializationContext ctxt) - throws IOException, JsonProcessingException { - JsonNode tree = jp.readValueAsTree(); - Object deserialized = null; - boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); - int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); - // deserialize FeeBreakdownOneOf - try { - boolean attemptParsing = true; - // ensure that we respect type coercion as set on the client ObjectMapper - if (FeeBreakdownOneOf.class.equals(Integer.class) - || FeeBreakdownOneOf.class.equals(Long.class) - || FeeBreakdownOneOf.class.equals(Float.class) - || FeeBreakdownOneOf.class.equals(Double.class) - || FeeBreakdownOneOf.class.equals(Boolean.class) - || FeeBreakdownOneOf.class.equals(String.class)) { - attemptParsing = typeCoercion; - if (!attemptParsing) { - attemptParsing |= - ((FeeBreakdownOneOf.class.equals(Integer.class) - || FeeBreakdownOneOf.class.equals(Long.class)) - && token == JsonToken.VALUE_NUMBER_INT); - attemptParsing |= - ((FeeBreakdownOneOf.class.equals(Float.class) - || FeeBreakdownOneOf.class.equals(Double.class)) - && token == JsonToken.VALUE_NUMBER_FLOAT); - attemptParsing |= - (FeeBreakdownOneOf.class.equals(Boolean.class) - && (token == JsonToken.VALUE_FALSE - || token == JsonToken.VALUE_TRUE)); - attemptParsing |= - (FeeBreakdownOneOf.class.equals(String.class) - && token == JsonToken.VALUE_STRING); - } - } - if (attemptParsing) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(FeeBreakdownOneOf.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'FeeBreakdownOneOf'"); - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'FeeBreakdownOneOf'", e); - } - - // deserialize FeeBreakdownOneOf1 - try { - boolean attemptParsing = true; - // ensure that we respect type coercion as set on the client ObjectMapper - if (FeeBreakdownOneOf1.class.equals(Integer.class) - || FeeBreakdownOneOf1.class.equals(Long.class) - || FeeBreakdownOneOf1.class.equals(Float.class) - || FeeBreakdownOneOf1.class.equals(Double.class) - || FeeBreakdownOneOf1.class.equals(Boolean.class) - || FeeBreakdownOneOf1.class.equals(String.class)) { - attemptParsing = typeCoercion; - if (!attemptParsing) { - attemptParsing |= - ((FeeBreakdownOneOf1.class.equals(Integer.class) - || FeeBreakdownOneOf1.class.equals(Long.class)) - && token == JsonToken.VALUE_NUMBER_INT); - attemptParsing |= - ((FeeBreakdownOneOf1.class.equals(Float.class) - || FeeBreakdownOneOf1.class.equals(Double.class)) - && token == JsonToken.VALUE_NUMBER_FLOAT); - attemptParsing |= - (FeeBreakdownOneOf1.class.equals(Boolean.class) - && (token == JsonToken.VALUE_FALSE - || token == JsonToken.VALUE_TRUE)); - attemptParsing |= - (FeeBreakdownOneOf1.class.equals(String.class) - && token == JsonToken.VALUE_STRING); - } - } - if (attemptParsing) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(FeeBreakdownOneOf1.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'FeeBreakdownOneOf1'"); - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'FeeBreakdownOneOf1'", e); - } - - if (match == 1) { - FeeBreakdown ret = new FeeBreakdown(); - ret.setActualInstance(deserialized); - return ret; - } - throw new IOException( - String.format( - "Failed deserialization for FeeBreakdown: %d classes match result," - + " expected 1", - match)); - } - - /** Handle deserialization of the 'null' value. */ - @Override - public FeeBreakdown getNullValue(DeserializationContext ctxt) throws JsonMappingException { - throw new JsonMappingException(ctxt.getParser(), "FeeBreakdown cannot be null"); - } - } - - // store a list of schema names defined in oneOf - public static final Map> schemas = new HashMap<>(); - - public FeeBreakdown() { - super("oneOf", Boolean.FALSE); - } - - public FeeBreakdown(FeeBreakdownOneOf o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public FeeBreakdown(FeeBreakdownOneOf1 o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("FeeBreakdownOneOf", FeeBreakdownOneOf.class); - schemas.put("FeeBreakdownOneOf1", FeeBreakdownOneOf1.class); - JSON.registerDescendants(FeeBreakdown.class, Collections.unmodifiableMap(schemas)); - } - - @Override - public Map> getSchemas() { - return FeeBreakdown.schemas; - } - - /** - * Set the instance that matches the oneOf child schema, check the instance parameter is valid - * against the oneOf child schemas: FeeBreakdownOneOf, FeeBreakdownOneOf1 - * - *

It could be an instance of the 'oneOf' schemas. The oneOf child schemas may themselves be - * a composed schema (allOf, anyOf, oneOf). - */ - @Override - public void setActualInstance(Object instance) { - if (JSON.isInstanceOf(FeeBreakdownOneOf.class, instance, new HashSet>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(FeeBreakdownOneOf1.class, instance, new HashSet>())) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException( - "Invalid instance type. Must be FeeBreakdownOneOf, FeeBreakdownOneOf1"); - } - - /** - * Get the actual instance, which can be the following: FeeBreakdownOneOf, FeeBreakdownOneOf1 - * - * @return The actual instance (FeeBreakdownOneOf, FeeBreakdownOneOf1) - */ - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `FeeBreakdownOneOf`. If the actual instance is not - * `FeeBreakdownOneOf`, the ClassCastException will be thrown. - * - * @return The actual instance of `FeeBreakdownOneOf` - * @throws ClassCastException if the instance is not `FeeBreakdownOneOf` - */ - public FeeBreakdownOneOf getFeeBreakdownOneOf() throws ClassCastException { - return (FeeBreakdownOneOf) super.getActualInstance(); - } - - /** - * Get the actual instance of `FeeBreakdownOneOf1`. If the actual instance is not - * `FeeBreakdownOneOf1`, the ClassCastException will be thrown. - * - * @return The actual instance of `FeeBreakdownOneOf1` - * @throws ClassCastException if the instance is not `FeeBreakdownOneOf1` - */ - public FeeBreakdownOneOf1 getFeeBreakdownOneOf1() throws ClassCastException { - return (FeeBreakdownOneOf1) super.getActualInstance(); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - if (getActualInstance() instanceof FeeBreakdownOneOf) { - if (getActualInstance() != null) { - joiner.add( - ((FeeBreakdownOneOf) getActualInstance()) - .toUrlQueryString(prefix + "one_of_0" + suffix)); - } - return joiner.toString(); - } - if (getActualInstance() instanceof FeeBreakdownOneOf1) { - if (getActualInstance() != null) { - joiner.add( - ((FeeBreakdownOneOf1) getActualInstance()) - .toUrlQueryString(prefix + "one_of_1" + suffix)); - } - return joiner.toString(); - } - return null; - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/FeeBreakdownOneOf.java b/src/main/java/com/fireblocks/sdk/model/FeeBreakdownOneOf.java deleted file mode 100644 index c8069cd1..00000000 --- a/src/main/java/com/fireblocks/sdk/model/FeeBreakdownOneOf.java +++ /dev/null @@ -1,258 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** Solana-specific fee breakdown */ -@JsonPropertyOrder({ - FeeBreakdownOneOf.JSON_PROPERTY_BASE_FEE, - FeeBreakdownOneOf.JSON_PROPERTY_PRIORITY_FEE, - FeeBreakdownOneOf.JSON_PROPERTY_RENT, - FeeBreakdownOneOf.JSON_PROPERTY_TOTAL_FEE -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class FeeBreakdownOneOf { - public static final String JSON_PROPERTY_BASE_FEE = "baseFee"; - @jakarta.annotation.Nullable private String baseFee; - - public static final String JSON_PROPERTY_PRIORITY_FEE = "priorityFee"; - @jakarta.annotation.Nullable private String priorityFee; - - public static final String JSON_PROPERTY_RENT = "rent"; - @jakarta.annotation.Nullable private String rent; - - public static final String JSON_PROPERTY_TOTAL_FEE = "totalFee"; - @jakarta.annotation.Nullable private String totalFee; - - public FeeBreakdownOneOf() {} - - public FeeBreakdownOneOf baseFee(@jakarta.annotation.Nullable String baseFee) { - this.baseFee = baseFee; - return this; - } - - /** - * Base fee for Solana transaction - * - * @return baseFee - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BASE_FEE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getBaseFee() { - return baseFee; - } - - @JsonProperty(JSON_PROPERTY_BASE_FEE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBaseFee(@jakarta.annotation.Nullable String baseFee) { - this.baseFee = baseFee; - } - - public FeeBreakdownOneOf priorityFee(@jakarta.annotation.Nullable String priorityFee) { - this.priorityFee = priorityFee; - return this; - } - - /** - * Priority fee for Solana transaction - * - * @return priorityFee - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PRIORITY_FEE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getPriorityFee() { - return priorityFee; - } - - @JsonProperty(JSON_PROPERTY_PRIORITY_FEE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPriorityFee(@jakarta.annotation.Nullable String priorityFee) { - this.priorityFee = priorityFee; - } - - public FeeBreakdownOneOf rent(@jakarta.annotation.Nullable String rent) { - this.rent = rent; - return this; - } - - /** - * Rent fee for Solana account creation/storage - * - * @return rent - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_RENT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getRent() { - return rent; - } - - @JsonProperty(JSON_PROPERTY_RENT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRent(@jakarta.annotation.Nullable String rent) { - this.rent = rent; - } - - public FeeBreakdownOneOf totalFee(@jakarta.annotation.Nullable String totalFee) { - this.totalFee = totalFee; - return this; - } - - /** - * Total fee amount - * - * @return totalFee - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TOTAL_FEE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getTotalFee() { - return totalFee; - } - - @JsonProperty(JSON_PROPERTY_TOTAL_FEE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTotalFee(@jakarta.annotation.Nullable String totalFee) { - this.totalFee = totalFee; - } - - /** Return true if this FeeBreakdown_oneOf object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - FeeBreakdownOneOf feeBreakdownOneOf = (FeeBreakdownOneOf) o; - return Objects.equals(this.baseFee, feeBreakdownOneOf.baseFee) - && Objects.equals(this.priorityFee, feeBreakdownOneOf.priorityFee) - && Objects.equals(this.rent, feeBreakdownOneOf.rent) - && Objects.equals(this.totalFee, feeBreakdownOneOf.totalFee); - } - - @Override - public int hashCode() { - return Objects.hash(baseFee, priorityFee, rent, totalFee); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class FeeBreakdownOneOf {\n"); - sb.append(" baseFee: ").append(toIndentedString(baseFee)).append("\n"); - sb.append(" priorityFee: ").append(toIndentedString(priorityFee)).append("\n"); - sb.append(" rent: ").append(toIndentedString(rent)).append("\n"); - sb.append(" totalFee: ").append(toIndentedString(totalFee)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `baseFee` to the URL query string - if (getBaseFee() != null) { - joiner.add( - String.format( - "%sbaseFee%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBaseFee())))); - } - - // add `priorityFee` to the URL query string - if (getPriorityFee() != null) { - joiner.add( - String.format( - "%spriorityFee%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getPriorityFee())))); - } - - // add `rent` to the URL query string - if (getRent() != null) { - joiner.add( - String.format( - "%srent%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getRent())))); - } - - // add `totalFee` to the URL query string - if (getTotalFee() != null) { - joiner.add( - String.format( - "%stotalFee%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getTotalFee())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/FeeInfo.java b/src/main/java/com/fireblocks/sdk/model/FeeInfo.java index d017fd4d..5762dc3d 100644 --- a/src/main/java/com/fireblocks/sdk/model/FeeInfo.java +++ b/src/main/java/com/fireblocks/sdk/model/FeeInfo.java @@ -13,11 +13,9 @@ package com.fireblocks.sdk.model; -import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -26,12 +24,7 @@ @JsonPropertyOrder({ FeeInfo.JSON_PROPERTY_NETWORK_FEE, FeeInfo.JSON_PROPERTY_SERVICE_FEE, - FeeInfo.JSON_PROPERTY_GAS_PRICE, - FeeInfo.JSON_PROPERTY_PAID_BY_RELAY, - FeeInfo.JSON_PROPERTY_RELAY_TYPE, - FeeInfo.JSON_PROPERTY_RELAY_ID, - FeeInfo.JSON_PROPERTY_RELAY_NAME, - FeeInfo.JSON_PROPERTY_FEE_U_S_D + FeeInfo.JSON_PROPERTY_GAS_PRICE }) @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", @@ -46,54 +39,6 @@ public class FeeInfo { public static final String JSON_PROPERTY_GAS_PRICE = "gasPrice"; @jakarta.annotation.Nullable private String gasPrice; - public static final String JSON_PROPERTY_PAID_BY_RELAY = "paidByRelay"; - @jakarta.annotation.Nullable private Boolean paidByRelay; - - /** Wether the relay is the same tenant (LOCAL) or another tenant (THIRD_PARTY) */ - public enum RelayTypeEnum { - LOCAL(String.valueOf("LOCAL")), - - THIRD_PARTY(String.valueOf("THIRD_PARTY")); - - private String value; - - RelayTypeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static RelayTypeEnum fromValue(String value) { - for (RelayTypeEnum b : RelayTypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_RELAY_TYPE = "relayType"; - @jakarta.annotation.Nullable private RelayTypeEnum relayType; - - public static final String JSON_PROPERTY_RELAY_ID = "relayId"; - @jakarta.annotation.Nullable private String relayId; - - public static final String JSON_PROPERTY_RELAY_NAME = "relayName"; - @jakarta.annotation.Nullable private String relayName; - - public static final String JSON_PROPERTY_FEE_U_S_D = "feeUSD"; - @jakarta.annotation.Nullable private String feeUSD; - public FeeInfo() {} public FeeInfo networkFee(@jakarta.annotation.Nullable String networkFee) { @@ -166,121 +111,6 @@ public void setGasPrice(@jakarta.annotation.Nullable String gasPrice) { this.gasPrice = gasPrice; } - public FeeInfo paidByRelay(@jakarta.annotation.Nullable Boolean paidByRelay) { - this.paidByRelay = paidByRelay; - return this; - } - - /** - * Wether the fee was paid by the relay or not - * - * @return paidByRelay - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PAID_BY_RELAY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getPaidByRelay() { - return paidByRelay; - } - - @JsonProperty(JSON_PROPERTY_PAID_BY_RELAY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPaidByRelay(@jakarta.annotation.Nullable Boolean paidByRelay) { - this.paidByRelay = paidByRelay; - } - - public FeeInfo relayType(@jakarta.annotation.Nullable RelayTypeEnum relayType) { - this.relayType = relayType; - return this; - } - - /** - * Wether the relay is the same tenant (LOCAL) or another tenant (THIRD_PARTY) - * - * @return relayType - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_RELAY_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public RelayTypeEnum getRelayType() { - return relayType; - } - - @JsonProperty(JSON_PROPERTY_RELAY_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRelayType(@jakarta.annotation.Nullable RelayTypeEnum relayType) { - this.relayType = relayType; - } - - public FeeInfo relayId(@jakarta.annotation.Nullable String relayId) { - this.relayId = relayId; - return this; - } - - /** - * The vault account ID of the relay - * - * @return relayId - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_RELAY_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getRelayId() { - return relayId; - } - - @JsonProperty(JSON_PROPERTY_RELAY_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRelayId(@jakarta.annotation.Nullable String relayId) { - this.relayId = relayId; - } - - public FeeInfo relayName(@jakarta.annotation.Nullable String relayName) { - this.relayName = relayName; - return this; - } - - /** - * The name of the tenant, only for THIRD_PARTY relays - * - * @return relayName - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_RELAY_NAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getRelayName() { - return relayName; - } - - @JsonProperty(JSON_PROPERTY_RELAY_NAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRelayName(@jakarta.annotation.Nullable String relayName) { - this.relayName = relayName; - } - - public FeeInfo feeUSD(@jakarta.annotation.Nullable String feeUSD) { - this.feeUSD = feeUSD; - return this; - } - - /** - * The USD value of the fee - * - * @return feeUSD - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FEE_U_S_D) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getFeeUSD() { - return feeUSD; - } - - @JsonProperty(JSON_PROPERTY_FEE_U_S_D) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFeeUSD(@jakarta.annotation.Nullable String feeUSD) { - this.feeUSD = feeUSD; - } - /** Return true if this FeeInfo object is equal to o. */ @Override public boolean equals(Object o) { @@ -293,25 +123,12 @@ public boolean equals(Object o) { FeeInfo feeInfo = (FeeInfo) o; return Objects.equals(this.networkFee, feeInfo.networkFee) && Objects.equals(this.serviceFee, feeInfo.serviceFee) - && Objects.equals(this.gasPrice, feeInfo.gasPrice) - && Objects.equals(this.paidByRelay, feeInfo.paidByRelay) - && Objects.equals(this.relayType, feeInfo.relayType) - && Objects.equals(this.relayId, feeInfo.relayId) - && Objects.equals(this.relayName, feeInfo.relayName) - && Objects.equals(this.feeUSD, feeInfo.feeUSD); + && Objects.equals(this.gasPrice, feeInfo.gasPrice); } @Override public int hashCode() { - return Objects.hash( - networkFee, - serviceFee, - gasPrice, - paidByRelay, - relayType, - relayId, - relayName, - feeUSD); + return Objects.hash(networkFee, serviceFee, gasPrice); } @Override @@ -321,11 +138,6 @@ public String toString() { sb.append(" networkFee: ").append(toIndentedString(networkFee)).append("\n"); sb.append(" serviceFee: ").append(toIndentedString(serviceFee)).append("\n"); sb.append(" gasPrice: ").append(toIndentedString(gasPrice)).append("\n"); - sb.append(" paidByRelay: ").append(toIndentedString(paidByRelay)).append("\n"); - sb.append(" relayType: ").append(toIndentedString(relayType)).append("\n"); - sb.append(" relayId: ").append(toIndentedString(relayId)).append("\n"); - sb.append(" relayName: ").append(toIndentedString(relayName)).append("\n"); - sb.append(" feeUSD: ").append(toIndentedString(feeUSD)).append("\n"); sb.append("}"); return sb.toString(); } @@ -403,56 +215,6 @@ public String toUrlQueryString(String prefix) { ApiClient.urlEncode(ApiClient.valueToString(getGasPrice())))); } - // add `paidByRelay` to the URL query string - if (getPaidByRelay() != null) { - joiner.add( - String.format( - "%spaidByRelay%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getPaidByRelay())))); - } - - // add `relayType` to the URL query string - if (getRelayType() != null) { - joiner.add( - String.format( - "%srelayType%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getRelayType())))); - } - - // add `relayId` to the URL query string - if (getRelayId() != null) { - joiner.add( - String.format( - "%srelayId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getRelayId())))); - } - - // add `relayName` to the URL query string - if (getRelayName() != null) { - joiner.add( - String.format( - "%srelayName%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getRelayName())))); - } - - // add `feeUSD` to the URL query string - if (getFeeUSD() != null) { - joiner.add( - String.format( - "%sfeeUSD%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getFeeUSD())))); - } - return joiner.toString(); } } diff --git a/src/main/java/com/fireblocks/sdk/model/FeeLevel.java b/src/main/java/com/fireblocks/sdk/model/FeeLevel.java deleted file mode 100644 index c860be6a..00000000 --- a/src/main/java/com/fireblocks/sdk/model/FeeLevel.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - -/** - * Represents the fee level for a transaction, which can be set as slow, medium, or fast. Only one - * of fee/feeLevel is required. - */ -public enum FeeLevel { - LOW("LOW"), - - MEDIUM("MEDIUM"), - - HIGH("HIGH"); - - private String value; - - FeeLevel(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static FeeLevel fromValue(String value) { - for (FeeLevel b : FeeLevel.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - if (prefix == null) { - prefix = ""; - } - - return String.format("%s=%s", prefix, this.toString()); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/FetchAbiRequestDto.java b/src/main/java/com/fireblocks/sdk/model/FetchAbiRequestDto.java deleted file mode 100644 index d0fa559f..00000000 --- a/src/main/java/com/fireblocks/sdk/model/FetchAbiRequestDto.java +++ /dev/null @@ -1,190 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** FetchAbiRequestDto */ -@JsonPropertyOrder({ - FetchAbiRequestDto.JSON_PROPERTY_BASE_ASSET_ID, - FetchAbiRequestDto.JSON_PROPERTY_CONTRACT_ADDRESS -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class FetchAbiRequestDto { - public static final String JSON_PROPERTY_BASE_ASSET_ID = "baseAssetId"; - @jakarta.annotation.Nonnull private String baseAssetId; - - public static final String JSON_PROPERTY_CONTRACT_ADDRESS = "contractAddress"; - @jakarta.annotation.Nonnull private String contractAddress; - - public FetchAbiRequestDto() {} - - @JsonCreator - public FetchAbiRequestDto( - @JsonProperty(value = JSON_PROPERTY_BASE_ASSET_ID, required = true) String baseAssetId, - @JsonProperty(value = JSON_PROPERTY_CONTRACT_ADDRESS, required = true) - String contractAddress) { - this.baseAssetId = baseAssetId; - this.contractAddress = contractAddress; - } - - public FetchAbiRequestDto baseAssetId(@jakarta.annotation.Nonnull String baseAssetId) { - this.baseAssetId = baseAssetId; - return this; - } - - /** - * The blockchain base assetId - * - * @return baseAssetId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BASE_ASSET_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getBaseAssetId() { - return baseAssetId; - } - - @JsonProperty(JSON_PROPERTY_BASE_ASSET_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBaseAssetId(@jakarta.annotation.Nonnull String baseAssetId) { - this.baseAssetId = baseAssetId; - } - - public FetchAbiRequestDto contractAddress(@jakarta.annotation.Nonnull String contractAddress) { - this.contractAddress = contractAddress; - return this; - } - - /** - * The contract's onchain address - * - * @return contractAddress - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CONTRACT_ADDRESS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getContractAddress() { - return contractAddress; - } - - @JsonProperty(JSON_PROPERTY_CONTRACT_ADDRESS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setContractAddress(@jakarta.annotation.Nonnull String contractAddress) { - this.contractAddress = contractAddress; - } - - /** Return true if this FetchAbiRequestDto object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - FetchAbiRequestDto fetchAbiRequestDto = (FetchAbiRequestDto) o; - return Objects.equals(this.baseAssetId, fetchAbiRequestDto.baseAssetId) - && Objects.equals(this.contractAddress, fetchAbiRequestDto.contractAddress); - } - - @Override - public int hashCode() { - return Objects.hash(baseAssetId, contractAddress); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class FetchAbiRequestDto {\n"); - sb.append(" baseAssetId: ").append(toIndentedString(baseAssetId)).append("\n"); - sb.append(" contractAddress: ").append(toIndentedString(contractAddress)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `baseAssetId` to the URL query string - if (getBaseAssetId() != null) { - joiner.add( - String.format( - "%sbaseAssetId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBaseAssetId())))); - } - - // add `contractAddress` to the URL query string - if (getContractAddress() != null) { - joiner.add( - String.format( - "%scontractAddress%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getContractAddress())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/FiatAccount.java b/src/main/java/com/fireblocks/sdk/model/FiatAccount.java index 7ff7ddfc..3034b54d 100644 --- a/src/main/java/com/fireblocks/sdk/model/FiatAccount.java +++ b/src/main/java/com/fireblocks/sdk/model/FiatAccount.java @@ -47,7 +47,7 @@ public class FiatAccount { @jakarta.annotation.Nullable private String address; public static final String JSON_PROPERTY_ASSETS = "assets"; - @jakarta.annotation.Nullable private List assets = new ArrayList<>(); + @jakarta.annotation.Nullable private List assets; public FiatAccount() {} diff --git a/src/main/java/com/fireblocks/sdk/model/FiatTransfer.java b/src/main/java/com/fireblocks/sdk/model/FiatTransfer.java deleted file mode 100644 index d87ca1ca..00000000 --- a/src/main/java/com/fireblocks/sdk/model/FiatTransfer.java +++ /dev/null @@ -1,258 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** FiatTransfer */ -@JsonPropertyOrder({ - FiatTransfer.JSON_PROPERTY_TYPE, - FiatTransfer.JSON_PROPERTY_AMOUNT, - FiatTransfer.JSON_PROPERTY_REFERENCE_ID -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class FiatTransfer { - /** Gets or Sets type */ - public enum TypeEnum { - FIAT(String.valueOf("FIAT")); - - private String value; - - TypeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static TypeEnum fromValue(String value) { - for (TypeEnum b : TypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_TYPE = "type"; - @jakarta.annotation.Nullable private TypeEnum type; - - public static final String JSON_PROPERTY_AMOUNT = "amount"; - @jakarta.annotation.Nonnull private String amount; - - public static final String JSON_PROPERTY_REFERENCE_ID = "referenceId"; - @jakarta.annotation.Nullable private String referenceId; - - public FiatTransfer() {} - - @JsonCreator - public FiatTransfer( - @JsonProperty(value = JSON_PROPERTY_AMOUNT, required = true) String amount) { - this.amount = amount; - } - - public FiatTransfer type(@jakarta.annotation.Nullable TypeEnum type) { - this.type = type; - return this; - } - - /** - * Get type - * - * @return type - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public TypeEnum getType() { - return type; - } - - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(@jakarta.annotation.Nullable TypeEnum type) { - this.type = type; - } - - public FiatTransfer amount(@jakarta.annotation.Nonnull String amount) { - this.amount = amount; - return this; - } - - /** - * The amount of the fiat transfer. - * - * @return amount - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_AMOUNT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getAmount() { - return amount; - } - - @JsonProperty(JSON_PROPERTY_AMOUNT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAmount(@jakarta.annotation.Nonnull String amount) { - this.amount = amount; - } - - public FiatTransfer referenceId(@jakarta.annotation.Nullable String referenceId) { - this.referenceId = referenceId; - return this; - } - - /** - * The reference ID for the fiat transfer. - * - * @return referenceId - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_REFERENCE_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getReferenceId() { - return referenceId; - } - - @JsonProperty(JSON_PROPERTY_REFERENCE_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setReferenceId(@jakarta.annotation.Nullable String referenceId) { - this.referenceId = referenceId; - } - - /** Return true if this FiatTransfer object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - FiatTransfer fiatTransfer = (FiatTransfer) o; - return Objects.equals(this.type, fiatTransfer.type) - && Objects.equals(this.amount, fiatTransfer.amount) - && Objects.equals(this.referenceId, fiatTransfer.referenceId); - } - - @Override - public int hashCode() { - return Objects.hash(type, amount, referenceId); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class FiatTransfer {\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); - sb.append(" referenceId: ").append(toIndentedString(referenceId)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `type` to the URL query string - if (getType() != null) { - joiner.add( - String.format( - "%stype%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getType())))); - } - - // add `amount` to the URL query string - if (getAmount() != null) { - joiner.add( - String.format( - "%samount%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAmount())))); - } - - // add `referenceId` to the URL query string - if (getReferenceId() != null) { - joiner.add( - String.format( - "%sreferenceId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getReferenceId())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/FixedFee.java b/src/main/java/com/fireblocks/sdk/model/FixedFee.java deleted file mode 100644 index 4f981d54..00000000 --- a/src/main/java/com/fireblocks/sdk/model/FixedFee.java +++ /dev/null @@ -1,219 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** FixedFee */ -@JsonPropertyOrder({FixedFee.JSON_PROPERTY_AMOUNT_TYPE, FixedFee.JSON_PROPERTY_AMOUNT}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class FixedFee { - /** Gets or Sets amountType */ - public enum AmountTypeEnum { - FIXED(String.valueOf("FIXED")); - - private String value; - - AmountTypeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static AmountTypeEnum fromValue(String value) { - for (AmountTypeEnum b : AmountTypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_AMOUNT_TYPE = "amountType"; - @jakarta.annotation.Nonnull private AmountTypeEnum amountType; - - public static final String JSON_PROPERTY_AMOUNT = "amount"; - @jakarta.annotation.Nonnull private String amount; - - public FixedFee() {} - - @JsonCreator - public FixedFee( - @JsonProperty(value = JSON_PROPERTY_AMOUNT_TYPE, required = true) - AmountTypeEnum amountType, - @JsonProperty(value = JSON_PROPERTY_AMOUNT, required = true) String amount) { - this.amountType = amountType; - this.amount = amount; - } - - public FixedFee amountType(@jakarta.annotation.Nonnull AmountTypeEnum amountType) { - this.amountType = amountType; - return this; - } - - /** - * Get amountType - * - * @return amountType - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_AMOUNT_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AmountTypeEnum getAmountType() { - return amountType; - } - - @JsonProperty(JSON_PROPERTY_AMOUNT_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAmountType(@jakarta.annotation.Nonnull AmountTypeEnum amountType) { - this.amountType = amountType; - } - - public FixedFee amount(@jakarta.annotation.Nonnull String amount) { - this.amount = amount; - return this; - } - - /** - * The fixed amount of the fee - * - * @return amount - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_AMOUNT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getAmount() { - return amount; - } - - @JsonProperty(JSON_PROPERTY_AMOUNT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAmount(@jakarta.annotation.Nonnull String amount) { - this.amount = amount; - } - - /** Return true if this FixedFee object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - FixedFee fixedFee = (FixedFee) o; - return Objects.equals(this.amountType, fixedFee.amountType) - && Objects.equals(this.amount, fixedFee.amount); - } - - @Override - public int hashCode() { - return Objects.hash(amountType, amount); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class FixedFee {\n"); - sb.append(" amountType: ").append(toIndentedString(amountType)).append("\n"); - sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `amountType` to the URL query string - if (getAmountType() != null) { - joiner.add( - String.format( - "%samountType%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAmountType())))); - } - - // add `amount` to the URL query string - if (getAmount() != null) { - joiner.add( - String.format( - "%samount%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAmount())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/FunctionDoc.java b/src/main/java/com/fireblocks/sdk/model/FunctionDoc.java index cca76e1e..acbdb18a 100644 --- a/src/main/java/com/fireblocks/sdk/model/FunctionDoc.java +++ b/src/main/java/com/fireblocks/sdk/model/FunctionDoc.java @@ -36,10 +36,10 @@ public class FunctionDoc { @jakarta.annotation.Nullable private String details; public static final String JSON_PROPERTY_PARAMS = "params"; - @jakarta.annotation.Nullable private Map params = new HashMap<>(); + @jakarta.annotation.Nullable private Map params; public static final String JSON_PROPERTY_RETURNS = "returns"; - @jakarta.annotation.Nullable private Map returns = new HashMap<>(); + @jakarta.annotation.Nullable private Map returns; public FunctionDoc() {} diff --git a/src/main/java/com/fireblocks/sdk/model/GasslessStandardConfigurations.java b/src/main/java/com/fireblocks/sdk/model/GasslessStandardConfigurations.java deleted file mode 100644 index 0a20521d..00000000 --- a/src/main/java/com/fireblocks/sdk/model/GasslessStandardConfigurations.java +++ /dev/null @@ -1,180 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -import java.util.StringJoiner; - -/** The gasless configuration of the contract */ -@JsonPropertyOrder({GasslessStandardConfigurations.JSON_PROPERTY_GASLESS_STANDARD_CONFIGURATIONS}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class GasslessStandardConfigurations { - public static final String JSON_PROPERTY_GASLESS_STANDARD_CONFIGURATIONS = - "gaslessStandardConfigurations"; - - @jakarta.annotation.Nullable - private Map - gaslessStandardConfigurations = new HashMap<>(); - - public GasslessStandardConfigurations() {} - - public GasslessStandardConfigurations gaslessStandardConfigurations( - @jakarta.annotation.Nullable - Map - gaslessStandardConfigurations) { - this.gaslessStandardConfigurations = gaslessStandardConfigurations; - return this; - } - - public GasslessStandardConfigurations putGaslessStandardConfigurationsItem( - String key, - GasslessStandardConfigurationsGaslessStandardConfigurationsValue - gaslessStandardConfigurationsItem) { - if (this.gaslessStandardConfigurations == null) { - this.gaslessStandardConfigurations = new HashMap<>(); - } - this.gaslessStandardConfigurations.put(key, gaslessStandardConfigurationsItem); - return this; - } - - /** - * Get gaslessStandardConfigurations - * - * @return gaslessStandardConfigurations - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_GASLESS_STANDARD_CONFIGURATIONS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map - getGaslessStandardConfigurations() { - return gaslessStandardConfigurations; - } - - @JsonProperty(JSON_PROPERTY_GASLESS_STANDARD_CONFIGURATIONS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setGaslessStandardConfigurations( - @jakarta.annotation.Nullable - Map - gaslessStandardConfigurations) { - this.gaslessStandardConfigurations = gaslessStandardConfigurations; - } - - /** Return true if this GasslessStandardConfigurations object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GasslessStandardConfigurations gasslessStandardConfigurations = - (GasslessStandardConfigurations) o; - return Objects.equals( - this.gaslessStandardConfigurations, - gasslessStandardConfigurations.gaslessStandardConfigurations); - } - - @Override - public int hashCode() { - return Objects.hash(gaslessStandardConfigurations); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class GasslessStandardConfigurations {\n"); - sb.append(" gaslessStandardConfigurations: ") - .append(toIndentedString(gaslessStandardConfigurations)) - .append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `gaslessStandardConfigurations` to the URL query string - if (getGaslessStandardConfigurations() != null) { - for (String _key : getGaslessStandardConfigurations().keySet()) { - if (getGaslessStandardConfigurations().get(_key) != null) { - joiner.add( - getGaslessStandardConfigurations() - .get(_key) - .toUrlQueryString( - String.format( - "%sgaslessStandardConfigurations%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - _key, - containerSuffix)))); - } - } - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/GasslessStandardConfigurationsGaslessStandardConfigurationsValue.java b/src/main/java/com/fireblocks/sdk/model/GasslessStandardConfigurationsGaslessStandardConfigurationsValue.java deleted file mode 100644 index dc03ad7e..00000000 --- a/src/main/java/com/fireblocks/sdk/model/GasslessStandardConfigurationsGaslessStandardConfigurationsValue.java +++ /dev/null @@ -1,217 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** GasslessStandardConfigurationsGaslessStandardConfigurationsValue */ -@JsonPropertyOrder({ - GasslessStandardConfigurationsGaslessStandardConfigurationsValue - .JSON_PROPERTY_LAST_ON_CHAIN_CHECK, - GasslessStandardConfigurationsGaslessStandardConfigurationsValue - .JSON_PROPERTY_FORWARDER_ADDRESSES -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class GasslessStandardConfigurationsGaslessStandardConfigurationsValue { - public static final String JSON_PROPERTY_LAST_ON_CHAIN_CHECK = "lastOnChainCheck"; - @jakarta.annotation.Nullable private OffsetDateTime lastOnChainCheck; - - public static final String JSON_PROPERTY_FORWARDER_ADDRESSES = "forwarderAddresses"; - @jakarta.annotation.Nullable private List forwarderAddresses = new ArrayList<>(); - - public GasslessStandardConfigurationsGaslessStandardConfigurationsValue() {} - - public GasslessStandardConfigurationsGaslessStandardConfigurationsValue lastOnChainCheck( - @jakarta.annotation.Nullable OffsetDateTime lastOnChainCheck) { - this.lastOnChainCheck = lastOnChainCheck; - return this; - } - - /** - * Get lastOnChainCheck - * - * @return lastOnChainCheck - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_LAST_ON_CHAIN_CHECK) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public OffsetDateTime getLastOnChainCheck() { - return lastOnChainCheck; - } - - @JsonProperty(JSON_PROPERTY_LAST_ON_CHAIN_CHECK) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLastOnChainCheck(@jakarta.annotation.Nullable OffsetDateTime lastOnChainCheck) { - this.lastOnChainCheck = lastOnChainCheck; - } - - public GasslessStandardConfigurationsGaslessStandardConfigurationsValue forwarderAddresses( - @jakarta.annotation.Nullable List forwarderAddresses) { - this.forwarderAddresses = forwarderAddresses; - return this; - } - - public GasslessStandardConfigurationsGaslessStandardConfigurationsValue - addForwarderAddressesItem(String forwarderAddressesItem) { - if (this.forwarderAddresses == null) { - this.forwarderAddresses = new ArrayList<>(); - } - this.forwarderAddresses.add(forwarderAddressesItem); - return this; - } - - /** - * Get forwarderAddresses - * - * @return forwarderAddresses - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FORWARDER_ADDRESSES) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getForwarderAddresses() { - return forwarderAddresses; - } - - @JsonProperty(JSON_PROPERTY_FORWARDER_ADDRESSES) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setForwarderAddresses( - @jakarta.annotation.Nullable List forwarderAddresses) { - this.forwarderAddresses = forwarderAddresses; - } - - /** - * Return true if this GasslessStandardConfigurations_gaslessStandardConfigurations_value object - * is equal to o. - */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GasslessStandardConfigurationsGaslessStandardConfigurationsValue - gasslessStandardConfigurationsGaslessStandardConfigurationsValue = - (GasslessStandardConfigurationsGaslessStandardConfigurationsValue) o; - return Objects.equals( - this.lastOnChainCheck, - gasslessStandardConfigurationsGaslessStandardConfigurationsValue - .lastOnChainCheck) - && Objects.equals( - this.forwarderAddresses, - gasslessStandardConfigurationsGaslessStandardConfigurationsValue - .forwarderAddresses); - } - - @Override - public int hashCode() { - return Objects.hash(lastOnChainCheck, forwarderAddresses); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class GasslessStandardConfigurationsGaslessStandardConfigurationsValue {\n"); - sb.append(" lastOnChainCheck: ").append(toIndentedString(lastOnChainCheck)).append("\n"); - sb.append(" forwarderAddresses: ") - .append(toIndentedString(forwarderAddresses)) - .append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `lastOnChainCheck` to the URL query string - if (getLastOnChainCheck() != null) { - joiner.add( - String.format( - "%slastOnChainCheck%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getLastOnChainCheck())))); - } - - // add `forwarderAddresses` to the URL query string - if (getForwarderAddresses() != null) { - for (int i = 0; i < getForwarderAddresses().size(); i++) { - joiner.add( - String.format( - "%sforwarderAddresses%s%s=%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode( - ApiClient.valueToString(getForwarderAddresses().get(i))))); - } - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/GetAPIUsersResponse.java b/src/main/java/com/fireblocks/sdk/model/GetAPIUsersResponse.java index f1edf844..5d90e0de 100644 --- a/src/main/java/com/fireblocks/sdk/model/GetAPIUsersResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/GetAPIUsersResponse.java @@ -29,7 +29,7 @@ comments = "Generator version: 7.14.0") public class GetAPIUsersResponse { public static final String JSON_PROPERTY_USERS = "users"; - @jakarta.annotation.Nonnull private List users = new ArrayList<>(); + @jakarta.annotation.Nonnull private List users; public GetAPIUsersResponse() {} diff --git a/src/main/java/com/fireblocks/sdk/model/GetAuditLogsResponse.java b/src/main/java/com/fireblocks/sdk/model/GetAuditLogsResponse.java index dc1f4970..491fd421 100644 --- a/src/main/java/com/fireblocks/sdk/model/GetAuditLogsResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/GetAuditLogsResponse.java @@ -34,7 +34,7 @@ comments = "Generator version: 7.14.0") public class GetAuditLogsResponse { public static final String JSON_PROPERTY_DATA = "data"; - @jakarta.annotation.Nullable private List data = new ArrayList<>(); + @jakarta.annotation.Nullable private List data; public static final String JSON_PROPERTY_CURSOR = "cursor"; @jakarta.annotation.Nullable private String cursor; diff --git a/src/main/java/com/fireblocks/sdk/model/PaginatedAssetsResponse.java b/src/main/java/com/fireblocks/sdk/model/GetAuditLogsResponseDTO.java similarity index 61% rename from src/main/java/com/fireblocks/sdk/model/PaginatedAssetsResponse.java rename to src/main/java/com/fireblocks/sdk/model/GetAuditLogsResponseDTO.java index bb3c64f2..e8af7724 100644 --- a/src/main/java/com/fireblocks/sdk/model/PaginatedAssetsResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/GetAuditLogsResponseDTO.java @@ -13,112 +13,115 @@ package com.fireblocks.sdk.model; -import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fireblocks.sdk.ApiClient; import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.List; import java.util.Objects; import java.util.StringJoiner; -/** PaginatedAssetsResponse */ +/** GetAuditLogsResponseDTO */ @JsonPropertyOrder({ - PaginatedAssetsResponse.JSON_PROPERTY_TOTAL, - PaginatedAssetsResponse.JSON_PROPERTY_DATA, - PaginatedAssetsResponse.JSON_PROPERTY_NEXT + GetAuditLogsResponseDTO.JSON_PROPERTY_DATA, + GetAuditLogsResponseDTO.JSON_PROPERTY_TOTAL, + GetAuditLogsResponseDTO.JSON_PROPERTY_CURSOR }) @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") -public class PaginatedAssetsResponse { +public class GetAuditLogsResponseDTO { + public static final String JSON_PROPERTY_DATA = "data"; + @jakarta.annotation.Nullable private List data; + public static final String JSON_PROPERTY_TOTAL = "total"; @jakarta.annotation.Nullable private BigDecimal total; - public static final String JSON_PROPERTY_DATA = "data"; - @jakarta.annotation.Nonnull private UnmanagedWallet data; - - public static final String JSON_PROPERTY_NEXT = "next"; - @jakarta.annotation.Nullable private String next; + public static final String JSON_PROPERTY_CURSOR = "cursor"; + @jakarta.annotation.Nullable private String cursor; - public PaginatedAssetsResponse() {} + public GetAuditLogsResponseDTO() {} - @JsonCreator - public PaginatedAssetsResponse( - @JsonProperty(value = JSON_PROPERTY_DATA, required = true) UnmanagedWallet data) { + public GetAuditLogsResponseDTO data(@jakarta.annotation.Nullable List data) { this.data = data; + return this; } - public PaginatedAssetsResponse total(@jakarta.annotation.Nullable BigDecimal total) { - this.total = total; + public GetAuditLogsResponseDTO addDataItem(Object dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); return this; } /** - * Total number of assets in the internal wallet + * Get data * - * @return total + * @return data */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TOTAL) + @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public BigDecimal getTotal() { - return total; + public List getData() { + return data; } - @JsonProperty(JSON_PROPERTY_TOTAL) + @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTotal(@jakarta.annotation.Nullable BigDecimal total) { - this.total = total; + public void setData(@jakarta.annotation.Nullable List data) { + this.data = data; } - public PaginatedAssetsResponse data(@jakarta.annotation.Nonnull UnmanagedWallet data) { - this.data = data; + public GetAuditLogsResponseDTO total(@jakarta.annotation.Nullable BigDecimal total) { + this.total = total; return this; } /** - * Get data + * Get total * - * @return data + * @return total */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public UnmanagedWallet getData() { - return data; + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_TOTAL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getTotal() { + return total; } - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setData(@jakarta.annotation.Nonnull UnmanagedWallet data) { - this.data = data; + @JsonProperty(JSON_PROPERTY_TOTAL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setTotal(@jakarta.annotation.Nullable BigDecimal total) { + this.total = total; } - public PaginatedAssetsResponse next(@jakarta.annotation.Nullable String next) { - this.next = next; + public GetAuditLogsResponseDTO cursor(@jakarta.annotation.Nullable String cursor) { + this.cursor = cursor; return this; } /** - * Cursor for the next page of results + * Get cursor * - * @return next + * @return cursor */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NEXT) + @JsonProperty(JSON_PROPERTY_CURSOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getNext() { - return next; + public String getCursor() { + return cursor; } - @JsonProperty(JSON_PROPERTY_NEXT) + @JsonProperty(JSON_PROPERTY_CURSOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNext(@jakarta.annotation.Nullable String next) { - this.next = next; + public void setCursor(@jakarta.annotation.Nullable String cursor) { + this.cursor = cursor; } - /** Return true if this PaginatedAssetsResponse object is equal to o. */ + /** Return true if this GetAuditLogsResponseDTO object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -127,24 +130,24 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - PaginatedAssetsResponse paginatedAssetsResponse = (PaginatedAssetsResponse) o; - return Objects.equals(this.total, paginatedAssetsResponse.total) - && Objects.equals(this.data, paginatedAssetsResponse.data) - && Objects.equals(this.next, paginatedAssetsResponse.next); + GetAuditLogsResponseDTO getAuditLogsResponseDTO = (GetAuditLogsResponseDTO) o; + return Objects.equals(this.data, getAuditLogsResponseDTO.data) + && Objects.equals(this.total, getAuditLogsResponseDTO.total) + && Objects.equals(this.cursor, getAuditLogsResponseDTO.cursor); } @Override public int hashCode() { - return Objects.hash(total, data, next); + return Objects.hash(data, total, cursor); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class PaginatedAssetsResponse {\n"); - sb.append(" total: ").append(toIndentedString(total)).append("\n"); + sb.append("class GetAuditLogsResponseDTO {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" next: ").append(toIndentedString(next)).append("\n"); + sb.append(" total: ").append(toIndentedString(total)).append("\n"); + sb.append(" cursor: ").append(toIndentedString(cursor)).append("\n"); sb.append("}"); return sb.toString(); } @@ -192,6 +195,22 @@ public String toUrlQueryString(String prefix) { StringJoiner joiner = new StringJoiner("&"); + // add `data` to the URL query string + if (getData() != null) { + for (int i = 0; i < getData().size(); i++) { + joiner.add( + String.format( + "%sdata%s%s=%s", + prefix, + suffix, + "".equals(suffix) + ? "" + : String.format( + "%s%d%s", containerPrefix, i, containerSuffix), + ApiClient.urlEncode(ApiClient.valueToString(getData().get(i))))); + } + } + // add `total` to the URL query string if (getTotal() != null) { joiner.add( @@ -202,19 +221,14 @@ public String toUrlQueryString(String prefix) { ApiClient.urlEncode(ApiClient.valueToString(getTotal())))); } - // add `data` to the URL query string - if (getData() != null) { - joiner.add(getData().toUrlQueryString(prefix + "data" + suffix)); - } - - // add `next` to the URL query string - if (getNext() != null) { + // add `cursor` to the URL query string + if (getCursor() != null) { joiner.add( String.format( - "%snext%s=%s", + "%scursor%s=%s", prefix, suffix, - ApiClient.urlEncode(ApiClient.valueToString(getNext())))); + ApiClient.urlEncode(ApiClient.valueToString(getCursor())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/GetConnectionsResponse.java b/src/main/java/com/fireblocks/sdk/model/GetConnectionsResponse.java index 30455917..58a1aed7 100644 --- a/src/main/java/com/fireblocks/sdk/model/GetConnectionsResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/GetConnectionsResponse.java @@ -32,7 +32,7 @@ comments = "Generator version: 7.14.0") public class GetConnectionsResponse { public static final String JSON_PROPERTY_DATA = "data"; - @jakarta.annotation.Nonnull private List data = new ArrayList<>(); + @jakarta.annotation.Nonnull private List data; public static final String JSON_PROPERTY_PAGING = "paging"; @jakarta.annotation.Nullable private Paging paging; diff --git a/src/main/java/com/fireblocks/sdk/model/GetConsoleUsersResponse.java b/src/main/java/com/fireblocks/sdk/model/GetConsoleUsersResponse.java index ec55ec22..d04599a5 100644 --- a/src/main/java/com/fireblocks/sdk/model/GetConsoleUsersResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/GetConsoleUsersResponse.java @@ -29,7 +29,7 @@ comments = "Generator version: 7.14.0") public class GetConsoleUsersResponse { public static final String JSON_PROPERTY_USERS = "users"; - @jakarta.annotation.Nonnull private List users = new ArrayList<>(); + @jakarta.annotation.Nonnull private List users; public GetConsoleUsersResponse() {} diff --git a/src/main/java/com/fireblocks/sdk/model/GetDeployableAddressRequest.java b/src/main/java/com/fireblocks/sdk/model/GetDeployableAddressRequest.java deleted file mode 100644 index 877594c9..00000000 --- a/src/main/java/com/fireblocks/sdk/model/GetDeployableAddressRequest.java +++ /dev/null @@ -1,300 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; -import java.util.UUID; - -/** Request body for calculating deterministic address */ -@JsonPropertyOrder({ - GetDeployableAddressRequest.JSON_PROPERTY_CHAIN_DESCRIPTOR, - GetDeployableAddressRequest.JSON_PROPERTY_TEMPLATE_ID, - GetDeployableAddressRequest.JSON_PROPERTY_INIT_PARAMS, - GetDeployableAddressRequest.JSON_PROPERTY_SALT -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class GetDeployableAddressRequest { - public static final String JSON_PROPERTY_CHAIN_DESCRIPTOR = "chainDescriptor"; - @jakarta.annotation.Nonnull private String chainDescriptor; - - public static final String JSON_PROPERTY_TEMPLATE_ID = "templateId"; - @jakarta.annotation.Nonnull private UUID templateId; - - public static final String JSON_PROPERTY_INIT_PARAMS = "initParams"; - @jakarta.annotation.Nonnull private List initParams = new ArrayList<>(); - - public static final String JSON_PROPERTY_SALT = "salt"; - @jakarta.annotation.Nonnull private String salt; - - public GetDeployableAddressRequest() {} - - @JsonCreator - public GetDeployableAddressRequest( - @JsonProperty(value = JSON_PROPERTY_CHAIN_DESCRIPTOR, required = true) - String chainDescriptor, - @JsonProperty(value = JSON_PROPERTY_TEMPLATE_ID, required = true) UUID templateId, - @JsonProperty(value = JSON_PROPERTY_INIT_PARAMS, required = true) - List initParams, - @JsonProperty(value = JSON_PROPERTY_SALT, required = true) String salt) { - this.chainDescriptor = chainDescriptor; - this.templateId = templateId; - this.initParams = initParams; - this.salt = salt; - } - - public GetDeployableAddressRequest chainDescriptor( - @jakarta.annotation.Nonnull String chainDescriptor) { - this.chainDescriptor = chainDescriptor; - return this; - } - - /** - * The base asset identifier of the blockchain (legacyId) to calculate deterministic address - * - * @return chainDescriptor - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CHAIN_DESCRIPTOR) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getChainDescriptor() { - return chainDescriptor; - } - - @JsonProperty(JSON_PROPERTY_CHAIN_DESCRIPTOR) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setChainDescriptor(@jakarta.annotation.Nonnull String chainDescriptor) { - this.chainDescriptor = chainDescriptor; - } - - public GetDeployableAddressRequest templateId(@jakarta.annotation.Nonnull UUID templateId) { - this.templateId = templateId; - return this; - } - - /** - * The template identifier - * - * @return templateId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TEMPLATE_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public UUID getTemplateId() { - return templateId; - } - - @JsonProperty(JSON_PROPERTY_TEMPLATE_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTemplateId(@jakarta.annotation.Nonnull UUID templateId) { - this.templateId = templateId; - } - - public GetDeployableAddressRequest initParams( - @jakarta.annotation.Nonnull List initParams) { - this.initParams = initParams; - return this; - } - - public GetDeployableAddressRequest addInitParamsItem(ParameterWithValue initParamsItem) { - if (this.initParams == null) { - this.initParams = new ArrayList<>(); - } - this.initParams.add(initParamsItem); - return this; - } - - /** - * The deploy function parameters and values of the contract template - * - * @return initParams - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_INIT_PARAMS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getInitParams() { - return initParams; - } - - @JsonProperty(JSON_PROPERTY_INIT_PARAMS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setInitParams(@jakarta.annotation.Nonnull List initParams) { - this.initParams = initParams; - } - - public GetDeployableAddressRequest salt(@jakarta.annotation.Nonnull String salt) { - this.salt = salt; - return this; - } - - /** - * The salt to calculate the deterministic address. Must be a number between 0 and 2^256 -1, for - * it to fit in the bytes32 parameter - * - * @return salt - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SALT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getSalt() { - return salt; - } - - @JsonProperty(JSON_PROPERTY_SALT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSalt(@jakarta.annotation.Nonnull String salt) { - this.salt = salt; - } - - /** Return true if this GetDeployableAddressRequest object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetDeployableAddressRequest getDeployableAddressRequest = (GetDeployableAddressRequest) o; - return Objects.equals(this.chainDescriptor, getDeployableAddressRequest.chainDescriptor) - && Objects.equals(this.templateId, getDeployableAddressRequest.templateId) - && Objects.equals(this.initParams, getDeployableAddressRequest.initParams) - && Objects.equals(this.salt, getDeployableAddressRequest.salt); - } - - @Override - public int hashCode() { - return Objects.hash(chainDescriptor, templateId, initParams, salt); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class GetDeployableAddressRequest {\n"); - sb.append(" chainDescriptor: ").append(toIndentedString(chainDescriptor)).append("\n"); - sb.append(" templateId: ").append(toIndentedString(templateId)).append("\n"); - sb.append(" initParams: ").append(toIndentedString(initParams)).append("\n"); - sb.append(" salt: ").append(toIndentedString(salt)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `chainDescriptor` to the URL query string - if (getChainDescriptor() != null) { - joiner.add( - String.format( - "%schainDescriptor%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getChainDescriptor())))); - } - - // add `templateId` to the URL query string - if (getTemplateId() != null) { - joiner.add( - String.format( - "%stemplateId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getTemplateId())))); - } - - // add `initParams` to the URL query string - if (getInitParams() != null) { - for (int i = 0; i < getInitParams().size(); i++) { - if (getInitParams().get(i) != null) { - joiner.add( - getInitParams() - .get(i) - .toUrlQueryString( - String.format( - "%sinitParams%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } - } - - // add `salt` to the URL query string - if (getSalt() != null) { - joiner.add( - String.format( - "%ssalt%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getSalt())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/GetExchangeAccountsCredentialsPublicKeyResponse.java b/src/main/java/com/fireblocks/sdk/model/GetExchangeAccountsCredentialsPublicKeyResponse.java deleted file mode 100644 index d61d1c42..00000000 --- a/src/main/java/com/fireblocks/sdk/model/GetExchangeAccountsCredentialsPublicKeyResponse.java +++ /dev/null @@ -1,195 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** GetExchangeAccountsCredentialsPublicKeyResponse */ -@JsonPropertyOrder({ - GetExchangeAccountsCredentialsPublicKeyResponse.JSON_PROPERTY_PUBLIC_KEY, - GetExchangeAccountsCredentialsPublicKeyResponse.JSON_PROPERTY_TENANT_ID -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class GetExchangeAccountsCredentialsPublicKeyResponse { - public static final String JSON_PROPERTY_PUBLIC_KEY = "publicKey"; - @jakarta.annotation.Nonnull private String publicKey; - - public static final String JSON_PROPERTY_TENANT_ID = "tenantId"; - @jakarta.annotation.Nonnull private String tenantId; - - public GetExchangeAccountsCredentialsPublicKeyResponse() {} - - @JsonCreator - public GetExchangeAccountsCredentialsPublicKeyResponse( - @JsonProperty(value = JSON_PROPERTY_PUBLIC_KEY, required = true) String publicKey, - @JsonProperty(value = JSON_PROPERTY_TENANT_ID, required = true) String tenantId) { - this.publicKey = publicKey; - this.tenantId = tenantId; - } - - public GetExchangeAccountsCredentialsPublicKeyResponse publicKey( - @jakarta.annotation.Nonnull String publicKey) { - this.publicKey = publicKey; - return this; - } - - /** - * Public key string - * - * @return publicKey - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PUBLIC_KEY) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getPublicKey() { - return publicKey; - } - - @JsonProperty(JSON_PROPERTY_PUBLIC_KEY) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPublicKey(@jakarta.annotation.Nonnull String publicKey) { - this.publicKey = publicKey; - } - - public GetExchangeAccountsCredentialsPublicKeyResponse tenantId( - @jakarta.annotation.Nonnull String tenantId) { - this.tenantId = tenantId; - return this; - } - - /** - * Tenant identifier - * - * @return tenantId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TENANT_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getTenantId() { - return tenantId; - } - - @JsonProperty(JSON_PROPERTY_TENANT_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTenantId(@jakarta.annotation.Nonnull String tenantId) { - this.tenantId = tenantId; - } - - /** Return true if this GetExchangeAccountsCredentialsPublicKeyResponse object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetExchangeAccountsCredentialsPublicKeyResponse - getExchangeAccountsCredentialsPublicKeyResponse = - (GetExchangeAccountsCredentialsPublicKeyResponse) o; - return Objects.equals( - this.publicKey, getExchangeAccountsCredentialsPublicKeyResponse.publicKey) - && Objects.equals( - this.tenantId, getExchangeAccountsCredentialsPublicKeyResponse.tenantId); - } - - @Override - public int hashCode() { - return Objects.hash(publicKey, tenantId); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class GetExchangeAccountsCredentialsPublicKeyResponse {\n"); - sb.append(" publicKey: ").append(toIndentedString(publicKey)).append("\n"); - sb.append(" tenantId: ").append(toIndentedString(tenantId)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `publicKey` to the URL query string - if (getPublicKey() != null) { - joiner.add( - String.format( - "%spublicKey%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getPublicKey())))); - } - - // add `tenantId` to the URL query string - if (getTenantId() != null) { - joiner.add( - String.format( - "%stenantId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getTenantId())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/GetLayerZeroDvnConfigResponse.java b/src/main/java/com/fireblocks/sdk/model/GetLayerZeroDvnConfigResponse.java deleted file mode 100644 index 160d09e3..00000000 --- a/src/main/java/com/fireblocks/sdk/model/GetLayerZeroDvnConfigResponse.java +++ /dev/null @@ -1,231 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; -import java.util.UUID; - -/** GetLayerZeroDvnConfigResponse */ -@JsonPropertyOrder({ - GetLayerZeroDvnConfigResponse.JSON_PROPERTY_SOURCE_ADAPTER_TOKEN_LINK_ID, - GetLayerZeroDvnConfigResponse.JSON_PROPERTY_CHANNEL_CONFIGS -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class GetLayerZeroDvnConfigResponse { - public static final String JSON_PROPERTY_SOURCE_ADAPTER_TOKEN_LINK_ID = - "sourceAdapterTokenLinkId"; - @jakarta.annotation.Nonnull private UUID sourceAdapterTokenLinkId; - - public static final String JSON_PROPERTY_CHANNEL_CONFIGS = "channelConfigs"; - - @jakarta.annotation.Nonnull - private List channelConfigs = new ArrayList<>(); - - public GetLayerZeroDvnConfigResponse() {} - - @JsonCreator - public GetLayerZeroDvnConfigResponse( - @JsonProperty(value = JSON_PROPERTY_SOURCE_ADAPTER_TOKEN_LINK_ID, required = true) - UUID sourceAdapterTokenLinkId, - @JsonProperty(value = JSON_PROPERTY_CHANNEL_CONFIGS, required = true) - List channelConfigs) { - this.sourceAdapterTokenLinkId = sourceAdapterTokenLinkId; - this.channelConfigs = channelConfigs; - } - - public GetLayerZeroDvnConfigResponse sourceAdapterTokenLinkId( - @jakarta.annotation.Nonnull UUID sourceAdapterTokenLinkId) { - this.sourceAdapterTokenLinkId = sourceAdapterTokenLinkId; - return this; - } - - /** - * Token-link ID of the adapter for which DVN configuration was queried. - * - * @return sourceAdapterTokenLinkId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SOURCE_ADAPTER_TOKEN_LINK_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public UUID getSourceAdapterTokenLinkId() { - return sourceAdapterTokenLinkId; - } - - @JsonProperty(JSON_PROPERTY_SOURCE_ADAPTER_TOKEN_LINK_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSourceAdapterTokenLinkId( - @jakarta.annotation.Nonnull UUID sourceAdapterTokenLinkId) { - this.sourceAdapterTokenLinkId = sourceAdapterTokenLinkId; - } - - public GetLayerZeroDvnConfigResponse channelConfigs( - @jakarta.annotation.Nonnull List channelConfigs) { - this.channelConfigs = channelConfigs; - return this; - } - - public GetLayerZeroDvnConfigResponse addChannelConfigsItem( - ChannelDvnConfigWithConfirmations channelConfigsItem) { - if (this.channelConfigs == null) { - this.channelConfigs = new ArrayList<>(); - } - this.channelConfigs.add(channelConfigsItem); - return this; - } - - /** - * DVN configurations for each discovered (or explicitly requested) channel between the source - * adapter and its peers. - * - * @return channelConfigs - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CHANNEL_CONFIGS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getChannelConfigs() { - return channelConfigs; - } - - @JsonProperty(JSON_PROPERTY_CHANNEL_CONFIGS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setChannelConfigs( - @jakarta.annotation.Nonnull List channelConfigs) { - this.channelConfigs = channelConfigs; - } - - /** Return true if this GetLayerZeroDvnConfigResponse object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetLayerZeroDvnConfigResponse getLayerZeroDvnConfigResponse = - (GetLayerZeroDvnConfigResponse) o; - return Objects.equals( - this.sourceAdapterTokenLinkId, - getLayerZeroDvnConfigResponse.sourceAdapterTokenLinkId) - && Objects.equals( - this.channelConfigs, getLayerZeroDvnConfigResponse.channelConfigs); - } - - @Override - public int hashCode() { - return Objects.hash(sourceAdapterTokenLinkId, channelConfigs); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class GetLayerZeroDvnConfigResponse {\n"); - sb.append(" sourceAdapterTokenLinkId: ") - .append(toIndentedString(sourceAdapterTokenLinkId)) - .append("\n"); - sb.append(" channelConfigs: ").append(toIndentedString(channelConfigs)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `sourceAdapterTokenLinkId` to the URL query string - if (getSourceAdapterTokenLinkId() != null) { - joiner.add( - String.format( - "%ssourceAdapterTokenLinkId%s=%s", - prefix, - suffix, - ApiClient.urlEncode( - ApiClient.valueToString(getSourceAdapterTokenLinkId())))); - } - - // add `channelConfigs` to the URL query string - if (getChannelConfigs() != null) { - for (int i = 0; i < getChannelConfigs().size(); i++) { - if (getChannelConfigs().get(i) != null) { - joiner.add( - getChannelConfigs() - .get(i) - .toUrlQueryString( - String.format( - "%schannelConfigs%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/GetLayerZeroPeersResponse.java b/src/main/java/com/fireblocks/sdk/model/GetLayerZeroPeersResponse.java deleted file mode 100644 index aabe3a6d..00000000 --- a/src/main/java/com/fireblocks/sdk/model/GetLayerZeroPeersResponse.java +++ /dev/null @@ -1,262 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; -import java.util.UUID; - -/** GetLayerZeroPeersResponse */ -@JsonPropertyOrder({ - GetLayerZeroPeersResponse.JSON_PROPERTY_ADAPTER_TOKEN_LINK_ID, - GetLayerZeroPeersResponse.JSON_PROPERTY_ADAPTER_ADDRESS, - GetLayerZeroPeersResponse.JSON_PROPERTY_PEERS -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class GetLayerZeroPeersResponse { - public static final String JSON_PROPERTY_ADAPTER_TOKEN_LINK_ID = "adapterTokenLinkId"; - @jakarta.annotation.Nonnull private UUID adapterTokenLinkId; - - public static final String JSON_PROPERTY_ADAPTER_ADDRESS = "adapterAddress"; - @jakarta.annotation.Nonnull private String adapterAddress; - - public static final String JSON_PROPERTY_PEERS = "peers"; - @jakarta.annotation.Nonnull private List peers = new ArrayList<>(); - - public GetLayerZeroPeersResponse() {} - - @JsonCreator - public GetLayerZeroPeersResponse( - @JsonProperty(value = JSON_PROPERTY_ADAPTER_TOKEN_LINK_ID, required = true) - UUID adapterTokenLinkId, - @JsonProperty(value = JSON_PROPERTY_ADAPTER_ADDRESS, required = true) - String adapterAddress, - @JsonProperty(value = JSON_PROPERTY_PEERS, required = true) - List peers) { - this.adapterTokenLinkId = adapterTokenLinkId; - this.adapterAddress = adapterAddress; - this.peers = peers; - } - - public GetLayerZeroPeersResponse adapterTokenLinkId( - @jakarta.annotation.Nonnull UUID adapterTokenLinkId) { - this.adapterTokenLinkId = adapterTokenLinkId; - return this; - } - - /** - * The token link id of the adapter - * - * @return adapterTokenLinkId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ADAPTER_TOKEN_LINK_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public UUID getAdapterTokenLinkId() { - return adapterTokenLinkId; - } - - @JsonProperty(JSON_PROPERTY_ADAPTER_TOKEN_LINK_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAdapterTokenLinkId(@jakarta.annotation.Nonnull UUID adapterTokenLinkId) { - this.adapterTokenLinkId = adapterTokenLinkId; - } - - public GetLayerZeroPeersResponse adapterAddress( - @jakarta.annotation.Nonnull String adapterAddress) { - this.adapterAddress = adapterAddress; - return this; - } - - /** - * The adapter address - * - * @return adapterAddress - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ADAPTER_ADDRESS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getAdapterAddress() { - return adapterAddress; - } - - @JsonProperty(JSON_PROPERTY_ADAPTER_ADDRESS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAdapterAddress(@jakarta.annotation.Nonnull String adapterAddress) { - this.adapterAddress = adapterAddress; - } - - public GetLayerZeroPeersResponse peers( - @jakarta.annotation.Nonnull List peers) { - this.peers = peers; - return this; - } - - public GetLayerZeroPeersResponse addPeersItem(PeerAdapterInfo peersItem) { - if (this.peers == null) { - this.peers = new ArrayList<>(); - } - this.peers.add(peersItem); - return this; - } - - /** - * The peers for the adapter - * - * @return peers - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PEERS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getPeers() { - return peers; - } - - @JsonProperty(JSON_PROPERTY_PEERS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPeers(@jakarta.annotation.Nonnull List peers) { - this.peers = peers; - } - - /** Return true if this GetLayerZeroPeersResponse object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetLayerZeroPeersResponse getLayerZeroPeersResponse = (GetLayerZeroPeersResponse) o; - return Objects.equals(this.adapterTokenLinkId, getLayerZeroPeersResponse.adapterTokenLinkId) - && Objects.equals(this.adapterAddress, getLayerZeroPeersResponse.adapterAddress) - && Objects.equals(this.peers, getLayerZeroPeersResponse.peers); - } - - @Override - public int hashCode() { - return Objects.hash(adapterTokenLinkId, adapterAddress, peers); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class GetLayerZeroPeersResponse {\n"); - sb.append(" adapterTokenLinkId: ") - .append(toIndentedString(adapterTokenLinkId)) - .append("\n"); - sb.append(" adapterAddress: ").append(toIndentedString(adapterAddress)).append("\n"); - sb.append(" peers: ").append(toIndentedString(peers)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `adapterTokenLinkId` to the URL query string - if (getAdapterTokenLinkId() != null) { - joiner.add( - String.format( - "%sadapterTokenLinkId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAdapterTokenLinkId())))); - } - - // add `adapterAddress` to the URL query string - if (getAdapterAddress() != null) { - joiner.add( - String.format( - "%sadapterAddress%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAdapterAddress())))); - } - - // add `peers` to the URL query string - if (getPeers() != null) { - for (int i = 0; i < getPeers().size(); i++) { - if (getPeers().get(i) != null) { - joiner.add( - getPeers() - .get(i) - .toUrlQueryString( - String.format( - "%speers%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/GetLinkedCollectionsPaginatedResponse.java b/src/main/java/com/fireblocks/sdk/model/GetLinkedCollectionsPaginatedResponse.java deleted file mode 100644 index 96b848b6..00000000 --- a/src/main/java/com/fireblocks/sdk/model/GetLinkedCollectionsPaginatedResponse.java +++ /dev/null @@ -1,205 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** GetLinkedCollectionsPaginatedResponse */ -@JsonPropertyOrder({ - GetLinkedCollectionsPaginatedResponse.JSON_PROPERTY_DATA, - GetLinkedCollectionsPaginatedResponse.JSON_PROPERTY_NEXT -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class GetLinkedCollectionsPaginatedResponse { - public static final String JSON_PROPERTY_DATA = "data"; - @jakarta.annotation.Nullable private List data = new ArrayList<>(); - - public static final String JSON_PROPERTY_NEXT = "next"; - @jakarta.annotation.Nullable private String next; - - public GetLinkedCollectionsPaginatedResponse() {} - - public GetLinkedCollectionsPaginatedResponse data( - @jakarta.annotation.Nullable List data) { - this.data = data; - return this; - } - - public GetLinkedCollectionsPaginatedResponse addDataItem(CollectionLinkDto dataItem) { - if (this.data == null) { - this.data = new ArrayList<>(); - } - this.data.add(dataItem); - return this; - } - - /** - * The data of the current page - * - * @return data - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getData() { - return data; - } - - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setData(@jakarta.annotation.Nullable List data) { - this.data = data; - } - - public GetLinkedCollectionsPaginatedResponse next(@jakarta.annotation.Nullable String next) { - this.next = next; - return this; - } - - /** - * The ID of the next page - * - * @return next - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NEXT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getNext() { - return next; - } - - @JsonProperty(JSON_PROPERTY_NEXT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNext(@jakarta.annotation.Nullable String next) { - this.next = next; - } - - /** Return true if this GetLinkedCollectionsPaginatedResponse object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetLinkedCollectionsPaginatedResponse getLinkedCollectionsPaginatedResponse = - (GetLinkedCollectionsPaginatedResponse) o; - return Objects.equals(this.data, getLinkedCollectionsPaginatedResponse.data) - && Objects.equals(this.next, getLinkedCollectionsPaginatedResponse.next); - } - - @Override - public int hashCode() { - return Objects.hash(data, next); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class GetLinkedCollectionsPaginatedResponse {\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" next: ").append(toIndentedString(next)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `data` to the URL query string - if (getData() != null) { - for (int i = 0; i < getData().size(); i++) { - if (getData().get(i) != null) { - joiner.add( - getData() - .get(i) - .toUrlQueryString( - String.format( - "%sdata%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } - } - - // add `next` to the URL query string - if (getNext() != null) { - joiner.add( - String.format( - "%snext%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getNext())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/GetMpcKeysResponse.java b/src/main/java/com/fireblocks/sdk/model/GetMpcKeysResponse.java deleted file mode 100644 index c8a55296..00000000 --- a/src/main/java/com/fireblocks/sdk/model/GetMpcKeysResponse.java +++ /dev/null @@ -1,212 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** GetMpcKeysResponse */ -@JsonPropertyOrder({ - GetMpcKeysResponse.JSON_PROPERTY_TENANT_ID, - GetMpcKeysResponse.JSON_PROPERTY_KEYS -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class GetMpcKeysResponse { - public static final String JSON_PROPERTY_TENANT_ID = "tenantId"; - @jakarta.annotation.Nonnull private String tenantId; - - public static final String JSON_PROPERTY_KEYS = "keys"; - @jakarta.annotation.Nonnull private List keys = new ArrayList<>(); - - public GetMpcKeysResponse() {} - - @JsonCreator - public GetMpcKeysResponse( - @JsonProperty(value = JSON_PROPERTY_TENANT_ID, required = true) String tenantId, - @JsonProperty(value = JSON_PROPERTY_KEYS, required = true) List keys) { - this.tenantId = tenantId; - this.keys = keys; - } - - public GetMpcKeysResponse tenantId(@jakarta.annotation.Nonnull String tenantId) { - this.tenantId = tenantId; - return this; - } - - /** - * The workspace id of the keys - * - * @return tenantId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TENANT_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getTenantId() { - return tenantId; - } - - @JsonProperty(JSON_PROPERTY_TENANT_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTenantId(@jakarta.annotation.Nonnull String tenantId) { - this.tenantId = tenantId; - } - - public GetMpcKeysResponse keys(@jakarta.annotation.Nonnull List keys) { - this.keys = keys; - return this; - } - - public GetMpcKeysResponse addKeysItem(MpcKey keysItem) { - if (this.keys == null) { - this.keys = new ArrayList<>(); - } - this.keys.add(keysItem); - return this; - } - - /** - * The keys that are associated with the workspace - * - * @return keys - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_KEYS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getKeys() { - return keys; - } - - @JsonProperty(JSON_PROPERTY_KEYS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setKeys(@jakarta.annotation.Nonnull List keys) { - this.keys = keys; - } - - /** Return true if this GetMpcKeysResponse object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetMpcKeysResponse getMpcKeysResponse = (GetMpcKeysResponse) o; - return Objects.equals(this.tenantId, getMpcKeysResponse.tenantId) - && Objects.equals(this.keys, getMpcKeysResponse.keys); - } - - @Override - public int hashCode() { - return Objects.hash(tenantId, keys); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class GetMpcKeysResponse {\n"); - sb.append(" tenantId: ").append(toIndentedString(tenantId)).append("\n"); - sb.append(" keys: ").append(toIndentedString(keys)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `tenantId` to the URL query string - if (getTenantId() != null) { - joiner.add( - String.format( - "%stenantId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getTenantId())))); - } - - // add `keys` to the URL query string - if (getKeys() != null) { - for (int i = 0; i < getKeys().size(); i++) { - if (getKeys().get(i) != null) { - joiner.add( - getKeys() - .get(i) - .toUrlQueryString( - String.format( - "%skeys%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/GetNFTsResponse.java b/src/main/java/com/fireblocks/sdk/model/GetNFTsResponse.java index c2c16ced..7ffad3ef 100644 --- a/src/main/java/com/fireblocks/sdk/model/GetNFTsResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/GetNFTsResponse.java @@ -31,7 +31,7 @@ public class GetNFTsResponse { @jakarta.annotation.Nullable private Paging paging; public static final String JSON_PROPERTY_DATA = "data"; - @jakarta.annotation.Nullable private List data = new ArrayList<>(); + @jakarta.annotation.Nullable private List data; public GetNFTsResponse() {} diff --git a/src/main/java/com/fireblocks/sdk/model/GetOrdersResponse.java b/src/main/java/com/fireblocks/sdk/model/GetOrdersResponse.java deleted file mode 100644 index 885db15f..00000000 --- a/src/main/java/com/fireblocks/sdk/model/GetOrdersResponse.java +++ /dev/null @@ -1,251 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** GetOrdersResponse */ -@JsonPropertyOrder({ - GetOrdersResponse.JSON_PROPERTY_DATA, - GetOrdersResponse.JSON_PROPERTY_TOTAL, - GetOrdersResponse.JSON_PROPERTY_NEXT -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class GetOrdersResponse { - public static final String JSON_PROPERTY_DATA = "data"; - @jakarta.annotation.Nonnull private List data = new ArrayList<>(); - - public static final String JSON_PROPERTY_TOTAL = "total"; - @jakarta.annotation.Nonnull private Integer total; - - public static final String JSON_PROPERTY_NEXT = "next"; - @jakarta.annotation.Nullable private String next; - - public GetOrdersResponse() {} - - @JsonCreator - public GetOrdersResponse( - @JsonProperty(value = JSON_PROPERTY_DATA, required = true) List data, - @JsonProperty(value = JSON_PROPERTY_TOTAL, required = true) Integer total) { - this.data = data; - this.total = total; - } - - public GetOrdersResponse data(@jakarta.annotation.Nonnull List data) { - this.data = data; - return this; - } - - public GetOrdersResponse addDataItem(OrderSummary dataItem) { - if (this.data == null) { - this.data = new ArrayList<>(); - } - this.data.add(dataItem); - return this; - } - - /** - * Get data - * - * @return data - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getData() { - return data; - } - - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setData(@jakarta.annotation.Nonnull List data) { - this.data = data; - } - - public GetOrdersResponse total(@jakarta.annotation.Nonnull Integer total) { - this.total = total; - return this; - } - - /** - * Total number of orders matching the query. - * - * @return total - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TOTAL) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getTotal() { - return total; - } - - @JsonProperty(JSON_PROPERTY_TOTAL) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTotal(@jakarta.annotation.Nonnull Integer total) { - this.total = total; - } - - public GetOrdersResponse next(@jakarta.annotation.Nullable String next) { - this.next = next; - return this; - } - - /** - * A cursor for the next page of results, if available. - * - * @return next - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NEXT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getNext() { - return next; - } - - @JsonProperty(JSON_PROPERTY_NEXT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNext(@jakarta.annotation.Nullable String next) { - this.next = next; - } - - /** Return true if this GetOrdersResponse object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetOrdersResponse getOrdersResponse = (GetOrdersResponse) o; - return Objects.equals(this.data, getOrdersResponse.data) - && Objects.equals(this.total, getOrdersResponse.total) - && Objects.equals(this.next, getOrdersResponse.next); - } - - @Override - public int hashCode() { - return Objects.hash(data, total, next); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class GetOrdersResponse {\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" total: ").append(toIndentedString(total)).append("\n"); - sb.append(" next: ").append(toIndentedString(next)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `data` to the URL query string - if (getData() != null) { - for (int i = 0; i < getData().size(); i++) { - if (getData().get(i) != null) { - joiner.add( - getData() - .get(i) - .toUrlQueryString( - String.format( - "%sdata%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } - } - - // add `total` to the URL query string - if (getTotal() != null) { - joiner.add( - String.format( - "%stotal%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getTotal())))); - } - - // add `next` to the URL query string - if (getNext() != null) { - joiner.add( - String.format( - "%snext%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getNext())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/GetOwnershipTokensResponse.java b/src/main/java/com/fireblocks/sdk/model/GetOwnershipTokensResponse.java index dd19bb2f..fc883ce9 100644 --- a/src/main/java/com/fireblocks/sdk/model/GetOwnershipTokensResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/GetOwnershipTokensResponse.java @@ -34,7 +34,7 @@ public class GetOwnershipTokensResponse { @jakarta.annotation.Nullable private Paging paging; public static final String JSON_PROPERTY_DATA = "data"; - @jakarta.annotation.Nullable private List data = new ArrayList<>(); + @jakarta.annotation.Nullable private List data; public GetOwnershipTokensResponse() {} diff --git a/src/main/java/com/fireblocks/sdk/model/GetSigningKeyResponseDto.java b/src/main/java/com/fireblocks/sdk/model/GetSigningKeyResponseDto.java index 62d926fd..f82ec199 100644 --- a/src/main/java/com/fireblocks/sdk/model/GetSigningKeyResponseDto.java +++ b/src/main/java/com/fireblocks/sdk/model/GetSigningKeyResponseDto.java @@ -33,7 +33,7 @@ comments = "Generator version: 7.14.0") public class GetSigningKeyResponseDto { public static final String JSON_PROPERTY_DATA = "data"; - @jakarta.annotation.Nonnull private List data = new ArrayList<>(); + @jakarta.annotation.Nonnull private List data; public static final String JSON_PROPERTY_NEXT = "next"; @jakarta.annotation.Nullable private String next; diff --git a/src/main/java/com/fireblocks/sdk/model/GetTransactionOperation.java b/src/main/java/com/fireblocks/sdk/model/GetTransactionOperation.java index 816fdad2..2b9a5a05 100644 --- a/src/main/java/com/fireblocks/sdk/model/GetTransactionOperation.java +++ b/src/main/java/com/fireblocks/sdk/model/GetTransactionOperation.java @@ -48,11 +48,7 @@ * this as their operation, in case users in the workspace have used the direct integration between * Fireblocks and the Compound DeFI protocol. * `REDEEM_FROM_COMPOUND` - Deprecated since * April 1st, 2023. Older transactions may have this as their operation, in case users in the - * workspace have used the direct integration between Fireblocks and the Compound DeFI protocol. * - * `PROGRAM_CALL` - In Solana refers to invoking on-chain programs (smart contracts) to - * execute transactions and interact with the blockchain. * `APPROVE` - Enables the - * approve function for a smart contract or wallet to withdraw from a designated wallet. [Learn - * more](https://support.fireblocks.io/hc/en-us/articles/4404616097426-Amount-Cap-for-Approve-transactions). + * workspace have used the direct integration between Fireblocks and the Compound DeFI protocol. */ public enum GetTransactionOperation { TRANSFER("TRANSFER"), @@ -77,11 +73,7 @@ public enum GetTransactionOperation { REDEEM_FROM_COMPOUND("REDEEM_FROM_COMPOUND"), - SUPPLY_TO_COMPOUND("SUPPLY_TO_COMPOUND"), - - PROGRAM_CALL("PROGRAM_CALL"), - - APPROVE("APPROVE"); + SUPPLY_TO_COMPOUND("SUPPLY_TO_COMPOUND"); private String value; diff --git a/src/main/java/com/fireblocks/sdk/model/GetValidationKeyResponseDto.java b/src/main/java/com/fireblocks/sdk/model/GetValidationKeyResponseDto.java index 6f41c1f7..a89401e2 100644 --- a/src/main/java/com/fireblocks/sdk/model/GetValidationKeyResponseDto.java +++ b/src/main/java/com/fireblocks/sdk/model/GetValidationKeyResponseDto.java @@ -33,7 +33,7 @@ comments = "Generator version: 7.14.0") public class GetValidationKeyResponseDto { public static final String JSON_PROPERTY_DATA = "data"; - @jakarta.annotation.Nonnull private List data = new ArrayList<>(); + @jakarta.annotation.Nonnull private List data; public static final String JSON_PROPERTY_NEXT = "next"; @jakarta.annotation.Nullable private String next; diff --git a/src/main/java/com/fireblocks/sdk/model/Identification.java b/src/main/java/com/fireblocks/sdk/model/Identification.java deleted file mode 100644 index 8cdbac48..00000000 --- a/src/main/java/com/fireblocks/sdk/model/Identification.java +++ /dev/null @@ -1,336 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.core.JsonGenerator; -import com.fasterxml.jackson.core.JsonParser; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.core.JsonToken; -import com.fasterxml.jackson.databind.DeserializationContext; -import com.fasterxml.jackson.databind.JsonMappingException; -import com.fasterxml.jackson.databind.JsonNode; -import com.fasterxml.jackson.databind.MapperFeature; -import com.fasterxml.jackson.databind.SerializerProvider; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import com.fasterxml.jackson.databind.deser.std.StdDeserializer; -import com.fasterxml.jackson.databind.ser.std.StdSerializer; -import com.fireblocks.sdk.JSON; -import java.io.IOException; -import java.util.Collections; -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; -import java.util.StringJoiner; -import java.util.logging.Level; -import java.util.logging.Logger; - -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -@JsonDeserialize(using = Identification.IdentificationDeserializer.class) -@JsonSerialize(using = Identification.IdentificationSerializer.class) -public class Identification extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(Identification.class.getName()); - - public static class IdentificationSerializer extends StdSerializer { - public IdentificationSerializer(Class t) { - super(t); - } - - public IdentificationSerializer() { - this(null); - } - - @Override - public void serialize(Identification value, JsonGenerator jgen, SerializerProvider provider) - throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); - } - } - - public static class IdentificationDeserializer extends StdDeserializer { - public IdentificationDeserializer() { - this(Identification.class); - } - - public IdentificationDeserializer(Class vc) { - super(vc); - } - - @Override - public Identification deserialize(JsonParser jp, DeserializationContext ctxt) - throws IOException, JsonProcessingException { - JsonNode tree = jp.readValueAsTree(); - Object deserialized = null; - boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); - int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); - // deserialize BusinessIdentification - try { - boolean attemptParsing = true; - // ensure that we respect type coercion as set on the client ObjectMapper - if (BusinessIdentification.class.equals(Integer.class) - || BusinessIdentification.class.equals(Long.class) - || BusinessIdentification.class.equals(Float.class) - || BusinessIdentification.class.equals(Double.class) - || BusinessIdentification.class.equals(Boolean.class) - || BusinessIdentification.class.equals(String.class)) { - attemptParsing = typeCoercion; - if (!attemptParsing) { - attemptParsing |= - ((BusinessIdentification.class.equals(Integer.class) - || BusinessIdentification.class.equals(Long.class)) - && token == JsonToken.VALUE_NUMBER_INT); - attemptParsing |= - ((BusinessIdentification.class.equals(Float.class) - || BusinessIdentification.class.equals( - Double.class)) - && token == JsonToken.VALUE_NUMBER_FLOAT); - attemptParsing |= - (BusinessIdentification.class.equals(Boolean.class) - && (token == JsonToken.VALUE_FALSE - || token == JsonToken.VALUE_TRUE)); - attemptParsing |= - (BusinessIdentification.class.equals(String.class) - && token == JsonToken.VALUE_STRING); - } - } - if (attemptParsing) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(BusinessIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'BusinessIdentification'"); - } - } catch (Exception e) { - // deserialization failed, continue - log.log( - Level.FINER, - "Input data does not match schema 'BusinessIdentification'", - e); - } - - // deserialize PersonalIdentification - try { - boolean attemptParsing = true; - // ensure that we respect type coercion as set on the client ObjectMapper - if (PersonalIdentification.class.equals(Integer.class) - || PersonalIdentification.class.equals(Long.class) - || PersonalIdentification.class.equals(Float.class) - || PersonalIdentification.class.equals(Double.class) - || PersonalIdentification.class.equals(Boolean.class) - || PersonalIdentification.class.equals(String.class)) { - attemptParsing = typeCoercion; - if (!attemptParsing) { - attemptParsing |= - ((PersonalIdentification.class.equals(Integer.class) - || PersonalIdentification.class.equals(Long.class)) - && token == JsonToken.VALUE_NUMBER_INT); - attemptParsing |= - ((PersonalIdentification.class.equals(Float.class) - || PersonalIdentification.class.equals( - Double.class)) - && token == JsonToken.VALUE_NUMBER_FLOAT); - attemptParsing |= - (PersonalIdentification.class.equals(Boolean.class) - && (token == JsonToken.VALUE_FALSE - || token == JsonToken.VALUE_TRUE)); - attemptParsing |= - (PersonalIdentification.class.equals(String.class) - && token == JsonToken.VALUE_STRING); - } - } - if (attemptParsing) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(PersonalIdentification.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'PersonalIdentification'"); - } - } catch (Exception e) { - // deserialization failed, continue - log.log( - Level.FINER, - "Input data does not match schema 'PersonalIdentification'", - e); - } - - if (match == 1) { - Identification ret = new Identification(); - ret.setActualInstance(deserialized); - return ret; - } - throw new IOException( - String.format( - "Failed deserialization for Identification: %d classes match result," - + " expected 1", - match)); - } - - /** Handle deserialization of the 'null' value. */ - @Override - public Identification getNullValue(DeserializationContext ctxt) - throws JsonMappingException { - throw new JsonMappingException(ctxt.getParser(), "Identification cannot be null"); - } - } - - // store a list of schema names defined in oneOf - public static final Map> schemas = new HashMap<>(); - - public Identification() { - super("oneOf", Boolean.FALSE); - } - - public Identification(BusinessIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public Identification(PersonalIdentification o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("BusinessIdentification", BusinessIdentification.class); - schemas.put("PersonalIdentification", PersonalIdentification.class); - JSON.registerDescendants(Identification.class, Collections.unmodifiableMap(schemas)); - // Initialize and register the discriminator mappings. - Map> mappings = new HashMap>(); - mappings.put("BUSINESS", BusinessIdentification.class); - mappings.put("INDIVIDUAL", PersonalIdentification.class); - mappings.put("BusinessIdentification", BusinessIdentification.class); - mappings.put("PersonalIdentification", PersonalIdentification.class); - mappings.put("Identification", Identification.class); - JSON.registerDiscriminator(Identification.class, "entityType", mappings); - } - - @Override - public Map> getSchemas() { - return Identification.schemas; - } - - /** - * Set the instance that matches the oneOf child schema, check the instance parameter is valid - * against the oneOf child schemas: BusinessIdentification, PersonalIdentification - * - *

It could be an instance of the 'oneOf' schemas. The oneOf child schemas may themselves be - * a composed schema (allOf, anyOf, oneOf). - */ - @Override - public void setActualInstance(Object instance) { - if (JSON.isInstanceOf(BusinessIdentification.class, instance, new HashSet>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(PersonalIdentification.class, instance, new HashSet>())) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException( - "Invalid instance type. Must be BusinessIdentification, PersonalIdentification"); - } - - /** - * Get the actual instance, which can be the following: BusinessIdentification, - * PersonalIdentification - * - * @return The actual instance (BusinessIdentification, PersonalIdentification) - */ - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `BusinessIdentification`. If the actual instance is not - * `BusinessIdentification`, the ClassCastException will be thrown. - * - * @return The actual instance of `BusinessIdentification` - * @throws ClassCastException if the instance is not `BusinessIdentification` - */ - public BusinessIdentification getBusinessIdentification() throws ClassCastException { - return (BusinessIdentification) super.getActualInstance(); - } - - /** - * Get the actual instance of `PersonalIdentification`. If the actual instance is not - * `PersonalIdentification`, the ClassCastException will be thrown. - * - * @return The actual instance of `PersonalIdentification` - * @throws ClassCastException if the instance is not `PersonalIdentification` - */ - public PersonalIdentification getPersonalIdentification() throws ClassCastException { - return (PersonalIdentification) super.getActualInstance(); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - if (getActualInstance() instanceof PersonalIdentification) { - if (getActualInstance() != null) { - joiner.add( - ((PersonalIdentification) getActualInstance()) - .toUrlQueryString(prefix + "one_of_0" + suffix)); - } - return joiner.toString(); - } - if (getActualInstance() instanceof BusinessIdentification) { - if (getActualInstance() != null) { - joiner.add( - ((BusinessIdentification) getActualInstance()) - .toUrlQueryString(prefix + "one_of_1" + suffix)); - } - return joiner.toString(); - } - return null; - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/IdlType.java b/src/main/java/com/fireblocks/sdk/model/IdlType.java deleted file mode 100644 index 7b50eda4..00000000 --- a/src/main/java/com/fireblocks/sdk/model/IdlType.java +++ /dev/null @@ -1,96 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - -/** The type of the parameter */ -public enum IdlType { - BOOL("bool"), - - U8("u8"), - - I8("i8"), - - U16("u16"), - - I16("i16"), - - U32("u32"), - - I32("i32"), - - F32("f32"), - - U64("u64"), - - I64("i64"), - - F64("f64"), - - U128("u128"), - - I128("i128"), - - U256("u256"), - - I256("i256"), - - BYTES("bytes"), - - STRING("string"), - - PUBKEY("pubkey"); - - private String value; - - IdlType(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static IdlType fromValue(String value) { - for (IdlType b : IdlType.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - if (prefix == null) { - prefix = ""; - } - - return String.format("%s=%s", prefix, this.toString()); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/IndicativeQuoteType.java b/src/main/java/com/fireblocks/sdk/model/IndicativeQuoteType.java deleted file mode 100644 index 05f4489e..00000000 --- a/src/main/java/com/fireblocks/sdk/model/IndicativeQuoteType.java +++ /dev/null @@ -1,178 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** IndicativeQuoteType */ -@JsonPropertyOrder({IndicativeQuoteType.JSON_PROPERTY_TYPE}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class IndicativeQuoteType { - /** Indicates this is an indicative quote */ - public enum TypeEnum { - INDICATIVE(String.valueOf("INDICATIVE")); - - private String value; - - TypeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static TypeEnum fromValue(String value) { - for (TypeEnum b : TypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_TYPE = "type"; - @jakarta.annotation.Nonnull private TypeEnum type; - - public IndicativeQuoteType() {} - - @JsonCreator - public IndicativeQuoteType( - @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) TypeEnum type) { - this.type = type; - } - - public IndicativeQuoteType type(@jakarta.annotation.Nonnull TypeEnum type) { - this.type = type; - return this; - } - - /** - * Indicates this is an indicative quote - * - * @return type - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { - return type; - } - - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(@jakarta.annotation.Nonnull TypeEnum type) { - this.type = type; - } - - /** Return true if this IndicativeQuoteType object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - IndicativeQuoteType indicativeQuoteType = (IndicativeQuoteType) o; - return Objects.equals(this.type, indicativeQuoteType.type); - } - - @Override - public int hashCode() { - return Objects.hash(type); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class IndicativeQuoteType {\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `type` to the URL query string - if (getType() != null) { - joiner.add( - String.format( - "%stype%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getType())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/InitiatorConfig.java b/src/main/java/com/fireblocks/sdk/model/InitiatorConfig.java deleted file mode 100644 index e0c3ab61..00000000 --- a/src/main/java/com/fireblocks/sdk/model/InitiatorConfig.java +++ /dev/null @@ -1,419 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** Policy rule initiator configuration */ -@JsonPropertyOrder({ - InitiatorConfig.JSON_PROPERTY_USERS, - InitiatorConfig.JSON_PROPERTY_GROUPS, - InitiatorConfig.JSON_PROPERTY_SERVICES, - InitiatorConfig.JSON_PROPERTY_FB_ADMIN_GROUPS, - InitiatorConfig.JSON_PROPERTY_EXCHANGE, - InitiatorConfig.JSON_PROPERTY_OPERATOR -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class InitiatorConfig { - public static final String JSON_PROPERTY_USERS = "users"; - @jakarta.annotation.Nullable private List users = new ArrayList<>(); - - public static final String JSON_PROPERTY_GROUPS = "groups"; - @jakarta.annotation.Nullable private List groups = new ArrayList<>(); - - public static final String JSON_PROPERTY_SERVICES = "services"; - @jakarta.annotation.Nullable private List services = new ArrayList<>(); - - public static final String JSON_PROPERTY_FB_ADMIN_GROUPS = "fbAdminGroups"; - @jakarta.annotation.Nullable private List fbAdminGroups = new ArrayList<>(); - - public static final String JSON_PROPERTY_EXCHANGE = "exchange"; - @jakarta.annotation.Nullable private List exchange = new ArrayList<>(); - - public static final String JSON_PROPERTY_OPERATOR = "operator"; - @jakarta.annotation.Nonnull private PolicyOperator operator; - - public InitiatorConfig() {} - - @JsonCreator - public InitiatorConfig( - @JsonProperty(value = JSON_PROPERTY_OPERATOR, required = true) - PolicyOperator operator) { - this.operator = operator; - } - - public InitiatorConfig users(@jakarta.annotation.Nullable List users) { - this.users = users; - return this; - } - - public InitiatorConfig addUsersItem(String usersItem) { - if (this.users == null) { - this.users = new ArrayList<>(); - } - this.users.add(usersItem); - return this; - } - - /** - * List of user IDs - * - * @return users - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USERS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getUsers() { - return users; - } - - @JsonProperty(JSON_PROPERTY_USERS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUsers(@jakarta.annotation.Nullable List users) { - this.users = users; - } - - public InitiatorConfig groups(@jakarta.annotation.Nullable List groups) { - this.groups = groups; - return this; - } - - public InitiatorConfig addGroupsItem(String groupsItem) { - if (this.groups == null) { - this.groups = new ArrayList<>(); - } - this.groups.add(groupsItem); - return this; - } - - /** - * List of policy group IDs - * - * @return groups - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_GROUPS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getGroups() { - return groups; - } - - @JsonProperty(JSON_PROPERTY_GROUPS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setGroups(@jakarta.annotation.Nullable List groups) { - this.groups = groups; - } - - public InitiatorConfig services(@jakarta.annotation.Nullable List services) { - this.services = services; - return this; - } - - public InitiatorConfig addServicesItem(String servicesItem) { - if (this.services == null) { - this.services = new ArrayList<>(); - } - this.services.add(servicesItem); - return this; - } - - /** - * Get services - * - * @return services - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SERVICES) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getServices() { - return services; - } - - @JsonProperty(JSON_PROPERTY_SERVICES) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setServices(@jakarta.annotation.Nullable List services) { - this.services = services; - } - - public InitiatorConfig fbAdminGroups(@jakarta.annotation.Nullable List fbAdminGroups) { - this.fbAdminGroups = fbAdminGroups; - return this; - } - - public InitiatorConfig addFbAdminGroupsItem(String fbAdminGroupsItem) { - if (this.fbAdminGroups == null) { - this.fbAdminGroups = new ArrayList<>(); - } - this.fbAdminGroups.add(fbAdminGroupsItem); - return this; - } - - /** - * Get fbAdminGroups - * - * @return fbAdminGroups - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FB_ADMIN_GROUPS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getFbAdminGroups() { - return fbAdminGroups; - } - - @JsonProperty(JSON_PROPERTY_FB_ADMIN_GROUPS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFbAdminGroups(@jakarta.annotation.Nullable List fbAdminGroups) { - this.fbAdminGroups = fbAdminGroups; - } - - public InitiatorConfig exchange(@jakarta.annotation.Nullable List exchange) { - this.exchange = exchange; - return this; - } - - public InitiatorConfig addExchangeItem(String exchangeItem) { - if (this.exchange == null) { - this.exchange = new ArrayList<>(); - } - this.exchange.add(exchangeItem); - return this; - } - - /** - * Get exchange - * - * @return exchange - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EXCHANGE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getExchange() { - return exchange; - } - - @JsonProperty(JSON_PROPERTY_EXCHANGE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setExchange(@jakarta.annotation.Nullable List exchange) { - this.exchange = exchange; - } - - public InitiatorConfig operator(@jakarta.annotation.Nonnull PolicyOperator operator) { - this.operator = operator; - return this; - } - - /** - * Get operator - * - * @return operator - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_OPERATOR) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public PolicyOperator getOperator() { - return operator; - } - - @JsonProperty(JSON_PROPERTY_OPERATOR) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setOperator(@jakarta.annotation.Nonnull PolicyOperator operator) { - this.operator = operator; - } - - /** Return true if this InitiatorConfig object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - InitiatorConfig initiatorConfig = (InitiatorConfig) o; - return Objects.equals(this.users, initiatorConfig.users) - && Objects.equals(this.groups, initiatorConfig.groups) - && Objects.equals(this.services, initiatorConfig.services) - && Objects.equals(this.fbAdminGroups, initiatorConfig.fbAdminGroups) - && Objects.equals(this.exchange, initiatorConfig.exchange) - && Objects.equals(this.operator, initiatorConfig.operator); - } - - @Override - public int hashCode() { - return Objects.hash(users, groups, services, fbAdminGroups, exchange, operator); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class InitiatorConfig {\n"); - sb.append(" users: ").append(toIndentedString(users)).append("\n"); - sb.append(" groups: ").append(toIndentedString(groups)).append("\n"); - sb.append(" services: ").append(toIndentedString(services)).append("\n"); - sb.append(" fbAdminGroups: ").append(toIndentedString(fbAdminGroups)).append("\n"); - sb.append(" exchange: ").append(toIndentedString(exchange)).append("\n"); - sb.append(" operator: ").append(toIndentedString(operator)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `users` to the URL query string - if (getUsers() != null) { - for (int i = 0; i < getUsers().size(); i++) { - joiner.add( - String.format( - "%susers%s%s=%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode(ApiClient.valueToString(getUsers().get(i))))); - } - } - - // add `groups` to the URL query string - if (getGroups() != null) { - for (int i = 0; i < getGroups().size(); i++) { - joiner.add( - String.format( - "%sgroups%s%s=%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode(ApiClient.valueToString(getGroups().get(i))))); - } - } - - // add `services` to the URL query string - if (getServices() != null) { - for (int i = 0; i < getServices().size(); i++) { - joiner.add( - String.format( - "%sservices%s%s=%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode( - ApiClient.valueToString(getServices().get(i))))); - } - } - - // add `fbAdminGroups` to the URL query string - if (getFbAdminGroups() != null) { - for (int i = 0; i < getFbAdminGroups().size(); i++) { - joiner.add( - String.format( - "%sfbAdminGroups%s%s=%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode( - ApiClient.valueToString(getFbAdminGroups().get(i))))); - } - } - - // add `exchange` to the URL query string - if (getExchange() != null) { - for (int i = 0; i < getExchange().size(); i++) { - joiner.add( - String.format( - "%sexchange%s%s=%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode( - ApiClient.valueToString(getExchange().get(i))))); - } - } - - // add `operator` to the URL query string - if (getOperator() != null) { - joiner.add( - String.format( - "%soperator%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getOperator())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/InternalReference.java b/src/main/java/com/fireblocks/sdk/model/InternalReference.java deleted file mode 100644 index 8061f69d..00000000 --- a/src/main/java/com/fireblocks/sdk/model/InternalReference.java +++ /dev/null @@ -1,189 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** InternalReference */ -@JsonPropertyOrder({ - InternalReference.JSON_PROPERTY_TYPE, - InternalReference.JSON_PROPERTY_ACCOUNT_ID -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class InternalReference { - public static final String JSON_PROPERTY_TYPE = "type"; - @jakarta.annotation.Nonnull private PeerType type; - - public static final String JSON_PROPERTY_ACCOUNT_ID = "accountId"; - @jakarta.annotation.Nonnull private String accountId; - - public InternalReference() {} - - @JsonCreator - public InternalReference( - @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) PeerType type, - @JsonProperty(value = JSON_PROPERTY_ACCOUNT_ID, required = true) String accountId) { - this.type = type; - this.accountId = accountId; - } - - public InternalReference type(@jakarta.annotation.Nonnull PeerType type) { - this.type = type; - return this; - } - - /** - * Get type - * - * @return type - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public PeerType getType() { - return type; - } - - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(@jakarta.annotation.Nonnull PeerType type) { - this.type = type; - } - - public InternalReference accountId(@jakarta.annotation.Nonnull String accountId) { - this.accountId = accountId; - return this; - } - - /** - * Get accountId - * - * @return accountId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getAccountId() { - return accountId; - } - - @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAccountId(@jakarta.annotation.Nonnull String accountId) { - this.accountId = accountId; - } - - /** Return true if this InternalReference object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - InternalReference internalReference = (InternalReference) o; - return Objects.equals(this.type, internalReference.type) - && Objects.equals(this.accountId, internalReference.accountId); - } - - @Override - public int hashCode() { - return Objects.hash(type, accountId); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class InternalReference {\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `type` to the URL query string - if (getType() != null) { - joiner.add( - String.format( - "%stype%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getType())))); - } - - // add `accountId` to the URL query string - if (getAccountId() != null) { - joiner.add( - String.format( - "%saccountId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAccountId())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/InternalTransferResponse.java b/src/main/java/com/fireblocks/sdk/model/InternalTransferResponse.java index 9b3cd620..5f70b8a6 100644 --- a/src/main/java/com/fireblocks/sdk/model/InternalTransferResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/InternalTransferResponse.java @@ -22,10 +22,7 @@ import java.util.StringJoiner; /** InternalTransferResponse */ -@JsonPropertyOrder({ - InternalTransferResponse.JSON_PROPERTY_SUCCESS, - InternalTransferResponse.JSON_PROPERTY_ID -}) +@JsonPropertyOrder({InternalTransferResponse.JSON_PROPERTY_SUCCESS}) @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") @@ -33,9 +30,6 @@ public class InternalTransferResponse { public static final String JSON_PROPERTY_SUCCESS = "success"; @jakarta.annotation.Nonnull private Boolean success; - public static final String JSON_PROPERTY_ID = "id"; - @jakarta.annotation.Nullable private String id; - public InternalTransferResponse() {} @JsonCreator @@ -67,29 +61,6 @@ public void setSuccess(@jakarta.annotation.Nonnull Boolean success) { this.success = success; } - public InternalTransferResponse id(@jakarta.annotation.Nullable String id) { - this.id = id; - return this; - } - - /** - * The transaction ID of the internal transfer - * - * @return id - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getId() { - return id; - } - - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(@jakarta.annotation.Nullable String id) { - this.id = id; - } - /** Return true if this InternalTransferResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -100,13 +71,12 @@ public boolean equals(Object o) { return false; } InternalTransferResponse internalTransferResponse = (InternalTransferResponse) o; - return Objects.equals(this.success, internalTransferResponse.success) - && Objects.equals(this.id, internalTransferResponse.id); + return Objects.equals(this.success, internalTransferResponse.success); } @Override public int hashCode() { - return Objects.hash(success, id); + return Objects.hash(success); } @Override @@ -114,7 +84,6 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class InternalTransferResponse {\n"); sb.append(" success: ").append(toIndentedString(success)).append("\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append("}"); return sb.toString(); } @@ -172,14 +141,6 @@ public String toUrlQueryString(String prefix) { ApiClient.urlEncode(ApiClient.valueToString(getSuccess())))); } - // add `id` to the URL query string - if (getId() != null) { - joiner.add( - String.format( - "%sid%s=%s", - prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); - } - return joiner.toString(); } } diff --git a/src/main/java/com/fireblocks/sdk/model/InvalidParamaterValueError.java b/src/main/java/com/fireblocks/sdk/model/InvalidParamaterValueError.java deleted file mode 100644 index f99083d8..00000000 --- a/src/main/java/com/fireblocks/sdk/model/InvalidParamaterValueError.java +++ /dev/null @@ -1,190 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.math.BigDecimal; -import java.util.Objects; -import java.util.StringJoiner; - -/** InvalidParamaterValueError */ -@JsonPropertyOrder({ - InvalidParamaterValueError.JSON_PROPERTY_MESSAGE, - InvalidParamaterValueError.JSON_PROPERTY_CODE -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class InvalidParamaterValueError { - public static final String JSON_PROPERTY_MESSAGE = "message"; - @jakarta.annotation.Nonnull private String message; - - public static final String JSON_PROPERTY_CODE = "code"; - @jakarta.annotation.Nonnull private BigDecimal code; - - public InvalidParamaterValueError() {} - - @JsonCreator - public InvalidParamaterValueError( - @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = true) String message, - @JsonProperty(value = JSON_PROPERTY_CODE, required = true) BigDecimal code) { - this.message = message; - this.code = code; - } - - public InvalidParamaterValueError message(@jakarta.annotation.Nonnull String message) { - this.message = message; - return this; - } - - /** - * Bad request error message - * - * @return message - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_MESSAGE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getMessage() { - return message; - } - - @JsonProperty(JSON_PROPERTY_MESSAGE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setMessage(@jakarta.annotation.Nonnull String message) { - this.message = message; - } - - public InvalidParamaterValueError code(@jakarta.annotation.Nonnull BigDecimal code) { - this.code = code; - return this; - } - - /** - * Error code - * - * @return code - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CODE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public BigDecimal getCode() { - return code; - } - - @JsonProperty(JSON_PROPERTY_CODE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCode(@jakarta.annotation.Nonnull BigDecimal code) { - this.code = code; - } - - /** Return true if this InvalidParamaterValueError object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - InvalidParamaterValueError invalidParamaterValueError = (InvalidParamaterValueError) o; - return Objects.equals(this.message, invalidParamaterValueError.message) - && Objects.equals(this.code, invalidParamaterValueError.code); - } - - @Override - public int hashCode() { - return Objects.hash(message, code); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class InvalidParamaterValueError {\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); - sb.append(" code: ").append(toIndentedString(code)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `message` to the URL query string - if (getMessage() != null) { - joiner.add( - String.format( - "%smessage%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getMessage())))); - } - - // add `code` to the URL query string - if (getCode() != null) { - joiner.add( - String.format( - "%scode%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getCode())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/Job.java b/src/main/java/com/fireblocks/sdk/model/Job.java index cf9ecb12..7cba28f8 100644 --- a/src/main/java/com/fireblocks/sdk/model/Job.java +++ b/src/main/java/com/fireblocks/sdk/model/Job.java @@ -60,7 +60,7 @@ public class Job { @jakarta.annotation.Nullable private String state; public static final String JSON_PROPERTY_TASKS = "tasks"; - @jakarta.annotation.Nullable private List tasks = new ArrayList<>(); + @jakarta.annotation.Nullable private List tasks; public Job() {} diff --git a/src/main/java/com/fireblocks/sdk/model/LayerZeroAdapterCreateParams.java b/src/main/java/com/fireblocks/sdk/model/LayerZeroAdapterCreateParams.java deleted file mode 100644 index 426666ff..00000000 --- a/src/main/java/com/fireblocks/sdk/model/LayerZeroAdapterCreateParams.java +++ /dev/null @@ -1,284 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** LayerZeroAdapterCreateParams */ -@JsonPropertyOrder({ - LayerZeroAdapterCreateParams.JSON_PROPERTY_TOKEN_LINK_ID, - LayerZeroAdapterCreateParams.JSON_PROPERTY_DELEGATE_ADDRESS, - LayerZeroAdapterCreateParams.JSON_PROPERTY_DEFAULT_ADMIN_ADDRESS, - LayerZeroAdapterCreateParams.JSON_PROPERTY_PAUSER_ADDRESS -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class LayerZeroAdapterCreateParams { - public static final String JSON_PROPERTY_TOKEN_LINK_ID = "tokenLinkId"; - @jakarta.annotation.Nonnull private String tokenLinkId; - - public static final String JSON_PROPERTY_DELEGATE_ADDRESS = "delegateAddress"; - @jakarta.annotation.Nonnull private String delegateAddress; - - public static final String JSON_PROPERTY_DEFAULT_ADMIN_ADDRESS = "defaultAdminAddress"; - @jakarta.annotation.Nonnull private String defaultAdminAddress; - - public static final String JSON_PROPERTY_PAUSER_ADDRESS = "pauserAddress"; - @jakarta.annotation.Nonnull private String pauserAddress; - - public LayerZeroAdapterCreateParams() {} - - @JsonCreator - public LayerZeroAdapterCreateParams( - @JsonProperty(value = JSON_PROPERTY_TOKEN_LINK_ID, required = true) String tokenLinkId, - @JsonProperty(value = JSON_PROPERTY_DELEGATE_ADDRESS, required = true) - String delegateAddress, - @JsonProperty(value = JSON_PROPERTY_DEFAULT_ADMIN_ADDRESS, required = true) - String defaultAdminAddress, - @JsonProperty(value = JSON_PROPERTY_PAUSER_ADDRESS, required = true) - String pauserAddress) { - this.tokenLinkId = tokenLinkId; - this.delegateAddress = delegateAddress; - this.defaultAdminAddress = defaultAdminAddress; - this.pauserAddress = pauserAddress; - } - - public LayerZeroAdapterCreateParams tokenLinkId( - @jakarta.annotation.Nonnull String tokenLinkId) { - this.tokenLinkId = tokenLinkId; - return this; - } - - /** - * The token link id of the base token to deploy the adapters for - * - * @return tokenLinkId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TOKEN_LINK_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getTokenLinkId() { - return tokenLinkId; - } - - @JsonProperty(JSON_PROPERTY_TOKEN_LINK_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTokenLinkId(@jakarta.annotation.Nonnull String tokenLinkId) { - this.tokenLinkId = tokenLinkId; - } - - public LayerZeroAdapterCreateParams delegateAddress( - @jakarta.annotation.Nonnull String delegateAddress) { - this.delegateAddress = delegateAddress; - return this; - } - - /** - * Address that will receive `CONTRACT_ADMIN_ROLE`. - * - * @return delegateAddress - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DELEGATE_ADDRESS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getDelegateAddress() { - return delegateAddress; - } - - @JsonProperty(JSON_PROPERTY_DELEGATE_ADDRESS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDelegateAddress(@jakarta.annotation.Nonnull String delegateAddress) { - this.delegateAddress = delegateAddress; - } - - public LayerZeroAdapterCreateParams defaultAdminAddress( - @jakarta.annotation.Nonnull String defaultAdminAddress) { - this.defaultAdminAddress = defaultAdminAddress; - return this; - } - - /** - * Address that will receive `DEFAULT_ADMIN_ROLE` on the adapter contract. - * - * @return defaultAdminAddress - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DEFAULT_ADMIN_ADDRESS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getDefaultAdminAddress() { - return defaultAdminAddress; - } - - @JsonProperty(JSON_PROPERTY_DEFAULT_ADMIN_ADDRESS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDefaultAdminAddress(@jakarta.annotation.Nonnull String defaultAdminAddress) { - this.defaultAdminAddress = defaultAdminAddress; - } - - public LayerZeroAdapterCreateParams pauserAddress( - @jakarta.annotation.Nonnull String pauserAddress) { - this.pauserAddress = pauserAddress; - return this; - } - - /** - * Address that will receive `PAUSER_ROLE`. - * - * @return pauserAddress - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PAUSER_ADDRESS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getPauserAddress() { - return pauserAddress; - } - - @JsonProperty(JSON_PROPERTY_PAUSER_ADDRESS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPauserAddress(@jakarta.annotation.Nonnull String pauserAddress) { - this.pauserAddress = pauserAddress; - } - - /** Return true if this LayerZeroAdapterCreateParams object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - LayerZeroAdapterCreateParams layerZeroAdapterCreateParams = - (LayerZeroAdapterCreateParams) o; - return Objects.equals(this.tokenLinkId, layerZeroAdapterCreateParams.tokenLinkId) - && Objects.equals( - this.delegateAddress, layerZeroAdapterCreateParams.delegateAddress) - && Objects.equals( - this.defaultAdminAddress, layerZeroAdapterCreateParams.defaultAdminAddress) - && Objects.equals(this.pauserAddress, layerZeroAdapterCreateParams.pauserAddress); - } - - @Override - public int hashCode() { - return Objects.hash(tokenLinkId, delegateAddress, defaultAdminAddress, pauserAddress); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class LayerZeroAdapterCreateParams {\n"); - sb.append(" tokenLinkId: ").append(toIndentedString(tokenLinkId)).append("\n"); - sb.append(" delegateAddress: ").append(toIndentedString(delegateAddress)).append("\n"); - sb.append(" defaultAdminAddress: ") - .append(toIndentedString(defaultAdminAddress)) - .append("\n"); - sb.append(" pauserAddress: ").append(toIndentedString(pauserAddress)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `tokenLinkId` to the URL query string - if (getTokenLinkId() != null) { - joiner.add( - String.format( - "%stokenLinkId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getTokenLinkId())))); - } - - // add `delegateAddress` to the URL query string - if (getDelegateAddress() != null) { - joiner.add( - String.format( - "%sdelegateAddress%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getDelegateAddress())))); - } - - // add `defaultAdminAddress` to the URL query string - if (getDefaultAdminAddress() != null) { - joiner.add( - String.format( - "%sdefaultAdminAddress%s=%s", - prefix, - suffix, - ApiClient.urlEncode( - ApiClient.valueToString(getDefaultAdminAddress())))); - } - - // add `pauserAddress` to the URL query string - if (getPauserAddress() != null) { - joiner.add( - String.format( - "%spauserAddress%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getPauserAddress())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/LbtPaymentInfo.java b/src/main/java/com/fireblocks/sdk/model/LbtPaymentInfo.java deleted file mode 100644 index 57e9a6c7..00000000 --- a/src/main/java/com/fireblocks/sdk/model/LbtPaymentInfo.java +++ /dev/null @@ -1,522 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** LBT (Lebanese Bank Transfer) payment information for Lebanese bank transfers */ -@JsonPropertyOrder({ - LbtPaymentInfo.JSON_PROPERTY_RAIL, - LbtPaymentInfo.JSON_PROPERTY_ADDRESSING_SYSTEM, - LbtPaymentInfo.JSON_PROPERTY_ACCOUNT_HOLDER_GIVEN_NAME, - LbtPaymentInfo.JSON_PROPERTY_ACCOUNT_HOLDER_SURNAME, - LbtPaymentInfo.JSON_PROPERTY_COUNTRY, - LbtPaymentInfo.JSON_PROPERTY_ACCOUNT_NUMBER, - LbtPaymentInfo.JSON_PROPERTY_BANK_NAME, - LbtPaymentInfo.JSON_PROPERTY_BANK_CODE -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class LbtPaymentInfo { - /** The payment rail type for Lebanese bank transfers */ - public enum RailEnum { - LBT(String.valueOf("LBT")); - - private String value; - - RailEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static RailEnum fromValue(String value) { - for (RailEnum b : RailEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_RAIL = "rail"; - @jakarta.annotation.Nonnull private RailEnum rail; - - /** The addressing system used for Lebanese bank transfers (Bank Account Number) */ - public enum AddressingSystemEnum { - BAN(String.valueOf("BAN")); - - private String value; - - AddressingSystemEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static AddressingSystemEnum fromValue(String value) { - for (AddressingSystemEnum b : AddressingSystemEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_ADDRESSING_SYSTEM = "addressingSystem"; - @jakarta.annotation.Nonnull private AddressingSystemEnum addressingSystem; - - public static final String JSON_PROPERTY_ACCOUNT_HOLDER_GIVEN_NAME = "accountHolderGivenName"; - @jakarta.annotation.Nonnull private String accountHolderGivenName; - - public static final String JSON_PROPERTY_ACCOUNT_HOLDER_SURNAME = "accountHolderSurname"; - @jakarta.annotation.Nonnull private String accountHolderSurname; - - public static final String JSON_PROPERTY_COUNTRY = "country"; - @jakarta.annotation.Nonnull private String country; - - public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; - @jakarta.annotation.Nonnull private String accountNumber; - - public static final String JSON_PROPERTY_BANK_NAME = "bankName"; - @jakarta.annotation.Nonnull private String bankName; - - public static final String JSON_PROPERTY_BANK_CODE = "bankCode"; - @jakarta.annotation.Nonnull private String bankCode; - - public LbtPaymentInfo() {} - - @JsonCreator - public LbtPaymentInfo( - @JsonProperty(value = JSON_PROPERTY_RAIL, required = true) RailEnum rail, - @JsonProperty(value = JSON_PROPERTY_ADDRESSING_SYSTEM, required = true) - AddressingSystemEnum addressingSystem, - @JsonProperty(value = JSON_PROPERTY_ACCOUNT_HOLDER_GIVEN_NAME, required = true) - String accountHolderGivenName, - @JsonProperty(value = JSON_PROPERTY_ACCOUNT_HOLDER_SURNAME, required = true) - String accountHolderSurname, - @JsonProperty(value = JSON_PROPERTY_COUNTRY, required = true) String country, - @JsonProperty(value = JSON_PROPERTY_ACCOUNT_NUMBER, required = true) - String accountNumber, - @JsonProperty(value = JSON_PROPERTY_BANK_NAME, required = true) String bankName, - @JsonProperty(value = JSON_PROPERTY_BANK_CODE, required = true) String bankCode) { - this.rail = rail; - this.addressingSystem = addressingSystem; - this.accountHolderGivenName = accountHolderGivenName; - this.accountHolderSurname = accountHolderSurname; - this.country = country; - this.accountNumber = accountNumber; - this.bankName = bankName; - this.bankCode = bankCode; - } - - public LbtPaymentInfo rail(@jakarta.annotation.Nonnull RailEnum rail) { - this.rail = rail; - return this; - } - - /** - * The payment rail type for Lebanese bank transfers - * - * @return rail - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_RAIL) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public RailEnum getRail() { - return rail; - } - - @JsonProperty(JSON_PROPERTY_RAIL) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setRail(@jakarta.annotation.Nonnull RailEnum rail) { - this.rail = rail; - } - - public LbtPaymentInfo addressingSystem( - @jakarta.annotation.Nonnull AddressingSystemEnum addressingSystem) { - this.addressingSystem = addressingSystem; - return this; - } - - /** - * The addressing system used for Lebanese bank transfers (Bank Account Number) - * - * @return addressingSystem - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ADDRESSING_SYSTEM) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AddressingSystemEnum getAddressingSystem() { - return addressingSystem; - } - - @JsonProperty(JSON_PROPERTY_ADDRESSING_SYSTEM) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAddressingSystem( - @jakarta.annotation.Nonnull AddressingSystemEnum addressingSystem) { - this.addressingSystem = addressingSystem; - } - - public LbtPaymentInfo accountHolderGivenName( - @jakarta.annotation.Nonnull String accountHolderGivenName) { - this.accountHolderGivenName = accountHolderGivenName; - return this; - } - - /** - * The given name (first name) of the account holder - * - * @return accountHolderGivenName - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_GIVEN_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getAccountHolderGivenName() { - return accountHolderGivenName; - } - - @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_GIVEN_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAccountHolderGivenName( - @jakarta.annotation.Nonnull String accountHolderGivenName) { - this.accountHolderGivenName = accountHolderGivenName; - } - - public LbtPaymentInfo accountHolderSurname( - @jakarta.annotation.Nonnull String accountHolderSurname) { - this.accountHolderSurname = accountHolderSurname; - return this; - } - - /** - * The surname (last name) of the account holder - * - * @return accountHolderSurname - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_SURNAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getAccountHolderSurname() { - return accountHolderSurname; - } - - @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_SURNAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAccountHolderSurname(@jakarta.annotation.Nonnull String accountHolderSurname) { - this.accountHolderSurname = accountHolderSurname; - } - - public LbtPaymentInfo country(@jakarta.annotation.Nonnull String country) { - this.country = country; - return this; - } - - /** - * The country for the transfer (ISO 3166-1 alpha-2 code) - * - * @return country - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_COUNTRY) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getCountry() { - return country; - } - - @JsonProperty(JSON_PROPERTY_COUNTRY) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCountry(@jakarta.annotation.Nonnull String country) { - this.country = country; - } - - public LbtPaymentInfo accountNumber(@jakarta.annotation.Nonnull String accountNumber) { - this.accountNumber = accountNumber; - return this; - } - - /** - * The bank account number - * - * @return accountNumber - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getAccountNumber() { - return accountNumber; - } - - @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAccountNumber(@jakarta.annotation.Nonnull String accountNumber) { - this.accountNumber = accountNumber; - } - - public LbtPaymentInfo bankName(@jakarta.annotation.Nonnull String bankName) { - this.bankName = bankName; - return this; - } - - /** - * The name of the bank - * - * @return bankName - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BANK_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getBankName() { - return bankName; - } - - @JsonProperty(JSON_PROPERTY_BANK_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBankName(@jakarta.annotation.Nonnull String bankName) { - this.bankName = bankName; - } - - public LbtPaymentInfo bankCode(@jakarta.annotation.Nonnull String bankCode) { - this.bankCode = bankCode; - return this; - } - - /** - * The bank code or identifier - * - * @return bankCode - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BANK_CODE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getBankCode() { - return bankCode; - } - - @JsonProperty(JSON_PROPERTY_BANK_CODE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBankCode(@jakarta.annotation.Nonnull String bankCode) { - this.bankCode = bankCode; - } - - /** Return true if this LbtPaymentInfo object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - LbtPaymentInfo lbtPaymentInfo = (LbtPaymentInfo) o; - return Objects.equals(this.rail, lbtPaymentInfo.rail) - && Objects.equals(this.addressingSystem, lbtPaymentInfo.addressingSystem) - && Objects.equals( - this.accountHolderGivenName, lbtPaymentInfo.accountHolderGivenName) - && Objects.equals(this.accountHolderSurname, lbtPaymentInfo.accountHolderSurname) - && Objects.equals(this.country, lbtPaymentInfo.country) - && Objects.equals(this.accountNumber, lbtPaymentInfo.accountNumber) - && Objects.equals(this.bankName, lbtPaymentInfo.bankName) - && Objects.equals(this.bankCode, lbtPaymentInfo.bankCode); - } - - @Override - public int hashCode() { - return Objects.hash( - rail, - addressingSystem, - accountHolderGivenName, - accountHolderSurname, - country, - accountNumber, - bankName, - bankCode); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class LbtPaymentInfo {\n"); - sb.append(" rail: ").append(toIndentedString(rail)).append("\n"); - sb.append(" addressingSystem: ").append(toIndentedString(addressingSystem)).append("\n"); - sb.append(" accountHolderGivenName: ") - .append(toIndentedString(accountHolderGivenName)) - .append("\n"); - sb.append(" accountHolderSurname: ") - .append(toIndentedString(accountHolderSurname)) - .append("\n"); - sb.append(" country: ").append(toIndentedString(country)).append("\n"); - sb.append(" accountNumber: ").append(toIndentedString(accountNumber)).append("\n"); - sb.append(" bankName: ").append(toIndentedString(bankName)).append("\n"); - sb.append(" bankCode: ").append(toIndentedString(bankCode)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `rail` to the URL query string - if (getRail() != null) { - joiner.add( - String.format( - "%srail%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getRail())))); - } - - // add `addressingSystem` to the URL query string - if (getAddressingSystem() != null) { - joiner.add( - String.format( - "%saddressingSystem%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAddressingSystem())))); - } - - // add `accountHolderGivenName` to the URL query string - if (getAccountHolderGivenName() != null) { - joiner.add( - String.format( - "%saccountHolderGivenName%s=%s", - prefix, - suffix, - ApiClient.urlEncode( - ApiClient.valueToString(getAccountHolderGivenName())))); - } - - // add `accountHolderSurname` to the URL query string - if (getAccountHolderSurname() != null) { - joiner.add( - String.format( - "%saccountHolderSurname%s=%s", - prefix, - suffix, - ApiClient.urlEncode( - ApiClient.valueToString(getAccountHolderSurname())))); - } - - // add `country` to the URL query string - if (getCountry() != null) { - joiner.add( - String.format( - "%scountry%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getCountry())))); - } - - // add `accountNumber` to the URL query string - if (getAccountNumber() != null) { - joiner.add( - String.format( - "%saccountNumber%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAccountNumber())))); - } - - // add `bankName` to the URL query string - if (getBankName() != null) { - joiner.add( - String.format( - "%sbankName%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBankName())))); - } - - // add `bankCode` to the URL query string - if (getBankCode() != null) { - joiner.add( - String.format( - "%sbankCode%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBankCode())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/LeanAbiFunction.java b/src/main/java/com/fireblocks/sdk/model/LeanAbiFunction.java index 6ecba4e5..ed807519 100644 --- a/src/main/java/com/fireblocks/sdk/model/LeanAbiFunction.java +++ b/src/main/java/com/fireblocks/sdk/model/LeanAbiFunction.java @@ -17,7 +17,6 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; @@ -25,12 +24,7 @@ import java.util.StringJoiner; /** LeanAbiFunction */ -@JsonPropertyOrder({ - LeanAbiFunction.JSON_PROPERTY_NAME, - LeanAbiFunction.JSON_PROPERTY_INPUTS, - LeanAbiFunction.JSON_PROPERTY_OUTPUTS, - LeanAbiFunction.JSON_PROPERTY_STATE_MUTABILITY -}) +@JsonPropertyOrder({LeanAbiFunction.JSON_PROPERTY_NAME, LeanAbiFunction.JSON_PROPERTY_INPUTS}) @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") @@ -39,50 +33,7 @@ public class LeanAbiFunction { @jakarta.annotation.Nullable private String name; public static final String JSON_PROPERTY_INPUTS = "inputs"; - @jakarta.annotation.Nonnull private List inputs = new ArrayList<>(); - - public static final String JSON_PROPERTY_OUTPUTS = "outputs"; - @jakarta.annotation.Nullable private List outputs = new ArrayList<>(); - - /** The state mutability of the function (e.g., view, pure, nonpayable, payable) */ - public enum StateMutabilityEnum { - VIEW(String.valueOf("view")), - - PURE(String.valueOf("pure")), - - NONPAYABLE(String.valueOf("nonpayable")), - - PAYABLE(String.valueOf("payable")); - - private String value; - - StateMutabilityEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static StateMutabilityEnum fromValue(String value) { - for (StateMutabilityEnum b : StateMutabilityEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_STATE_MUTABILITY = "stateMutability"; - @jakarta.annotation.Nullable private StateMutabilityEnum stateMutability; + @jakarta.annotation.Nonnull private List inputs; public LeanAbiFunction() {} @@ -147,62 +98,6 @@ public void setInputs(@jakarta.annotation.Nonnull List input this.inputs = inputs; } - public LeanAbiFunction outputs(@jakarta.annotation.Nullable List outputs) { - this.outputs = outputs; - return this; - } - - public LeanAbiFunction addOutputsItem(ParameterWithValue outputsItem) { - if (this.outputs == null) { - this.outputs = new ArrayList<>(); - } - this.outputs.add(outputsItem); - return this; - } - - /** - * The function outputs - * - * @return outputs - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTPUTS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getOutputs() { - return outputs; - } - - @JsonProperty(JSON_PROPERTY_OUTPUTS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOutputs(@jakarta.annotation.Nullable List outputs) { - this.outputs = outputs; - } - - public LeanAbiFunction stateMutability( - @jakarta.annotation.Nullable StateMutabilityEnum stateMutability) { - this.stateMutability = stateMutability; - return this; - } - - /** - * The state mutability of the function (e.g., view, pure, nonpayable, payable) - * - * @return stateMutability - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATE_MUTABILITY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public StateMutabilityEnum getStateMutability() { - return stateMutability; - } - - @JsonProperty(JSON_PROPERTY_STATE_MUTABILITY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStateMutability( - @jakarta.annotation.Nullable StateMutabilityEnum stateMutability) { - this.stateMutability = stateMutability; - } - /** Return true if this LeanAbiFunction object is equal to o. */ @Override public boolean equals(Object o) { @@ -214,14 +109,12 @@ public boolean equals(Object o) { } LeanAbiFunction leanAbiFunction = (LeanAbiFunction) o; return Objects.equals(this.name, leanAbiFunction.name) - && Objects.equals(this.inputs, leanAbiFunction.inputs) - && Objects.equals(this.outputs, leanAbiFunction.outputs) - && Objects.equals(this.stateMutability, leanAbiFunction.stateMutability); + && Objects.equals(this.inputs, leanAbiFunction.inputs); } @Override public int hashCode() { - return Objects.hash(name, inputs, outputs, stateMutability); + return Objects.hash(name, inputs); } @Override @@ -230,8 +123,6 @@ public String toString() { sb.append("class LeanAbiFunction {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" inputs: ").append(toIndentedString(inputs)).append("\n"); - sb.append(" outputs: ").append(toIndentedString(outputs)).append("\n"); - sb.append(" stateMutability: ").append(toIndentedString(stateMutability)).append("\n"); sb.append("}"); return sb.toString(); } @@ -312,39 +203,6 @@ public String toUrlQueryString(String prefix) { } } - // add `outputs` to the URL query string - if (getOutputs() != null) { - for (int i = 0; i < getOutputs().size(); i++) { - if (getOutputs().get(i) != null) { - joiner.add( - getOutputs() - .get(i) - .toUrlQueryString( - String.format( - "%soutputs%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } - } - - // add `stateMutability` to the URL query string - if (getStateMutability() != null) { - joiner.add( - String.format( - "%sstateMutability%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getStateMutability())))); - } - return joiner.toString(); } } diff --git a/src/main/java/com/fireblocks/sdk/model/LegacyDraftResponse.java b/src/main/java/com/fireblocks/sdk/model/LegacyDraftResponse.java deleted file mode 100644 index ecad9793..00000000 --- a/src/main/java/com/fireblocks/sdk/model/LegacyDraftResponse.java +++ /dev/null @@ -1,291 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** Response object for draft operations */ -@JsonPropertyOrder({ - LegacyDraftResponse.JSON_PROPERTY_STATUS, - LegacyDraftResponse.JSON_PROPERTY_RULES, - LegacyDraftResponse.JSON_PROPERTY_DRAFT_ID, - LegacyDraftResponse.JSON_PROPERTY_METADATA -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class LegacyDraftResponse { - public static final String JSON_PROPERTY_STATUS = "status"; - @jakarta.annotation.Nonnull private String status; - - public static final String JSON_PROPERTY_RULES = "rules"; - @jakarta.annotation.Nonnull private List rules = new ArrayList<>(); - - public static final String JSON_PROPERTY_DRAFT_ID = "draftId"; - @jakarta.annotation.Nonnull private String draftId; - - public static final String JSON_PROPERTY_METADATA = "metadata"; - @jakarta.annotation.Nonnull private LegacyPolicyMetadata metadata; - - public LegacyDraftResponse() {} - - @JsonCreator - public LegacyDraftResponse( - @JsonProperty(value = JSON_PROPERTY_STATUS, required = true) String status, - @JsonProperty(value = JSON_PROPERTY_RULES, required = true) - List rules, - @JsonProperty(value = JSON_PROPERTY_DRAFT_ID, required = true) String draftId, - @JsonProperty(value = JSON_PROPERTY_METADATA, required = true) - LegacyPolicyMetadata metadata) { - this.status = status; - this.rules = rules; - this.draftId = draftId; - this.metadata = metadata; - } - - public LegacyDraftResponse status(@jakarta.annotation.Nonnull String status) { - this.status = status; - return this; - } - - /** - * Operation status - * - * @return status - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_STATUS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getStatus() { - return status; - } - - @JsonProperty(JSON_PROPERTY_STATUS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStatus(@jakarta.annotation.Nonnull String status) { - this.status = status; - } - - public LegacyDraftResponse rules(@jakarta.annotation.Nonnull List rules) { - this.rules = rules; - return this; - } - - public LegacyDraftResponse addRulesItem(LegacyPolicyRule rulesItem) { - if (this.rules == null) { - this.rules = new ArrayList<>(); - } - this.rules.add(rulesItem); - return this; - } - - /** - * Draft rules - * - * @return rules - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_RULES) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getRules() { - return rules; - } - - @JsonProperty(JSON_PROPERTY_RULES) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setRules(@jakarta.annotation.Nonnull List rules) { - this.rules = rules; - } - - public LegacyDraftResponse draftId(@jakarta.annotation.Nonnull String draftId) { - this.draftId = draftId; - return this; - } - - /** - * Draft unique id - * - * @return draftId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DRAFT_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getDraftId() { - return draftId; - } - - @JsonProperty(JSON_PROPERTY_DRAFT_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDraftId(@jakarta.annotation.Nonnull String draftId) { - this.draftId = draftId; - } - - public LegacyDraftResponse metadata(@jakarta.annotation.Nonnull LegacyPolicyMetadata metadata) { - this.metadata = metadata; - return this; - } - - /** - * Get metadata - * - * @return metadata - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_METADATA) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public LegacyPolicyMetadata getMetadata() { - return metadata; - } - - @JsonProperty(JSON_PROPERTY_METADATA) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setMetadata(@jakarta.annotation.Nonnull LegacyPolicyMetadata metadata) { - this.metadata = metadata; - } - - /** Return true if this LegacyDraftResponse object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - LegacyDraftResponse legacyDraftResponse = (LegacyDraftResponse) o; - return Objects.equals(this.status, legacyDraftResponse.status) - && Objects.equals(this.rules, legacyDraftResponse.rules) - && Objects.equals(this.draftId, legacyDraftResponse.draftId) - && Objects.equals(this.metadata, legacyDraftResponse.metadata); - } - - @Override - public int hashCode() { - return Objects.hash(status, rules, draftId, metadata); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class LegacyDraftResponse {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append(" rules: ").append(toIndentedString(rules)).append("\n"); - sb.append(" draftId: ").append(toIndentedString(draftId)).append("\n"); - sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `status` to the URL query string - if (getStatus() != null) { - joiner.add( - String.format( - "%sstatus%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getStatus())))); - } - - // add `rules` to the URL query string - if (getRules() != null) { - for (int i = 0; i < getRules().size(); i++) { - if (getRules().get(i) != null) { - joiner.add( - getRules() - .get(i) - .toUrlQueryString( - String.format( - "%srules%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } - } - - // add `draftId` to the URL query string - if (getDraftId() != null) { - joiner.add( - String.format( - "%sdraftId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getDraftId())))); - } - - // add `metadata` to the URL query string - if (getMetadata() != null) { - joiner.add(getMetadata().toUrlQueryString(prefix + "metadata" + suffix)); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/LegacyDraftReviewAndValidationResponse.java b/src/main/java/com/fireblocks/sdk/model/LegacyDraftReviewAndValidationResponse.java deleted file mode 100644 index 0e21983d..00000000 --- a/src/main/java/com/fireblocks/sdk/model/LegacyDraftReviewAndValidationResponse.java +++ /dev/null @@ -1,185 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.Objects; -import java.util.StringJoiner; - -/** Draft validation */ -@JsonPropertyOrder({ - LegacyDraftReviewAndValidationResponse.JSON_PROPERTY_DRAFT_RESPONSE, - LegacyDraftReviewAndValidationResponse.JSON_PROPERTY_VALIDATION -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class LegacyDraftReviewAndValidationResponse { - public static final String JSON_PROPERTY_DRAFT_RESPONSE = "draftResponse"; - @jakarta.annotation.Nonnull private LegacyDraftResponse draftResponse; - - public static final String JSON_PROPERTY_VALIDATION = "validation"; - @jakarta.annotation.Nonnull private LegacyPolicyValidation validation; - - public LegacyDraftReviewAndValidationResponse() {} - - @JsonCreator - public LegacyDraftReviewAndValidationResponse( - @JsonProperty(value = JSON_PROPERTY_DRAFT_RESPONSE, required = true) - LegacyDraftResponse draftResponse, - @JsonProperty(value = JSON_PROPERTY_VALIDATION, required = true) - LegacyPolicyValidation validation) { - this.draftResponse = draftResponse; - this.validation = validation; - } - - public LegacyDraftReviewAndValidationResponse draftResponse( - @jakarta.annotation.Nonnull LegacyDraftResponse draftResponse) { - this.draftResponse = draftResponse; - return this; - } - - /** - * Get draftResponse - * - * @return draftResponse - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DRAFT_RESPONSE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public LegacyDraftResponse getDraftResponse() { - return draftResponse; - } - - @JsonProperty(JSON_PROPERTY_DRAFT_RESPONSE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDraftResponse(@jakarta.annotation.Nonnull LegacyDraftResponse draftResponse) { - this.draftResponse = draftResponse; - } - - public LegacyDraftReviewAndValidationResponse validation( - @jakarta.annotation.Nonnull LegacyPolicyValidation validation) { - this.validation = validation; - return this; - } - - /** - * Get validation - * - * @return validation - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_VALIDATION) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public LegacyPolicyValidation getValidation() { - return validation; - } - - @JsonProperty(JSON_PROPERTY_VALIDATION) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setValidation(@jakarta.annotation.Nonnull LegacyPolicyValidation validation) { - this.validation = validation; - } - - /** Return true if this LegacyDraftReviewAndValidationResponse object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - LegacyDraftReviewAndValidationResponse legacyDraftReviewAndValidationResponse = - (LegacyDraftReviewAndValidationResponse) o; - return Objects.equals( - this.draftResponse, legacyDraftReviewAndValidationResponse.draftResponse) - && Objects.equals( - this.validation, legacyDraftReviewAndValidationResponse.validation); - } - - @Override - public int hashCode() { - return Objects.hash(draftResponse, validation); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class LegacyDraftReviewAndValidationResponse {\n"); - sb.append(" draftResponse: ").append(toIndentedString(draftResponse)).append("\n"); - sb.append(" validation: ").append(toIndentedString(validation)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `draftResponse` to the URL query string - if (getDraftResponse() != null) { - joiner.add(getDraftResponse().toUrlQueryString(prefix + "draftResponse" + suffix)); - } - - // add `validation` to the URL query string - if (getValidation() != null) { - joiner.add(getValidation().toUrlQueryString(prefix + "validation" + suffix)); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyAndValidationResponse.java b/src/main/java/com/fireblocks/sdk/model/LegacyPolicyAndValidationResponse.java deleted file mode 100644 index 8b6feed3..00000000 --- a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyAndValidationResponse.java +++ /dev/null @@ -1,183 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.Objects; -import java.util.StringJoiner; - -/** Policy validation */ -@JsonPropertyOrder({ - LegacyPolicyAndValidationResponse.JSON_PROPERTY_POLICY, - LegacyPolicyAndValidationResponse.JSON_PROPERTY_VALIDATION -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class LegacyPolicyAndValidationResponse { - public static final String JSON_PROPERTY_POLICY = "policy"; - @jakarta.annotation.Nonnull private LegacyPolicyResponse policy; - - public static final String JSON_PROPERTY_VALIDATION = "validation"; - @jakarta.annotation.Nonnull private LegacyPolicyValidation validation; - - public LegacyPolicyAndValidationResponse() {} - - @JsonCreator - public LegacyPolicyAndValidationResponse( - @JsonProperty(value = JSON_PROPERTY_POLICY, required = true) - LegacyPolicyResponse policy, - @JsonProperty(value = JSON_PROPERTY_VALIDATION, required = true) - LegacyPolicyValidation validation) { - this.policy = policy; - this.validation = validation; - } - - public LegacyPolicyAndValidationResponse policy( - @jakarta.annotation.Nonnull LegacyPolicyResponse policy) { - this.policy = policy; - return this; - } - - /** - * Get policy - * - * @return policy - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_POLICY) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public LegacyPolicyResponse getPolicy() { - return policy; - } - - @JsonProperty(JSON_PROPERTY_POLICY) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPolicy(@jakarta.annotation.Nonnull LegacyPolicyResponse policy) { - this.policy = policy; - } - - public LegacyPolicyAndValidationResponse validation( - @jakarta.annotation.Nonnull LegacyPolicyValidation validation) { - this.validation = validation; - return this; - } - - /** - * Get validation - * - * @return validation - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_VALIDATION) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public LegacyPolicyValidation getValidation() { - return validation; - } - - @JsonProperty(JSON_PROPERTY_VALIDATION) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setValidation(@jakarta.annotation.Nonnull LegacyPolicyValidation validation) { - this.validation = validation; - } - - /** Return true if this LegacyPolicyAndValidationResponse object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - LegacyPolicyAndValidationResponse legacyPolicyAndValidationResponse = - (LegacyPolicyAndValidationResponse) o; - return Objects.equals(this.policy, legacyPolicyAndValidationResponse.policy) - && Objects.equals(this.validation, legacyPolicyAndValidationResponse.validation); - } - - @Override - public int hashCode() { - return Objects.hash(policy, validation); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class LegacyPolicyAndValidationResponse {\n"); - sb.append(" policy: ").append(toIndentedString(policy)).append("\n"); - sb.append(" validation: ").append(toIndentedString(validation)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `policy` to the URL query string - if (getPolicy() != null) { - joiner.add(getPolicy().toUrlQueryString(prefix + "policy" + suffix)); - } - - // add `validation` to the URL query string - if (getValidation() != null) { - joiner.add(getValidation().toUrlQueryString(prefix + "validation" + suffix)); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyCheckResult.java b/src/main/java/com/fireblocks/sdk/model/LegacyPolicyCheckResult.java deleted file mode 100644 index 9634cef4..00000000 --- a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyCheckResult.java +++ /dev/null @@ -1,217 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.math.BigDecimal; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** Policy rules validation result */ -@JsonPropertyOrder({ - LegacyPolicyCheckResult.JSON_PROPERTY_ERRORS, - LegacyPolicyCheckResult.JSON_PROPERTY_RESULTS -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class LegacyPolicyCheckResult { - public static final String JSON_PROPERTY_ERRORS = "errors"; - @jakarta.annotation.Nonnull private BigDecimal errors; - - public static final String JSON_PROPERTY_RESULTS = "results"; - - @jakarta.annotation.Nonnull - private List results = new ArrayList<>(); - - public LegacyPolicyCheckResult() {} - - @JsonCreator - public LegacyPolicyCheckResult( - @JsonProperty(value = JSON_PROPERTY_ERRORS, required = true) BigDecimal errors, - @JsonProperty(value = JSON_PROPERTY_RESULTS, required = true) - List results) { - this.errors = errors; - this.results = results; - } - - public LegacyPolicyCheckResult errors(@jakarta.annotation.Nonnull BigDecimal errors) { - this.errors = errors; - return this; - } - - /** - * Number of errors - * - * @return errors - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ERRORS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public BigDecimal getErrors() { - return errors; - } - - @JsonProperty(JSON_PROPERTY_ERRORS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setErrors(@jakarta.annotation.Nonnull BigDecimal errors) { - this.errors = errors; - } - - public LegacyPolicyCheckResult results( - @jakarta.annotation.Nonnull List results) { - this.results = results; - return this; - } - - public LegacyPolicyCheckResult addResultsItem(LegacyPolicyRuleCheckResult resultsItem) { - if (this.results == null) { - this.results = new ArrayList<>(); - } - this.results.add(resultsItem); - return this; - } - - /** - * A set of validation results - * - * @return results - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_RESULTS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getResults() { - return results; - } - - @JsonProperty(JSON_PROPERTY_RESULTS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setResults(@jakarta.annotation.Nonnull List results) { - this.results = results; - } - - /** Return true if this LegacyPolicyCheckResult object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - LegacyPolicyCheckResult legacyPolicyCheckResult = (LegacyPolicyCheckResult) o; - return Objects.equals(this.errors, legacyPolicyCheckResult.errors) - && Objects.equals(this.results, legacyPolicyCheckResult.results); - } - - @Override - public int hashCode() { - return Objects.hash(errors, results); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class LegacyPolicyCheckResult {\n"); - sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); - sb.append(" results: ").append(toIndentedString(results)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `errors` to the URL query string - if (getErrors() != null) { - joiner.add( - String.format( - "%serrors%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getErrors())))); - } - - // add `results` to the URL query string - if (getResults() != null) { - for (int i = 0; i < getResults().size(); i++) { - if (getResults().get(i) != null) { - joiner.add( - getResults() - .get(i) - .toUrlQueryString( - String.format( - "%sresults%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyMetadata.java b/src/main/java/com/fireblocks/sdk/model/LegacyPolicyMetadata.java deleted file mode 100644 index e0a7de21..00000000 --- a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyMetadata.java +++ /dev/null @@ -1,258 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** Policy related metadata */ -@JsonPropertyOrder({ - LegacyPolicyMetadata.JSON_PROPERTY_EDITED_BY, - LegacyPolicyMetadata.JSON_PROPERTY_EDITED_AT, - LegacyPolicyMetadata.JSON_PROPERTY_PUBLISHED_BY, - LegacyPolicyMetadata.JSON_PROPERTY_PUBLISHED_AT -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class LegacyPolicyMetadata { - public static final String JSON_PROPERTY_EDITED_BY = "editedBy"; - @jakarta.annotation.Nullable private String editedBy; - - public static final String JSON_PROPERTY_EDITED_AT = "editedAt"; - @jakarta.annotation.Nullable private String editedAt; - - public static final String JSON_PROPERTY_PUBLISHED_BY = "publishedBy"; - @jakarta.annotation.Nullable private String publishedBy; - - public static final String JSON_PROPERTY_PUBLISHED_AT = "publishedAt"; - @jakarta.annotation.Nullable private String publishedAt; - - public LegacyPolicyMetadata() {} - - public LegacyPolicyMetadata editedBy(@jakarta.annotation.Nullable String editedBy) { - this.editedBy = editedBy; - return this; - } - - /** - * The user id of the user who last edited the policy - * - * @return editedBy - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EDITED_BY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getEditedBy() { - return editedBy; - } - - @JsonProperty(JSON_PROPERTY_EDITED_BY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEditedBy(@jakarta.annotation.Nullable String editedBy) { - this.editedBy = editedBy; - } - - public LegacyPolicyMetadata editedAt(@jakarta.annotation.Nullable String editedAt) { - this.editedAt = editedAt; - return this; - } - - /** - * The timestamp of the last edit of the policy - * - * @return editedAt - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EDITED_AT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getEditedAt() { - return editedAt; - } - - @JsonProperty(JSON_PROPERTY_EDITED_AT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEditedAt(@jakarta.annotation.Nullable String editedAt) { - this.editedAt = editedAt; - } - - public LegacyPolicyMetadata publishedBy(@jakarta.annotation.Nullable String publishedBy) { - this.publishedBy = publishedBy; - return this; - } - - /** - * The user id of the user who last published the policy - * - * @return publishedBy - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PUBLISHED_BY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getPublishedBy() { - return publishedBy; - } - - @JsonProperty(JSON_PROPERTY_PUBLISHED_BY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPublishedBy(@jakarta.annotation.Nullable String publishedBy) { - this.publishedBy = publishedBy; - } - - public LegacyPolicyMetadata publishedAt(@jakarta.annotation.Nullable String publishedAt) { - this.publishedAt = publishedAt; - return this; - } - - /** - * The timestamp of the last publish of the policy - * - * @return publishedAt - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PUBLISHED_AT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getPublishedAt() { - return publishedAt; - } - - @JsonProperty(JSON_PROPERTY_PUBLISHED_AT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPublishedAt(@jakarta.annotation.Nullable String publishedAt) { - this.publishedAt = publishedAt; - } - - /** Return true if this LegacyPolicyMetadata object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - LegacyPolicyMetadata legacyPolicyMetadata = (LegacyPolicyMetadata) o; - return Objects.equals(this.editedBy, legacyPolicyMetadata.editedBy) - && Objects.equals(this.editedAt, legacyPolicyMetadata.editedAt) - && Objects.equals(this.publishedBy, legacyPolicyMetadata.publishedBy) - && Objects.equals(this.publishedAt, legacyPolicyMetadata.publishedAt); - } - - @Override - public int hashCode() { - return Objects.hash(editedBy, editedAt, publishedBy, publishedAt); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class LegacyPolicyMetadata {\n"); - sb.append(" editedBy: ").append(toIndentedString(editedBy)).append("\n"); - sb.append(" editedAt: ").append(toIndentedString(editedAt)).append("\n"); - sb.append(" publishedBy: ").append(toIndentedString(publishedBy)).append("\n"); - sb.append(" publishedAt: ").append(toIndentedString(publishedAt)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `editedBy` to the URL query string - if (getEditedBy() != null) { - joiner.add( - String.format( - "%seditedBy%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getEditedBy())))); - } - - // add `editedAt` to the URL query string - if (getEditedAt() != null) { - joiner.add( - String.format( - "%seditedAt%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getEditedAt())))); - } - - // add `publishedBy` to the URL query string - if (getPublishedBy() != null) { - joiner.add( - String.format( - "%spublishedBy%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getPublishedBy())))); - } - - // add `publishedAt` to the URL query string - if (getPublishedAt() != null) { - joiner.add( - String.format( - "%spublishedAt%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getPublishedAt())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyResponse.java b/src/main/java/com/fireblocks/sdk/model/LegacyPolicyResponse.java deleted file mode 100644 index d3f59879..00000000 --- a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyResponse.java +++ /dev/null @@ -1,209 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** Response object for policy operations */ -@JsonPropertyOrder({ - LegacyPolicyResponse.JSON_PROPERTY_RULES, - LegacyPolicyResponse.JSON_PROPERTY_METADATA -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class LegacyPolicyResponse { - public static final String JSON_PROPERTY_RULES = "rules"; - @jakarta.annotation.Nonnull private List rules = new ArrayList<>(); - - public static final String JSON_PROPERTY_METADATA = "metadata"; - @jakarta.annotation.Nonnull private LegacyPolicyMetadata metadata; - - public LegacyPolicyResponse() {} - - @JsonCreator - public LegacyPolicyResponse( - @JsonProperty(value = JSON_PROPERTY_RULES, required = true) - List rules, - @JsonProperty(value = JSON_PROPERTY_METADATA, required = true) - LegacyPolicyMetadata metadata) { - this.rules = rules; - this.metadata = metadata; - } - - public LegacyPolicyResponse rules(@jakarta.annotation.Nonnull List rules) { - this.rules = rules; - return this; - } - - public LegacyPolicyResponse addRulesItem(LegacyPolicyRule rulesItem) { - if (this.rules == null) { - this.rules = new ArrayList<>(); - } - this.rules.add(rulesItem); - return this; - } - - /** - * A set of policy rules - * - * @return rules - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_RULES) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getRules() { - return rules; - } - - @JsonProperty(JSON_PROPERTY_RULES) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setRules(@jakarta.annotation.Nonnull List rules) { - this.rules = rules; - } - - public LegacyPolicyResponse metadata( - @jakarta.annotation.Nonnull LegacyPolicyMetadata metadata) { - this.metadata = metadata; - return this; - } - - /** - * Get metadata - * - * @return metadata - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_METADATA) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public LegacyPolicyMetadata getMetadata() { - return metadata; - } - - @JsonProperty(JSON_PROPERTY_METADATA) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setMetadata(@jakarta.annotation.Nonnull LegacyPolicyMetadata metadata) { - this.metadata = metadata; - } - - /** Return true if this LegacyPolicyResponse object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - LegacyPolicyResponse legacyPolicyResponse = (LegacyPolicyResponse) o; - return Objects.equals(this.rules, legacyPolicyResponse.rules) - && Objects.equals(this.metadata, legacyPolicyResponse.metadata); - } - - @Override - public int hashCode() { - return Objects.hash(rules, metadata); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class LegacyPolicyResponse {\n"); - sb.append(" rules: ").append(toIndentedString(rules)).append("\n"); - sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `rules` to the URL query string - if (getRules() != null) { - for (int i = 0; i < getRules().size(); i++) { - if (getRules().get(i) != null) { - joiner.add( - getRules() - .get(i) - .toUrlQueryString( - String.format( - "%srules%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } - } - - // add `metadata` to the URL query string - if (getMetadata() != null) { - joiner.add(getMetadata().toUrlQueryString(prefix + "metadata" + suffix)); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRule.java b/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRule.java deleted file mode 100644 index fa90ead5..00000000 --- a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRule.java +++ /dev/null @@ -1,1610 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fireblocks.sdk.ApiClient; -import java.math.BigDecimal; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** Policy rule which is enforced on transactions */ -@JsonPropertyOrder({ - LegacyPolicyRule.JSON_PROPERTY_OPERATOR, - LegacyPolicyRule.JSON_PROPERTY_OPERATORS, - LegacyPolicyRule.JSON_PROPERTY_TRANSACTION_TYPE, - LegacyPolicyRule.JSON_PROPERTY_DESIGNATED_SIGNER, - LegacyPolicyRule.JSON_PROPERTY_DESIGNATED_SIGNERS, - LegacyPolicyRule.JSON_PROPERTY_TYPE, - LegacyPolicyRule.JSON_PROPERTY_ACTION, - LegacyPolicyRule.JSON_PROPERTY_ASSET, - LegacyPolicyRule.JSON_PROPERTY_SRC_TYPE, - LegacyPolicyRule.JSON_PROPERTY_SRC_SUB_TYPE, - LegacyPolicyRule.JSON_PROPERTY_SRC_ID, - LegacyPolicyRule.JSON_PROPERTY_SRC, - LegacyPolicyRule.JSON_PROPERTY_DST_TYPE, - LegacyPolicyRule.JSON_PROPERTY_DST_SUB_TYPE, - LegacyPolicyRule.JSON_PROPERTY_DST_ID, - LegacyPolicyRule.JSON_PROPERTY_DST, - LegacyPolicyRule.JSON_PROPERTY_DST_ADDRESS_TYPE, - LegacyPolicyRule.JSON_PROPERTY_AMOUNT_CURRENCY, - LegacyPolicyRule.JSON_PROPERTY_AMOUNT_SCOPE, - LegacyPolicyRule.JSON_PROPERTY_AMOUNT, - LegacyPolicyRule.JSON_PROPERTY_PERIOD_SEC, - LegacyPolicyRule.JSON_PROPERTY_AUTHORIZERS, - LegacyPolicyRule.JSON_PROPERTY_AUTHORIZERS_COUNT, - LegacyPolicyRule.JSON_PROPERTY_AUTHORIZATION_GROUPS, - LegacyPolicyRule.JSON_PROPERTY_AMOUNT_AGGREGATION, - LegacyPolicyRule.JSON_PROPERTY_RAW_MESSAGE_SIGNING, - LegacyPolicyRule.JSON_PROPERTY_APPLY_FOR_APPROVE, - LegacyPolicyRule.JSON_PROPERTY_APPLY_FOR_TYPED_MESSAGE, - LegacyPolicyRule.JSON_PROPERTY_EXTERNAL_DESCRIPTOR -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class LegacyPolicyRule { - public static final String JSON_PROPERTY_OPERATOR = "operator"; - @jakarta.annotation.Nullable private String operator; - - public static final String JSON_PROPERTY_OPERATORS = "operators"; - @jakarta.annotation.Nullable private LegacyPolicyRuleOperators operators; - - /** - * Defines the type of transaction to which the rule applies. * TRANSFER - Default. Transfers - * funds from one account to another * CONTRACT_CALL - Calls a smart contract, mainly for DeFi - * operations. * APPROVE - Allows a smart contract to withdraw from a designated wallet. * MINT - * - Perform a mint operation (increase supply) on a supported token * BURN - Perform a burn - * operation (reduce supply) on a supported token * SUPPLY - Use for DeFi to lend assets * - * REDEEM - Use for DeFi to get lending back * STAKE - Allows you to allocate and lock certain - * assets for earning staking rewards. * RAW - An off-chain message with no predefined format, - * use it to sign any message with your private key. * TYPED_MESSAGE - An off-chain message type - * that follows a predefined format, used to sign specific messages that are not actual - * transactions. * PROGRAM_CALL - In Solana refers to invoking on-chain programs (smart - * contracts) to execute transactions and interact with the blockchain. - */ - public enum TransactionTypeEnum { - TRANSFER(String.valueOf("TRANSFER")), - - CONTRACT_CALL(String.valueOf("CONTRACT_CALL")), - - APPROVE(String.valueOf("APPROVE")), - - MINT(String.valueOf("MINT")), - - BURN(String.valueOf("BURN")), - - SUPPLY(String.valueOf("SUPPLY")), - - REDEEM(String.valueOf("REDEEM")), - - STAKE(String.valueOf("STAKE")), - - RAW(String.valueOf("RAW")), - - TYPED_MESSAGE(String.valueOf("TYPED_MESSAGE")), - - PROGRAM_CALL(String.valueOf("PROGRAM_CALL")); - - private String value; - - TransactionTypeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static TransactionTypeEnum fromValue(String value) { - for (TransactionTypeEnum b : TransactionTypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_TRANSACTION_TYPE = "transactionType"; - @jakarta.annotation.Nullable private TransactionTypeEnum transactionType; - - public static final String JSON_PROPERTY_DESIGNATED_SIGNER = "designatedSigner"; - @jakarta.annotation.Nullable private String designatedSigner; - - public static final String JSON_PROPERTY_DESIGNATED_SIGNERS = "designatedSigners"; - @jakarta.annotation.Nullable private LegacyPolicyRuleDesignatedSigners designatedSigners; - - /** Policy rule type */ - public enum TypeEnum { - TRANSFER(String.valueOf("TRANSFER")); - - private String value; - - TypeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static TypeEnum fromValue(String value) { - for (TypeEnum b : TypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_TYPE = "type"; - @jakarta.annotation.Nonnull private TypeEnum type; - - /** - * Defines what occurs when a transaction meets the rule's criteria * ALLOW - The - * transaction goes through and can be signed without requiring additional approvals * BLOCK - - * The transaction is automatically blocked * 2-TIER - Only these users or user groups can - * approve If any of them reject the transaction before the required approval threshold is met, - * the transaction doesn't go through The list of entities are set is - * \"authorizationGroups\" field - */ - public enum ActionEnum { - ALLOW(String.valueOf("ALLOW")), - - BLOCK(String.valueOf("BLOCK")), - - _2_TIER(String.valueOf("2-TIER")); - - private String value; - - ActionEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static ActionEnum fromValue(String value) { - for (ActionEnum b : ActionEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_ACTION = "action"; - @jakarta.annotation.Nonnull private ActionEnum action; - - public static final String JSON_PROPERTY_ASSET = "asset"; - @jakarta.annotation.Nonnull private String asset; - - public static final String JSON_PROPERTY_SRC_TYPE = "srcType"; - @jakarta.annotation.Nullable private LegacyPolicySrcOrDestType srcType; - - public static final String JSON_PROPERTY_SRC_SUB_TYPE = "srcSubType"; - @jakarta.annotation.Nullable private LegacyPolicySrcOrDestSubType srcSubType; - - public static final String JSON_PROPERTY_SRC_ID = "srcId"; - @jakarta.annotation.Nullable private String srcId; - - public static final String JSON_PROPERTY_SRC = "src"; - @jakarta.annotation.Nullable private LegacyPolicyRuleSrc src; - - public static final String JSON_PROPERTY_DST_TYPE = "dstType"; - @jakarta.annotation.Nullable private LegacyPolicySrcOrDestType dstType; - - public static final String JSON_PROPERTY_DST_SUB_TYPE = "dstSubType"; - @jakarta.annotation.Nullable private LegacyPolicySrcOrDestSubType dstSubType; - - public static final String JSON_PROPERTY_DST_ID = "dstId"; - @jakarta.annotation.Nullable private String dstId; - - public static final String JSON_PROPERTY_DST = "dst"; - @jakarta.annotation.Nullable private LegacyPolicyRuleDst dst; - - /** - * Defines whether the destination to which you are sending funds must be whitelisted, to allow - * one-time transfers to non-whitelisted external addresses, or both. By default, you can only - * transfer to an external address after it’s whitelisted. * WHITELISTED - Can only be sent to - * whitelisted addresses. * ONE_TIME - Can only be sent to non-whitelisted external addresses. * - * \"*\" - can be sent to whitelisted addresses or non-whitelisted external - */ - public enum DstAddressTypeEnum { - WHITELISTED(String.valueOf("WHITELISTED")), - - ONE_TIME(String.valueOf("ONE_TIME")), - - STAR(String.valueOf("*")); - - private String value; - - DstAddressTypeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static DstAddressTypeEnum fromValue(String value) { - for (DstAddressTypeEnum b : DstAddressTypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_DST_ADDRESS_TYPE = "dstAddressType"; - @jakarta.annotation.Nullable private DstAddressTypeEnum dstAddressType; - - /** - * * USD - Limits the amount of any asset users can transfer based on the USD equivalent of the - * asset. * EUR - Limits the amount of any asset users can transfer based on the EURO equivalent - * of the asset. * NATIVE - Limits the amount of an asset a user can transfer when using a - * specific asset. - */ - public enum AmountCurrencyEnum { - USD(String.valueOf("USD")), - - EUR(String.valueOf("EUR")), - - NATIVE(String.valueOf("NATIVE")); - - private String value; - - AmountCurrencyEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static AmountCurrencyEnum fromValue(String value) { - for (AmountCurrencyEnum b : AmountCurrencyEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_AMOUNT_CURRENCY = "amountCurrency"; - @jakarta.annotation.Nonnull private AmountCurrencyEnum amountCurrency; - - /** - * * SINGLE_TX - limit applies to a single transaction * TIMEFRAME - limit applies to all - * transactions within the defined time period - */ - public enum AmountScopeEnum { - SINGLE_TX(String.valueOf("SINGLE_TX")), - - TIMEFRAME(String.valueOf("TIMEFRAME")); - - private String value; - - AmountScopeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static AmountScopeEnum fromValue(String value) { - for (AmountScopeEnum b : AmountScopeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_AMOUNT_SCOPE = "amountScope"; - @jakarta.annotation.Nonnull private AmountScopeEnum amountScope; - - public static final String JSON_PROPERTY_AMOUNT = "amount"; - @jakarta.annotation.Nonnull private LegacyPolicyRuleAmount amount; - - public static final String JSON_PROPERTY_PERIOD_SEC = "periodSec"; - @jakarta.annotation.Nonnull private BigDecimal periodSec; - - public static final String JSON_PROPERTY_AUTHORIZERS = "authorizers"; - @jakarta.annotation.Nullable private List authorizers = new ArrayList<>(); - - public static final String JSON_PROPERTY_AUTHORIZERS_COUNT = "authorizersCount"; - @jakarta.annotation.Nullable private BigDecimal authorizersCount; - - public static final String JSON_PROPERTY_AUTHORIZATION_GROUPS = "authorizationGroups"; - @jakarta.annotation.Nullable private LegacyPolicyRuleAuthorizationGroups authorizationGroups; - - public static final String JSON_PROPERTY_AMOUNT_AGGREGATION = "amountAggregation"; - @jakarta.annotation.Nullable private LegacyPolicyRuleAmountAggregation amountAggregation; - - public static final String JSON_PROPERTY_RAW_MESSAGE_SIGNING = "rawMessageSigning"; - @jakarta.annotation.Nullable private LegacyPolicyRuleRawMessageSigning rawMessageSigning; - - public static final String JSON_PROPERTY_APPLY_FOR_APPROVE = "applyForApprove"; - @jakarta.annotation.Nullable private Boolean applyForApprove; - - public static final String JSON_PROPERTY_APPLY_FOR_TYPED_MESSAGE = "applyForTypedMessage"; - @jakarta.annotation.Nullable private Boolean applyForTypedMessage; - - public static final String JSON_PROPERTY_EXTERNAL_DESCRIPTOR = "externalDescriptor"; - @jakarta.annotation.Nullable private String externalDescriptor; - - public LegacyPolicyRule() {} - - @JsonCreator - public LegacyPolicyRule( - @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) TypeEnum type, - @JsonProperty(value = JSON_PROPERTY_ACTION, required = true) ActionEnum action, - @JsonProperty(value = JSON_PROPERTY_ASSET, required = true) String asset, - @JsonProperty(value = JSON_PROPERTY_AMOUNT_CURRENCY, required = true) - AmountCurrencyEnum amountCurrency, - @JsonProperty(value = JSON_PROPERTY_AMOUNT_SCOPE, required = true) - AmountScopeEnum amountScope, - @JsonProperty(value = JSON_PROPERTY_AMOUNT, required = true) - LegacyPolicyRuleAmount amount, - @JsonProperty(value = JSON_PROPERTY_PERIOD_SEC, required = true) BigDecimal periodSec) { - this.type = type; - this.action = action; - this.asset = asset; - this.amountCurrency = amountCurrency; - this.amountScope = amountScope; - this.amount = amount; - this.periodSec = periodSec; - } - - public LegacyPolicyRule operator(@jakarta.annotation.Nullable String operator) { - this.operator = operator; - return this; - } - - /** - * (deprecated - replaced by \"operators\") | Defines users who can initiate the type - * of transaction to which the rule applies. options are * \"*\" - All users are - * allowed * Specific User id - * - * @return operator - * @deprecated - */ - @Deprecated - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OPERATOR) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getOperator() { - return operator; - } - - @JsonProperty(JSON_PROPERTY_OPERATOR) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOperator(@jakarta.annotation.Nullable String operator) { - this.operator = operator; - } - - public LegacyPolicyRule operators( - @jakarta.annotation.Nullable LegacyPolicyRuleOperators operators) { - this.operators = operators; - return this; - } - - /** - * Get operators - * - * @return operators - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OPERATORS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public LegacyPolicyRuleOperators getOperators() { - return operators; - } - - @JsonProperty(JSON_PROPERTY_OPERATORS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOperators(@jakarta.annotation.Nullable LegacyPolicyRuleOperators operators) { - this.operators = operators; - } - - public LegacyPolicyRule transactionType( - @jakarta.annotation.Nullable TransactionTypeEnum transactionType) { - this.transactionType = transactionType; - return this; - } - - /** - * Defines the type of transaction to which the rule applies. * TRANSFER - Default. Transfers - * funds from one account to another * CONTRACT_CALL - Calls a smart contract, mainly for DeFi - * operations. * APPROVE - Allows a smart contract to withdraw from a designated wallet. * MINT - * - Perform a mint operation (increase supply) on a supported token * BURN - Perform a burn - * operation (reduce supply) on a supported token * SUPPLY - Use for DeFi to lend assets * - * REDEEM - Use for DeFi to get lending back * STAKE - Allows you to allocate and lock certain - * assets for earning staking rewards. * RAW - An off-chain message with no predefined format, - * use it to sign any message with your private key. * TYPED_MESSAGE - An off-chain message type - * that follows a predefined format, used to sign specific messages that are not actual - * transactions. * PROGRAM_CALL - In Solana refers to invoking on-chain programs (smart - * contracts) to execute transactions and interact with the blockchain. - * - * @return transactionType - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TRANSACTION_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public TransactionTypeEnum getTransactionType() { - return transactionType; - } - - @JsonProperty(JSON_PROPERTY_TRANSACTION_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTransactionType( - @jakarta.annotation.Nullable TransactionTypeEnum transactionType) { - this.transactionType = transactionType; - } - - public LegacyPolicyRule designatedSigner(@jakarta.annotation.Nullable String designatedSigner) { - this.designatedSigner = designatedSigner; - return this; - } - - /** - * (deprecated - replaced by \"designatedSigners\") Id representing the user who signs - * transactions that match a specific rule - * - * @return designatedSigner - * @deprecated - */ - @Deprecated - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DESIGNATED_SIGNER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getDesignatedSigner() { - return designatedSigner; - } - - @JsonProperty(JSON_PROPERTY_DESIGNATED_SIGNER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDesignatedSigner(@jakarta.annotation.Nullable String designatedSigner) { - this.designatedSigner = designatedSigner; - } - - public LegacyPolicyRule designatedSigners( - @jakarta.annotation.Nullable LegacyPolicyRuleDesignatedSigners designatedSigners) { - this.designatedSigners = designatedSigners; - return this; - } - - /** - * Get designatedSigners - * - * @return designatedSigners - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DESIGNATED_SIGNERS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public LegacyPolicyRuleDesignatedSigners getDesignatedSigners() { - return designatedSigners; - } - - @JsonProperty(JSON_PROPERTY_DESIGNATED_SIGNERS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDesignatedSigners( - @jakarta.annotation.Nullable LegacyPolicyRuleDesignatedSigners designatedSigners) { - this.designatedSigners = designatedSigners; - } - - public LegacyPolicyRule type(@jakarta.annotation.Nonnull TypeEnum type) { - this.type = type; - return this; - } - - /** - * Policy rule type - * - * @return type - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { - return type; - } - - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(@jakarta.annotation.Nonnull TypeEnum type) { - this.type = type; - } - - public LegacyPolicyRule action(@jakarta.annotation.Nonnull ActionEnum action) { - this.action = action; - return this; - } - - /** - * Defines what occurs when a transaction meets the rule's criteria * ALLOW - The - * transaction goes through and can be signed without requiring additional approvals * BLOCK - - * The transaction is automatically blocked * 2-TIER - Only these users or user groups can - * approve If any of them reject the transaction before the required approval threshold is met, - * the transaction doesn't go through The list of entities are set is - * \"authorizationGroups\" field - * - * @return action - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ACTION) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public ActionEnum getAction() { - return action; - } - - @JsonProperty(JSON_PROPERTY_ACTION) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAction(@jakarta.annotation.Nonnull ActionEnum action) { - this.action = action; - } - - public LegacyPolicyRule asset(@jakarta.annotation.Nonnull String asset) { - this.asset = asset; - return this; - } - - /** - * Defines the type of asset being transacted, options are * \"*\" - All assets * - * Specific asset - * - * @return asset - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ASSET) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getAsset() { - return asset; - } - - @JsonProperty(JSON_PROPERTY_ASSET) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAsset(@jakarta.annotation.Nonnull String asset) { - this.asset = asset; - } - - public LegacyPolicyRule srcType( - @jakarta.annotation.Nullable LegacyPolicySrcOrDestType srcType) { - this.srcType = srcType; - return this; - } - - /** - * (deprecated - replaced by \"src\") source account type - * - * @return srcType - * @deprecated - */ - @Deprecated - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SRC_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public LegacyPolicySrcOrDestType getSrcType() { - return srcType; - } - - @JsonProperty(JSON_PROPERTY_SRC_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSrcType(@jakarta.annotation.Nullable LegacyPolicySrcOrDestType srcType) { - this.srcType = srcType; - } - - public LegacyPolicyRule srcSubType( - @jakarta.annotation.Nullable LegacyPolicySrcOrDestSubType srcSubType) { - this.srcSubType = srcSubType; - return this; - } - - /** - * (deprecated - replaced by \"src\") source sub account type - * - * @return srcSubType - * @deprecated - */ - @Deprecated - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SRC_SUB_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public LegacyPolicySrcOrDestSubType getSrcSubType() { - return srcSubType; - } - - @JsonProperty(JSON_PROPERTY_SRC_SUB_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSrcSubType( - @jakarta.annotation.Nullable LegacyPolicySrcOrDestSubType srcSubType) { - this.srcSubType = srcSubType; - } - - public LegacyPolicyRule srcId(@jakarta.annotation.Nullable String srcId) { - this.srcId = srcId; - return this; - } - - /** - * (deprecated - replaced by \"src\") source account id - * - * @return srcId - * @deprecated - */ - @Deprecated - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SRC_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getSrcId() { - return srcId; - } - - @JsonProperty(JSON_PROPERTY_SRC_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSrcId(@jakarta.annotation.Nullable String srcId) { - this.srcId = srcId; - } - - public LegacyPolicyRule src(@jakarta.annotation.Nullable LegacyPolicyRuleSrc src) { - this.src = src; - return this; - } - - /** - * Get src - * - * @return src - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SRC) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public LegacyPolicyRuleSrc getSrc() { - return src; - } - - @JsonProperty(JSON_PROPERTY_SRC) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSrc(@jakarta.annotation.Nullable LegacyPolicyRuleSrc src) { - this.src = src; - } - - public LegacyPolicyRule dstType( - @jakarta.annotation.Nullable LegacyPolicySrcOrDestType dstType) { - this.dstType = dstType; - return this; - } - - /** - * (deprecated - replaced by \"dst\") destination account type - * - * @return dstType - * @deprecated - */ - @Deprecated - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DST_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public LegacyPolicySrcOrDestType getDstType() { - return dstType; - } - - @JsonProperty(JSON_PROPERTY_DST_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDstType(@jakarta.annotation.Nullable LegacyPolicySrcOrDestType dstType) { - this.dstType = dstType; - } - - public LegacyPolicyRule dstSubType( - @jakarta.annotation.Nullable LegacyPolicySrcOrDestSubType dstSubType) { - this.dstSubType = dstSubType; - return this; - } - - /** - * (deprecated - replaced by \"dst\") destination sub account type - * - * @return dstSubType - * @deprecated - */ - @Deprecated - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DST_SUB_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public LegacyPolicySrcOrDestSubType getDstSubType() { - return dstSubType; - } - - @JsonProperty(JSON_PROPERTY_DST_SUB_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDstSubType( - @jakarta.annotation.Nullable LegacyPolicySrcOrDestSubType dstSubType) { - this.dstSubType = dstSubType; - } - - public LegacyPolicyRule dstId(@jakarta.annotation.Nullable String dstId) { - this.dstId = dstId; - return this; - } - - /** - * (deprecated - replaced by \"dst\") destination account id - * - * @return dstId - * @deprecated - */ - @Deprecated - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DST_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getDstId() { - return dstId; - } - - @JsonProperty(JSON_PROPERTY_DST_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDstId(@jakarta.annotation.Nullable String dstId) { - this.dstId = dstId; - } - - public LegacyPolicyRule dst(@jakarta.annotation.Nullable LegacyPolicyRuleDst dst) { - this.dst = dst; - return this; - } - - /** - * Get dst - * - * @return dst - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DST) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public LegacyPolicyRuleDst getDst() { - return dst; - } - - @JsonProperty(JSON_PROPERTY_DST) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDst(@jakarta.annotation.Nullable LegacyPolicyRuleDst dst) { - this.dst = dst; - } - - public LegacyPolicyRule dstAddressType( - @jakarta.annotation.Nullable DstAddressTypeEnum dstAddressType) { - this.dstAddressType = dstAddressType; - return this; - } - - /** - * Defines whether the destination to which you are sending funds must be whitelisted, to allow - * one-time transfers to non-whitelisted external addresses, or both. By default, you can only - * transfer to an external address after it’s whitelisted. * WHITELISTED - Can only be sent to - * whitelisted addresses. * ONE_TIME - Can only be sent to non-whitelisted external addresses. * - * \"*\" - can be sent to whitelisted addresses or non-whitelisted external - * - * @return dstAddressType - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DST_ADDRESS_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public DstAddressTypeEnum getDstAddressType() { - return dstAddressType; - } - - @JsonProperty(JSON_PROPERTY_DST_ADDRESS_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDstAddressType(@jakarta.annotation.Nullable DstAddressTypeEnum dstAddressType) { - this.dstAddressType = dstAddressType; - } - - public LegacyPolicyRule amountCurrency( - @jakarta.annotation.Nonnull AmountCurrencyEnum amountCurrency) { - this.amountCurrency = amountCurrency; - return this; - } - - /** - * * USD - Limits the amount of any asset users can transfer based on the USD equivalent of the - * asset. * EUR - Limits the amount of any asset users can transfer based on the EURO equivalent - * of the asset. * NATIVE - Limits the amount of an asset a user can transfer when using a - * specific asset. - * - * @return amountCurrency - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_AMOUNT_CURRENCY) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AmountCurrencyEnum getAmountCurrency() { - return amountCurrency; - } - - @JsonProperty(JSON_PROPERTY_AMOUNT_CURRENCY) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAmountCurrency(@jakarta.annotation.Nonnull AmountCurrencyEnum amountCurrency) { - this.amountCurrency = amountCurrency; - } - - public LegacyPolicyRule amountScope(@jakarta.annotation.Nonnull AmountScopeEnum amountScope) { - this.amountScope = amountScope; - return this; - } - - /** - * * SINGLE_TX - limit applies to a single transaction * TIMEFRAME - limit applies to all - * transactions within the defined time period - * - * @return amountScope - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_AMOUNT_SCOPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AmountScopeEnum getAmountScope() { - return amountScope; - } - - @JsonProperty(JSON_PROPERTY_AMOUNT_SCOPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAmountScope(@jakarta.annotation.Nonnull AmountScopeEnum amountScope) { - this.amountScope = amountScope; - } - - public LegacyPolicyRule amount(@jakarta.annotation.Nonnull LegacyPolicyRuleAmount amount) { - this.amount = amount; - return this; - } - - /** - * Get amount - * - * @return amount - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_AMOUNT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public LegacyPolicyRuleAmount getAmount() { - return amount; - } - - @JsonProperty(JSON_PROPERTY_AMOUNT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAmount(@jakarta.annotation.Nonnull LegacyPolicyRuleAmount amount) { - this.amount = amount; - } - - public LegacyPolicyRule periodSec(@jakarta.annotation.Nonnull BigDecimal periodSec) { - this.periodSec = periodSec; - return this; - } - - /** - * Time period in seconds applied by the amountScope field to accumulate transferred amounts in - * transactions that match the rule, until the total exceeds the value you specify under - * Minimum. When the specified amount is reached within that period, whether by one or many - * transactions, further transactions in that period either fail or require more approvals. - * - * @return periodSec - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PERIOD_SEC) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public BigDecimal getPeriodSec() { - return periodSec; - } - - @JsonProperty(JSON_PROPERTY_PERIOD_SEC) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPeriodSec(@jakarta.annotation.Nonnull BigDecimal periodSec) { - this.periodSec = periodSec; - } - - public LegacyPolicyRule authorizers(@jakarta.annotation.Nullable List authorizers) { - this.authorizers = authorizers; - return this; - } - - public LegacyPolicyRule addAuthorizersItem(String authorizersItem) { - if (this.authorizers == null) { - this.authorizers = new ArrayList<>(); - } - this.authorizers.add(authorizersItem); - return this; - } - - /** - * (deprecated - replaced by \"authorizationGroups\") Allowed entities which can - * approves a transaction - * - * @return authorizers - * @deprecated - */ - @Deprecated - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_AUTHORIZERS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getAuthorizers() { - return authorizers; - } - - @JsonProperty(JSON_PROPERTY_AUTHORIZERS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAuthorizers(@jakarta.annotation.Nullable List authorizers) { - this.authorizers = authorizers; - } - - public LegacyPolicyRule authorizersCount( - @jakarta.annotation.Nullable BigDecimal authorizersCount) { - this.authorizersCount = authorizersCount; - return this; - } - - /** - * (deprecated - replaced by \"authorizationGroups\") Min amount of entities which are - * needed to approve a transaction - * - * @return authorizersCount - * @deprecated - */ - @Deprecated - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_AUTHORIZERS_COUNT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public BigDecimal getAuthorizersCount() { - return authorizersCount; - } - - @JsonProperty(JSON_PROPERTY_AUTHORIZERS_COUNT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAuthorizersCount(@jakarta.annotation.Nullable BigDecimal authorizersCount) { - this.authorizersCount = authorizersCount; - } - - public LegacyPolicyRule authorizationGroups( - @jakarta.annotation.Nullable LegacyPolicyRuleAuthorizationGroups authorizationGroups) { - this.authorizationGroups = authorizationGroups; - return this; - } - - /** - * Get authorizationGroups - * - * @return authorizationGroups - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_AUTHORIZATION_GROUPS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public LegacyPolicyRuleAuthorizationGroups getAuthorizationGroups() { - return authorizationGroups; - } - - @JsonProperty(JSON_PROPERTY_AUTHORIZATION_GROUPS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAuthorizationGroups( - @jakarta.annotation.Nullable LegacyPolicyRuleAuthorizationGroups authorizationGroups) { - this.authorizationGroups = authorizationGroups; - } - - public LegacyPolicyRule amountAggregation( - @jakarta.annotation.Nullable LegacyPolicyRuleAmountAggregation amountAggregation) { - this.amountAggregation = amountAggregation; - return this; - } - - /** - * Get amountAggregation - * - * @return amountAggregation - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_AMOUNT_AGGREGATION) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public LegacyPolicyRuleAmountAggregation getAmountAggregation() { - return amountAggregation; - } - - @JsonProperty(JSON_PROPERTY_AMOUNT_AGGREGATION) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAmountAggregation( - @jakarta.annotation.Nullable LegacyPolicyRuleAmountAggregation amountAggregation) { - this.amountAggregation = amountAggregation; - } - - public LegacyPolicyRule rawMessageSigning( - @jakarta.annotation.Nullable LegacyPolicyRuleRawMessageSigning rawMessageSigning) { - this.rawMessageSigning = rawMessageSigning; - return this; - } - - /** - * Get rawMessageSigning - * - * @return rawMessageSigning - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_RAW_MESSAGE_SIGNING) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public LegacyPolicyRuleRawMessageSigning getRawMessageSigning() { - return rawMessageSigning; - } - - @JsonProperty(JSON_PROPERTY_RAW_MESSAGE_SIGNING) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRawMessageSigning( - @jakarta.annotation.Nullable LegacyPolicyRuleRawMessageSigning rawMessageSigning) { - this.rawMessageSigning = rawMessageSigning; - } - - public LegacyPolicyRule applyForApprove(@jakarta.annotation.Nullable Boolean applyForApprove) { - this.applyForApprove = applyForApprove; - return this; - } - - /** - * Applying this rule over APPROVE type transactions (can only be enabled when rule's - * transaction type is TRANSFER) - * - * @return applyForApprove - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_APPLY_FOR_APPROVE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getApplyForApprove() { - return applyForApprove; - } - - @JsonProperty(JSON_PROPERTY_APPLY_FOR_APPROVE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setApplyForApprove(@jakarta.annotation.Nullable Boolean applyForApprove) { - this.applyForApprove = applyForApprove; - } - - public LegacyPolicyRule applyForTypedMessage( - @jakarta.annotation.Nullable Boolean applyForTypedMessage) { - this.applyForTypedMessage = applyForTypedMessage; - return this; - } - - /** - * Applying this rule over TYPED_MESSAGE type transactions (can only be enabled when rule's - * transaction type is CONTRACT_CALL) - * - * @return applyForTypedMessage - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_APPLY_FOR_TYPED_MESSAGE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getApplyForTypedMessage() { - return applyForTypedMessage; - } - - @JsonProperty(JSON_PROPERTY_APPLY_FOR_TYPED_MESSAGE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setApplyForTypedMessage(@jakarta.annotation.Nullable Boolean applyForTypedMessage) { - this.applyForTypedMessage = applyForTypedMessage; - } - - public LegacyPolicyRule externalDescriptor( - @jakarta.annotation.Nullable String externalDescriptor) { - this.externalDescriptor = externalDescriptor; - return this; - } - - /** - * A unique id identifying the rule - * - * @return externalDescriptor - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EXTERNAL_DESCRIPTOR) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getExternalDescriptor() { - return externalDescriptor; - } - - @JsonProperty(JSON_PROPERTY_EXTERNAL_DESCRIPTOR) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setExternalDescriptor(@jakarta.annotation.Nullable String externalDescriptor) { - this.externalDescriptor = externalDescriptor; - } - - /** Return true if this LegacyPolicyRule object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - LegacyPolicyRule legacyPolicyRule = (LegacyPolicyRule) o; - return Objects.equals(this.operator, legacyPolicyRule.operator) - && Objects.equals(this.operators, legacyPolicyRule.operators) - && Objects.equals(this.transactionType, legacyPolicyRule.transactionType) - && Objects.equals(this.designatedSigner, legacyPolicyRule.designatedSigner) - && Objects.equals(this.designatedSigners, legacyPolicyRule.designatedSigners) - && Objects.equals(this.type, legacyPolicyRule.type) - && Objects.equals(this.action, legacyPolicyRule.action) - && Objects.equals(this.asset, legacyPolicyRule.asset) - && Objects.equals(this.srcType, legacyPolicyRule.srcType) - && Objects.equals(this.srcSubType, legacyPolicyRule.srcSubType) - && Objects.equals(this.srcId, legacyPolicyRule.srcId) - && Objects.equals(this.src, legacyPolicyRule.src) - && Objects.equals(this.dstType, legacyPolicyRule.dstType) - && Objects.equals(this.dstSubType, legacyPolicyRule.dstSubType) - && Objects.equals(this.dstId, legacyPolicyRule.dstId) - && Objects.equals(this.dst, legacyPolicyRule.dst) - && Objects.equals(this.dstAddressType, legacyPolicyRule.dstAddressType) - && Objects.equals(this.amountCurrency, legacyPolicyRule.amountCurrency) - && Objects.equals(this.amountScope, legacyPolicyRule.amountScope) - && Objects.equals(this.amount, legacyPolicyRule.amount) - && Objects.equals(this.periodSec, legacyPolicyRule.periodSec) - && Objects.equals(this.authorizers, legacyPolicyRule.authorizers) - && Objects.equals(this.authorizersCount, legacyPolicyRule.authorizersCount) - && Objects.equals(this.authorizationGroups, legacyPolicyRule.authorizationGroups) - && Objects.equals(this.amountAggregation, legacyPolicyRule.amountAggregation) - && Objects.equals(this.rawMessageSigning, legacyPolicyRule.rawMessageSigning) - && Objects.equals(this.applyForApprove, legacyPolicyRule.applyForApprove) - && Objects.equals(this.applyForTypedMessage, legacyPolicyRule.applyForTypedMessage) - && Objects.equals(this.externalDescriptor, legacyPolicyRule.externalDescriptor); - } - - @Override - public int hashCode() { - return Objects.hash( - operator, - operators, - transactionType, - designatedSigner, - designatedSigners, - type, - action, - asset, - srcType, - srcSubType, - srcId, - src, - dstType, - dstSubType, - dstId, - dst, - dstAddressType, - amountCurrency, - amountScope, - amount, - periodSec, - authorizers, - authorizersCount, - authorizationGroups, - amountAggregation, - rawMessageSigning, - applyForApprove, - applyForTypedMessage, - externalDescriptor); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class LegacyPolicyRule {\n"); - sb.append(" operator: ").append(toIndentedString(operator)).append("\n"); - sb.append(" operators: ").append(toIndentedString(operators)).append("\n"); - sb.append(" transactionType: ").append(toIndentedString(transactionType)).append("\n"); - sb.append(" designatedSigner: ").append(toIndentedString(designatedSigner)).append("\n"); - sb.append(" designatedSigners: ") - .append(toIndentedString(designatedSigners)) - .append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" action: ").append(toIndentedString(action)).append("\n"); - sb.append(" asset: ").append(toIndentedString(asset)).append("\n"); - sb.append(" srcType: ").append(toIndentedString(srcType)).append("\n"); - sb.append(" srcSubType: ").append(toIndentedString(srcSubType)).append("\n"); - sb.append(" srcId: ").append(toIndentedString(srcId)).append("\n"); - sb.append(" src: ").append(toIndentedString(src)).append("\n"); - sb.append(" dstType: ").append(toIndentedString(dstType)).append("\n"); - sb.append(" dstSubType: ").append(toIndentedString(dstSubType)).append("\n"); - sb.append(" dstId: ").append(toIndentedString(dstId)).append("\n"); - sb.append(" dst: ").append(toIndentedString(dst)).append("\n"); - sb.append(" dstAddressType: ").append(toIndentedString(dstAddressType)).append("\n"); - sb.append(" amountCurrency: ").append(toIndentedString(amountCurrency)).append("\n"); - sb.append(" amountScope: ").append(toIndentedString(amountScope)).append("\n"); - sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); - sb.append(" periodSec: ").append(toIndentedString(periodSec)).append("\n"); - sb.append(" authorizers: ").append(toIndentedString(authorizers)).append("\n"); - sb.append(" authorizersCount: ").append(toIndentedString(authorizersCount)).append("\n"); - sb.append(" authorizationGroups: ") - .append(toIndentedString(authorizationGroups)) - .append("\n"); - sb.append(" amountAggregation: ") - .append(toIndentedString(amountAggregation)) - .append("\n"); - sb.append(" rawMessageSigning: ") - .append(toIndentedString(rawMessageSigning)) - .append("\n"); - sb.append(" applyForApprove: ").append(toIndentedString(applyForApprove)).append("\n"); - sb.append(" applyForTypedMessage: ") - .append(toIndentedString(applyForTypedMessage)) - .append("\n"); - sb.append(" externalDescriptor: ") - .append(toIndentedString(externalDescriptor)) - .append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `operator` to the URL query string - if (getOperator() != null) { - joiner.add( - String.format( - "%soperator%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getOperator())))); - } - - // add `operators` to the URL query string - if (getOperators() != null) { - joiner.add(getOperators().toUrlQueryString(prefix + "operators" + suffix)); - } - - // add `transactionType` to the URL query string - if (getTransactionType() != null) { - joiner.add( - String.format( - "%stransactionType%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getTransactionType())))); - } - - // add `designatedSigner` to the URL query string - if (getDesignatedSigner() != null) { - joiner.add( - String.format( - "%sdesignatedSigner%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getDesignatedSigner())))); - } - - // add `designatedSigners` to the URL query string - if (getDesignatedSigners() != null) { - joiner.add( - getDesignatedSigners().toUrlQueryString(prefix + "designatedSigners" + suffix)); - } - - // add `type` to the URL query string - if (getType() != null) { - joiner.add( - String.format( - "%stype%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getType())))); - } - - // add `action` to the URL query string - if (getAction() != null) { - joiner.add( - String.format( - "%saction%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAction())))); - } - - // add `asset` to the URL query string - if (getAsset() != null) { - joiner.add( - String.format( - "%sasset%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAsset())))); - } - - // add `srcType` to the URL query string - if (getSrcType() != null) { - joiner.add( - String.format( - "%ssrcType%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getSrcType())))); - } - - // add `srcSubType` to the URL query string - if (getSrcSubType() != null) { - joiner.add( - String.format( - "%ssrcSubType%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getSrcSubType())))); - } - - // add `srcId` to the URL query string - if (getSrcId() != null) { - joiner.add( - String.format( - "%ssrcId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getSrcId())))); - } - - // add `src` to the URL query string - if (getSrc() != null) { - joiner.add(getSrc().toUrlQueryString(prefix + "src" + suffix)); - } - - // add `dstType` to the URL query string - if (getDstType() != null) { - joiner.add( - String.format( - "%sdstType%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getDstType())))); - } - - // add `dstSubType` to the URL query string - if (getDstSubType() != null) { - joiner.add( - String.format( - "%sdstSubType%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getDstSubType())))); - } - - // add `dstId` to the URL query string - if (getDstId() != null) { - joiner.add( - String.format( - "%sdstId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getDstId())))); - } - - // add `dst` to the URL query string - if (getDst() != null) { - joiner.add(getDst().toUrlQueryString(prefix + "dst" + suffix)); - } - - // add `dstAddressType` to the URL query string - if (getDstAddressType() != null) { - joiner.add( - String.format( - "%sdstAddressType%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getDstAddressType())))); - } - - // add `amountCurrency` to the URL query string - if (getAmountCurrency() != null) { - joiner.add( - String.format( - "%samountCurrency%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAmountCurrency())))); - } - - // add `amountScope` to the URL query string - if (getAmountScope() != null) { - joiner.add( - String.format( - "%samountScope%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAmountScope())))); - } - - // add `amount` to the URL query string - if (getAmount() != null) { - joiner.add(getAmount().toUrlQueryString(prefix + "amount" + suffix)); - } - - // add `periodSec` to the URL query string - if (getPeriodSec() != null) { - joiner.add( - String.format( - "%speriodSec%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getPeriodSec())))); - } - - // add `authorizers` to the URL query string - if (getAuthorizers() != null) { - for (int i = 0; i < getAuthorizers().size(); i++) { - joiner.add( - String.format( - "%sauthorizers%s%s=%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode( - ApiClient.valueToString(getAuthorizers().get(i))))); - } - } - - // add `authorizersCount` to the URL query string - if (getAuthorizersCount() != null) { - joiner.add( - String.format( - "%sauthorizersCount%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAuthorizersCount())))); - } - - // add `authorizationGroups` to the URL query string - if (getAuthorizationGroups() != null) { - joiner.add( - getAuthorizationGroups() - .toUrlQueryString(prefix + "authorizationGroups" + suffix)); - } - - // add `amountAggregation` to the URL query string - if (getAmountAggregation() != null) { - joiner.add( - getAmountAggregation().toUrlQueryString(prefix + "amountAggregation" + suffix)); - } - - // add `rawMessageSigning` to the URL query string - if (getRawMessageSigning() != null) { - joiner.add( - getRawMessageSigning().toUrlQueryString(prefix + "rawMessageSigning" + suffix)); - } - - // add `applyForApprove` to the URL query string - if (getApplyForApprove() != null) { - joiner.add( - String.format( - "%sapplyForApprove%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getApplyForApprove())))); - } - - // add `applyForTypedMessage` to the URL query string - if (getApplyForTypedMessage() != null) { - joiner.add( - String.format( - "%sapplyForTypedMessage%s=%s", - prefix, - suffix, - ApiClient.urlEncode( - ApiClient.valueToString(getApplyForTypedMessage())))); - } - - // add `externalDescriptor` to the URL query string - if (getExternalDescriptor() != null) { - joiner.add( - String.format( - "%sexternalDescriptor%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getExternalDescriptor())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleCheckResult.java b/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleCheckResult.java deleted file mode 100644 index 2d668dd1..00000000 --- a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleCheckResult.java +++ /dev/null @@ -1,290 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fireblocks.sdk.ApiClient; -import java.math.BigDecimal; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** The rule validation result */ -@JsonPropertyOrder({ - LegacyPolicyRuleCheckResult.JSON_PROPERTY_INDEX, - LegacyPolicyRuleCheckResult.JSON_PROPERTY_STATUS, - LegacyPolicyRuleCheckResult.JSON_PROPERTY_ERRORS -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class LegacyPolicyRuleCheckResult { - public static final String JSON_PROPERTY_INDEX = "index"; - @jakarta.annotation.Nonnull private BigDecimal index; - - /** Validation status */ - public enum StatusEnum { - OK(String.valueOf("ok")), - - FAILURE(String.valueOf("failure")); - - private String value; - - StatusEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static StatusEnum fromValue(String value) { - for (StatusEnum b : StatusEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_STATUS = "status"; - @jakarta.annotation.Nonnull private StatusEnum status; - - public static final String JSON_PROPERTY_ERRORS = "errors"; - @jakarta.annotation.Nonnull private List errors = new ArrayList<>(); - - public LegacyPolicyRuleCheckResult() {} - - @JsonCreator - public LegacyPolicyRuleCheckResult( - @JsonProperty(value = JSON_PROPERTY_INDEX, required = true) BigDecimal index, - @JsonProperty(value = JSON_PROPERTY_STATUS, required = true) StatusEnum status, - @JsonProperty(value = JSON_PROPERTY_ERRORS, required = true) - List errors) { - this.index = index; - this.status = status; - this.errors = errors; - } - - public LegacyPolicyRuleCheckResult index(@jakarta.annotation.Nonnull BigDecimal index) { - this.index = index; - return this; - } - - /** - * Rule index number in the policy - * - * @return index - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_INDEX) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public BigDecimal getIndex() { - return index; - } - - @JsonProperty(JSON_PROPERTY_INDEX) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setIndex(@jakarta.annotation.Nonnull BigDecimal index) { - this.index = index; - } - - public LegacyPolicyRuleCheckResult status(@jakarta.annotation.Nonnull StatusEnum status) { - this.status = status; - return this; - } - - /** - * Validation status - * - * @return status - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_STATUS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public StatusEnum getStatus() { - return status; - } - - @JsonProperty(JSON_PROPERTY_STATUS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStatus(@jakarta.annotation.Nonnull StatusEnum status) { - this.status = status; - } - - public LegacyPolicyRuleCheckResult errors( - @jakarta.annotation.Nonnull List errors) { - this.errors = errors; - return this; - } - - public LegacyPolicyRuleCheckResult addErrorsItem(LegacyPolicyRuleError errorsItem) { - if (this.errors == null) { - this.errors = new ArrayList<>(); - } - this.errors.add(errorsItem); - return this; - } - - /** - * A set of rule validation error objects - * - * @return errors - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ERRORS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getErrors() { - return errors; - } - - @JsonProperty(JSON_PROPERTY_ERRORS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setErrors(@jakarta.annotation.Nonnull List errors) { - this.errors = errors; - } - - /** Return true if this LegacyPolicyRuleCheckResult object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - LegacyPolicyRuleCheckResult legacyPolicyRuleCheckResult = (LegacyPolicyRuleCheckResult) o; - return Objects.equals(this.index, legacyPolicyRuleCheckResult.index) - && Objects.equals(this.status, legacyPolicyRuleCheckResult.status) - && Objects.equals(this.errors, legacyPolicyRuleCheckResult.errors); - } - - @Override - public int hashCode() { - return Objects.hash(index, status, errors); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class LegacyPolicyRuleCheckResult {\n"); - sb.append(" index: ").append(toIndentedString(index)).append("\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `index` to the URL query string - if (getIndex() != null) { - joiner.add( - String.format( - "%sindex%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getIndex())))); - } - - // add `status` to the URL query string - if (getStatus() != null) { - joiner.add( - String.format( - "%sstatus%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getStatus())))); - } - - // add `errors` to the URL query string - if (getErrors() != null) { - for (int i = 0; i < getErrors().size(); i++) { - if (getErrors().get(i) != null) { - joiner.add( - getErrors() - .get(i) - .toUrlQueryString( - String.format( - "%serrors%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleError.java b/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleError.java deleted file mode 100644 index f644dffb..00000000 --- a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleError.java +++ /dev/null @@ -1,334 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fireblocks.sdk.ApiClient; -import java.math.BigDecimal; -import java.util.Objects; -import java.util.StringJoiner; - -/** Rule validation result error */ -@JsonPropertyOrder({ - LegacyPolicyRuleError.JSON_PROPERTY_ERROR_MESSAGE, - LegacyPolicyRuleError.JSON_PROPERTY_ERROR_CODE, - LegacyPolicyRuleError.JSON_PROPERTY_ERROR_CODE_NAME, - LegacyPolicyRuleError.JSON_PROPERTY_ERROR_FIELD -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class LegacyPolicyRuleError { - public static final String JSON_PROPERTY_ERROR_MESSAGE = "errorMessage"; - @jakarta.annotation.Nonnull private String errorMessage; - - public static final String JSON_PROPERTY_ERROR_CODE = "errorCode"; - @jakarta.annotation.Nonnull private BigDecimal errorCode; - - public static final String JSON_PROPERTY_ERROR_CODE_NAME = "errorCodeName"; - @jakarta.annotation.Nonnull private String errorCodeName; - - /** - * The field which the error relates to * operator - transaction initiator * operators - - * transaction initiators * authorizationGroups - transaction authorizer groups * - * designatedSigner - transaction signer * designatedSigners - transaction signers * - * contractMethods - contract methods * amountAggregation - transaction amount aggregation - * configuration * src - transaction source asset configuration * dst - transaction destination - * asset configuration - */ - public enum ErrorFieldEnum { - OPERATOR(String.valueOf("operator")), - - OPERATORS(String.valueOf("operators")), - - AUTHORIZATION_GROUPS(String.valueOf("authorizationGroups")), - - DESIGNATED_SIGNER(String.valueOf("designatedSigner")), - - DESIGNATED_SIGNERS(String.valueOf("designatedSigners")), - - CONTRACT_METHODS(String.valueOf("contractMethods")), - - AMOUNT_AGGREGATION(String.valueOf("amountAggregation")), - - SRC(String.valueOf("src")), - - DST(String.valueOf("dst")); - - private String value; - - ErrorFieldEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static ErrorFieldEnum fromValue(String value) { - for (ErrorFieldEnum b : ErrorFieldEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_ERROR_FIELD = "errorField"; - @jakarta.annotation.Nonnull private ErrorFieldEnum errorField; - - public LegacyPolicyRuleError() {} - - @JsonCreator - public LegacyPolicyRuleError( - @JsonProperty(value = JSON_PROPERTY_ERROR_MESSAGE, required = true) String errorMessage, - @JsonProperty(value = JSON_PROPERTY_ERROR_CODE, required = true) BigDecimal errorCode, - @JsonProperty(value = JSON_PROPERTY_ERROR_CODE_NAME, required = true) - String errorCodeName, - @JsonProperty(value = JSON_PROPERTY_ERROR_FIELD, required = true) - ErrorFieldEnum errorField) { - this.errorMessage = errorMessage; - this.errorCode = errorCode; - this.errorCodeName = errorCodeName; - this.errorField = errorField; - } - - public LegacyPolicyRuleError errorMessage(@jakarta.annotation.Nonnull String errorMessage) { - this.errorMessage = errorMessage; - return this; - } - - /** - * Error message - * - * @return errorMessage - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ERROR_MESSAGE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getErrorMessage() { - return errorMessage; - } - - @JsonProperty(JSON_PROPERTY_ERROR_MESSAGE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setErrorMessage(@jakarta.annotation.Nonnull String errorMessage) { - this.errorMessage = errorMessage; - } - - public LegacyPolicyRuleError errorCode(@jakarta.annotation.Nonnull BigDecimal errorCode) { - this.errorCode = errorCode; - return this; - } - - /** - * error code - * - * @return errorCode - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ERROR_CODE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public BigDecimal getErrorCode() { - return errorCode; - } - - @JsonProperty(JSON_PROPERTY_ERROR_CODE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setErrorCode(@jakarta.annotation.Nonnull BigDecimal errorCode) { - this.errorCode = errorCode; - } - - public LegacyPolicyRuleError errorCodeName(@jakarta.annotation.Nonnull String errorCodeName) { - this.errorCodeName = errorCodeName; - return this; - } - - /** - * error code name - * - * @return errorCodeName - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ERROR_CODE_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getErrorCodeName() { - return errorCodeName; - } - - @JsonProperty(JSON_PROPERTY_ERROR_CODE_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setErrorCodeName(@jakarta.annotation.Nonnull String errorCodeName) { - this.errorCodeName = errorCodeName; - } - - public LegacyPolicyRuleError errorField(@jakarta.annotation.Nonnull ErrorFieldEnum errorField) { - this.errorField = errorField; - return this; - } - - /** - * The field which the error relates to * operator - transaction initiator * operators - - * transaction initiators * authorizationGroups - transaction authorizer groups * - * designatedSigner - transaction signer * designatedSigners - transaction signers * - * contractMethods - contract methods * amountAggregation - transaction amount aggregation - * configuration * src - transaction source asset configuration * dst - transaction destination - * asset configuration - * - * @return errorField - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ERROR_FIELD) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public ErrorFieldEnum getErrorField() { - return errorField; - } - - @JsonProperty(JSON_PROPERTY_ERROR_FIELD) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setErrorField(@jakarta.annotation.Nonnull ErrorFieldEnum errorField) { - this.errorField = errorField; - } - - /** Return true if this LegacyPolicyRuleError object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - LegacyPolicyRuleError legacyPolicyRuleError = (LegacyPolicyRuleError) o; - return Objects.equals(this.errorMessage, legacyPolicyRuleError.errorMessage) - && Objects.equals(this.errorCode, legacyPolicyRuleError.errorCode) - && Objects.equals(this.errorCodeName, legacyPolicyRuleError.errorCodeName) - && Objects.equals(this.errorField, legacyPolicyRuleError.errorField); - } - - @Override - public int hashCode() { - return Objects.hash(errorMessage, errorCode, errorCodeName, errorField); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class LegacyPolicyRuleError {\n"); - sb.append(" errorMessage: ").append(toIndentedString(errorMessage)).append("\n"); - sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); - sb.append(" errorCodeName: ").append(toIndentedString(errorCodeName)).append("\n"); - sb.append(" errorField: ").append(toIndentedString(errorField)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `errorMessage` to the URL query string - if (getErrorMessage() != null) { - joiner.add( - String.format( - "%serrorMessage%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getErrorMessage())))); - } - - // add `errorCode` to the URL query string - if (getErrorCode() != null) { - joiner.add( - String.format( - "%serrorCode%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getErrorCode())))); - } - - // add `errorCodeName` to the URL query string - if (getErrorCodeName() != null) { - joiner.add( - String.format( - "%serrorCodeName%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getErrorCodeName())))); - } - - // add `errorField` to the URL query string - if (getErrorField() != null) { - joiner.add( - String.format( - "%serrorField%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getErrorField())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyStatus.java b/src/main/java/com/fireblocks/sdk/model/LegacyPolicyStatus.java deleted file mode 100644 index dcf55a34..00000000 --- a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyStatus.java +++ /dev/null @@ -1,78 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - -/** - * * SUCCESS - success * UNVALIDATED - not validated yet * INVALID_CONFIGURATION - at least one rule - * is invalid * PENDING - pending approval * PENDING_CONSOLE_APPROVAL - pending approval from the - * console app * AWAITING_QUORUM - pending quorum approval * UNHANDLED_ERROR - unhandled error - */ -public enum LegacyPolicyStatus { - SUCCESS("SUCCESS"), - - UNVALIDATED("UNVALIDATED"), - - INVALID_CONFIGURATION("INVALID_CONFIGURATION"), - - PENDING("PENDING"), - - PENDING_CONSOLE_APPROVAL("PENDING_CONSOLE_APPROVAL"), - - AWAITING_QUORUM("AWAITING_QUORUM"), - - UNHANDLED_ERROR("UNHANDLED_ERROR"); - - private String value; - - LegacyPolicyStatus(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static LegacyPolicyStatus fromValue(String value) { - for (LegacyPolicyStatus b : LegacyPolicyStatus.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - if (prefix == null) { - prefix = ""; - } - - return String.format("%s=%s", prefix, this.toString()); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyValidation.java b/src/main/java/com/fireblocks/sdk/model/LegacyPolicyValidation.java deleted file mode 100644 index 9c833104..00000000 --- a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyValidation.java +++ /dev/null @@ -1,186 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** Policy validation object */ -@JsonPropertyOrder({ - LegacyPolicyValidation.JSON_PROPERTY_STATUS, - LegacyPolicyValidation.JSON_PROPERTY_CHECK_RESULT -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class LegacyPolicyValidation { - public static final String JSON_PROPERTY_STATUS = "status"; - @jakarta.annotation.Nonnull private String status; - - public static final String JSON_PROPERTY_CHECK_RESULT = "checkResult"; - @jakarta.annotation.Nonnull private LegacyPolicyCheckResult checkResult; - - public LegacyPolicyValidation() {} - - @JsonCreator - public LegacyPolicyValidation( - @JsonProperty(value = JSON_PROPERTY_STATUS, required = true) String status, - @JsonProperty(value = JSON_PROPERTY_CHECK_RESULT, required = true) - LegacyPolicyCheckResult checkResult) { - this.status = status; - this.checkResult = checkResult; - } - - public LegacyPolicyValidation status(@jakarta.annotation.Nonnull String status) { - this.status = status; - return this; - } - - /** - * Validation status - * - * @return status - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_STATUS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getStatus() { - return status; - } - - @JsonProperty(JSON_PROPERTY_STATUS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStatus(@jakarta.annotation.Nonnull String status) { - this.status = status; - } - - public LegacyPolicyValidation checkResult( - @jakarta.annotation.Nonnull LegacyPolicyCheckResult checkResult) { - this.checkResult = checkResult; - return this; - } - - /** - * Get checkResult - * - * @return checkResult - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CHECK_RESULT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public LegacyPolicyCheckResult getCheckResult() { - return checkResult; - } - - @JsonProperty(JSON_PROPERTY_CHECK_RESULT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCheckResult(@jakarta.annotation.Nonnull LegacyPolicyCheckResult checkResult) { - this.checkResult = checkResult; - } - - /** Return true if this LegacyPolicyValidation object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - LegacyPolicyValidation legacyPolicyValidation = (LegacyPolicyValidation) o; - return Objects.equals(this.status, legacyPolicyValidation.status) - && Objects.equals(this.checkResult, legacyPolicyValidation.checkResult); - } - - @Override - public int hashCode() { - return Objects.hash(status, checkResult); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class LegacyPolicyValidation {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append(" checkResult: ").append(toIndentedString(checkResult)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `status` to the URL query string - if (getStatus() != null) { - joiner.add( - String.format( - "%sstatus%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getStatus())))); - } - - // add `checkResult` to the URL query string - if (getCheckResult() != null) { - joiner.add(getCheckResult().toUrlQueryString(prefix + "checkResult" + suffix)); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/LegacyPublishDraftRequest.java b/src/main/java/com/fireblocks/sdk/model/LegacyPublishDraftRequest.java deleted file mode 100644 index 0aca5758..00000000 --- a/src/main/java/com/fireblocks/sdk/model/LegacyPublishDraftRequest.java +++ /dev/null @@ -1,139 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** LegacyPublishDraftRequest */ -@JsonPropertyOrder({LegacyPublishDraftRequest.JSON_PROPERTY_DRAFT_ID}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class LegacyPublishDraftRequest { - public static final String JSON_PROPERTY_DRAFT_ID = "draftId"; - @jakarta.annotation.Nullable private String draftId; - - public LegacyPublishDraftRequest() {} - - public LegacyPublishDraftRequest draftId(@jakarta.annotation.Nullable String draftId) { - this.draftId = draftId; - return this; - } - - /** - * draft unique identifier - * - * @return draftId - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DRAFT_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getDraftId() { - return draftId; - } - - @JsonProperty(JSON_PROPERTY_DRAFT_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDraftId(@jakarta.annotation.Nullable String draftId) { - this.draftId = draftId; - } - - /** Return true if this LegacyPublishDraftRequest object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - LegacyPublishDraftRequest legacyPublishDraftRequest = (LegacyPublishDraftRequest) o; - return Objects.equals(this.draftId, legacyPublishDraftRequest.draftId); - } - - @Override - public int hashCode() { - return Objects.hash(draftId); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class LegacyPublishDraftRequest {\n"); - sb.append(" draftId: ").append(toIndentedString(draftId)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `draftId` to the URL query string - if (getDraftId() != null) { - joiner.add( - String.format( - "%sdraftId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getDraftId())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/LegacyPublishResult.java b/src/main/java/com/fireblocks/sdk/model/LegacyPublishResult.java deleted file mode 100644 index 9a887bab..00000000 --- a/src/main/java/com/fireblocks/sdk/model/LegacyPublishResult.java +++ /dev/null @@ -1,288 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** Response object of the publish policy operation */ -@JsonPropertyOrder({ - LegacyPublishResult.JSON_PROPERTY_STATUS, - LegacyPublishResult.JSON_PROPERTY_RULES, - LegacyPublishResult.JSON_PROPERTY_CHECK_RESULT, - LegacyPublishResult.JSON_PROPERTY_METADATA -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class LegacyPublishResult { - public static final String JSON_PROPERTY_STATUS = "status"; - @jakarta.annotation.Nonnull private LegacyPolicyStatus status; - - public static final String JSON_PROPERTY_RULES = "rules"; - @jakarta.annotation.Nonnull private List rules = new ArrayList<>(); - - public static final String JSON_PROPERTY_CHECK_RESULT = "checkResult"; - @jakarta.annotation.Nonnull private LegacyPolicyCheckResult checkResult; - - public static final String JSON_PROPERTY_METADATA = "metadata"; - @jakarta.annotation.Nonnull private LegacyPolicyMetadata metadata; - - public LegacyPublishResult() {} - - @JsonCreator - public LegacyPublishResult( - @JsonProperty(value = JSON_PROPERTY_STATUS, required = true) LegacyPolicyStatus status, - @JsonProperty(value = JSON_PROPERTY_RULES, required = true) - List rules, - @JsonProperty(value = JSON_PROPERTY_CHECK_RESULT, required = true) - LegacyPolicyCheckResult checkResult, - @JsonProperty(value = JSON_PROPERTY_METADATA, required = true) - LegacyPolicyMetadata metadata) { - this.status = status; - this.rules = rules; - this.checkResult = checkResult; - this.metadata = metadata; - } - - public LegacyPublishResult status(@jakarta.annotation.Nonnull LegacyPolicyStatus status) { - this.status = status; - return this; - } - - /** - * Get status - * - * @return status - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_STATUS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public LegacyPolicyStatus getStatus() { - return status; - } - - @JsonProperty(JSON_PROPERTY_STATUS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStatus(@jakarta.annotation.Nonnull LegacyPolicyStatus status) { - this.status = status; - } - - public LegacyPublishResult rules(@jakarta.annotation.Nonnull List rules) { - this.rules = rules; - return this; - } - - public LegacyPublishResult addRulesItem(LegacyPolicyRule rulesItem) { - if (this.rules == null) { - this.rules = new ArrayList<>(); - } - this.rules.add(rulesItem); - return this; - } - - /** - * Get rules - * - * @return rules - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_RULES) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getRules() { - return rules; - } - - @JsonProperty(JSON_PROPERTY_RULES) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setRules(@jakarta.annotation.Nonnull List rules) { - this.rules = rules; - } - - public LegacyPublishResult checkResult( - @jakarta.annotation.Nonnull LegacyPolicyCheckResult checkResult) { - this.checkResult = checkResult; - return this; - } - - /** - * Get checkResult - * - * @return checkResult - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CHECK_RESULT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public LegacyPolicyCheckResult getCheckResult() { - return checkResult; - } - - @JsonProperty(JSON_PROPERTY_CHECK_RESULT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCheckResult(@jakarta.annotation.Nonnull LegacyPolicyCheckResult checkResult) { - this.checkResult = checkResult; - } - - public LegacyPublishResult metadata(@jakarta.annotation.Nonnull LegacyPolicyMetadata metadata) { - this.metadata = metadata; - return this; - } - - /** - * Get metadata - * - * @return metadata - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_METADATA) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public LegacyPolicyMetadata getMetadata() { - return metadata; - } - - @JsonProperty(JSON_PROPERTY_METADATA) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setMetadata(@jakarta.annotation.Nonnull LegacyPolicyMetadata metadata) { - this.metadata = metadata; - } - - /** Return true if this LegacyPublishResult object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - LegacyPublishResult legacyPublishResult = (LegacyPublishResult) o; - return Objects.equals(this.status, legacyPublishResult.status) - && Objects.equals(this.rules, legacyPublishResult.rules) - && Objects.equals(this.checkResult, legacyPublishResult.checkResult) - && Objects.equals(this.metadata, legacyPublishResult.metadata); - } - - @Override - public int hashCode() { - return Objects.hash(status, rules, checkResult, metadata); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class LegacyPublishResult {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append(" rules: ").append(toIndentedString(rules)).append("\n"); - sb.append(" checkResult: ").append(toIndentedString(checkResult)).append("\n"); - sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `status` to the URL query string - if (getStatus() != null) { - joiner.add( - String.format( - "%sstatus%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getStatus())))); - } - - // add `rules` to the URL query string - if (getRules() != null) { - for (int i = 0; i < getRules().size(); i++) { - if (getRules().get(i) != null) { - joiner.add( - getRules() - .get(i) - .toUrlQueryString( - String.format( - "%srules%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } - } - - // add `checkResult` to the URL query string - if (getCheckResult() != null) { - joiner.add(getCheckResult().toUrlQueryString(prefix + "checkResult" + suffix)); - } - - // add `metadata` to the URL query string - if (getMetadata() != null) { - joiner.add(getMetadata().toUrlQueryString(prefix + "metadata" + suffix)); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/LimitExecutionRequestDetails.java b/src/main/java/com/fireblocks/sdk/model/LimitExecutionRequestDetails.java deleted file mode 100644 index a0d71feb..00000000 --- a/src/main/java/com/fireblocks/sdk/model/LimitExecutionRequestDetails.java +++ /dev/null @@ -1,554 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** LimitExecutionRequestDetails */ -@JsonPropertyOrder({ - LimitExecutionRequestDetails.JSON_PROPERTY_SIDE, - LimitExecutionRequestDetails.JSON_PROPERTY_BASE_AMOUNT, - LimitExecutionRequestDetails.JSON_PROPERTY_BASE_ASSET_ID, - LimitExecutionRequestDetails.JSON_PROPERTY_BASE_ASSET_RAIL, - LimitExecutionRequestDetails.JSON_PROPERTY_QUOTE_ASSET_ID, - LimitExecutionRequestDetails.JSON_PROPERTY_QUOTE_ASSET_RAIL, - LimitExecutionRequestDetails.JSON_PROPERTY_TYPE, - LimitExecutionRequestDetails.JSON_PROPERTY_TIME_IN_FORCE, - LimitExecutionRequestDetails.JSON_PROPERTY_LIMIT_PRICE -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class LimitExecutionRequestDetails { - /** Side of the order */ - public enum SideEnum { - BUY(String.valueOf("BUY")), - - SELL(String.valueOf("SELL")); - - private String value; - - SideEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static SideEnum fromValue(String value) { - for (SideEnum b : SideEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_SIDE = "side"; - @jakarta.annotation.Nonnull private SideEnum side = SideEnum.BUY; - - public static final String JSON_PROPERTY_BASE_AMOUNT = "baseAmount"; - @jakarta.annotation.Nonnull private String baseAmount; - - public static final String JSON_PROPERTY_BASE_ASSET_ID = "baseAssetId"; - @jakarta.annotation.Nonnull private String baseAssetId; - - public static final String JSON_PROPERTY_BASE_ASSET_RAIL = "baseAssetRail"; - @jakarta.annotation.Nullable private TransferRail baseAssetRail; - - public static final String JSON_PROPERTY_QUOTE_ASSET_ID = "quoteAssetId"; - @jakarta.annotation.Nonnull private String quoteAssetId; - - public static final String JSON_PROPERTY_QUOTE_ASSET_RAIL = "quoteAssetRail"; - @jakarta.annotation.Nullable private TransferRail quoteAssetRail; - - /** Order type for limit orders */ - public enum TypeEnum { - LIMIT(String.valueOf("LIMIT")); - - private String value; - - TypeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static TypeEnum fromValue(String value) { - for (TypeEnum b : TypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_TYPE = "type"; - @jakarta.annotation.Nonnull private TypeEnum type; - - public static final String JSON_PROPERTY_TIME_IN_FORCE = "timeInForce"; - @jakarta.annotation.Nonnull private TimeInForce timeInForce; - - public static final String JSON_PROPERTY_LIMIT_PRICE = "limitPrice"; - @jakarta.annotation.Nonnull private String limitPrice; - - public LimitExecutionRequestDetails() {} - - @JsonCreator - public LimitExecutionRequestDetails( - @JsonProperty(value = JSON_PROPERTY_SIDE, required = true) SideEnum side, - @JsonProperty(value = JSON_PROPERTY_BASE_AMOUNT, required = true) String baseAmount, - @JsonProperty(value = JSON_PROPERTY_BASE_ASSET_ID, required = true) String baseAssetId, - @JsonProperty(value = JSON_PROPERTY_QUOTE_ASSET_ID, required = true) - String quoteAssetId, - @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) TypeEnum type, - @JsonProperty(value = JSON_PROPERTY_TIME_IN_FORCE, required = true) - TimeInForce timeInForce, - @JsonProperty(value = JSON_PROPERTY_LIMIT_PRICE, required = true) String limitPrice) { - this.side = side; - this.baseAmount = baseAmount; - this.baseAssetId = baseAssetId; - this.quoteAssetId = quoteAssetId; - this.type = type; - this.timeInForce = timeInForce; - this.limitPrice = limitPrice; - } - - public LimitExecutionRequestDetails side(@jakarta.annotation.Nonnull SideEnum side) { - this.side = side; - return this; - } - - /** - * Side of the order - * - * @return side - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SIDE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public SideEnum getSide() { - return side; - } - - @JsonProperty(JSON_PROPERTY_SIDE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSide(@jakarta.annotation.Nonnull SideEnum side) { - this.side = side; - } - - public LimitExecutionRequestDetails baseAmount(@jakarta.annotation.Nonnull String baseAmount) { - this.baseAmount = baseAmount; - return this; - } - - /** - * Amount to convert - * - * @return baseAmount - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BASE_AMOUNT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getBaseAmount() { - return baseAmount; - } - - @JsonProperty(JSON_PROPERTY_BASE_AMOUNT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBaseAmount(@jakarta.annotation.Nonnull String baseAmount) { - this.baseAmount = baseAmount; - } - - public LimitExecutionRequestDetails baseAssetId( - @jakarta.annotation.Nonnull String baseAssetId) { - this.baseAssetId = baseAssetId; - return this; - } - - /** - * Source asset identifier - * - * @return baseAssetId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BASE_ASSET_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getBaseAssetId() { - return baseAssetId; - } - - @JsonProperty(JSON_PROPERTY_BASE_ASSET_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBaseAssetId(@jakarta.annotation.Nonnull String baseAssetId) { - this.baseAssetId = baseAssetId; - } - - public LimitExecutionRequestDetails baseAssetRail( - @jakarta.annotation.Nullable TransferRail baseAssetRail) { - this.baseAssetRail = baseAssetRail; - return this; - } - - /** - * Get baseAssetRail - * - * @return baseAssetRail - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BASE_ASSET_RAIL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public TransferRail getBaseAssetRail() { - return baseAssetRail; - } - - @JsonProperty(JSON_PROPERTY_BASE_ASSET_RAIL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBaseAssetRail(@jakarta.annotation.Nullable TransferRail baseAssetRail) { - this.baseAssetRail = baseAssetRail; - } - - public LimitExecutionRequestDetails quoteAssetId( - @jakarta.annotation.Nonnull String quoteAssetId) { - this.quoteAssetId = quoteAssetId; - return this; - } - - /** - * Target asset identifier - * - * @return quoteAssetId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_QUOTE_ASSET_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getQuoteAssetId() { - return quoteAssetId; - } - - @JsonProperty(JSON_PROPERTY_QUOTE_ASSET_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setQuoteAssetId(@jakarta.annotation.Nonnull String quoteAssetId) { - this.quoteAssetId = quoteAssetId; - } - - public LimitExecutionRequestDetails quoteAssetRail( - @jakarta.annotation.Nullable TransferRail quoteAssetRail) { - this.quoteAssetRail = quoteAssetRail; - return this; - } - - /** - * Get quoteAssetRail - * - * @return quoteAssetRail - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_QUOTE_ASSET_RAIL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public TransferRail getQuoteAssetRail() { - return quoteAssetRail; - } - - @JsonProperty(JSON_PROPERTY_QUOTE_ASSET_RAIL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setQuoteAssetRail(@jakarta.annotation.Nullable TransferRail quoteAssetRail) { - this.quoteAssetRail = quoteAssetRail; - } - - public LimitExecutionRequestDetails type(@jakarta.annotation.Nonnull TypeEnum type) { - this.type = type; - return this; - } - - /** - * Order type for limit orders - * - * @return type - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { - return type; - } - - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(@jakarta.annotation.Nonnull TypeEnum type) { - this.type = type; - } - - public LimitExecutionRequestDetails timeInForce( - @jakarta.annotation.Nonnull TimeInForce timeInForce) { - this.timeInForce = timeInForce; - return this; - } - - /** - * Get timeInForce - * - * @return timeInForce - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TIME_IN_FORCE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TimeInForce getTimeInForce() { - return timeInForce; - } - - @JsonProperty(JSON_PROPERTY_TIME_IN_FORCE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTimeInForce(@jakarta.annotation.Nonnull TimeInForce timeInForce) { - this.timeInForce = timeInForce; - } - - public LimitExecutionRequestDetails limitPrice(@jakarta.annotation.Nonnull String limitPrice) { - this.limitPrice = limitPrice; - return this; - } - - /** - * Price for limit orders - * - * @return limitPrice - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_LIMIT_PRICE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getLimitPrice() { - return limitPrice; - } - - @JsonProperty(JSON_PROPERTY_LIMIT_PRICE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setLimitPrice(@jakarta.annotation.Nonnull String limitPrice) { - this.limitPrice = limitPrice; - } - - /** Return true if this LimitExecutionRequestDetails object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - LimitExecutionRequestDetails limitExecutionRequestDetails = - (LimitExecutionRequestDetails) o; - return Objects.equals(this.side, limitExecutionRequestDetails.side) - && Objects.equals(this.baseAmount, limitExecutionRequestDetails.baseAmount) - && Objects.equals(this.baseAssetId, limitExecutionRequestDetails.baseAssetId) - && Objects.equals(this.baseAssetRail, limitExecutionRequestDetails.baseAssetRail) - && Objects.equals(this.quoteAssetId, limitExecutionRequestDetails.quoteAssetId) - && Objects.equals(this.quoteAssetRail, limitExecutionRequestDetails.quoteAssetRail) - && Objects.equals(this.type, limitExecutionRequestDetails.type) - && Objects.equals(this.timeInForce, limitExecutionRequestDetails.timeInForce) - && Objects.equals(this.limitPrice, limitExecutionRequestDetails.limitPrice); - } - - @Override - public int hashCode() { - return Objects.hash( - side, - baseAmount, - baseAssetId, - baseAssetRail, - quoteAssetId, - quoteAssetRail, - type, - timeInForce, - limitPrice); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class LimitExecutionRequestDetails {\n"); - sb.append(" side: ").append(toIndentedString(side)).append("\n"); - sb.append(" baseAmount: ").append(toIndentedString(baseAmount)).append("\n"); - sb.append(" baseAssetId: ").append(toIndentedString(baseAssetId)).append("\n"); - sb.append(" baseAssetRail: ").append(toIndentedString(baseAssetRail)).append("\n"); - sb.append(" quoteAssetId: ").append(toIndentedString(quoteAssetId)).append("\n"); - sb.append(" quoteAssetRail: ").append(toIndentedString(quoteAssetRail)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" timeInForce: ").append(toIndentedString(timeInForce)).append("\n"); - sb.append(" limitPrice: ").append(toIndentedString(limitPrice)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `side` to the URL query string - if (getSide() != null) { - joiner.add( - String.format( - "%sside%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getSide())))); - } - - // add `baseAmount` to the URL query string - if (getBaseAmount() != null) { - joiner.add( - String.format( - "%sbaseAmount%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBaseAmount())))); - } - - // add `baseAssetId` to the URL query string - if (getBaseAssetId() != null) { - joiner.add( - String.format( - "%sbaseAssetId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBaseAssetId())))); - } - - // add `baseAssetRail` to the URL query string - if (getBaseAssetRail() != null) { - joiner.add( - String.format( - "%sbaseAssetRail%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBaseAssetRail())))); - } - - // add `quoteAssetId` to the URL query string - if (getQuoteAssetId() != null) { - joiner.add( - String.format( - "%squoteAssetId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getQuoteAssetId())))); - } - - // add `quoteAssetRail` to the URL query string - if (getQuoteAssetRail() != null) { - joiner.add( - String.format( - "%squoteAssetRail%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getQuoteAssetRail())))); - } - - // add `type` to the URL query string - if (getType() != null) { - joiner.add( - String.format( - "%stype%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getType())))); - } - - // add `timeInForce` to the URL query string - if (getTimeInForce() != null) { - joiner.add( - String.format( - "%stimeInForce%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getTimeInForce())))); - } - - // add `limitPrice` to the URL query string - if (getLimitPrice() != null) { - joiner.add( - String.format( - "%slimitPrice%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getLimitPrice())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/LimitExecutionResponseDetails.java b/src/main/java/com/fireblocks/sdk/model/LimitExecutionResponseDetails.java deleted file mode 100644 index 62b8039a..00000000 --- a/src/main/java/com/fireblocks/sdk/model/LimitExecutionResponseDetails.java +++ /dev/null @@ -1,554 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** LimitExecutionResponseDetails */ -@JsonPropertyOrder({ - LimitExecutionResponseDetails.JSON_PROPERTY_SIDE, - LimitExecutionResponseDetails.JSON_PROPERTY_BASE_AMOUNT, - LimitExecutionResponseDetails.JSON_PROPERTY_BASE_ASSET_ID, - LimitExecutionResponseDetails.JSON_PROPERTY_BASE_ASSET_RAIL, - LimitExecutionResponseDetails.JSON_PROPERTY_QUOTE_ASSET_ID, - LimitExecutionResponseDetails.JSON_PROPERTY_QUOTE_ASSET_RAIL, - LimitExecutionResponseDetails.JSON_PROPERTY_TYPE, - LimitExecutionResponseDetails.JSON_PROPERTY_TIME_IN_FORCE, - LimitExecutionResponseDetails.JSON_PROPERTY_LIMIT_PRICE -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class LimitExecutionResponseDetails { - /** Side of the order */ - public enum SideEnum { - BUY(String.valueOf("BUY")), - - SELL(String.valueOf("SELL")); - - private String value; - - SideEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static SideEnum fromValue(String value) { - for (SideEnum b : SideEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_SIDE = "side"; - @jakarta.annotation.Nonnull private SideEnum side = SideEnum.BUY; - - public static final String JSON_PROPERTY_BASE_AMOUNT = "baseAmount"; - @jakarta.annotation.Nonnull private String baseAmount; - - public static final String JSON_PROPERTY_BASE_ASSET_ID = "baseAssetId"; - @jakarta.annotation.Nonnull private String baseAssetId; - - public static final String JSON_PROPERTY_BASE_ASSET_RAIL = "baseAssetRail"; - @jakarta.annotation.Nullable private TransferRail baseAssetRail; - - public static final String JSON_PROPERTY_QUOTE_ASSET_ID = "quoteAssetId"; - @jakarta.annotation.Nonnull private String quoteAssetId; - - public static final String JSON_PROPERTY_QUOTE_ASSET_RAIL = "quoteAssetRail"; - @jakarta.annotation.Nullable private TransferRail quoteAssetRail; - - /** Order type for limit orders */ - public enum TypeEnum { - LIMIT(String.valueOf("LIMIT")); - - private String value; - - TypeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static TypeEnum fromValue(String value) { - for (TypeEnum b : TypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_TYPE = "type"; - @jakarta.annotation.Nonnull private TypeEnum type; - - public static final String JSON_PROPERTY_TIME_IN_FORCE = "timeInForce"; - @jakarta.annotation.Nonnull private TimeInForce timeInForce; - - public static final String JSON_PROPERTY_LIMIT_PRICE = "limitPrice"; - @jakarta.annotation.Nonnull private String limitPrice; - - public LimitExecutionResponseDetails() {} - - @JsonCreator - public LimitExecutionResponseDetails( - @JsonProperty(value = JSON_PROPERTY_SIDE, required = true) SideEnum side, - @JsonProperty(value = JSON_PROPERTY_BASE_AMOUNT, required = true) String baseAmount, - @JsonProperty(value = JSON_PROPERTY_BASE_ASSET_ID, required = true) String baseAssetId, - @JsonProperty(value = JSON_PROPERTY_QUOTE_ASSET_ID, required = true) - String quoteAssetId, - @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) TypeEnum type, - @JsonProperty(value = JSON_PROPERTY_TIME_IN_FORCE, required = true) - TimeInForce timeInForce, - @JsonProperty(value = JSON_PROPERTY_LIMIT_PRICE, required = true) String limitPrice) { - this.side = side; - this.baseAmount = baseAmount; - this.baseAssetId = baseAssetId; - this.quoteAssetId = quoteAssetId; - this.type = type; - this.timeInForce = timeInForce; - this.limitPrice = limitPrice; - } - - public LimitExecutionResponseDetails side(@jakarta.annotation.Nonnull SideEnum side) { - this.side = side; - return this; - } - - /** - * Side of the order - * - * @return side - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SIDE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public SideEnum getSide() { - return side; - } - - @JsonProperty(JSON_PROPERTY_SIDE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSide(@jakarta.annotation.Nonnull SideEnum side) { - this.side = side; - } - - public LimitExecutionResponseDetails baseAmount(@jakarta.annotation.Nonnull String baseAmount) { - this.baseAmount = baseAmount; - return this; - } - - /** - * Amount to convert - * - * @return baseAmount - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BASE_AMOUNT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getBaseAmount() { - return baseAmount; - } - - @JsonProperty(JSON_PROPERTY_BASE_AMOUNT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBaseAmount(@jakarta.annotation.Nonnull String baseAmount) { - this.baseAmount = baseAmount; - } - - public LimitExecutionResponseDetails baseAssetId( - @jakarta.annotation.Nonnull String baseAssetId) { - this.baseAssetId = baseAssetId; - return this; - } - - /** - * Source asset identifier - * - * @return baseAssetId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BASE_ASSET_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getBaseAssetId() { - return baseAssetId; - } - - @JsonProperty(JSON_PROPERTY_BASE_ASSET_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBaseAssetId(@jakarta.annotation.Nonnull String baseAssetId) { - this.baseAssetId = baseAssetId; - } - - public LimitExecutionResponseDetails baseAssetRail( - @jakarta.annotation.Nullable TransferRail baseAssetRail) { - this.baseAssetRail = baseAssetRail; - return this; - } - - /** - * Get baseAssetRail - * - * @return baseAssetRail - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BASE_ASSET_RAIL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public TransferRail getBaseAssetRail() { - return baseAssetRail; - } - - @JsonProperty(JSON_PROPERTY_BASE_ASSET_RAIL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBaseAssetRail(@jakarta.annotation.Nullable TransferRail baseAssetRail) { - this.baseAssetRail = baseAssetRail; - } - - public LimitExecutionResponseDetails quoteAssetId( - @jakarta.annotation.Nonnull String quoteAssetId) { - this.quoteAssetId = quoteAssetId; - return this; - } - - /** - * Target asset identifier - * - * @return quoteAssetId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_QUOTE_ASSET_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getQuoteAssetId() { - return quoteAssetId; - } - - @JsonProperty(JSON_PROPERTY_QUOTE_ASSET_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setQuoteAssetId(@jakarta.annotation.Nonnull String quoteAssetId) { - this.quoteAssetId = quoteAssetId; - } - - public LimitExecutionResponseDetails quoteAssetRail( - @jakarta.annotation.Nullable TransferRail quoteAssetRail) { - this.quoteAssetRail = quoteAssetRail; - return this; - } - - /** - * Get quoteAssetRail - * - * @return quoteAssetRail - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_QUOTE_ASSET_RAIL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public TransferRail getQuoteAssetRail() { - return quoteAssetRail; - } - - @JsonProperty(JSON_PROPERTY_QUOTE_ASSET_RAIL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setQuoteAssetRail(@jakarta.annotation.Nullable TransferRail quoteAssetRail) { - this.quoteAssetRail = quoteAssetRail; - } - - public LimitExecutionResponseDetails type(@jakarta.annotation.Nonnull TypeEnum type) { - this.type = type; - return this; - } - - /** - * Order type for limit orders - * - * @return type - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { - return type; - } - - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(@jakarta.annotation.Nonnull TypeEnum type) { - this.type = type; - } - - public LimitExecutionResponseDetails timeInForce( - @jakarta.annotation.Nonnull TimeInForce timeInForce) { - this.timeInForce = timeInForce; - return this; - } - - /** - * Get timeInForce - * - * @return timeInForce - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TIME_IN_FORCE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TimeInForce getTimeInForce() { - return timeInForce; - } - - @JsonProperty(JSON_PROPERTY_TIME_IN_FORCE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTimeInForce(@jakarta.annotation.Nonnull TimeInForce timeInForce) { - this.timeInForce = timeInForce; - } - - public LimitExecutionResponseDetails limitPrice(@jakarta.annotation.Nonnull String limitPrice) { - this.limitPrice = limitPrice; - return this; - } - - /** - * Price for limit orders - * - * @return limitPrice - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_LIMIT_PRICE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getLimitPrice() { - return limitPrice; - } - - @JsonProperty(JSON_PROPERTY_LIMIT_PRICE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setLimitPrice(@jakarta.annotation.Nonnull String limitPrice) { - this.limitPrice = limitPrice; - } - - /** Return true if this LimitExecutionResponseDetails object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - LimitExecutionResponseDetails limitExecutionResponseDetails = - (LimitExecutionResponseDetails) o; - return Objects.equals(this.side, limitExecutionResponseDetails.side) - && Objects.equals(this.baseAmount, limitExecutionResponseDetails.baseAmount) - && Objects.equals(this.baseAssetId, limitExecutionResponseDetails.baseAssetId) - && Objects.equals(this.baseAssetRail, limitExecutionResponseDetails.baseAssetRail) - && Objects.equals(this.quoteAssetId, limitExecutionResponseDetails.quoteAssetId) - && Objects.equals(this.quoteAssetRail, limitExecutionResponseDetails.quoteAssetRail) - && Objects.equals(this.type, limitExecutionResponseDetails.type) - && Objects.equals(this.timeInForce, limitExecutionResponseDetails.timeInForce) - && Objects.equals(this.limitPrice, limitExecutionResponseDetails.limitPrice); - } - - @Override - public int hashCode() { - return Objects.hash( - side, - baseAmount, - baseAssetId, - baseAssetRail, - quoteAssetId, - quoteAssetRail, - type, - timeInForce, - limitPrice); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class LimitExecutionResponseDetails {\n"); - sb.append(" side: ").append(toIndentedString(side)).append("\n"); - sb.append(" baseAmount: ").append(toIndentedString(baseAmount)).append("\n"); - sb.append(" baseAssetId: ").append(toIndentedString(baseAssetId)).append("\n"); - sb.append(" baseAssetRail: ").append(toIndentedString(baseAssetRail)).append("\n"); - sb.append(" quoteAssetId: ").append(toIndentedString(quoteAssetId)).append("\n"); - sb.append(" quoteAssetRail: ").append(toIndentedString(quoteAssetRail)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" timeInForce: ").append(toIndentedString(timeInForce)).append("\n"); - sb.append(" limitPrice: ").append(toIndentedString(limitPrice)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `side` to the URL query string - if (getSide() != null) { - joiner.add( - String.format( - "%sside%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getSide())))); - } - - // add `baseAmount` to the URL query string - if (getBaseAmount() != null) { - joiner.add( - String.format( - "%sbaseAmount%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBaseAmount())))); - } - - // add `baseAssetId` to the URL query string - if (getBaseAssetId() != null) { - joiner.add( - String.format( - "%sbaseAssetId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBaseAssetId())))); - } - - // add `baseAssetRail` to the URL query string - if (getBaseAssetRail() != null) { - joiner.add( - String.format( - "%sbaseAssetRail%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBaseAssetRail())))); - } - - // add `quoteAssetId` to the URL query string - if (getQuoteAssetId() != null) { - joiner.add( - String.format( - "%squoteAssetId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getQuoteAssetId())))); - } - - // add `quoteAssetRail` to the URL query string - if (getQuoteAssetRail() != null) { - joiner.add( - String.format( - "%squoteAssetRail%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getQuoteAssetRail())))); - } - - // add `type` to the URL query string - if (getType() != null) { - joiner.add( - String.format( - "%stype%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getType())))); - } - - // add `timeInForce` to the URL query string - if (getTimeInForce() != null) { - joiner.add( - String.format( - "%stimeInForce%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getTimeInForce())))); - } - - // add `limitPrice` to the URL query string - if (getLimitPrice() != null) { - joiner.add( - String.format( - "%slimitPrice%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getLimitPrice())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/ListAssetsResponse.java b/src/main/java/com/fireblocks/sdk/model/ListAssetsResponse.java deleted file mode 100644 index 41042a62..00000000 --- a/src/main/java/com/fireblocks/sdk/model/ListAssetsResponse.java +++ /dev/null @@ -1,209 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** ListAssetsResponse */ -@JsonPropertyOrder({ListAssetsResponse.JSON_PROPERTY_DATA, ListAssetsResponse.JSON_PROPERTY_NEXT}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class ListAssetsResponse { - public static final String JSON_PROPERTY_DATA = "data"; - @jakarta.annotation.Nonnull private List data = new ArrayList<>(); - - public static final String JSON_PROPERTY_NEXT = "next"; - @jakarta.annotation.Nullable private String next; - - public ListAssetsResponse() {} - - @JsonCreator - public ListAssetsResponse( - @JsonProperty(value = JSON_PROPERTY_DATA, required = true) List data, - @JsonProperty(value = JSON_PROPERTY_NEXT, required = true) String next) { - this.data = data; - this.next = next; - } - - public ListAssetsResponse data(@jakarta.annotation.Nonnull List data) { - this.data = data; - return this; - } - - public ListAssetsResponse addDataItem(Asset dataItem) { - if (this.data == null) { - this.data = new ArrayList<>(); - } - this.data.add(dataItem); - return this; - } - - /** - * The data of the current page - * - * @return data - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getData() { - return data; - } - - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setData(@jakarta.annotation.Nonnull List data) { - this.data = data; - } - - public ListAssetsResponse next(@jakarta.annotation.Nullable String next) { - this.next = next; - return this; - } - - /** - * Cursor to the next page - * - * @return next - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NEXT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getNext() { - return next; - } - - @JsonProperty(JSON_PROPERTY_NEXT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setNext(@jakarta.annotation.Nullable String next) { - this.next = next; - } - - /** Return true if this ListAssetsResponse object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ListAssetsResponse listAssetsResponse = (ListAssetsResponse) o; - return Objects.equals(this.data, listAssetsResponse.data) - && Objects.equals(this.next, listAssetsResponse.next); - } - - @Override - public int hashCode() { - return Objects.hash(data, next); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ListAssetsResponse {\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" next: ").append(toIndentedString(next)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `data` to the URL query string - if (getData() != null) { - for (int i = 0; i < getData().size(); i++) { - if (getData().get(i) != null) { - joiner.add( - getData() - .get(i) - .toUrlQueryString( - String.format( - "%sdata%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } - } - - // add `next` to the URL query string - if (getNext() != null) { - joiner.add( - String.format( - "%snext%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getNext())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/ListBlockchainsResponse.java b/src/main/java/com/fireblocks/sdk/model/ListBlockchainsResponse.java deleted file mode 100644 index 5eb496bd..00000000 --- a/src/main/java/com/fireblocks/sdk/model/ListBlockchainsResponse.java +++ /dev/null @@ -1,213 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** ListBlockchainsResponse */ -@JsonPropertyOrder({ - ListBlockchainsResponse.JSON_PROPERTY_DATA, - ListBlockchainsResponse.JSON_PROPERTY_NEXT -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class ListBlockchainsResponse { - public static final String JSON_PROPERTY_DATA = "data"; - @jakarta.annotation.Nonnull private List data = new ArrayList<>(); - - public static final String JSON_PROPERTY_NEXT = "next"; - @jakarta.annotation.Nullable private String next; - - public ListBlockchainsResponse() {} - - @JsonCreator - public ListBlockchainsResponse( - @JsonProperty(value = JSON_PROPERTY_DATA, required = true) - List data, - @JsonProperty(value = JSON_PROPERTY_NEXT, required = true) String next) { - this.data = data; - this.next = next; - } - - public ListBlockchainsResponse data(@jakarta.annotation.Nonnull List data) { - this.data = data; - return this; - } - - public ListBlockchainsResponse addDataItem(BlockchainResponse dataItem) { - if (this.data == null) { - this.data = new ArrayList<>(); - } - this.data.add(dataItem); - return this; - } - - /** - * The data of the current page - * - * @return data - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getData() { - return data; - } - - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setData(@jakarta.annotation.Nonnull List data) { - this.data = data; - } - - public ListBlockchainsResponse next(@jakarta.annotation.Nullable String next) { - this.next = next; - return this; - } - - /** - * Cursor to the next page - * - * @return next - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NEXT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getNext() { - return next; - } - - @JsonProperty(JSON_PROPERTY_NEXT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setNext(@jakarta.annotation.Nullable String next) { - this.next = next; - } - - /** Return true if this ListBlockchainsResponse object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ListBlockchainsResponse listBlockchainsResponse = (ListBlockchainsResponse) o; - return Objects.equals(this.data, listBlockchainsResponse.data) - && Objects.equals(this.next, listBlockchainsResponse.next); - } - - @Override - public int hashCode() { - return Objects.hash(data, next); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ListBlockchainsResponse {\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" next: ").append(toIndentedString(next)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `data` to the URL query string - if (getData() != null) { - for (int i = 0; i < getData().size(); i++) { - if (getData().get(i) != null) { - joiner.add( - getData() - .get(i) - .toUrlQueryString( - String.format( - "%sdata%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } - } - - // add `next` to the URL query string - if (getNext() != null) { - joiner.add( - String.format( - "%snext%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getNext())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/ListOwnedCollectionsResponse.java b/src/main/java/com/fireblocks/sdk/model/ListOwnedCollectionsResponse.java index d976d661..40174801 100644 --- a/src/main/java/com/fireblocks/sdk/model/ListOwnedCollectionsResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/ListOwnedCollectionsResponse.java @@ -34,7 +34,7 @@ public class ListOwnedCollectionsResponse { @jakarta.annotation.Nullable private Paging paging; public static final String JSON_PROPERTY_DATA = "data"; - @jakarta.annotation.Nullable private List data = new ArrayList<>(); + @jakarta.annotation.Nullable private List data; public ListOwnedCollectionsResponse() {} diff --git a/src/main/java/com/fireblocks/sdk/model/ListOwnedTokensResponse.java b/src/main/java/com/fireblocks/sdk/model/ListOwnedTokensResponse.java index 18789b03..071459b5 100644 --- a/src/main/java/com/fireblocks/sdk/model/ListOwnedTokensResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/ListOwnedTokensResponse.java @@ -34,7 +34,7 @@ public class ListOwnedTokensResponse { @jakarta.annotation.Nullable private Paging paging; public static final String JSON_PROPERTY_DATA = "data"; - @jakarta.annotation.Nullable private List data = new ArrayList<>(); + @jakarta.annotation.Nullable private List data; public ListOwnedTokensResponse() {} diff --git a/src/main/java/com/fireblocks/sdk/model/Manifest.java b/src/main/java/com/fireblocks/sdk/model/Manifest.java deleted file mode 100644 index 428de9bd..00000000 --- a/src/main/java/com/fireblocks/sdk/model/Manifest.java +++ /dev/null @@ -1,256 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fireblocks.sdk.ApiClient; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** Manifest */ -@JsonPropertyOrder({Manifest.JSON_PROPERTY_ASSET_TYPES, Manifest.JSON_PROPERTY_CAPABILITIES}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class Manifest { - /** Gets or Sets assetTypes */ - public enum AssetTypesEnum { - DIGITAL(String.valueOf("DIGITAL")), - - FIAT(String.valueOf("FIAT")); - - private String value; - - AssetTypesEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static AssetTypesEnum fromValue(String value) { - for (AssetTypesEnum b : AssetTypesEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_ASSET_TYPES = "assetTypes"; - @jakarta.annotation.Nonnull private List assetTypes = new ArrayList<>(); - - public static final String JSON_PROPERTY_CAPABILITIES = "capabilities"; - @jakarta.annotation.Nonnull private List capabilities = new ArrayList<>(); - - public Manifest() {} - - @JsonCreator - public Manifest( - @JsonProperty(value = JSON_PROPERTY_ASSET_TYPES, required = true) - List assetTypes, - @JsonProperty(value = JSON_PROPERTY_CAPABILITIES, required = true) - List capabilities) { - this.assetTypes = assetTypes; - this.capabilities = capabilities; - } - - public Manifest assetTypes(@jakarta.annotation.Nonnull List assetTypes) { - this.assetTypes = assetTypes; - return this; - } - - public Manifest addAssetTypesItem(AssetTypesEnum assetTypesItem) { - if (this.assetTypes == null) { - this.assetTypes = new ArrayList<>(); - } - this.assetTypes.add(assetTypesItem); - return this; - } - - /** - * Get assetTypes - * - * @return assetTypes - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ASSET_TYPES) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getAssetTypes() { - return assetTypes; - } - - @JsonProperty(JSON_PROPERTY_ASSET_TYPES) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAssetTypes(@jakarta.annotation.Nonnull List assetTypes) { - this.assetTypes = assetTypes; - } - - public Manifest capabilities(@jakarta.annotation.Nonnull List capabilities) { - this.capabilities = capabilities; - return this; - } - - public Manifest addCapabilitiesItem(Capability capabilitiesItem) { - if (this.capabilities == null) { - this.capabilities = new ArrayList<>(); - } - this.capabilities.add(capabilitiesItem); - return this; - } - - /** - * Get capabilities - * - * @return capabilities - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CAPABILITIES) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getCapabilities() { - return capabilities; - } - - @JsonProperty(JSON_PROPERTY_CAPABILITIES) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCapabilities(@jakarta.annotation.Nonnull List capabilities) { - this.capabilities = capabilities; - } - - /** Return true if this Manifest object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Manifest manifest = (Manifest) o; - return Objects.equals(this.assetTypes, manifest.assetTypes) - && Objects.equals(this.capabilities, manifest.capabilities); - } - - @Override - public int hashCode() { - return Objects.hash(assetTypes, capabilities); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class Manifest {\n"); - sb.append(" assetTypes: ").append(toIndentedString(assetTypes)).append("\n"); - sb.append(" capabilities: ").append(toIndentedString(capabilities)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `assetTypes` to the URL query string - if (getAssetTypes() != null) { - for (int i = 0; i < getAssetTypes().size(); i++) { - joiner.add( - String.format( - "%sassetTypes%s%s=%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode( - ApiClient.valueToString(getAssetTypes().get(i))))); - } - } - - // add `capabilities` to the URL query string - if (getCapabilities() != null) { - for (int i = 0; i < getCapabilities().size(); i++) { - if (getCapabilities().get(i) != null) { - joiner.add( - String.format( - "%scapabilities%s%s=%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode( - ApiClient.valueToString(getCapabilities().get(i))))); - } - } - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/MarketExecutionRequestDetails.java b/src/main/java/com/fireblocks/sdk/model/MarketExecutionRequestDetails.java deleted file mode 100644 index 1170ec0e..00000000 --- a/src/main/java/com/fireblocks/sdk/model/MarketExecutionRequestDetails.java +++ /dev/null @@ -1,462 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** MarketExecutionRequestDetails */ -@JsonPropertyOrder({ - MarketExecutionRequestDetails.JSON_PROPERTY_SIDE, - MarketExecutionRequestDetails.JSON_PROPERTY_BASE_AMOUNT, - MarketExecutionRequestDetails.JSON_PROPERTY_BASE_ASSET_ID, - MarketExecutionRequestDetails.JSON_PROPERTY_BASE_ASSET_RAIL, - MarketExecutionRequestDetails.JSON_PROPERTY_QUOTE_ASSET_ID, - MarketExecutionRequestDetails.JSON_PROPERTY_QUOTE_ASSET_RAIL, - MarketExecutionRequestDetails.JSON_PROPERTY_TYPE -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class MarketExecutionRequestDetails { - /** Side of the order */ - public enum SideEnum { - BUY(String.valueOf("BUY")), - - SELL(String.valueOf("SELL")); - - private String value; - - SideEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static SideEnum fromValue(String value) { - for (SideEnum b : SideEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_SIDE = "side"; - @jakarta.annotation.Nonnull private SideEnum side = SideEnum.BUY; - - public static final String JSON_PROPERTY_BASE_AMOUNT = "baseAmount"; - @jakarta.annotation.Nonnull private String baseAmount; - - public static final String JSON_PROPERTY_BASE_ASSET_ID = "baseAssetId"; - @jakarta.annotation.Nonnull private String baseAssetId; - - public static final String JSON_PROPERTY_BASE_ASSET_RAIL = "baseAssetRail"; - @jakarta.annotation.Nullable private TransferRail baseAssetRail; - - public static final String JSON_PROPERTY_QUOTE_ASSET_ID = "quoteAssetId"; - @jakarta.annotation.Nonnull private String quoteAssetId; - - public static final String JSON_PROPERTY_QUOTE_ASSET_RAIL = "quoteAssetRail"; - @jakarta.annotation.Nullable private TransferRail quoteAssetRail; - - /** Order type for market orders */ - public enum TypeEnum { - MARKET(String.valueOf("MARKET")); - - private String value; - - TypeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static TypeEnum fromValue(String value) { - for (TypeEnum b : TypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_TYPE = "type"; - @jakarta.annotation.Nonnull private TypeEnum type; - - public MarketExecutionRequestDetails() {} - - @JsonCreator - public MarketExecutionRequestDetails( - @JsonProperty(value = JSON_PROPERTY_SIDE, required = true) SideEnum side, - @JsonProperty(value = JSON_PROPERTY_BASE_AMOUNT, required = true) String baseAmount, - @JsonProperty(value = JSON_PROPERTY_BASE_ASSET_ID, required = true) String baseAssetId, - @JsonProperty(value = JSON_PROPERTY_QUOTE_ASSET_ID, required = true) - String quoteAssetId, - @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) TypeEnum type) { - this.side = side; - this.baseAmount = baseAmount; - this.baseAssetId = baseAssetId; - this.quoteAssetId = quoteAssetId; - this.type = type; - } - - public MarketExecutionRequestDetails side(@jakarta.annotation.Nonnull SideEnum side) { - this.side = side; - return this; - } - - /** - * Side of the order - * - * @return side - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SIDE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public SideEnum getSide() { - return side; - } - - @JsonProperty(JSON_PROPERTY_SIDE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSide(@jakarta.annotation.Nonnull SideEnum side) { - this.side = side; - } - - public MarketExecutionRequestDetails baseAmount(@jakarta.annotation.Nonnull String baseAmount) { - this.baseAmount = baseAmount; - return this; - } - - /** - * Amount to convert - * - * @return baseAmount - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BASE_AMOUNT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getBaseAmount() { - return baseAmount; - } - - @JsonProperty(JSON_PROPERTY_BASE_AMOUNT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBaseAmount(@jakarta.annotation.Nonnull String baseAmount) { - this.baseAmount = baseAmount; - } - - public MarketExecutionRequestDetails baseAssetId( - @jakarta.annotation.Nonnull String baseAssetId) { - this.baseAssetId = baseAssetId; - return this; - } - - /** - * Source asset identifier - * - * @return baseAssetId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BASE_ASSET_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getBaseAssetId() { - return baseAssetId; - } - - @JsonProperty(JSON_PROPERTY_BASE_ASSET_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBaseAssetId(@jakarta.annotation.Nonnull String baseAssetId) { - this.baseAssetId = baseAssetId; - } - - public MarketExecutionRequestDetails baseAssetRail( - @jakarta.annotation.Nullable TransferRail baseAssetRail) { - this.baseAssetRail = baseAssetRail; - return this; - } - - /** - * Get baseAssetRail - * - * @return baseAssetRail - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BASE_ASSET_RAIL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public TransferRail getBaseAssetRail() { - return baseAssetRail; - } - - @JsonProperty(JSON_PROPERTY_BASE_ASSET_RAIL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBaseAssetRail(@jakarta.annotation.Nullable TransferRail baseAssetRail) { - this.baseAssetRail = baseAssetRail; - } - - public MarketExecutionRequestDetails quoteAssetId( - @jakarta.annotation.Nonnull String quoteAssetId) { - this.quoteAssetId = quoteAssetId; - return this; - } - - /** - * Target asset identifier - * - * @return quoteAssetId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_QUOTE_ASSET_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getQuoteAssetId() { - return quoteAssetId; - } - - @JsonProperty(JSON_PROPERTY_QUOTE_ASSET_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setQuoteAssetId(@jakarta.annotation.Nonnull String quoteAssetId) { - this.quoteAssetId = quoteAssetId; - } - - public MarketExecutionRequestDetails quoteAssetRail( - @jakarta.annotation.Nullable TransferRail quoteAssetRail) { - this.quoteAssetRail = quoteAssetRail; - return this; - } - - /** - * Get quoteAssetRail - * - * @return quoteAssetRail - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_QUOTE_ASSET_RAIL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public TransferRail getQuoteAssetRail() { - return quoteAssetRail; - } - - @JsonProperty(JSON_PROPERTY_QUOTE_ASSET_RAIL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setQuoteAssetRail(@jakarta.annotation.Nullable TransferRail quoteAssetRail) { - this.quoteAssetRail = quoteAssetRail; - } - - public MarketExecutionRequestDetails type(@jakarta.annotation.Nonnull TypeEnum type) { - this.type = type; - return this; - } - - /** - * Order type for market orders - * - * @return type - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { - return type; - } - - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(@jakarta.annotation.Nonnull TypeEnum type) { - this.type = type; - } - - /** Return true if this MarketExecutionRequestDetails object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MarketExecutionRequestDetails marketExecutionRequestDetails = - (MarketExecutionRequestDetails) o; - return Objects.equals(this.side, marketExecutionRequestDetails.side) - && Objects.equals(this.baseAmount, marketExecutionRequestDetails.baseAmount) - && Objects.equals(this.baseAssetId, marketExecutionRequestDetails.baseAssetId) - && Objects.equals(this.baseAssetRail, marketExecutionRequestDetails.baseAssetRail) - && Objects.equals(this.quoteAssetId, marketExecutionRequestDetails.quoteAssetId) - && Objects.equals(this.quoteAssetRail, marketExecutionRequestDetails.quoteAssetRail) - && Objects.equals(this.type, marketExecutionRequestDetails.type); - } - - @Override - public int hashCode() { - return Objects.hash( - side, baseAmount, baseAssetId, baseAssetRail, quoteAssetId, quoteAssetRail, type); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MarketExecutionRequestDetails {\n"); - sb.append(" side: ").append(toIndentedString(side)).append("\n"); - sb.append(" baseAmount: ").append(toIndentedString(baseAmount)).append("\n"); - sb.append(" baseAssetId: ").append(toIndentedString(baseAssetId)).append("\n"); - sb.append(" baseAssetRail: ").append(toIndentedString(baseAssetRail)).append("\n"); - sb.append(" quoteAssetId: ").append(toIndentedString(quoteAssetId)).append("\n"); - sb.append(" quoteAssetRail: ").append(toIndentedString(quoteAssetRail)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `side` to the URL query string - if (getSide() != null) { - joiner.add( - String.format( - "%sside%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getSide())))); - } - - // add `baseAmount` to the URL query string - if (getBaseAmount() != null) { - joiner.add( - String.format( - "%sbaseAmount%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBaseAmount())))); - } - - // add `baseAssetId` to the URL query string - if (getBaseAssetId() != null) { - joiner.add( - String.format( - "%sbaseAssetId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBaseAssetId())))); - } - - // add `baseAssetRail` to the URL query string - if (getBaseAssetRail() != null) { - joiner.add( - String.format( - "%sbaseAssetRail%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBaseAssetRail())))); - } - - // add `quoteAssetId` to the URL query string - if (getQuoteAssetId() != null) { - joiner.add( - String.format( - "%squoteAssetId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getQuoteAssetId())))); - } - - // add `quoteAssetRail` to the URL query string - if (getQuoteAssetRail() != null) { - joiner.add( - String.format( - "%squoteAssetRail%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getQuoteAssetRail())))); - } - - // add `type` to the URL query string - if (getType() != null) { - joiner.add( - String.format( - "%stype%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getType())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/MarketExecutionResponseDetails.java b/src/main/java/com/fireblocks/sdk/model/MarketExecutionResponseDetails.java deleted file mode 100644 index 74951048..00000000 --- a/src/main/java/com/fireblocks/sdk/model/MarketExecutionResponseDetails.java +++ /dev/null @@ -1,464 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** MarketExecutionResponseDetails */ -@JsonPropertyOrder({ - MarketExecutionResponseDetails.JSON_PROPERTY_SIDE, - MarketExecutionResponseDetails.JSON_PROPERTY_BASE_AMOUNT, - MarketExecutionResponseDetails.JSON_PROPERTY_BASE_ASSET_ID, - MarketExecutionResponseDetails.JSON_PROPERTY_BASE_ASSET_RAIL, - MarketExecutionResponseDetails.JSON_PROPERTY_QUOTE_ASSET_ID, - MarketExecutionResponseDetails.JSON_PROPERTY_QUOTE_ASSET_RAIL, - MarketExecutionResponseDetails.JSON_PROPERTY_TYPE -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class MarketExecutionResponseDetails { - /** Side of the order */ - public enum SideEnum { - BUY(String.valueOf("BUY")), - - SELL(String.valueOf("SELL")); - - private String value; - - SideEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static SideEnum fromValue(String value) { - for (SideEnum b : SideEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_SIDE = "side"; - @jakarta.annotation.Nonnull private SideEnum side = SideEnum.BUY; - - public static final String JSON_PROPERTY_BASE_AMOUNT = "baseAmount"; - @jakarta.annotation.Nonnull private String baseAmount; - - public static final String JSON_PROPERTY_BASE_ASSET_ID = "baseAssetId"; - @jakarta.annotation.Nonnull private String baseAssetId; - - public static final String JSON_PROPERTY_BASE_ASSET_RAIL = "baseAssetRail"; - @jakarta.annotation.Nullable private TransferRail baseAssetRail; - - public static final String JSON_PROPERTY_QUOTE_ASSET_ID = "quoteAssetId"; - @jakarta.annotation.Nonnull private String quoteAssetId; - - public static final String JSON_PROPERTY_QUOTE_ASSET_RAIL = "quoteAssetRail"; - @jakarta.annotation.Nullable private TransferRail quoteAssetRail; - - /** Order type for market orders */ - public enum TypeEnum { - MARKET(String.valueOf("MARKET")); - - private String value; - - TypeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static TypeEnum fromValue(String value) { - for (TypeEnum b : TypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_TYPE = "type"; - @jakarta.annotation.Nonnull private TypeEnum type; - - public MarketExecutionResponseDetails() {} - - @JsonCreator - public MarketExecutionResponseDetails( - @JsonProperty(value = JSON_PROPERTY_SIDE, required = true) SideEnum side, - @JsonProperty(value = JSON_PROPERTY_BASE_AMOUNT, required = true) String baseAmount, - @JsonProperty(value = JSON_PROPERTY_BASE_ASSET_ID, required = true) String baseAssetId, - @JsonProperty(value = JSON_PROPERTY_QUOTE_ASSET_ID, required = true) - String quoteAssetId, - @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) TypeEnum type) { - this.side = side; - this.baseAmount = baseAmount; - this.baseAssetId = baseAssetId; - this.quoteAssetId = quoteAssetId; - this.type = type; - } - - public MarketExecutionResponseDetails side(@jakarta.annotation.Nonnull SideEnum side) { - this.side = side; - return this; - } - - /** - * Side of the order - * - * @return side - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SIDE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public SideEnum getSide() { - return side; - } - - @JsonProperty(JSON_PROPERTY_SIDE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSide(@jakarta.annotation.Nonnull SideEnum side) { - this.side = side; - } - - public MarketExecutionResponseDetails baseAmount( - @jakarta.annotation.Nonnull String baseAmount) { - this.baseAmount = baseAmount; - return this; - } - - /** - * Amount to convert - * - * @return baseAmount - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BASE_AMOUNT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getBaseAmount() { - return baseAmount; - } - - @JsonProperty(JSON_PROPERTY_BASE_AMOUNT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBaseAmount(@jakarta.annotation.Nonnull String baseAmount) { - this.baseAmount = baseAmount; - } - - public MarketExecutionResponseDetails baseAssetId( - @jakarta.annotation.Nonnull String baseAssetId) { - this.baseAssetId = baseAssetId; - return this; - } - - /** - * Source asset identifier - * - * @return baseAssetId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BASE_ASSET_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getBaseAssetId() { - return baseAssetId; - } - - @JsonProperty(JSON_PROPERTY_BASE_ASSET_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBaseAssetId(@jakarta.annotation.Nonnull String baseAssetId) { - this.baseAssetId = baseAssetId; - } - - public MarketExecutionResponseDetails baseAssetRail( - @jakarta.annotation.Nullable TransferRail baseAssetRail) { - this.baseAssetRail = baseAssetRail; - return this; - } - - /** - * Get baseAssetRail - * - * @return baseAssetRail - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BASE_ASSET_RAIL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public TransferRail getBaseAssetRail() { - return baseAssetRail; - } - - @JsonProperty(JSON_PROPERTY_BASE_ASSET_RAIL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBaseAssetRail(@jakarta.annotation.Nullable TransferRail baseAssetRail) { - this.baseAssetRail = baseAssetRail; - } - - public MarketExecutionResponseDetails quoteAssetId( - @jakarta.annotation.Nonnull String quoteAssetId) { - this.quoteAssetId = quoteAssetId; - return this; - } - - /** - * Target asset identifier - * - * @return quoteAssetId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_QUOTE_ASSET_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getQuoteAssetId() { - return quoteAssetId; - } - - @JsonProperty(JSON_PROPERTY_QUOTE_ASSET_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setQuoteAssetId(@jakarta.annotation.Nonnull String quoteAssetId) { - this.quoteAssetId = quoteAssetId; - } - - public MarketExecutionResponseDetails quoteAssetRail( - @jakarta.annotation.Nullable TransferRail quoteAssetRail) { - this.quoteAssetRail = quoteAssetRail; - return this; - } - - /** - * Get quoteAssetRail - * - * @return quoteAssetRail - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_QUOTE_ASSET_RAIL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public TransferRail getQuoteAssetRail() { - return quoteAssetRail; - } - - @JsonProperty(JSON_PROPERTY_QUOTE_ASSET_RAIL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setQuoteAssetRail(@jakarta.annotation.Nullable TransferRail quoteAssetRail) { - this.quoteAssetRail = quoteAssetRail; - } - - public MarketExecutionResponseDetails type(@jakarta.annotation.Nonnull TypeEnum type) { - this.type = type; - return this; - } - - /** - * Order type for market orders - * - * @return type - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { - return type; - } - - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(@jakarta.annotation.Nonnull TypeEnum type) { - this.type = type; - } - - /** Return true if this MarketExecutionResponseDetails object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MarketExecutionResponseDetails marketExecutionResponseDetails = - (MarketExecutionResponseDetails) o; - return Objects.equals(this.side, marketExecutionResponseDetails.side) - && Objects.equals(this.baseAmount, marketExecutionResponseDetails.baseAmount) - && Objects.equals(this.baseAssetId, marketExecutionResponseDetails.baseAssetId) - && Objects.equals(this.baseAssetRail, marketExecutionResponseDetails.baseAssetRail) - && Objects.equals(this.quoteAssetId, marketExecutionResponseDetails.quoteAssetId) - && Objects.equals( - this.quoteAssetRail, marketExecutionResponseDetails.quoteAssetRail) - && Objects.equals(this.type, marketExecutionResponseDetails.type); - } - - @Override - public int hashCode() { - return Objects.hash( - side, baseAmount, baseAssetId, baseAssetRail, quoteAssetId, quoteAssetRail, type); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MarketExecutionResponseDetails {\n"); - sb.append(" side: ").append(toIndentedString(side)).append("\n"); - sb.append(" baseAmount: ").append(toIndentedString(baseAmount)).append("\n"); - sb.append(" baseAssetId: ").append(toIndentedString(baseAssetId)).append("\n"); - sb.append(" baseAssetRail: ").append(toIndentedString(baseAssetRail)).append("\n"); - sb.append(" quoteAssetId: ").append(toIndentedString(quoteAssetId)).append("\n"); - sb.append(" quoteAssetRail: ").append(toIndentedString(quoteAssetRail)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `side` to the URL query string - if (getSide() != null) { - joiner.add( - String.format( - "%sside%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getSide())))); - } - - // add `baseAmount` to the URL query string - if (getBaseAmount() != null) { - joiner.add( - String.format( - "%sbaseAmount%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBaseAmount())))); - } - - // add `baseAssetId` to the URL query string - if (getBaseAssetId() != null) { - joiner.add( - String.format( - "%sbaseAssetId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBaseAssetId())))); - } - - // add `baseAssetRail` to the URL query string - if (getBaseAssetRail() != null) { - joiner.add( - String.format( - "%sbaseAssetRail%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBaseAssetRail())))); - } - - // add `quoteAssetId` to the URL query string - if (getQuoteAssetId() != null) { - joiner.add( - String.format( - "%squoteAssetId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getQuoteAssetId())))); - } - - // add `quoteAssetRail` to the URL query string - if (getQuoteAssetRail() != null) { - joiner.add( - String.format( - "%squoteAssetRail%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getQuoteAssetRail())))); - } - - // add `type` to the URL query string - if (getType() != null) { - joiner.add( - String.format( - "%stype%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getType())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/MarketRequoteRequestDetails.java b/src/main/java/com/fireblocks/sdk/model/MarketRequoteRequestDetails.java deleted file mode 100644 index 75e157bb..00000000 --- a/src/main/java/com/fireblocks/sdk/model/MarketRequoteRequestDetails.java +++ /dev/null @@ -1,182 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** MarketRequoteRequestDetails */ -@JsonPropertyOrder({MarketRequoteRequestDetails.JSON_PROPERTY_TYPE}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class MarketRequoteRequestDetails { - /** - * Indicates that the order should be re-quoted if the original quote is expired. This will lead - * to a market order. - */ - public enum TypeEnum { - MARKET(String.valueOf("MARKET")); - - private String value; - - TypeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static TypeEnum fromValue(String value) { - for (TypeEnum b : TypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_TYPE = "type"; - @jakarta.annotation.Nonnull private TypeEnum type; - - public MarketRequoteRequestDetails() {} - - @JsonCreator - public MarketRequoteRequestDetails( - @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) TypeEnum type) { - this.type = type; - } - - public MarketRequoteRequestDetails type(@jakarta.annotation.Nonnull TypeEnum type) { - this.type = type; - return this; - } - - /** - * Indicates that the order should be re-quoted if the original quote is expired. This will lead - * to a market order. - * - * @return type - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { - return type; - } - - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(@jakarta.annotation.Nonnull TypeEnum type) { - this.type = type; - } - - /** Return true if this MarketRequoteRequestDetails object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MarketRequoteRequestDetails marketRequoteRequestDetails = (MarketRequoteRequestDetails) o; - return Objects.equals(this.type, marketRequoteRequestDetails.type); - } - - @Override - public int hashCode() { - return Objects.hash(type); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MarketRequoteRequestDetails {\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `type` to the URL query string - if (getType() != null) { - joiner.add( - String.format( - "%stype%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getType())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/MergeStakeAccountsRequest.java b/src/main/java/com/fireblocks/sdk/model/MergeStakeAccountsRequest.java deleted file mode 100644 index a4dd0c14..00000000 --- a/src/main/java/com/fireblocks/sdk/model/MergeStakeAccountsRequest.java +++ /dev/null @@ -1,309 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; -import java.util.UUID; - -/** MergeStakeAccountsRequest */ -@JsonPropertyOrder({ - MergeStakeAccountsRequest.JSON_PROPERTY_SOURCE_ID, - MergeStakeAccountsRequest.JSON_PROPERTY_DESTINATION_ID, - MergeStakeAccountsRequest.JSON_PROPERTY_FEE, - MergeStakeAccountsRequest.JSON_PROPERTY_FEE_LEVEL, - MergeStakeAccountsRequest.JSON_PROPERTY_TX_NOTE -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class MergeStakeAccountsRequest { - public static final String JSON_PROPERTY_SOURCE_ID = "sourceId"; - @jakarta.annotation.Nonnull private UUID sourceId; - - public static final String JSON_PROPERTY_DESTINATION_ID = "destinationId"; - @jakarta.annotation.Nonnull private UUID destinationId; - - public static final String JSON_PROPERTY_FEE = "fee"; - @jakarta.annotation.Nullable private String fee; - - public static final String JSON_PROPERTY_FEE_LEVEL = "feeLevel"; - @jakarta.annotation.Nullable private FeeLevel feeLevel; - - public static final String JSON_PROPERTY_TX_NOTE = "txNote"; - @jakarta.annotation.Nullable private String txNote; - - public MergeStakeAccountsRequest() {} - - @JsonCreator - public MergeStakeAccountsRequest( - @JsonProperty(value = JSON_PROPERTY_SOURCE_ID, required = true) UUID sourceId, - @JsonProperty(value = JSON_PROPERTY_DESTINATION_ID, required = true) - UUID destinationId) { - this.sourceId = sourceId; - this.destinationId = destinationId; - } - - public MergeStakeAccountsRequest sourceId(@jakarta.annotation.Nonnull UUID sourceId) { - this.sourceId = sourceId; - return this; - } - - /** - * Id of the source position to merge from - * - * @return sourceId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SOURCE_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public UUID getSourceId() { - return sourceId; - } - - @JsonProperty(JSON_PROPERTY_SOURCE_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSourceId(@jakarta.annotation.Nonnull UUID sourceId) { - this.sourceId = sourceId; - } - - public MergeStakeAccountsRequest destinationId(@jakarta.annotation.Nonnull UUID destinationId) { - this.destinationId = destinationId; - return this; - } - - /** - * Id of the destination position to merge into - * - * @return destinationId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DESTINATION_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public UUID getDestinationId() { - return destinationId; - } - - @JsonProperty(JSON_PROPERTY_DESTINATION_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDestinationId(@jakarta.annotation.Nonnull UUID destinationId) { - this.destinationId = destinationId; - } - - public MergeStakeAccountsRequest fee(@jakarta.annotation.Nullable String fee) { - this.fee = fee; - return this; - } - - /** - * Represents the fee for a transaction, which can be specified as a percentage value. Only one - * of fee/feeLevel is required. - * - * @return fee - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FEE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getFee() { - return fee; - } - - @JsonProperty(JSON_PROPERTY_FEE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFee(@jakarta.annotation.Nullable String fee) { - this.fee = fee; - } - - public MergeStakeAccountsRequest feeLevel(@jakarta.annotation.Nullable FeeLevel feeLevel) { - this.feeLevel = feeLevel; - return this; - } - - /** - * Get feeLevel - * - * @return feeLevel - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FEE_LEVEL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public FeeLevel getFeeLevel() { - return feeLevel; - } - - @JsonProperty(JSON_PROPERTY_FEE_LEVEL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFeeLevel(@jakarta.annotation.Nullable FeeLevel feeLevel) { - this.feeLevel = feeLevel; - } - - public MergeStakeAccountsRequest txNote(@jakarta.annotation.Nullable String txNote) { - this.txNote = txNote; - return this; - } - - /** - * The note to associate with the transactions. - * - * @return txNote - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TX_NOTE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getTxNote() { - return txNote; - } - - @JsonProperty(JSON_PROPERTY_TX_NOTE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTxNote(@jakarta.annotation.Nullable String txNote) { - this.txNote = txNote; - } - - /** Return true if this MergeStakeAccountsRequest object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MergeStakeAccountsRequest mergeStakeAccountsRequest = (MergeStakeAccountsRequest) o; - return Objects.equals(this.sourceId, mergeStakeAccountsRequest.sourceId) - && Objects.equals(this.destinationId, mergeStakeAccountsRequest.destinationId) - && Objects.equals(this.fee, mergeStakeAccountsRequest.fee) - && Objects.equals(this.feeLevel, mergeStakeAccountsRequest.feeLevel) - && Objects.equals(this.txNote, mergeStakeAccountsRequest.txNote); - } - - @Override - public int hashCode() { - return Objects.hash(sourceId, destinationId, fee, feeLevel, txNote); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MergeStakeAccountsRequest {\n"); - sb.append(" sourceId: ").append(toIndentedString(sourceId)).append("\n"); - sb.append(" destinationId: ").append(toIndentedString(destinationId)).append("\n"); - sb.append(" fee: ").append(toIndentedString(fee)).append("\n"); - sb.append(" feeLevel: ").append(toIndentedString(feeLevel)).append("\n"); - sb.append(" txNote: ").append(toIndentedString(txNote)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `sourceId` to the URL query string - if (getSourceId() != null) { - joiner.add( - String.format( - "%ssourceId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getSourceId())))); - } - - // add `destinationId` to the URL query string - if (getDestinationId() != null) { - joiner.add( - String.format( - "%sdestinationId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getDestinationId())))); - } - - // add `fee` to the URL query string - if (getFee() != null) { - joiner.add( - String.format( - "%sfee%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getFee())))); - } - - // add `feeLevel` to the URL query string - if (getFeeLevel() != null) { - joiner.add( - String.format( - "%sfeeLevel%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getFeeLevel())))); - } - - // add `txNote` to the URL query string - if (getTxNote() != null) { - joiner.add( - String.format( - "%stxNote%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getTxNote())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/MergeStakeAccountsResponse.java b/src/main/java/com/fireblocks/sdk/model/MergeStakeAccountsResponse.java deleted file mode 100644 index 4f607a1c..00000000 --- a/src/main/java/com/fireblocks/sdk/model/MergeStakeAccountsResponse.java +++ /dev/null @@ -1,145 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; -import java.util.UUID; - -/** MergeStakeAccountsResponse */ -@JsonPropertyOrder({MergeStakeAccountsResponse.JSON_PROPERTY_ID}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class MergeStakeAccountsResponse { - public static final String JSON_PROPERTY_ID = "id"; - @jakarta.annotation.Nonnull private UUID id; - - public MergeStakeAccountsResponse() {} - - @JsonCreator - public MergeStakeAccountsResponse( - @JsonProperty(value = JSON_PROPERTY_ID, required = true) UUID id) { - this.id = id; - } - - public MergeStakeAccountsResponse id(@jakarta.annotation.Nonnull UUID id) { - this.id = id; - return this; - } - - /** - * The unique identifier of the merge position (the id of the destination position) - * - * @return id - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public UUID getId() { - return id; - } - - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(@jakarta.annotation.Nonnull UUID id) { - this.id = id; - } - - /** Return true if this MergeStakeAccountsResponse object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MergeStakeAccountsResponse mergeStakeAccountsResponse = (MergeStakeAccountsResponse) o; - return Objects.equals(this.id, mergeStakeAccountsResponse.id); - } - - @Override - public int hashCode() { - return Objects.hash(id); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MergeStakeAccountsResponse {\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `id` to the URL query string - if (getId() != null) { - joiner.add( - String.format( - "%sid%s=%s", - prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/ModifySigningKeyDto.java b/src/main/java/com/fireblocks/sdk/model/ModifySigningKeyDto.java index 5aa850fd..447ba3b5 100644 --- a/src/main/java/com/fireblocks/sdk/model/ModifySigningKeyDto.java +++ b/src/main/java/com/fireblocks/sdk/model/ModifySigningKeyDto.java @@ -47,7 +47,7 @@ public ModifySigningKeyDto vaultAccountId( } /** - * Get vaultAccountId minimum: 0 + * Get vaultAccountId minimum: 1 * * @return vaultAccountId */ diff --git a/src/main/java/com/fireblocks/sdk/model/MomoPaymentInfo.java b/src/main/java/com/fireblocks/sdk/model/MomoPaymentInfo.java deleted file mode 100644 index 47cb8f7a..00000000 --- a/src/main/java/com/fireblocks/sdk/model/MomoPaymentInfo.java +++ /dev/null @@ -1,610 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** Mobile Money (MOMO) payment information for African mobile payment services */ -@JsonPropertyOrder({ - MomoPaymentInfo.JSON_PROPERTY_RAIL, - MomoPaymentInfo.JSON_PROPERTY_ADDRESSING_SYSTEM, - MomoPaymentInfo.JSON_PROPERTY_ACCOUNT_HOLDER_GIVEN_NAME, - MomoPaymentInfo.JSON_PROPERTY_ACCOUNT_HOLDER_SURNAME, - MomoPaymentInfo.JSON_PROPERTY_COUNTRY, - MomoPaymentInfo.JSON_PROPERTY_MOBILE_PHONE_NUMBER, - MomoPaymentInfo.JSON_PROPERTY_PROVIDER, - MomoPaymentInfo.JSON_PROPERTY_BENEFICIARY_DOCUMENT_ID, - MomoPaymentInfo.JSON_PROPERTY_BENEFICIARY_RELATIONSHIP -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class MomoPaymentInfo { - /** The payment rail type for mobile money transfers */ - public enum RailEnum { - MOMO(String.valueOf("MOMO")); - - private String value; - - RailEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static RailEnum fromValue(String value) { - for (RailEnum b : RailEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_RAIL = "rail"; - @jakarta.annotation.Nonnull private RailEnum rail; - - /** The addressing system used for mobile money transfers */ - public enum AddressingSystemEnum { - MOMO(String.valueOf("MOMO")); - - private String value; - - AddressingSystemEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static AddressingSystemEnum fromValue(String value) { - for (AddressingSystemEnum b : AddressingSystemEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_ADDRESSING_SYSTEM = "addressingSystem"; - @jakarta.annotation.Nonnull private AddressingSystemEnum addressingSystem; - - public static final String JSON_PROPERTY_ACCOUNT_HOLDER_GIVEN_NAME = "accountHolderGivenName"; - @jakarta.annotation.Nonnull private String accountHolderGivenName; - - public static final String JSON_PROPERTY_ACCOUNT_HOLDER_SURNAME = "accountHolderSurname"; - @jakarta.annotation.Nonnull private String accountHolderSurname; - - public static final String JSON_PROPERTY_COUNTRY = "country"; - @jakarta.annotation.Nonnull private String country; - - public static final String JSON_PROPERTY_MOBILE_PHONE_NUMBER = "mobilePhoneNumber"; - @jakarta.annotation.Nonnull private String mobilePhoneNumber; - - /** The mobile money service provider */ - public enum ProviderEnum { - M_PESA(String.valueOf("M_PESA")), - - AIRTEL(String.valueOf("AIRTEL")), - - MTN(String.valueOf("MTN")), - - TIGO(String.valueOf("TIGO")); - - private String value; - - ProviderEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static ProviderEnum fromValue(String value) { - for (ProviderEnum b : ProviderEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_PROVIDER = "provider"; - @jakarta.annotation.Nonnull private ProviderEnum provider; - - public static final String JSON_PROPERTY_BENEFICIARY_DOCUMENT_ID = "beneficiaryDocumentId"; - @jakarta.annotation.Nullable private String beneficiaryDocumentId; - - public static final String JSON_PROPERTY_BENEFICIARY_RELATIONSHIP = "beneficiaryRelationship"; - @jakarta.annotation.Nullable private String beneficiaryRelationship; - - public MomoPaymentInfo() {} - - @JsonCreator - public MomoPaymentInfo( - @JsonProperty(value = JSON_PROPERTY_RAIL, required = true) RailEnum rail, - @JsonProperty(value = JSON_PROPERTY_ADDRESSING_SYSTEM, required = true) - AddressingSystemEnum addressingSystem, - @JsonProperty(value = JSON_PROPERTY_ACCOUNT_HOLDER_GIVEN_NAME, required = true) - String accountHolderGivenName, - @JsonProperty(value = JSON_PROPERTY_ACCOUNT_HOLDER_SURNAME, required = true) - String accountHolderSurname, - @JsonProperty(value = JSON_PROPERTY_COUNTRY, required = true) String country, - @JsonProperty(value = JSON_PROPERTY_MOBILE_PHONE_NUMBER, required = true) - String mobilePhoneNumber, - @JsonProperty(value = JSON_PROPERTY_PROVIDER, required = true) ProviderEnum provider) { - this.rail = rail; - this.addressingSystem = addressingSystem; - this.accountHolderGivenName = accountHolderGivenName; - this.accountHolderSurname = accountHolderSurname; - this.country = country; - this.mobilePhoneNumber = mobilePhoneNumber; - this.provider = provider; - } - - public MomoPaymentInfo rail(@jakarta.annotation.Nonnull RailEnum rail) { - this.rail = rail; - return this; - } - - /** - * The payment rail type for mobile money transfers - * - * @return rail - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_RAIL) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public RailEnum getRail() { - return rail; - } - - @JsonProperty(JSON_PROPERTY_RAIL) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setRail(@jakarta.annotation.Nonnull RailEnum rail) { - this.rail = rail; - } - - public MomoPaymentInfo addressingSystem( - @jakarta.annotation.Nonnull AddressingSystemEnum addressingSystem) { - this.addressingSystem = addressingSystem; - return this; - } - - /** - * The addressing system used for mobile money transfers - * - * @return addressingSystem - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ADDRESSING_SYSTEM) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AddressingSystemEnum getAddressingSystem() { - return addressingSystem; - } - - @JsonProperty(JSON_PROPERTY_ADDRESSING_SYSTEM) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAddressingSystem( - @jakarta.annotation.Nonnull AddressingSystemEnum addressingSystem) { - this.addressingSystem = addressingSystem; - } - - public MomoPaymentInfo accountHolderGivenName( - @jakarta.annotation.Nonnull String accountHolderGivenName) { - this.accountHolderGivenName = accountHolderGivenName; - return this; - } - - /** - * The given name (first name) of the account holder - * - * @return accountHolderGivenName - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_GIVEN_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getAccountHolderGivenName() { - return accountHolderGivenName; - } - - @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_GIVEN_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAccountHolderGivenName( - @jakarta.annotation.Nonnull String accountHolderGivenName) { - this.accountHolderGivenName = accountHolderGivenName; - } - - public MomoPaymentInfo accountHolderSurname( - @jakarta.annotation.Nonnull String accountHolderSurname) { - this.accountHolderSurname = accountHolderSurname; - return this; - } - - /** - * The surname (last name) of the account holder - * - * @return accountHolderSurname - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_SURNAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getAccountHolderSurname() { - return accountHolderSurname; - } - - @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_SURNAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAccountHolderSurname(@jakarta.annotation.Nonnull String accountHolderSurname) { - this.accountHolderSurname = accountHolderSurname; - } - - public MomoPaymentInfo country(@jakarta.annotation.Nonnull String country) { - this.country = country; - return this; - } - - /** - * The country for the transfer (ISO 3166-1 alpha-2 code) - * - * @return country - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_COUNTRY) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getCountry() { - return country; - } - - @JsonProperty(JSON_PROPERTY_COUNTRY) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCountry(@jakarta.annotation.Nonnull String country) { - this.country = country; - } - - public MomoPaymentInfo mobilePhoneNumber(@jakarta.annotation.Nonnull String mobilePhoneNumber) { - this.mobilePhoneNumber = mobilePhoneNumber; - return this; - } - - /** - * The mobile phone number associated with the mobile money account - * - * @return mobilePhoneNumber - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_MOBILE_PHONE_NUMBER) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getMobilePhoneNumber() { - return mobilePhoneNumber; - } - - @JsonProperty(JSON_PROPERTY_MOBILE_PHONE_NUMBER) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setMobilePhoneNumber(@jakarta.annotation.Nonnull String mobilePhoneNumber) { - this.mobilePhoneNumber = mobilePhoneNumber; - } - - public MomoPaymentInfo provider(@jakarta.annotation.Nonnull ProviderEnum provider) { - this.provider = provider; - return this; - } - - /** - * The mobile money service provider - * - * @return provider - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PROVIDER) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public ProviderEnum getProvider() { - return provider; - } - - @JsonProperty(JSON_PROPERTY_PROVIDER) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setProvider(@jakarta.annotation.Nonnull ProviderEnum provider) { - this.provider = provider; - } - - public MomoPaymentInfo beneficiaryDocumentId( - @jakarta.annotation.Nullable String beneficiaryDocumentId) { - this.beneficiaryDocumentId = beneficiaryDocumentId; - return this; - } - - /** - * The document ID of the beneficiary - * - * @return beneficiaryDocumentId - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BENEFICIARY_DOCUMENT_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getBeneficiaryDocumentId() { - return beneficiaryDocumentId; - } - - @JsonProperty(JSON_PROPERTY_BENEFICIARY_DOCUMENT_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBeneficiaryDocumentId( - @jakarta.annotation.Nullable String beneficiaryDocumentId) { - this.beneficiaryDocumentId = beneficiaryDocumentId; - } - - public MomoPaymentInfo beneficiaryRelationship( - @jakarta.annotation.Nullable String beneficiaryRelationship) { - this.beneficiaryRelationship = beneficiaryRelationship; - return this; - } - - /** - * The relationship between sender and beneficiary - * - * @return beneficiaryRelationship - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BENEFICIARY_RELATIONSHIP) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getBeneficiaryRelationship() { - return beneficiaryRelationship; - } - - @JsonProperty(JSON_PROPERTY_BENEFICIARY_RELATIONSHIP) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBeneficiaryRelationship( - @jakarta.annotation.Nullable String beneficiaryRelationship) { - this.beneficiaryRelationship = beneficiaryRelationship; - } - - /** Return true if this MomoPaymentInfo object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MomoPaymentInfo momoPaymentInfo = (MomoPaymentInfo) o; - return Objects.equals(this.rail, momoPaymentInfo.rail) - && Objects.equals(this.addressingSystem, momoPaymentInfo.addressingSystem) - && Objects.equals( - this.accountHolderGivenName, momoPaymentInfo.accountHolderGivenName) - && Objects.equals(this.accountHolderSurname, momoPaymentInfo.accountHolderSurname) - && Objects.equals(this.country, momoPaymentInfo.country) - && Objects.equals(this.mobilePhoneNumber, momoPaymentInfo.mobilePhoneNumber) - && Objects.equals(this.provider, momoPaymentInfo.provider) - && Objects.equals(this.beneficiaryDocumentId, momoPaymentInfo.beneficiaryDocumentId) - && Objects.equals( - this.beneficiaryRelationship, momoPaymentInfo.beneficiaryRelationship); - } - - @Override - public int hashCode() { - return Objects.hash( - rail, - addressingSystem, - accountHolderGivenName, - accountHolderSurname, - country, - mobilePhoneNumber, - provider, - beneficiaryDocumentId, - beneficiaryRelationship); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MomoPaymentInfo {\n"); - sb.append(" rail: ").append(toIndentedString(rail)).append("\n"); - sb.append(" addressingSystem: ").append(toIndentedString(addressingSystem)).append("\n"); - sb.append(" accountHolderGivenName: ") - .append(toIndentedString(accountHolderGivenName)) - .append("\n"); - sb.append(" accountHolderSurname: ") - .append(toIndentedString(accountHolderSurname)) - .append("\n"); - sb.append(" country: ").append(toIndentedString(country)).append("\n"); - sb.append(" mobilePhoneNumber: ") - .append(toIndentedString(mobilePhoneNumber)) - .append("\n"); - sb.append(" provider: ").append(toIndentedString(provider)).append("\n"); - sb.append(" beneficiaryDocumentId: ") - .append(toIndentedString(beneficiaryDocumentId)) - .append("\n"); - sb.append(" beneficiaryRelationship: ") - .append(toIndentedString(beneficiaryRelationship)) - .append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `rail` to the URL query string - if (getRail() != null) { - joiner.add( - String.format( - "%srail%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getRail())))); - } - - // add `addressingSystem` to the URL query string - if (getAddressingSystem() != null) { - joiner.add( - String.format( - "%saddressingSystem%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAddressingSystem())))); - } - - // add `accountHolderGivenName` to the URL query string - if (getAccountHolderGivenName() != null) { - joiner.add( - String.format( - "%saccountHolderGivenName%s=%s", - prefix, - suffix, - ApiClient.urlEncode( - ApiClient.valueToString(getAccountHolderGivenName())))); - } - - // add `accountHolderSurname` to the URL query string - if (getAccountHolderSurname() != null) { - joiner.add( - String.format( - "%saccountHolderSurname%s=%s", - prefix, - suffix, - ApiClient.urlEncode( - ApiClient.valueToString(getAccountHolderSurname())))); - } - - // add `country` to the URL query string - if (getCountry() != null) { - joiner.add( - String.format( - "%scountry%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getCountry())))); - } - - // add `mobilePhoneNumber` to the URL query string - if (getMobilePhoneNumber() != null) { - joiner.add( - String.format( - "%smobilePhoneNumber%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getMobilePhoneNumber())))); - } - - // add `provider` to the URL query string - if (getProvider() != null) { - joiner.add( - String.format( - "%sprovider%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getProvider())))); - } - - // add `beneficiaryDocumentId` to the URL query string - if (getBeneficiaryDocumentId() != null) { - joiner.add( - String.format( - "%sbeneficiaryDocumentId%s=%s", - prefix, - suffix, - ApiClient.urlEncode( - ApiClient.valueToString(getBeneficiaryDocumentId())))); - } - - // add `beneficiaryRelationship` to the URL query string - if (getBeneficiaryRelationship() != null) { - joiner.add( - String.format( - "%sbeneficiaryRelationship%s=%s", - prefix, - suffix, - ApiClient.urlEncode( - ApiClient.valueToString(getBeneficiaryRelationship())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/MpcKey.java b/src/main/java/com/fireblocks/sdk/model/MpcKey.java deleted file mode 100644 index e6c91e4f..00000000 --- a/src/main/java/com/fireblocks/sdk/model/MpcKey.java +++ /dev/null @@ -1,339 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.math.BigDecimal; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** MpcKey */ -@JsonPropertyOrder({ - MpcKey.JSON_PROPERTY_KEY_ID, - MpcKey.JSON_PROPERTY_USER_ID, - MpcKey.JSON_PROPERTY_ALGORITHM, - MpcKey.JSON_PROPERTY_PLAYERS, - MpcKey.JSON_PROPERTY_LAST_PREPROCESSED_INDEX -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class MpcKey { - public static final String JSON_PROPERTY_KEY_ID = "keyId"; - @jakarta.annotation.Nonnull private String keyId; - - public static final String JSON_PROPERTY_USER_ID = "userId"; - @jakarta.annotation.Nonnull private String userId; - - public static final String JSON_PROPERTY_ALGORITHM = "algorithm"; - @jakarta.annotation.Nonnull private BigDecimal algorithm; - - public static final String JSON_PROPERTY_PLAYERS = "players"; - @jakarta.annotation.Nonnull private List players = new ArrayList<>(); - - public static final String JSON_PROPERTY_LAST_PREPROCESSED_INDEX = "lastPreprocessedIndex"; - @jakarta.annotation.Nullable private BigDecimal lastPreprocessedIndex; - - public MpcKey() {} - - @JsonCreator - public MpcKey( - @JsonProperty(value = JSON_PROPERTY_KEY_ID, required = true) String keyId, - @JsonProperty(value = JSON_PROPERTY_USER_ID, required = true) String userId, - @JsonProperty(value = JSON_PROPERTY_ALGORITHM, required = true) BigDecimal algorithm, - @JsonProperty(value = JSON_PROPERTY_PLAYERS, required = true) List players) { - this.keyId = keyId; - this.userId = userId; - this.algorithm = algorithm; - this.players = players; - } - - public MpcKey keyId(@jakarta.annotation.Nonnull String keyId) { - this.keyId = keyId; - return this; - } - - /** - * Get keyId - * - * @return keyId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_KEY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getKeyId() { - return keyId; - } - - @JsonProperty(JSON_PROPERTY_KEY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setKeyId(@jakarta.annotation.Nonnull String keyId) { - this.keyId = keyId; - } - - public MpcKey userId(@jakarta.annotation.Nonnull String userId) { - this.userId = userId; - return this; - } - - /** - * The user id that owns the key - * - * @return userId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getUserId() { - return userId; - } - - @JsonProperty(JSON_PROPERTY_USER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUserId(@jakarta.annotation.Nonnull String userId) { - this.userId = userId; - } - - public MpcKey algorithm(@jakarta.annotation.Nonnull BigDecimal algorithm) { - this.algorithm = algorithm; - return this; - } - - /** - * The algorithm of the key - * - * @return algorithm - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ALGORITHM) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public BigDecimal getAlgorithm() { - return algorithm; - } - - @JsonProperty(JSON_PROPERTY_ALGORITHM) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAlgorithm(@jakarta.annotation.Nonnull BigDecimal algorithm) { - this.algorithm = algorithm; - } - - public MpcKey players(@jakarta.annotation.Nonnull List players) { - this.players = players; - return this; - } - - public MpcKey addPlayersItem(Players playersItem) { - if (this.players == null) { - this.players = new ArrayList<>(); - } - this.players.add(playersItem); - return this; - } - - /** - * The players that are associated with the key - * - * @return players - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PLAYERS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getPlayers() { - return players; - } - - @JsonProperty(JSON_PROPERTY_PLAYERS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPlayers(@jakarta.annotation.Nonnull List players) { - this.players = players; - } - - public MpcKey lastPreprocessedIndex( - @jakarta.annotation.Nullable BigDecimal lastPreprocessedIndex) { - this.lastPreprocessedIndex = lastPreprocessedIndex; - return this; - } - - /** - * The last index used on this key minimum: 0 - * - * @return lastPreprocessedIndex - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_LAST_PREPROCESSED_INDEX) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public BigDecimal getLastPreprocessedIndex() { - return lastPreprocessedIndex; - } - - @JsonProperty(JSON_PROPERTY_LAST_PREPROCESSED_INDEX) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLastPreprocessedIndex( - @jakarta.annotation.Nullable BigDecimal lastPreprocessedIndex) { - this.lastPreprocessedIndex = lastPreprocessedIndex; - } - - /** Return true if this MpcKey object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MpcKey mpcKey = (MpcKey) o; - return Objects.equals(this.keyId, mpcKey.keyId) - && Objects.equals(this.userId, mpcKey.userId) - && Objects.equals(this.algorithm, mpcKey.algorithm) - && Objects.equals(this.players, mpcKey.players) - && Objects.equals(this.lastPreprocessedIndex, mpcKey.lastPreprocessedIndex); - } - - @Override - public int hashCode() { - return Objects.hash(keyId, userId, algorithm, players, lastPreprocessedIndex); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MpcKey {\n"); - sb.append(" keyId: ").append(toIndentedString(keyId)).append("\n"); - sb.append(" userId: ").append(toIndentedString(userId)).append("\n"); - sb.append(" algorithm: ").append(toIndentedString(algorithm)).append("\n"); - sb.append(" players: ").append(toIndentedString(players)).append("\n"); - sb.append(" lastPreprocessedIndex: ") - .append(toIndentedString(lastPreprocessedIndex)) - .append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `keyId` to the URL query string - if (getKeyId() != null) { - joiner.add( - String.format( - "%skeyId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getKeyId())))); - } - - // add `userId` to the URL query string - if (getUserId() != null) { - joiner.add( - String.format( - "%suserId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getUserId())))); - } - - // add `algorithm` to the URL query string - if (getAlgorithm() != null) { - joiner.add( - String.format( - "%salgorithm%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAlgorithm())))); - } - - // add `players` to the URL query string - if (getPlayers() != null) { - for (int i = 0; i < getPlayers().size(); i++) { - if (getPlayers().get(i) != null) { - joiner.add( - getPlayers() - .get(i) - .toUrlQueryString( - String.format( - "%splayers%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } - } - - // add `lastPreprocessedIndex` to the URL query string - if (getLastPreprocessedIndex() != null) { - joiner.add( - String.format( - "%slastPreprocessedIndex%s=%s", - prefix, - suffix, - ApiClient.urlEncode( - ApiClient.valueToString(getLastPreprocessedIndex())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/MultichainDeploymentMetadata.java b/src/main/java/com/fireblocks/sdk/model/MultichainDeploymentMetadata.java deleted file mode 100644 index 238e9ee8..00000000 --- a/src/main/java/com/fireblocks/sdk/model/MultichainDeploymentMetadata.java +++ /dev/null @@ -1,365 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; -import java.util.UUID; - -/** The multichain deployment metadata */ -@JsonPropertyOrder({ - MultichainDeploymentMetadata.JSON_PROPERTY_ID, - MultichainDeploymentMetadata.JSON_PROPERTY_ADDRESS, - MultichainDeploymentMetadata.JSON_PROPERTY_TEMPLATE_ID, - MultichainDeploymentMetadata.JSON_PROPERTY_DEPLOYMENT_SALT, - MultichainDeploymentMetadata.JSON_PROPERTY_INIT_PARAMS, - MultichainDeploymentMetadata.JSON_PROPERTY_ENCODED_INIT_PARAMS -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class MultichainDeploymentMetadata { - public static final String JSON_PROPERTY_ID = "id"; - @jakarta.annotation.Nullable private UUID id; - - public static final String JSON_PROPERTY_ADDRESS = "address"; - @jakarta.annotation.Nullable private String address; - - public static final String JSON_PROPERTY_TEMPLATE_ID = "templateId"; - @jakarta.annotation.Nullable private UUID templateId; - - public static final String JSON_PROPERTY_DEPLOYMENT_SALT = "deploymentSalt"; - @jakarta.annotation.Nullable private String deploymentSalt; - - public static final String JSON_PROPERTY_INIT_PARAMS = "initParams"; - @jakarta.annotation.Nullable private List initParams = new ArrayList<>(); - - public static final String JSON_PROPERTY_ENCODED_INIT_PARAMS = "encodedInitParams"; - @jakarta.annotation.Nullable private String encodedInitParams; - - public MultichainDeploymentMetadata() {} - - public MultichainDeploymentMetadata id(@jakarta.annotation.Nullable UUID id) { - this.id = id; - return this; - } - - /** - * The unique identifier of the deployment metadata - * - * @return id - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public UUID getId() { - return id; - } - - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(@jakarta.annotation.Nullable UUID id) { - this.id = id; - } - - public MultichainDeploymentMetadata address(@jakarta.annotation.Nullable String address) { - this.address = address; - return this; - } - - /** - * The address of the deployed contract - * - * @return address - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ADDRESS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getAddress() { - return address; - } - - @JsonProperty(JSON_PROPERTY_ADDRESS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAddress(@jakarta.annotation.Nullable String address) { - this.address = address; - } - - public MultichainDeploymentMetadata templateId(@jakarta.annotation.Nullable UUID templateId) { - this.templateId = templateId; - return this; - } - - /** - * The unique identifier of the contract template - * - * @return templateId - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TEMPLATE_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public UUID getTemplateId() { - return templateId; - } - - @JsonProperty(JSON_PROPERTY_TEMPLATE_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTemplateId(@jakarta.annotation.Nullable UUID templateId) { - this.templateId = templateId; - } - - public MultichainDeploymentMetadata deploymentSalt( - @jakarta.annotation.Nullable String deploymentSalt) { - this.deploymentSalt = deploymentSalt; - return this; - } - - /** - * The salt used for the deployment - * - * @return deploymentSalt - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DEPLOYMENT_SALT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getDeploymentSalt() { - return deploymentSalt; - } - - @JsonProperty(JSON_PROPERTY_DEPLOYMENT_SALT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDeploymentSalt(@jakarta.annotation.Nullable String deploymentSalt) { - this.deploymentSalt = deploymentSalt; - } - - public MultichainDeploymentMetadata initParams( - @jakarta.annotation.Nullable List initParams) { - this.initParams = initParams; - return this; - } - - public MultichainDeploymentMetadata addInitParamsItem(ParameterWithValue initParamsItem) { - if (this.initParams == null) { - this.initParams = new ArrayList<>(); - } - this.initParams.add(initParamsItem); - return this; - } - - /** - * Get initParams - * - * @return initParams - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INIT_PARAMS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getInitParams() { - return initParams; - } - - @JsonProperty(JSON_PROPERTY_INIT_PARAMS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInitParams(@jakarta.annotation.Nullable List initParams) { - this.initParams = initParams; - } - - public MultichainDeploymentMetadata encodedInitParams( - @jakarta.annotation.Nullable String encodedInitParams) { - this.encodedInitParams = encodedInitParams; - return this; - } - - /** - * The encoded init params - * - * @return encodedInitParams - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENCODED_INIT_PARAMS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getEncodedInitParams() { - return encodedInitParams; - } - - @JsonProperty(JSON_PROPERTY_ENCODED_INIT_PARAMS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEncodedInitParams(@jakarta.annotation.Nullable String encodedInitParams) { - this.encodedInitParams = encodedInitParams; - } - - /** Return true if this MultichainDeploymentMetadata object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MultichainDeploymentMetadata multichainDeploymentMetadata = - (MultichainDeploymentMetadata) o; - return Objects.equals(this.id, multichainDeploymentMetadata.id) - && Objects.equals(this.address, multichainDeploymentMetadata.address) - && Objects.equals(this.templateId, multichainDeploymentMetadata.templateId) - && Objects.equals(this.deploymentSalt, multichainDeploymentMetadata.deploymentSalt) - && Objects.equals(this.initParams, multichainDeploymentMetadata.initParams) - && Objects.equals( - this.encodedInitParams, multichainDeploymentMetadata.encodedInitParams); - } - - @Override - public int hashCode() { - return Objects.hash(id, address, templateId, deploymentSalt, initParams, encodedInitParams); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MultichainDeploymentMetadata {\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" address: ").append(toIndentedString(address)).append("\n"); - sb.append(" templateId: ").append(toIndentedString(templateId)).append("\n"); - sb.append(" deploymentSalt: ").append(toIndentedString(deploymentSalt)).append("\n"); - sb.append(" initParams: ").append(toIndentedString(initParams)).append("\n"); - sb.append(" encodedInitParams: ") - .append(toIndentedString(encodedInitParams)) - .append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `id` to the URL query string - if (getId() != null) { - joiner.add( - String.format( - "%sid%s=%s", - prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); - } - - // add `address` to the URL query string - if (getAddress() != null) { - joiner.add( - String.format( - "%saddress%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAddress())))); - } - - // add `templateId` to the URL query string - if (getTemplateId() != null) { - joiner.add( - String.format( - "%stemplateId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getTemplateId())))); - } - - // add `deploymentSalt` to the URL query string - if (getDeploymentSalt() != null) { - joiner.add( - String.format( - "%sdeploymentSalt%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getDeploymentSalt())))); - } - - // add `initParams` to the URL query string - if (getInitParams() != null) { - for (int i = 0; i < getInitParams().size(); i++) { - if (getInitParams().get(i) != null) { - joiner.add( - getInitParams() - .get(i) - .toUrlQueryString( - String.format( - "%sinitParams%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } - } - - // add `encodedInitParams` to the URL query string - if (getEncodedInitParams() != null) { - joiner.add( - String.format( - "%sencodedInitParams%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getEncodedInitParams())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/NetworkConnection.java b/src/main/java/com/fireblocks/sdk/model/NetworkConnection.java index 79feaf28..b350e001 100644 --- a/src/main/java/com/fireblocks/sdk/model/NetworkConnection.java +++ b/src/main/java/com/fireblocks/sdk/model/NetworkConnection.java @@ -42,7 +42,7 @@ public class NetworkConnection { public static final String JSON_PROPERTY_ROUTING_POLICY = "routingPolicy"; @jakarta.annotation.Nullable - private Map routingPolicy = new HashMap<>(); + private Map routingPolicy; public NetworkConnection() {} diff --git a/src/main/java/com/fireblocks/sdk/model/NetworkConnectionResponse.java b/src/main/java/com/fireblocks/sdk/model/NetworkConnectionResponse.java index 6e91660b..0c4ef280 100644 --- a/src/main/java/com/fireblocks/sdk/model/NetworkConnectionResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/NetworkConnectionResponse.java @@ -58,7 +58,7 @@ public class NetworkConnectionResponse { public static final String JSON_PROPERTY_ROUTING_POLICY = "routingPolicy"; @jakarta.annotation.Nonnull - private Map routingPolicy = new HashMap<>(); + private Map routingPolicy; public NetworkConnectionResponse() {} diff --git a/src/main/java/com/fireblocks/sdk/model/NetworkIdResponse.java b/src/main/java/com/fireblocks/sdk/model/NetworkIdResponse.java index 7f03a2a9..8745242a 100644 --- a/src/main/java/com/fireblocks/sdk/model/NetworkIdResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/NetworkIdResponse.java @@ -13,6 +13,7 @@ package com.fireblocks.sdk.model; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; @@ -24,30 +25,82 @@ /** NetworkIdResponse */ @JsonPropertyOrder({ - NetworkIdResponse.JSON_PROPERTY_ROUTING_POLICY, - NetworkIdResponse.JSON_PROPERTY_IS_DISCOVERABLE, NetworkIdResponse.JSON_PROPERTY_ID, - NetworkIdResponse.JSON_PROPERTY_NAME + NetworkIdResponse.JSON_PROPERTY_NAME, + NetworkIdResponse.JSON_PROPERTY_ROUTING_POLICY, + NetworkIdResponse.JSON_PROPERTY_IS_DISCOVERABLE }) @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") public class NetworkIdResponse { - public static final String JSON_PROPERTY_ROUTING_POLICY = "routingPolicy"; + public static final String JSON_PROPERTY_ID = "id"; + @jakarta.annotation.Nonnull private String id; - @jakarta.annotation.Nullable - private Map routingPolicy = new HashMap<>(); + public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nonnull private String name; + + public static final String JSON_PROPERTY_ROUTING_POLICY = "routingPolicy"; + @jakarta.annotation.Nullable private Map routingPolicy; public static final String JSON_PROPERTY_IS_DISCOVERABLE = "isDiscoverable"; @jakarta.annotation.Nullable private Boolean isDiscoverable; - public static final String JSON_PROPERTY_ID = "id"; - @jakarta.annotation.Nullable private String id; + public NetworkIdResponse() {} - public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nullable private String name; + @JsonCreator + public NetworkIdResponse( + @JsonProperty(value = JSON_PROPERTY_ID, required = true) String id, + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) String name) { + this.id = id; + this.name = name; + } - public NetworkIdResponse() {} + public NetworkIdResponse id(@jakarta.annotation.Nonnull String id) { + this.id = id; + return this; + } + + /** + * Get id + * + * @return id + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getId() { + return id; + } + + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setId(@jakarta.annotation.Nonnull String id) { + this.id = id; + } + + public NetworkIdResponse name(@jakarta.annotation.Nonnull String name) { + this.name = name; + return this; + } + + /** + * Get name + * + * @return name + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getName() { + return name; + } + + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setName(@jakarta.annotation.Nonnull String name) { + this.name = name; + } public NetworkIdResponse routingPolicy( @jakarta.annotation.Nullable Map routingPolicy) { @@ -106,52 +159,6 @@ public void setIsDiscoverable(@jakarta.annotation.Nullable Boolean isDiscoverabl this.isDiscoverable = isDiscoverable; } - public NetworkIdResponse id(@jakarta.annotation.Nullable String id) { - this.id = id; - return this; - } - - /** - * The specific network id - * - * @return id - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getId() { - return id; - } - - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(@jakarta.annotation.Nullable String id) { - this.id = id; - } - - public NetworkIdResponse name(@jakarta.annotation.Nullable String name) { - this.name = name; - return this; - } - - /** - * The specific network name - * - * @return name - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getName() { - return name; - } - - @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(@jakarta.annotation.Nullable String name) { - this.name = name; - } - /** Return true if this NetworkIdResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -162,25 +169,25 @@ public boolean equals(Object o) { return false; } NetworkIdResponse networkIdResponse = (NetworkIdResponse) o; - return Objects.equals(this.routingPolicy, networkIdResponse.routingPolicy) - && Objects.equals(this.isDiscoverable, networkIdResponse.isDiscoverable) - && Objects.equals(this.id, networkIdResponse.id) - && Objects.equals(this.name, networkIdResponse.name); + return Objects.equals(this.id, networkIdResponse.id) + && Objects.equals(this.name, networkIdResponse.name) + && Objects.equals(this.routingPolicy, networkIdResponse.routingPolicy) + && Objects.equals(this.isDiscoverable, networkIdResponse.isDiscoverable); } @Override public int hashCode() { - return Objects.hash(routingPolicy, isDiscoverable, id, name); + return Objects.hash(id, name, routingPolicy, isDiscoverable); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class NetworkIdResponse {\n"); - sb.append(" routingPolicy: ").append(toIndentedString(routingPolicy)).append("\n"); - sb.append(" isDiscoverable: ").append(toIndentedString(isDiscoverable)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" routingPolicy: ").append(toIndentedString(routingPolicy)).append("\n"); + sb.append(" isDiscoverable: ").append(toIndentedString(isDiscoverable)).append("\n"); sb.append("}"); return sb.toString(); } @@ -228,6 +235,24 @@ public String toUrlQueryString(String prefix) { StringJoiner joiner = new StringJoiner("&"); + // add `id` to the URL query string + if (getId() != null) { + joiner.add( + String.format( + "%sid%s=%s", + prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); + } + + // add `name` to the URL query string + if (getName() != null) { + joiner.add( + String.format( + "%sname%s=%s", + prefix, + suffix, + ApiClient.urlEncode(ApiClient.valueToString(getName())))); + } + // add `routingPolicy` to the URL query string if (getRoutingPolicy() != null) { for (String _key : getRoutingPolicy().keySet()) { @@ -261,24 +286,6 @@ public String toUrlQueryString(String prefix) { ApiClient.urlEncode(ApiClient.valueToString(getIsDiscoverable())))); } - // add `id` to the URL query string - if (getId() != null) { - joiner.add( - String.format( - "%sid%s=%s", - prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); - } - - // add `name` to the URL query string - if (getName() != null) { - joiner.add( - String.format( - "%sname%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getName())))); - } - return joiner.toString(); } } diff --git a/src/main/java/com/fireblocks/sdk/model/NewAddress.java b/src/main/java/com/fireblocks/sdk/model/NewAddress.java deleted file mode 100644 index f16c649a..00000000 --- a/src/main/java/com/fireblocks/sdk/model/NewAddress.java +++ /dev/null @@ -1,230 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** NewAddress */ -@JsonPropertyOrder({ - NewAddress.JSON_PROPERTY_ADDRESS, - NewAddress.JSON_PROPERTY_INDEX, - NewAddress.JSON_PROPERTY_DESCRIPTION -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class NewAddress { - public static final String JSON_PROPERTY_ADDRESS = "address"; - @jakarta.annotation.Nonnull private String address; - - public static final String JSON_PROPERTY_INDEX = "index"; - @jakarta.annotation.Nonnull private Integer index; - - public static final String JSON_PROPERTY_DESCRIPTION = "description"; - @jakarta.annotation.Nonnull private String description; - - public NewAddress() {} - - @JsonCreator - public NewAddress( - @JsonProperty(value = JSON_PROPERTY_ADDRESS, required = true) String address, - @JsonProperty(value = JSON_PROPERTY_INDEX, required = true) Integer index, - @JsonProperty(value = JSON_PROPERTY_DESCRIPTION, required = true) String description) { - this.address = address; - this.index = index; - this.description = description; - } - - public NewAddress address(@jakarta.annotation.Nonnull String address) { - this.address = address; - return this; - } - - /** - * The address string. - * - * @return address - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ADDRESS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getAddress() { - return address; - } - - @JsonProperty(JSON_PROPERTY_ADDRESS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAddress(@jakarta.annotation.Nonnull String address) { - this.address = address; - } - - public NewAddress index(@jakarta.annotation.Nonnull Integer index) { - this.index = index; - return this; - } - - /** - * The index of the address in the list. - * - * @return index - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_INDEX) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getIndex() { - return index; - } - - @JsonProperty(JSON_PROPERTY_INDEX) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setIndex(@jakarta.annotation.Nonnull Integer index) { - this.index = index; - } - - public NewAddress description(@jakarta.annotation.Nonnull String description) { - this.description = description; - return this; - } - - /** - * A description of the address. - * - * @return description - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DESCRIPTION) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getDescription() { - return description; - } - - @JsonProperty(JSON_PROPERTY_DESCRIPTION) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDescription(@jakarta.annotation.Nonnull String description) { - this.description = description; - } - - /** Return true if this NewAddress object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - NewAddress newAddress = (NewAddress) o; - return Objects.equals(this.address, newAddress.address) - && Objects.equals(this.index, newAddress.index) - && Objects.equals(this.description, newAddress.description); - } - - @Override - public int hashCode() { - return Objects.hash(address, index, description); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class NewAddress {\n"); - sb.append(" address: ").append(toIndentedString(address)).append("\n"); - sb.append(" index: ").append(toIndentedString(index)).append("\n"); - sb.append(" description: ").append(toIndentedString(description)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `address` to the URL query string - if (getAddress() != null) { - joiner.add( - String.format( - "%saddress%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAddress())))); - } - - // add `index` to the URL query string - if (getIndex() != null) { - joiner.add( - String.format( - "%sindex%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getIndex())))); - } - - // add `description` to the URL query string - if (getDescription() != null) { - joiner.add( - String.format( - "%sdescription%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getDescription())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/Notification.java b/src/main/java/com/fireblocks/sdk/model/Notification.java deleted file mode 100644 index d8ee89ee..00000000 --- a/src/main/java/com/fireblocks/sdk/model/Notification.java +++ /dev/null @@ -1,351 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; -import java.util.UUID; - -/** Notification */ -@JsonPropertyOrder({ - Notification.JSON_PROPERTY_ID, - Notification.JSON_PROPERTY_CREATED_AT, - Notification.JSON_PROPERTY_UPDATED_AT, - Notification.JSON_PROPERTY_STATUS, - Notification.JSON_PROPERTY_EVENT_TYPE, - Notification.JSON_PROPERTY_RESOURCE_ID -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class Notification { - public static final String JSON_PROPERTY_ID = "id"; - @jakarta.annotation.Nonnull private UUID id; - - public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; - @jakarta.annotation.Nonnull private Long createdAt; - - public static final String JSON_PROPERTY_UPDATED_AT = "updatedAt"; - @jakarta.annotation.Nonnull private Long updatedAt; - - public static final String JSON_PROPERTY_STATUS = "status"; - @jakarta.annotation.Nonnull private NotificationStatus status; - - public static final String JSON_PROPERTY_EVENT_TYPE = "eventType"; - @jakarta.annotation.Nonnull private WebhookEvent eventType; - - public static final String JSON_PROPERTY_RESOURCE_ID = "resourceId"; - @jakarta.annotation.Nullable private UUID resourceId; - - public Notification() {} - - @JsonCreator - public Notification( - @JsonProperty(value = JSON_PROPERTY_ID, required = true) UUID id, - @JsonProperty(value = JSON_PROPERTY_CREATED_AT, required = true) Long createdAt, - @JsonProperty(value = JSON_PROPERTY_UPDATED_AT, required = true) Long updatedAt, - @JsonProperty(value = JSON_PROPERTY_STATUS, required = true) NotificationStatus status, - @JsonProperty(value = JSON_PROPERTY_EVENT_TYPE, required = true) - WebhookEvent eventType) { - this.id = id; - this.createdAt = createdAt; - this.updatedAt = updatedAt; - this.status = status; - this.eventType = eventType; - } - - public Notification id(@jakarta.annotation.Nonnull UUID id) { - this.id = id; - return this; - } - - /** - * The id of the Notification - * - * @return id - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public UUID getId() { - return id; - } - - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(@jakarta.annotation.Nonnull UUID id) { - this.id = id; - } - - public Notification createdAt(@jakarta.annotation.Nonnull Long createdAt) { - this.createdAt = createdAt; - return this; - } - - /** - * The creation date of the notification in milliseconds - * - * @return createdAt - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CREATED_AT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Long getCreatedAt() { - return createdAt; - } - - @JsonProperty(JSON_PROPERTY_CREATED_AT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCreatedAt(@jakarta.annotation.Nonnull Long createdAt) { - this.createdAt = createdAt; - } - - public Notification updatedAt(@jakarta.annotation.Nonnull Long updatedAt) { - this.updatedAt = updatedAt; - return this; - } - - /** - * The date when the notification was updated in milliseconds - * - * @return updatedAt - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_UPDATED_AT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Long getUpdatedAt() { - return updatedAt; - } - - @JsonProperty(JSON_PROPERTY_UPDATED_AT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUpdatedAt(@jakarta.annotation.Nonnull Long updatedAt) { - this.updatedAt = updatedAt; - } - - public Notification status(@jakarta.annotation.Nonnull NotificationStatus status) { - this.status = status; - return this; - } - - /** - * Get status - * - * @return status - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_STATUS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public NotificationStatus getStatus() { - return status; - } - - @JsonProperty(JSON_PROPERTY_STATUS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStatus(@jakarta.annotation.Nonnull NotificationStatus status) { - this.status = status; - } - - public Notification eventType(@jakarta.annotation.Nonnull WebhookEvent eventType) { - this.eventType = eventType; - return this; - } - - /** - * Get eventType - * - * @return eventType - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_EVENT_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public WebhookEvent getEventType() { - return eventType; - } - - @JsonProperty(JSON_PROPERTY_EVENT_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setEventType(@jakarta.annotation.Nonnull WebhookEvent eventType) { - this.eventType = eventType; - } - - public Notification resourceId(@jakarta.annotation.Nullable UUID resourceId) { - this.resourceId = resourceId; - return this; - } - - /** - * The resource id of the event which the Notification is listen to - * - * @return resourceId - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_RESOURCE_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public UUID getResourceId() { - return resourceId; - } - - @JsonProperty(JSON_PROPERTY_RESOURCE_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setResourceId(@jakarta.annotation.Nullable UUID resourceId) { - this.resourceId = resourceId; - } - - /** Return true if this Notification object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Notification notification = (Notification) o; - return Objects.equals(this.id, notification.id) - && Objects.equals(this.createdAt, notification.createdAt) - && Objects.equals(this.updatedAt, notification.updatedAt) - && Objects.equals(this.status, notification.status) - && Objects.equals(this.eventType, notification.eventType) - && Objects.equals(this.resourceId, notification.resourceId); - } - - @Override - public int hashCode() { - return Objects.hash(id, createdAt, updatedAt, status, eventType, resourceId); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class Notification {\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); - sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append(" eventType: ").append(toIndentedString(eventType)).append("\n"); - sb.append(" resourceId: ").append(toIndentedString(resourceId)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `id` to the URL query string - if (getId() != null) { - joiner.add( - String.format( - "%sid%s=%s", - prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); - } - - // add `createdAt` to the URL query string - if (getCreatedAt() != null) { - joiner.add( - String.format( - "%screatedAt%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getCreatedAt())))); - } - - // add `updatedAt` to the URL query string - if (getUpdatedAt() != null) { - joiner.add( - String.format( - "%supdatedAt%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getUpdatedAt())))); - } - - // add `status` to the URL query string - if (getStatus() != null) { - joiner.add( - String.format( - "%sstatus%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getStatus())))); - } - - // add `eventType` to the URL query string - if (getEventType() != null) { - joiner.add( - String.format( - "%seventType%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getEventType())))); - } - - // add `resourceId` to the URL query string - if (getResourceId() != null) { - joiner.add( - String.format( - "%sresourceId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getResourceId())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/NotificationAttempt.java b/src/main/java/com/fireblocks/sdk/model/NotificationAttempt.java deleted file mode 100644 index 1d7a9498..00000000 --- a/src/main/java/com/fireblocks/sdk/model/NotificationAttempt.java +++ /dev/null @@ -1,302 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** NotificationAttempt */ -@JsonPropertyOrder({ - NotificationAttempt.JSON_PROPERTY_SENT_TIME, - NotificationAttempt.JSON_PROPERTY_DURATION, - NotificationAttempt.JSON_PROPERTY_RESPONSE_CODE, - NotificationAttempt.JSON_PROPERTY_FAILURE_REASON -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class NotificationAttempt { - public static final String JSON_PROPERTY_SENT_TIME = "sentTime"; - @jakarta.annotation.Nonnull private Long sentTime; - - public static final String JSON_PROPERTY_DURATION = "duration"; - @jakarta.annotation.Nonnull private Integer duration; - - public static final String JSON_PROPERTY_RESPONSE_CODE = "responseCode"; - @jakarta.annotation.Nullable private Integer responseCode; - - /** The request failure reason in case responseCode is missing. */ - public enum FailureReasonEnum { - TIMED_OUT(String.valueOf("TIMED_OUT")), - - NO_RESPONSE(String.valueOf("NO_RESPONSE")); - - private String value; - - FailureReasonEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static FailureReasonEnum fromValue(String value) { - for (FailureReasonEnum b : FailureReasonEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_FAILURE_REASON = "failureReason"; - @jakarta.annotation.Nullable private FailureReasonEnum failureReason; - - public NotificationAttempt() {} - - @JsonCreator - public NotificationAttempt( - @JsonProperty(value = JSON_PROPERTY_SENT_TIME, required = true) Long sentTime, - @JsonProperty(value = JSON_PROPERTY_DURATION, required = true) Integer duration) { - this.sentTime = sentTime; - this.duration = duration; - } - - public NotificationAttempt sentTime(@jakarta.annotation.Nonnull Long sentTime) { - this.sentTime = sentTime; - return this; - } - - /** - * The time when the attempt was sent in milliseconds. - * - * @return sentTime - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SENT_TIME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Long getSentTime() { - return sentTime; - } - - @JsonProperty(JSON_PROPERTY_SENT_TIME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSentTime(@jakarta.annotation.Nonnull Long sentTime) { - this.sentTime = sentTime; - } - - public NotificationAttempt duration(@jakarta.annotation.Nonnull Integer duration) { - this.duration = duration; - return this; - } - - /** - * The duration of the attempt in milliseconds. - * - * @return duration - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DURATION) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getDuration() { - return duration; - } - - @JsonProperty(JSON_PROPERTY_DURATION) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDuration(@jakarta.annotation.Nonnull Integer duration) { - this.duration = duration; - } - - public NotificationAttempt responseCode(@jakarta.annotation.Nullable Integer responseCode) { - this.responseCode = responseCode; - return this; - } - - /** - * The response code of the attempt, when missing refer to failureReason. - * - * @return responseCode - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_RESPONSE_CODE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getResponseCode() { - return responseCode; - } - - @JsonProperty(JSON_PROPERTY_RESPONSE_CODE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setResponseCode(@jakarta.annotation.Nullable Integer responseCode) { - this.responseCode = responseCode; - } - - public NotificationAttempt failureReason( - @jakarta.annotation.Nullable FailureReasonEnum failureReason) { - this.failureReason = failureReason; - return this; - } - - /** - * The request failure reason in case responseCode is missing. - * - * @return failureReason - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FAILURE_REASON) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public FailureReasonEnum getFailureReason() { - return failureReason; - } - - @JsonProperty(JSON_PROPERTY_FAILURE_REASON) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFailureReason(@jakarta.annotation.Nullable FailureReasonEnum failureReason) { - this.failureReason = failureReason; - } - - /** Return true if this NotificationAttempt object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - NotificationAttempt notificationAttempt = (NotificationAttempt) o; - return Objects.equals(this.sentTime, notificationAttempt.sentTime) - && Objects.equals(this.duration, notificationAttempt.duration) - && Objects.equals(this.responseCode, notificationAttempt.responseCode) - && Objects.equals(this.failureReason, notificationAttempt.failureReason); - } - - @Override - public int hashCode() { - return Objects.hash(sentTime, duration, responseCode, failureReason); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class NotificationAttempt {\n"); - sb.append(" sentTime: ").append(toIndentedString(sentTime)).append("\n"); - sb.append(" duration: ").append(toIndentedString(duration)).append("\n"); - sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); - sb.append(" failureReason: ").append(toIndentedString(failureReason)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `sentTime` to the URL query string - if (getSentTime() != null) { - joiner.add( - String.format( - "%ssentTime%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getSentTime())))); - } - - // add `duration` to the URL query string - if (getDuration() != null) { - joiner.add( - String.format( - "%sduration%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getDuration())))); - } - - // add `responseCode` to the URL query string - if (getResponseCode() != null) { - joiner.add( - String.format( - "%sresponseCode%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getResponseCode())))); - } - - // add `failureReason` to the URL query string - if (getFailureReason() != null) { - joiner.add( - String.format( - "%sfailureReason%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getFailureReason())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/NotificationAttemptsPaginatedResponse.java b/src/main/java/com/fireblocks/sdk/model/NotificationAttemptsPaginatedResponse.java deleted file mode 100644 index e6adf355..00000000 --- a/src/main/java/com/fireblocks/sdk/model/NotificationAttemptsPaginatedResponse.java +++ /dev/null @@ -1,213 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** NotificationAttemptsPaginatedResponse */ -@JsonPropertyOrder({ - NotificationAttemptsPaginatedResponse.JSON_PROPERTY_DATA, - NotificationAttemptsPaginatedResponse.JSON_PROPERTY_NEXT -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class NotificationAttemptsPaginatedResponse { - public static final String JSON_PROPERTY_DATA = "data"; - @jakarta.annotation.Nonnull private List data = new ArrayList<>(); - - public static final String JSON_PROPERTY_NEXT = "next"; - @jakarta.annotation.Nullable private String next; - - public NotificationAttemptsPaginatedResponse() {} - - @JsonCreator - public NotificationAttemptsPaginatedResponse( - @JsonProperty(value = JSON_PROPERTY_DATA, required = true) - List data) { - this.data = data; - } - - public NotificationAttemptsPaginatedResponse data( - @jakarta.annotation.Nonnull List data) { - this.data = data; - return this; - } - - public NotificationAttemptsPaginatedResponse addDataItem(NotificationAttempt dataItem) { - if (this.data == null) { - this.data = new ArrayList<>(); - } - this.data.add(dataItem); - return this; - } - - /** - * The data of the current page - * - * @return data - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getData() { - return data; - } - - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setData(@jakarta.annotation.Nonnull List data) { - this.data = data; - } - - public NotificationAttemptsPaginatedResponse next(@jakarta.annotation.Nullable String next) { - this.next = next; - return this; - } - - /** - * The ID of the next page - * - * @return next - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NEXT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getNext() { - return next; - } - - @JsonProperty(JSON_PROPERTY_NEXT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNext(@jakarta.annotation.Nullable String next) { - this.next = next; - } - - /** Return true if this NotificationAttemptsPaginatedResponse object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - NotificationAttemptsPaginatedResponse notificationAttemptsPaginatedResponse = - (NotificationAttemptsPaginatedResponse) o; - return Objects.equals(this.data, notificationAttemptsPaginatedResponse.data) - && Objects.equals(this.next, notificationAttemptsPaginatedResponse.next); - } - - @Override - public int hashCode() { - return Objects.hash(data, next); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class NotificationAttemptsPaginatedResponse {\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" next: ").append(toIndentedString(next)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `data` to the URL query string - if (getData() != null) { - for (int i = 0; i < getData().size(); i++) { - if (getData().get(i) != null) { - joiner.add( - getData() - .get(i) - .toUrlQueryString( - String.format( - "%sdata%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } - } - - // add `next` to the URL query string - if (getNext() != null) { - joiner.add( - String.format( - "%snext%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getNext())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/NotificationPaginatedResponse.java b/src/main/java/com/fireblocks/sdk/model/NotificationPaginatedResponse.java deleted file mode 100644 index fa4499c8..00000000 --- a/src/main/java/com/fireblocks/sdk/model/NotificationPaginatedResponse.java +++ /dev/null @@ -1,252 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.math.BigDecimal; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** NotificationPaginatedResponse */ -@JsonPropertyOrder({ - NotificationPaginatedResponse.JSON_PROPERTY_DATA, - NotificationPaginatedResponse.JSON_PROPERTY_TOTAL, - NotificationPaginatedResponse.JSON_PROPERTY_NEXT -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class NotificationPaginatedResponse { - public static final String JSON_PROPERTY_DATA = "data"; - @jakarta.annotation.Nonnull private List data = new ArrayList<>(); - - public static final String JSON_PROPERTY_TOTAL = "total"; - @jakarta.annotation.Nullable private BigDecimal total; - - public static final String JSON_PROPERTY_NEXT = "next"; - @jakarta.annotation.Nullable private String next; - - public NotificationPaginatedResponse() {} - - @JsonCreator - public NotificationPaginatedResponse( - @JsonProperty(value = JSON_PROPERTY_DATA, required = true) List data) { - this.data = data; - } - - public NotificationPaginatedResponse data(@jakarta.annotation.Nonnull List data) { - this.data = data; - return this; - } - - public NotificationPaginatedResponse addDataItem(Notification dataItem) { - if (this.data == null) { - this.data = new ArrayList<>(); - } - this.data.add(dataItem); - return this; - } - - /** - * The data of the current page - * - * @return data - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getData() { - return data; - } - - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setData(@jakarta.annotation.Nonnull List data) { - this.data = data; - } - - public NotificationPaginatedResponse total(@jakarta.annotation.Nullable BigDecimal total) { - this.total = total; - return this; - } - - /** - * The total number of notifications after all filters applied (not returned when - * 'pageCursor' parameter is used) - * - * @return total - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TOTAL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public BigDecimal getTotal() { - return total; - } - - @JsonProperty(JSON_PROPERTY_TOTAL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTotal(@jakarta.annotation.Nullable BigDecimal total) { - this.total = total; - } - - public NotificationPaginatedResponse next(@jakarta.annotation.Nullable String next) { - this.next = next; - return this; - } - - /** - * The ID of the next page - * - * @return next - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NEXT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getNext() { - return next; - } - - @JsonProperty(JSON_PROPERTY_NEXT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNext(@jakarta.annotation.Nullable String next) { - this.next = next; - } - - /** Return true if this NotificationPaginatedResponse object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - NotificationPaginatedResponse notificationPaginatedResponse = - (NotificationPaginatedResponse) o; - return Objects.equals(this.data, notificationPaginatedResponse.data) - && Objects.equals(this.total, notificationPaginatedResponse.total) - && Objects.equals(this.next, notificationPaginatedResponse.next); - } - - @Override - public int hashCode() { - return Objects.hash(data, total, next); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class NotificationPaginatedResponse {\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" total: ").append(toIndentedString(total)).append("\n"); - sb.append(" next: ").append(toIndentedString(next)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `data` to the URL query string - if (getData() != null) { - for (int i = 0; i < getData().size(); i++) { - if (getData().get(i) != null) { - joiner.add( - getData() - .get(i) - .toUrlQueryString( - String.format( - "%sdata%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } - } - - // add `total` to the URL query string - if (getTotal() != null) { - joiner.add( - String.format( - "%stotal%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getTotal())))); - } - - // add `next` to the URL query string - if (getNext() != null) { - joiner.add( - String.format( - "%snext%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getNext())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/NotificationStatus.java b/src/main/java/com/fireblocks/sdk/model/NotificationStatus.java deleted file mode 100644 index bc417912..00000000 --- a/src/main/java/com/fireblocks/sdk/model/NotificationStatus.java +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - -/** The status of the Notification */ -public enum NotificationStatus { - COMPLETED("COMPLETED"), - - FAILED("FAILED"), - - IN_PROGRESS("IN_PROGRESS"), - - ON_HOLD("ON_HOLD"); - - private String value; - - NotificationStatus(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static NotificationStatus fromValue(String value) { - for (NotificationStatus b : NotificationStatus.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - if (prefix == null) { - prefix = ""; - } - - return String.format("%s=%s", prefix, this.toString()); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/NotificationWithData.java b/src/main/java/com/fireblocks/sdk/model/NotificationWithData.java deleted file mode 100644 index e7f70895..00000000 --- a/src/main/java/com/fireblocks/sdk/model/NotificationWithData.java +++ /dev/null @@ -1,390 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; -import java.util.UUID; - -/** NotificationWithData */ -@JsonPropertyOrder({ - NotificationWithData.JSON_PROPERTY_ID, - NotificationWithData.JSON_PROPERTY_CREATED_AT, - NotificationWithData.JSON_PROPERTY_UPDATED_AT, - NotificationWithData.JSON_PROPERTY_STATUS, - NotificationWithData.JSON_PROPERTY_EVENT_TYPE, - NotificationWithData.JSON_PROPERTY_RESOURCE_ID, - NotificationWithData.JSON_PROPERTY_DATA -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class NotificationWithData { - public static final String JSON_PROPERTY_ID = "id"; - @jakarta.annotation.Nonnull private UUID id; - - public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; - @jakarta.annotation.Nonnull private Long createdAt; - - public static final String JSON_PROPERTY_UPDATED_AT = "updatedAt"; - @jakarta.annotation.Nonnull private Long updatedAt; - - public static final String JSON_PROPERTY_STATUS = "status"; - @jakarta.annotation.Nonnull private NotificationStatus status; - - public static final String JSON_PROPERTY_EVENT_TYPE = "eventType"; - @jakarta.annotation.Nonnull private WebhookEvent eventType; - - public static final String JSON_PROPERTY_RESOURCE_ID = "resourceId"; - @jakarta.annotation.Nullable private UUID resourceId; - - public static final String JSON_PROPERTY_DATA = "data"; - @jakarta.annotation.Nullable private Object data; - - public NotificationWithData() {} - - @JsonCreator - public NotificationWithData( - @JsonProperty(value = JSON_PROPERTY_ID, required = true) UUID id, - @JsonProperty(value = JSON_PROPERTY_CREATED_AT, required = true) Long createdAt, - @JsonProperty(value = JSON_PROPERTY_UPDATED_AT, required = true) Long updatedAt, - @JsonProperty(value = JSON_PROPERTY_STATUS, required = true) NotificationStatus status, - @JsonProperty(value = JSON_PROPERTY_EVENT_TYPE, required = true) - WebhookEvent eventType) { - this.id = id; - this.createdAt = createdAt; - this.updatedAt = updatedAt; - this.status = status; - this.eventType = eventType; - } - - public NotificationWithData id(@jakarta.annotation.Nonnull UUID id) { - this.id = id; - return this; - } - - /** - * Get id - * - * @return id - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public UUID getId() { - return id; - } - - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(@jakarta.annotation.Nonnull UUID id) { - this.id = id; - } - - public NotificationWithData createdAt(@jakarta.annotation.Nonnull Long createdAt) { - this.createdAt = createdAt; - return this; - } - - /** - * The creation date of the notification in milliseconds - * - * @return createdAt - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CREATED_AT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Long getCreatedAt() { - return createdAt; - } - - @JsonProperty(JSON_PROPERTY_CREATED_AT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCreatedAt(@jakarta.annotation.Nonnull Long createdAt) { - this.createdAt = createdAt; - } - - public NotificationWithData updatedAt(@jakarta.annotation.Nonnull Long updatedAt) { - this.updatedAt = updatedAt; - return this; - } - - /** - * The date when the notification was updated in milliseconds - * - * @return updatedAt - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_UPDATED_AT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Long getUpdatedAt() { - return updatedAt; - } - - @JsonProperty(JSON_PROPERTY_UPDATED_AT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUpdatedAt(@jakarta.annotation.Nonnull Long updatedAt) { - this.updatedAt = updatedAt; - } - - public NotificationWithData status(@jakarta.annotation.Nonnull NotificationStatus status) { - this.status = status; - return this; - } - - /** - * Get status - * - * @return status - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_STATUS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public NotificationStatus getStatus() { - return status; - } - - @JsonProperty(JSON_PROPERTY_STATUS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStatus(@jakarta.annotation.Nonnull NotificationStatus status) { - this.status = status; - } - - public NotificationWithData eventType(@jakarta.annotation.Nonnull WebhookEvent eventType) { - this.eventType = eventType; - return this; - } - - /** - * Get eventType - * - * @return eventType - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_EVENT_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public WebhookEvent getEventType() { - return eventType; - } - - @JsonProperty(JSON_PROPERTY_EVENT_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setEventType(@jakarta.annotation.Nonnull WebhookEvent eventType) { - this.eventType = eventType; - } - - public NotificationWithData resourceId(@jakarta.annotation.Nullable UUID resourceId) { - this.resourceId = resourceId; - return this; - } - - /** - * The resource id of the event which the Notification is listen to - * - * @return resourceId - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_RESOURCE_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public UUID getResourceId() { - return resourceId; - } - - @JsonProperty(JSON_PROPERTY_RESOURCE_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setResourceId(@jakarta.annotation.Nullable UUID resourceId) { - this.resourceId = resourceId; - } - - public NotificationWithData data(@jakarta.annotation.Nullable Object data) { - this.data = data; - return this; - } - - /** - * notification data - * - * @return data - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Object getData() { - return data; - } - - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setData(@jakarta.annotation.Nullable Object data) { - this.data = data; - } - - /** Return true if this NotificationWithData object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - NotificationWithData notificationWithData = (NotificationWithData) o; - return Objects.equals(this.id, notificationWithData.id) - && Objects.equals(this.createdAt, notificationWithData.createdAt) - && Objects.equals(this.updatedAt, notificationWithData.updatedAt) - && Objects.equals(this.status, notificationWithData.status) - && Objects.equals(this.eventType, notificationWithData.eventType) - && Objects.equals(this.resourceId, notificationWithData.resourceId) - && Objects.equals(this.data, notificationWithData.data); - } - - @Override - public int hashCode() { - return Objects.hash(id, createdAt, updatedAt, status, eventType, resourceId, data); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class NotificationWithData {\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); - sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append(" eventType: ").append(toIndentedString(eventType)).append("\n"); - sb.append(" resourceId: ").append(toIndentedString(resourceId)).append("\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `id` to the URL query string - if (getId() != null) { - joiner.add( - String.format( - "%sid%s=%s", - prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); - } - - // add `createdAt` to the URL query string - if (getCreatedAt() != null) { - joiner.add( - String.format( - "%screatedAt%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getCreatedAt())))); - } - - // add `updatedAt` to the URL query string - if (getUpdatedAt() != null) { - joiner.add( - String.format( - "%supdatedAt%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getUpdatedAt())))); - } - - // add `status` to the URL query string - if (getStatus() != null) { - joiner.add( - String.format( - "%sstatus%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getStatus())))); - } - - // add `eventType` to the URL query string - if (getEventType() != null) { - joiner.add( - String.format( - "%seventType%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getEventType())))); - } - - // add `resourceId` to the URL query string - if (getResourceId() != null) { - joiner.add( - String.format( - "%sresourceId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getResourceId())))); - } - - // add `data` to the URL query string - if (getData() != null) { - joiner.add( - String.format( - "%sdata%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getData())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/OneTimeAddressReference.java b/src/main/java/com/fireblocks/sdk/model/OneTimeAddressReference.java deleted file mode 100644 index ab5a89a2..00000000 --- a/src/main/java/com/fireblocks/sdk/model/OneTimeAddressReference.java +++ /dev/null @@ -1,260 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** OneTimeAddressReference */ -@JsonPropertyOrder({ - OneTimeAddressReference.JSON_PROPERTY_TYPE, - OneTimeAddressReference.JSON_PROPERTY_ADDRESS, - OneTimeAddressReference.JSON_PROPERTY_TAG -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class OneTimeAddressReference { - /** Gets or Sets type */ - public enum TypeEnum { - ONE_TIME_ADDRESS(String.valueOf("ONE_TIME_ADDRESS")); - - private String value; - - TypeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static TypeEnum fromValue(String value) { - for (TypeEnum b : TypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_TYPE = "type"; - @jakarta.annotation.Nonnull private TypeEnum type; - - public static final String JSON_PROPERTY_ADDRESS = "address"; - @jakarta.annotation.Nonnull private String address; - - public static final String JSON_PROPERTY_TAG = "tag"; - @jakarta.annotation.Nullable private String tag; - - public OneTimeAddressReference() {} - - @JsonCreator - public OneTimeAddressReference( - @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) TypeEnum type, - @JsonProperty(value = JSON_PROPERTY_ADDRESS, required = true) String address) { - this.type = type; - this.address = address; - } - - public OneTimeAddressReference type(@jakarta.annotation.Nonnull TypeEnum type) { - this.type = type; - return this; - } - - /** - * Get type - * - * @return type - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { - return type; - } - - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(@jakarta.annotation.Nonnull TypeEnum type) { - this.type = type; - } - - public OneTimeAddressReference address(@jakarta.annotation.Nonnull String address) { - this.address = address; - return this; - } - - /** - * Get address - * - * @return address - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ADDRESS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getAddress() { - return address; - } - - @JsonProperty(JSON_PROPERTY_ADDRESS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAddress(@jakarta.annotation.Nonnull String address) { - this.address = address; - } - - public OneTimeAddressReference tag(@jakarta.annotation.Nullable String tag) { - this.tag = tag; - return this; - } - - /** - * Get tag - * - * @return tag - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TAG) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getTag() { - return tag; - } - - @JsonProperty(JSON_PROPERTY_TAG) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTag(@jakarta.annotation.Nullable String tag) { - this.tag = tag; - } - - /** Return true if this OneTimeAddressReference object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - OneTimeAddressReference oneTimeAddressReference = (OneTimeAddressReference) o; - return Objects.equals(this.type, oneTimeAddressReference.type) - && Objects.equals(this.address, oneTimeAddressReference.address) - && Objects.equals(this.tag, oneTimeAddressReference.tag); - } - - @Override - public int hashCode() { - return Objects.hash(type, address, tag); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class OneTimeAddressReference {\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" address: ").append(toIndentedString(address)).append("\n"); - sb.append(" tag: ").append(toIndentedString(tag)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `type` to the URL query string - if (getType() != null) { - joiner.add( - String.format( - "%stype%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getType())))); - } - - // add `address` to the URL query string - if (getAddress() != null) { - joiner.add( - String.format( - "%saddress%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAddress())))); - } - - // add `tag` to the URL query string - if (getTag() != null) { - joiner.add( - String.format( - "%stag%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getTag())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/OperationExecutionFailure.java b/src/main/java/com/fireblocks/sdk/model/OperationExecutionFailure.java index c6366cea..bbdf06a3 100644 --- a/src/main/java/com/fireblocks/sdk/model/OperationExecutionFailure.java +++ b/src/main/java/com/fireblocks/sdk/model/OperationExecutionFailure.java @@ -36,7 +36,7 @@ public class OperationExecutionFailure { @jakarta.annotation.Nonnull private String reason; public static final String JSON_PROPERTY_DATA = "data"; - @jakarta.annotation.Nullable private Map data = new HashMap<>(); + @jakarta.annotation.Nullable private Map data; public OperationExecutionFailure() {} diff --git a/src/main/java/com/fireblocks/sdk/model/OrderDetails.java b/src/main/java/com/fireblocks/sdk/model/OrderDetails.java deleted file mode 100644 index e5c287d1..00000000 --- a/src/main/java/com/fireblocks/sdk/model/OrderDetails.java +++ /dev/null @@ -1,835 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** OrderDetails */ -@JsonPropertyOrder({ - OrderDetails.JSON_PROPERTY_ID, - OrderDetails.JSON_PROPERTY_VIA, - OrderDetails.JSON_PROPERTY_STATUS, - OrderDetails.JSON_PROPERTY_CREATED_AT, - OrderDetails.JSON_PROPERTY_UPDATED_AT, - OrderDetails.JSON_PROPERTY_RECEIPT, - OrderDetails.JSON_PROPERTY_GENERAL_FEES, - OrderDetails.JSON_PROPERTY_EXECUTION_STEPS, - OrderDetails.JSON_PROPERTY_EXECUTION_RESPONSE_DETAILS, - OrderDetails.JSON_PROPERTY_SETTLEMENT, - OrderDetails.JSON_PROPERTY_PARTICIPANTS_IDENTIFICATION, - OrderDetails.JSON_PROPERTY_PAYMENT_INSTRUCTIONS, - OrderDetails.JSON_PROPERTY_CREATED_BY, - OrderDetails.JSON_PROPERTY_CUSTOMER_INTERNAL_REFERENCE_ID, - OrderDetails.JSON_PROPERTY_NOTE, - OrderDetails.JSON_PROPERTY_EXPIRES_AT -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class OrderDetails { - public static final String JSON_PROPERTY_ID = "id"; - @jakarta.annotation.Nonnull private String id; - - public static final String JSON_PROPERTY_VIA = "via"; - @jakarta.annotation.Nonnull private AccessType via; - - public static final String JSON_PROPERTY_STATUS = "status"; - @jakarta.annotation.Nonnull private OrderStatus status; - - public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; - @jakarta.annotation.Nonnull private OffsetDateTime createdAt; - - public static final String JSON_PROPERTY_UPDATED_AT = "updatedAt"; - @jakarta.annotation.Nullable private OffsetDateTime updatedAt; - - public static final String JSON_PROPERTY_RECEIPT = "receipt"; - @jakarta.annotation.Nullable private TransferReceipt receipt; - - public static final String JSON_PROPERTY_GENERAL_FEES = "generalFees"; - @jakarta.annotation.Nullable private List generalFees = new ArrayList<>(); - - public static final String JSON_PROPERTY_EXECUTION_STEPS = "executionSteps"; - @jakarta.annotation.Nonnull private List executionSteps = new ArrayList<>(); - - public static final String JSON_PROPERTY_EXECUTION_RESPONSE_DETAILS = - "executionResponseDetails"; - @jakarta.annotation.Nonnull private ExecutionResponseDetails executionResponseDetails; - - public static final String JSON_PROPERTY_SETTLEMENT = "settlement"; - @jakarta.annotation.Nonnull private Settlement settlement; - - public static final String JSON_PROPERTY_PARTICIPANTS_IDENTIFICATION = - "participantsIdentification"; - @jakarta.annotation.Nullable private ParticipantsIdentification participantsIdentification; - - public static final String JSON_PROPERTY_PAYMENT_INSTRUCTIONS = "paymentInstructions"; - - @jakarta.annotation.Nullable - private List paymentInstructions = new ArrayList<>(); - - public static final String JSON_PROPERTY_CREATED_BY = "createdBy"; - @jakarta.annotation.Nonnull private String createdBy; - - public static final String JSON_PROPERTY_CUSTOMER_INTERNAL_REFERENCE_ID = - "customerInternalReferenceId"; - @jakarta.annotation.Nullable private String customerInternalReferenceId; - - public static final String JSON_PROPERTY_NOTE = "note"; - @jakarta.annotation.Nullable private String note; - - public static final String JSON_PROPERTY_EXPIRES_AT = "expiresAt"; - @jakarta.annotation.Nullable private OffsetDateTime expiresAt; - - public OrderDetails() {} - - @JsonCreator - public OrderDetails( - @JsonProperty(value = JSON_PROPERTY_ID, required = true) String id, - @JsonProperty(value = JSON_PROPERTY_VIA, required = true) AccessType via, - @JsonProperty(value = JSON_PROPERTY_STATUS, required = true) OrderStatus status, - @JsonProperty(value = JSON_PROPERTY_CREATED_AT, required = true) - OffsetDateTime createdAt, - @JsonProperty(value = JSON_PROPERTY_EXECUTION_STEPS, required = true) - List executionSteps, - @JsonProperty(value = JSON_PROPERTY_EXECUTION_RESPONSE_DETAILS, required = true) - ExecutionResponseDetails executionResponseDetails, - @JsonProperty(value = JSON_PROPERTY_SETTLEMENT, required = true) Settlement settlement, - @JsonProperty(value = JSON_PROPERTY_CREATED_BY, required = true) String createdBy) { - this.id = id; - this.via = via; - this.status = status; - this.createdAt = createdAt; - this.executionSteps = executionSteps; - this.executionResponseDetails = executionResponseDetails; - this.settlement = settlement; - this.createdBy = createdBy; - } - - public OrderDetails id(@jakarta.annotation.Nonnull String id) { - this.id = id; - return this; - } - - /** - * Get id - * - * @return id - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getId() { - return id; - } - - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(@jakarta.annotation.Nonnull String id) { - this.id = id; - } - - public OrderDetails via(@jakarta.annotation.Nonnull AccessType via) { - this.via = via; - return this; - } - - /** - * Get via - * - * @return via - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_VIA) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccessType getVia() { - return via; - } - - @JsonProperty(JSON_PROPERTY_VIA) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setVia(@jakarta.annotation.Nonnull AccessType via) { - this.via = via; - } - - public OrderDetails status(@jakarta.annotation.Nonnull OrderStatus status) { - this.status = status; - return this; - } - - /** - * Get status - * - * @return status - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_STATUS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public OrderStatus getStatus() { - return status; - } - - @JsonProperty(JSON_PROPERTY_STATUS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStatus(@jakarta.annotation.Nonnull OrderStatus status) { - this.status = status; - } - - public OrderDetails createdAt(@jakarta.annotation.Nonnull OffsetDateTime createdAt) { - this.createdAt = createdAt; - return this; - } - - /** - * Get createdAt - * - * @return createdAt - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CREATED_AT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public OffsetDateTime getCreatedAt() { - return createdAt; - } - - @JsonProperty(JSON_PROPERTY_CREATED_AT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCreatedAt(@jakarta.annotation.Nonnull OffsetDateTime createdAt) { - this.createdAt = createdAt; - } - - public OrderDetails updatedAt(@jakarta.annotation.Nullable OffsetDateTime updatedAt) { - this.updatedAt = updatedAt; - return this; - } - - /** - * Get updatedAt - * - * @return updatedAt - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UPDATED_AT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public OffsetDateTime getUpdatedAt() { - return updatedAt; - } - - @JsonProperty(JSON_PROPERTY_UPDATED_AT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUpdatedAt(@jakarta.annotation.Nullable OffsetDateTime updatedAt) { - this.updatedAt = updatedAt; - } - - public OrderDetails receipt(@jakarta.annotation.Nullable TransferReceipt receipt) { - this.receipt = receipt; - return this; - } - - /** - * Get receipt - * - * @return receipt - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_RECEIPT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public TransferReceipt getReceipt() { - return receipt; - } - - @JsonProperty(JSON_PROPERTY_RECEIPT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setReceipt(@jakarta.annotation.Nullable TransferReceipt receipt) { - this.receipt = receipt; - } - - public OrderDetails generalFees(@jakarta.annotation.Nullable List generalFees) { - this.generalFees = generalFees; - return this; - } - - public OrderDetails addGeneralFeesItem(Fee generalFeesItem) { - if (this.generalFees == null) { - this.generalFees = new ArrayList<>(); - } - this.generalFees.add(generalFeesItem); - return this; - } - - /** - * Get generalFees - * - * @return generalFees - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_GENERAL_FEES) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getGeneralFees() { - return generalFees; - } - - @JsonProperty(JSON_PROPERTY_GENERAL_FEES) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setGeneralFees(@jakarta.annotation.Nullable List generalFees) { - this.generalFees = generalFees; - } - - public OrderDetails executionSteps( - @jakarta.annotation.Nonnull List executionSteps) { - this.executionSteps = executionSteps; - return this; - } - - public OrderDetails addExecutionStepsItem(ExecutionStep executionStepsItem) { - if (this.executionSteps == null) { - this.executionSteps = new ArrayList<>(); - } - this.executionSteps.add(executionStepsItem); - return this; - } - - /** - * Get executionSteps - * - * @return executionSteps - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_EXECUTION_STEPS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getExecutionSteps() { - return executionSteps; - } - - @JsonProperty(JSON_PROPERTY_EXECUTION_STEPS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setExecutionSteps(@jakarta.annotation.Nonnull List executionSteps) { - this.executionSteps = executionSteps; - } - - public OrderDetails executionResponseDetails( - @jakarta.annotation.Nonnull ExecutionResponseDetails executionResponseDetails) { - this.executionResponseDetails = executionResponseDetails; - return this; - } - - /** - * Get executionResponseDetails - * - * @return executionResponseDetails - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_EXECUTION_RESPONSE_DETAILS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public ExecutionResponseDetails getExecutionResponseDetails() { - return executionResponseDetails; - } - - @JsonProperty(JSON_PROPERTY_EXECUTION_RESPONSE_DETAILS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setExecutionResponseDetails( - @jakarta.annotation.Nonnull ExecutionResponseDetails executionResponseDetails) { - this.executionResponseDetails = executionResponseDetails; - } - - public OrderDetails settlement(@jakarta.annotation.Nonnull Settlement settlement) { - this.settlement = settlement; - return this; - } - - /** - * Get settlement - * - * @return settlement - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SETTLEMENT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Settlement getSettlement() { - return settlement; - } - - @JsonProperty(JSON_PROPERTY_SETTLEMENT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSettlement(@jakarta.annotation.Nonnull Settlement settlement) { - this.settlement = settlement; - } - - public OrderDetails participantsIdentification( - @jakarta.annotation.Nullable ParticipantsIdentification participantsIdentification) { - this.participantsIdentification = participantsIdentification; - return this; - } - - /** - * Get participantsIdentification - * - * @return participantsIdentification - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PARTICIPANTS_IDENTIFICATION) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public ParticipantsIdentification getParticipantsIdentification() { - return participantsIdentification; - } - - @JsonProperty(JSON_PROPERTY_PARTICIPANTS_IDENTIFICATION) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setParticipantsIdentification( - @jakarta.annotation.Nullable ParticipantsIdentification participantsIdentification) { - this.participantsIdentification = participantsIdentification; - } - - public OrderDetails paymentInstructions( - @jakarta.annotation.Nullable List paymentInstructions) { - this.paymentInstructions = paymentInstructions; - return this; - } - - public OrderDetails addPaymentInstructionsItem(PaymentInstructions paymentInstructionsItem) { - if (this.paymentInstructions == null) { - this.paymentInstructions = new ArrayList<>(); - } - this.paymentInstructions.add(paymentInstructionsItem); - return this; - } - - /** - * Payment instructions for the order, the client can use one of these to pay the order. - * - * @return paymentInstructions - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUCTIONS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getPaymentInstructions() { - return paymentInstructions; - } - - @JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUCTIONS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPaymentInstructions( - @jakarta.annotation.Nullable List paymentInstructions) { - this.paymentInstructions = paymentInstructions; - } - - public OrderDetails createdBy(@jakarta.annotation.Nonnull String createdBy) { - this.createdBy = createdBy; - return this; - } - - /** - * The ID of the user who created the order - * - * @return createdBy - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CREATED_BY) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getCreatedBy() { - return createdBy; - } - - @JsonProperty(JSON_PROPERTY_CREATED_BY) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCreatedBy(@jakarta.annotation.Nonnull String createdBy) { - this.createdBy = createdBy; - } - - public OrderDetails customerInternalReferenceId( - @jakarta.annotation.Nullable String customerInternalReferenceId) { - this.customerInternalReferenceId = customerInternalReferenceId; - return this; - } - - /** - * Internal reference ID for the customer - * - * @return customerInternalReferenceId - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CUSTOMER_INTERNAL_REFERENCE_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getCustomerInternalReferenceId() { - return customerInternalReferenceId; - } - - @JsonProperty(JSON_PROPERTY_CUSTOMER_INTERNAL_REFERENCE_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCustomerInternalReferenceId( - @jakarta.annotation.Nullable String customerInternalReferenceId) { - this.customerInternalReferenceId = customerInternalReferenceId; - } - - public OrderDetails note(@jakarta.annotation.Nullable String note) { - this.note = note; - return this; - } - - /** - * Optional note for the Order - * - * @return note - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NOTE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getNote() { - return note; - } - - @JsonProperty(JSON_PROPERTY_NOTE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNote(@jakarta.annotation.Nullable String note) { - this.note = note; - } - - public OrderDetails expiresAt(@jakarta.annotation.Nullable OffsetDateTime expiresAt) { - this.expiresAt = expiresAt; - return this; - } - - /** - * Get expiresAt - * - * @return expiresAt - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EXPIRES_AT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public OffsetDateTime getExpiresAt() { - return expiresAt; - } - - @JsonProperty(JSON_PROPERTY_EXPIRES_AT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setExpiresAt(@jakarta.annotation.Nullable OffsetDateTime expiresAt) { - this.expiresAt = expiresAt; - } - - /** Return true if this OrderDetails object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - OrderDetails orderDetails = (OrderDetails) o; - return Objects.equals(this.id, orderDetails.id) - && Objects.equals(this.via, orderDetails.via) - && Objects.equals(this.status, orderDetails.status) - && Objects.equals(this.createdAt, orderDetails.createdAt) - && Objects.equals(this.updatedAt, orderDetails.updatedAt) - && Objects.equals(this.receipt, orderDetails.receipt) - && Objects.equals(this.generalFees, orderDetails.generalFees) - && Objects.equals(this.executionSteps, orderDetails.executionSteps) - && Objects.equals( - this.executionResponseDetails, orderDetails.executionResponseDetails) - && Objects.equals(this.settlement, orderDetails.settlement) - && Objects.equals( - this.participantsIdentification, orderDetails.participantsIdentification) - && Objects.equals(this.paymentInstructions, orderDetails.paymentInstructions) - && Objects.equals(this.createdBy, orderDetails.createdBy) - && Objects.equals( - this.customerInternalReferenceId, orderDetails.customerInternalReferenceId) - && Objects.equals(this.note, orderDetails.note) - && Objects.equals(this.expiresAt, orderDetails.expiresAt); - } - - @Override - public int hashCode() { - return Objects.hash( - id, - via, - status, - createdAt, - updatedAt, - receipt, - generalFees, - executionSteps, - executionResponseDetails, - settlement, - participantsIdentification, - paymentInstructions, - createdBy, - customerInternalReferenceId, - note, - expiresAt); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class OrderDetails {\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" via: ").append(toIndentedString(via)).append("\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); - sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); - sb.append(" receipt: ").append(toIndentedString(receipt)).append("\n"); - sb.append(" generalFees: ").append(toIndentedString(generalFees)).append("\n"); - sb.append(" executionSteps: ").append(toIndentedString(executionSteps)).append("\n"); - sb.append(" executionResponseDetails: ") - .append(toIndentedString(executionResponseDetails)) - .append("\n"); - sb.append(" settlement: ").append(toIndentedString(settlement)).append("\n"); - sb.append(" participantsIdentification: ") - .append(toIndentedString(participantsIdentification)) - .append("\n"); - sb.append(" paymentInstructions: ") - .append(toIndentedString(paymentInstructions)) - .append("\n"); - sb.append(" createdBy: ").append(toIndentedString(createdBy)).append("\n"); - sb.append(" customerInternalReferenceId: ") - .append(toIndentedString(customerInternalReferenceId)) - .append("\n"); - sb.append(" note: ").append(toIndentedString(note)).append("\n"); - sb.append(" expiresAt: ").append(toIndentedString(expiresAt)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `id` to the URL query string - if (getId() != null) { - joiner.add( - String.format( - "%sid%s=%s", - prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); - } - - // add `via` to the URL query string - if (getVia() != null) { - joiner.add(getVia().toUrlQueryString(prefix + "via" + suffix)); - } - - // add `status` to the URL query string - if (getStatus() != null) { - joiner.add( - String.format( - "%sstatus%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getStatus())))); - } - - // add `createdAt` to the URL query string - if (getCreatedAt() != null) { - joiner.add( - String.format( - "%screatedAt%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getCreatedAt())))); - } - - // add `updatedAt` to the URL query string - if (getUpdatedAt() != null) { - joiner.add( - String.format( - "%supdatedAt%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getUpdatedAt())))); - } - - // add `receipt` to the URL query string - if (getReceipt() != null) { - joiner.add(getReceipt().toUrlQueryString(prefix + "receipt" + suffix)); - } - - // add `generalFees` to the URL query string - if (getGeneralFees() != null) { - for (int i = 0; i < getGeneralFees().size(); i++) { - if (getGeneralFees().get(i) != null) { - joiner.add( - getGeneralFees() - .get(i) - .toUrlQueryString( - String.format( - "%sgeneralFees%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } - } - - // add `executionSteps` to the URL query string - if (getExecutionSteps() != null) { - for (int i = 0; i < getExecutionSteps().size(); i++) { - if (getExecutionSteps().get(i) != null) { - joiner.add( - getExecutionSteps() - .get(i) - .toUrlQueryString( - String.format( - "%sexecutionSteps%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } - } - - // add `executionResponseDetails` to the URL query string - if (getExecutionResponseDetails() != null) { - joiner.add( - getExecutionResponseDetails() - .toUrlQueryString(prefix + "executionResponseDetails" + suffix)); - } - - // add `settlement` to the URL query string - if (getSettlement() != null) { - joiner.add(getSettlement().toUrlQueryString(prefix + "settlement" + suffix)); - } - - // add `participantsIdentification` to the URL query string - if (getParticipantsIdentification() != null) { - joiner.add( - getParticipantsIdentification() - .toUrlQueryString(prefix + "participantsIdentification" + suffix)); - } - - // add `paymentInstructions` to the URL query string - if (getPaymentInstructions() != null) { - for (int i = 0; i < getPaymentInstructions().size(); i++) { - if (getPaymentInstructions().get(i) != null) { - joiner.add( - getPaymentInstructions() - .get(i) - .toUrlQueryString( - String.format( - "%spaymentInstructions%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } - } - - // add `createdBy` to the URL query string - if (getCreatedBy() != null) { - joiner.add( - String.format( - "%screatedBy%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getCreatedBy())))); - } - - // add `customerInternalReferenceId` to the URL query string - if (getCustomerInternalReferenceId() != null) { - joiner.add( - String.format( - "%scustomerInternalReferenceId%s=%s", - prefix, - suffix, - ApiClient.urlEncode( - ApiClient.valueToString(getCustomerInternalReferenceId())))); - } - - // add `note` to the URL query string - if (getNote() != null) { - joiner.add( - String.format( - "%snote%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getNote())))); - } - - // add `expiresAt` to the URL query string - if (getExpiresAt() != null) { - joiner.add( - String.format( - "%sexpiresAt%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getExpiresAt())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/OrderStatus.java b/src/main/java/com/fireblocks/sdk/model/OrderStatus.java deleted file mode 100644 index 39bb359a..00000000 --- a/src/main/java/com/fireblocks/sdk/model/OrderStatus.java +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - -/** Gets or Sets OrderStatus */ -public enum OrderStatus { - CREATED("CREATED"), - - PENDING_USER_ACTION("PENDING_USER_ACTION"), - - PROCESSING("PROCESSING"), - - CANCELED("CANCELED"), - - COMPLETED("COMPLETED"), - - FAILED("FAILED"); - - private String value; - - OrderStatus(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static OrderStatus fromValue(String value) { - for (OrderStatus b : OrderStatus.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - if (prefix == null) { - prefix = ""; - } - - return String.format("%s=%s", prefix, this.toString()); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/OrderSummary.java b/src/main/java/com/fireblocks/sdk/model/OrderSummary.java deleted file mode 100644 index 62e91558..00000000 --- a/src/main/java/com/fireblocks/sdk/model/OrderSummary.java +++ /dev/null @@ -1,586 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fireblocks.sdk.ApiClient; -import java.time.OffsetDateTime; -import java.util.Objects; -import java.util.StringJoiner; - -/** OrderSummary */ -@JsonPropertyOrder({ - OrderSummary.JSON_PROPERTY_ID, - OrderSummary.JSON_PROPERTY_VIA, - OrderSummary.JSON_PROPERTY_SIDE, - OrderSummary.JSON_PROPERTY_BASE_AMOUNT, - OrderSummary.JSON_PROPERTY_QUOTE_AMOUNT, - OrderSummary.JSON_PROPERTY_BASE_ASSET_ID, - OrderSummary.JSON_PROPERTY_QUOTE_ASSET_ID, - OrderSummary.JSON_PROPERTY_STATUS, - OrderSummary.JSON_PROPERTY_DESTINATION, - OrderSummary.JSON_PROPERTY_SOURCE, - OrderSummary.JSON_PROPERTY_CREATED_AT -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class OrderSummary { - public static final String JSON_PROPERTY_ID = "id"; - @jakarta.annotation.Nonnull private String id; - - public static final String JSON_PROPERTY_VIA = "via"; - @jakarta.annotation.Nonnull private AccessType via; - - /** Side of the order */ - public enum SideEnum { - BUY(String.valueOf("BUY")), - - SELL(String.valueOf("SELL")); - - private String value; - - SideEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static SideEnum fromValue(String value) { - for (SideEnum b : SideEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_SIDE = "side"; - @jakarta.annotation.Nonnull private SideEnum side; - - public static final String JSON_PROPERTY_BASE_AMOUNT = "baseAmount"; - @jakarta.annotation.Nonnull private String baseAmount; - - public static final String JSON_PROPERTY_QUOTE_AMOUNT = "quoteAmount"; - @jakarta.annotation.Nullable private String quoteAmount; - - public static final String JSON_PROPERTY_BASE_ASSET_ID = "baseAssetId"; - @jakarta.annotation.Nonnull private String baseAssetId; - - public static final String JSON_PROPERTY_QUOTE_ASSET_ID = "quoteAssetId"; - @jakarta.annotation.Nonnull private String quoteAssetId; - - public static final String JSON_PROPERTY_STATUS = "status"; - @jakarta.annotation.Nonnull private OrderStatus status; - - public static final String JSON_PROPERTY_DESTINATION = "destination"; - @jakarta.annotation.Nonnull private AccountReference destination; - - public static final String JSON_PROPERTY_SOURCE = "source"; - @jakarta.annotation.Nullable private SettlementSourceAccount source; - - public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; - @jakarta.annotation.Nonnull private OffsetDateTime createdAt; - - public OrderSummary() {} - - @JsonCreator - public OrderSummary( - @JsonProperty(value = JSON_PROPERTY_ID, required = true) String id, - @JsonProperty(value = JSON_PROPERTY_VIA, required = true) AccessType via, - @JsonProperty(value = JSON_PROPERTY_SIDE, required = true) SideEnum side, - @JsonProperty(value = JSON_PROPERTY_BASE_AMOUNT, required = true) String baseAmount, - @JsonProperty(value = JSON_PROPERTY_BASE_ASSET_ID, required = true) String baseAssetId, - @JsonProperty(value = JSON_PROPERTY_QUOTE_ASSET_ID, required = true) - String quoteAssetId, - @JsonProperty(value = JSON_PROPERTY_STATUS, required = true) OrderStatus status, - @JsonProperty(value = JSON_PROPERTY_DESTINATION, required = true) - AccountReference destination, - @JsonProperty(value = JSON_PROPERTY_CREATED_AT, required = true) - OffsetDateTime createdAt) { - this.id = id; - this.via = via; - this.side = side; - this.baseAmount = baseAmount; - this.baseAssetId = baseAssetId; - this.quoteAssetId = quoteAssetId; - this.status = status; - this.destination = destination; - this.createdAt = createdAt; - } - - public OrderSummary id(@jakarta.annotation.Nonnull String id) { - this.id = id; - return this; - } - - /** - * Get id - * - * @return id - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getId() { - return id; - } - - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(@jakarta.annotation.Nonnull String id) { - this.id = id; - } - - public OrderSummary via(@jakarta.annotation.Nonnull AccessType via) { - this.via = via; - return this; - } - - /** - * Get via - * - * @return via - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_VIA) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccessType getVia() { - return via; - } - - @JsonProperty(JSON_PROPERTY_VIA) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setVia(@jakarta.annotation.Nonnull AccessType via) { - this.via = via; - } - - public OrderSummary side(@jakarta.annotation.Nonnull SideEnum side) { - this.side = side; - return this; - } - - /** - * Side of the order - * - * @return side - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SIDE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public SideEnum getSide() { - return side; - } - - @JsonProperty(JSON_PROPERTY_SIDE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSide(@jakarta.annotation.Nonnull SideEnum side) { - this.side = side; - } - - public OrderSummary baseAmount(@jakarta.annotation.Nonnull String baseAmount) { - this.baseAmount = baseAmount; - return this; - } - - /** - * Get baseAmount - * - * @return baseAmount - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BASE_AMOUNT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getBaseAmount() { - return baseAmount; - } - - @JsonProperty(JSON_PROPERTY_BASE_AMOUNT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBaseAmount(@jakarta.annotation.Nonnull String baseAmount) { - this.baseAmount = baseAmount; - } - - public OrderSummary quoteAmount(@jakarta.annotation.Nullable String quoteAmount) { - this.quoteAmount = quoteAmount; - return this; - } - - /** - * Get quoteAmount - * - * @return quoteAmount - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_QUOTE_AMOUNT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getQuoteAmount() { - return quoteAmount; - } - - @JsonProperty(JSON_PROPERTY_QUOTE_AMOUNT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setQuoteAmount(@jakarta.annotation.Nullable String quoteAmount) { - this.quoteAmount = quoteAmount; - } - - public OrderSummary baseAssetId(@jakarta.annotation.Nonnull String baseAssetId) { - this.baseAssetId = baseAssetId; - return this; - } - - /** - * Get baseAssetId - * - * @return baseAssetId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BASE_ASSET_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getBaseAssetId() { - return baseAssetId; - } - - @JsonProperty(JSON_PROPERTY_BASE_ASSET_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBaseAssetId(@jakarta.annotation.Nonnull String baseAssetId) { - this.baseAssetId = baseAssetId; - } - - public OrderSummary quoteAssetId(@jakarta.annotation.Nonnull String quoteAssetId) { - this.quoteAssetId = quoteAssetId; - return this; - } - - /** - * Get quoteAssetId - * - * @return quoteAssetId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_QUOTE_ASSET_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getQuoteAssetId() { - return quoteAssetId; - } - - @JsonProperty(JSON_PROPERTY_QUOTE_ASSET_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setQuoteAssetId(@jakarta.annotation.Nonnull String quoteAssetId) { - this.quoteAssetId = quoteAssetId; - } - - public OrderSummary status(@jakarta.annotation.Nonnull OrderStatus status) { - this.status = status; - return this; - } - - /** - * Get status - * - * @return status - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_STATUS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public OrderStatus getStatus() { - return status; - } - - @JsonProperty(JSON_PROPERTY_STATUS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStatus(@jakarta.annotation.Nonnull OrderStatus status) { - this.status = status; - } - - public OrderSummary destination(@jakarta.annotation.Nonnull AccountReference destination) { - this.destination = destination; - return this; - } - - /** - * Get destination - * - * @return destination - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DESTINATION) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccountReference getDestination() { - return destination; - } - - @JsonProperty(JSON_PROPERTY_DESTINATION) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDestination(@jakarta.annotation.Nonnull AccountReference destination) { - this.destination = destination; - } - - public OrderSummary source(@jakarta.annotation.Nullable SettlementSourceAccount source) { - this.source = source; - return this; - } - - /** - * Get source - * - * @return source - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOURCE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SettlementSourceAccount getSource() { - return source; - } - - @JsonProperty(JSON_PROPERTY_SOURCE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSource(@jakarta.annotation.Nullable SettlementSourceAccount source) { - this.source = source; - } - - public OrderSummary createdAt(@jakarta.annotation.Nonnull OffsetDateTime createdAt) { - this.createdAt = createdAt; - return this; - } - - /** - * Get createdAt - * - * @return createdAt - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CREATED_AT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public OffsetDateTime getCreatedAt() { - return createdAt; - } - - @JsonProperty(JSON_PROPERTY_CREATED_AT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCreatedAt(@jakarta.annotation.Nonnull OffsetDateTime createdAt) { - this.createdAt = createdAt; - } - - /** Return true if this OrderSummary object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - OrderSummary orderSummary = (OrderSummary) o; - return Objects.equals(this.id, orderSummary.id) - && Objects.equals(this.via, orderSummary.via) - && Objects.equals(this.side, orderSummary.side) - && Objects.equals(this.baseAmount, orderSummary.baseAmount) - && Objects.equals(this.quoteAmount, orderSummary.quoteAmount) - && Objects.equals(this.baseAssetId, orderSummary.baseAssetId) - && Objects.equals(this.quoteAssetId, orderSummary.quoteAssetId) - && Objects.equals(this.status, orderSummary.status) - && Objects.equals(this.destination, orderSummary.destination) - && Objects.equals(this.source, orderSummary.source) - && Objects.equals(this.createdAt, orderSummary.createdAt); - } - - @Override - public int hashCode() { - return Objects.hash( - id, - via, - side, - baseAmount, - quoteAmount, - baseAssetId, - quoteAssetId, - status, - destination, - source, - createdAt); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class OrderSummary {\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" via: ").append(toIndentedString(via)).append("\n"); - sb.append(" side: ").append(toIndentedString(side)).append("\n"); - sb.append(" baseAmount: ").append(toIndentedString(baseAmount)).append("\n"); - sb.append(" quoteAmount: ").append(toIndentedString(quoteAmount)).append("\n"); - sb.append(" baseAssetId: ").append(toIndentedString(baseAssetId)).append("\n"); - sb.append(" quoteAssetId: ").append(toIndentedString(quoteAssetId)).append("\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append(" destination: ").append(toIndentedString(destination)).append("\n"); - sb.append(" source: ").append(toIndentedString(source)).append("\n"); - sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `id` to the URL query string - if (getId() != null) { - joiner.add( - String.format( - "%sid%s=%s", - prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); - } - - // add `via` to the URL query string - if (getVia() != null) { - joiner.add(getVia().toUrlQueryString(prefix + "via" + suffix)); - } - - // add `side` to the URL query string - if (getSide() != null) { - joiner.add( - String.format( - "%sside%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getSide())))); - } - - // add `baseAmount` to the URL query string - if (getBaseAmount() != null) { - joiner.add( - String.format( - "%sbaseAmount%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBaseAmount())))); - } - - // add `quoteAmount` to the URL query string - if (getQuoteAmount() != null) { - joiner.add( - String.format( - "%squoteAmount%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getQuoteAmount())))); - } - - // add `baseAssetId` to the URL query string - if (getBaseAssetId() != null) { - joiner.add( - String.format( - "%sbaseAssetId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBaseAssetId())))); - } - - // add `quoteAssetId` to the URL query string - if (getQuoteAssetId() != null) { - joiner.add( - String.format( - "%squoteAssetId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getQuoteAssetId())))); - } - - // add `status` to the URL query string - if (getStatus() != null) { - joiner.add( - String.format( - "%sstatus%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getStatus())))); - } - - // add `destination` to the URL query string - if (getDestination() != null) { - joiner.add(getDestination().toUrlQueryString(prefix + "destination" + suffix)); - } - - // add `source` to the URL query string - if (getSource() != null) { - joiner.add(getSource().toUrlQueryString(prefix + "source" + suffix)); - } - - // add `createdAt` to the URL query string - if (getCreatedAt() != null) { - joiner.add( - String.format( - "%screatedAt%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getCreatedAt())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/PaginatedAddressResponse.java b/src/main/java/com/fireblocks/sdk/model/PaginatedAddressResponse.java index f0b92443..0970a206 100644 --- a/src/main/java/com/fireblocks/sdk/model/PaginatedAddressResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/PaginatedAddressResponse.java @@ -31,7 +31,7 @@ comments = "Generator version: 7.14.0") public class PaginatedAddressResponse { public static final String JSON_PROPERTY_ADDRESSES = "addresses"; - @jakarta.annotation.Nullable private List addresses = new ArrayList<>(); + @jakarta.annotation.Nullable private List addresses; public static final String JSON_PROPERTY_PAGING = "paging"; @jakarta.annotation.Nullable private PaginatedAddressResponsePaging paging; diff --git a/src/main/java/com/fireblocks/sdk/model/PaginatedAssetWalletResponse.java b/src/main/java/com/fireblocks/sdk/model/PaginatedAssetWalletResponse.java index b265c68e..baa6a9e7 100644 --- a/src/main/java/com/fireblocks/sdk/model/PaginatedAssetWalletResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/PaginatedAssetWalletResponse.java @@ -31,7 +31,7 @@ comments = "Generator version: 7.14.0") public class PaginatedAssetWalletResponse { public static final String JSON_PROPERTY_ASSET_WALLETS = "assetWallets"; - @jakarta.annotation.Nullable private List assetWallets = new ArrayList<>(); + @jakarta.annotation.Nullable private List assetWallets; public static final String JSON_PROPERTY_PAGING = "paging"; @jakarta.annotation.Nullable private PaginatedAssetWalletResponsePaging paging; diff --git a/src/main/java/com/fireblocks/sdk/model/PairApiKeyRequest.java b/src/main/java/com/fireblocks/sdk/model/PairApiKeyRequest.java deleted file mode 100644 index 425f36a0..00000000 --- a/src/main/java/com/fireblocks/sdk/model/PairApiKeyRequest.java +++ /dev/null @@ -1,135 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.Objects; -import java.util.StringJoiner; - -/** PairApiKeyRequest */ -@JsonPropertyOrder({PairApiKeyRequest.JSON_PROPERTY_CALLBACK_HANDLER}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class PairApiKeyRequest { - public static final String JSON_PROPERTY_CALLBACK_HANDLER = "callbackHandler"; - @jakarta.annotation.Nullable private CallbackHandlerRequest callbackHandler; - - public PairApiKeyRequest() {} - - public PairApiKeyRequest callbackHandler( - @jakarta.annotation.Nullable CallbackHandlerRequest callbackHandler) { - this.callbackHandler = callbackHandler; - return this; - } - - /** - * Get callbackHandler - * - * @return callbackHandler - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CALLBACK_HANDLER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CallbackHandlerRequest getCallbackHandler() { - return callbackHandler; - } - - @JsonProperty(JSON_PROPERTY_CALLBACK_HANDLER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCallbackHandler( - @jakarta.annotation.Nullable CallbackHandlerRequest callbackHandler) { - this.callbackHandler = callbackHandler; - } - - /** Return true if this PairApiKeyRequest object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PairApiKeyRequest pairApiKeyRequest = (PairApiKeyRequest) o; - return Objects.equals(this.callbackHandler, pairApiKeyRequest.callbackHandler); - } - - @Override - public int hashCode() { - return Objects.hash(callbackHandler); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class PairApiKeyRequest {\n"); - sb.append(" callbackHandler: ").append(toIndentedString(callbackHandler)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `callbackHandler` to the URL query string - if (getCallbackHandler() != null) { - joiner.add(getCallbackHandler().toUrlQueryString(prefix + "callbackHandler" + suffix)); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/PairApiKeyResponse.java b/src/main/java/com/fireblocks/sdk/model/PairApiKeyResponse.java deleted file mode 100644 index 5f3837d5..00000000 --- a/src/main/java/com/fireblocks/sdk/model/PairApiKeyResponse.java +++ /dev/null @@ -1,182 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; -import java.util.UUID; - -/** PairApiKeyResponse */ -@JsonPropertyOrder({ - PairApiKeyResponse.JSON_PROPERTY_ID, - PairApiKeyResponse.JSON_PROPERTY_CALLBACK_HANDLER -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class PairApiKeyResponse { - public static final String JSON_PROPERTY_ID = "id"; - @jakarta.annotation.Nonnull private UUID id; - - public static final String JSON_PROPERTY_CALLBACK_HANDLER = "callbackHandler"; - @jakarta.annotation.Nullable private CallbackHandlerRequest callbackHandler; - - public PairApiKeyResponse() {} - - @JsonCreator - public PairApiKeyResponse(@JsonProperty(value = JSON_PROPERTY_ID, required = true) UUID id) { - this.id = id; - } - - public PairApiKeyResponse id(@jakarta.annotation.Nonnull UUID id) { - this.id = id; - return this; - } - - /** - * The unique identifier of the API key - * - * @return id - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public UUID getId() { - return id; - } - - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(@jakarta.annotation.Nonnull UUID id) { - this.id = id; - } - - public PairApiKeyResponse callbackHandler( - @jakarta.annotation.Nullable CallbackHandlerRequest callbackHandler) { - this.callbackHandler = callbackHandler; - return this; - } - - /** - * Get callbackHandler - * - * @return callbackHandler - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CALLBACK_HANDLER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CallbackHandlerRequest getCallbackHandler() { - return callbackHandler; - } - - @JsonProperty(JSON_PROPERTY_CALLBACK_HANDLER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCallbackHandler( - @jakarta.annotation.Nullable CallbackHandlerRequest callbackHandler) { - this.callbackHandler = callbackHandler; - } - - /** Return true if this PairApiKeyResponse object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PairApiKeyResponse pairApiKeyResponse = (PairApiKeyResponse) o; - return Objects.equals(this.id, pairApiKeyResponse.id) - && Objects.equals(this.callbackHandler, pairApiKeyResponse.callbackHandler); - } - - @Override - public int hashCode() { - return Objects.hash(id, callbackHandler); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class PairApiKeyResponse {\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" callbackHandler: ").append(toIndentedString(callbackHandler)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `id` to the URL query string - if (getId() != null) { - joiner.add( - String.format( - "%sid%s=%s", - prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); - } - - // add `callbackHandler` to the URL query string - if (getCallbackHandler() != null) { - joiner.add(getCallbackHandler().toUrlQueryString(prefix + "callbackHandler" + suffix)); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/Parameter.java b/src/main/java/com/fireblocks/sdk/model/Parameter.java index 07c42807..58e95966 100644 --- a/src/main/java/com/fireblocks/sdk/model/Parameter.java +++ b/src/main/java/com/fireblocks/sdk/model/Parameter.java @@ -48,7 +48,7 @@ public class Parameter { @jakarta.annotation.Nonnull private String type; public static final String JSON_PROPERTY_COMPONENTS = "components"; - @jakarta.annotation.Nullable private List components = new ArrayList<>(); + @jakarta.annotation.Nullable private List components; public Parameter() {} diff --git a/src/main/java/com/fireblocks/sdk/model/ParameterWithValue.java b/src/main/java/com/fireblocks/sdk/model/ParameterWithValue.java index 0c6341c0..8bbad4c9 100644 --- a/src/main/java/com/fireblocks/sdk/model/ParameterWithValue.java +++ b/src/main/java/com/fireblocks/sdk/model/ParameterWithValue.java @@ -50,7 +50,7 @@ public class ParameterWithValue { @jakarta.annotation.Nonnull private String type; public static final String JSON_PROPERTY_COMPONENTS = "components"; - @jakarta.annotation.Nullable private List components = new ArrayList<>(); + @jakarta.annotation.Nullable private List components; public static final String JSON_PROPERTY_VALUE = "value"; @jakarta.annotation.Nullable private String value; diff --git a/src/main/java/com/fireblocks/sdk/model/ParticipantRelationshipType.java b/src/main/java/com/fireblocks/sdk/model/ParticipantRelationshipType.java deleted file mode 100644 index 7ab88864..00000000 --- a/src/main/java/com/fireblocks/sdk/model/ParticipantRelationshipType.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - -/** Gets or Sets ParticipantRelationshipType */ -public enum ParticipantRelationshipType { - FIRST_PARTY("FirstParty"), - - SECOND_PARTY("SecondParty"), - - THIRD_PARTY("ThirdParty"); - - private String value; - - ParticipantRelationshipType(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static ParticipantRelationshipType fromValue(String value) { - for (ParticipantRelationshipType b : ParticipantRelationshipType.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - if (prefix == null) { - prefix = ""; - } - - return String.format("%s=%s", prefix, this.toString()); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/ParticipantsIdentification.java b/src/main/java/com/fireblocks/sdk/model/ParticipantsIdentification.java deleted file mode 100644 index 4eb32cf6..00000000 --- a/src/main/java/com/fireblocks/sdk/model/ParticipantsIdentification.java +++ /dev/null @@ -1,171 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.Objects; -import java.util.StringJoiner; - -/** KYC/AML participant identification */ -@JsonPropertyOrder({ - ParticipantsIdentification.JSON_PROPERTY_ORIGINATOR, - ParticipantsIdentification.JSON_PROPERTY_BENEFICIARY -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class ParticipantsIdentification { - public static final String JSON_PROPERTY_ORIGINATOR = "originator"; - @jakarta.annotation.Nullable private Identification originator; - - public static final String JSON_PROPERTY_BENEFICIARY = "beneficiary"; - @jakarta.annotation.Nullable private Identification beneficiary; - - public ParticipantsIdentification() {} - - public ParticipantsIdentification originator( - @jakarta.annotation.Nullable Identification originator) { - this.originator = originator; - return this; - } - - /** - * Get originator - * - * @return originator - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ORIGINATOR) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Identification getOriginator() { - return originator; - } - - @JsonProperty(JSON_PROPERTY_ORIGINATOR) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOriginator(@jakarta.annotation.Nullable Identification originator) { - this.originator = originator; - } - - public ParticipantsIdentification beneficiary( - @jakarta.annotation.Nullable Identification beneficiary) { - this.beneficiary = beneficiary; - return this; - } - - /** - * Get beneficiary - * - * @return beneficiary - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BENEFICIARY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Identification getBeneficiary() { - return beneficiary; - } - - @JsonProperty(JSON_PROPERTY_BENEFICIARY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBeneficiary(@jakarta.annotation.Nullable Identification beneficiary) { - this.beneficiary = beneficiary; - } - - /** Return true if this ParticipantsIdentification object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ParticipantsIdentification participantsIdentification = (ParticipantsIdentification) o; - return Objects.equals(this.originator, participantsIdentification.originator) - && Objects.equals(this.beneficiary, participantsIdentification.beneficiary); - } - - @Override - public int hashCode() { - return Objects.hash(originator, beneficiary); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ParticipantsIdentification {\n"); - sb.append(" originator: ").append(toIndentedString(originator)).append("\n"); - sb.append(" beneficiary: ").append(toIndentedString(beneficiary)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `originator` to the URL query string - if (getOriginator() != null) { - joiner.add(getOriginator().toUrlQueryString(prefix + "originator" + suffix)); - } - - // add `beneficiary` to the URL query string - if (getBeneficiary() != null) { - joiner.add(getBeneficiary().toUrlQueryString(prefix + "beneficiary" + suffix)); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/PaymentInstructions.java b/src/main/java/com/fireblocks/sdk/model/PaymentInstructions.java deleted file mode 100644 index bd925050..00000000 --- a/src/main/java/com/fireblocks/sdk/model/PaymentInstructions.java +++ /dev/null @@ -1,274 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** PaymentInstructions */ -@JsonPropertyOrder({ - PaymentInstructions.JSON_PROPERTY_TYPE, - PaymentInstructions.JSON_PROPERTY_ADDRESS, - PaymentInstructions.JSON_PROPERTY_REFERENCE_ID -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class PaymentInstructions { - /** Gets or Sets type */ - public enum TypeEnum { - IBAN(String.valueOf("IBAN")), - - SWIFT(String.valueOf("SWIFT")), - - ACH(String.valueOf("ACH")), - - US_WIRE(String.valueOf("US_WIRE")), - - SPEI(String.valueOf("SPEI")), - - SEPA(String.valueOf("SEPA")), - - PIX(String.valueOf("PIX")), - - LOCAL_BANK_TRANSFER_AFRICA(String.valueOf("LOCAL_BANK_TRANSFER_AFRICA")), - - MOBILE_MONEY(String.valueOf("MOBILE_MONEY")); - - private String value; - - TypeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static TypeEnum fromValue(String value) { - for (TypeEnum b : TypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_TYPE = "type"; - @jakarta.annotation.Nonnull private TypeEnum type; - - public static final String JSON_PROPERTY_ADDRESS = "address"; - @jakarta.annotation.Nonnull private AccountHolderDetails address; - - public static final String JSON_PROPERTY_REFERENCE_ID = "referenceId"; - @jakarta.annotation.Nonnull private String referenceId; - - public PaymentInstructions() {} - - @JsonCreator - public PaymentInstructions( - @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) TypeEnum type, - @JsonProperty(value = JSON_PROPERTY_ADDRESS, required = true) - AccountHolderDetails address, - @JsonProperty(value = JSON_PROPERTY_REFERENCE_ID, required = true) String referenceId) { - this.type = type; - this.address = address; - this.referenceId = referenceId; - } - - public PaymentInstructions type(@jakarta.annotation.Nonnull TypeEnum type) { - this.type = type; - return this; - } - - /** - * Get type - * - * @return type - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { - return type; - } - - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(@jakarta.annotation.Nonnull TypeEnum type) { - this.type = type; - } - - public PaymentInstructions address(@jakarta.annotation.Nonnull AccountHolderDetails address) { - this.address = address; - return this; - } - - /** - * Get address - * - * @return address - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ADDRESS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccountHolderDetails getAddress() { - return address; - } - - @JsonProperty(JSON_PROPERTY_ADDRESS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAddress(@jakarta.annotation.Nonnull AccountHolderDetails address) { - this.address = address; - } - - public PaymentInstructions referenceId(@jakarta.annotation.Nonnull String referenceId) { - this.referenceId = referenceId; - return this; - } - - /** - * Get referenceId - * - * @return referenceId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_REFERENCE_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getReferenceId() { - return referenceId; - } - - @JsonProperty(JSON_PROPERTY_REFERENCE_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setReferenceId(@jakarta.annotation.Nonnull String referenceId) { - this.referenceId = referenceId; - } - - /** Return true if this PaymentInstructions object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PaymentInstructions paymentInstructions = (PaymentInstructions) o; - return Objects.equals(this.type, paymentInstructions.type) - && Objects.equals(this.address, paymentInstructions.address) - && Objects.equals(this.referenceId, paymentInstructions.referenceId); - } - - @Override - public int hashCode() { - return Objects.hash(type, address, referenceId); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class PaymentInstructions {\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" address: ").append(toIndentedString(address)).append("\n"); - sb.append(" referenceId: ").append(toIndentedString(referenceId)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `type` to the URL query string - if (getType() != null) { - joiner.add( - String.format( - "%stype%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getType())))); - } - - // add `address` to the URL query string - if (getAddress() != null) { - joiner.add(getAddress().toUrlQueryString(prefix + "address" + suffix)); - } - - // add `referenceId` to the URL query string - if (getReferenceId() != null) { - joiner.add( - String.format( - "%sreferenceId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getReferenceId())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/PayoutInstructionResponse.java b/src/main/java/com/fireblocks/sdk/model/PayoutInstructionResponse.java index fd84f14e..3dbb90b1 100644 --- a/src/main/java/com/fireblocks/sdk/model/PayoutInstructionResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/PayoutInstructionResponse.java @@ -48,7 +48,7 @@ public class PayoutInstructionResponse { @jakarta.annotation.Nonnull private PayoutInstructionState state; public static final String JSON_PROPERTY_TRANSACTIONS = "transactions"; - @jakarta.annotation.Nonnull private List transactions = new ArrayList<>(); + @jakarta.annotation.Nonnull private List transactions; public PayoutInstructionResponse() {} diff --git a/src/main/java/com/fireblocks/sdk/model/PayoutResponse.java b/src/main/java/com/fireblocks/sdk/model/PayoutResponse.java index 0bd67ed4..0f652b2f 100644 --- a/src/main/java/com/fireblocks/sdk/model/PayoutResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/PayoutResponse.java @@ -62,9 +62,7 @@ public class PayoutResponse { @jakarta.annotation.Nullable private PayoutInitMethod initMethod; public static final String JSON_PROPERTY_INSTRUCTION_SET = "instructionSet"; - - @jakarta.annotation.Nonnull - private List instructionSet = new ArrayList<>(); + @jakarta.annotation.Nonnull private List instructionSet; public static final String JSON_PROPERTY_REPORT_URL = "reportUrl"; @jakarta.annotation.Nullable private String reportUrl; diff --git a/src/main/java/com/fireblocks/sdk/model/PeerAdapterInfo.java b/src/main/java/com/fireblocks/sdk/model/PeerAdapterInfo.java deleted file mode 100644 index 6005fe8f..00000000 --- a/src/main/java/com/fireblocks/sdk/model/PeerAdapterInfo.java +++ /dev/null @@ -1,236 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; -import java.util.UUID; - -/** PeerAdapterInfo */ -@JsonPropertyOrder({ - PeerAdapterInfo.JSON_PROPERTY_ADAPTER_TOKEN_LINK_ID, - PeerAdapterInfo.JSON_PROPERTY_ADAPTER_ADDRESS, - PeerAdapterInfo.JSON_PROPERTY_BASE_ASSET_ID -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class PeerAdapterInfo { - public static final String JSON_PROPERTY_ADAPTER_TOKEN_LINK_ID = "adapterTokenLinkId"; - @jakarta.annotation.Nonnull private UUID adapterTokenLinkId; - - public static final String JSON_PROPERTY_ADAPTER_ADDRESS = "adapterAddress"; - @jakarta.annotation.Nonnull private String adapterAddress; - - public static final String JSON_PROPERTY_BASE_ASSET_ID = "baseAssetId"; - @jakarta.annotation.Nonnull private String baseAssetId; - - public PeerAdapterInfo() {} - - @JsonCreator - public PeerAdapterInfo( - @JsonProperty(value = JSON_PROPERTY_ADAPTER_TOKEN_LINK_ID, required = true) - UUID adapterTokenLinkId, - @JsonProperty(value = JSON_PROPERTY_ADAPTER_ADDRESS, required = true) - String adapterAddress, - @JsonProperty(value = JSON_PROPERTY_BASE_ASSET_ID, required = true) - String baseAssetId) { - this.adapterTokenLinkId = adapterTokenLinkId; - this.adapterAddress = adapterAddress; - this.baseAssetId = baseAssetId; - } - - public PeerAdapterInfo adapterTokenLinkId(@jakarta.annotation.Nonnull UUID adapterTokenLinkId) { - this.adapterTokenLinkId = adapterTokenLinkId; - return this; - } - - /** - * The token link id of the adapter - * - * @return adapterTokenLinkId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ADAPTER_TOKEN_LINK_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public UUID getAdapterTokenLinkId() { - return adapterTokenLinkId; - } - - @JsonProperty(JSON_PROPERTY_ADAPTER_TOKEN_LINK_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAdapterTokenLinkId(@jakarta.annotation.Nonnull UUID adapterTokenLinkId) { - this.adapterTokenLinkId = adapterTokenLinkId; - } - - public PeerAdapterInfo adapterAddress(@jakarta.annotation.Nonnull String adapterAddress) { - this.adapterAddress = adapterAddress; - return this; - } - - /** - * The adapter address - * - * @return adapterAddress - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ADAPTER_ADDRESS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getAdapterAddress() { - return adapterAddress; - } - - @JsonProperty(JSON_PROPERTY_ADAPTER_ADDRESS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAdapterAddress(@jakarta.annotation.Nonnull String adapterAddress) { - this.adapterAddress = adapterAddress; - } - - public PeerAdapterInfo baseAssetId(@jakarta.annotation.Nonnull String baseAssetId) { - this.baseAssetId = baseAssetId; - return this; - } - - /** - * The base asset id for the base asset that the adapter is deployed on - * - * @return baseAssetId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BASE_ASSET_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getBaseAssetId() { - return baseAssetId; - } - - @JsonProperty(JSON_PROPERTY_BASE_ASSET_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBaseAssetId(@jakarta.annotation.Nonnull String baseAssetId) { - this.baseAssetId = baseAssetId; - } - - /** Return true if this PeerAdapterInfo object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PeerAdapterInfo peerAdapterInfo = (PeerAdapterInfo) o; - return Objects.equals(this.adapterTokenLinkId, peerAdapterInfo.adapterTokenLinkId) - && Objects.equals(this.adapterAddress, peerAdapterInfo.adapterAddress) - && Objects.equals(this.baseAssetId, peerAdapterInfo.baseAssetId); - } - - @Override - public int hashCode() { - return Objects.hash(adapterTokenLinkId, adapterAddress, baseAssetId); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class PeerAdapterInfo {\n"); - sb.append(" adapterTokenLinkId: ") - .append(toIndentedString(adapterTokenLinkId)) - .append("\n"); - sb.append(" adapterAddress: ").append(toIndentedString(adapterAddress)).append("\n"); - sb.append(" baseAssetId: ").append(toIndentedString(baseAssetId)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `adapterTokenLinkId` to the URL query string - if (getAdapterTokenLinkId() != null) { - joiner.add( - String.format( - "%sadapterTokenLinkId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAdapterTokenLinkId())))); - } - - // add `adapterAddress` to the URL query string - if (getAdapterAddress() != null) { - joiner.add( - String.format( - "%sadapterAddress%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAdapterAddress())))); - } - - // add `baseAssetId` to the URL query string - if (getBaseAssetId() != null) { - joiner.add( - String.format( - "%sbaseAssetId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBaseAssetId())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/PeerType.java b/src/main/java/com/fireblocks/sdk/model/PeerType.java deleted file mode 100644 index fab2b05b..00000000 --- a/src/main/java/com/fireblocks/sdk/model/PeerType.java +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - -/** Gets or Sets PeerType */ -public enum PeerType { - VAULT_ACCOUNT("VAULT_ACCOUNT"), - - EXCHANGE_ACCOUNT("EXCHANGE_ACCOUNT"), - - INTERNAL_WALLET("INTERNAL_WALLET"), - - EXTERNAL_WALLET("EXTERNAL_WALLET"), - - FIAT_ACCOUNT("FIAT_ACCOUNT"); - - private String value; - - PeerType(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static PeerType fromValue(String value) { - for (PeerType b : PeerType.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - if (prefix == null) { - prefix = ""; - } - - return String.format("%s=%s", prefix, this.toString()); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/PersonalIdentification.java b/src/main/java/com/fireblocks/sdk/model/PersonalIdentification.java deleted file mode 100644 index 4dea1851..00000000 --- a/src/main/java/com/fireblocks/sdk/model/PersonalIdentification.java +++ /dev/null @@ -1,403 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fireblocks.sdk.ApiClient; -import java.time.LocalDate; -import java.util.Objects; -import java.util.StringJoiner; - -/** PersonalIdentification */ -@JsonPropertyOrder({ - PersonalIdentification.JSON_PROPERTY_EXTERNAL_REFERENCE_ID, - PersonalIdentification.JSON_PROPERTY_ENTITY_TYPE, - PersonalIdentification.JSON_PROPERTY_PARTICIPANT_RELATIONSHIP_TYPE, - PersonalIdentification.JSON_PROPERTY_FULL_NAME, - PersonalIdentification.JSON_PROPERTY_DATE_OF_BIRTH, - PersonalIdentification.JSON_PROPERTY_POSTAL_ADDRESS -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class PersonalIdentification { - public static final String JSON_PROPERTY_EXTERNAL_REFERENCE_ID = "externalReferenceId"; - @jakarta.annotation.Nonnull private String externalReferenceId; - - /** Gets or Sets entityType */ - public enum EntityTypeEnum { - INDIVIDUAL(String.valueOf("INDIVIDUAL")); - - private String value; - - EntityTypeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static EntityTypeEnum fromValue(String value) { - for (EntityTypeEnum b : EntityTypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_ENTITY_TYPE = "entityType"; - @jakarta.annotation.Nonnull private EntityTypeEnum entityType; - - public static final String JSON_PROPERTY_PARTICIPANT_RELATIONSHIP_TYPE = - "participantRelationshipType"; - @jakarta.annotation.Nonnull private ParticipantRelationshipType participantRelationshipType; - - public static final String JSON_PROPERTY_FULL_NAME = "fullName"; - @jakarta.annotation.Nonnull private PersonalIdentificationFullName fullName; - - public static final String JSON_PROPERTY_DATE_OF_BIRTH = "dateOfBirth"; - @jakarta.annotation.Nonnull private LocalDate dateOfBirth; - - public static final String JSON_PROPERTY_POSTAL_ADDRESS = "postalAddress"; - @jakarta.annotation.Nonnull private PostalAddress postalAddress; - - public PersonalIdentification() {} - - @JsonCreator - public PersonalIdentification( - @JsonProperty(value = JSON_PROPERTY_EXTERNAL_REFERENCE_ID, required = true) - String externalReferenceId, - @JsonProperty(value = JSON_PROPERTY_ENTITY_TYPE, required = true) - EntityTypeEnum entityType, - @JsonProperty(value = JSON_PROPERTY_PARTICIPANT_RELATIONSHIP_TYPE, required = true) - ParticipantRelationshipType participantRelationshipType, - @JsonProperty(value = JSON_PROPERTY_FULL_NAME, required = true) - PersonalIdentificationFullName fullName, - @JsonProperty(value = JSON_PROPERTY_DATE_OF_BIRTH, required = true) - LocalDate dateOfBirth, - @JsonProperty(value = JSON_PROPERTY_POSTAL_ADDRESS, required = true) - PostalAddress postalAddress) { - this.externalReferenceId = externalReferenceId; - this.entityType = entityType; - this.participantRelationshipType = participantRelationshipType; - this.fullName = fullName; - this.dateOfBirth = dateOfBirth; - this.postalAddress = postalAddress; - } - - public PersonalIdentification externalReferenceId( - @jakarta.annotation.Nonnull String externalReferenceId) { - this.externalReferenceId = externalReferenceId; - return this; - } - - /** - * Get externalReferenceId - * - * @return externalReferenceId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_EXTERNAL_REFERENCE_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getExternalReferenceId() { - return externalReferenceId; - } - - @JsonProperty(JSON_PROPERTY_EXTERNAL_REFERENCE_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setExternalReferenceId(@jakarta.annotation.Nonnull String externalReferenceId) { - this.externalReferenceId = externalReferenceId; - } - - public PersonalIdentification entityType( - @jakarta.annotation.Nonnull EntityTypeEnum entityType) { - this.entityType = entityType; - return this; - } - - /** - * Get entityType - * - * @return entityType - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ENTITY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public EntityTypeEnum getEntityType() { - return entityType; - } - - @JsonProperty(JSON_PROPERTY_ENTITY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setEntityType(@jakarta.annotation.Nonnull EntityTypeEnum entityType) { - this.entityType = entityType; - } - - public PersonalIdentification participantRelationshipType( - @jakarta.annotation.Nonnull ParticipantRelationshipType participantRelationshipType) { - this.participantRelationshipType = participantRelationshipType; - return this; - } - - /** - * Get participantRelationshipType - * - * @return participantRelationshipType - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PARTICIPANT_RELATIONSHIP_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public ParticipantRelationshipType getParticipantRelationshipType() { - return participantRelationshipType; - } - - @JsonProperty(JSON_PROPERTY_PARTICIPANT_RELATIONSHIP_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setParticipantRelationshipType( - @jakarta.annotation.Nonnull ParticipantRelationshipType participantRelationshipType) { - this.participantRelationshipType = participantRelationshipType; - } - - public PersonalIdentification fullName( - @jakarta.annotation.Nonnull PersonalIdentificationFullName fullName) { - this.fullName = fullName; - return this; - } - - /** - * Get fullName - * - * @return fullName - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_FULL_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public PersonalIdentificationFullName getFullName() { - return fullName; - } - - @JsonProperty(JSON_PROPERTY_FULL_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setFullName(@jakarta.annotation.Nonnull PersonalIdentificationFullName fullName) { - this.fullName = fullName; - } - - public PersonalIdentification dateOfBirth(@jakarta.annotation.Nonnull LocalDate dateOfBirth) { - this.dateOfBirth = dateOfBirth; - return this; - } - - /** - * Get dateOfBirth - * - * @return dateOfBirth - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public LocalDate getDateOfBirth() { - return dateOfBirth; - } - - @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDateOfBirth(@jakarta.annotation.Nonnull LocalDate dateOfBirth) { - this.dateOfBirth = dateOfBirth; - } - - public PersonalIdentification postalAddress( - @jakarta.annotation.Nonnull PostalAddress postalAddress) { - this.postalAddress = postalAddress; - return this; - } - - /** - * Get postalAddress - * - * @return postalAddress - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_POSTAL_ADDRESS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public PostalAddress getPostalAddress() { - return postalAddress; - } - - @JsonProperty(JSON_PROPERTY_POSTAL_ADDRESS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPostalAddress(@jakarta.annotation.Nonnull PostalAddress postalAddress) { - this.postalAddress = postalAddress; - } - - /** Return true if this PersonalIdentification object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PersonalIdentification personalIdentification = (PersonalIdentification) o; - return Objects.equals(this.externalReferenceId, personalIdentification.externalReferenceId) - && Objects.equals(this.entityType, personalIdentification.entityType) - && Objects.equals( - this.participantRelationshipType, - personalIdentification.participantRelationshipType) - && Objects.equals(this.fullName, personalIdentification.fullName) - && Objects.equals(this.dateOfBirth, personalIdentification.dateOfBirth) - && Objects.equals(this.postalAddress, personalIdentification.postalAddress); - } - - @Override - public int hashCode() { - return Objects.hash( - externalReferenceId, - entityType, - participantRelationshipType, - fullName, - dateOfBirth, - postalAddress); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class PersonalIdentification {\n"); - sb.append(" externalReferenceId: ") - .append(toIndentedString(externalReferenceId)) - .append("\n"); - sb.append(" entityType: ").append(toIndentedString(entityType)).append("\n"); - sb.append(" participantRelationshipType: ") - .append(toIndentedString(participantRelationshipType)) - .append("\n"); - sb.append(" fullName: ").append(toIndentedString(fullName)).append("\n"); - sb.append(" dateOfBirth: ").append(toIndentedString(dateOfBirth)).append("\n"); - sb.append(" postalAddress: ").append(toIndentedString(postalAddress)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `externalReferenceId` to the URL query string - if (getExternalReferenceId() != null) { - joiner.add( - String.format( - "%sexternalReferenceId%s=%s", - prefix, - suffix, - ApiClient.urlEncode( - ApiClient.valueToString(getExternalReferenceId())))); - } - - // add `entityType` to the URL query string - if (getEntityType() != null) { - joiner.add( - String.format( - "%sentityType%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getEntityType())))); - } - - // add `participantRelationshipType` to the URL query string - if (getParticipantRelationshipType() != null) { - joiner.add( - String.format( - "%sparticipantRelationshipType%s=%s", - prefix, - suffix, - ApiClient.urlEncode( - ApiClient.valueToString(getParticipantRelationshipType())))); - } - - // add `fullName` to the URL query string - if (getFullName() != null) { - joiner.add(getFullName().toUrlQueryString(prefix + "fullName" + suffix)); - } - - // add `dateOfBirth` to the URL query string - if (getDateOfBirth() != null) { - joiner.add( - String.format( - "%sdateOfBirth%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getDateOfBirth())))); - } - - // add `postalAddress` to the URL query string - if (getPostalAddress() != null) { - joiner.add(getPostalAddress().toUrlQueryString(prefix + "postalAddress" + suffix)); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/PersonalIdentificationFullName.java b/src/main/java/com/fireblocks/sdk/model/PersonalIdentificationFullName.java deleted file mode 100644 index 1a06d8c3..00000000 --- a/src/main/java/com/fireblocks/sdk/model/PersonalIdentificationFullName.java +++ /dev/null @@ -1,190 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** PersonalIdentificationFullName */ -@JsonPropertyOrder({ - PersonalIdentificationFullName.JSON_PROPERTY_FIRST_NAME, - PersonalIdentificationFullName.JSON_PROPERTY_LAST_NAME -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class PersonalIdentificationFullName { - public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; - @jakarta.annotation.Nonnull private String firstName; - - public static final String JSON_PROPERTY_LAST_NAME = "lastName"; - @jakarta.annotation.Nonnull private String lastName; - - public PersonalIdentificationFullName() {} - - @JsonCreator - public PersonalIdentificationFullName( - @JsonProperty(value = JSON_PROPERTY_FIRST_NAME, required = true) String firstName, - @JsonProperty(value = JSON_PROPERTY_LAST_NAME, required = true) String lastName) { - this.firstName = firstName; - this.lastName = lastName; - } - - public PersonalIdentificationFullName firstName(@jakarta.annotation.Nonnull String firstName) { - this.firstName = firstName; - return this; - } - - /** - * Get firstName - * - * @return firstName - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_FIRST_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getFirstName() { - return firstName; - } - - @JsonProperty(JSON_PROPERTY_FIRST_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setFirstName(@jakarta.annotation.Nonnull String firstName) { - this.firstName = firstName; - } - - public PersonalIdentificationFullName lastName(@jakarta.annotation.Nonnull String lastName) { - this.lastName = lastName; - return this; - } - - /** - * Get lastName - * - * @return lastName - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_LAST_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getLastName() { - return lastName; - } - - @JsonProperty(JSON_PROPERTY_LAST_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setLastName(@jakarta.annotation.Nonnull String lastName) { - this.lastName = lastName; - } - - /** Return true if this PersonalIdentification_fullName object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PersonalIdentificationFullName personalIdentificationFullName = - (PersonalIdentificationFullName) o; - return Objects.equals(this.firstName, personalIdentificationFullName.firstName) - && Objects.equals(this.lastName, personalIdentificationFullName.lastName); - } - - @Override - public int hashCode() { - return Objects.hash(firstName, lastName); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class PersonalIdentificationFullName {\n"); - sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n"); - sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `firstName` to the URL query string - if (getFirstName() != null) { - joiner.add( - String.format( - "%sfirstName%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getFirstName())))); - } - - // add `lastName` to the URL query string - if (getLastName() != null) { - joiner.add( - String.format( - "%slastName%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getLastName())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/PixPaymentInfo.java b/src/main/java/com/fireblocks/sdk/model/PixPaymentInfo.java deleted file mode 100644 index a6e0c3e4..00000000 --- a/src/main/java/com/fireblocks/sdk/model/PixPaymentInfo.java +++ /dev/null @@ -1,598 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** PIX payment information for Brazilian instant payments */ -@JsonPropertyOrder({ - PixPaymentInfo.JSON_PROPERTY_RAIL, - PixPaymentInfo.JSON_PROPERTY_ADDRESSING_SYSTEM, - PixPaymentInfo.JSON_PROPERTY_ACCOUNT_HOLDER_GIVEN_NAME, - PixPaymentInfo.JSON_PROPERTY_ACCOUNT_HOLDER_SURNAME, - PixPaymentInfo.JSON_PROPERTY_COUNTRY, - PixPaymentInfo.JSON_PROPERTY_PIX_KEY, - PixPaymentInfo.JSON_PROPERTY_BANK_NAME, - PixPaymentInfo.JSON_PROPERTY_BANK_CODE, - PixPaymentInfo.JSON_PROPERTY_KEY_TYPE -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class PixPaymentInfo { - /** The payment rail type for PIX transfers */ - public enum RailEnum { - PIX(String.valueOf("PIX")); - - private String value; - - RailEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static RailEnum fromValue(String value) { - for (RailEnum b : RailEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_RAIL = "rail"; - @jakarta.annotation.Nonnull private RailEnum rail; - - /** The addressing system used for PIX transfers */ - public enum AddressingSystemEnum { - PIX(String.valueOf("PIX")); - - private String value; - - AddressingSystemEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static AddressingSystemEnum fromValue(String value) { - for (AddressingSystemEnum b : AddressingSystemEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_ADDRESSING_SYSTEM = "addressingSystem"; - @jakarta.annotation.Nonnull private AddressingSystemEnum addressingSystem; - - public static final String JSON_PROPERTY_ACCOUNT_HOLDER_GIVEN_NAME = "accountHolderGivenName"; - @jakarta.annotation.Nonnull private String accountHolderGivenName; - - public static final String JSON_PROPERTY_ACCOUNT_HOLDER_SURNAME = "accountHolderSurname"; - @jakarta.annotation.Nonnull private String accountHolderSurname; - - public static final String JSON_PROPERTY_COUNTRY = "country"; - @jakarta.annotation.Nonnull private String country; - - public static final String JSON_PROPERTY_PIX_KEY = "pixKey"; - @jakarta.annotation.Nonnull private String pixKey; - - public static final String JSON_PROPERTY_BANK_NAME = "bankName"; - @jakarta.annotation.Nullable private String bankName; - - public static final String JSON_PROPERTY_BANK_CODE = "bankCode"; - @jakarta.annotation.Nullable private String bankCode; - - /** The type of PIX key being used */ - public enum KeyTypeEnum { - CPF(String.valueOf("CPF")), - - CNPJ(String.valueOf("CNPJ")), - - EMAIL(String.valueOf("EMAIL")), - - PHONE(String.valueOf("PHONE")), - - RANDOM(String.valueOf("RANDOM")); - - private String value; - - KeyTypeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static KeyTypeEnum fromValue(String value) { - for (KeyTypeEnum b : KeyTypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_KEY_TYPE = "keyType"; - @jakarta.annotation.Nonnull private KeyTypeEnum keyType; - - public PixPaymentInfo() {} - - @JsonCreator - public PixPaymentInfo( - @JsonProperty(value = JSON_PROPERTY_RAIL, required = true) RailEnum rail, - @JsonProperty(value = JSON_PROPERTY_ADDRESSING_SYSTEM, required = true) - AddressingSystemEnum addressingSystem, - @JsonProperty(value = JSON_PROPERTY_ACCOUNT_HOLDER_GIVEN_NAME, required = true) - String accountHolderGivenName, - @JsonProperty(value = JSON_PROPERTY_ACCOUNT_HOLDER_SURNAME, required = true) - String accountHolderSurname, - @JsonProperty(value = JSON_PROPERTY_COUNTRY, required = true) String country, - @JsonProperty(value = JSON_PROPERTY_PIX_KEY, required = true) String pixKey, - @JsonProperty(value = JSON_PROPERTY_KEY_TYPE, required = true) KeyTypeEnum keyType) { - this.rail = rail; - this.addressingSystem = addressingSystem; - this.accountHolderGivenName = accountHolderGivenName; - this.accountHolderSurname = accountHolderSurname; - this.country = country; - this.pixKey = pixKey; - this.keyType = keyType; - } - - public PixPaymentInfo rail(@jakarta.annotation.Nonnull RailEnum rail) { - this.rail = rail; - return this; - } - - /** - * The payment rail type for PIX transfers - * - * @return rail - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_RAIL) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public RailEnum getRail() { - return rail; - } - - @JsonProperty(JSON_PROPERTY_RAIL) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setRail(@jakarta.annotation.Nonnull RailEnum rail) { - this.rail = rail; - } - - public PixPaymentInfo addressingSystem( - @jakarta.annotation.Nonnull AddressingSystemEnum addressingSystem) { - this.addressingSystem = addressingSystem; - return this; - } - - /** - * The addressing system used for PIX transfers - * - * @return addressingSystem - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ADDRESSING_SYSTEM) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AddressingSystemEnum getAddressingSystem() { - return addressingSystem; - } - - @JsonProperty(JSON_PROPERTY_ADDRESSING_SYSTEM) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAddressingSystem( - @jakarta.annotation.Nonnull AddressingSystemEnum addressingSystem) { - this.addressingSystem = addressingSystem; - } - - public PixPaymentInfo accountHolderGivenName( - @jakarta.annotation.Nonnull String accountHolderGivenName) { - this.accountHolderGivenName = accountHolderGivenName; - return this; - } - - /** - * The given name (first name) of the account holder - * - * @return accountHolderGivenName - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_GIVEN_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getAccountHolderGivenName() { - return accountHolderGivenName; - } - - @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_GIVEN_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAccountHolderGivenName( - @jakarta.annotation.Nonnull String accountHolderGivenName) { - this.accountHolderGivenName = accountHolderGivenName; - } - - public PixPaymentInfo accountHolderSurname( - @jakarta.annotation.Nonnull String accountHolderSurname) { - this.accountHolderSurname = accountHolderSurname; - return this; - } - - /** - * The surname (last name) of the account holder - * - * @return accountHolderSurname - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_SURNAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getAccountHolderSurname() { - return accountHolderSurname; - } - - @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_SURNAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAccountHolderSurname(@jakarta.annotation.Nonnull String accountHolderSurname) { - this.accountHolderSurname = accountHolderSurname; - } - - public PixPaymentInfo country(@jakarta.annotation.Nonnull String country) { - this.country = country; - return this; - } - - /** - * The country for the transfer (ISO 3166-1 alpha-2 code) - * - * @return country - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_COUNTRY) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getCountry() { - return country; - } - - @JsonProperty(JSON_PROPERTY_COUNTRY) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCountry(@jakarta.annotation.Nonnull String country) { - this.country = country; - } - - public PixPaymentInfo pixKey(@jakarta.annotation.Nonnull String pixKey) { - this.pixKey = pixKey; - return this; - } - - /** - * The PIX key used for the transfer - * - * @return pixKey - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PIX_KEY) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getPixKey() { - return pixKey; - } - - @JsonProperty(JSON_PROPERTY_PIX_KEY) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPixKey(@jakarta.annotation.Nonnull String pixKey) { - this.pixKey = pixKey; - } - - public PixPaymentInfo bankName(@jakarta.annotation.Nullable String bankName) { - this.bankName = bankName; - return this; - } - - /** - * The name of the bank - * - * @return bankName - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BANK_NAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getBankName() { - return bankName; - } - - @JsonProperty(JSON_PROPERTY_BANK_NAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBankName(@jakarta.annotation.Nullable String bankName) { - this.bankName = bankName; - } - - public PixPaymentInfo bankCode(@jakarta.annotation.Nullable String bankCode) { - this.bankCode = bankCode; - return this; - } - - /** - * The bank code (ISPB - Identificador do Sistema de Pagamentos Brasileiros) - * - * @return bankCode - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BANK_CODE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getBankCode() { - return bankCode; - } - - @JsonProperty(JSON_PROPERTY_BANK_CODE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBankCode(@jakarta.annotation.Nullable String bankCode) { - this.bankCode = bankCode; - } - - public PixPaymentInfo keyType(@jakarta.annotation.Nonnull KeyTypeEnum keyType) { - this.keyType = keyType; - return this; - } - - /** - * The type of PIX key being used - * - * @return keyType - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_KEY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public KeyTypeEnum getKeyType() { - return keyType; - } - - @JsonProperty(JSON_PROPERTY_KEY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setKeyType(@jakarta.annotation.Nonnull KeyTypeEnum keyType) { - this.keyType = keyType; - } - - /** Return true if this PixPaymentInfo object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PixPaymentInfo pixPaymentInfo = (PixPaymentInfo) o; - return Objects.equals(this.rail, pixPaymentInfo.rail) - && Objects.equals(this.addressingSystem, pixPaymentInfo.addressingSystem) - && Objects.equals( - this.accountHolderGivenName, pixPaymentInfo.accountHolderGivenName) - && Objects.equals(this.accountHolderSurname, pixPaymentInfo.accountHolderSurname) - && Objects.equals(this.country, pixPaymentInfo.country) - && Objects.equals(this.pixKey, pixPaymentInfo.pixKey) - && Objects.equals(this.bankName, pixPaymentInfo.bankName) - && Objects.equals(this.bankCode, pixPaymentInfo.bankCode) - && Objects.equals(this.keyType, pixPaymentInfo.keyType); - } - - @Override - public int hashCode() { - return Objects.hash( - rail, - addressingSystem, - accountHolderGivenName, - accountHolderSurname, - country, - pixKey, - bankName, - bankCode, - keyType); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class PixPaymentInfo {\n"); - sb.append(" rail: ").append(toIndentedString(rail)).append("\n"); - sb.append(" addressingSystem: ").append(toIndentedString(addressingSystem)).append("\n"); - sb.append(" accountHolderGivenName: ") - .append(toIndentedString(accountHolderGivenName)) - .append("\n"); - sb.append(" accountHolderSurname: ") - .append(toIndentedString(accountHolderSurname)) - .append("\n"); - sb.append(" country: ").append(toIndentedString(country)).append("\n"); - sb.append(" pixKey: ").append(toIndentedString(pixKey)).append("\n"); - sb.append(" bankName: ").append(toIndentedString(bankName)).append("\n"); - sb.append(" bankCode: ").append(toIndentedString(bankCode)).append("\n"); - sb.append(" keyType: ").append(toIndentedString(keyType)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `rail` to the URL query string - if (getRail() != null) { - joiner.add( - String.format( - "%srail%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getRail())))); - } - - // add `addressingSystem` to the URL query string - if (getAddressingSystem() != null) { - joiner.add( - String.format( - "%saddressingSystem%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAddressingSystem())))); - } - - // add `accountHolderGivenName` to the URL query string - if (getAccountHolderGivenName() != null) { - joiner.add( - String.format( - "%saccountHolderGivenName%s=%s", - prefix, - suffix, - ApiClient.urlEncode( - ApiClient.valueToString(getAccountHolderGivenName())))); - } - - // add `accountHolderSurname` to the URL query string - if (getAccountHolderSurname() != null) { - joiner.add( - String.format( - "%saccountHolderSurname%s=%s", - prefix, - suffix, - ApiClient.urlEncode( - ApiClient.valueToString(getAccountHolderSurname())))); - } - - // add `country` to the URL query string - if (getCountry() != null) { - joiner.add( - String.format( - "%scountry%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getCountry())))); - } - - // add `pixKey` to the URL query string - if (getPixKey() != null) { - joiner.add( - String.format( - "%spixKey%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getPixKey())))); - } - - // add `bankName` to the URL query string - if (getBankName() != null) { - joiner.add( - String.format( - "%sbankName%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBankName())))); - } - - // add `bankCode` to the URL query string - if (getBankCode() != null) { - joiner.add( - String.format( - "%sbankCode%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBankCode())))); - } - - // add `keyType` to the URL query string - if (getKeyType() != null) { - joiner.add( - String.format( - "%skeyType%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getKeyType())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/PlatformAccount.java b/src/main/java/com/fireblocks/sdk/model/PlatformAccount.java deleted file mode 100644 index e9306b94..00000000 --- a/src/main/java/com/fireblocks/sdk/model/PlatformAccount.java +++ /dev/null @@ -1,222 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** PlatformAccount */ -@JsonPropertyOrder({PlatformAccount.JSON_PROPERTY_TYPE, PlatformAccount.JSON_PROPERTY_ACCOUNT_ID}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class PlatformAccount { - /** Gets or Sets type */ - public enum TypeEnum { - VAULT_ACCOUNT(String.valueOf("VAULT_ACCOUNT")), - - CONNECTED_ACCOUNT(String.valueOf("CONNECTED_ACCOUNT")), - - FIAT_ACCOUNT(String.valueOf("FIAT_ACCOUNT")); - - private String value; - - TypeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static TypeEnum fromValue(String value) { - for (TypeEnum b : TypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_TYPE = "type"; - @jakarta.annotation.Nonnull private TypeEnum type; - - public static final String JSON_PROPERTY_ACCOUNT_ID = "accountId"; - @jakarta.annotation.Nonnull private String accountId; - - public PlatformAccount() {} - - @JsonCreator - public PlatformAccount( - @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) TypeEnum type, - @JsonProperty(value = JSON_PROPERTY_ACCOUNT_ID, required = true) String accountId) { - this.type = type; - this.accountId = accountId; - } - - public PlatformAccount type(@jakarta.annotation.Nonnull TypeEnum type) { - this.type = type; - return this; - } - - /** - * Get type - * - * @return type - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { - return type; - } - - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(@jakarta.annotation.Nonnull TypeEnum type) { - this.type = type; - } - - public PlatformAccount accountId(@jakarta.annotation.Nonnull String accountId) { - this.accountId = accountId; - return this; - } - - /** - * Get accountId - * - * @return accountId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getAccountId() { - return accountId; - } - - @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAccountId(@jakarta.annotation.Nonnull String accountId) { - this.accountId = accountId; - } - - /** Return true if this PlatformAccount object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PlatformAccount platformAccount = (PlatformAccount) o; - return Objects.equals(this.type, platformAccount.type) - && Objects.equals(this.accountId, platformAccount.accountId); - } - - @Override - public int hashCode() { - return Objects.hash(type, accountId); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class PlatformAccount {\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `type` to the URL query string - if (getType() != null) { - joiner.add( - String.format( - "%stype%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getType())))); - } - - // add `accountId` to the URL query string - if (getAccountId() != null) { - joiner.add( - String.format( - "%saccountId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAccountId())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/Players.java b/src/main/java/com/fireblocks/sdk/model/Players.java deleted file mode 100644 index eb80d1e8..00000000 --- a/src/main/java/com/fireblocks/sdk/model/Players.java +++ /dev/null @@ -1,217 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** Players */ -@JsonPropertyOrder({Players.JSON_PROPERTY_ID, Players.JSON_PROPERTY_TYPE}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class Players { - public static final String JSON_PROPERTY_ID = "id"; - @jakarta.annotation.Nonnull private String id; - - /** Type of the player */ - public enum TypeEnum { - MOBILE(String.valueOf("MOBILE")), - - CLOUD(String.valueOf("CLOUD")); - - private String value; - - TypeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static TypeEnum fromValue(String value) { - for (TypeEnum b : TypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_TYPE = "type"; - @jakarta.annotation.Nonnull private TypeEnum type; - - public Players() {} - - @JsonCreator - public Players( - @JsonProperty(value = JSON_PROPERTY_ID, required = true) String id, - @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) TypeEnum type) { - this.id = id; - this.type = type; - } - - public Players id(@jakarta.annotation.Nonnull String id) { - this.id = id; - return this; - } - - /** - * id of the player - * - * @return id - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getId() { - return id; - } - - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(@jakarta.annotation.Nonnull String id) { - this.id = id; - } - - public Players type(@jakarta.annotation.Nonnull TypeEnum type) { - this.type = type; - return this; - } - - /** - * Type of the player - * - * @return type - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { - return type; - } - - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(@jakarta.annotation.Nonnull TypeEnum type) { - this.type = type; - } - - /** Return true if this Players object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Players players = (Players) o; - return Objects.equals(this.id, players.id) && Objects.equals(this.type, players.type); - } - - @Override - public int hashCode() { - return Objects.hash(id, type); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class Players {\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `id` to the URL query string - if (getId() != null) { - joiner.add( - String.format( - "%sid%s=%s", - prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); - } - - // add `type` to the URL query string - if (getType() != null) { - joiner.add( - String.format( - "%stype%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getType())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/PolicyCheckResult.java b/src/main/java/com/fireblocks/sdk/model/PolicyCheckResult.java index 2a174bd4..00b591bd 100644 --- a/src/main/java/com/fireblocks/sdk/model/PolicyCheckResult.java +++ b/src/main/java/com/fireblocks/sdk/model/PolicyCheckResult.java @@ -37,7 +37,7 @@ public class PolicyCheckResult { @jakarta.annotation.Nonnull private BigDecimal errors; public static final String JSON_PROPERTY_RESULTS = "results"; - @jakarta.annotation.Nonnull private List results = new ArrayList<>(); + @jakarta.annotation.Nonnull private List results; public PolicyCheckResult() {} diff --git a/src/main/java/com/fireblocks/sdk/model/PolicyMetadata.java b/src/main/java/com/fireblocks/sdk/model/PolicyMetadata.java index c37d816c..d83d3411 100644 --- a/src/main/java/com/fireblocks/sdk/model/PolicyMetadata.java +++ b/src/main/java/com/fireblocks/sdk/model/PolicyMetadata.java @@ -13,7 +13,6 @@ package com.fireblocks.sdk.model; -import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; @@ -21,13 +20,12 @@ import java.util.Objects; import java.util.StringJoiner; -/** Policy metadata */ +/** Policy related metadata */ @JsonPropertyOrder({ PolicyMetadata.JSON_PROPERTY_EDITED_BY, PolicyMetadata.JSON_PROPERTY_EDITED_AT, PolicyMetadata.JSON_PROPERTY_PUBLISHED_BY, - PolicyMetadata.JSON_PROPERTY_PUBLISHED_AT, - PolicyMetadata.JSON_PROPERTY_POLICY_TYPE + PolicyMetadata.JSON_PROPERTY_PUBLISHED_AT }) @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", @@ -45,25 +43,15 @@ public class PolicyMetadata { public static final String JSON_PROPERTY_PUBLISHED_AT = "publishedAt"; @jakarta.annotation.Nullable private String publishedAt; - public static final String JSON_PROPERTY_POLICY_TYPE = "policyType"; - @jakarta.annotation.Nonnull private PolicyType policyType; - public PolicyMetadata() {} - @JsonCreator - public PolicyMetadata( - @JsonProperty(value = JSON_PROPERTY_POLICY_TYPE, required = true) - PolicyType policyType) { - this.policyType = policyType; - } - public PolicyMetadata editedBy(@jakarta.annotation.Nullable String editedBy) { this.editedBy = editedBy; return this; } /** - * The user ID of the user who last edited the policy + * The user id of the user who last edited the policy * * @return editedBy */ @@ -109,7 +97,7 @@ public PolicyMetadata publishedBy(@jakarta.annotation.Nullable String publishedB } /** - * The user ID of the user who last published the policy + * The user id of the user who last published the policy * * @return publishedBy */ @@ -149,29 +137,6 @@ public void setPublishedAt(@jakarta.annotation.Nullable String publishedAt) { this.publishedAt = publishedAt; } - public PolicyMetadata policyType(@jakarta.annotation.Nonnull PolicyType policyType) { - this.policyType = policyType; - return this; - } - - /** - * Get policyType - * - * @return policyType - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_POLICY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public PolicyType getPolicyType() { - return policyType; - } - - @JsonProperty(JSON_PROPERTY_POLICY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPolicyType(@jakarta.annotation.Nonnull PolicyType policyType) { - this.policyType = policyType; - } - /** Return true if this PolicyMetadata object is equal to o. */ @Override public boolean equals(Object o) { @@ -185,13 +150,12 @@ public boolean equals(Object o) { return Objects.equals(this.editedBy, policyMetadata.editedBy) && Objects.equals(this.editedAt, policyMetadata.editedAt) && Objects.equals(this.publishedBy, policyMetadata.publishedBy) - && Objects.equals(this.publishedAt, policyMetadata.publishedAt) - && Objects.equals(this.policyType, policyMetadata.policyType); + && Objects.equals(this.publishedAt, policyMetadata.publishedAt); } @Override public int hashCode() { - return Objects.hash(editedBy, editedAt, publishedBy, publishedAt, policyType); + return Objects.hash(editedBy, editedAt, publishedBy, publishedAt); } @Override @@ -202,7 +166,6 @@ public String toString() { sb.append(" editedAt: ").append(toIndentedString(editedAt)).append("\n"); sb.append(" publishedBy: ").append(toIndentedString(publishedBy)).append("\n"); sb.append(" publishedAt: ").append(toIndentedString(publishedAt)).append("\n"); - sb.append(" policyType: ").append(toIndentedString(policyType)).append("\n"); sb.append("}"); return sb.toString(); } @@ -290,16 +253,6 @@ public String toUrlQueryString(String prefix) { ApiClient.urlEncode(ApiClient.valueToString(getPublishedAt())))); } - // add `policyType` to the URL query string - if (getPolicyType() != null) { - joiner.add( - String.format( - "%spolicyType%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getPolicyType())))); - } - return joiner.toString(); } } diff --git a/src/main/java/com/fireblocks/sdk/model/PolicyOperator.java b/src/main/java/com/fireblocks/sdk/model/PolicyOperator.java deleted file mode 100644 index 82f843b0..00000000 --- a/src/main/java/com/fireblocks/sdk/model/PolicyOperator.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - -/** Operator for selection */ -public enum PolicyOperator { - INCLUDES("INCLUDES"), - - EXCLUDES("EXCLUDES"); - - private String value; - - PolicyOperator(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static PolicyOperator fromValue(String value) { - for (PolicyOperator b : PolicyOperator.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - if (prefix == null) { - prefix = ""; - } - - return String.format("%s=%s", prefix, this.toString()); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/PolicyResponse.java b/src/main/java/com/fireblocks/sdk/model/PolicyResponse.java index b0e1a84b..e986452b 100644 --- a/src/main/java/com/fireblocks/sdk/model/PolicyResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/PolicyResponse.java @@ -29,7 +29,7 @@ comments = "Generator version: 7.14.0") public class PolicyResponse { public static final String JSON_PROPERTY_RULES = "rules"; - @jakarta.annotation.Nonnull private List rules = new ArrayList<>(); + @jakarta.annotation.Nonnull private List rules; public static final String JSON_PROPERTY_METADATA = "metadata"; @jakarta.annotation.Nonnull private PolicyMetadata metadata; diff --git a/src/main/java/com/fireblocks/sdk/model/PolicyRule.java b/src/main/java/com/fireblocks/sdk/model/PolicyRule.java index eec18ee1..e8a2c60e 100644 --- a/src/main/java/com/fireblocks/sdk/model/PolicyRule.java +++ b/src/main/java/com/fireblocks/sdk/model/PolicyRule.java @@ -20,53 +20,89 @@ import com.fasterxml.jackson.annotation.JsonValue; import com.fireblocks.sdk.ApiClient; import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.List; import java.util.Objects; import java.util.StringJoiner; -/** V2 Policy rule which is enforced on transactions */ +/** Policy rule which is enforced on transactions */ @JsonPropertyOrder({ - PolicyRule.JSON_PROPERTY_NAME, - PolicyRule.JSON_PROPERTY_ID, - PolicyRule.JSON_PROPERTY_POLICY_ENGINE_VERSION, + PolicyRule.JSON_PROPERTY_OPERATOR, + PolicyRule.JSON_PROPERTY_OPERATORS, + PolicyRule.JSON_PROPERTY_TRANSACTION_TYPE, + PolicyRule.JSON_PROPERTY_DESIGNATED_SIGNER, + PolicyRule.JSON_PROPERTY_DESIGNATED_SIGNERS, PolicyRule.JSON_PROPERTY_TYPE, - PolicyRule.JSON_PROPERTY_SUB_TYPE, - PolicyRule.JSON_PROPERTY_INITIATOR, + PolicyRule.JSON_PROPERTY_ACTION, PolicyRule.JSON_PROPERTY_ASSET, - PolicyRule.JSON_PROPERTY_SOURCE, - PolicyRule.JSON_PROPERTY_DESTINATION, - PolicyRule.JSON_PROPERTY_ACCOUNT, - PolicyRule.JSON_PROPERTY_VERDICT, - PolicyRule.JSON_PROPERTY_AMOUNT_OVER_TIME, + PolicyRule.JSON_PROPERTY_SRC_TYPE, + PolicyRule.JSON_PROPERTY_SRC_SUB_TYPE, + PolicyRule.JSON_PROPERTY_SRC_ID, + PolicyRule.JSON_PROPERTY_SRC, + PolicyRule.JSON_PROPERTY_DST_TYPE, + PolicyRule.JSON_PROPERTY_DST_SUB_TYPE, + PolicyRule.JSON_PROPERTY_DST_ID, + PolicyRule.JSON_PROPERTY_DST, + PolicyRule.JSON_PROPERTY_DST_ADDRESS_TYPE, + PolicyRule.JSON_PROPERTY_AMOUNT_CURRENCY, + PolicyRule.JSON_PROPERTY_AMOUNT_SCOPE, PolicyRule.JSON_PROPERTY_AMOUNT, - PolicyRule.JSON_PROPERTY_EXTERNAL_DESCRIPTOR, - PolicyRule.JSON_PROPERTY_METHOD, - PolicyRule.JSON_PROPERTY_IS_GLOBAL_POLICY, - PolicyRule.JSON_PROPERTY_PROGRAM_CALL, - PolicyRule.JSON_PROPERTY_SCREENING_METADATA, - PolicyRule.JSON_PROPERTY_QUOTE_ASSET, - PolicyRule.JSON_PROPERTY_BASE_ASSET, - PolicyRule.JSON_PROPERTY_QUOTE_AMOUNT, - PolicyRule.JSON_PROPERTY_BASE_AMOUNT, - PolicyRule.JSON_PROPERTY_DERIVATION_PATH, - PolicyRule.JSON_PROPERTY_INDEX + PolicyRule.JSON_PROPERTY_PERIOD_SEC, + PolicyRule.JSON_PROPERTY_AUTHORIZERS, + PolicyRule.JSON_PROPERTY_AUTHORIZERS_COUNT, + PolicyRule.JSON_PROPERTY_AUTHORIZATION_GROUPS, + PolicyRule.JSON_PROPERTY_AMOUNT_AGGREGATION, + PolicyRule.JSON_PROPERTY_RAW_MESSAGE_SIGNING, + PolicyRule.JSON_PROPERTY_APPLY_FOR_APPROVE, + PolicyRule.JSON_PROPERTY_APPLY_FOR_TYPED_MESSAGE, + PolicyRule.JSON_PROPERTY_EXTERNAL_DESCRIPTOR }) @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") public class PolicyRule { - public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nonnull private String name; + public static final String JSON_PROPERTY_OPERATOR = "operator"; + @jakarta.annotation.Nullable private String operator; - public static final String JSON_PROPERTY_ID = "id"; - @jakarta.annotation.Nonnull private String id; + public static final String JSON_PROPERTY_OPERATORS = "operators"; + @jakarta.annotation.Nullable private PolicyRuleOperators operators; - /** Policy engine version */ - public enum PolicyEngineVersionEnum { - V2(String.valueOf("v2")); + /** + * Defines the type of transaction to which the rule applies. * TRANSFER - Default. Transfers + * funds from one account to another * CONTRACT_CALL - Calls a smart contract, mainly for DeFi + * operations. * APPROVE - Allows a smart contract to withdraw from a designated wallet. * MINT + * - Perform a mint operation (increase supply) on a supported token * BURN - Perform a burn + * operation (reduce supply) on a supported token * SUPPLY - Use for DeFi to lend assets * + * REDEEM - Use for DeFi to get lending back * STAKE - Allows you to allocate and lock certain + * assets for earning staking rewards. * RAW - An off-chain message with no predefined format, + * use it to sign any message with your private key. * TYPED_MESSAGE - An off-chain message type + * that follows a predefined format, used to sign specific messages that are not actual + * transactions. + */ + public enum TransactionTypeEnum { + TRANSFER(String.valueOf("TRANSFER")), + + CONTRACT_CALL(String.valueOf("CONTRACT_CALL")), + + APPROVE(String.valueOf("APPROVE")), + + MINT(String.valueOf("MINT")), + + BURN(String.valueOf("BURN")), + + SUPPLY(String.valueOf("SUPPLY")), + + REDEEM(String.valueOf("REDEEM")), + + STAKE(String.valueOf("STAKE")), + + RAW(String.valueOf("RAW")), + + TYPED_MESSAGE(String.valueOf("TYPED_MESSAGE")); private String value; - PolicyEngineVersionEnum(String value) { + TransactionTypeEnum(String value) { this.value = value; } @@ -81,8 +117,8 @@ public String toString() { } @JsonCreator - public static PolicyEngineVersionEnum fromValue(String value) { - for (PolicyEngineVersionEnum b : PolicyEngineVersionEnum.values()) { + public static TransactionTypeEnum fromValue(String value) { + for (TransactionTypeEnum b : TransactionTypeEnum.values()) { if (b.value.equals(value)) { return b; } @@ -91,654 +127,1038 @@ public static PolicyEngineVersionEnum fromValue(String value) { } } - public static final String JSON_PROPERTY_POLICY_ENGINE_VERSION = "policyEngineVersion"; - @jakarta.annotation.Nonnull private PolicyEngineVersionEnum policyEngineVersion; + public static final String JSON_PROPERTY_TRANSACTION_TYPE = "transactionType"; + @jakarta.annotation.Nullable private TransactionTypeEnum transactionType; + + public static final String JSON_PROPERTY_DESIGNATED_SIGNER = "designatedSigner"; + @jakarta.annotation.Nullable private String designatedSigner; + + public static final String JSON_PROPERTY_DESIGNATED_SIGNERS = "designatedSigners"; + @jakarta.annotation.Nullable private PolicyRuleDesignatedSigners designatedSigners; + + /** Policy rule type */ + public enum TypeEnum { + TRANSFER(String.valueOf("TRANSFER")); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } public static final String JSON_PROPERTY_TYPE = "type"; - @jakarta.annotation.Nonnull private PolicyType type; + @jakarta.annotation.Nonnull private TypeEnum type; - public static final String JSON_PROPERTY_SUB_TYPE = "subType"; - @jakarta.annotation.Nullable private PolicyType subType; + /** + * Defines what occurs when a transaction meets the rule's criteria * ALLOW - The + * transaction goes through and can be signed without requiring additional approvals * BLOCK - + * The transaction is automatically blocked * 2-TIER - Only these users or user groups can + * approve If any of them reject the transaction before the required approval threshold is met, + * the transaction doesn't go through The list of entities are set is + * \"authorizationGroups\" field + */ + public enum ActionEnum { + ALLOW(String.valueOf("ALLOW")), + + BLOCK(String.valueOf("BLOCK")), + + _2_TIER(String.valueOf("2-TIER")); + + private String value; + + ActionEnum(String value) { + this.value = value; + } - public static final String JSON_PROPERTY_INITIATOR = "initiator"; - @jakarta.annotation.Nonnull private InitiatorConfigPattern initiator; + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static ActionEnum fromValue(String value) { + for (ActionEnum b : ActionEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_ACTION = "action"; + @jakarta.annotation.Nonnull private ActionEnum action; public static final String JSON_PROPERTY_ASSET = "asset"; - @jakarta.annotation.Nonnull private AssetConfig asset; + @jakarta.annotation.Nonnull private String asset; - public static final String JSON_PROPERTY_SOURCE = "source"; - @jakarta.annotation.Nonnull private AccountConfig source; + public static final String JSON_PROPERTY_SRC_TYPE = "srcType"; + @jakarta.annotation.Nullable private PolicySrcOrDestType srcType; - public static final String JSON_PROPERTY_DESTINATION = "destination"; - @jakarta.annotation.Nullable private DestinationConfig destination; + public static final String JSON_PROPERTY_SRC_SUB_TYPE = "srcSubType"; + @jakarta.annotation.Nullable private PolicySrcOrDestSubType srcSubType; - public static final String JSON_PROPERTY_ACCOUNT = "account"; - @jakarta.annotation.Nullable private AccountConfig account; + public static final String JSON_PROPERTY_SRC_ID = "srcId"; + @jakarta.annotation.Nullable private String srcId; - public static final String JSON_PROPERTY_VERDICT = "verdict"; - @jakarta.annotation.Nonnull private VerdictConfig verdict; + public static final String JSON_PROPERTY_SRC = "src"; + @jakarta.annotation.Nullable private PolicyRuleSrc src; - public static final String JSON_PROPERTY_AMOUNT_OVER_TIME = "amountOverTime"; - @jakarta.annotation.Nullable private AmountOverTimeConfig amountOverTime; + public static final String JSON_PROPERTY_DST_TYPE = "dstType"; + @jakarta.annotation.Nullable private PolicySrcOrDestType dstType; - public static final String JSON_PROPERTY_AMOUNT = "amount"; - @jakarta.annotation.Nullable private AmountRange amount; + public static final String JSON_PROPERTY_DST_SUB_TYPE = "dstSubType"; + @jakarta.annotation.Nullable private PolicySrcOrDestSubType dstSubType; - public static final String JSON_PROPERTY_EXTERNAL_DESCRIPTOR = "externalDescriptor"; - @jakarta.annotation.Nullable private String externalDescriptor; + public static final String JSON_PROPERTY_DST_ID = "dstId"; + @jakarta.annotation.Nullable private String dstId; + + public static final String JSON_PROPERTY_DST = "dst"; + @jakarta.annotation.Nullable private PolicyRuleDst dst; + + /** + * Defines whether the destination to which you are sending funds must be whitelisted, to allow + * one-time transfers to non-whitelisted external addresses, or both. By default, you can only + * transfer to an external address after it’s whitelisted. * WHITELISTED - Can only be sent to + * whitelisted addresses. * ONE_TIME - Can only be sent to non-whitelisted external addresses. * + * \"*\" - can be sent to whitelisted addresses or non-whitelisted external + */ + public enum DstAddressTypeEnum { + WHITELISTED(String.valueOf("WHITELISTED")), + + ONE_TIME(String.valueOf("ONE_TIME")), + + STAR(String.valueOf("*")); + + private String value; - public static final String JSON_PROPERTY_METHOD = "method"; - @jakarta.annotation.Nullable private ContractMethodPattern method; + DstAddressTypeEnum(String value) { + this.value = value; + } - public static final String JSON_PROPERTY_IS_GLOBAL_POLICY = "isGlobalPolicy"; - @jakarta.annotation.Nullable private Boolean isGlobalPolicy; + @JsonValue + public String getValue() { + return value; + } - public static final String JSON_PROPERTY_PROGRAM_CALL = "programCall"; - @jakarta.annotation.Nullable private ProgramCallConfig programCall; + @Override + public String toString() { + return String.valueOf(value); + } - public static final String JSON_PROPERTY_SCREENING_METADATA = "screeningMetadata"; - @jakarta.annotation.Nullable private ScreeningMetadataConfig screeningMetadata; + @JsonCreator + public static DstAddressTypeEnum fromValue(String value) { + for (DstAddressTypeEnum b : DstAddressTypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } - public static final String JSON_PROPERTY_QUOTE_ASSET = "quoteAsset"; - @jakarta.annotation.Nullable private AssetConfig quoteAsset; + public static final String JSON_PROPERTY_DST_ADDRESS_TYPE = "dstAddressType"; + @jakarta.annotation.Nullable private DstAddressTypeEnum dstAddressType; - public static final String JSON_PROPERTY_BASE_ASSET = "baseAsset"; - @jakarta.annotation.Nullable private AssetConfig baseAsset; + /** + * * USD - Limits the amount of any asset users can transfer based on the USD equivalent of the + * asset. * EUR - Limits the amount of any asset users can transfer based on the EURO equivalent + * of the asset. * NATIVE - Limits the amount of an asset a user can transfer when using a + * specific asset. + */ + public enum AmountCurrencyEnum { + USD(String.valueOf("USD")), - public static final String JSON_PROPERTY_QUOTE_AMOUNT = "quoteAmount"; - @jakarta.annotation.Nullable private AmountRange quoteAmount; + EUR(String.valueOf("EUR")), - public static final String JSON_PROPERTY_BASE_AMOUNT = "baseAmount"; - @jakarta.annotation.Nullable private AmountRange baseAmount; + NATIVE(String.valueOf("NATIVE")); - public static final String JSON_PROPERTY_DERIVATION_PATH = "derivationPath"; - @jakarta.annotation.Nullable private DerivationPathConfig derivationPath; + private String value; - public static final String JSON_PROPERTY_INDEX = "index"; - @jakarta.annotation.Nullable private BigDecimal index; + AmountCurrencyEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static AmountCurrencyEnum fromValue(String value) { + for (AmountCurrencyEnum b : AmountCurrencyEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_AMOUNT_CURRENCY = "amountCurrency"; + @jakarta.annotation.Nonnull private AmountCurrencyEnum amountCurrency; + + /** + * * SINGLE_TX - limit applies to a single transaction * TIMEFRAME - limit applies to all + * transactions within the defined time period + */ + public enum AmountScopeEnum { + SINGLE_TX(String.valueOf("SINGLE_TX")), + + TIMEFRAME(String.valueOf("TIMEFRAME")); + + private String value; + + AmountScopeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static AmountScopeEnum fromValue(String value) { + for (AmountScopeEnum b : AmountScopeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_AMOUNT_SCOPE = "amountScope"; + @jakarta.annotation.Nonnull private AmountScopeEnum amountScope; + + public static final String JSON_PROPERTY_AMOUNT = "amount"; + @jakarta.annotation.Nonnull private PolicyRuleAmount amount; + + public static final String JSON_PROPERTY_PERIOD_SEC = "periodSec"; + @jakarta.annotation.Nonnull private BigDecimal periodSec; + + public static final String JSON_PROPERTY_AUTHORIZERS = "authorizers"; + @jakarta.annotation.Nullable private List authorizers; + + public static final String JSON_PROPERTY_AUTHORIZERS_COUNT = "authorizersCount"; + @jakarta.annotation.Nullable private BigDecimal authorizersCount; + + public static final String JSON_PROPERTY_AUTHORIZATION_GROUPS = "authorizationGroups"; + @jakarta.annotation.Nullable private PolicyRuleAuthorizationGroups authorizationGroups; + + public static final String JSON_PROPERTY_AMOUNT_AGGREGATION = "amountAggregation"; + @jakarta.annotation.Nullable private PolicyRuleAmountAggregation amountAggregation; + + public static final String JSON_PROPERTY_RAW_MESSAGE_SIGNING = "rawMessageSigning"; + @jakarta.annotation.Nullable private PolicyRuleRawMessageSigning rawMessageSigning; + + public static final String JSON_PROPERTY_APPLY_FOR_APPROVE = "applyForApprove"; + @jakarta.annotation.Nullable private Boolean applyForApprove; + + public static final String JSON_PROPERTY_APPLY_FOR_TYPED_MESSAGE = "applyForTypedMessage"; + @jakarta.annotation.Nullable private Boolean applyForTypedMessage; + + public static final String JSON_PROPERTY_EXTERNAL_DESCRIPTOR = "externalDescriptor"; + @jakarta.annotation.Nullable private String externalDescriptor; public PolicyRule() {} @JsonCreator public PolicyRule( - @JsonProperty(value = JSON_PROPERTY_NAME, required = true) String name, - @JsonProperty(value = JSON_PROPERTY_ID, required = true) String id, - @JsonProperty(value = JSON_PROPERTY_POLICY_ENGINE_VERSION, required = true) - PolicyEngineVersionEnum policyEngineVersion, - @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) PolicyType type, - @JsonProperty(value = JSON_PROPERTY_INITIATOR, required = true) - InitiatorConfigPattern initiator, - @JsonProperty(value = JSON_PROPERTY_ASSET, required = true) AssetConfig asset, - @JsonProperty(value = JSON_PROPERTY_SOURCE, required = true) AccountConfig source, - @JsonProperty(value = JSON_PROPERTY_VERDICT, required = true) VerdictConfig verdict) { - this.name = name; - this.id = id; - this.policyEngineVersion = policyEngineVersion; + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) TypeEnum type, + @JsonProperty(value = JSON_PROPERTY_ACTION, required = true) ActionEnum action, + @JsonProperty(value = JSON_PROPERTY_ASSET, required = true) String asset, + @JsonProperty(value = JSON_PROPERTY_AMOUNT_CURRENCY, required = true) + AmountCurrencyEnum amountCurrency, + @JsonProperty(value = JSON_PROPERTY_AMOUNT_SCOPE, required = true) + AmountScopeEnum amountScope, + @JsonProperty(value = JSON_PROPERTY_AMOUNT, required = true) PolicyRuleAmount amount, + @JsonProperty(value = JSON_PROPERTY_PERIOD_SEC, required = true) BigDecimal periodSec) { this.type = type; - this.initiator = initiator; + this.action = action; this.asset = asset; - this.source = source; - this.verdict = verdict; + this.amountCurrency = amountCurrency; + this.amountScope = amountScope; + this.amount = amount; + this.periodSec = periodSec; } - public PolicyRule name(@jakarta.annotation.Nonnull String name) { - this.name = name; + public PolicyRule operator(@jakarta.annotation.Nullable String operator) { + this.operator = operator; return this; } /** - * Name of the policy rule + * (deprecated - replaced by \"operators\") | Defines users who can initiate the type + * of transaction to which the rule applies. options are * \"*\" - All users are + * allowed * Specific User id * - * @return name + * @return operator + * @deprecated */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getName() { - return name; + @Deprecated + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_OPERATOR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getOperator() { + return operator; } - @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(@jakarta.annotation.Nonnull String name) { - this.name = name; + @JsonProperty(JSON_PROPERTY_OPERATOR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setOperator(@jakarta.annotation.Nullable String operator) { + this.operator = operator; } - public PolicyRule id(@jakarta.annotation.Nonnull String id) { - this.id = id; + public PolicyRule operators(@jakarta.annotation.Nullable PolicyRuleOperators operators) { + this.operators = operators; return this; } /** - * Unique identifier for the policy rule + * Get operators * - * @return id + * @return operators */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getId() { - return id; + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_OPERATORS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public PolicyRuleOperators getOperators() { + return operators; } - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(@jakarta.annotation.Nonnull String id) { - this.id = id; + @JsonProperty(JSON_PROPERTY_OPERATORS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setOperators(@jakarta.annotation.Nullable PolicyRuleOperators operators) { + this.operators = operators; } - public PolicyRule policyEngineVersion( - @jakarta.annotation.Nonnull PolicyEngineVersionEnum policyEngineVersion) { - this.policyEngineVersion = policyEngineVersion; + public PolicyRule transactionType( + @jakarta.annotation.Nullable TransactionTypeEnum transactionType) { + this.transactionType = transactionType; return this; } /** - * Policy engine version + * Defines the type of transaction to which the rule applies. * TRANSFER - Default. Transfers + * funds from one account to another * CONTRACT_CALL - Calls a smart contract, mainly for DeFi + * operations. * APPROVE - Allows a smart contract to withdraw from a designated wallet. * MINT + * - Perform a mint operation (increase supply) on a supported token * BURN - Perform a burn + * operation (reduce supply) on a supported token * SUPPLY - Use for DeFi to lend assets * + * REDEEM - Use for DeFi to get lending back * STAKE - Allows you to allocate and lock certain + * assets for earning staking rewards. * RAW - An off-chain message with no predefined format, + * use it to sign any message with your private key. * TYPED_MESSAGE - An off-chain message type + * that follows a predefined format, used to sign specific messages that are not actual + * transactions. * - * @return policyEngineVersion + * @return transactionType */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_POLICY_ENGINE_VERSION) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public PolicyEngineVersionEnum getPolicyEngineVersion() { - return policyEngineVersion; + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_TRANSACTION_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public TransactionTypeEnum getTransactionType() { + return transactionType; } - @JsonProperty(JSON_PROPERTY_POLICY_ENGINE_VERSION) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPolicyEngineVersion( - @jakarta.annotation.Nonnull PolicyEngineVersionEnum policyEngineVersion) { - this.policyEngineVersion = policyEngineVersion; + @JsonProperty(JSON_PROPERTY_TRANSACTION_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setTransactionType( + @jakarta.annotation.Nullable TransactionTypeEnum transactionType) { + this.transactionType = transactionType; } - public PolicyRule type(@jakarta.annotation.Nonnull PolicyType type) { - this.type = type; + public PolicyRule designatedSigner(@jakarta.annotation.Nullable String designatedSigner) { + this.designatedSigner = designatedSigner; return this; } /** - * Get type + * (deprecated - replaced by \"designatedSigners\") Id representing the user who signs + * transactions that match a specific rule * - * @return type + * @return designatedSigner + * @deprecated */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public PolicyType getType() { - return type; + @Deprecated + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DESIGNATED_SIGNER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getDesignatedSigner() { + return designatedSigner; } - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(@jakarta.annotation.Nonnull PolicyType type) { - this.type = type; + @JsonProperty(JSON_PROPERTY_DESIGNATED_SIGNER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDesignatedSigner(@jakarta.annotation.Nullable String designatedSigner) { + this.designatedSigner = designatedSigner; } - public PolicyRule subType(@jakarta.annotation.Nullable PolicyType subType) { - this.subType = subType; + public PolicyRule designatedSigners( + @jakarta.annotation.Nullable PolicyRuleDesignatedSigners designatedSigners) { + this.designatedSigners = designatedSigners; return this; } /** - * Get subType + * Get designatedSigners * - * @return subType + * @return designatedSigners */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SUB_TYPE) + @JsonProperty(JSON_PROPERTY_DESIGNATED_SIGNERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public PolicyType getSubType() { - return subType; + public PolicyRuleDesignatedSigners getDesignatedSigners() { + return designatedSigners; } - @JsonProperty(JSON_PROPERTY_SUB_TYPE) + @JsonProperty(JSON_PROPERTY_DESIGNATED_SIGNERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSubType(@jakarta.annotation.Nullable PolicyType subType) { - this.subType = subType; + public void setDesignatedSigners( + @jakarta.annotation.Nullable PolicyRuleDesignatedSigners designatedSigners) { + this.designatedSigners = designatedSigners; } - public PolicyRule initiator(@jakarta.annotation.Nonnull InitiatorConfigPattern initiator) { - this.initiator = initiator; + public PolicyRule type(@jakarta.annotation.Nonnull TypeEnum type) { + this.type = type; return this; } /** - * Get initiator + * Policy rule type * - * @return initiator + * @return type */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_INITIATOR) + @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public InitiatorConfigPattern getInitiator() { - return initiator; + public TypeEnum getType() { + return type; } - @JsonProperty(JSON_PROPERTY_INITIATOR) + @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setInitiator(@jakarta.annotation.Nonnull InitiatorConfigPattern initiator) { - this.initiator = initiator; + public void setType(@jakarta.annotation.Nonnull TypeEnum type) { + this.type = type; } - public PolicyRule asset(@jakarta.annotation.Nonnull AssetConfig asset) { + public PolicyRule action(@jakarta.annotation.Nonnull ActionEnum action) { + this.action = action; + return this; + } + + /** + * Defines what occurs when a transaction meets the rule's criteria * ALLOW - The + * transaction goes through and can be signed without requiring additional approvals * BLOCK - + * The transaction is automatically blocked * 2-TIER - Only these users or user groups can + * approve If any of them reject the transaction before the required approval threshold is met, + * the transaction doesn't go through The list of entities are set is + * \"authorizationGroups\" field + * + * @return action + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ACTION) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public ActionEnum getAction() { + return action; + } + + @JsonProperty(JSON_PROPERTY_ACTION) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setAction(@jakarta.annotation.Nonnull ActionEnum action) { + this.action = action; + } + + public PolicyRule asset(@jakarta.annotation.Nonnull String asset) { this.asset = asset; return this; } /** - * Get asset + * Defines the type of asset being transacted, options are * \"*\" - All assets * + * Specific asset * * @return asset */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ASSET) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AssetConfig getAsset() { + public String getAsset() { return asset; } @JsonProperty(JSON_PROPERTY_ASSET) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAsset(@jakarta.annotation.Nonnull AssetConfig asset) { + public void setAsset(@jakarta.annotation.Nonnull String asset) { this.asset = asset; } - public PolicyRule source(@jakarta.annotation.Nonnull AccountConfig source) { - this.source = source; + public PolicyRule srcType(@jakarta.annotation.Nullable PolicySrcOrDestType srcType) { + this.srcType = srcType; return this; } /** - * Get source + * (deprecated - replaced by \"src\") source account type * - * @return source + * @return srcType + * @deprecated */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SOURCE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccountConfig getSource() { - return source; + @Deprecated + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_SRC_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public PolicySrcOrDestType getSrcType() { + return srcType; } - @JsonProperty(JSON_PROPERTY_SOURCE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSource(@jakarta.annotation.Nonnull AccountConfig source) { - this.source = source; + @JsonProperty(JSON_PROPERTY_SRC_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSrcType(@jakarta.annotation.Nullable PolicySrcOrDestType srcType) { + this.srcType = srcType; } - public PolicyRule destination(@jakarta.annotation.Nullable DestinationConfig destination) { - this.destination = destination; + public PolicyRule srcSubType(@jakarta.annotation.Nullable PolicySrcOrDestSubType srcSubType) { + this.srcSubType = srcSubType; return this; } /** - * Get destination + * (deprecated - replaced by \"src\") source sub account type * - * @return destination + * @return srcSubType + * @deprecated */ + @Deprecated @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DESTINATION) + @JsonProperty(JSON_PROPERTY_SRC_SUB_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public DestinationConfig getDestination() { - return destination; + public PolicySrcOrDestSubType getSrcSubType() { + return srcSubType; } - @JsonProperty(JSON_PROPERTY_DESTINATION) + @JsonProperty(JSON_PROPERTY_SRC_SUB_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDestination(@jakarta.annotation.Nullable DestinationConfig destination) { - this.destination = destination; + public void setSrcSubType(@jakarta.annotation.Nullable PolicySrcOrDestSubType srcSubType) { + this.srcSubType = srcSubType; } - public PolicyRule account(@jakarta.annotation.Nullable AccountConfig account) { - this.account = account; + public PolicyRule srcId(@jakarta.annotation.Nullable String srcId) { + this.srcId = srcId; return this; } /** - * Get account + * (deprecated - replaced by \"src\") source account id * - * @return account + * @return srcId + * @deprecated */ + @Deprecated @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ACCOUNT) + @JsonProperty(JSON_PROPERTY_SRC_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public AccountConfig getAccount() { - return account; + public String getSrcId() { + return srcId; } - @JsonProperty(JSON_PROPERTY_ACCOUNT) + @JsonProperty(JSON_PROPERTY_SRC_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAccount(@jakarta.annotation.Nullable AccountConfig account) { - this.account = account; + public void setSrcId(@jakarta.annotation.Nullable String srcId) { + this.srcId = srcId; } - public PolicyRule verdict(@jakarta.annotation.Nonnull VerdictConfig verdict) { - this.verdict = verdict; + public PolicyRule src(@jakarta.annotation.Nullable PolicyRuleSrc src) { + this.src = src; return this; } /** - * Get verdict + * Get src * - * @return verdict + * @return src */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_VERDICT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public VerdictConfig getVerdict() { - return verdict; + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_SRC) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public PolicyRuleSrc getSrc() { + return src; } - @JsonProperty(JSON_PROPERTY_VERDICT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setVerdict(@jakarta.annotation.Nonnull VerdictConfig verdict) { - this.verdict = verdict; + @JsonProperty(JSON_PROPERTY_SRC) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSrc(@jakarta.annotation.Nullable PolicyRuleSrc src) { + this.src = src; } - public PolicyRule amountOverTime( - @jakarta.annotation.Nullable AmountOverTimeConfig amountOverTime) { - this.amountOverTime = amountOverTime; + public PolicyRule dstType(@jakarta.annotation.Nullable PolicySrcOrDestType dstType) { + this.dstType = dstType; return this; } /** - * Get amountOverTime + * (deprecated - replaced by \"dst\") destination account type * - * @return amountOverTime + * @return dstType + * @deprecated */ + @Deprecated @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_AMOUNT_OVER_TIME) + @JsonProperty(JSON_PROPERTY_DST_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public AmountOverTimeConfig getAmountOverTime() { - return amountOverTime; + public PolicySrcOrDestType getDstType() { + return dstType; } - @JsonProperty(JSON_PROPERTY_AMOUNT_OVER_TIME) + @JsonProperty(JSON_PROPERTY_DST_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAmountOverTime( - @jakarta.annotation.Nullable AmountOverTimeConfig amountOverTime) { - this.amountOverTime = amountOverTime; + public void setDstType(@jakarta.annotation.Nullable PolicySrcOrDestType dstType) { + this.dstType = dstType; } - public PolicyRule amount(@jakarta.annotation.Nullable AmountRange amount) { - this.amount = amount; + public PolicyRule dstSubType(@jakarta.annotation.Nullable PolicySrcOrDestSubType dstSubType) { + this.dstSubType = dstSubType; return this; } /** - * Get amount + * (deprecated - replaced by \"dst\") destination sub account type * - * @return amount + * @return dstSubType + * @deprecated */ + @Deprecated @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_AMOUNT) + @JsonProperty(JSON_PROPERTY_DST_SUB_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public AmountRange getAmount() { - return amount; + public PolicySrcOrDestSubType getDstSubType() { + return dstSubType; } - @JsonProperty(JSON_PROPERTY_AMOUNT) + @JsonProperty(JSON_PROPERTY_DST_SUB_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAmount(@jakarta.annotation.Nullable AmountRange amount) { - this.amount = amount; + public void setDstSubType(@jakarta.annotation.Nullable PolicySrcOrDestSubType dstSubType) { + this.dstSubType = dstSubType; } - public PolicyRule externalDescriptor(@jakarta.annotation.Nullable String externalDescriptor) { - this.externalDescriptor = externalDescriptor; + public PolicyRule dstId(@jakarta.annotation.Nullable String dstId) { + this.dstId = dstId; return this; } /** - * External descriptor for the rule + * (deprecated - replaced by \"dst\") destination account id * - * @return externalDescriptor + * @return dstId + * @deprecated */ + @Deprecated @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EXTERNAL_DESCRIPTOR) + @JsonProperty(JSON_PROPERTY_DST_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getExternalDescriptor() { - return externalDescriptor; + public String getDstId() { + return dstId; } - @JsonProperty(JSON_PROPERTY_EXTERNAL_DESCRIPTOR) + @JsonProperty(JSON_PROPERTY_DST_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setExternalDescriptor(@jakarta.annotation.Nullable String externalDescriptor) { - this.externalDescriptor = externalDescriptor; + public void setDstId(@jakarta.annotation.Nullable String dstId) { + this.dstId = dstId; } - public PolicyRule method(@jakarta.annotation.Nullable ContractMethodPattern method) { - this.method = method; + public PolicyRule dst(@jakarta.annotation.Nullable PolicyRuleDst dst) { + this.dst = dst; return this; } /** - * Get method + * Get dst * - * @return method + * @return dst */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_METHOD) + @JsonProperty(JSON_PROPERTY_DST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public ContractMethodPattern getMethod() { - return method; + public PolicyRuleDst getDst() { + return dst; } - @JsonProperty(JSON_PROPERTY_METHOD) + @JsonProperty(JSON_PROPERTY_DST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMethod(@jakarta.annotation.Nullable ContractMethodPattern method) { - this.method = method; + public void setDst(@jakarta.annotation.Nullable PolicyRuleDst dst) { + this.dst = dst; } - public PolicyRule isGlobalPolicy(@jakarta.annotation.Nullable Boolean isGlobalPolicy) { - this.isGlobalPolicy = isGlobalPolicy; + public PolicyRule dstAddressType( + @jakarta.annotation.Nullable DstAddressTypeEnum dstAddressType) { + this.dstAddressType = dstAddressType; return this; } /** - * Whether this is a global policy + * Defines whether the destination to which you are sending funds must be whitelisted, to allow + * one-time transfers to non-whitelisted external addresses, or both. By default, you can only + * transfer to an external address after it’s whitelisted. * WHITELISTED - Can only be sent to + * whitelisted addresses. * ONE_TIME - Can only be sent to non-whitelisted external addresses. * + * \"*\" - can be sent to whitelisted addresses or non-whitelisted external * - * @return isGlobalPolicy + * @return dstAddressType */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_IS_GLOBAL_POLICY) + @JsonProperty(JSON_PROPERTY_DST_ADDRESS_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getIsGlobalPolicy() { - return isGlobalPolicy; + public DstAddressTypeEnum getDstAddressType() { + return dstAddressType; } - @JsonProperty(JSON_PROPERTY_IS_GLOBAL_POLICY) + @JsonProperty(JSON_PROPERTY_DST_ADDRESS_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIsGlobalPolicy(@jakarta.annotation.Nullable Boolean isGlobalPolicy) { - this.isGlobalPolicy = isGlobalPolicy; + public void setDstAddressType(@jakarta.annotation.Nullable DstAddressTypeEnum dstAddressType) { + this.dstAddressType = dstAddressType; + } + + public PolicyRule amountCurrency( + @jakarta.annotation.Nonnull AmountCurrencyEnum amountCurrency) { + this.amountCurrency = amountCurrency; + return this; + } + + /** + * * USD - Limits the amount of any asset users can transfer based on the USD equivalent of the + * asset. * EUR - Limits the amount of any asset users can transfer based on the EURO equivalent + * of the asset. * NATIVE - Limits the amount of an asset a user can transfer when using a + * specific asset. + * + * @return amountCurrency + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_AMOUNT_CURRENCY) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public AmountCurrencyEnum getAmountCurrency() { + return amountCurrency; + } + + @JsonProperty(JSON_PROPERTY_AMOUNT_CURRENCY) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setAmountCurrency(@jakarta.annotation.Nonnull AmountCurrencyEnum amountCurrency) { + this.amountCurrency = amountCurrency; + } + + public PolicyRule amountScope(@jakarta.annotation.Nonnull AmountScopeEnum amountScope) { + this.amountScope = amountScope; + return this; + } + + /** + * * SINGLE_TX - limit applies to a single transaction * TIMEFRAME - limit applies to all + * transactions within the defined time period + * + * @return amountScope + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_AMOUNT_SCOPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public AmountScopeEnum getAmountScope() { + return amountScope; + } + + @JsonProperty(JSON_PROPERTY_AMOUNT_SCOPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setAmountScope(@jakarta.annotation.Nonnull AmountScopeEnum amountScope) { + this.amountScope = amountScope; + } + + public PolicyRule amount(@jakarta.annotation.Nonnull PolicyRuleAmount amount) { + this.amount = amount; + return this; + } + + /** + * Get amount + * + * @return amount + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_AMOUNT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public PolicyRuleAmount getAmount() { + return amount; + } + + @JsonProperty(JSON_PROPERTY_AMOUNT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setAmount(@jakarta.annotation.Nonnull PolicyRuleAmount amount) { + this.amount = amount; + } + + public PolicyRule periodSec(@jakarta.annotation.Nonnull BigDecimal periodSec) { + this.periodSec = periodSec; + return this; + } + + /** + * Time period in seconds applied by the amountScope field to accumulate transferred amounts in + * transactions that match the rule, until the total exceeds the value you specify under + * Minimum. When the specified amount is reached within that period, whether by one or many + * transactions, further transactions in that period either fail or require more approvals. + * + * @return periodSec + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_PERIOD_SEC) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public BigDecimal getPeriodSec() { + return periodSec; + } + + @JsonProperty(JSON_PROPERTY_PERIOD_SEC) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setPeriodSec(@jakarta.annotation.Nonnull BigDecimal periodSec) { + this.periodSec = periodSec; + } + + public PolicyRule authorizers(@jakarta.annotation.Nullable List authorizers) { + this.authorizers = authorizers; + return this; } - public PolicyRule programCall(@jakarta.annotation.Nullable ProgramCallConfig programCall) { - this.programCall = programCall; + public PolicyRule addAuthorizersItem(String authorizersItem) { + if (this.authorizers == null) { + this.authorizers = new ArrayList<>(); + } + this.authorizers.add(authorizersItem); return this; } /** - * Get programCall + * (deprecated - replaced by \"authorizationGroups\") Allowed entities which can + * approves a transaction * - * @return programCall + * @return authorizers + * @deprecated */ + @Deprecated @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROGRAM_CALL) + @JsonProperty(JSON_PROPERTY_AUTHORIZERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public ProgramCallConfig getProgramCall() { - return programCall; + public List getAuthorizers() { + return authorizers; } - @JsonProperty(JSON_PROPERTY_PROGRAM_CALL) + @JsonProperty(JSON_PROPERTY_AUTHORIZERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setProgramCall(@jakarta.annotation.Nullable ProgramCallConfig programCall) { - this.programCall = programCall; + public void setAuthorizers(@jakarta.annotation.Nullable List authorizers) { + this.authorizers = authorizers; } - public PolicyRule screeningMetadata( - @jakarta.annotation.Nullable ScreeningMetadataConfig screeningMetadata) { - this.screeningMetadata = screeningMetadata; + public PolicyRule authorizersCount(@jakarta.annotation.Nullable BigDecimal authorizersCount) { + this.authorizersCount = authorizersCount; return this; } /** - * Get screeningMetadata + * (deprecated - replaced by \"authorizationGroups\") Min amount of entities which are + * needed to approve a transaction * - * @return screeningMetadata + * @return authorizersCount + * @deprecated */ + @Deprecated @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SCREENING_METADATA) + @JsonProperty(JSON_PROPERTY_AUTHORIZERS_COUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public ScreeningMetadataConfig getScreeningMetadata() { - return screeningMetadata; + public BigDecimal getAuthorizersCount() { + return authorizersCount; } - @JsonProperty(JSON_PROPERTY_SCREENING_METADATA) + @JsonProperty(JSON_PROPERTY_AUTHORIZERS_COUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setScreeningMetadata( - @jakarta.annotation.Nullable ScreeningMetadataConfig screeningMetadata) { - this.screeningMetadata = screeningMetadata; + public void setAuthorizersCount(@jakarta.annotation.Nullable BigDecimal authorizersCount) { + this.authorizersCount = authorizersCount; } - public PolicyRule quoteAsset(@jakarta.annotation.Nullable AssetConfig quoteAsset) { - this.quoteAsset = quoteAsset; + public PolicyRule authorizationGroups( + @jakarta.annotation.Nullable PolicyRuleAuthorizationGroups authorizationGroups) { + this.authorizationGroups = authorizationGroups; return this; } /** - * Get quoteAsset + * Get authorizationGroups * - * @return quoteAsset + * @return authorizationGroups */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_QUOTE_ASSET) + @JsonProperty(JSON_PROPERTY_AUTHORIZATION_GROUPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public AssetConfig getQuoteAsset() { - return quoteAsset; + public PolicyRuleAuthorizationGroups getAuthorizationGroups() { + return authorizationGroups; } - @JsonProperty(JSON_PROPERTY_QUOTE_ASSET) + @JsonProperty(JSON_PROPERTY_AUTHORIZATION_GROUPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setQuoteAsset(@jakarta.annotation.Nullable AssetConfig quoteAsset) { - this.quoteAsset = quoteAsset; + public void setAuthorizationGroups( + @jakarta.annotation.Nullable PolicyRuleAuthorizationGroups authorizationGroups) { + this.authorizationGroups = authorizationGroups; } - public PolicyRule baseAsset(@jakarta.annotation.Nullable AssetConfig baseAsset) { - this.baseAsset = baseAsset; + public PolicyRule amountAggregation( + @jakarta.annotation.Nullable PolicyRuleAmountAggregation amountAggregation) { + this.amountAggregation = amountAggregation; return this; } /** - * Get baseAsset + * Get amountAggregation * - * @return baseAsset + * @return amountAggregation */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BASE_ASSET) + @JsonProperty(JSON_PROPERTY_AMOUNT_AGGREGATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public AssetConfig getBaseAsset() { - return baseAsset; + public PolicyRuleAmountAggregation getAmountAggregation() { + return amountAggregation; } - @JsonProperty(JSON_PROPERTY_BASE_ASSET) + @JsonProperty(JSON_PROPERTY_AMOUNT_AGGREGATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBaseAsset(@jakarta.annotation.Nullable AssetConfig baseAsset) { - this.baseAsset = baseAsset; + public void setAmountAggregation( + @jakarta.annotation.Nullable PolicyRuleAmountAggregation amountAggregation) { + this.amountAggregation = amountAggregation; } - public PolicyRule quoteAmount(@jakarta.annotation.Nullable AmountRange quoteAmount) { - this.quoteAmount = quoteAmount; + public PolicyRule rawMessageSigning( + @jakarta.annotation.Nullable PolicyRuleRawMessageSigning rawMessageSigning) { + this.rawMessageSigning = rawMessageSigning; return this; } /** - * Get quoteAmount + * Get rawMessageSigning * - * @return quoteAmount + * @return rawMessageSigning */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_QUOTE_AMOUNT) + @JsonProperty(JSON_PROPERTY_RAW_MESSAGE_SIGNING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public AmountRange getQuoteAmount() { - return quoteAmount; + public PolicyRuleRawMessageSigning getRawMessageSigning() { + return rawMessageSigning; } - @JsonProperty(JSON_PROPERTY_QUOTE_AMOUNT) + @JsonProperty(JSON_PROPERTY_RAW_MESSAGE_SIGNING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setQuoteAmount(@jakarta.annotation.Nullable AmountRange quoteAmount) { - this.quoteAmount = quoteAmount; + public void setRawMessageSigning( + @jakarta.annotation.Nullable PolicyRuleRawMessageSigning rawMessageSigning) { + this.rawMessageSigning = rawMessageSigning; } - public PolicyRule baseAmount(@jakarta.annotation.Nullable AmountRange baseAmount) { - this.baseAmount = baseAmount; + public PolicyRule applyForApprove(@jakarta.annotation.Nullable Boolean applyForApprove) { + this.applyForApprove = applyForApprove; return this; } /** - * Get baseAmount + * Applying this rule over APPROVE type transactions (can only be enabled when rule's + * transaction type is TRANSFER) * - * @return baseAmount + * @return applyForApprove */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BASE_AMOUNT) + @JsonProperty(JSON_PROPERTY_APPLY_FOR_APPROVE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public AmountRange getBaseAmount() { - return baseAmount; + public Boolean getApplyForApprove() { + return applyForApprove; } - @JsonProperty(JSON_PROPERTY_BASE_AMOUNT) + @JsonProperty(JSON_PROPERTY_APPLY_FOR_APPROVE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBaseAmount(@jakarta.annotation.Nullable AmountRange baseAmount) { - this.baseAmount = baseAmount; + public void setApplyForApprove(@jakarta.annotation.Nullable Boolean applyForApprove) { + this.applyForApprove = applyForApprove; } - public PolicyRule derivationPath( - @jakarta.annotation.Nullable DerivationPathConfig derivationPath) { - this.derivationPath = derivationPath; + public PolicyRule applyForTypedMessage( + @jakarta.annotation.Nullable Boolean applyForTypedMessage) { + this.applyForTypedMessage = applyForTypedMessage; return this; } /** - * Get derivationPath + * Applying this rule over TYPED_MESSAGE type transactions (can only be enabled when rule's + * transaction type is CONTRACT_CALL) * - * @return derivationPath + * @return applyForTypedMessage */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DERIVATION_PATH) + @JsonProperty(JSON_PROPERTY_APPLY_FOR_TYPED_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public DerivationPathConfig getDerivationPath() { - return derivationPath; + public Boolean getApplyForTypedMessage() { + return applyForTypedMessage; } - @JsonProperty(JSON_PROPERTY_DERIVATION_PATH) + @JsonProperty(JSON_PROPERTY_APPLY_FOR_TYPED_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDerivationPath( - @jakarta.annotation.Nullable DerivationPathConfig derivationPath) { - this.derivationPath = derivationPath; + public void setApplyForTypedMessage(@jakarta.annotation.Nullable Boolean applyForTypedMessage) { + this.applyForTypedMessage = applyForTypedMessage; } - public PolicyRule index(@jakarta.annotation.Nullable BigDecimal index) { - this.index = index; + public PolicyRule externalDescriptor(@jakarta.annotation.Nullable String externalDescriptor) { + this.externalDescriptor = externalDescriptor; return this; } /** - * Index for the policy rule + * A unique id identifying the rule * - * @return index + * @return externalDescriptor */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INDEX) + @JsonProperty(JSON_PROPERTY_EXTERNAL_DESCRIPTOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public BigDecimal getIndex() { - return index; + public String getExternalDescriptor() { + return externalDescriptor; } - @JsonProperty(JSON_PROPERTY_INDEX) + @JsonProperty(JSON_PROPERTY_EXTERNAL_DESCRIPTOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIndex(@jakarta.annotation.Nullable BigDecimal index) { - this.index = index; + public void setExternalDescriptor(@jakarta.annotation.Nullable String externalDescriptor) { + this.externalDescriptor = externalDescriptor; } /** Return true if this PolicyRule object is equal to o. */ @@ -751,95 +1171,116 @@ public boolean equals(Object o) { return false; } PolicyRule policyRule = (PolicyRule) o; - return Objects.equals(this.name, policyRule.name) - && Objects.equals(this.id, policyRule.id) - && Objects.equals(this.policyEngineVersion, policyRule.policyEngineVersion) + return Objects.equals(this.operator, policyRule.operator) + && Objects.equals(this.operators, policyRule.operators) + && Objects.equals(this.transactionType, policyRule.transactionType) + && Objects.equals(this.designatedSigner, policyRule.designatedSigner) + && Objects.equals(this.designatedSigners, policyRule.designatedSigners) && Objects.equals(this.type, policyRule.type) - && Objects.equals(this.subType, policyRule.subType) - && Objects.equals(this.initiator, policyRule.initiator) + && Objects.equals(this.action, policyRule.action) && Objects.equals(this.asset, policyRule.asset) - && Objects.equals(this.source, policyRule.source) - && Objects.equals(this.destination, policyRule.destination) - && Objects.equals(this.account, policyRule.account) - && Objects.equals(this.verdict, policyRule.verdict) - && Objects.equals(this.amountOverTime, policyRule.amountOverTime) + && Objects.equals(this.srcType, policyRule.srcType) + && Objects.equals(this.srcSubType, policyRule.srcSubType) + && Objects.equals(this.srcId, policyRule.srcId) + && Objects.equals(this.src, policyRule.src) + && Objects.equals(this.dstType, policyRule.dstType) + && Objects.equals(this.dstSubType, policyRule.dstSubType) + && Objects.equals(this.dstId, policyRule.dstId) + && Objects.equals(this.dst, policyRule.dst) + && Objects.equals(this.dstAddressType, policyRule.dstAddressType) + && Objects.equals(this.amountCurrency, policyRule.amountCurrency) + && Objects.equals(this.amountScope, policyRule.amountScope) && Objects.equals(this.amount, policyRule.amount) - && Objects.equals(this.externalDescriptor, policyRule.externalDescriptor) - && Objects.equals(this.method, policyRule.method) - && Objects.equals(this.isGlobalPolicy, policyRule.isGlobalPolicy) - && Objects.equals(this.programCall, policyRule.programCall) - && Objects.equals(this.screeningMetadata, policyRule.screeningMetadata) - && Objects.equals(this.quoteAsset, policyRule.quoteAsset) - && Objects.equals(this.baseAsset, policyRule.baseAsset) - && Objects.equals(this.quoteAmount, policyRule.quoteAmount) - && Objects.equals(this.baseAmount, policyRule.baseAmount) - && Objects.equals(this.derivationPath, policyRule.derivationPath) - && Objects.equals(this.index, policyRule.index); + && Objects.equals(this.periodSec, policyRule.periodSec) + && Objects.equals(this.authorizers, policyRule.authorizers) + && Objects.equals(this.authorizersCount, policyRule.authorizersCount) + && Objects.equals(this.authorizationGroups, policyRule.authorizationGroups) + && Objects.equals(this.amountAggregation, policyRule.amountAggregation) + && Objects.equals(this.rawMessageSigning, policyRule.rawMessageSigning) + && Objects.equals(this.applyForApprove, policyRule.applyForApprove) + && Objects.equals(this.applyForTypedMessage, policyRule.applyForTypedMessage) + && Objects.equals(this.externalDescriptor, policyRule.externalDescriptor); } @Override public int hashCode() { return Objects.hash( - name, - id, - policyEngineVersion, + operator, + operators, + transactionType, + designatedSigner, + designatedSigners, type, - subType, - initiator, + action, asset, - source, - destination, - account, - verdict, - amountOverTime, + srcType, + srcSubType, + srcId, + src, + dstType, + dstSubType, + dstId, + dst, + dstAddressType, + amountCurrency, + amountScope, amount, - externalDescriptor, - method, - isGlobalPolicy, - programCall, - screeningMetadata, - quoteAsset, - baseAsset, - quoteAmount, - baseAmount, - derivationPath, - index); + periodSec, + authorizers, + authorizersCount, + authorizationGroups, + amountAggregation, + rawMessageSigning, + applyForApprove, + applyForTypedMessage, + externalDescriptor); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PolicyRule {\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" policyEngineVersion: ") - .append(toIndentedString(policyEngineVersion)) + sb.append(" operator: ").append(toIndentedString(operator)).append("\n"); + sb.append(" operators: ").append(toIndentedString(operators)).append("\n"); + sb.append(" transactionType: ").append(toIndentedString(transactionType)).append("\n"); + sb.append(" designatedSigner: ").append(toIndentedString(designatedSigner)).append("\n"); + sb.append(" designatedSigners: ") + .append(toIndentedString(designatedSigners)) .append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" subType: ").append(toIndentedString(subType)).append("\n"); - sb.append(" initiator: ").append(toIndentedString(initiator)).append("\n"); + sb.append(" action: ").append(toIndentedString(action)).append("\n"); sb.append(" asset: ").append(toIndentedString(asset)).append("\n"); - sb.append(" source: ").append(toIndentedString(source)).append("\n"); - sb.append(" destination: ").append(toIndentedString(destination)).append("\n"); - sb.append(" account: ").append(toIndentedString(account)).append("\n"); - sb.append(" verdict: ").append(toIndentedString(verdict)).append("\n"); - sb.append(" amountOverTime: ").append(toIndentedString(amountOverTime)).append("\n"); + sb.append(" srcType: ").append(toIndentedString(srcType)).append("\n"); + sb.append(" srcSubType: ").append(toIndentedString(srcSubType)).append("\n"); + sb.append(" srcId: ").append(toIndentedString(srcId)).append("\n"); + sb.append(" src: ").append(toIndentedString(src)).append("\n"); + sb.append(" dstType: ").append(toIndentedString(dstType)).append("\n"); + sb.append(" dstSubType: ").append(toIndentedString(dstSubType)).append("\n"); + sb.append(" dstId: ").append(toIndentedString(dstId)).append("\n"); + sb.append(" dst: ").append(toIndentedString(dst)).append("\n"); + sb.append(" dstAddressType: ").append(toIndentedString(dstAddressType)).append("\n"); + sb.append(" amountCurrency: ").append(toIndentedString(amountCurrency)).append("\n"); + sb.append(" amountScope: ").append(toIndentedString(amountScope)).append("\n"); sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); + sb.append(" periodSec: ").append(toIndentedString(periodSec)).append("\n"); + sb.append(" authorizers: ").append(toIndentedString(authorizers)).append("\n"); + sb.append(" authorizersCount: ").append(toIndentedString(authorizersCount)).append("\n"); + sb.append(" authorizationGroups: ") + .append(toIndentedString(authorizationGroups)) + .append("\n"); + sb.append(" amountAggregation: ") + .append(toIndentedString(amountAggregation)) + .append("\n"); + sb.append(" rawMessageSigning: ") + .append(toIndentedString(rawMessageSigning)) + .append("\n"); + sb.append(" applyForApprove: ").append(toIndentedString(applyForApprove)).append("\n"); + sb.append(" applyForTypedMessage: ") + .append(toIndentedString(applyForTypedMessage)) + .append("\n"); sb.append(" externalDescriptor: ") .append(toIndentedString(externalDescriptor)) .append("\n"); - sb.append(" method: ").append(toIndentedString(method)).append("\n"); - sb.append(" isGlobalPolicy: ").append(toIndentedString(isGlobalPolicy)).append("\n"); - sb.append(" programCall: ").append(toIndentedString(programCall)).append("\n"); - sb.append(" screeningMetadata: ") - .append(toIndentedString(screeningMetadata)) - .append("\n"); - sb.append(" quoteAsset: ").append(toIndentedString(quoteAsset)).append("\n"); - sb.append(" baseAsset: ").append(toIndentedString(baseAsset)).append("\n"); - sb.append(" quoteAmount: ").append(toIndentedString(quoteAmount)).append("\n"); - sb.append(" baseAmount: ").append(toIndentedString(baseAmount)).append("\n"); - sb.append(" derivationPath: ").append(toIndentedString(derivationPath)).append("\n"); - sb.append(" index: ").append(toIndentedString(index)).append("\n"); sb.append("}"); return sb.toString(); } @@ -887,33 +1328,45 @@ public String toUrlQueryString(String prefix) { StringJoiner joiner = new StringJoiner("&"); - // add `name` to the URL query string - if (getName() != null) { + // add `operator` to the URL query string + if (getOperator() != null) { joiner.add( String.format( - "%sname%s=%s", + "%soperator%s=%s", prefix, suffix, - ApiClient.urlEncode(ApiClient.valueToString(getName())))); + ApiClient.urlEncode(ApiClient.valueToString(getOperator())))); } - // add `id` to the URL query string - if (getId() != null) { + // add `operators` to the URL query string + if (getOperators() != null) { + joiner.add(getOperators().toUrlQueryString(prefix + "operators" + suffix)); + } + + // add `transactionType` to the URL query string + if (getTransactionType() != null) { joiner.add( String.format( - "%sid%s=%s", - prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); + "%stransactionType%s=%s", + prefix, + suffix, + ApiClient.urlEncode(ApiClient.valueToString(getTransactionType())))); } - // add `policyEngineVersion` to the URL query string - if (getPolicyEngineVersion() != null) { + // add `designatedSigner` to the URL query string + if (getDesignatedSigner() != null) { joiner.add( String.format( - "%spolicyEngineVersion%s=%s", + "%sdesignatedSigner%s=%s", prefix, suffix, - ApiClient.urlEncode( - ApiClient.valueToString(getPolicyEngineVersion())))); + ApiClient.urlEncode(ApiClient.valueToString(getDesignatedSigner())))); + } + + // add `designatedSigners` to the URL query string + if (getDesignatedSigners() != null) { + joiner.add( + getDesignatedSigners().toUrlQueryString(prefix + "designatedSigners" + suffix)); } // add `type` to the URL query string @@ -926,125 +1379,216 @@ public String toUrlQueryString(String prefix) { ApiClient.urlEncode(ApiClient.valueToString(getType())))); } - // add `subType` to the URL query string - if (getSubType() != null) { + // add `action` to the URL query string + if (getAction() != null) { joiner.add( String.format( - "%ssubType%s=%s", + "%saction%s=%s", prefix, suffix, - ApiClient.urlEncode(ApiClient.valueToString(getSubType())))); - } - - // add `initiator` to the URL query string - if (getInitiator() != null) { - joiner.add(getInitiator().toUrlQueryString(prefix + "initiator" + suffix)); + ApiClient.urlEncode(ApiClient.valueToString(getAction())))); } // add `asset` to the URL query string if (getAsset() != null) { - joiner.add(getAsset().toUrlQueryString(prefix + "asset" + suffix)); + joiner.add( + String.format( + "%sasset%s=%s", + prefix, + suffix, + ApiClient.urlEncode(ApiClient.valueToString(getAsset())))); } - // add `source` to the URL query string - if (getSource() != null) { - joiner.add(getSource().toUrlQueryString(prefix + "source" + suffix)); + // add `srcType` to the URL query string + if (getSrcType() != null) { + joiner.add( + String.format( + "%ssrcType%s=%s", + prefix, + suffix, + ApiClient.urlEncode(ApiClient.valueToString(getSrcType())))); } - // add `destination` to the URL query string - if (getDestination() != null) { - joiner.add(getDestination().toUrlQueryString(prefix + "destination" + suffix)); + // add `srcSubType` to the URL query string + if (getSrcSubType() != null) { + joiner.add( + String.format( + "%ssrcSubType%s=%s", + prefix, + suffix, + ApiClient.urlEncode(ApiClient.valueToString(getSrcSubType())))); } - // add `account` to the URL query string - if (getAccount() != null) { - joiner.add(getAccount().toUrlQueryString(prefix + "account" + suffix)); + // add `srcId` to the URL query string + if (getSrcId() != null) { + joiner.add( + String.format( + "%ssrcId%s=%s", + prefix, + suffix, + ApiClient.urlEncode(ApiClient.valueToString(getSrcId())))); } - // add `verdict` to the URL query string - if (getVerdict() != null) { - joiner.add(getVerdict().toUrlQueryString(prefix + "verdict" + suffix)); + // add `src` to the URL query string + if (getSrc() != null) { + joiner.add(getSrc().toUrlQueryString(prefix + "src" + suffix)); } - // add `amountOverTime` to the URL query string - if (getAmountOverTime() != null) { - joiner.add(getAmountOverTime().toUrlQueryString(prefix + "amountOverTime" + suffix)); + // add `dstType` to the URL query string + if (getDstType() != null) { + joiner.add( + String.format( + "%sdstType%s=%s", + prefix, + suffix, + ApiClient.urlEncode(ApiClient.valueToString(getDstType())))); } - // add `amount` to the URL query string - if (getAmount() != null) { - joiner.add(getAmount().toUrlQueryString(prefix + "amount" + suffix)); + // add `dstSubType` to the URL query string + if (getDstSubType() != null) { + joiner.add( + String.format( + "%sdstSubType%s=%s", + prefix, + suffix, + ApiClient.urlEncode(ApiClient.valueToString(getDstSubType())))); } - // add `externalDescriptor` to the URL query string - if (getExternalDescriptor() != null) { + // add `dstId` to the URL query string + if (getDstId() != null) { joiner.add( String.format( - "%sexternalDescriptor%s=%s", + "%sdstId%s=%s", prefix, suffix, - ApiClient.urlEncode(ApiClient.valueToString(getExternalDescriptor())))); + ApiClient.urlEncode(ApiClient.valueToString(getDstId())))); + } + + // add `dst` to the URL query string + if (getDst() != null) { + joiner.add(getDst().toUrlQueryString(prefix + "dst" + suffix)); + } + + // add `dstAddressType` to the URL query string + if (getDstAddressType() != null) { + joiner.add( + String.format( + "%sdstAddressType%s=%s", + prefix, + suffix, + ApiClient.urlEncode(ApiClient.valueToString(getDstAddressType())))); + } + + // add `amountCurrency` to the URL query string + if (getAmountCurrency() != null) { + joiner.add( + String.format( + "%samountCurrency%s=%s", + prefix, + suffix, + ApiClient.urlEncode(ApiClient.valueToString(getAmountCurrency())))); + } + + // add `amountScope` to the URL query string + if (getAmountScope() != null) { + joiner.add( + String.format( + "%samountScope%s=%s", + prefix, + suffix, + ApiClient.urlEncode(ApiClient.valueToString(getAmountScope())))); } - // add `method` to the URL query string - if (getMethod() != null) { - joiner.add(getMethod().toUrlQueryString(prefix + "method" + suffix)); + // add `amount` to the URL query string + if (getAmount() != null) { + joiner.add(getAmount().toUrlQueryString(prefix + "amount" + suffix)); } - // add `isGlobalPolicy` to the URL query string - if (getIsGlobalPolicy() != null) { + // add `periodSec` to the URL query string + if (getPeriodSec() != null) { joiner.add( String.format( - "%sisGlobalPolicy%s=%s", + "%speriodSec%s=%s", prefix, suffix, - ApiClient.urlEncode(ApiClient.valueToString(getIsGlobalPolicy())))); + ApiClient.urlEncode(ApiClient.valueToString(getPeriodSec())))); } - // add `programCall` to the URL query string - if (getProgramCall() != null) { - joiner.add(getProgramCall().toUrlQueryString(prefix + "programCall" + suffix)); + // add `authorizers` to the URL query string + if (getAuthorizers() != null) { + for (int i = 0; i < getAuthorizers().size(); i++) { + joiner.add( + String.format( + "%sauthorizers%s%s=%s", + prefix, + suffix, + "".equals(suffix) + ? "" + : String.format( + "%s%d%s", containerPrefix, i, containerSuffix), + ApiClient.urlEncode( + ApiClient.valueToString(getAuthorizers().get(i))))); + } } - // add `screeningMetadata` to the URL query string - if (getScreeningMetadata() != null) { + // add `authorizersCount` to the URL query string + if (getAuthorizersCount() != null) { joiner.add( - getScreeningMetadata().toUrlQueryString(prefix + "screeningMetadata" + suffix)); + String.format( + "%sauthorizersCount%s=%s", + prefix, + suffix, + ApiClient.urlEncode(ApiClient.valueToString(getAuthorizersCount())))); } - // add `quoteAsset` to the URL query string - if (getQuoteAsset() != null) { - joiner.add(getQuoteAsset().toUrlQueryString(prefix + "quoteAsset" + suffix)); + // add `authorizationGroups` to the URL query string + if (getAuthorizationGroups() != null) { + joiner.add( + getAuthorizationGroups() + .toUrlQueryString(prefix + "authorizationGroups" + suffix)); } - // add `baseAsset` to the URL query string - if (getBaseAsset() != null) { - joiner.add(getBaseAsset().toUrlQueryString(prefix + "baseAsset" + suffix)); + // add `amountAggregation` to the URL query string + if (getAmountAggregation() != null) { + joiner.add( + getAmountAggregation().toUrlQueryString(prefix + "amountAggregation" + suffix)); } - // add `quoteAmount` to the URL query string - if (getQuoteAmount() != null) { - joiner.add(getQuoteAmount().toUrlQueryString(prefix + "quoteAmount" + suffix)); + // add `rawMessageSigning` to the URL query string + if (getRawMessageSigning() != null) { + joiner.add( + getRawMessageSigning().toUrlQueryString(prefix + "rawMessageSigning" + suffix)); } - // add `baseAmount` to the URL query string - if (getBaseAmount() != null) { - joiner.add(getBaseAmount().toUrlQueryString(prefix + "baseAmount" + suffix)); + // add `applyForApprove` to the URL query string + if (getApplyForApprove() != null) { + joiner.add( + String.format( + "%sapplyForApprove%s=%s", + prefix, + suffix, + ApiClient.urlEncode(ApiClient.valueToString(getApplyForApprove())))); } - // add `derivationPath` to the URL query string - if (getDerivationPath() != null) { - joiner.add(getDerivationPath().toUrlQueryString(prefix + "derivationPath" + suffix)); + // add `applyForTypedMessage` to the URL query string + if (getApplyForTypedMessage() != null) { + joiner.add( + String.format( + "%sapplyForTypedMessage%s=%s", + prefix, + suffix, + ApiClient.urlEncode( + ApiClient.valueToString(getApplyForTypedMessage())))); } - // add `index` to the URL query string - if (getIndex() != null) { + // add `externalDescriptor` to the URL query string + if (getExternalDescriptor() != null) { joiner.add( String.format( - "%sindex%s=%s", + "%sexternalDescriptor%s=%s", prefix, suffix, - ApiClient.urlEncode(ApiClient.valueToString(getIndex())))); + ApiClient.urlEncode(ApiClient.valueToString(getExternalDescriptor())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleAmount.java b/src/main/java/com/fireblocks/sdk/model/PolicyRuleAmount.java similarity index 77% rename from src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleAmount.java rename to src/main/java/com/fireblocks/sdk/model/PolicyRuleAmount.java index 4edc5c51..021bc672 100644 --- a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleAmount.java +++ b/src/main/java/com/fireblocks/sdk/model/PolicyRuleAmount.java @@ -38,41 +38,39 @@ @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") -@JsonDeserialize(using = LegacyPolicyRuleAmount.LegacyPolicyRuleAmountDeserializer.class) -@JsonSerialize(using = LegacyPolicyRuleAmount.LegacyPolicyRuleAmountSerializer.class) -public class LegacyPolicyRuleAmount extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(LegacyPolicyRuleAmount.class.getName()); - - public static class LegacyPolicyRuleAmountSerializer - extends StdSerializer { - public LegacyPolicyRuleAmountSerializer(Class t) { +@JsonDeserialize(using = PolicyRuleAmount.PolicyRuleAmountDeserializer.class) +@JsonSerialize(using = PolicyRuleAmount.PolicyRuleAmountSerializer.class) +public class PolicyRuleAmount extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(PolicyRuleAmount.class.getName()); + + public static class PolicyRuleAmountSerializer extends StdSerializer { + public PolicyRuleAmountSerializer(Class t) { super(t); } - public LegacyPolicyRuleAmountSerializer() { + public PolicyRuleAmountSerializer() { this(null); } @Override public void serialize( - LegacyPolicyRuleAmount value, JsonGenerator jgen, SerializerProvider provider) + PolicyRuleAmount value, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { jgen.writeObject(value.getActualInstance()); } } - public static class LegacyPolicyRuleAmountDeserializer - extends StdDeserializer { - public LegacyPolicyRuleAmountDeserializer() { - this(LegacyPolicyRuleAmount.class); + public static class PolicyRuleAmountDeserializer extends StdDeserializer { + public PolicyRuleAmountDeserializer() { + this(PolicyRuleAmount.class); } - public LegacyPolicyRuleAmountDeserializer(Class vc) { + public PolicyRuleAmountDeserializer(Class vc) { super(vc); } @Override - public LegacyPolicyRuleAmount deserialize(JsonParser jp, DeserializationContext ctxt) + public PolicyRuleAmount deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { JsonNode tree = jp.readValueAsTree(); @@ -80,52 +78,50 @@ public LegacyPolicyRuleAmount deserialize(JsonParser jp, DeserializationContext // deserialize BigDecimal try { deserialized = tree.traverse(jp.getCodec()).readValueAs(BigDecimal.class); - LegacyPolicyRuleAmount ret = new LegacyPolicyRuleAmount(); + PolicyRuleAmount ret = new PolicyRuleAmount(); ret.setActualInstance(deserialized); return ret; } catch (Exception e) { // deserialization failed, continue, log to help debugging - log.log(Level.FINER, "Input data does not match 'LegacyPolicyRuleAmount'", e); + log.log(Level.FINER, "Input data does not match 'PolicyRuleAmount'", e); } // deserialize String try { deserialized = tree.traverse(jp.getCodec()).readValueAs(String.class); - LegacyPolicyRuleAmount ret = new LegacyPolicyRuleAmount(); + PolicyRuleAmount ret = new PolicyRuleAmount(); ret.setActualInstance(deserialized); return ret; } catch (Exception e) { // deserialization failed, continue, log to help debugging - log.log(Level.FINER, "Input data does not match 'LegacyPolicyRuleAmount'", e); + log.log(Level.FINER, "Input data does not match 'PolicyRuleAmount'", e); } throw new IOException( - String.format( - "Failed deserialization for LegacyPolicyRuleAmount: no match found")); + String.format("Failed deserialization for PolicyRuleAmount: no match found")); } /** Handle deserialization of the 'null' value. */ @Override - public LegacyPolicyRuleAmount getNullValue(DeserializationContext ctxt) + public PolicyRuleAmount getNullValue(DeserializationContext ctxt) throws JsonMappingException { - throw new JsonMappingException( - ctxt.getParser(), "LegacyPolicyRuleAmount cannot be null"); + throw new JsonMappingException(ctxt.getParser(), "PolicyRuleAmount cannot be null"); } } // store a list of schema names defined in anyOf public static final Map> schemas = new HashMap>(); - public LegacyPolicyRuleAmount() { + public PolicyRuleAmount() { super("anyOf", Boolean.FALSE); } - public LegacyPolicyRuleAmount(BigDecimal o) { + public PolicyRuleAmount(BigDecimal o) { super("anyOf", Boolean.FALSE); setActualInstance(o); } - public LegacyPolicyRuleAmount(String o) { + public PolicyRuleAmount(String o) { super("anyOf", Boolean.FALSE); setActualInstance(o); } @@ -133,13 +129,12 @@ public LegacyPolicyRuleAmount(String o) { static { schemas.put("BigDecimal", BigDecimal.class); schemas.put("String", String.class); - JSON.registerDescendants( - LegacyPolicyRuleAmount.class, Collections.unmodifiableMap(schemas)); + JSON.registerDescendants(PolicyRuleAmount.class, Collections.unmodifiableMap(schemas)); } @Override public Map> getSchemas() { - return LegacyPolicyRuleAmount.schemas; + return PolicyRuleAmount.schemas; } /** diff --git a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleAmountAggregation.java b/src/main/java/com/fireblocks/sdk/model/PolicyRuleAmountAggregation.java similarity index 74% rename from src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleAmountAggregation.java rename to src/main/java/com/fireblocks/sdk/model/PolicyRuleAmountAggregation.java index 2eabd4b6..c68dca14 100644 --- a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleAmountAggregation.java +++ b/src/main/java/com/fireblocks/sdk/model/PolicyRuleAmountAggregation.java @@ -26,27 +26,27 @@ * under Time Period. */ @JsonPropertyOrder({ - LegacyPolicyRuleAmountAggregation.JSON_PROPERTY_OPERATORS, - LegacyPolicyRuleAmountAggregation.JSON_PROPERTY_SRC_TRANSFER_PEERS, - LegacyPolicyRuleAmountAggregation.JSON_PROPERTY_DST_TRANSFER_PEERS + PolicyRuleAmountAggregation.JSON_PROPERTY_OPERATORS, + PolicyRuleAmountAggregation.JSON_PROPERTY_SRC_TRANSFER_PEERS, + PolicyRuleAmountAggregation.JSON_PROPERTY_DST_TRANSFER_PEERS }) @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") -public class LegacyPolicyRuleAmountAggregation { +public class PolicyRuleAmountAggregation { public static final String JSON_PROPERTY_OPERATORS = "operators"; - @jakarta.annotation.Nullable private LegacyAmountAggregationTimePeriodMethod operators; + @jakarta.annotation.Nullable private AmountAggregationTimePeriodMethod operators; public static final String JSON_PROPERTY_SRC_TRANSFER_PEERS = "srcTransferPeers"; - @jakarta.annotation.Nullable private LegacyAmountAggregationTimePeriodMethod srcTransferPeers; + @jakarta.annotation.Nullable private AmountAggregationTimePeriodMethod srcTransferPeers; public static final String JSON_PROPERTY_DST_TRANSFER_PEERS = "dstTransferPeers"; - @jakarta.annotation.Nullable private LegacyAmountAggregationTimePeriodMethod dstTransferPeers; + @jakarta.annotation.Nullable private AmountAggregationTimePeriodMethod dstTransferPeers; - public LegacyPolicyRuleAmountAggregation() {} + public PolicyRuleAmountAggregation() {} - public LegacyPolicyRuleAmountAggregation operators( - @jakarta.annotation.Nullable LegacyAmountAggregationTimePeriodMethod operators) { + public PolicyRuleAmountAggregation operators( + @jakarta.annotation.Nullable AmountAggregationTimePeriodMethod operators) { this.operators = operators; return this; } @@ -59,19 +59,19 @@ public LegacyPolicyRuleAmountAggregation operators( @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_OPERATORS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public LegacyAmountAggregationTimePeriodMethod getOperators() { + public AmountAggregationTimePeriodMethod getOperators() { return operators; } @JsonProperty(JSON_PROPERTY_OPERATORS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOperators( - @jakarta.annotation.Nullable LegacyAmountAggregationTimePeriodMethod operators) { + @jakarta.annotation.Nullable AmountAggregationTimePeriodMethod operators) { this.operators = operators; } - public LegacyPolicyRuleAmountAggregation srcTransferPeers( - @jakarta.annotation.Nullable LegacyAmountAggregationTimePeriodMethod srcTransferPeers) { + public PolicyRuleAmountAggregation srcTransferPeers( + @jakarta.annotation.Nullable AmountAggregationTimePeriodMethod srcTransferPeers) { this.srcTransferPeers = srcTransferPeers; return this; } @@ -84,19 +84,19 @@ public LegacyPolicyRuleAmountAggregation srcTransferPeers( @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SRC_TRANSFER_PEERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public LegacyAmountAggregationTimePeriodMethod getSrcTransferPeers() { + public AmountAggregationTimePeriodMethod getSrcTransferPeers() { return srcTransferPeers; } @JsonProperty(JSON_PROPERTY_SRC_TRANSFER_PEERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSrcTransferPeers( - @jakarta.annotation.Nullable LegacyAmountAggregationTimePeriodMethod srcTransferPeers) { + @jakarta.annotation.Nullable AmountAggregationTimePeriodMethod srcTransferPeers) { this.srcTransferPeers = srcTransferPeers; } - public LegacyPolicyRuleAmountAggregation dstTransferPeers( - @jakarta.annotation.Nullable LegacyAmountAggregationTimePeriodMethod dstTransferPeers) { + public PolicyRuleAmountAggregation dstTransferPeers( + @jakarta.annotation.Nullable AmountAggregationTimePeriodMethod dstTransferPeers) { this.dstTransferPeers = dstTransferPeers; return this; } @@ -109,18 +109,18 @@ public LegacyPolicyRuleAmountAggregation dstTransferPeers( @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DST_TRANSFER_PEERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public LegacyAmountAggregationTimePeriodMethod getDstTransferPeers() { + public AmountAggregationTimePeriodMethod getDstTransferPeers() { return dstTransferPeers; } @JsonProperty(JSON_PROPERTY_DST_TRANSFER_PEERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDstTransferPeers( - @jakarta.annotation.Nullable LegacyAmountAggregationTimePeriodMethod dstTransferPeers) { + @jakarta.annotation.Nullable AmountAggregationTimePeriodMethod dstTransferPeers) { this.dstTransferPeers = dstTransferPeers; } - /** Return true if this LegacyPolicyRule_amountAggregation object is equal to o. */ + /** Return true if this PolicyRule_amountAggregation object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -129,13 +129,12 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - LegacyPolicyRuleAmountAggregation legacyPolicyRuleAmountAggregation = - (LegacyPolicyRuleAmountAggregation) o; - return Objects.equals(this.operators, legacyPolicyRuleAmountAggregation.operators) + PolicyRuleAmountAggregation policyRuleAmountAggregation = (PolicyRuleAmountAggregation) o; + return Objects.equals(this.operators, policyRuleAmountAggregation.operators) && Objects.equals( - this.srcTransferPeers, legacyPolicyRuleAmountAggregation.srcTransferPeers) + this.srcTransferPeers, policyRuleAmountAggregation.srcTransferPeers) && Objects.equals( - this.dstTransferPeers, legacyPolicyRuleAmountAggregation.dstTransferPeers); + this.dstTransferPeers, policyRuleAmountAggregation.dstTransferPeers); } @Override @@ -146,7 +145,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class LegacyPolicyRuleAmountAggregation {\n"); + sb.append("class PolicyRuleAmountAggregation {\n"); sb.append(" operators: ").append(toIndentedString(operators)).append("\n"); sb.append(" srcTransferPeers: ").append(toIndentedString(srcTransferPeers)).append("\n"); sb.append(" dstTransferPeers: ").append(toIndentedString(dstTransferPeers)).append("\n"); diff --git a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleAuthorizationGroups.java b/src/main/java/com/fireblocks/sdk/model/PolicyRuleAuthorizationGroups.java similarity index 83% rename from src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleAuthorizationGroups.java rename to src/main/java/com/fireblocks/sdk/model/PolicyRuleAuthorizationGroups.java index 5e0e4347..d83882e8 100644 --- a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleAuthorizationGroups.java +++ b/src/main/java/com/fireblocks/sdk/model/PolicyRuleAuthorizationGroups.java @@ -26,14 +26,14 @@ /** Defines the transaction approval terms */ @JsonPropertyOrder({ - LegacyPolicyRuleAuthorizationGroups.JSON_PROPERTY_LOGIC, - LegacyPolicyRuleAuthorizationGroups.JSON_PROPERTY_ALLOW_OPERATOR_AS_AUTHORIZER, - LegacyPolicyRuleAuthorizationGroups.JSON_PROPERTY_GROUPS + PolicyRuleAuthorizationGroups.JSON_PROPERTY_LOGIC, + PolicyRuleAuthorizationGroups.JSON_PROPERTY_ALLOW_OPERATOR_AS_AUTHORIZER, + PolicyRuleAuthorizationGroups.JSON_PROPERTY_GROUPS }) @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") -public class LegacyPolicyRuleAuthorizationGroups { +public class PolicyRuleAuthorizationGroups { /** * * AND - requires approval of all authorization groups * OR - requires approval of at least * one of the authorization groups @@ -78,13 +78,11 @@ public static LogicEnum fromValue(String value) { @jakarta.annotation.Nullable private Boolean allowOperatorAsAuthorizer; public static final String JSON_PROPERTY_GROUPS = "groups"; + @jakarta.annotation.Nullable private List groups; - @jakarta.annotation.Nullable - private List groups = new ArrayList<>(); - - public LegacyPolicyRuleAuthorizationGroups() {} + public PolicyRuleAuthorizationGroups() {} - public LegacyPolicyRuleAuthorizationGroups logic(@jakarta.annotation.Nullable LogicEnum logic) { + public PolicyRuleAuthorizationGroups logic(@jakarta.annotation.Nullable LogicEnum logic) { this.logic = logic; return this; } @@ -108,7 +106,7 @@ public void setLogic(@jakarta.annotation.Nullable LogicEnum logic) { this.logic = logic; } - public LegacyPolicyRuleAuthorizationGroups allowOperatorAsAuthorizer( + public PolicyRuleAuthorizationGroups allowOperatorAsAuthorizer( @jakarta.annotation.Nullable Boolean allowOperatorAsAuthorizer) { this.allowOperatorAsAuthorizer = allowOperatorAsAuthorizer; return this; @@ -134,15 +132,14 @@ public void setAllowOperatorAsAuthorizer( this.allowOperatorAsAuthorizer = allowOperatorAsAuthorizer; } - public LegacyPolicyRuleAuthorizationGroups groups( - @jakarta.annotation.Nullable - List groups) { + public PolicyRuleAuthorizationGroups groups( + @jakarta.annotation.Nullable List groups) { this.groups = groups; return this; } - public LegacyPolicyRuleAuthorizationGroups addGroupsItem( - LegacyPolicyRuleAuthorizationGroupsGroupsInner groupsItem) { + public PolicyRuleAuthorizationGroups addGroupsItem( + PolicyRuleAuthorizationGroupsGroupsInner groupsItem) { if (this.groups == null) { this.groups = new ArrayList<>(); } @@ -158,19 +155,18 @@ public LegacyPolicyRuleAuthorizationGroups addGroupsItem( @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_GROUPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getGroups() { + public List getGroups() { return groups; } @JsonProperty(JSON_PROPERTY_GROUPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setGroups( - @jakarta.annotation.Nullable - List groups) { + @jakarta.annotation.Nullable List groups) { this.groups = groups; } - /** Return true if this LegacyPolicyRule_authorizationGroups object is equal to o. */ + /** Return true if this PolicyRule_authorizationGroups object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -179,13 +175,13 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - LegacyPolicyRuleAuthorizationGroups legacyPolicyRuleAuthorizationGroups = - (LegacyPolicyRuleAuthorizationGroups) o; - return Objects.equals(this.logic, legacyPolicyRuleAuthorizationGroups.logic) + PolicyRuleAuthorizationGroups policyRuleAuthorizationGroups = + (PolicyRuleAuthorizationGroups) o; + return Objects.equals(this.logic, policyRuleAuthorizationGroups.logic) && Objects.equals( this.allowOperatorAsAuthorizer, - legacyPolicyRuleAuthorizationGroups.allowOperatorAsAuthorizer) - && Objects.equals(this.groups, legacyPolicyRuleAuthorizationGroups.groups); + policyRuleAuthorizationGroups.allowOperatorAsAuthorizer) + && Objects.equals(this.groups, policyRuleAuthorizationGroups.groups); } @Override @@ -196,7 +192,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class LegacyPolicyRuleAuthorizationGroups {\n"); + sb.append("class PolicyRuleAuthorizationGroups {\n"); sb.append(" logic: ").append(toIndentedString(logic)).append("\n"); sb.append(" allowOperatorAsAuthorizer: ") .append(toIndentedString(allowOperatorAsAuthorizer)) diff --git a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleAuthorizationGroupsGroupsInner.java b/src/main/java/com/fireblocks/sdk/model/PolicyRuleAuthorizationGroupsGroupsInner.java similarity index 81% rename from src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleAuthorizationGroupsGroupsInner.java rename to src/main/java/com/fireblocks/sdk/model/PolicyRuleAuthorizationGroupsGroupsInner.java index dc682d50..74c89eec 100644 --- a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleAuthorizationGroupsGroupsInner.java +++ b/src/main/java/com/fireblocks/sdk/model/PolicyRuleAuthorizationGroupsGroupsInner.java @@ -23,34 +23,34 @@ import java.util.Objects; import java.util.StringJoiner; -/** LegacyPolicyRuleAuthorizationGroupsGroupsInner */ +/** PolicyRuleAuthorizationGroupsGroupsInner */ @JsonPropertyOrder({ - LegacyPolicyRuleAuthorizationGroupsGroupsInner.JSON_PROPERTY_USERS, - LegacyPolicyRuleAuthorizationGroupsGroupsInner.JSON_PROPERTY_USERS_GROUPS, - LegacyPolicyRuleAuthorizationGroupsGroupsInner.JSON_PROPERTY_TH + PolicyRuleAuthorizationGroupsGroupsInner.JSON_PROPERTY_USERS, + PolicyRuleAuthorizationGroupsGroupsInner.JSON_PROPERTY_USERS_GROUPS, + PolicyRuleAuthorizationGroupsGroupsInner.JSON_PROPERTY_TH }) @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") -public class LegacyPolicyRuleAuthorizationGroupsGroupsInner { +public class PolicyRuleAuthorizationGroupsGroupsInner { public static final String JSON_PROPERTY_USERS = "users"; - @jakarta.annotation.Nullable private List users = new ArrayList<>(); + @jakarta.annotation.Nullable private List users; public static final String JSON_PROPERTY_USERS_GROUPS = "usersGroups"; - @jakarta.annotation.Nullable private List usersGroups = new ArrayList<>(); + @jakarta.annotation.Nullable private List usersGroups; public static final String JSON_PROPERTY_TH = "th"; @jakarta.annotation.Nullable private BigDecimal th; - public LegacyPolicyRuleAuthorizationGroupsGroupsInner() {} + public PolicyRuleAuthorizationGroupsGroupsInner() {} - public LegacyPolicyRuleAuthorizationGroupsGroupsInner users( + public PolicyRuleAuthorizationGroupsGroupsInner users( @jakarta.annotation.Nullable List users) { this.users = users; return this; } - public LegacyPolicyRuleAuthorizationGroupsGroupsInner addUsersItem(String usersItem) { + public PolicyRuleAuthorizationGroupsGroupsInner addUsersItem(String usersItem) { if (this.users == null) { this.users = new ArrayList<>(); } @@ -76,14 +76,13 @@ public void setUsers(@jakarta.annotation.Nullable List users) { this.users = users; } - public LegacyPolicyRuleAuthorizationGroupsGroupsInner usersGroups( + public PolicyRuleAuthorizationGroupsGroupsInner usersGroups( @jakarta.annotation.Nullable List usersGroups) { this.usersGroups = usersGroups; return this; } - public LegacyPolicyRuleAuthorizationGroupsGroupsInner addUsersGroupsItem( - String usersGroupsItem) { + public PolicyRuleAuthorizationGroupsGroupsInner addUsersGroupsItem(String usersGroupsItem) { if (this.usersGroups == null) { this.usersGroups = new ArrayList<>(); } @@ -109,8 +108,7 @@ public void setUsersGroups(@jakarta.annotation.Nullable List usersGroups this.usersGroups = usersGroups; } - public LegacyPolicyRuleAuthorizationGroupsGroupsInner th( - @jakarta.annotation.Nullable BigDecimal th) { + public PolicyRuleAuthorizationGroupsGroupsInner th(@jakarta.annotation.Nullable BigDecimal th) { this.th = th; return this; } @@ -134,9 +132,7 @@ public void setTh(@jakarta.annotation.Nullable BigDecimal th) { this.th = th; } - /** - * Return true if this LegacyPolicyRule_authorizationGroups_groups_inner object is equal to o. - */ + /** Return true if this PolicyRule_authorizationGroups_groups_inner object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -145,14 +141,12 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - LegacyPolicyRuleAuthorizationGroupsGroupsInner - legacyPolicyRuleAuthorizationGroupsGroupsInner = - (LegacyPolicyRuleAuthorizationGroupsGroupsInner) o; - return Objects.equals(this.users, legacyPolicyRuleAuthorizationGroupsGroupsInner.users) + PolicyRuleAuthorizationGroupsGroupsInner policyRuleAuthorizationGroupsGroupsInner = + (PolicyRuleAuthorizationGroupsGroupsInner) o; + return Objects.equals(this.users, policyRuleAuthorizationGroupsGroupsInner.users) && Objects.equals( - this.usersGroups, - legacyPolicyRuleAuthorizationGroupsGroupsInner.usersGroups) - && Objects.equals(this.th, legacyPolicyRuleAuthorizationGroupsGroupsInner.th); + this.usersGroups, policyRuleAuthorizationGroupsGroupsInner.usersGroups) + && Objects.equals(this.th, policyRuleAuthorizationGroupsGroupsInner.th); } @Override @@ -163,7 +157,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class LegacyPolicyRuleAuthorizationGroupsGroupsInner {\n"); + sb.append("class PolicyRuleAuthorizationGroupsGroupsInner {\n"); sb.append(" users: ").append(toIndentedString(users)).append("\n"); sb.append(" usersGroups: ").append(toIndentedString(usersGroups)).append("\n"); sb.append(" th: ").append(toIndentedString(th)).append("\n"); diff --git a/src/main/java/com/fireblocks/sdk/model/PolicyRuleCheckResult.java b/src/main/java/com/fireblocks/sdk/model/PolicyRuleCheckResult.java index 8978f1d5..0f0e30a3 100644 --- a/src/main/java/com/fireblocks/sdk/model/PolicyRuleCheckResult.java +++ b/src/main/java/com/fireblocks/sdk/model/PolicyRuleCheckResult.java @@ -75,7 +75,7 @@ public static StatusEnum fromValue(String value) { @jakarta.annotation.Nonnull private StatusEnum status; public static final String JSON_PROPERTY_ERRORS = "errors"; - @jakarta.annotation.Nonnull private List errors = new ArrayList<>(); + @jakarta.annotation.Nonnull private List errors; public PolicyRuleCheckResult() {} diff --git a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleDesignatedSigners.java b/src/main/java/com/fireblocks/sdk/model/PolicyRuleDesignatedSigners.java similarity index 84% rename from src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleDesignatedSigners.java rename to src/main/java/com/fireblocks/sdk/model/PolicyRuleDesignatedSigners.java index bb054033..b5661154 100644 --- a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleDesignatedSigners.java +++ b/src/main/java/com/fireblocks/sdk/model/PolicyRuleDesignatedSigners.java @@ -24,28 +24,27 @@ /** Set of ids representing the users who signs transactions that match a specific rule */ @JsonPropertyOrder({ - LegacyPolicyRuleDesignatedSigners.JSON_PROPERTY_USERS, - LegacyPolicyRuleDesignatedSigners.JSON_PROPERTY_USERS_GROUPS + PolicyRuleDesignatedSigners.JSON_PROPERTY_USERS, + PolicyRuleDesignatedSigners.JSON_PROPERTY_USERS_GROUPS }) @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") -public class LegacyPolicyRuleDesignatedSigners { +public class PolicyRuleDesignatedSigners { public static final String JSON_PROPERTY_USERS = "users"; - @jakarta.annotation.Nullable private List users = new ArrayList<>(); + @jakarta.annotation.Nullable private List users; public static final String JSON_PROPERTY_USERS_GROUPS = "usersGroups"; - @jakarta.annotation.Nullable private List usersGroups = new ArrayList<>(); + @jakarta.annotation.Nullable private List usersGroups; - public LegacyPolicyRuleDesignatedSigners() {} + public PolicyRuleDesignatedSigners() {} - public LegacyPolicyRuleDesignatedSigners users( - @jakarta.annotation.Nullable List users) { + public PolicyRuleDesignatedSigners users(@jakarta.annotation.Nullable List users) { this.users = users; return this; } - public LegacyPolicyRuleDesignatedSigners addUsersItem(String usersItem) { + public PolicyRuleDesignatedSigners addUsersItem(String usersItem) { if (this.users == null) { this.users = new ArrayList<>(); } @@ -71,13 +70,13 @@ public void setUsers(@jakarta.annotation.Nullable List users) { this.users = users; } - public LegacyPolicyRuleDesignatedSigners usersGroups( + public PolicyRuleDesignatedSigners usersGroups( @jakarta.annotation.Nullable List usersGroups) { this.usersGroups = usersGroups; return this; } - public LegacyPolicyRuleDesignatedSigners addUsersGroupsItem(String usersGroupsItem) { + public PolicyRuleDesignatedSigners addUsersGroupsItem(String usersGroupsItem) { if (this.usersGroups == null) { this.usersGroups = new ArrayList<>(); } @@ -103,7 +102,7 @@ public void setUsersGroups(@jakarta.annotation.Nullable List usersGroups this.usersGroups = usersGroups; } - /** Return true if this LegacyPolicyRule_designatedSigners object is equal to o. */ + /** Return true if this PolicyRule_designatedSigners object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -112,10 +111,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - LegacyPolicyRuleDesignatedSigners legacyPolicyRuleDesignatedSigners = - (LegacyPolicyRuleDesignatedSigners) o; - return Objects.equals(this.users, legacyPolicyRuleDesignatedSigners.users) - && Objects.equals(this.usersGroups, legacyPolicyRuleDesignatedSigners.usersGroups); + PolicyRuleDesignatedSigners policyRuleDesignatedSigners = (PolicyRuleDesignatedSigners) o; + return Objects.equals(this.users, policyRuleDesignatedSigners.users) + && Objects.equals(this.usersGroups, policyRuleDesignatedSigners.usersGroups); } @Override @@ -126,7 +124,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class LegacyPolicyRuleDesignatedSigners {\n"); + sb.append("class PolicyRuleDesignatedSigners {\n"); sb.append(" users: ").append(toIndentedString(users)).append("\n"); sb.append(" usersGroups: ").append(toIndentedString(usersGroups)).append("\n"); sb.append("}"); diff --git a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleDst.java b/src/main/java/com/fireblocks/sdk/model/PolicyRuleDst.java similarity index 81% rename from src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleDst.java rename to src/main/java/com/fireblocks/sdk/model/PolicyRuleDst.java index 856c5c60..5736e8e0 100644 --- a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleDst.java +++ b/src/main/java/com/fireblocks/sdk/model/PolicyRuleDst.java @@ -23,25 +23,23 @@ import java.util.StringJoiner; /** Defines the destination accounts the rule allows transfers to */ -@JsonPropertyOrder({LegacyPolicyRuleDst.JSON_PROPERTY_IDS}) +@JsonPropertyOrder({PolicyRuleDst.JSON_PROPERTY_IDS}) @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") -public class LegacyPolicyRuleDst { +public class PolicyRuleDst { public static final String JSON_PROPERTY_IDS = "ids"; + @jakarta.annotation.Nullable private List> ids; - @jakarta.annotation.Nullable - private List> ids = new ArrayList<>(); - - public LegacyPolicyRuleDst() {} + public PolicyRuleDst() {} - public LegacyPolicyRuleDst ids( - @jakarta.annotation.Nullable List> ids) { + public PolicyRuleDst ids( + @jakarta.annotation.Nullable List> ids) { this.ids = ids; return this; } - public LegacyPolicyRuleDst addIdsItem(List idsItem) { + public PolicyRuleDst addIdsItem(List idsItem) { if (this.ids == null) { this.ids = new ArrayList<>(); } @@ -57,18 +55,17 @@ public LegacyPolicyRuleDst addIdsItem(List idsIt @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_IDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List> getIds() { + public List> getIds() { return ids; } @JsonProperty(JSON_PROPERTY_IDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIds( - @jakarta.annotation.Nullable List> ids) { + public void setIds(@jakarta.annotation.Nullable List> ids) { this.ids = ids; } - /** Return true if this LegacyPolicyRule_dst object is equal to o. */ + /** Return true if this PolicyRule_dst object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -77,8 +74,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - LegacyPolicyRuleDst legacyPolicyRuleDst = (LegacyPolicyRuleDst) o; - return Objects.equals(this.ids, legacyPolicyRuleDst.ids); + PolicyRuleDst policyRuleDst = (PolicyRuleDst) o; + return Objects.equals(this.ids, policyRuleDst.ids); } @Override @@ -89,7 +86,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class LegacyPolicyRuleDst {\n"); + sb.append("class PolicyRuleDst {\n"); sb.append(" ids: ").append(toIndentedString(ids)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleOperators.java b/src/main/java/com/fireblocks/sdk/model/PolicyRuleOperators.java similarity index 85% rename from src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleOperators.java rename to src/main/java/com/fireblocks/sdk/model/PolicyRuleOperators.java index 2a199c92..ae16b7bf 100644 --- a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleOperators.java +++ b/src/main/java/com/fireblocks/sdk/model/PolicyRuleOperators.java @@ -26,15 +26,15 @@ /** Defines users/groups who can initiate the type of transaction to which the rule applies. */ @JsonPropertyOrder({ - LegacyPolicyRuleOperators.JSON_PROPERTY_WILDCARD, - LegacyPolicyRuleOperators.JSON_PROPERTY_USERS, - LegacyPolicyRuleOperators.JSON_PROPERTY_USERS_GROUPS, - LegacyPolicyRuleOperators.JSON_PROPERTY_SERVICES + PolicyRuleOperators.JSON_PROPERTY_WILDCARD, + PolicyRuleOperators.JSON_PROPERTY_USERS, + PolicyRuleOperators.JSON_PROPERTY_USERS_GROUPS, + PolicyRuleOperators.JSON_PROPERTY_SERVICES }) @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") -public class LegacyPolicyRuleOperators { +public class PolicyRuleOperators { /** * If used then this property should appear as the only child property * \"*\" - All * users are allowed @@ -73,17 +73,17 @@ public static WildcardEnum fromValue(String value) { @jakarta.annotation.Nullable private WildcardEnum wildcard; public static final String JSON_PROPERTY_USERS = "users"; - @jakarta.annotation.Nullable private List users = new ArrayList<>(); + @jakarta.annotation.Nullable private List users; public static final String JSON_PROPERTY_USERS_GROUPS = "usersGroups"; - @jakarta.annotation.Nullable private List usersGroups = new ArrayList<>(); + @jakarta.annotation.Nullable private List usersGroups; public static final String JSON_PROPERTY_SERVICES = "services"; - @jakarta.annotation.Nullable private List services = new ArrayList<>(); + @jakarta.annotation.Nullable private List services; - public LegacyPolicyRuleOperators() {} + public PolicyRuleOperators() {} - public LegacyPolicyRuleOperators wildcard(@jakarta.annotation.Nullable WildcardEnum wildcard) { + public PolicyRuleOperators wildcard(@jakarta.annotation.Nullable WildcardEnum wildcard) { this.wildcard = wildcard; return this; } @@ -107,12 +107,12 @@ public void setWildcard(@jakarta.annotation.Nullable WildcardEnum wildcard) { this.wildcard = wildcard; } - public LegacyPolicyRuleOperators users(@jakarta.annotation.Nullable List users) { + public PolicyRuleOperators users(@jakarta.annotation.Nullable List users) { this.users = users; return this; } - public LegacyPolicyRuleOperators addUsersItem(String usersItem) { + public PolicyRuleOperators addUsersItem(String usersItem) { if (this.users == null) { this.users = new ArrayList<>(); } @@ -138,13 +138,12 @@ public void setUsers(@jakarta.annotation.Nullable List users) { this.users = users; } - public LegacyPolicyRuleOperators usersGroups( - @jakarta.annotation.Nullable List usersGroups) { + public PolicyRuleOperators usersGroups(@jakarta.annotation.Nullable List usersGroups) { this.usersGroups = usersGroups; return this; } - public LegacyPolicyRuleOperators addUsersGroupsItem(String usersGroupsItem) { + public PolicyRuleOperators addUsersGroupsItem(String usersGroupsItem) { if (this.usersGroups == null) { this.usersGroups = new ArrayList<>(); } @@ -170,12 +169,12 @@ public void setUsersGroups(@jakarta.annotation.Nullable List usersGroups this.usersGroups = usersGroups; } - public LegacyPolicyRuleOperators services(@jakarta.annotation.Nullable List services) { + public PolicyRuleOperators services(@jakarta.annotation.Nullable List services) { this.services = services; return this; } - public LegacyPolicyRuleOperators addServicesItem(String servicesItem) { + public PolicyRuleOperators addServicesItem(String servicesItem) { if (this.services == null) { this.services = new ArrayList<>(); } @@ -201,7 +200,7 @@ public void setServices(@jakarta.annotation.Nullable List services) { this.services = services; } - /** Return true if this LegacyPolicyRule_operators object is equal to o. */ + /** Return true if this PolicyRule_operators object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -210,11 +209,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - LegacyPolicyRuleOperators legacyPolicyRuleOperators = (LegacyPolicyRuleOperators) o; - return Objects.equals(this.wildcard, legacyPolicyRuleOperators.wildcard) - && Objects.equals(this.users, legacyPolicyRuleOperators.users) - && Objects.equals(this.usersGroups, legacyPolicyRuleOperators.usersGroups) - && Objects.equals(this.services, legacyPolicyRuleOperators.services); + PolicyRuleOperators policyRuleOperators = (PolicyRuleOperators) o; + return Objects.equals(this.wildcard, policyRuleOperators.wildcard) + && Objects.equals(this.users, policyRuleOperators.users) + && Objects.equals(this.usersGroups, policyRuleOperators.usersGroups) + && Objects.equals(this.services, policyRuleOperators.services); } @Override @@ -225,7 +224,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class LegacyPolicyRuleOperators {\n"); + sb.append("class PolicyRuleOperators {\n"); sb.append(" wildcard: ").append(toIndentedString(wildcard)).append("\n"); sb.append(" users: ").append(toIndentedString(users)).append("\n"); sb.append(" usersGroups: ").append(toIndentedString(usersGroups)).append("\n"); diff --git a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleRawMessageSigning.java b/src/main/java/com/fireblocks/sdk/model/PolicyRuleRawMessageSigning.java similarity index 77% rename from src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleRawMessageSigning.java rename to src/main/java/com/fireblocks/sdk/model/PolicyRuleRawMessageSigning.java index 6e6976f4..3dad8d73 100644 --- a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleRawMessageSigning.java +++ b/src/main/java/com/fireblocks/sdk/model/PolicyRuleRawMessageSigning.java @@ -22,25 +22,22 @@ /** Raw message signing configuration */ @JsonPropertyOrder({ - LegacyPolicyRuleRawMessageSigning.JSON_PROPERTY_ALGORITHM, - LegacyPolicyRuleRawMessageSigning.JSON_PROPERTY_DERIVATION_PATH + PolicyRuleRawMessageSigning.JSON_PROPERTY_ALGORITHM, + PolicyRuleRawMessageSigning.JSON_PROPERTY_DERIVATION_PATH }) @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") -public class LegacyPolicyRuleRawMessageSigning { +public class PolicyRuleRawMessageSigning { public static final String JSON_PROPERTY_ALGORITHM = "algorithm"; @jakarta.annotation.Nullable private String algorithm; public static final String JSON_PROPERTY_DERIVATION_PATH = "derivationPath"; + @jakarta.annotation.Nullable private PolicyRuleRawMessageSigningDerivationPath derivationPath; - @jakarta.annotation.Nullable - private LegacyPolicyRuleRawMessageSigningDerivationPath derivationPath; - - public LegacyPolicyRuleRawMessageSigning() {} + public PolicyRuleRawMessageSigning() {} - public LegacyPolicyRuleRawMessageSigning algorithm( - @jakarta.annotation.Nullable String algorithm) { + public PolicyRuleRawMessageSigning algorithm(@jakarta.annotation.Nullable String algorithm) { this.algorithm = algorithm; return this; } @@ -63,9 +60,8 @@ public void setAlgorithm(@jakarta.annotation.Nullable String algorithm) { this.algorithm = algorithm; } - public LegacyPolicyRuleRawMessageSigning derivationPath( - @jakarta.annotation.Nullable - LegacyPolicyRuleRawMessageSigningDerivationPath derivationPath) { + public PolicyRuleRawMessageSigning derivationPath( + @jakarta.annotation.Nullable PolicyRuleRawMessageSigningDerivationPath derivationPath) { this.derivationPath = derivationPath; return this; } @@ -78,19 +74,18 @@ public LegacyPolicyRuleRawMessageSigning derivationPath( @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DERIVATION_PATH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public LegacyPolicyRuleRawMessageSigningDerivationPath getDerivationPath() { + public PolicyRuleRawMessageSigningDerivationPath getDerivationPath() { return derivationPath; } @JsonProperty(JSON_PROPERTY_DERIVATION_PATH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDerivationPath( - @jakarta.annotation.Nullable - LegacyPolicyRuleRawMessageSigningDerivationPath derivationPath) { + @jakarta.annotation.Nullable PolicyRuleRawMessageSigningDerivationPath derivationPath) { this.derivationPath = derivationPath; } - /** Return true if this LegacyPolicyRule_rawMessageSigning object is equal to o. */ + /** Return true if this PolicyRule_rawMessageSigning object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -99,11 +94,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - LegacyPolicyRuleRawMessageSigning legacyPolicyRuleRawMessageSigning = - (LegacyPolicyRuleRawMessageSigning) o; - return Objects.equals(this.algorithm, legacyPolicyRuleRawMessageSigning.algorithm) - && Objects.equals( - this.derivationPath, legacyPolicyRuleRawMessageSigning.derivationPath); + PolicyRuleRawMessageSigning policyRuleRawMessageSigning = (PolicyRuleRawMessageSigning) o; + return Objects.equals(this.algorithm, policyRuleRawMessageSigning.algorithm) + && Objects.equals(this.derivationPath, policyRuleRawMessageSigning.derivationPath); } @Override @@ -114,7 +107,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class LegacyPolicyRuleRawMessageSigning {\n"); + sb.append("class PolicyRuleRawMessageSigning {\n"); sb.append(" algorithm: ").append(toIndentedString(algorithm)).append("\n"); sb.append(" derivationPath: ").append(toIndentedString(derivationPath)).append("\n"); sb.append("}"); diff --git a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleRawMessageSigningDerivationPath.java b/src/main/java/com/fireblocks/sdk/model/PolicyRuleRawMessageSigningDerivationPath.java similarity index 81% rename from src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleRawMessageSigningDerivationPath.java rename to src/main/java/com/fireblocks/sdk/model/PolicyRuleRawMessageSigningDerivationPath.java index 1f10bd78..ea61fc8f 100644 --- a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleRawMessageSigningDerivationPath.java +++ b/src/main/java/com/fireblocks/sdk/model/PolicyRuleRawMessageSigningDerivationPath.java @@ -23,24 +23,24 @@ import java.util.Objects; import java.util.StringJoiner; -/** LegacyPolicyRuleRawMessageSigningDerivationPath */ -@JsonPropertyOrder({LegacyPolicyRuleRawMessageSigningDerivationPath.JSON_PROPERTY_PATH}) +/** PolicyRuleRawMessageSigningDerivationPath */ +@JsonPropertyOrder({PolicyRuleRawMessageSigningDerivationPath.JSON_PROPERTY_PATH}) @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") -public class LegacyPolicyRuleRawMessageSigningDerivationPath { +public class PolicyRuleRawMessageSigningDerivationPath { public static final String JSON_PROPERTY_PATH = "path"; - @jakarta.annotation.Nullable private List path = new ArrayList<>(); + @jakarta.annotation.Nullable private List path; - public LegacyPolicyRuleRawMessageSigningDerivationPath() {} + public PolicyRuleRawMessageSigningDerivationPath() {} - public LegacyPolicyRuleRawMessageSigningDerivationPath path( + public PolicyRuleRawMessageSigningDerivationPath path( @jakarta.annotation.Nullable List path) { this.path = path; return this; } - public LegacyPolicyRuleRawMessageSigningDerivationPath addPathItem(BigDecimal pathItem) { + public PolicyRuleRawMessageSigningDerivationPath addPathItem(BigDecimal pathItem) { if (this.path == null) { this.path = new ArrayList<>(); } @@ -66,9 +66,7 @@ public void setPath(@jakarta.annotation.Nullable List path) { this.path = path; } - /** - * Return true if this LegacyPolicyRule_rawMessageSigning_derivationPath object is equal to o. - */ + /** Return true if this PolicyRule_rawMessageSigning_derivationPath object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -77,10 +75,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - LegacyPolicyRuleRawMessageSigningDerivationPath - legacyPolicyRuleRawMessageSigningDerivationPath = - (LegacyPolicyRuleRawMessageSigningDerivationPath) o; - return Objects.equals(this.path, legacyPolicyRuleRawMessageSigningDerivationPath.path); + PolicyRuleRawMessageSigningDerivationPath policyRuleRawMessageSigningDerivationPath = + (PolicyRuleRawMessageSigningDerivationPath) o; + return Objects.equals(this.path, policyRuleRawMessageSigningDerivationPath.path); } @Override @@ -91,7 +88,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class LegacyPolicyRuleRawMessageSigningDerivationPath {\n"); + sb.append("class PolicyRuleRawMessageSigningDerivationPath {\n"); sb.append(" path: ").append(toIndentedString(path)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleSrc.java b/src/main/java/com/fireblocks/sdk/model/PolicyRuleSrc.java similarity index 82% rename from src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleSrc.java rename to src/main/java/com/fireblocks/sdk/model/PolicyRuleSrc.java index c5bee9d8..a4e0c5ab 100644 --- a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleSrc.java +++ b/src/main/java/com/fireblocks/sdk/model/PolicyRuleSrc.java @@ -23,25 +23,23 @@ import java.util.StringJoiner; /** Defines source accounts the rule allows transfers to originate from */ -@JsonPropertyOrder({LegacyPolicyRuleSrc.JSON_PROPERTY_IDS}) +@JsonPropertyOrder({PolicyRuleSrc.JSON_PROPERTY_IDS}) @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") -public class LegacyPolicyRuleSrc { +public class PolicyRuleSrc { public static final String JSON_PROPERTY_IDS = "ids"; + @jakarta.annotation.Nullable private List> ids; - @jakarta.annotation.Nullable - private List> ids = new ArrayList<>(); - - public LegacyPolicyRuleSrc() {} + public PolicyRuleSrc() {} - public LegacyPolicyRuleSrc ids( - @jakarta.annotation.Nullable List> ids) { + public PolicyRuleSrc ids( + @jakarta.annotation.Nullable List> ids) { this.ids = ids; return this; } - public LegacyPolicyRuleSrc addIdsItem(List idsItem) { + public PolicyRuleSrc addIdsItem(List idsItem) { if (this.ids == null) { this.ids = new ArrayList<>(); } @@ -57,18 +55,17 @@ public LegacyPolicyRuleSrc addIdsItem(List idsIt @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_IDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List> getIds() { + public List> getIds() { return ids; } @JsonProperty(JSON_PROPERTY_IDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIds( - @jakarta.annotation.Nullable List> ids) { + public void setIds(@jakarta.annotation.Nullable List> ids) { this.ids = ids; } - /** Return true if this LegacyPolicyRule_src object is equal to o. */ + /** Return true if this PolicyRule_src object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -77,8 +74,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - LegacyPolicyRuleSrc legacyPolicyRuleSrc = (LegacyPolicyRuleSrc) o; - return Objects.equals(this.ids, legacyPolicyRuleSrc.ids); + PolicyRuleSrc policyRuleSrc = (PolicyRuleSrc) o; + return Objects.equals(this.ids, policyRuleSrc.ids); } @Override @@ -89,7 +86,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class LegacyPolicyRuleSrc {\n"); + sb.append("class PolicyRuleSrc {\n"); sb.append(" ids: ").append(toIndentedString(ids)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRules.java b/src/main/java/com/fireblocks/sdk/model/PolicyRules.java similarity index 84% rename from src/main/java/com/fireblocks/sdk/model/LegacyPolicyRules.java rename to src/main/java/com/fireblocks/sdk/model/PolicyRules.java index ffe570dd..5f63f24e 100644 --- a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRules.java +++ b/src/main/java/com/fireblocks/sdk/model/PolicyRules.java @@ -21,23 +21,23 @@ import java.util.Objects; import java.util.StringJoiner; -/** LegacyPolicyRules */ -@JsonPropertyOrder({LegacyPolicyRules.JSON_PROPERTY_RULES}) +/** PolicyRules */ +@JsonPropertyOrder({PolicyRules.JSON_PROPERTY_RULES}) @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") -public class LegacyPolicyRules { +public class PolicyRules { public static final String JSON_PROPERTY_RULES = "rules"; - @jakarta.annotation.Nullable private List rules = new ArrayList<>(); + @jakarta.annotation.Nullable private List rules; - public LegacyPolicyRules() {} + public PolicyRules() {} - public LegacyPolicyRules rules(@jakarta.annotation.Nullable List rules) { + public PolicyRules rules(@jakarta.annotation.Nullable List rules) { this.rules = rules; return this; } - public LegacyPolicyRules addRulesItem(LegacyPolicyRule rulesItem) { + public PolicyRules addRulesItem(PolicyRule rulesItem) { if (this.rules == null) { this.rules = new ArrayList<>(); } @@ -53,17 +53,17 @@ public LegacyPolicyRules addRulesItem(LegacyPolicyRule rulesItem) { @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_RULES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getRules() { + public List getRules() { return rules; } @JsonProperty(JSON_PROPERTY_RULES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRules(@jakarta.annotation.Nullable List rules) { + public void setRules(@jakarta.annotation.Nullable List rules) { this.rules = rules; } - /** Return true if this LegacyPolicyRules object is equal to o. */ + /** Return true if this PolicyRules object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -72,8 +72,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - LegacyPolicyRules legacyPolicyRules = (LegacyPolicyRules) o; - return Objects.equals(this.rules, legacyPolicyRules.rules); + PolicyRules policyRules = (PolicyRules) o; + return Objects.equals(this.rules, policyRules.rules); } @Override @@ -84,7 +84,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class LegacyPolicyRules {\n"); + sb.append("class PolicyRules {\n"); sb.append(" rules: ").append(toIndentedString(rules)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/LegacyPolicySrcOrDestSubType.java b/src/main/java/com/fireblocks/sdk/model/PolicySrcOrDestSubType.java similarity index 88% rename from src/main/java/com/fireblocks/sdk/model/LegacyPolicySrcOrDestSubType.java rename to src/main/java/com/fireblocks/sdk/model/PolicySrcOrDestSubType.java index 83402e62..07bd5334 100644 --- a/src/main/java/com/fireblocks/sdk/model/LegacyPolicySrcOrDestSubType.java +++ b/src/main/java/com/fireblocks/sdk/model/PolicySrcOrDestSubType.java @@ -23,7 +23,7 @@ * whitelisted wallet assigned as contract is for identifying and managing external smart contracts * * EXCHANGETEST - Exchanges which operate only on testnet assets * \"*\" - All subtypes */ -public enum LegacyPolicySrcOrDestSubType { +public enum PolicySrcOrDestSubType { EXTERNAL("EXTERNAL"), INTERNAL("INTERNAL"), @@ -36,7 +36,7 @@ public enum LegacyPolicySrcOrDestSubType { private String value; - LegacyPolicySrcOrDestSubType(String value) { + PolicySrcOrDestSubType(String value) { this.value = value; } @@ -51,8 +51,8 @@ public String toString() { } @JsonCreator - public static LegacyPolicySrcOrDestSubType fromValue(String value) { - for (LegacyPolicySrcOrDestSubType b : LegacyPolicySrcOrDestSubType.values()) { + public static PolicySrcOrDestSubType fromValue(String value) { + for (PolicySrcOrDestSubType b : PolicySrcOrDestSubType.values()) { if (b.value.equals(value)) { return b; } diff --git a/src/main/java/com/fireblocks/sdk/model/LegacyPolicySrcOrDestType.java b/src/main/java/com/fireblocks/sdk/model/PolicySrcOrDestType.java similarity index 89% rename from src/main/java/com/fireblocks/sdk/model/LegacyPolicySrcOrDestType.java rename to src/main/java/com/fireblocks/sdk/model/PolicySrcOrDestType.java index 8656e3dd..b5d22c41 100644 --- a/src/main/java/com/fireblocks/sdk/model/LegacyPolicySrcOrDestType.java +++ b/src/main/java/com/fireblocks/sdk/model/PolicySrcOrDestType.java @@ -24,7 +24,7 @@ * connected to your workspace * ONE_TIME_ADDRESS - A non-whitelisted asset from your Fireblocks * Workspace * \"*\" - All types */ -public enum LegacyPolicySrcOrDestType { +public enum PolicySrcOrDestType { EXCHANGE("EXCHANGE"), UNMANAGED("UNMANAGED"), @@ -43,7 +43,7 @@ public enum LegacyPolicySrcOrDestType { private String value; - LegacyPolicySrcOrDestType(String value) { + PolicySrcOrDestType(String value) { this.value = value; } @@ -58,8 +58,8 @@ public String toString() { } @JsonCreator - public static LegacyPolicySrcOrDestType fromValue(String value) { - for (LegacyPolicySrcOrDestType b : LegacyPolicySrcOrDestType.values()) { + public static PolicySrcOrDestType fromValue(String value) { + for (PolicySrcOrDestType b : PolicySrcOrDestType.values()) { if (b.value.equals(value)) { return b; } diff --git a/src/main/java/com/fireblocks/sdk/model/PolicyType.java b/src/main/java/com/fireblocks/sdk/model/PolicyType.java deleted file mode 100644 index cfcd6183..00000000 --- a/src/main/java/com/fireblocks/sdk/model/PolicyType.java +++ /dev/null @@ -1,100 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - -/** Policy type enumeration */ -public enum PolicyType { - TRANSFER("TRANSFER"), - - STAKE("STAKE"), - - CONTRACT_CALL("CONTRACT_CALL"), - - TYPED_MESSAGE("TYPED_MESSAGE"), - - APPROVE("APPROVE"), - - MINT("MINT"), - - BURN("BURN"), - - RAW("RAW"), - - COMPLIANCE("COMPLIANCE"), - - DEPLOYMENT("DEPLOYMENT"), - - PROGRAM_CALL("PROGRAM_CALL"), - - DAPP_CONNECTION("DAPP_CONNECTION"), - - UPGRADE("UPGRADE"), - - ORDER("ORDER"), - - AML_CHAINALYSIS_V2_SCREENING("AML_CHAINALYSIS_V2_SCREENING"), - - AML_CHAINALYSIS_V2_POST_SCREENING("AML_CHAINALYSIS_V2_POST_SCREENING"), - - AML_ELLIPTIC_HOLISTIC_SCREENING("AML_ELLIPTIC_HOLISTIC_SCREENING"), - - AML_ELLIPTIC_HOLISTIC_POST_SCREENING("AML_ELLIPTIC_HOLISTIC_POST_SCREENING"), - - TR_NOTABENE_SCREENING("TR_NOTABENE_SCREENING"), - - TR_NOTABENE_POST_SCREENING("TR_NOTABENE_POST_SCREENING"); - - private String value; - - PolicyType(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static PolicyType fromValue(String value) { - for (PolicyType b : PolicyType.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - if (prefix == null) { - prefix = ""; - } - - return String.format("%s=%s", prefix, this.toString()); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/PostOrderSettlement.java b/src/main/java/com/fireblocks/sdk/model/PostOrderSettlement.java deleted file mode 100644 index 66c6b552..00000000 --- a/src/main/java/com/fireblocks/sdk/model/PostOrderSettlement.java +++ /dev/null @@ -1,178 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** PostOrderSettlement */ -@JsonPropertyOrder({PostOrderSettlement.JSON_PROPERTY_TYPE}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class PostOrderSettlement { - /** Gets or Sets type */ - public enum TypeEnum { - POST_ORDER(String.valueOf("POST_ORDER")); - - private String value; - - TypeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static TypeEnum fromValue(String value) { - for (TypeEnum b : TypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_TYPE = "type"; - @jakarta.annotation.Nonnull private TypeEnum type; - - public PostOrderSettlement() {} - - @JsonCreator - public PostOrderSettlement( - @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) TypeEnum type) { - this.type = type; - } - - public PostOrderSettlement type(@jakarta.annotation.Nonnull TypeEnum type) { - this.type = type; - return this; - } - - /** - * Get type - * - * @return type - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { - return type; - } - - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(@jakarta.annotation.Nonnull TypeEnum type) { - this.type = type; - } - - /** Return true if this PostOrderSettlement object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PostOrderSettlement postOrderSettlement = (PostOrderSettlement) o; - return Objects.equals(this.type, postOrderSettlement.type); - } - - @Override - public int hashCode() { - return Objects.hash(type); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class PostOrderSettlement {\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `type` to the URL query string - if (getType() != null) { - joiner.add( - String.format( - "%stype%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getType())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/PostalAddress.java b/src/main/java/com/fireblocks/sdk/model/PostalAddress.java deleted file mode 100644 index 1d362f7a..00000000 --- a/src/main/java/com/fireblocks/sdk/model/PostalAddress.java +++ /dev/null @@ -1,396 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** PostalAddress */ -@JsonPropertyOrder({ - PostalAddress.JSON_PROPERTY_STREET_NAME, - PostalAddress.JSON_PROPERTY_BUILDING_NUMBER, - PostalAddress.JSON_PROPERTY_POSTAL_CODE, - PostalAddress.JSON_PROPERTY_CITY, - PostalAddress.JSON_PROPERTY_SUBDIVISION, - PostalAddress.JSON_PROPERTY_DISTRICT, - PostalAddress.JSON_PROPERTY_COUNTRY -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class PostalAddress { - public static final String JSON_PROPERTY_STREET_NAME = "streetName"; - @jakarta.annotation.Nonnull private String streetName; - - public static final String JSON_PROPERTY_BUILDING_NUMBER = "buildingNumber"; - @jakarta.annotation.Nonnull private String buildingNumber; - - public static final String JSON_PROPERTY_POSTAL_CODE = "postalCode"; - @jakarta.annotation.Nonnull private String postalCode; - - public static final String JSON_PROPERTY_CITY = "city"; - @jakarta.annotation.Nonnull private String city; - - public static final String JSON_PROPERTY_SUBDIVISION = "subdivision"; - @jakarta.annotation.Nonnull private String subdivision; - - public static final String JSON_PROPERTY_DISTRICT = "district"; - @jakarta.annotation.Nonnull private String district; - - public static final String JSON_PROPERTY_COUNTRY = "country"; - @jakarta.annotation.Nonnull private String country; - - public PostalAddress() {} - - @JsonCreator - public PostalAddress( - @JsonProperty(value = JSON_PROPERTY_STREET_NAME, required = true) String streetName, - @JsonProperty(value = JSON_PROPERTY_BUILDING_NUMBER, required = true) - String buildingNumber, - @JsonProperty(value = JSON_PROPERTY_POSTAL_CODE, required = true) String postalCode, - @JsonProperty(value = JSON_PROPERTY_CITY, required = true) String city, - @JsonProperty(value = JSON_PROPERTY_SUBDIVISION, required = true) String subdivision, - @JsonProperty(value = JSON_PROPERTY_DISTRICT, required = true) String district, - @JsonProperty(value = JSON_PROPERTY_COUNTRY, required = true) String country) { - this.streetName = streetName; - this.buildingNumber = buildingNumber; - this.postalCode = postalCode; - this.city = city; - this.subdivision = subdivision; - this.district = district; - this.country = country; - } - - public PostalAddress streetName(@jakarta.annotation.Nonnull String streetName) { - this.streetName = streetName; - return this; - } - - /** - * Get streetName - * - * @return streetName - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_STREET_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getStreetName() { - return streetName; - } - - @JsonProperty(JSON_PROPERTY_STREET_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStreetName(@jakarta.annotation.Nonnull String streetName) { - this.streetName = streetName; - } - - public PostalAddress buildingNumber(@jakarta.annotation.Nonnull String buildingNumber) { - this.buildingNumber = buildingNumber; - return this; - } - - /** - * Get buildingNumber - * - * @return buildingNumber - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BUILDING_NUMBER) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getBuildingNumber() { - return buildingNumber; - } - - @JsonProperty(JSON_PROPERTY_BUILDING_NUMBER) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBuildingNumber(@jakarta.annotation.Nonnull String buildingNumber) { - this.buildingNumber = buildingNumber; - } - - public PostalAddress postalCode(@jakarta.annotation.Nonnull String postalCode) { - this.postalCode = postalCode; - return this; - } - - /** - * Get postalCode - * - * @return postalCode - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_POSTAL_CODE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getPostalCode() { - return postalCode; - } - - @JsonProperty(JSON_PROPERTY_POSTAL_CODE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPostalCode(@jakarta.annotation.Nonnull String postalCode) { - this.postalCode = postalCode; - } - - public PostalAddress city(@jakarta.annotation.Nonnull String city) { - this.city = city; - return this; - } - - /** - * Get city - * - * @return city - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CITY) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getCity() { - return city; - } - - @JsonProperty(JSON_PROPERTY_CITY) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCity(@jakarta.annotation.Nonnull String city) { - this.city = city; - } - - public PostalAddress subdivision(@jakarta.annotation.Nonnull String subdivision) { - this.subdivision = subdivision; - return this; - } - - /** - * Get subdivision - * - * @return subdivision - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SUBDIVISION) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getSubdivision() { - return subdivision; - } - - @JsonProperty(JSON_PROPERTY_SUBDIVISION) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSubdivision(@jakarta.annotation.Nonnull String subdivision) { - this.subdivision = subdivision; - } - - public PostalAddress district(@jakarta.annotation.Nonnull String district) { - this.district = district; - return this; - } - - /** - * Get district - * - * @return district - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DISTRICT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getDistrict() { - return district; - } - - @JsonProperty(JSON_PROPERTY_DISTRICT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDistrict(@jakarta.annotation.Nonnull String district) { - this.district = district; - } - - public PostalAddress country(@jakarta.annotation.Nonnull String country) { - this.country = country; - return this; - } - - /** - * Get country - * - * @return country - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_COUNTRY) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getCountry() { - return country; - } - - @JsonProperty(JSON_PROPERTY_COUNTRY) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCountry(@jakarta.annotation.Nonnull String country) { - this.country = country; - } - - /** Return true if this PostalAddress object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PostalAddress postalAddress = (PostalAddress) o; - return Objects.equals(this.streetName, postalAddress.streetName) - && Objects.equals(this.buildingNumber, postalAddress.buildingNumber) - && Objects.equals(this.postalCode, postalAddress.postalCode) - && Objects.equals(this.city, postalAddress.city) - && Objects.equals(this.subdivision, postalAddress.subdivision) - && Objects.equals(this.district, postalAddress.district) - && Objects.equals(this.country, postalAddress.country); - } - - @Override - public int hashCode() { - return Objects.hash( - streetName, buildingNumber, postalCode, city, subdivision, district, country); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class PostalAddress {\n"); - sb.append(" streetName: ").append(toIndentedString(streetName)).append("\n"); - sb.append(" buildingNumber: ").append(toIndentedString(buildingNumber)).append("\n"); - sb.append(" postalCode: ").append(toIndentedString(postalCode)).append("\n"); - sb.append(" city: ").append(toIndentedString(city)).append("\n"); - sb.append(" subdivision: ").append(toIndentedString(subdivision)).append("\n"); - sb.append(" district: ").append(toIndentedString(district)).append("\n"); - sb.append(" country: ").append(toIndentedString(country)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `streetName` to the URL query string - if (getStreetName() != null) { - joiner.add( - String.format( - "%sstreetName%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getStreetName())))); - } - - // add `buildingNumber` to the URL query string - if (getBuildingNumber() != null) { - joiner.add( - String.format( - "%sbuildingNumber%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBuildingNumber())))); - } - - // add `postalCode` to the URL query string - if (getPostalCode() != null) { - joiner.add( - String.format( - "%spostalCode%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getPostalCode())))); - } - - // add `city` to the URL query string - if (getCity() != null) { - joiner.add( - String.format( - "%scity%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getCity())))); - } - - // add `subdivision` to the URL query string - if (getSubdivision() != null) { - joiner.add( - String.format( - "%ssubdivision%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getSubdivision())))); - } - - // add `district` to the URL query string - if (getDistrict() != null) { - joiner.add( - String.format( - "%sdistrict%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getDistrict())))); - } - - // add `country` to the URL query string - if (getCountry() != null) { - joiner.add( - String.format( - "%scountry%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getCountry())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/PrefundedSettlement.java b/src/main/java/com/fireblocks/sdk/model/PrefundedSettlement.java deleted file mode 100644 index ce2d2b9e..00000000 --- a/src/main/java/com/fireblocks/sdk/model/PrefundedSettlement.java +++ /dev/null @@ -1,223 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** PrefundedSettlement */ -@JsonPropertyOrder({ - PrefundedSettlement.JSON_PROPERTY_TYPE, - PrefundedSettlement.JSON_PROPERTY_DESTINATION_ACCOUNT -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class PrefundedSettlement { - /** Gets or Sets type */ - public enum TypeEnum { - PREFUNDED(String.valueOf("PREFUNDED")); - - private String value; - - TypeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static TypeEnum fromValue(String value) { - for (TypeEnum b : TypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_TYPE = "type"; - @jakarta.annotation.Nonnull private TypeEnum type; - - public static final String JSON_PROPERTY_DESTINATION_ACCOUNT = "destinationAccount"; - @jakarta.annotation.Nonnull private AccountReference destinationAccount; - - public PrefundedSettlement() {} - - @JsonCreator - public PrefundedSettlement( - @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) TypeEnum type, - @JsonProperty(value = JSON_PROPERTY_DESTINATION_ACCOUNT, required = true) - AccountReference destinationAccount) { - this.type = type; - this.destinationAccount = destinationAccount; - } - - public PrefundedSettlement type(@jakarta.annotation.Nonnull TypeEnum type) { - this.type = type; - return this; - } - - /** - * Get type - * - * @return type - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { - return type; - } - - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(@jakarta.annotation.Nonnull TypeEnum type) { - this.type = type; - } - - public PrefundedSettlement destinationAccount( - @jakarta.annotation.Nonnull AccountReference destinationAccount) { - this.destinationAccount = destinationAccount; - return this; - } - - /** - * Get destinationAccount - * - * @return destinationAccount - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DESTINATION_ACCOUNT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccountReference getDestinationAccount() { - return destinationAccount; - } - - @JsonProperty(JSON_PROPERTY_DESTINATION_ACCOUNT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDestinationAccount( - @jakarta.annotation.Nonnull AccountReference destinationAccount) { - this.destinationAccount = destinationAccount; - } - - /** Return true if this PrefundedSettlement object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PrefundedSettlement prefundedSettlement = (PrefundedSettlement) o; - return Objects.equals(this.type, prefundedSettlement.type) - && Objects.equals(this.destinationAccount, prefundedSettlement.destinationAccount); - } - - @Override - public int hashCode() { - return Objects.hash(type, destinationAccount); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class PrefundedSettlement {\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" destinationAccount: ") - .append(toIndentedString(destinationAccount)) - .append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `type` to the URL query string - if (getType() != null) { - joiner.add( - String.format( - "%stype%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getType())))); - } - - // add `destinationAccount` to the URL query string - if (getDestinationAccount() != null) { - joiner.add( - getDestinationAccount() - .toUrlQueryString(prefix + "destinationAccount" + suffix)); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/ProgramCallConfig.java b/src/main/java/com/fireblocks/sdk/model/ProgramCallConfig.java deleted file mode 100644 index 2bab9d9e..00000000 --- a/src/main/java/com/fireblocks/sdk/model/ProgramCallConfig.java +++ /dev/null @@ -1,188 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** Program call configuration */ -@JsonPropertyOrder({ProgramCallConfig.JSON_PROPERTY_ALLOWED_SOLANA_PROGRAM_CALLS}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class ProgramCallConfig { - /** Whether Solana program calls are allowed */ - public enum AllowedSolanaProgramCallsEnum { - STAR(String.valueOf("*")), - - WHITELISTED(String.valueOf("WHITELISTED")); - - private String value; - - AllowedSolanaProgramCallsEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static AllowedSolanaProgramCallsEnum fromValue(String value) { - for (AllowedSolanaProgramCallsEnum b : AllowedSolanaProgramCallsEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_ALLOWED_SOLANA_PROGRAM_CALLS = - "allowedSolanaProgramCalls"; - @jakarta.annotation.Nonnull private AllowedSolanaProgramCallsEnum allowedSolanaProgramCalls; - - public ProgramCallConfig() {} - - @JsonCreator - public ProgramCallConfig( - @JsonProperty(value = JSON_PROPERTY_ALLOWED_SOLANA_PROGRAM_CALLS, required = true) - AllowedSolanaProgramCallsEnum allowedSolanaProgramCalls) { - this.allowedSolanaProgramCalls = allowedSolanaProgramCalls; - } - - public ProgramCallConfig allowedSolanaProgramCalls( - @jakarta.annotation.Nonnull AllowedSolanaProgramCallsEnum allowedSolanaProgramCalls) { - this.allowedSolanaProgramCalls = allowedSolanaProgramCalls; - return this; - } - - /** - * Whether Solana program calls are allowed - * - * @return allowedSolanaProgramCalls - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ALLOWED_SOLANA_PROGRAM_CALLS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AllowedSolanaProgramCallsEnum getAllowedSolanaProgramCalls() { - return allowedSolanaProgramCalls; - } - - @JsonProperty(JSON_PROPERTY_ALLOWED_SOLANA_PROGRAM_CALLS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAllowedSolanaProgramCalls( - @jakarta.annotation.Nonnull AllowedSolanaProgramCallsEnum allowedSolanaProgramCalls) { - this.allowedSolanaProgramCalls = allowedSolanaProgramCalls; - } - - /** Return true if this ProgramCallConfig object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ProgramCallConfig programCallConfig = (ProgramCallConfig) o; - return Objects.equals( - this.allowedSolanaProgramCalls, programCallConfig.allowedSolanaProgramCalls); - } - - @Override - public int hashCode() { - return Objects.hash(allowedSolanaProgramCalls); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ProgramCallConfig {\n"); - sb.append(" allowedSolanaProgramCalls: ") - .append(toIndentedString(allowedSolanaProgramCalls)) - .append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `allowedSolanaProgramCalls` to the URL query string - if (getAllowedSolanaProgramCalls() != null) { - joiner.add( - String.format( - "%sallowedSolanaProgramCalls%s=%s", - prefix, - suffix, - ApiClient.urlEncode( - ApiClient.valueToString(getAllowedSolanaProgramCalls())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/Provider.java b/src/main/java/com/fireblocks/sdk/model/ProviderDto.java similarity index 67% rename from src/main/java/com/fireblocks/sdk/model/Provider.java rename to src/main/java/com/fireblocks/sdk/model/ProviderDto.java index feac0ed4..7c1d9421 100644 --- a/src/main/java/com/fireblocks/sdk/model/Provider.java +++ b/src/main/java/com/fireblocks/sdk/model/ProviderDto.java @@ -23,21 +23,19 @@ import java.util.Objects; import java.util.StringJoiner; -/** Provider */ +/** ProviderDto */ @JsonPropertyOrder({ - Provider.JSON_PROPERTY_ID, - Provider.JSON_PROPERTY_PROVIDER_NAME, - Provider.JSON_PROPERTY_VALIDATORS, - Provider.JSON_PROPERTY_ICON_URL, - Provider.JSON_PROPERTY_TERMS_OF_SERVICE_URL, - Provider.JSON_PROPERTY_IS_TERMS_OF_SERVICE_APPROVED, - Provider.JSON_PROPERTY_IS_PRIVATE, - Provider.JSON_PROPERTY_IS_LIQUID_STAKING + ProviderDto.JSON_PROPERTY_ID, + ProviderDto.JSON_PROPERTY_PROVIDER_NAME, + ProviderDto.JSON_PROPERTY_VALIDATORS, + ProviderDto.JSON_PROPERTY_ICON_URL, + ProviderDto.JSON_PROPERTY_TERMS_OF_SERVICE_URL, + ProviderDto.JSON_PROPERTY_IS_TERMS_OF_SERVICE_APPROVED }) @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") -public class Provider { +public class ProviderDto { public static final String JSON_PROPERTY_ID = "id"; @jakarta.annotation.Nonnull private String id; @@ -45,44 +43,40 @@ public class Provider { @jakarta.annotation.Nonnull private String providerName; public static final String JSON_PROPERTY_VALIDATORS = "validators"; - @jakarta.annotation.Nonnull private List validators = new ArrayList<>(); + @jakarta.annotation.Nonnull private List validators; public static final String JSON_PROPERTY_ICON_URL = "iconUrl"; - @jakarta.annotation.Nullable private String iconUrl; + @jakarta.annotation.Nonnull private String iconUrl; public static final String JSON_PROPERTY_TERMS_OF_SERVICE_URL = "termsOfServiceUrl"; - @jakarta.annotation.Nullable private String termsOfServiceUrl; + @jakarta.annotation.Nonnull private String termsOfServiceUrl; public static final String JSON_PROPERTY_IS_TERMS_OF_SERVICE_APPROVED = "isTermsOfServiceApproved"; @jakarta.annotation.Nonnull private Boolean isTermsOfServiceApproved; - public static final String JSON_PROPERTY_IS_PRIVATE = "isPrivate"; - @jakarta.annotation.Nullable private Boolean isPrivate; - - public static final String JSON_PROPERTY_IS_LIQUID_STAKING = "isLiquidStaking"; - @jakarta.annotation.Nonnull private Boolean isLiquidStaking; - - public Provider() {} + public ProviderDto() {} @JsonCreator - public Provider( + public ProviderDto( @JsonProperty(value = JSON_PROPERTY_ID, required = true) String id, @JsonProperty(value = JSON_PROPERTY_PROVIDER_NAME, required = true) String providerName, @JsonProperty(value = JSON_PROPERTY_VALIDATORS, required = true) - List validators, + List validators, + @JsonProperty(value = JSON_PROPERTY_ICON_URL, required = true) String iconUrl, + @JsonProperty(value = JSON_PROPERTY_TERMS_OF_SERVICE_URL, required = true) + String termsOfServiceUrl, @JsonProperty(value = JSON_PROPERTY_IS_TERMS_OF_SERVICE_APPROVED, required = true) - Boolean isTermsOfServiceApproved, - @JsonProperty(value = JSON_PROPERTY_IS_LIQUID_STAKING, required = true) - Boolean isLiquidStaking) { + Boolean isTermsOfServiceApproved) { this.id = id; this.providerName = providerName; this.validators = validators; + this.iconUrl = iconUrl; + this.termsOfServiceUrl = termsOfServiceUrl; this.isTermsOfServiceApproved = isTermsOfServiceApproved; - this.isLiquidStaking = isLiquidStaking; } - public Provider id(@jakarta.annotation.Nonnull String id) { + public ProviderDto id(@jakarta.annotation.Nonnull String id) { this.id = id; return this; } @@ -105,7 +99,7 @@ public void setId(@jakarta.annotation.Nonnull String id) { this.id = id; } - public Provider providerName(@jakarta.annotation.Nonnull String providerName) { + public ProviderDto providerName(@jakarta.annotation.Nonnull String providerName) { this.providerName = providerName; return this; } @@ -128,12 +122,12 @@ public void setProviderName(@jakarta.annotation.Nonnull String providerName) { this.providerName = providerName; } - public Provider validators(@jakarta.annotation.Nonnull List validators) { + public ProviderDto validators(@jakarta.annotation.Nonnull List validators) { this.validators = validators; return this; } - public Provider addValidatorsItem(Validator validatorsItem) { + public ProviderDto addValidatorsItem(ValidatorDto validatorsItem) { if (this.validators == null) { this.validators = new ArrayList<>(); } @@ -150,17 +144,17 @@ public Provider addValidatorsItem(Validator validatorsItem) { @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_VALIDATORS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getValidators() { + public List getValidators() { return validators; } @JsonProperty(JSON_PROPERTY_VALIDATORS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setValidators(@jakarta.annotation.Nonnull List validators) { + public void setValidators(@jakarta.annotation.Nonnull List validators) { this.validators = validators; } - public Provider iconUrl(@jakarta.annotation.Nullable String iconUrl) { + public ProviderDto iconUrl(@jakarta.annotation.Nonnull String iconUrl) { this.iconUrl = iconUrl; return this; } @@ -170,20 +164,20 @@ public Provider iconUrl(@jakarta.annotation.Nullable String iconUrl) { * * @return iconUrl */ - @jakarta.annotation.Nullable + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ICON_URL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getIconUrl() { return iconUrl; } @JsonProperty(JSON_PROPERTY_ICON_URL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIconUrl(@jakarta.annotation.Nullable String iconUrl) { + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setIconUrl(@jakarta.annotation.Nonnull String iconUrl) { this.iconUrl = iconUrl; } - public Provider termsOfServiceUrl(@jakarta.annotation.Nullable String termsOfServiceUrl) { + public ProviderDto termsOfServiceUrl(@jakarta.annotation.Nonnull String termsOfServiceUrl) { this.termsOfServiceUrl = termsOfServiceUrl; return this; } @@ -193,20 +187,20 @@ public Provider termsOfServiceUrl(@jakarta.annotation.Nullable String termsOfSer * * @return termsOfServiceUrl */ - @jakarta.annotation.Nullable + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TERMS_OF_SERVICE_URL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getTermsOfServiceUrl() { return termsOfServiceUrl; } @JsonProperty(JSON_PROPERTY_TERMS_OF_SERVICE_URL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTermsOfServiceUrl(@jakarta.annotation.Nullable String termsOfServiceUrl) { + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setTermsOfServiceUrl(@jakarta.annotation.Nonnull String termsOfServiceUrl) { this.termsOfServiceUrl = termsOfServiceUrl; } - public Provider isTermsOfServiceApproved( + public ProviderDto isTermsOfServiceApproved( @jakarta.annotation.Nonnull Boolean isTermsOfServiceApproved) { this.isTermsOfServiceApproved = isTermsOfServiceApproved; return this; @@ -231,53 +225,7 @@ public void setIsTermsOfServiceApproved( this.isTermsOfServiceApproved = isTermsOfServiceApproved; } - public Provider isPrivate(@jakarta.annotation.Nullable Boolean isPrivate) { - this.isPrivate = isPrivate; - return this; - } - - /** - * Is the provider private, i.e created by the user - * - * @return isPrivate - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_IS_PRIVATE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getIsPrivate() { - return isPrivate; - } - - @JsonProperty(JSON_PROPERTY_IS_PRIVATE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIsPrivate(@jakarta.annotation.Nullable Boolean isPrivate) { - this.isPrivate = isPrivate; - } - - public Provider isLiquidStaking(@jakarta.annotation.Nonnull Boolean isLiquidStaking) { - this.isLiquidStaking = isLiquidStaking; - return this; - } - - /** - * Is the provider a liquid staking provider - * - * @return isLiquidStaking - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_IS_LIQUID_STAKING) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Boolean getIsLiquidStaking() { - return isLiquidStaking; - } - - @JsonProperty(JSON_PROPERTY_IS_LIQUID_STAKING) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setIsLiquidStaking(@jakarta.annotation.Nonnull Boolean isLiquidStaking) { - this.isLiquidStaking = isLiquidStaking; - } - - /** Return true if this Provider object is equal to o. */ + /** Return true if this ProviderDto object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -286,34 +234,26 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - Provider provider = (Provider) o; - return Objects.equals(this.id, provider.id) - && Objects.equals(this.providerName, provider.providerName) - && Objects.equals(this.validators, provider.validators) - && Objects.equals(this.iconUrl, provider.iconUrl) - && Objects.equals(this.termsOfServiceUrl, provider.termsOfServiceUrl) - && Objects.equals(this.isTermsOfServiceApproved, provider.isTermsOfServiceApproved) - && Objects.equals(this.isPrivate, provider.isPrivate) - && Objects.equals(this.isLiquidStaking, provider.isLiquidStaking); + ProviderDto providerDto = (ProviderDto) o; + return Objects.equals(this.id, providerDto.id) + && Objects.equals(this.providerName, providerDto.providerName) + && Objects.equals(this.validators, providerDto.validators) + && Objects.equals(this.iconUrl, providerDto.iconUrl) + && Objects.equals(this.termsOfServiceUrl, providerDto.termsOfServiceUrl) + && Objects.equals( + this.isTermsOfServiceApproved, providerDto.isTermsOfServiceApproved); } @Override public int hashCode() { return Objects.hash( - id, - providerName, - validators, - iconUrl, - termsOfServiceUrl, - isTermsOfServiceApproved, - isPrivate, - isLiquidStaking); + id, providerName, validators, iconUrl, termsOfServiceUrl, isTermsOfServiceApproved); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class Provider {\n"); + sb.append("class ProviderDto {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" providerName: ").append(toIndentedString(providerName)).append("\n"); sb.append(" validators: ").append(toIndentedString(validators)).append("\n"); @@ -324,8 +264,6 @@ public String toString() { sb.append(" isTermsOfServiceApproved: ") .append(toIndentedString(isTermsOfServiceApproved)) .append("\n"); - sb.append(" isPrivate: ").append(toIndentedString(isPrivate)).append("\n"); - sb.append(" isLiquidStaking: ").append(toIndentedString(isLiquidStaking)).append("\n"); sb.append("}"); return sb.toString(); } @@ -445,26 +383,6 @@ public String toUrlQueryString(String prefix) { ApiClient.valueToString(getIsTermsOfServiceApproved())))); } - // add `isPrivate` to the URL query string - if (getIsPrivate() != null) { - joiner.add( - String.format( - "%sisPrivate%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getIsPrivate())))); - } - - // add `isLiquidStaking` to the URL query string - if (getIsLiquidStaking() != null) { - joiner.add( - String.format( - "%sisLiquidStaking%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getIsLiquidStaking())))); - } - return joiner.toString(); } } diff --git a/src/main/java/com/fireblocks/sdk/model/ProviderID.java b/src/main/java/com/fireblocks/sdk/model/ProviderID.java deleted file mode 100644 index edc34da1..00000000 --- a/src/main/java/com/fireblocks/sdk/model/ProviderID.java +++ /dev/null @@ -1,146 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** ProviderID */ -@JsonPropertyOrder({ProviderID.JSON_PROPERTY_PROVIDER_ID}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class ProviderID { - public static final String JSON_PROPERTY_PROVIDER_ID = "providerId"; - @jakarta.annotation.Nonnull private String providerId; - - public ProviderID() {} - - @JsonCreator - public ProviderID( - @JsonProperty(value = JSON_PROPERTY_PROVIDER_ID, required = true) String providerId) { - this.providerId = providerId; - } - - public ProviderID providerId(@jakarta.annotation.Nonnull String providerId) { - this.providerId = providerId; - return this; - } - - /** - * The ID of the provider associated with the account. - * - * @return providerId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PROVIDER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getProviderId() { - return providerId; - } - - @JsonProperty(JSON_PROPERTY_PROVIDER_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setProviderId(@jakarta.annotation.Nonnull String providerId) { - this.providerId = providerId; - } - - /** Return true if this ProviderID object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ProviderID providerID = (ProviderID) o; - return Objects.equals(this.providerId, providerID.providerId); - } - - @Override - public int hashCode() { - return Objects.hash(providerId); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ProviderID {\n"); - sb.append(" providerId: ").append(toIndentedString(providerId)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `providerId` to the URL query string - if (getProviderId() != null) { - joiner.add( - String.format( - "%sproviderId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getProviderId())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/ProvidersListResponse.java b/src/main/java/com/fireblocks/sdk/model/ProvidersListResponse.java deleted file mode 100644 index 33c9f7b0..00000000 --- a/src/main/java/com/fireblocks/sdk/model/ProvidersListResponse.java +++ /dev/null @@ -1,251 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** ProvidersListResponse */ -@JsonPropertyOrder({ - ProvidersListResponse.JSON_PROPERTY_DATA, - ProvidersListResponse.JSON_PROPERTY_TOTAL, - ProvidersListResponse.JSON_PROPERTY_NEXT -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class ProvidersListResponse { - public static final String JSON_PROPERTY_DATA = "data"; - @jakarta.annotation.Nonnull private List data = new ArrayList<>(); - - public static final String JSON_PROPERTY_TOTAL = "total"; - @jakarta.annotation.Nonnull private Integer total; - - public static final String JSON_PROPERTY_NEXT = "next"; - @jakarta.annotation.Nullable private String next; - - public ProvidersListResponse() {} - - @JsonCreator - public ProvidersListResponse( - @JsonProperty(value = JSON_PROPERTY_DATA, required = true) List data, - @JsonProperty(value = JSON_PROPERTY_TOTAL, required = true) Integer total) { - this.data = data; - this.total = total; - } - - public ProvidersListResponse data(@jakarta.annotation.Nonnull List data) { - this.data = data; - return this; - } - - public ProvidersListResponse addDataItem(TradingProvider dataItem) { - if (this.data == null) { - this.data = new ArrayList<>(); - } - this.data.add(dataItem); - return this; - } - - /** - * List of available providers - * - * @return data - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getData() { - return data; - } - - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setData(@jakarta.annotation.Nonnull List data) { - this.data = data; - } - - public ProvidersListResponse total(@jakarta.annotation.Nonnull Integer total) { - this.total = total; - return this; - } - - /** - * Total number of providers matching the query. - * - * @return total - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TOTAL) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getTotal() { - return total; - } - - @JsonProperty(JSON_PROPERTY_TOTAL) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTotal(@jakarta.annotation.Nonnull Integer total) { - this.total = total; - } - - public ProvidersListResponse next(@jakarta.annotation.Nullable String next) { - this.next = next; - return this; - } - - /** - * A cursor for the next page of results, if available. - * - * @return next - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NEXT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getNext() { - return next; - } - - @JsonProperty(JSON_PROPERTY_NEXT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNext(@jakarta.annotation.Nullable String next) { - this.next = next; - } - - /** Return true if this ProvidersListResponse object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ProvidersListResponse providersListResponse = (ProvidersListResponse) o; - return Objects.equals(this.data, providersListResponse.data) - && Objects.equals(this.total, providersListResponse.total) - && Objects.equals(this.next, providersListResponse.next); - } - - @Override - public int hashCode() { - return Objects.hash(data, total, next); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ProvidersListResponse {\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" total: ").append(toIndentedString(total)).append("\n"); - sb.append(" next: ").append(toIndentedString(next)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `data` to the URL query string - if (getData() != null) { - for (int i = 0; i < getData().size(); i++) { - if (getData().get(i) != null) { - joiner.add( - getData() - .get(i) - .toUrlQueryString( - String.format( - "%sdata%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } - } - - // add `total` to the URL query string - if (getTotal() != null) { - joiner.add( - String.format( - "%stotal%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getTotal())))); - } - - // add `next` to the URL query string - if (getNext() != null) { - joiner.add( - String.format( - "%snext%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getNext())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/PublicKeyInformation.java b/src/main/java/com/fireblocks/sdk/model/PublicKeyInformation.java index ade9b0c9..7c314096 100644 --- a/src/main/java/com/fireblocks/sdk/model/PublicKeyInformation.java +++ b/src/main/java/com/fireblocks/sdk/model/PublicKeyInformation.java @@ -13,12 +13,11 @@ package com.fireblocks.sdk.model; -import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; import com.fireblocks.sdk.ApiClient; +import java.math.BigDecimal; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -34,82 +33,47 @@ value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") public class PublicKeyInformation { - /** Elliptic Curve */ - public enum AlgorithmEnum { - MPC_ECDSA_SECP256_K1(String.valueOf("MPC_ECDSA_SECP256K1")), - - MPC_ECDSA_SECP256_R1(String.valueOf("MPC_ECDSA_SECP256R1")), - - MPC_EDDSA_ED25519(String.valueOf("MPC_EDDSA_ED25519")); - - private String value; - - AlgorithmEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static AlgorithmEnum fromValue(String value) { - for (AlgorithmEnum b : AlgorithmEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - public static final String JSON_PROPERTY_ALGORITHM = "algorithm"; - @jakarta.annotation.Nullable private AlgorithmEnum algorithm; + @jakarta.annotation.Nullable private String algorithm; public static final String JSON_PROPERTY_DERIVATION_PATH = "derivationPath"; - @jakarta.annotation.Nullable private List derivationPath = new ArrayList<>(); + @jakarta.annotation.Nullable private List derivationPath; public static final String JSON_PROPERTY_PUBLIC_KEY = "publicKey"; @jakarta.annotation.Nullable private String publicKey; public PublicKeyInformation() {} - public PublicKeyInformation algorithm(@jakarta.annotation.Nullable AlgorithmEnum algorithm) { + public PublicKeyInformation algorithm(@jakarta.annotation.Nullable String algorithm) { this.algorithm = algorithm; return this; } /** - * Elliptic Curve + * Get algorithm * * @return algorithm */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ALGORITHM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public AlgorithmEnum getAlgorithm() { + public String getAlgorithm() { return algorithm; } @JsonProperty(JSON_PROPERTY_ALGORITHM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAlgorithm(@jakarta.annotation.Nullable AlgorithmEnum algorithm) { + public void setAlgorithm(@jakarta.annotation.Nullable String algorithm) { this.algorithm = algorithm; } public PublicKeyInformation derivationPath( - @jakarta.annotation.Nullable List derivationPath) { + @jakarta.annotation.Nullable List derivationPath) { this.derivationPath = derivationPath; return this; } - public PublicKeyInformation addDerivationPathItem(Integer derivationPathItem) { + public PublicKeyInformation addDerivationPathItem(BigDecimal derivationPathItem) { if (this.derivationPath == null) { this.derivationPath = new ArrayList<>(); } @@ -118,20 +82,20 @@ public PublicKeyInformation addDerivationPathItem(Integer derivationPathItem) { } /** - * BIP44 derivation path + * Get derivationPath * * @return derivationPath */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DERIVATION_PATH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getDerivationPath() { + public List getDerivationPath() { return derivationPath; } @JsonProperty(JSON_PROPERTY_DERIVATION_PATH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDerivationPath(@jakarta.annotation.Nullable List derivationPath) { + public void setDerivationPath(@jakarta.annotation.Nullable List derivationPath) { this.derivationPath = derivationPath; } @@ -141,7 +105,7 @@ public PublicKeyInformation publicKey(@jakarta.annotation.Nullable String public } /** - * Compressed/Uncompressed public key value in hex representation + * Get publicKey * * @return publicKey */ @@ -245,17 +209,19 @@ public String toUrlQueryString(String prefix) { // add `derivationPath` to the URL query string if (getDerivationPath() != null) { for (int i = 0; i < getDerivationPath().size(); i++) { - joiner.add( - String.format( - "%sderivationPath%s%s=%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode( - ApiClient.valueToString(getDerivationPath().get(i))))); + if (getDerivationPath().get(i) != null) { + joiner.add( + String.format( + "%sderivationPath%s%s=%s", + prefix, + suffix, + "".equals(suffix) + ? "" + : String.format( + "%s%d%s", containerPrefix, i, containerSuffix), + ApiClient.urlEncode( + ApiClient.valueToString(getDerivationPath().get(i))))); + } } } diff --git a/src/main/java/com/fireblocks/sdk/model/PublishDraftRequest.java b/src/main/java/com/fireblocks/sdk/model/PublishDraftRequest.java index da3f1a85..6c866e86 100644 --- a/src/main/java/com/fireblocks/sdk/model/PublishDraftRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/PublishDraftRequest.java @@ -13,94 +13,44 @@ package com.fireblocks.sdk.model; -import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fireblocks.sdk.ApiClient; -import java.util.ArrayList; -import java.util.List; import java.util.Objects; import java.util.StringJoiner; -/** Request schema for publishing draft with policy types and draft ID */ -@JsonPropertyOrder({ - PublishDraftRequest.JSON_PROPERTY_POLICY_TYPES, - PublishDraftRequest.JSON_PROPERTY_DRAFT_ID -}) +/** PublishDraftRequest */ +@JsonPropertyOrder({PublishDraftRequest.JSON_PROPERTY_DRAFT_ID}) @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") public class PublishDraftRequest { - public static final String JSON_PROPERTY_POLICY_TYPES = "policyTypes"; - @jakarta.annotation.Nonnull private List policyTypes = new ArrayList<>(); - public static final String JSON_PROPERTY_DRAFT_ID = "draftId"; - @jakarta.annotation.Nonnull private String draftId; + @jakarta.annotation.Nullable private String draftId; public PublishDraftRequest() {} - @JsonCreator - public PublishDraftRequest( - @JsonProperty(value = JSON_PROPERTY_POLICY_TYPES, required = true) - List policyTypes, - @JsonProperty(value = JSON_PROPERTY_DRAFT_ID, required = true) String draftId) { - this.policyTypes = policyTypes; - this.draftId = draftId; - } - - public PublishDraftRequest policyTypes( - @jakarta.annotation.Nonnull List policyTypes) { - this.policyTypes = policyTypes; - return this; - } - - public PublishDraftRequest addPolicyTypesItem(PolicyType policyTypesItem) { - if (this.policyTypes == null) { - this.policyTypes = new ArrayList<>(); - } - this.policyTypes.add(policyTypesItem); - return this; - } - - /** - * Get policyTypes - * - * @return policyTypes - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_POLICY_TYPES) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getPolicyTypes() { - return policyTypes; - } - - @JsonProperty(JSON_PROPERTY_POLICY_TYPES) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPolicyTypes(@jakarta.annotation.Nonnull List policyTypes) { - this.policyTypes = policyTypes; - } - - public PublishDraftRequest draftId(@jakarta.annotation.Nonnull String draftId) { + public PublishDraftRequest draftId(@jakarta.annotation.Nullable String draftId) { this.draftId = draftId; return this; } /** - * The ID of the draft to publish + * draft unique identifier * * @return draftId */ - @jakarta.annotation.Nonnull + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DRAFT_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getDraftId() { return draftId; } @JsonProperty(JSON_PROPERTY_DRAFT_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDraftId(@jakarta.annotation.Nonnull String draftId) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDraftId(@jakarta.annotation.Nullable String draftId) { this.draftId = draftId; } @@ -114,20 +64,18 @@ public boolean equals(Object o) { return false; } PublishDraftRequest publishDraftRequest = (PublishDraftRequest) o; - return Objects.equals(this.policyTypes, publishDraftRequest.policyTypes) - && Objects.equals(this.draftId, publishDraftRequest.draftId); + return Objects.equals(this.draftId, publishDraftRequest.draftId); } @Override public int hashCode() { - return Objects.hash(policyTypes, draftId); + return Objects.hash(draftId); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PublishDraftRequest {\n"); - sb.append(" policyTypes: ").append(toIndentedString(policyTypes)).append("\n"); sb.append(" draftId: ").append(toIndentedString(draftId)).append("\n"); sb.append("}"); return sb.toString(); @@ -176,25 +124,6 @@ public String toUrlQueryString(String prefix) { StringJoiner joiner = new StringJoiner("&"); - // add `policyTypes` to the URL query string - if (getPolicyTypes() != null) { - for (int i = 0; i < getPolicyTypes().size(); i++) { - if (getPolicyTypes().get(i) != null) { - joiner.add( - String.format( - "%spolicyTypes%s%s=%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode( - ApiClient.valueToString(getPolicyTypes().get(i))))); - } - } - } - // add `draftId` to the URL query string if (getDraftId() != null) { joiner.add( diff --git a/src/main/java/com/fireblocks/sdk/model/PublishResult.java b/src/main/java/com/fireblocks/sdk/model/PublishResult.java index 8c4ea12d..dd0f289a 100644 --- a/src/main/java/com/fireblocks/sdk/model/PublishResult.java +++ b/src/main/java/com/fireblocks/sdk/model/PublishResult.java @@ -38,7 +38,7 @@ public class PublishResult { @jakarta.annotation.Nonnull private PolicyStatus status; public static final String JSON_PROPERTY_RULES = "rules"; - @jakarta.annotation.Nonnull private List rules = new ArrayList<>(); + @jakarta.annotation.Nonnull private List rules; public static final String JSON_PROPERTY_CHECK_RESULT = "checkResult"; @jakarta.annotation.Nonnull private PolicyCheckResult checkResult; diff --git a/src/main/java/com/fireblocks/sdk/model/Quote.java b/src/main/java/com/fireblocks/sdk/model/Quote.java deleted file mode 100644 index a0eecd18..00000000 --- a/src/main/java/com/fireblocks/sdk/model/Quote.java +++ /dev/null @@ -1,777 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.JSON; -import java.math.BigDecimal; -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.StringJoiner; - -/** Quote */ -@JsonPropertyOrder({ - Quote.JSON_PROPERTY_VIA, - Quote.JSON_PROPERTY_ID, - Quote.JSON_PROPERTY_TYPE, - Quote.JSON_PROPERTY_QUOTE_ASSET_ID, - Quote.JSON_PROPERTY_BASE_ASSET_ID, - Quote.JSON_PROPERTY_BASE_AMOUNT, - Quote.JSON_PROPERTY_QUOTE_AMOUNT, - Quote.JSON_PROPERTY_PRICE_IMPACT, - Quote.JSON_PROPERTY_QUOTE_MIN_AMOUNT, - Quote.JSON_PROPERTY_EXECUTION_STEPS, - Quote.JSON_PROPERTY_GENERAL_FEES, - Quote.JSON_PROPERTY_SIDE, - Quote.JSON_PROPERTY_EXPIRES_AT -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -@JsonIgnoreProperties( - value = "type", // ignore manually set type, it will be automatically generated by Jackson - // during serialization - allowSetters = true // allows the type to be set during deserialization - ) -@JsonTypeInfo( - use = JsonTypeInfo.Id.NAME, - include = JsonTypeInfo.As.PROPERTY, - property = "type", - visible = true) -public class Quote { - public static final String JSON_PROPERTY_VIA = "via"; - @jakarta.annotation.Nonnull private AccessType via; - - public static final String JSON_PROPERTY_ID = "id"; - @jakarta.annotation.Nonnull private String id; - - /** Indicates this is an indicative quote */ - public enum TypeEnum { - INDICATIVE(String.valueOf("INDICATIVE")); - - private String value; - - TypeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static TypeEnum fromValue(String value) { - for (TypeEnum b : TypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_TYPE = "type"; - @jakarta.annotation.Nonnull private TypeEnum type; - - public static final String JSON_PROPERTY_QUOTE_ASSET_ID = "quoteAssetId"; - @jakarta.annotation.Nonnull private String quoteAssetId; - - public static final String JSON_PROPERTY_BASE_ASSET_ID = "baseAssetId"; - @jakarta.annotation.Nonnull private String baseAssetId; - - public static final String JSON_PROPERTY_BASE_AMOUNT = "baseAmount"; - @jakarta.annotation.Nonnull private String baseAmount; - - public static final String JSON_PROPERTY_QUOTE_AMOUNT = "quoteAmount"; - @jakarta.annotation.Nonnull private String quoteAmount; - - public static final String JSON_PROPERTY_PRICE_IMPACT = "priceImpact"; - @jakarta.annotation.Nullable private BigDecimal priceImpact; - - public static final String JSON_PROPERTY_QUOTE_MIN_AMOUNT = "quoteMinAmount"; - @jakarta.annotation.Nullable private String quoteMinAmount; - - public static final String JSON_PROPERTY_EXECUTION_STEPS = "executionSteps"; - - @jakarta.annotation.Nullable - private List executionSteps = new ArrayList<>(); - - public static final String JSON_PROPERTY_GENERAL_FEES = "generalFees"; - @jakarta.annotation.Nullable private List generalFees = new ArrayList<>(); - - /** Side of the order */ - public enum SideEnum { - BUY(String.valueOf("BUY")), - - SELL(String.valueOf("SELL")); - - private String value; - - SideEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static SideEnum fromValue(String value) { - for (SideEnum b : SideEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_SIDE = "side"; - @jakarta.annotation.Nonnull private SideEnum side; - - public static final String JSON_PROPERTY_EXPIRES_AT = "expiresAt"; - @jakarta.annotation.Nonnull private OffsetDateTime expiresAt; - - public Quote() {} - - @JsonCreator - public Quote( - @JsonProperty(value = JSON_PROPERTY_VIA, required = true) AccessType via, - @JsonProperty(value = JSON_PROPERTY_ID, required = true) String id, - @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) TypeEnum type, - @JsonProperty(value = JSON_PROPERTY_QUOTE_ASSET_ID, required = true) - String quoteAssetId, - @JsonProperty(value = JSON_PROPERTY_BASE_ASSET_ID, required = true) String baseAssetId, - @JsonProperty(value = JSON_PROPERTY_BASE_AMOUNT, required = true) String baseAmount, - @JsonProperty(value = JSON_PROPERTY_QUOTE_AMOUNT, required = true) String quoteAmount, - @JsonProperty(value = JSON_PROPERTY_SIDE, required = true) SideEnum side, - @JsonProperty(value = JSON_PROPERTY_EXPIRES_AT, required = true) - OffsetDateTime expiresAt) { - this.via = via; - this.id = id; - this.type = type; - this.quoteAssetId = quoteAssetId; - this.baseAssetId = baseAssetId; - this.baseAmount = baseAmount; - this.quoteAmount = quoteAmount; - this.side = side; - this.expiresAt = expiresAt; - } - - public Quote via(@jakarta.annotation.Nonnull AccessType via) { - this.via = via; - return this; - } - - /** - * Get via - * - * @return via - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_VIA) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccessType getVia() { - return via; - } - - @JsonProperty(JSON_PROPERTY_VIA) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setVia(@jakarta.annotation.Nonnull AccessType via) { - this.via = via; - } - - public Quote id(@jakarta.annotation.Nonnull String id) { - this.id = id; - return this; - } - - /** - * Get id - * - * @return id - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getId() { - return id; - } - - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(@jakarta.annotation.Nonnull String id) { - this.id = id; - } - - public Quote type(@jakarta.annotation.Nonnull TypeEnum type) { - this.type = type; - return this; - } - - /** - * Indicates this is an indicative quote - * - * @return type - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { - return type; - } - - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(@jakarta.annotation.Nonnull TypeEnum type) { - this.type = type; - } - - public Quote quoteAssetId(@jakarta.annotation.Nonnull String quoteAssetId) { - this.quoteAssetId = quoteAssetId; - return this; - } - - /** - * Get quoteAssetId - * - * @return quoteAssetId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_QUOTE_ASSET_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getQuoteAssetId() { - return quoteAssetId; - } - - @JsonProperty(JSON_PROPERTY_QUOTE_ASSET_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setQuoteAssetId(@jakarta.annotation.Nonnull String quoteAssetId) { - this.quoteAssetId = quoteAssetId; - } - - public Quote baseAssetId(@jakarta.annotation.Nonnull String baseAssetId) { - this.baseAssetId = baseAssetId; - return this; - } - - /** - * Get baseAssetId - * - * @return baseAssetId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BASE_ASSET_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getBaseAssetId() { - return baseAssetId; - } - - @JsonProperty(JSON_PROPERTY_BASE_ASSET_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBaseAssetId(@jakarta.annotation.Nonnull String baseAssetId) { - this.baseAssetId = baseAssetId; - } - - public Quote baseAmount(@jakarta.annotation.Nonnull String baseAmount) { - this.baseAmount = baseAmount; - return this; - } - - /** - * Get baseAmount - * - * @return baseAmount - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BASE_AMOUNT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getBaseAmount() { - return baseAmount; - } - - @JsonProperty(JSON_PROPERTY_BASE_AMOUNT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBaseAmount(@jakarta.annotation.Nonnull String baseAmount) { - this.baseAmount = baseAmount; - } - - public Quote quoteAmount(@jakarta.annotation.Nonnull String quoteAmount) { - this.quoteAmount = quoteAmount; - return this; - } - - /** - * Get quoteAmount - * - * @return quoteAmount - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_QUOTE_AMOUNT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getQuoteAmount() { - return quoteAmount; - } - - @JsonProperty(JSON_PROPERTY_QUOTE_AMOUNT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setQuoteAmount(@jakarta.annotation.Nonnull String quoteAmount) { - this.quoteAmount = quoteAmount; - } - - public Quote priceImpact(@jakarta.annotation.Nullable BigDecimal priceImpact) { - this.priceImpact = priceImpact; - return this; - } - - /** - * Get priceImpact - * - * @return priceImpact - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PRICE_IMPACT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public BigDecimal getPriceImpact() { - return priceImpact; - } - - @JsonProperty(JSON_PROPERTY_PRICE_IMPACT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPriceImpact(@jakarta.annotation.Nullable BigDecimal priceImpact) { - this.priceImpact = priceImpact; - } - - public Quote quoteMinAmount(@jakarta.annotation.Nullable String quoteMinAmount) { - this.quoteMinAmount = quoteMinAmount; - return this; - } - - /** - * Get quoteMinAmount - * - * @return quoteMinAmount - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_QUOTE_MIN_AMOUNT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getQuoteMinAmount() { - return quoteMinAmount; - } - - @JsonProperty(JSON_PROPERTY_QUOTE_MIN_AMOUNT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setQuoteMinAmount(@jakarta.annotation.Nullable String quoteMinAmount) { - this.quoteMinAmount = quoteMinAmount; - } - - public Quote executionSteps( - @jakarta.annotation.Nullable List executionSteps) { - this.executionSteps = executionSteps; - return this; - } - - public Quote addExecutionStepsItem(ExecutionStepDetails executionStepsItem) { - if (this.executionSteps == null) { - this.executionSteps = new ArrayList<>(); - } - this.executionSteps.add(executionStepsItem); - return this; - } - - /** - * Get executionSteps - * - * @return executionSteps - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EXECUTION_STEPS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getExecutionSteps() { - return executionSteps; - } - - @JsonProperty(JSON_PROPERTY_EXECUTION_STEPS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setExecutionSteps( - @jakarta.annotation.Nullable List executionSteps) { - this.executionSteps = executionSteps; - } - - public Quote generalFees(@jakarta.annotation.Nullable List generalFees) { - this.generalFees = generalFees; - return this; - } - - public Quote addGeneralFeesItem(Fee generalFeesItem) { - if (this.generalFees == null) { - this.generalFees = new ArrayList<>(); - } - this.generalFees.add(generalFeesItem); - return this; - } - - /** - * Get generalFees - * - * @return generalFees - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_GENERAL_FEES) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getGeneralFees() { - return generalFees; - } - - @JsonProperty(JSON_PROPERTY_GENERAL_FEES) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setGeneralFees(@jakarta.annotation.Nullable List generalFees) { - this.generalFees = generalFees; - } - - public Quote side(@jakarta.annotation.Nonnull SideEnum side) { - this.side = side; - return this; - } - - /** - * Side of the order - * - * @return side - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SIDE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public SideEnum getSide() { - return side; - } - - @JsonProperty(JSON_PROPERTY_SIDE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSide(@jakarta.annotation.Nonnull SideEnum side) { - this.side = side; - } - - public Quote expiresAt(@jakarta.annotation.Nonnull OffsetDateTime expiresAt) { - this.expiresAt = expiresAt; - return this; - } - - /** - * ISO 8601 timestamp of the expiration time of the quote. - * - * @return expiresAt - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_EXPIRES_AT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public OffsetDateTime getExpiresAt() { - return expiresAt; - } - - @JsonProperty(JSON_PROPERTY_EXPIRES_AT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setExpiresAt(@jakarta.annotation.Nonnull OffsetDateTime expiresAt) { - this.expiresAt = expiresAt; - } - - /** Return true if this Quote object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Quote quote = (Quote) o; - return Objects.equals(this.via, quote.via) - && Objects.equals(this.id, quote.id) - && Objects.equals(this.type, quote.type) - && Objects.equals(this.quoteAssetId, quote.quoteAssetId) - && Objects.equals(this.baseAssetId, quote.baseAssetId) - && Objects.equals(this.baseAmount, quote.baseAmount) - && Objects.equals(this.quoteAmount, quote.quoteAmount) - && Objects.equals(this.priceImpact, quote.priceImpact) - && Objects.equals(this.quoteMinAmount, quote.quoteMinAmount) - && Objects.equals(this.executionSteps, quote.executionSteps) - && Objects.equals(this.generalFees, quote.generalFees) - && Objects.equals(this.side, quote.side) - && Objects.equals(this.expiresAt, quote.expiresAt); - } - - @Override - public int hashCode() { - return Objects.hash( - via, - id, - type, - quoteAssetId, - baseAssetId, - baseAmount, - quoteAmount, - priceImpact, - quoteMinAmount, - executionSteps, - generalFees, - side, - expiresAt); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class Quote {\n"); - sb.append(" via: ").append(toIndentedString(via)).append("\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" quoteAssetId: ").append(toIndentedString(quoteAssetId)).append("\n"); - sb.append(" baseAssetId: ").append(toIndentedString(baseAssetId)).append("\n"); - sb.append(" baseAmount: ").append(toIndentedString(baseAmount)).append("\n"); - sb.append(" quoteAmount: ").append(toIndentedString(quoteAmount)).append("\n"); - sb.append(" priceImpact: ").append(toIndentedString(priceImpact)).append("\n"); - sb.append(" quoteMinAmount: ").append(toIndentedString(quoteMinAmount)).append("\n"); - sb.append(" executionSteps: ").append(toIndentedString(executionSteps)).append("\n"); - sb.append(" generalFees: ").append(toIndentedString(generalFees)).append("\n"); - sb.append(" side: ").append(toIndentedString(side)).append("\n"); - sb.append(" expiresAt: ").append(toIndentedString(expiresAt)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `via` to the URL query string - if (getVia() != null) { - joiner.add(getVia().toUrlQueryString(prefix + "via" + suffix)); - } - - // add `id` to the URL query string - if (getId() != null) { - joiner.add( - String.format( - "%sid%s=%s", - prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); - } - - // add `type` to the URL query string - if (getType() != null) { - joiner.add( - String.format( - "%stype%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getType())))); - } - - // add `quoteAssetId` to the URL query string - if (getQuoteAssetId() != null) { - joiner.add( - String.format( - "%squoteAssetId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getQuoteAssetId())))); - } - - // add `baseAssetId` to the URL query string - if (getBaseAssetId() != null) { - joiner.add( - String.format( - "%sbaseAssetId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBaseAssetId())))); - } - - // add `baseAmount` to the URL query string - if (getBaseAmount() != null) { - joiner.add( - String.format( - "%sbaseAmount%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBaseAmount())))); - } - - // add `quoteAmount` to the URL query string - if (getQuoteAmount() != null) { - joiner.add( - String.format( - "%squoteAmount%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getQuoteAmount())))); - } - - // add `priceImpact` to the URL query string - if (getPriceImpact() != null) { - joiner.add( - String.format( - "%spriceImpact%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getPriceImpact())))); - } - - // add `quoteMinAmount` to the URL query string - if (getQuoteMinAmount() != null) { - joiner.add( - String.format( - "%squoteMinAmount%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getQuoteMinAmount())))); - } - - // add `executionSteps` to the URL query string - if (getExecutionSteps() != null) { - for (int i = 0; i < getExecutionSteps().size(); i++) { - if (getExecutionSteps().get(i) != null) { - joiner.add( - getExecutionSteps() - .get(i) - .toUrlQueryString( - String.format( - "%sexecutionSteps%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } - } - - // add `generalFees` to the URL query string - if (getGeneralFees() != null) { - for (int i = 0; i < getGeneralFees().size(); i++) { - if (getGeneralFees().get(i) != null) { - joiner.add( - getGeneralFees() - .get(i) - .toUrlQueryString( - String.format( - "%sgeneralFees%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } - } - - // add `side` to the URL query string - if (getSide() != null) { - joiner.add( - String.format( - "%sside%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getSide())))); - } - - // add `expiresAt` to the URL query string - if (getExpiresAt() != null) { - joiner.add( - String.format( - "%sexpiresAt%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getExpiresAt())))); - } - - return joiner.toString(); - } - - static { - // Initialize and register the discriminator mappings. - Map> mappings = new HashMap>(); - mappings.put("Quote", Quote.class); - JSON.registerDiscriminator(Quote.class, "type", mappings); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/QuoteExecutionRequestDetails.java b/src/main/java/com/fireblocks/sdk/model/QuoteExecutionRequestDetails.java deleted file mode 100644 index 3c08b1fe..00000000 --- a/src/main/java/com/fireblocks/sdk/model/QuoteExecutionRequestDetails.java +++ /dev/null @@ -1,222 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** QuoteExecutionRequestDetails */ -@JsonPropertyOrder({ - QuoteExecutionRequestDetails.JSON_PROPERTY_TYPE, - QuoteExecutionRequestDetails.JSON_PROPERTY_QUOTE_ID -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class QuoteExecutionRequestDetails { - /** Order type for quote orders */ - public enum TypeEnum { - QUOTE(String.valueOf("QUOTE")); - - private String value; - - TypeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static TypeEnum fromValue(String value) { - for (TypeEnum b : TypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_TYPE = "type"; - @jakarta.annotation.Nonnull private TypeEnum type; - - public static final String JSON_PROPERTY_QUOTE_ID = "quoteId"; - @jakarta.annotation.Nonnull private String quoteId; - - public QuoteExecutionRequestDetails() {} - - @JsonCreator - public QuoteExecutionRequestDetails( - @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) TypeEnum type, - @JsonProperty(value = JSON_PROPERTY_QUOTE_ID, required = true) String quoteId) { - this.type = type; - this.quoteId = quoteId; - } - - public QuoteExecutionRequestDetails type(@jakarta.annotation.Nonnull TypeEnum type) { - this.type = type; - return this; - } - - /** - * Order type for quote orders - * - * @return type - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { - return type; - } - - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(@jakarta.annotation.Nonnull TypeEnum type) { - this.type = type; - } - - public QuoteExecutionRequestDetails quoteId(@jakarta.annotation.Nonnull String quoteId) { - this.quoteId = quoteId; - return this; - } - - /** - * Quote ID for quote orders - * - * @return quoteId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_QUOTE_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getQuoteId() { - return quoteId; - } - - @JsonProperty(JSON_PROPERTY_QUOTE_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setQuoteId(@jakarta.annotation.Nonnull String quoteId) { - this.quoteId = quoteId; - } - - /** Return true if this QuoteExecutionRequestDetails object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - QuoteExecutionRequestDetails quoteExecutionRequestDetails = - (QuoteExecutionRequestDetails) o; - return Objects.equals(this.type, quoteExecutionRequestDetails.type) - && Objects.equals(this.quoteId, quoteExecutionRequestDetails.quoteId); - } - - @Override - public int hashCode() { - return Objects.hash(type, quoteId); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class QuoteExecutionRequestDetails {\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" quoteId: ").append(toIndentedString(quoteId)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `type` to the URL query string - if (getType() != null) { - joiner.add( - String.format( - "%stype%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getType())))); - } - - // add `quoteId` to the URL query string - if (getQuoteId() != null) { - joiner.add( - String.format( - "%squoteId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getQuoteId())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/QuoteExecutionResponseDetails.java b/src/main/java/com/fireblocks/sdk/model/QuoteExecutionResponseDetails.java deleted file mode 100644 index a6b0fc13..00000000 --- a/src/main/java/com/fireblocks/sdk/model/QuoteExecutionResponseDetails.java +++ /dev/null @@ -1,553 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** QuoteExecutionResponseDetails */ -@JsonPropertyOrder({ - QuoteExecutionResponseDetails.JSON_PROPERTY_SIDE, - QuoteExecutionResponseDetails.JSON_PROPERTY_BASE_AMOUNT, - QuoteExecutionResponseDetails.JSON_PROPERTY_BASE_ASSET_ID, - QuoteExecutionResponseDetails.JSON_PROPERTY_BASE_ASSET_RAIL, - QuoteExecutionResponseDetails.JSON_PROPERTY_QUOTE_ASSET_ID, - QuoteExecutionResponseDetails.JSON_PROPERTY_QUOTE_ASSET_RAIL, - QuoteExecutionResponseDetails.JSON_PROPERTY_TYPE, - QuoteExecutionResponseDetails.JSON_PROPERTY_QUOTE_ID, - QuoteExecutionResponseDetails.JSON_PROPERTY_QUOTE_AMOUNT -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class QuoteExecutionResponseDetails { - /** Side of the order */ - public enum SideEnum { - BUY(String.valueOf("BUY")), - - SELL(String.valueOf("SELL")); - - private String value; - - SideEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static SideEnum fromValue(String value) { - for (SideEnum b : SideEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_SIDE = "side"; - @jakarta.annotation.Nonnull private SideEnum side = SideEnum.BUY; - - public static final String JSON_PROPERTY_BASE_AMOUNT = "baseAmount"; - @jakarta.annotation.Nonnull private String baseAmount; - - public static final String JSON_PROPERTY_BASE_ASSET_ID = "baseAssetId"; - @jakarta.annotation.Nonnull private String baseAssetId; - - public static final String JSON_PROPERTY_BASE_ASSET_RAIL = "baseAssetRail"; - @jakarta.annotation.Nullable private TransferRail baseAssetRail; - - public static final String JSON_PROPERTY_QUOTE_ASSET_ID = "quoteAssetId"; - @jakarta.annotation.Nonnull private String quoteAssetId; - - public static final String JSON_PROPERTY_QUOTE_ASSET_RAIL = "quoteAssetRail"; - @jakarta.annotation.Nullable private TransferRail quoteAssetRail; - - /** Order type for quote orders */ - public enum TypeEnum { - QUOTE(String.valueOf("QUOTE")); - - private String value; - - TypeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static TypeEnum fromValue(String value) { - for (TypeEnum b : TypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_TYPE = "type"; - @jakarta.annotation.Nonnull private TypeEnum type; - - public static final String JSON_PROPERTY_QUOTE_ID = "quoteId"; - @jakarta.annotation.Nonnull private String quoteId; - - public static final String JSON_PROPERTY_QUOTE_AMOUNT = "quoteAmount"; - @jakarta.annotation.Nonnull private String quoteAmount; - - public QuoteExecutionResponseDetails() {} - - @JsonCreator - public QuoteExecutionResponseDetails( - @JsonProperty(value = JSON_PROPERTY_SIDE, required = true) SideEnum side, - @JsonProperty(value = JSON_PROPERTY_BASE_AMOUNT, required = true) String baseAmount, - @JsonProperty(value = JSON_PROPERTY_BASE_ASSET_ID, required = true) String baseAssetId, - @JsonProperty(value = JSON_PROPERTY_QUOTE_ASSET_ID, required = true) - String quoteAssetId, - @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) TypeEnum type, - @JsonProperty(value = JSON_PROPERTY_QUOTE_ID, required = true) String quoteId, - @JsonProperty(value = JSON_PROPERTY_QUOTE_AMOUNT, required = true) String quoteAmount) { - this.side = side; - this.baseAmount = baseAmount; - this.baseAssetId = baseAssetId; - this.quoteAssetId = quoteAssetId; - this.type = type; - this.quoteId = quoteId; - this.quoteAmount = quoteAmount; - } - - public QuoteExecutionResponseDetails side(@jakarta.annotation.Nonnull SideEnum side) { - this.side = side; - return this; - } - - /** - * Side of the order - * - * @return side - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SIDE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public SideEnum getSide() { - return side; - } - - @JsonProperty(JSON_PROPERTY_SIDE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSide(@jakarta.annotation.Nonnull SideEnum side) { - this.side = side; - } - - public QuoteExecutionResponseDetails baseAmount(@jakarta.annotation.Nonnull String baseAmount) { - this.baseAmount = baseAmount; - return this; - } - - /** - * Amount to convert - * - * @return baseAmount - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BASE_AMOUNT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getBaseAmount() { - return baseAmount; - } - - @JsonProperty(JSON_PROPERTY_BASE_AMOUNT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBaseAmount(@jakarta.annotation.Nonnull String baseAmount) { - this.baseAmount = baseAmount; - } - - public QuoteExecutionResponseDetails baseAssetId( - @jakarta.annotation.Nonnull String baseAssetId) { - this.baseAssetId = baseAssetId; - return this; - } - - /** - * Source asset identifier - * - * @return baseAssetId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BASE_ASSET_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getBaseAssetId() { - return baseAssetId; - } - - @JsonProperty(JSON_PROPERTY_BASE_ASSET_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBaseAssetId(@jakarta.annotation.Nonnull String baseAssetId) { - this.baseAssetId = baseAssetId; - } - - public QuoteExecutionResponseDetails baseAssetRail( - @jakarta.annotation.Nullable TransferRail baseAssetRail) { - this.baseAssetRail = baseAssetRail; - return this; - } - - /** - * Get baseAssetRail - * - * @return baseAssetRail - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BASE_ASSET_RAIL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public TransferRail getBaseAssetRail() { - return baseAssetRail; - } - - @JsonProperty(JSON_PROPERTY_BASE_ASSET_RAIL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBaseAssetRail(@jakarta.annotation.Nullable TransferRail baseAssetRail) { - this.baseAssetRail = baseAssetRail; - } - - public QuoteExecutionResponseDetails quoteAssetId( - @jakarta.annotation.Nonnull String quoteAssetId) { - this.quoteAssetId = quoteAssetId; - return this; - } - - /** - * Target asset identifier - * - * @return quoteAssetId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_QUOTE_ASSET_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getQuoteAssetId() { - return quoteAssetId; - } - - @JsonProperty(JSON_PROPERTY_QUOTE_ASSET_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setQuoteAssetId(@jakarta.annotation.Nonnull String quoteAssetId) { - this.quoteAssetId = quoteAssetId; - } - - public QuoteExecutionResponseDetails quoteAssetRail( - @jakarta.annotation.Nullable TransferRail quoteAssetRail) { - this.quoteAssetRail = quoteAssetRail; - return this; - } - - /** - * Get quoteAssetRail - * - * @return quoteAssetRail - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_QUOTE_ASSET_RAIL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public TransferRail getQuoteAssetRail() { - return quoteAssetRail; - } - - @JsonProperty(JSON_PROPERTY_QUOTE_ASSET_RAIL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setQuoteAssetRail(@jakarta.annotation.Nullable TransferRail quoteAssetRail) { - this.quoteAssetRail = quoteAssetRail; - } - - public QuoteExecutionResponseDetails type(@jakarta.annotation.Nonnull TypeEnum type) { - this.type = type; - return this; - } - - /** - * Order type for quote orders - * - * @return type - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { - return type; - } - - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(@jakarta.annotation.Nonnull TypeEnum type) { - this.type = type; - } - - public QuoteExecutionResponseDetails quoteId(@jakarta.annotation.Nonnull String quoteId) { - this.quoteId = quoteId; - return this; - } - - /** - * Quote ID for quote orders - * - * @return quoteId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_QUOTE_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getQuoteId() { - return quoteId; - } - - @JsonProperty(JSON_PROPERTY_QUOTE_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setQuoteId(@jakarta.annotation.Nonnull String quoteId) { - this.quoteId = quoteId; - } - - public QuoteExecutionResponseDetails quoteAmount( - @jakarta.annotation.Nonnull String quoteAmount) { - this.quoteAmount = quoteAmount; - return this; - } - - /** - * Quote amount for quote orders - * - * @return quoteAmount - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_QUOTE_AMOUNT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getQuoteAmount() { - return quoteAmount; - } - - @JsonProperty(JSON_PROPERTY_QUOTE_AMOUNT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setQuoteAmount(@jakarta.annotation.Nonnull String quoteAmount) { - this.quoteAmount = quoteAmount; - } - - /** Return true if this QuoteExecutionResponseDetails object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - QuoteExecutionResponseDetails quoteExecutionResponseDetails = - (QuoteExecutionResponseDetails) o; - return Objects.equals(this.side, quoteExecutionResponseDetails.side) - && Objects.equals(this.baseAmount, quoteExecutionResponseDetails.baseAmount) - && Objects.equals(this.baseAssetId, quoteExecutionResponseDetails.baseAssetId) - && Objects.equals(this.baseAssetRail, quoteExecutionResponseDetails.baseAssetRail) - && Objects.equals(this.quoteAssetId, quoteExecutionResponseDetails.quoteAssetId) - && Objects.equals(this.quoteAssetRail, quoteExecutionResponseDetails.quoteAssetRail) - && Objects.equals(this.type, quoteExecutionResponseDetails.type) - && Objects.equals(this.quoteId, quoteExecutionResponseDetails.quoteId) - && Objects.equals(this.quoteAmount, quoteExecutionResponseDetails.quoteAmount); - } - - @Override - public int hashCode() { - return Objects.hash( - side, - baseAmount, - baseAssetId, - baseAssetRail, - quoteAssetId, - quoteAssetRail, - type, - quoteId, - quoteAmount); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class QuoteExecutionResponseDetails {\n"); - sb.append(" side: ").append(toIndentedString(side)).append("\n"); - sb.append(" baseAmount: ").append(toIndentedString(baseAmount)).append("\n"); - sb.append(" baseAssetId: ").append(toIndentedString(baseAssetId)).append("\n"); - sb.append(" baseAssetRail: ").append(toIndentedString(baseAssetRail)).append("\n"); - sb.append(" quoteAssetId: ").append(toIndentedString(quoteAssetId)).append("\n"); - sb.append(" quoteAssetRail: ").append(toIndentedString(quoteAssetRail)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" quoteId: ").append(toIndentedString(quoteId)).append("\n"); - sb.append(" quoteAmount: ").append(toIndentedString(quoteAmount)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `side` to the URL query string - if (getSide() != null) { - joiner.add( - String.format( - "%sside%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getSide())))); - } - - // add `baseAmount` to the URL query string - if (getBaseAmount() != null) { - joiner.add( - String.format( - "%sbaseAmount%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBaseAmount())))); - } - - // add `baseAssetId` to the URL query string - if (getBaseAssetId() != null) { - joiner.add( - String.format( - "%sbaseAssetId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBaseAssetId())))); - } - - // add `baseAssetRail` to the URL query string - if (getBaseAssetRail() != null) { - joiner.add( - String.format( - "%sbaseAssetRail%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBaseAssetRail())))); - } - - // add `quoteAssetId` to the URL query string - if (getQuoteAssetId() != null) { - joiner.add( - String.format( - "%squoteAssetId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getQuoteAssetId())))); - } - - // add `quoteAssetRail` to the URL query string - if (getQuoteAssetRail() != null) { - joiner.add( - String.format( - "%squoteAssetRail%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getQuoteAssetRail())))); - } - - // add `type` to the URL query string - if (getType() != null) { - joiner.add( - String.format( - "%stype%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getType())))); - } - - // add `quoteId` to the URL query string - if (getQuoteId() != null) { - joiner.add( - String.format( - "%squoteId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getQuoteId())))); - } - - // add `quoteAmount` to the URL query string - if (getQuoteAmount() != null) { - joiner.add( - String.format( - "%squoteAmount%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getQuoteAmount())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/QuoteExecutionWithRequoteRequestDetails.java b/src/main/java/com/fireblocks/sdk/model/QuoteExecutionWithRequoteRequestDetails.java deleted file mode 100644 index 17377f6e..00000000 --- a/src/main/java/com/fireblocks/sdk/model/QuoteExecutionWithRequoteRequestDetails.java +++ /dev/null @@ -1,263 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** QuoteExecutionWithRequoteRequestDetails */ -@JsonPropertyOrder({ - QuoteExecutionWithRequoteRequestDetails.JSON_PROPERTY_TYPE, - QuoteExecutionWithRequoteRequestDetails.JSON_PROPERTY_QUOTE_ID, - QuoteExecutionWithRequoteRequestDetails.JSON_PROPERTY_RE_QUOTE -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class QuoteExecutionWithRequoteRequestDetails { - /** Order type for quote orders */ - public enum TypeEnum { - QUOTE(String.valueOf("QUOTE")); - - private String value; - - TypeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static TypeEnum fromValue(String value) { - for (TypeEnum b : TypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_TYPE = "type"; - @jakarta.annotation.Nonnull private TypeEnum type; - - public static final String JSON_PROPERTY_QUOTE_ID = "quoteId"; - @jakarta.annotation.Nonnull private String quoteId; - - public static final String JSON_PROPERTY_RE_QUOTE = "reQuote"; - - @jakarta.annotation.Nullable - private QuoteExecutionWithRequoteRequestDetailsAllOfReQuote reQuote; - - public QuoteExecutionWithRequoteRequestDetails() {} - - @JsonCreator - public QuoteExecutionWithRequoteRequestDetails( - @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) TypeEnum type, - @JsonProperty(value = JSON_PROPERTY_QUOTE_ID, required = true) String quoteId) { - this.type = type; - this.quoteId = quoteId; - } - - public QuoteExecutionWithRequoteRequestDetails type(@jakarta.annotation.Nonnull TypeEnum type) { - this.type = type; - return this; - } - - /** - * Order type for quote orders - * - * @return type - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { - return type; - } - - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(@jakarta.annotation.Nonnull TypeEnum type) { - this.type = type; - } - - public QuoteExecutionWithRequoteRequestDetails quoteId( - @jakarta.annotation.Nonnull String quoteId) { - this.quoteId = quoteId; - return this; - } - - /** - * Quote ID for quote orders - * - * @return quoteId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_QUOTE_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getQuoteId() { - return quoteId; - } - - @JsonProperty(JSON_PROPERTY_QUOTE_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setQuoteId(@jakarta.annotation.Nonnull String quoteId) { - this.quoteId = quoteId; - } - - public QuoteExecutionWithRequoteRequestDetails reQuote( - @jakarta.annotation.Nullable - QuoteExecutionWithRequoteRequestDetailsAllOfReQuote reQuote) { - this.reQuote = reQuote; - return this; - } - - /** - * Get reQuote - * - * @return reQuote - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_RE_QUOTE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public QuoteExecutionWithRequoteRequestDetailsAllOfReQuote getReQuote() { - return reQuote; - } - - @JsonProperty(JSON_PROPERTY_RE_QUOTE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setReQuote( - @jakarta.annotation.Nullable - QuoteExecutionWithRequoteRequestDetailsAllOfReQuote reQuote) { - this.reQuote = reQuote; - } - - /** Return true if this QuoteExecutionWithRequoteRequestDetails object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - QuoteExecutionWithRequoteRequestDetails quoteExecutionWithRequoteRequestDetails = - (QuoteExecutionWithRequoteRequestDetails) o; - return Objects.equals(this.type, quoteExecutionWithRequoteRequestDetails.type) - && Objects.equals(this.quoteId, quoteExecutionWithRequoteRequestDetails.quoteId) - && Objects.equals(this.reQuote, quoteExecutionWithRequoteRequestDetails.reQuote); - } - - @Override - public int hashCode() { - return Objects.hash(type, quoteId, reQuote); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class QuoteExecutionWithRequoteRequestDetails {\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" quoteId: ").append(toIndentedString(quoteId)).append("\n"); - sb.append(" reQuote: ").append(toIndentedString(reQuote)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `type` to the URL query string - if (getType() != null) { - joiner.add( - String.format( - "%stype%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getType())))); - } - - // add `quoteId` to the URL query string - if (getQuoteId() != null) { - joiner.add( - String.format( - "%squoteId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getQuoteId())))); - } - - // add `reQuote` to the URL query string - if (getReQuote() != null) { - joiner.add(getReQuote().toUrlQueryString(prefix + "reQuote" + suffix)); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/QuoteExecutionWithRequoteRequestDetailsAllOfReQuote.java b/src/main/java/com/fireblocks/sdk/model/QuoteExecutionWithRequoteRequestDetailsAllOfReQuote.java deleted file mode 100644 index b1ad2bdb..00000000 --- a/src/main/java/com/fireblocks/sdk/model/QuoteExecutionWithRequoteRequestDetailsAllOfReQuote.java +++ /dev/null @@ -1,366 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.core.JsonGenerator; -import com.fasterxml.jackson.core.JsonParser; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.core.JsonToken; -import com.fasterxml.jackson.databind.DeserializationContext; -import com.fasterxml.jackson.databind.JsonMappingException; -import com.fasterxml.jackson.databind.JsonNode; -import com.fasterxml.jackson.databind.MapperFeature; -import com.fasterxml.jackson.databind.SerializerProvider; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import com.fasterxml.jackson.databind.deser.std.StdDeserializer; -import com.fasterxml.jackson.databind.ser.std.StdSerializer; -import com.fireblocks.sdk.JSON; -import java.io.IOException; -import java.util.Collections; -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; -import java.util.StringJoiner; -import java.util.logging.Level; -import java.util.logging.Logger; - -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -@JsonDeserialize( - using = - QuoteExecutionWithRequoteRequestDetailsAllOfReQuote - .QuoteExecutionWithRequoteRequestDetailsAllOfReQuoteDeserializer.class) -@JsonSerialize( - using = - QuoteExecutionWithRequoteRequestDetailsAllOfReQuote - .QuoteExecutionWithRequoteRequestDetailsAllOfReQuoteSerializer.class) -public class QuoteExecutionWithRequoteRequestDetailsAllOfReQuote extends AbstractOpenApiSchema { - private static final Logger log = - Logger.getLogger(QuoteExecutionWithRequoteRequestDetailsAllOfReQuote.class.getName()); - - public static class QuoteExecutionWithRequoteRequestDetailsAllOfReQuoteSerializer - extends StdSerializer { - public QuoteExecutionWithRequoteRequestDetailsAllOfReQuoteSerializer( - Class t) { - super(t); - } - - public QuoteExecutionWithRequoteRequestDetailsAllOfReQuoteSerializer() { - this(null); - } - - @Override - public void serialize( - QuoteExecutionWithRequoteRequestDetailsAllOfReQuote value, - JsonGenerator jgen, - SerializerProvider provider) - throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); - } - } - - public static class QuoteExecutionWithRequoteRequestDetailsAllOfReQuoteDeserializer - extends StdDeserializer { - public QuoteExecutionWithRequoteRequestDetailsAllOfReQuoteDeserializer() { - this(QuoteExecutionWithRequoteRequestDetailsAllOfReQuote.class); - } - - public QuoteExecutionWithRequoteRequestDetailsAllOfReQuoteDeserializer(Class vc) { - super(vc); - } - - @Override - public QuoteExecutionWithRequoteRequestDetailsAllOfReQuote deserialize( - JsonParser jp, DeserializationContext ctxt) - throws IOException, JsonProcessingException { - JsonNode tree = jp.readValueAsTree(); - Object deserialized = null; - boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); - int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); - // deserialize MarketRequoteRequestDetails - try { - boolean attemptParsing = true; - // ensure that we respect type coercion as set on the client ObjectMapper - if (MarketRequoteRequestDetails.class.equals(Integer.class) - || MarketRequoteRequestDetails.class.equals(Long.class) - || MarketRequoteRequestDetails.class.equals(Float.class) - || MarketRequoteRequestDetails.class.equals(Double.class) - || MarketRequoteRequestDetails.class.equals(Boolean.class) - || MarketRequoteRequestDetails.class.equals(String.class)) { - attemptParsing = typeCoercion; - if (!attemptParsing) { - attemptParsing |= - ((MarketRequoteRequestDetails.class.equals(Integer.class) - || MarketRequoteRequestDetails.class.equals( - Long.class)) - && token == JsonToken.VALUE_NUMBER_INT); - attemptParsing |= - ((MarketRequoteRequestDetails.class.equals(Float.class) - || MarketRequoteRequestDetails.class.equals( - Double.class)) - && token == JsonToken.VALUE_NUMBER_FLOAT); - attemptParsing |= - (MarketRequoteRequestDetails.class.equals(Boolean.class) - && (token == JsonToken.VALUE_FALSE - || token == JsonToken.VALUE_TRUE)); - attemptParsing |= - (MarketRequoteRequestDetails.class.equals(String.class) - && token == JsonToken.VALUE_STRING); - } - } - if (attemptParsing) { - deserialized = - tree.traverse(jp.getCodec()) - .readValueAs(MarketRequoteRequestDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'MarketRequoteRequestDetails'"); - } - } catch (Exception e) { - // deserialization failed, continue - log.log( - Level.FINER, - "Input data does not match schema 'MarketRequoteRequestDetails'", - e); - } - - // deserialize RetryRequoteRequestDetails - try { - boolean attemptParsing = true; - // ensure that we respect type coercion as set on the client ObjectMapper - if (RetryRequoteRequestDetails.class.equals(Integer.class) - || RetryRequoteRequestDetails.class.equals(Long.class) - || RetryRequoteRequestDetails.class.equals(Float.class) - || RetryRequoteRequestDetails.class.equals(Double.class) - || RetryRequoteRequestDetails.class.equals(Boolean.class) - || RetryRequoteRequestDetails.class.equals(String.class)) { - attemptParsing = typeCoercion; - if (!attemptParsing) { - attemptParsing |= - ((RetryRequoteRequestDetails.class.equals(Integer.class) - || RetryRequoteRequestDetails.class.equals( - Long.class)) - && token == JsonToken.VALUE_NUMBER_INT); - attemptParsing |= - ((RetryRequoteRequestDetails.class.equals(Float.class) - || RetryRequoteRequestDetails.class.equals( - Double.class)) - && token == JsonToken.VALUE_NUMBER_FLOAT); - attemptParsing |= - (RetryRequoteRequestDetails.class.equals(Boolean.class) - && (token == JsonToken.VALUE_FALSE - || token == JsonToken.VALUE_TRUE)); - attemptParsing |= - (RetryRequoteRequestDetails.class.equals(String.class) - && token == JsonToken.VALUE_STRING); - } - } - if (attemptParsing) { - deserialized = - tree.traverse(jp.getCodec()) - .readValueAs(RetryRequoteRequestDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'RetryRequoteRequestDetails'"); - } - } catch (Exception e) { - // deserialization failed, continue - log.log( - Level.FINER, - "Input data does not match schema 'RetryRequoteRequestDetails'", - e); - } - - if (match == 1) { - QuoteExecutionWithRequoteRequestDetailsAllOfReQuote ret = - new QuoteExecutionWithRequoteRequestDetailsAllOfReQuote(); - ret.setActualInstance(deserialized); - return ret; - } - throw new IOException( - String.format( - "Failed deserialization for" - + " QuoteExecutionWithRequoteRequestDetailsAllOfReQuote: %d classes" - + " match result, expected 1", - match)); - } - - /** Handle deserialization of the 'null' value. */ - @Override - public QuoteExecutionWithRequoteRequestDetailsAllOfReQuote getNullValue( - DeserializationContext ctxt) throws JsonMappingException { - throw new JsonMappingException( - ctxt.getParser(), - "QuoteExecutionWithRequoteRequestDetailsAllOfReQuote cannot be null"); - } - } - - // store a list of schema names defined in oneOf - public static final Map> schemas = new HashMap<>(); - - public QuoteExecutionWithRequoteRequestDetailsAllOfReQuote() { - super("oneOf", Boolean.FALSE); - } - - public QuoteExecutionWithRequoteRequestDetailsAllOfReQuote(MarketRequoteRequestDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public QuoteExecutionWithRequoteRequestDetailsAllOfReQuote(RetryRequoteRequestDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("MarketRequoteRequestDetails", MarketRequoteRequestDetails.class); - schemas.put("RetryRequoteRequestDetails", RetryRequoteRequestDetails.class); - JSON.registerDescendants( - QuoteExecutionWithRequoteRequestDetailsAllOfReQuote.class, - Collections.unmodifiableMap(schemas)); - // Initialize and register the discriminator mappings. - Map> mappings = new HashMap>(); - mappings.put("MARKET", MarketRequoteRequestDetails.class); - mappings.put("RETRY", RetryRequoteRequestDetails.class); - mappings.put("MarketRequoteRequestDetails", MarketRequoteRequestDetails.class); - mappings.put("RetryRequoteRequestDetails", RetryRequoteRequestDetails.class); - mappings.put( - "QuoteExecutionWithRequoteRequestDetails_allOf_reQuote", - QuoteExecutionWithRequoteRequestDetailsAllOfReQuote.class); - JSON.registerDiscriminator( - QuoteExecutionWithRequoteRequestDetailsAllOfReQuote.class, "type", mappings); - } - - @Override - public Map> getSchemas() { - return QuoteExecutionWithRequoteRequestDetailsAllOfReQuote.schemas; - } - - /** - * Set the instance that matches the oneOf child schema, check the instance parameter is valid - * against the oneOf child schemas: MarketRequoteRequestDetails, RetryRequoteRequestDetails - * - *

It could be an instance of the 'oneOf' schemas. The oneOf child schemas may themselves be - * a composed schema (allOf, anyOf, oneOf). - */ - @Override - public void setActualInstance(Object instance) { - if (JSON.isInstanceOf( - MarketRequoteRequestDetails.class, instance, new HashSet>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf( - RetryRequoteRequestDetails.class, instance, new HashSet>())) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException( - "Invalid instance type. Must be MarketRequoteRequestDetails," - + " RetryRequoteRequestDetails"); - } - - /** - * Get the actual instance, which can be the following: MarketRequoteRequestDetails, - * RetryRequoteRequestDetails - * - * @return The actual instance (MarketRequoteRequestDetails, RetryRequoteRequestDetails) - */ - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `MarketRequoteRequestDetails`. If the actual instance is not - * `MarketRequoteRequestDetails`, the ClassCastException will be thrown. - * - * @return The actual instance of `MarketRequoteRequestDetails` - * @throws ClassCastException if the instance is not `MarketRequoteRequestDetails` - */ - public MarketRequoteRequestDetails getMarketRequoteRequestDetails() throws ClassCastException { - return (MarketRequoteRequestDetails) super.getActualInstance(); - } - - /** - * Get the actual instance of `RetryRequoteRequestDetails`. If the actual instance is not - * `RetryRequoteRequestDetails`, the ClassCastException will be thrown. - * - * @return The actual instance of `RetryRequoteRequestDetails` - * @throws ClassCastException if the instance is not `RetryRequoteRequestDetails` - */ - public RetryRequoteRequestDetails getRetryRequoteRequestDetails() throws ClassCastException { - return (RetryRequoteRequestDetails) super.getActualInstance(); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - if (getActualInstance() instanceof MarketRequoteRequestDetails) { - if (getActualInstance() != null) { - joiner.add( - ((MarketRequoteRequestDetails) getActualInstance()) - .toUrlQueryString(prefix + "one_of_0" + suffix)); - } - return joiner.toString(); - } - if (getActualInstance() instanceof RetryRequoteRequestDetails) { - if (getActualInstance() != null) { - joiner.add( - ((RetryRequoteRequestDetails) getActualInstance()) - .toUrlQueryString(prefix + "one_of_1" + suffix)); - } - return joiner.toString(); - } - return null; - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/QuoteExecutionWithRequoteResponseDetails.java b/src/main/java/com/fireblocks/sdk/model/QuoteExecutionWithRequoteResponseDetails.java deleted file mode 100644 index b2482751..00000000 --- a/src/main/java/com/fireblocks/sdk/model/QuoteExecutionWithRequoteResponseDetails.java +++ /dev/null @@ -1,605 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** QuoteExecutionWithRequoteResponseDetails */ -@JsonPropertyOrder({ - QuoteExecutionWithRequoteResponseDetails.JSON_PROPERTY_TYPE, - QuoteExecutionWithRequoteResponseDetails.JSON_PROPERTY_QUOTE_ID, - QuoteExecutionWithRequoteResponseDetails.JSON_PROPERTY_QUOTE_AMOUNT, - QuoteExecutionWithRequoteResponseDetails.JSON_PROPERTY_SIDE, - QuoteExecutionWithRequoteResponseDetails.JSON_PROPERTY_BASE_AMOUNT, - QuoteExecutionWithRequoteResponseDetails.JSON_PROPERTY_BASE_ASSET_ID, - QuoteExecutionWithRequoteResponseDetails.JSON_PROPERTY_BASE_ASSET_RAIL, - QuoteExecutionWithRequoteResponseDetails.JSON_PROPERTY_QUOTE_ASSET_ID, - QuoteExecutionWithRequoteResponseDetails.JSON_PROPERTY_QUOTE_ASSET_RAIL, - QuoteExecutionWithRequoteResponseDetails.JSON_PROPERTY_RE_QUOTE -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class QuoteExecutionWithRequoteResponseDetails { - /** Order type for quote orders */ - public enum TypeEnum { - QUOTE(String.valueOf("QUOTE")); - - private String value; - - TypeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static TypeEnum fromValue(String value) { - for (TypeEnum b : TypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_TYPE = "type"; - @jakarta.annotation.Nonnull private TypeEnum type; - - public static final String JSON_PROPERTY_QUOTE_ID = "quoteId"; - @jakarta.annotation.Nonnull private String quoteId; - - public static final String JSON_PROPERTY_QUOTE_AMOUNT = "quoteAmount"; - @jakarta.annotation.Nonnull private String quoteAmount; - - /** Side of the order */ - public enum SideEnum { - BUY(String.valueOf("BUY")), - - SELL(String.valueOf("SELL")); - - private String value; - - SideEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static SideEnum fromValue(String value) { - for (SideEnum b : SideEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_SIDE = "side"; - @jakarta.annotation.Nonnull private SideEnum side = SideEnum.BUY; - - public static final String JSON_PROPERTY_BASE_AMOUNT = "baseAmount"; - @jakarta.annotation.Nonnull private String baseAmount; - - public static final String JSON_PROPERTY_BASE_ASSET_ID = "baseAssetId"; - @jakarta.annotation.Nonnull private String baseAssetId; - - public static final String JSON_PROPERTY_BASE_ASSET_RAIL = "baseAssetRail"; - @jakarta.annotation.Nullable private TransferRail baseAssetRail; - - public static final String JSON_PROPERTY_QUOTE_ASSET_ID = "quoteAssetId"; - @jakarta.annotation.Nonnull private String quoteAssetId; - - public static final String JSON_PROPERTY_QUOTE_ASSET_RAIL = "quoteAssetRail"; - @jakarta.annotation.Nullable private TransferRail quoteAssetRail; - - public static final String JSON_PROPERTY_RE_QUOTE = "reQuote"; - - @jakarta.annotation.Nullable - private QuoteExecutionWithRequoteResponseDetailsAllOfReQuote reQuote; - - public QuoteExecutionWithRequoteResponseDetails() {} - - @JsonCreator - public QuoteExecutionWithRequoteResponseDetails( - @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) TypeEnum type, - @JsonProperty(value = JSON_PROPERTY_QUOTE_ID, required = true) String quoteId, - @JsonProperty(value = JSON_PROPERTY_QUOTE_AMOUNT, required = true) String quoteAmount, - @JsonProperty(value = JSON_PROPERTY_SIDE, required = true) SideEnum side, - @JsonProperty(value = JSON_PROPERTY_BASE_AMOUNT, required = true) String baseAmount, - @JsonProperty(value = JSON_PROPERTY_BASE_ASSET_ID, required = true) String baseAssetId, - @JsonProperty(value = JSON_PROPERTY_QUOTE_ASSET_ID, required = true) - String quoteAssetId) { - this.type = type; - this.quoteId = quoteId; - this.quoteAmount = quoteAmount; - this.side = side; - this.baseAmount = baseAmount; - this.baseAssetId = baseAssetId; - this.quoteAssetId = quoteAssetId; - } - - public QuoteExecutionWithRequoteResponseDetails type( - @jakarta.annotation.Nonnull TypeEnum type) { - this.type = type; - return this; - } - - /** - * Order type for quote orders - * - * @return type - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { - return type; - } - - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(@jakarta.annotation.Nonnull TypeEnum type) { - this.type = type; - } - - public QuoteExecutionWithRequoteResponseDetails quoteId( - @jakarta.annotation.Nonnull String quoteId) { - this.quoteId = quoteId; - return this; - } - - /** - * Quote ID for quote orders - * - * @return quoteId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_QUOTE_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getQuoteId() { - return quoteId; - } - - @JsonProperty(JSON_PROPERTY_QUOTE_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setQuoteId(@jakarta.annotation.Nonnull String quoteId) { - this.quoteId = quoteId; - } - - public QuoteExecutionWithRequoteResponseDetails quoteAmount( - @jakarta.annotation.Nonnull String quoteAmount) { - this.quoteAmount = quoteAmount; - return this; - } - - /** - * Quote amount for quote orders - * - * @return quoteAmount - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_QUOTE_AMOUNT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getQuoteAmount() { - return quoteAmount; - } - - @JsonProperty(JSON_PROPERTY_QUOTE_AMOUNT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setQuoteAmount(@jakarta.annotation.Nonnull String quoteAmount) { - this.quoteAmount = quoteAmount; - } - - public QuoteExecutionWithRequoteResponseDetails side( - @jakarta.annotation.Nonnull SideEnum side) { - this.side = side; - return this; - } - - /** - * Side of the order - * - * @return side - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SIDE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public SideEnum getSide() { - return side; - } - - @JsonProperty(JSON_PROPERTY_SIDE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSide(@jakarta.annotation.Nonnull SideEnum side) { - this.side = side; - } - - public QuoteExecutionWithRequoteResponseDetails baseAmount( - @jakarta.annotation.Nonnull String baseAmount) { - this.baseAmount = baseAmount; - return this; - } - - /** - * Amount to convert - * - * @return baseAmount - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BASE_AMOUNT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getBaseAmount() { - return baseAmount; - } - - @JsonProperty(JSON_PROPERTY_BASE_AMOUNT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBaseAmount(@jakarta.annotation.Nonnull String baseAmount) { - this.baseAmount = baseAmount; - } - - public QuoteExecutionWithRequoteResponseDetails baseAssetId( - @jakarta.annotation.Nonnull String baseAssetId) { - this.baseAssetId = baseAssetId; - return this; - } - - /** - * Source asset identifier - * - * @return baseAssetId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BASE_ASSET_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getBaseAssetId() { - return baseAssetId; - } - - @JsonProperty(JSON_PROPERTY_BASE_ASSET_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBaseAssetId(@jakarta.annotation.Nonnull String baseAssetId) { - this.baseAssetId = baseAssetId; - } - - public QuoteExecutionWithRequoteResponseDetails baseAssetRail( - @jakarta.annotation.Nullable TransferRail baseAssetRail) { - this.baseAssetRail = baseAssetRail; - return this; - } - - /** - * Get baseAssetRail - * - * @return baseAssetRail - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BASE_ASSET_RAIL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public TransferRail getBaseAssetRail() { - return baseAssetRail; - } - - @JsonProperty(JSON_PROPERTY_BASE_ASSET_RAIL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBaseAssetRail(@jakarta.annotation.Nullable TransferRail baseAssetRail) { - this.baseAssetRail = baseAssetRail; - } - - public QuoteExecutionWithRequoteResponseDetails quoteAssetId( - @jakarta.annotation.Nonnull String quoteAssetId) { - this.quoteAssetId = quoteAssetId; - return this; - } - - /** - * Target asset identifier - * - * @return quoteAssetId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_QUOTE_ASSET_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getQuoteAssetId() { - return quoteAssetId; - } - - @JsonProperty(JSON_PROPERTY_QUOTE_ASSET_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setQuoteAssetId(@jakarta.annotation.Nonnull String quoteAssetId) { - this.quoteAssetId = quoteAssetId; - } - - public QuoteExecutionWithRequoteResponseDetails quoteAssetRail( - @jakarta.annotation.Nullable TransferRail quoteAssetRail) { - this.quoteAssetRail = quoteAssetRail; - return this; - } - - /** - * Get quoteAssetRail - * - * @return quoteAssetRail - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_QUOTE_ASSET_RAIL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public TransferRail getQuoteAssetRail() { - return quoteAssetRail; - } - - @JsonProperty(JSON_PROPERTY_QUOTE_ASSET_RAIL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setQuoteAssetRail(@jakarta.annotation.Nullable TransferRail quoteAssetRail) { - this.quoteAssetRail = quoteAssetRail; - } - - public QuoteExecutionWithRequoteResponseDetails reQuote( - @jakarta.annotation.Nullable - QuoteExecutionWithRequoteResponseDetailsAllOfReQuote reQuote) { - this.reQuote = reQuote; - return this; - } - - /** - * Get reQuote - * - * @return reQuote - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_RE_QUOTE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public QuoteExecutionWithRequoteResponseDetailsAllOfReQuote getReQuote() { - return reQuote; - } - - @JsonProperty(JSON_PROPERTY_RE_QUOTE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setReQuote( - @jakarta.annotation.Nullable - QuoteExecutionWithRequoteResponseDetailsAllOfReQuote reQuote) { - this.reQuote = reQuote; - } - - /** Return true if this QuoteExecutionWithRequoteResponseDetails object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - QuoteExecutionWithRequoteResponseDetails quoteExecutionWithRequoteResponseDetails = - (QuoteExecutionWithRequoteResponseDetails) o; - return Objects.equals(this.type, quoteExecutionWithRequoteResponseDetails.type) - && Objects.equals(this.quoteId, quoteExecutionWithRequoteResponseDetails.quoteId) - && Objects.equals( - this.quoteAmount, quoteExecutionWithRequoteResponseDetails.quoteAmount) - && Objects.equals(this.side, quoteExecutionWithRequoteResponseDetails.side) - && Objects.equals( - this.baseAmount, quoteExecutionWithRequoteResponseDetails.baseAmount) - && Objects.equals( - this.baseAssetId, quoteExecutionWithRequoteResponseDetails.baseAssetId) - && Objects.equals( - this.baseAssetRail, quoteExecutionWithRequoteResponseDetails.baseAssetRail) - && Objects.equals( - this.quoteAssetId, quoteExecutionWithRequoteResponseDetails.quoteAssetId) - && Objects.equals( - this.quoteAssetRail, - quoteExecutionWithRequoteResponseDetails.quoteAssetRail) - && Objects.equals(this.reQuote, quoteExecutionWithRequoteResponseDetails.reQuote); - } - - @Override - public int hashCode() { - return Objects.hash( - type, - quoteId, - quoteAmount, - side, - baseAmount, - baseAssetId, - baseAssetRail, - quoteAssetId, - quoteAssetRail, - reQuote); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class QuoteExecutionWithRequoteResponseDetails {\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" quoteId: ").append(toIndentedString(quoteId)).append("\n"); - sb.append(" quoteAmount: ").append(toIndentedString(quoteAmount)).append("\n"); - sb.append(" side: ").append(toIndentedString(side)).append("\n"); - sb.append(" baseAmount: ").append(toIndentedString(baseAmount)).append("\n"); - sb.append(" baseAssetId: ").append(toIndentedString(baseAssetId)).append("\n"); - sb.append(" baseAssetRail: ").append(toIndentedString(baseAssetRail)).append("\n"); - sb.append(" quoteAssetId: ").append(toIndentedString(quoteAssetId)).append("\n"); - sb.append(" quoteAssetRail: ").append(toIndentedString(quoteAssetRail)).append("\n"); - sb.append(" reQuote: ").append(toIndentedString(reQuote)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `type` to the URL query string - if (getType() != null) { - joiner.add( - String.format( - "%stype%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getType())))); - } - - // add `quoteId` to the URL query string - if (getQuoteId() != null) { - joiner.add( - String.format( - "%squoteId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getQuoteId())))); - } - - // add `quoteAmount` to the URL query string - if (getQuoteAmount() != null) { - joiner.add( - String.format( - "%squoteAmount%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getQuoteAmount())))); - } - - // add `side` to the URL query string - if (getSide() != null) { - joiner.add( - String.format( - "%sside%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getSide())))); - } - - // add `baseAmount` to the URL query string - if (getBaseAmount() != null) { - joiner.add( - String.format( - "%sbaseAmount%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBaseAmount())))); - } - - // add `baseAssetId` to the URL query string - if (getBaseAssetId() != null) { - joiner.add( - String.format( - "%sbaseAssetId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBaseAssetId())))); - } - - // add `baseAssetRail` to the URL query string - if (getBaseAssetRail() != null) { - joiner.add( - String.format( - "%sbaseAssetRail%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBaseAssetRail())))); - } - - // add `quoteAssetId` to the URL query string - if (getQuoteAssetId() != null) { - joiner.add( - String.format( - "%squoteAssetId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getQuoteAssetId())))); - } - - // add `quoteAssetRail` to the URL query string - if (getQuoteAssetRail() != null) { - joiner.add( - String.format( - "%squoteAssetRail%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getQuoteAssetRail())))); - } - - // add `reQuote` to the URL query string - if (getReQuote() != null) { - joiner.add(getReQuote().toUrlQueryString(prefix + "reQuote" + suffix)); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/QuoteExecutionWithRequoteResponseDetailsAllOfReQuote.java b/src/main/java/com/fireblocks/sdk/model/QuoteExecutionWithRequoteResponseDetailsAllOfReQuote.java deleted file mode 100644 index 6119aa6e..00000000 --- a/src/main/java/com/fireblocks/sdk/model/QuoteExecutionWithRequoteResponseDetailsAllOfReQuote.java +++ /dev/null @@ -1,366 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.core.JsonGenerator; -import com.fasterxml.jackson.core.JsonParser; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.core.JsonToken; -import com.fasterxml.jackson.databind.DeserializationContext; -import com.fasterxml.jackson.databind.JsonMappingException; -import com.fasterxml.jackson.databind.JsonNode; -import com.fasterxml.jackson.databind.MapperFeature; -import com.fasterxml.jackson.databind.SerializerProvider; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import com.fasterxml.jackson.databind.deser.std.StdDeserializer; -import com.fasterxml.jackson.databind.ser.std.StdSerializer; -import com.fireblocks.sdk.JSON; -import java.io.IOException; -import java.util.Collections; -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; -import java.util.StringJoiner; -import java.util.logging.Level; -import java.util.logging.Logger; - -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -@JsonDeserialize( - using = - QuoteExecutionWithRequoteResponseDetailsAllOfReQuote - .QuoteExecutionWithRequoteResponseDetailsAllOfReQuoteDeserializer.class) -@JsonSerialize( - using = - QuoteExecutionWithRequoteResponseDetailsAllOfReQuote - .QuoteExecutionWithRequoteResponseDetailsAllOfReQuoteSerializer.class) -public class QuoteExecutionWithRequoteResponseDetailsAllOfReQuote extends AbstractOpenApiSchema { - private static final Logger log = - Logger.getLogger(QuoteExecutionWithRequoteResponseDetailsAllOfReQuote.class.getName()); - - public static class QuoteExecutionWithRequoteResponseDetailsAllOfReQuoteSerializer - extends StdSerializer { - public QuoteExecutionWithRequoteResponseDetailsAllOfReQuoteSerializer( - Class t) { - super(t); - } - - public QuoteExecutionWithRequoteResponseDetailsAllOfReQuoteSerializer() { - this(null); - } - - @Override - public void serialize( - QuoteExecutionWithRequoteResponseDetailsAllOfReQuote value, - JsonGenerator jgen, - SerializerProvider provider) - throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); - } - } - - public static class QuoteExecutionWithRequoteResponseDetailsAllOfReQuoteDeserializer - extends StdDeserializer { - public QuoteExecutionWithRequoteResponseDetailsAllOfReQuoteDeserializer() { - this(QuoteExecutionWithRequoteResponseDetailsAllOfReQuote.class); - } - - public QuoteExecutionWithRequoteResponseDetailsAllOfReQuoteDeserializer(Class vc) { - super(vc); - } - - @Override - public QuoteExecutionWithRequoteResponseDetailsAllOfReQuote deserialize( - JsonParser jp, DeserializationContext ctxt) - throws IOException, JsonProcessingException { - JsonNode tree = jp.readValueAsTree(); - Object deserialized = null; - boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); - int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); - // deserialize MarketRequoteRequestDetails - try { - boolean attemptParsing = true; - // ensure that we respect type coercion as set on the client ObjectMapper - if (MarketRequoteRequestDetails.class.equals(Integer.class) - || MarketRequoteRequestDetails.class.equals(Long.class) - || MarketRequoteRequestDetails.class.equals(Float.class) - || MarketRequoteRequestDetails.class.equals(Double.class) - || MarketRequoteRequestDetails.class.equals(Boolean.class) - || MarketRequoteRequestDetails.class.equals(String.class)) { - attemptParsing = typeCoercion; - if (!attemptParsing) { - attemptParsing |= - ((MarketRequoteRequestDetails.class.equals(Integer.class) - || MarketRequoteRequestDetails.class.equals( - Long.class)) - && token == JsonToken.VALUE_NUMBER_INT); - attemptParsing |= - ((MarketRequoteRequestDetails.class.equals(Float.class) - || MarketRequoteRequestDetails.class.equals( - Double.class)) - && token == JsonToken.VALUE_NUMBER_FLOAT); - attemptParsing |= - (MarketRequoteRequestDetails.class.equals(Boolean.class) - && (token == JsonToken.VALUE_FALSE - || token == JsonToken.VALUE_TRUE)); - attemptParsing |= - (MarketRequoteRequestDetails.class.equals(String.class) - && token == JsonToken.VALUE_STRING); - } - } - if (attemptParsing) { - deserialized = - tree.traverse(jp.getCodec()) - .readValueAs(MarketRequoteRequestDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'MarketRequoteRequestDetails'"); - } - } catch (Exception e) { - // deserialization failed, continue - log.log( - Level.FINER, - "Input data does not match schema 'MarketRequoteRequestDetails'", - e); - } - - // deserialize RetryRequoteRequestDetails - try { - boolean attemptParsing = true; - // ensure that we respect type coercion as set on the client ObjectMapper - if (RetryRequoteRequestDetails.class.equals(Integer.class) - || RetryRequoteRequestDetails.class.equals(Long.class) - || RetryRequoteRequestDetails.class.equals(Float.class) - || RetryRequoteRequestDetails.class.equals(Double.class) - || RetryRequoteRequestDetails.class.equals(Boolean.class) - || RetryRequoteRequestDetails.class.equals(String.class)) { - attemptParsing = typeCoercion; - if (!attemptParsing) { - attemptParsing |= - ((RetryRequoteRequestDetails.class.equals(Integer.class) - || RetryRequoteRequestDetails.class.equals( - Long.class)) - && token == JsonToken.VALUE_NUMBER_INT); - attemptParsing |= - ((RetryRequoteRequestDetails.class.equals(Float.class) - || RetryRequoteRequestDetails.class.equals( - Double.class)) - && token == JsonToken.VALUE_NUMBER_FLOAT); - attemptParsing |= - (RetryRequoteRequestDetails.class.equals(Boolean.class) - && (token == JsonToken.VALUE_FALSE - || token == JsonToken.VALUE_TRUE)); - attemptParsing |= - (RetryRequoteRequestDetails.class.equals(String.class) - && token == JsonToken.VALUE_STRING); - } - } - if (attemptParsing) { - deserialized = - tree.traverse(jp.getCodec()) - .readValueAs(RetryRequoteRequestDetails.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'RetryRequoteRequestDetails'"); - } - } catch (Exception e) { - // deserialization failed, continue - log.log( - Level.FINER, - "Input data does not match schema 'RetryRequoteRequestDetails'", - e); - } - - if (match == 1) { - QuoteExecutionWithRequoteResponseDetailsAllOfReQuote ret = - new QuoteExecutionWithRequoteResponseDetailsAllOfReQuote(); - ret.setActualInstance(deserialized); - return ret; - } - throw new IOException( - String.format( - "Failed deserialization for" - + " QuoteExecutionWithRequoteResponseDetailsAllOfReQuote: %d" - + " classes match result, expected 1", - match)); - } - - /** Handle deserialization of the 'null' value. */ - @Override - public QuoteExecutionWithRequoteResponseDetailsAllOfReQuote getNullValue( - DeserializationContext ctxt) throws JsonMappingException { - throw new JsonMappingException( - ctxt.getParser(), - "QuoteExecutionWithRequoteResponseDetailsAllOfReQuote cannot be null"); - } - } - - // store a list of schema names defined in oneOf - public static final Map> schemas = new HashMap<>(); - - public QuoteExecutionWithRequoteResponseDetailsAllOfReQuote() { - super("oneOf", Boolean.FALSE); - } - - public QuoteExecutionWithRequoteResponseDetailsAllOfReQuote(MarketRequoteRequestDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public QuoteExecutionWithRequoteResponseDetailsAllOfReQuote(RetryRequoteRequestDetails o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("MarketRequoteRequestDetails", MarketRequoteRequestDetails.class); - schemas.put("RetryRequoteRequestDetails", RetryRequoteRequestDetails.class); - JSON.registerDescendants( - QuoteExecutionWithRequoteResponseDetailsAllOfReQuote.class, - Collections.unmodifiableMap(schemas)); - // Initialize and register the discriminator mappings. - Map> mappings = new HashMap>(); - mappings.put("MARKET", MarketRequoteRequestDetails.class); - mappings.put("RETRY", RetryRequoteRequestDetails.class); - mappings.put("MarketRequoteRequestDetails", MarketRequoteRequestDetails.class); - mappings.put("RetryRequoteRequestDetails", RetryRequoteRequestDetails.class); - mappings.put( - "QuoteExecutionWithRequoteResponseDetails_allOf_reQuote", - QuoteExecutionWithRequoteResponseDetailsAllOfReQuote.class); - JSON.registerDiscriminator( - QuoteExecutionWithRequoteResponseDetailsAllOfReQuote.class, "type", mappings); - } - - @Override - public Map> getSchemas() { - return QuoteExecutionWithRequoteResponseDetailsAllOfReQuote.schemas; - } - - /** - * Set the instance that matches the oneOf child schema, check the instance parameter is valid - * against the oneOf child schemas: MarketRequoteRequestDetails, RetryRequoteRequestDetails - * - *

It could be an instance of the 'oneOf' schemas. The oneOf child schemas may themselves be - * a composed schema (allOf, anyOf, oneOf). - */ - @Override - public void setActualInstance(Object instance) { - if (JSON.isInstanceOf( - MarketRequoteRequestDetails.class, instance, new HashSet>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf( - RetryRequoteRequestDetails.class, instance, new HashSet>())) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException( - "Invalid instance type. Must be MarketRequoteRequestDetails," - + " RetryRequoteRequestDetails"); - } - - /** - * Get the actual instance, which can be the following: MarketRequoteRequestDetails, - * RetryRequoteRequestDetails - * - * @return The actual instance (MarketRequoteRequestDetails, RetryRequoteRequestDetails) - */ - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `MarketRequoteRequestDetails`. If the actual instance is not - * `MarketRequoteRequestDetails`, the ClassCastException will be thrown. - * - * @return The actual instance of `MarketRequoteRequestDetails` - * @throws ClassCastException if the instance is not `MarketRequoteRequestDetails` - */ - public MarketRequoteRequestDetails getMarketRequoteRequestDetails() throws ClassCastException { - return (MarketRequoteRequestDetails) super.getActualInstance(); - } - - /** - * Get the actual instance of `RetryRequoteRequestDetails`. If the actual instance is not - * `RetryRequoteRequestDetails`, the ClassCastException will be thrown. - * - * @return The actual instance of `RetryRequoteRequestDetails` - * @throws ClassCastException if the instance is not `RetryRequoteRequestDetails` - */ - public RetryRequoteRequestDetails getRetryRequoteRequestDetails() throws ClassCastException { - return (RetryRequoteRequestDetails) super.getActualInstance(); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - if (getActualInstance() instanceof MarketRequoteRequestDetails) { - if (getActualInstance() != null) { - joiner.add( - ((MarketRequoteRequestDetails) getActualInstance()) - .toUrlQueryString(prefix + "one_of_0" + suffix)); - } - return joiner.toString(); - } - if (getActualInstance() instanceof RetryRequoteRequestDetails) { - if (getActualInstance() != null) { - joiner.add( - ((RetryRequoteRequestDetails) getActualInstance()) - .toUrlQueryString(prefix + "one_of_1" + suffix)); - } - return joiner.toString(); - } - return null; - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/QuotesResponse.java b/src/main/java/com/fireblocks/sdk/model/QuotesResponse.java deleted file mode 100644 index a926ef3c..00000000 --- a/src/main/java/com/fireblocks/sdk/model/QuotesResponse.java +++ /dev/null @@ -1,161 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** QuotesResponse */ -@JsonPropertyOrder({QuotesResponse.JSON_PROPERTY_QUOTES}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class QuotesResponse { - public static final String JSON_PROPERTY_QUOTES = "quotes"; - @jakarta.annotation.Nullable private List quotes = new ArrayList<>(); - - public QuotesResponse() {} - - public QuotesResponse quotes(@jakarta.annotation.Nullable List quotes) { - this.quotes = quotes; - return this; - } - - public QuotesResponse addQuotesItem(Quote quotesItem) { - if (this.quotes == null) { - this.quotes = new ArrayList<>(); - } - this.quotes.add(quotesItem); - return this; - } - - /** - * Get quotes - * - * @return quotes - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_QUOTES) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getQuotes() { - return quotes; - } - - @JsonProperty(JSON_PROPERTY_QUOTES) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setQuotes(@jakarta.annotation.Nullable List quotes) { - this.quotes = quotes; - } - - /** Return true if this QuotesResponse object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - QuotesResponse quotesResponse = (QuotesResponse) o; - return Objects.equals(this.quotes, quotesResponse.quotes); - } - - @Override - public int hashCode() { - return Objects.hash(quotes); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class QuotesResponse {\n"); - sb.append(" quotes: ").append(toIndentedString(quotes)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `quotes` to the URL query string - if (getQuotes() != null) { - for (int i = 0; i < getQuotes().size(); i++) { - if (getQuotes().get(i) != null) { - joiner.add( - getQuotes() - .get(i) - .toUrlQueryString( - String.format( - "%squotes%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/ReadAbiFunction.java b/src/main/java/com/fireblocks/sdk/model/ReadAbiFunction.java index f3747101..dff16e12 100644 --- a/src/main/java/com/fireblocks/sdk/model/ReadAbiFunction.java +++ b/src/main/java/com/fireblocks/sdk/model/ReadAbiFunction.java @@ -74,7 +74,7 @@ public static StateMutabilityEnum fromValue(String value) { @jakarta.annotation.Nonnull private StateMutabilityEnum stateMutability; public static final String JSON_PROPERTY_OUTPUTS = "outputs"; - @jakarta.annotation.Nullable private List outputs = new ArrayList<>(); + @jakarta.annotation.Nullable private List outputs; public static final String JSON_PROPERTY_NAME = "name"; @jakarta.annotation.Nullable private String name; @@ -83,7 +83,7 @@ public static StateMutabilityEnum fromValue(String value) { @jakarta.annotation.Nonnull private String type; public static final String JSON_PROPERTY_INPUTS = "inputs"; - @jakarta.annotation.Nonnull private List inputs = new ArrayList<>(); + @jakarta.annotation.Nonnull private List inputs; public static final String JSON_PROPERTY_DESCRIPTION = "description"; @jakarta.annotation.Nullable private String description; diff --git a/src/main/java/com/fireblocks/sdk/model/ReadCallFunctionDto.java b/src/main/java/com/fireblocks/sdk/model/ReadCallFunctionDto.java index 5bc586a5..9d200821 100644 --- a/src/main/java/com/fireblocks/sdk/model/ReadCallFunctionDto.java +++ b/src/main/java/com/fireblocks/sdk/model/ReadCallFunctionDto.java @@ -17,6 +17,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.ArrayList; +import java.util.List; import java.util.Objects; import java.util.StringJoiner; @@ -27,39 +29,46 @@ comments = "Generator version: 7.14.0") public class ReadCallFunctionDto { public static final String JSON_PROPERTY_ABI_FUNCTION = "abiFunction"; - @jakarta.annotation.Nonnull private ReadCallFunctionDtoAbiFunction abiFunction; + @jakarta.annotation.Nonnull private List abiFunction; public ReadCallFunctionDto() {} @JsonCreator public ReadCallFunctionDto( @JsonProperty(value = JSON_PROPERTY_ABI_FUNCTION, required = true) - ReadCallFunctionDtoAbiFunction abiFunction) { + List abiFunction) { this.abiFunction = abiFunction; } public ReadCallFunctionDto abiFunction( - @jakarta.annotation.Nonnull ReadCallFunctionDtoAbiFunction abiFunction) { + @jakarta.annotation.Nonnull List abiFunction) { this.abiFunction = abiFunction; return this; } + public ReadCallFunctionDto addAbiFunctionItem(ReadAbiFunction abiFunctionItem) { + if (this.abiFunction == null) { + this.abiFunction = new ArrayList<>(); + } + this.abiFunction.add(abiFunctionItem); + return this; + } + /** - * Get abiFunction + * The abi of the read function you wish to call * * @return abiFunction */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ABI_FUNCTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public ReadCallFunctionDtoAbiFunction getAbiFunction() { + public List getAbiFunction() { return abiFunction; } @JsonProperty(JSON_PROPERTY_ABI_FUNCTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAbiFunction( - @jakarta.annotation.Nonnull ReadCallFunctionDtoAbiFunction abiFunction) { + public void setAbiFunction(@jakarta.annotation.Nonnull List abiFunction) { this.abiFunction = abiFunction; } @@ -135,7 +144,25 @@ public String toUrlQueryString(String prefix) { // add `abiFunction` to the URL query string if (getAbiFunction() != null) { - joiner.add(getAbiFunction().toUrlQueryString(prefix + "abiFunction" + suffix)); + for (int i = 0; i < getAbiFunction().size(); i++) { + if (getAbiFunction().get(i) != null) { + joiner.add( + getAbiFunction() + .get(i) + .toUrlQueryString( + String.format( + "%sabiFunction%s%s", + prefix, + suffix, + "".equals(suffix) + ? "" + : String.format( + "%s%d%s", + containerPrefix, + i, + containerSuffix)))); + } + } } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/ReadCallFunctionDtoAbiFunction.java b/src/main/java/com/fireblocks/sdk/model/ReadCallFunctionDtoAbiFunction.java deleted file mode 100644 index ecc784da..00000000 --- a/src/main/java/com/fireblocks/sdk/model/ReadCallFunctionDtoAbiFunction.java +++ /dev/null @@ -1,337 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.core.JsonGenerator; -import com.fasterxml.jackson.core.JsonParser; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.core.JsonToken; -import com.fasterxml.jackson.databind.DeserializationContext; -import com.fasterxml.jackson.databind.JsonMappingException; -import com.fasterxml.jackson.databind.JsonNode; -import com.fasterxml.jackson.databind.MapperFeature; -import com.fasterxml.jackson.databind.SerializerProvider; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import com.fasterxml.jackson.databind.deser.std.StdDeserializer; -import com.fasterxml.jackson.databind.ser.std.StdSerializer; -import com.fireblocks.sdk.JSON; -import java.io.IOException; -import java.util.Collections; -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; -import java.util.StringJoiner; -import java.util.logging.Level; -import java.util.logging.Logger; - -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -@JsonDeserialize( - using = ReadCallFunctionDtoAbiFunction.ReadCallFunctionDtoAbiFunctionDeserializer.class) -@JsonSerialize( - using = ReadCallFunctionDtoAbiFunction.ReadCallFunctionDtoAbiFunctionSerializer.class) -public class ReadCallFunctionDtoAbiFunction extends AbstractOpenApiSchema { - private static final Logger log = - Logger.getLogger(ReadCallFunctionDtoAbiFunction.class.getName()); - - public static class ReadCallFunctionDtoAbiFunctionSerializer - extends StdSerializer { - public ReadCallFunctionDtoAbiFunctionSerializer(Class t) { - super(t); - } - - public ReadCallFunctionDtoAbiFunctionSerializer() { - this(null); - } - - @Override - public void serialize( - ReadCallFunctionDtoAbiFunction value, - JsonGenerator jgen, - SerializerProvider provider) - throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); - } - } - - public static class ReadCallFunctionDtoAbiFunctionDeserializer - extends StdDeserializer { - public ReadCallFunctionDtoAbiFunctionDeserializer() { - this(ReadCallFunctionDtoAbiFunction.class); - } - - public ReadCallFunctionDtoAbiFunctionDeserializer(Class vc) { - super(vc); - } - - @Override - public ReadCallFunctionDtoAbiFunction deserialize( - JsonParser jp, DeserializationContext ctxt) - throws IOException, JsonProcessingException { - JsonNode tree = jp.readValueAsTree(); - Object deserialized = null; - boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); - int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); - // deserialize ReadAbiFunction - try { - boolean attemptParsing = true; - // ensure that we respect type coercion as set on the client ObjectMapper - if (ReadAbiFunction.class.equals(Integer.class) - || ReadAbiFunction.class.equals(Long.class) - || ReadAbiFunction.class.equals(Float.class) - || ReadAbiFunction.class.equals(Double.class) - || ReadAbiFunction.class.equals(Boolean.class) - || ReadAbiFunction.class.equals(String.class)) { - attemptParsing = typeCoercion; - if (!attemptParsing) { - attemptParsing |= - ((ReadAbiFunction.class.equals(Integer.class) - || ReadAbiFunction.class.equals(Long.class)) - && token == JsonToken.VALUE_NUMBER_INT); - attemptParsing |= - ((ReadAbiFunction.class.equals(Float.class) - || ReadAbiFunction.class.equals(Double.class)) - && token == JsonToken.VALUE_NUMBER_FLOAT); - attemptParsing |= - (ReadAbiFunction.class.equals(Boolean.class) - && (token == JsonToken.VALUE_FALSE - || token == JsonToken.VALUE_TRUE)); - attemptParsing |= - (ReadAbiFunction.class.equals(String.class) - && token == JsonToken.VALUE_STRING); - } - } - if (attemptParsing) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(ReadAbiFunction.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'ReadAbiFunction'"); - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'ReadAbiFunction'", e); - } - - // deserialize SolanaInstructionWithValue - try { - boolean attemptParsing = true; - // ensure that we respect type coercion as set on the client ObjectMapper - if (SolanaInstructionWithValue.class.equals(Integer.class) - || SolanaInstructionWithValue.class.equals(Long.class) - || SolanaInstructionWithValue.class.equals(Float.class) - || SolanaInstructionWithValue.class.equals(Double.class) - || SolanaInstructionWithValue.class.equals(Boolean.class) - || SolanaInstructionWithValue.class.equals(String.class)) { - attemptParsing = typeCoercion; - if (!attemptParsing) { - attemptParsing |= - ((SolanaInstructionWithValue.class.equals(Integer.class) - || SolanaInstructionWithValue.class.equals( - Long.class)) - && token == JsonToken.VALUE_NUMBER_INT); - attemptParsing |= - ((SolanaInstructionWithValue.class.equals(Float.class) - || SolanaInstructionWithValue.class.equals( - Double.class)) - && token == JsonToken.VALUE_NUMBER_FLOAT); - attemptParsing |= - (SolanaInstructionWithValue.class.equals(Boolean.class) - && (token == JsonToken.VALUE_FALSE - || token == JsonToken.VALUE_TRUE)); - attemptParsing |= - (SolanaInstructionWithValue.class.equals(String.class) - && token == JsonToken.VALUE_STRING); - } - } - if (attemptParsing) { - deserialized = - tree.traverse(jp.getCodec()) - .readValueAs(SolanaInstructionWithValue.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'SolanaInstructionWithValue'"); - } - } catch (Exception e) { - // deserialization failed, continue - log.log( - Level.FINER, - "Input data does not match schema 'SolanaInstructionWithValue'", - e); - } - - if (match == 1) { - ReadCallFunctionDtoAbiFunction ret = new ReadCallFunctionDtoAbiFunction(); - ret.setActualInstance(deserialized); - return ret; - } - throw new IOException( - String.format( - "Failed deserialization for ReadCallFunctionDtoAbiFunction: %d classes" - + " match result, expected 1", - match)); - } - - /** Handle deserialization of the 'null' value. */ - @Override - public ReadCallFunctionDtoAbiFunction getNullValue(DeserializationContext ctxt) - throws JsonMappingException { - throw new JsonMappingException( - ctxt.getParser(), "ReadCallFunctionDtoAbiFunction cannot be null"); - } - } - - // store a list of schema names defined in oneOf - public static final Map> schemas = new HashMap<>(); - - public ReadCallFunctionDtoAbiFunction() { - super("oneOf", Boolean.FALSE); - } - - public ReadCallFunctionDtoAbiFunction(ReadAbiFunction o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public ReadCallFunctionDtoAbiFunction(SolanaInstructionWithValue o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("ReadAbiFunction", ReadAbiFunction.class); - schemas.put("SolanaInstructionWithValue", SolanaInstructionWithValue.class); - JSON.registerDescendants( - ReadCallFunctionDtoAbiFunction.class, Collections.unmodifiableMap(schemas)); - } - - @Override - public Map> getSchemas() { - return ReadCallFunctionDtoAbiFunction.schemas; - } - - /** - * Set the instance that matches the oneOf child schema, check the instance parameter is valid - * against the oneOf child schemas: ReadAbiFunction, SolanaInstructionWithValue - * - *

It could be an instance of the 'oneOf' schemas. The oneOf child schemas may themselves be - * a composed schema (allOf, anyOf, oneOf). - */ - @Override - public void setActualInstance(Object instance) { - if (JSON.isInstanceOf(ReadAbiFunction.class, instance, new HashSet>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf( - SolanaInstructionWithValue.class, instance, new HashSet>())) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException( - "Invalid instance type. Must be ReadAbiFunction, SolanaInstructionWithValue"); - } - - /** - * Get the actual instance, which can be the following: ReadAbiFunction, - * SolanaInstructionWithValue - * - * @return The actual instance (ReadAbiFunction, SolanaInstructionWithValue) - */ - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `ReadAbiFunction`. If the actual instance is not - * `ReadAbiFunction`, the ClassCastException will be thrown. - * - * @return The actual instance of `ReadAbiFunction` - * @throws ClassCastException if the instance is not `ReadAbiFunction` - */ - public ReadAbiFunction getReadAbiFunction() throws ClassCastException { - return (ReadAbiFunction) super.getActualInstance(); - } - - /** - * Get the actual instance of `SolanaInstructionWithValue`. If the actual instance is not - * `SolanaInstructionWithValue`, the ClassCastException will be thrown. - * - * @return The actual instance of `SolanaInstructionWithValue` - * @throws ClassCastException if the instance is not `SolanaInstructionWithValue` - */ - public SolanaInstructionWithValue getSolanaInstructionWithValue() throws ClassCastException { - return (SolanaInstructionWithValue) super.getActualInstance(); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - if (getActualInstance() instanceof ReadAbiFunction) { - if (getActualInstance() != null) { - joiner.add( - ((ReadAbiFunction) getActualInstance()) - .toUrlQueryString(prefix + "one_of_0" + suffix)); - } - return joiner.toString(); - } - if (getActualInstance() instanceof SolanaInstructionWithValue) { - if (getActualInstance() != null) { - joiner.add( - ((SolanaInstructionWithValue) getActualInstance()) - .toUrlQueryString(prefix + "one_of_1" + suffix)); - } - return joiner.toString(); - } - return null; - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/RegisterNewAssetRequest.java b/src/main/java/com/fireblocks/sdk/model/RegisterNewAssetRequest.java index eec1a670..0a5c664d 100644 --- a/src/main/java/com/fireblocks/sdk/model/RegisterNewAssetRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/RegisterNewAssetRequest.java @@ -79,9 +79,10 @@ public RegisterNewAssetRequest address(@jakarta.annotation.Nonnull String addres } /** - * 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 + * 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. * * @return address */ diff --git a/src/main/java/com/fireblocks/sdk/model/ReissueMultichainTokenRequest.java b/src/main/java/com/fireblocks/sdk/model/ReissueMultichainTokenRequest.java deleted file mode 100644 index e7baa19b..00000000 --- a/src/main/java/com/fireblocks/sdk/model/ReissueMultichainTokenRequest.java +++ /dev/null @@ -1,363 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fireblocks.sdk.ApiClient; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** ReissueMultichainTokenRequest */ -@JsonPropertyOrder({ - ReissueMultichainTokenRequest.JSON_PROPERTY_VAULT_ACCOUNT_ID, - ReissueMultichainTokenRequest.JSON_PROPERTY_CHAINS, - ReissueMultichainTokenRequest.JSON_PROPERTY_USE_GASLESS, - ReissueMultichainTokenRequest.JSON_PROPERTY_FEE, - ReissueMultichainTokenRequest.JSON_PROPERTY_FEE_LEVEL -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class ReissueMultichainTokenRequest { - public static final String JSON_PROPERTY_VAULT_ACCOUNT_ID = "vaultAccountId"; - @jakarta.annotation.Nonnull private String vaultAccountId; - - public static final String JSON_PROPERTY_CHAINS = "chains"; - @jakarta.annotation.Nonnull private List chains = new ArrayList<>(); - - public static final String JSON_PROPERTY_USE_GASLESS = "useGasless"; - @jakarta.annotation.Nullable private Boolean useGasless; - - public static final String JSON_PROPERTY_FEE = "fee"; - @jakarta.annotation.Nullable private String fee; - - /** Fee level for the deploy request. Interchangeable with the 'fee' field */ - public enum FeeLevelEnum { - LOW(String.valueOf("LOW")), - - MEDIUM(String.valueOf("MEDIUM")), - - HIGH(String.valueOf("HIGH")); - - private String value; - - FeeLevelEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static FeeLevelEnum fromValue(String value) { - for (FeeLevelEnum b : FeeLevelEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_FEE_LEVEL = "feeLevel"; - @jakarta.annotation.Nullable private FeeLevelEnum feeLevel; - - public ReissueMultichainTokenRequest() {} - - @JsonCreator - public ReissueMultichainTokenRequest( - @JsonProperty(value = JSON_PROPERTY_VAULT_ACCOUNT_ID, required = true) - String vaultAccountId, - @JsonProperty(value = JSON_PROPERTY_CHAINS, required = true) List chains) { - this.vaultAccountId = vaultAccountId; - this.chains = chains; - } - - public ReissueMultichainTokenRequest vaultAccountId( - @jakarta.annotation.Nonnull String vaultAccountId) { - this.vaultAccountId = vaultAccountId; - return this; - } - - /** - * The id of the vault account that initiated the request to issue the token - * - * @return vaultAccountId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_VAULT_ACCOUNT_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getVaultAccountId() { - return vaultAccountId; - } - - @JsonProperty(JSON_PROPERTY_VAULT_ACCOUNT_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setVaultAccountId(@jakarta.annotation.Nonnull String vaultAccountId) { - this.vaultAccountId = vaultAccountId; - } - - public ReissueMultichainTokenRequest chains(@jakarta.annotation.Nonnull List chains) { - this.chains = chains; - return this; - } - - public ReissueMultichainTokenRequest addChainsItem(String chainsItem) { - if (this.chains == null) { - this.chains = new ArrayList<>(); - } - this.chains.add(chainsItem); - return this; - } - - /** - * The base asset identifiers of the blockchains you want to deploy to - * - * @return chains - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CHAINS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getChains() { - return chains; - } - - @JsonProperty(JSON_PROPERTY_CHAINS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setChains(@jakarta.annotation.Nonnull List chains) { - this.chains = chains; - } - - public ReissueMultichainTokenRequest useGasless( - @jakarta.annotation.Nullable Boolean useGasless) { - this.useGasless = useGasless; - return this; - } - - /** - * Whether to use gasless deployment or not - * - * @return useGasless - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USE_GASLESS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getUseGasless() { - return useGasless; - } - - @JsonProperty(JSON_PROPERTY_USE_GASLESS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUseGasless(@jakarta.annotation.Nullable Boolean useGasless) { - this.useGasless = useGasless; - } - - public ReissueMultichainTokenRequest fee(@jakarta.annotation.Nullable String fee) { - this.fee = fee; - return this; - } - - /** - * Max fee amount for the deploy request. Interchangeable with the 'feeLevel' field - * - * @return fee - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FEE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getFee() { - return fee; - } - - @JsonProperty(JSON_PROPERTY_FEE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFee(@jakarta.annotation.Nullable String fee) { - this.fee = fee; - } - - public ReissueMultichainTokenRequest feeLevel( - @jakarta.annotation.Nullable FeeLevelEnum feeLevel) { - this.feeLevel = feeLevel; - return this; - } - - /** - * Fee level for the deploy request. Interchangeable with the 'fee' field - * - * @return feeLevel - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FEE_LEVEL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public FeeLevelEnum getFeeLevel() { - return feeLevel; - } - - @JsonProperty(JSON_PROPERTY_FEE_LEVEL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFeeLevel(@jakarta.annotation.Nullable FeeLevelEnum feeLevel) { - this.feeLevel = feeLevel; - } - - /** Return true if this ReissueMultichainTokenRequest object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ReissueMultichainTokenRequest reissueMultichainTokenRequest = - (ReissueMultichainTokenRequest) o; - return Objects.equals(this.vaultAccountId, reissueMultichainTokenRequest.vaultAccountId) - && Objects.equals(this.chains, reissueMultichainTokenRequest.chains) - && Objects.equals(this.useGasless, reissueMultichainTokenRequest.useGasless) - && Objects.equals(this.fee, reissueMultichainTokenRequest.fee) - && Objects.equals(this.feeLevel, reissueMultichainTokenRequest.feeLevel); - } - - @Override - public int hashCode() { - return Objects.hash(vaultAccountId, chains, useGasless, fee, feeLevel); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ReissueMultichainTokenRequest {\n"); - sb.append(" vaultAccountId: ").append(toIndentedString(vaultAccountId)).append("\n"); - sb.append(" chains: ").append(toIndentedString(chains)).append("\n"); - sb.append(" useGasless: ").append(toIndentedString(useGasless)).append("\n"); - sb.append(" fee: ").append(toIndentedString(fee)).append("\n"); - sb.append(" feeLevel: ").append(toIndentedString(feeLevel)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `vaultAccountId` to the URL query string - if (getVaultAccountId() != null) { - joiner.add( - String.format( - "%svaultAccountId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getVaultAccountId())))); - } - - // add `chains` to the URL query string - if (getChains() != null) { - for (int i = 0; i < getChains().size(); i++) { - joiner.add( - String.format( - "%schains%s%s=%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode(ApiClient.valueToString(getChains().get(i))))); - } - } - - // add `useGasless` to the URL query string - if (getUseGasless() != null) { - joiner.add( - String.format( - "%suseGasless%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getUseGasless())))); - } - - // add `fee` to the URL query string - if (getFee() != null) { - joiner.add( - String.format( - "%sfee%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getFee())))); - } - - // add `feeLevel` to the URL query string - if (getFeeLevel() != null) { - joiner.add( - String.format( - "%sfeeLevel%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getFeeLevel())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/RelatedRequest.java b/src/main/java/com/fireblocks/sdk/model/RelatedRequest.java deleted file mode 100644 index 802653f9..00000000 --- a/src/main/java/com/fireblocks/sdk/model/RelatedRequest.java +++ /dev/null @@ -1,301 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** RelatedRequest */ -@JsonPropertyOrder({ - RelatedRequest.JSON_PROPERTY_STATUS, - RelatedRequest.JSON_PROPERTY_IN_PROGRESS, - RelatedRequest.JSON_PROPERTY_AMOUNT, - RelatedRequest.JSON_PROPERTY_TX_ID -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class RelatedRequest { - /** The status of the request */ - public enum StatusEnum { - DEACTIVATING(String.valueOf("deactivating")); - - private String value; - - StatusEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static StatusEnum fromValue(String value) { - for (StatusEnum b : StatusEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_STATUS = "status"; - @jakarta.annotation.Nonnull private StatusEnum status; - - public static final String JSON_PROPERTY_IN_PROGRESS = "inProgress"; - @jakarta.annotation.Nonnull private Boolean inProgress; - - public static final String JSON_PROPERTY_AMOUNT = "amount"; - @jakarta.annotation.Nonnull private String amount; - - public static final String JSON_PROPERTY_TX_ID = "txId"; - @jakarta.annotation.Nullable private String txId; - - public RelatedRequest() {} - - @JsonCreator - public RelatedRequest( - @JsonProperty(value = JSON_PROPERTY_STATUS, required = true) StatusEnum status, - @JsonProperty(value = JSON_PROPERTY_IN_PROGRESS, required = true) Boolean inProgress, - @JsonProperty(value = JSON_PROPERTY_AMOUNT, required = true) String amount) { - this.status = status; - this.inProgress = inProgress; - this.amount = amount; - } - - public RelatedRequest status(@jakarta.annotation.Nonnull StatusEnum status) { - this.status = status; - return this; - } - - /** - * The status of the request - * - * @return status - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_STATUS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public StatusEnum getStatus() { - return status; - } - - @JsonProperty(JSON_PROPERTY_STATUS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStatus(@jakarta.annotation.Nonnull StatusEnum status) { - this.status = status; - } - - public RelatedRequest inProgress(@jakarta.annotation.Nonnull Boolean inProgress) { - this.inProgress = inProgress; - return this; - } - - /** - * Indicates whether there is an ongoing action for this position related to this request - * - * @return inProgress - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_IN_PROGRESS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Boolean getInProgress() { - return inProgress; - } - - @JsonProperty(JSON_PROPERTY_IN_PROGRESS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setInProgress(@jakarta.annotation.Nonnull Boolean inProgress) { - this.inProgress = inProgress; - } - - public RelatedRequest amount(@jakarta.annotation.Nonnull String amount) { - this.amount = amount; - return this; - } - - /** - * Amount of tokens to Unstake - * - * @return amount - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_AMOUNT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getAmount() { - return amount; - } - - @JsonProperty(JSON_PROPERTY_AMOUNT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAmount(@jakarta.annotation.Nonnull String amount) { - this.amount = amount; - } - - public RelatedRequest txId(@jakarta.annotation.Nullable String txId) { - this.txId = txId; - return this; - } - - /** - * The transaction ID of the ongoing request - * - * @return txId - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TX_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getTxId() { - return txId; - } - - @JsonProperty(JSON_PROPERTY_TX_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTxId(@jakarta.annotation.Nullable String txId) { - this.txId = txId; - } - - /** Return true if this RelatedRequest object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - RelatedRequest relatedRequest = (RelatedRequest) o; - return Objects.equals(this.status, relatedRequest.status) - && Objects.equals(this.inProgress, relatedRequest.inProgress) - && Objects.equals(this.amount, relatedRequest.amount) - && Objects.equals(this.txId, relatedRequest.txId); - } - - @Override - public int hashCode() { - return Objects.hash(status, inProgress, amount, txId); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class RelatedRequest {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append(" inProgress: ").append(toIndentedString(inProgress)).append("\n"); - sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); - sb.append(" txId: ").append(toIndentedString(txId)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `status` to the URL query string - if (getStatus() != null) { - joiner.add( - String.format( - "%sstatus%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getStatus())))); - } - - // add `inProgress` to the URL query string - if (getInProgress() != null) { - joiner.add( - String.format( - "%sinProgress%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getInProgress())))); - } - - // add `amount` to the URL query string - if (getAmount() != null) { - joiner.add( - String.format( - "%samount%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAmount())))); - } - - // add `txId` to the URL query string - if (getTxId() != null) { - joiner.add( - String.format( - "%stxId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getTxId())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/RelatedTransaction.java b/src/main/java/com/fireblocks/sdk/model/RelatedTransactionDto.java similarity index 87% rename from src/main/java/com/fireblocks/sdk/model/RelatedTransaction.java rename to src/main/java/com/fireblocks/sdk/model/RelatedTransactionDto.java index 8a750dc3..98ab3889 100644 --- a/src/main/java/com/fireblocks/sdk/model/RelatedTransaction.java +++ b/src/main/java/com/fireblocks/sdk/model/RelatedTransactionDto.java @@ -21,32 +21,32 @@ import java.util.Objects; import java.util.StringJoiner; -/** RelatedTransaction */ +/** RelatedTransactionDto */ @JsonPropertyOrder({ - RelatedTransaction.JSON_PROPERTY_TX_ID, - RelatedTransaction.JSON_PROPERTY_COMPLETED + RelatedTransactionDto.JSON_PROPERTY_TX_ID, + RelatedTransactionDto.JSON_PROPERTY_COMPLETED }) @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") -public class RelatedTransaction { +public class RelatedTransactionDto { public static final String JSON_PROPERTY_TX_ID = "txId"; @jakarta.annotation.Nonnull private String txId; public static final String JSON_PROPERTY_COMPLETED = "completed"; @jakarta.annotation.Nonnull private Boolean completed; - public RelatedTransaction() {} + public RelatedTransactionDto() {} @JsonCreator - public RelatedTransaction( + public RelatedTransactionDto( @JsonProperty(value = JSON_PROPERTY_TX_ID, required = true) String txId, @JsonProperty(value = JSON_PROPERTY_COMPLETED, required = true) Boolean completed) { this.txId = txId; this.completed = completed; } - public RelatedTransaction txId(@jakarta.annotation.Nonnull String txId) { + public RelatedTransactionDto txId(@jakarta.annotation.Nonnull String txId) { this.txId = txId; return this; } @@ -69,7 +69,7 @@ public void setTxId(@jakarta.annotation.Nonnull String txId) { this.txId = txId; } - public RelatedTransaction completed(@jakarta.annotation.Nonnull Boolean completed) { + public RelatedTransactionDto completed(@jakarta.annotation.Nonnull Boolean completed) { this.completed = completed; return this; } @@ -92,7 +92,7 @@ public void setCompleted(@jakarta.annotation.Nonnull Boolean completed) { this.completed = completed; } - /** Return true if this RelatedTransaction object is equal to o. */ + /** Return true if this RelatedTransactionDto object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -101,9 +101,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - RelatedTransaction relatedTransaction = (RelatedTransaction) o; - return Objects.equals(this.txId, relatedTransaction.txId) - && Objects.equals(this.completed, relatedTransaction.completed); + RelatedTransactionDto relatedTransactionDto = (RelatedTransactionDto) o; + return Objects.equals(this.txId, relatedTransactionDto.txId) + && Objects.equals(this.completed, relatedTransactionDto.completed); } @Override @@ -114,7 +114,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class RelatedTransaction {\n"); + sb.append("class RelatedTransactionDto {\n"); sb.append(" txId: ").append(toIndentedString(txId)).append("\n"); sb.append(" completed: ").append(toIndentedString(completed)).append("\n"); sb.append("}"); diff --git a/src/main/java/com/fireblocks/sdk/model/RemoveLayerZeroAdapterFailedResult.java b/src/main/java/com/fireblocks/sdk/model/RemoveLayerZeroAdapterFailedResult.java deleted file mode 100644 index cf2f7ba0..00000000 --- a/src/main/java/com/fireblocks/sdk/model/RemoveLayerZeroAdapterFailedResult.java +++ /dev/null @@ -1,152 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** RemoveLayerZeroAdapterFailedResult */ -@JsonPropertyOrder({RemoveLayerZeroAdapterFailedResult.JSON_PROPERTY_ADAPTER_TOKEN_LINK_ID}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class RemoveLayerZeroAdapterFailedResult { - public static final String JSON_PROPERTY_ADAPTER_TOKEN_LINK_ID = "adapterTokenLinkId"; - @jakarta.annotation.Nonnull private String adapterTokenLinkId; - - public RemoveLayerZeroAdapterFailedResult() {} - - @JsonCreator - public RemoveLayerZeroAdapterFailedResult( - @JsonProperty(value = JSON_PROPERTY_ADAPTER_TOKEN_LINK_ID, required = true) - String adapterTokenLinkId) { - this.adapterTokenLinkId = adapterTokenLinkId; - } - - public RemoveLayerZeroAdapterFailedResult adapterTokenLinkId( - @jakarta.annotation.Nonnull String adapterTokenLinkId) { - this.adapterTokenLinkId = adapterTokenLinkId; - return this; - } - - /** - * The adapter token link ID that failed to be removed - * - * @return adapterTokenLinkId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ADAPTER_TOKEN_LINK_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getAdapterTokenLinkId() { - return adapterTokenLinkId; - } - - @JsonProperty(JSON_PROPERTY_ADAPTER_TOKEN_LINK_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAdapterTokenLinkId(@jakarta.annotation.Nonnull String adapterTokenLinkId) { - this.adapterTokenLinkId = adapterTokenLinkId; - } - - /** Return true if this RemoveLayerZeroAdapterFailedResult object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - RemoveLayerZeroAdapterFailedResult removeLayerZeroAdapterFailedResult = - (RemoveLayerZeroAdapterFailedResult) o; - return Objects.equals( - this.adapterTokenLinkId, removeLayerZeroAdapterFailedResult.adapterTokenLinkId); - } - - @Override - public int hashCode() { - return Objects.hash(adapterTokenLinkId); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class RemoveLayerZeroAdapterFailedResult {\n"); - sb.append(" adapterTokenLinkId: ") - .append(toIndentedString(adapterTokenLinkId)) - .append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `adapterTokenLinkId` to the URL query string - if (getAdapterTokenLinkId() != null) { - joiner.add( - String.format( - "%sadapterTokenLinkId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAdapterTokenLinkId())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/RemoveLayerZeroAdaptersRequest.java b/src/main/java/com/fireblocks/sdk/model/RemoveLayerZeroAdaptersRequest.java deleted file mode 100644 index f3a52fb1..00000000 --- a/src/main/java/com/fireblocks/sdk/model/RemoveLayerZeroAdaptersRequest.java +++ /dev/null @@ -1,219 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; -import java.util.UUID; - -/** RemoveLayerZeroAdaptersRequest */ -@JsonPropertyOrder({ - RemoveLayerZeroAdaptersRequest.JSON_PROPERTY_VAULT_ACCOUNT_ID, - RemoveLayerZeroAdaptersRequest.JSON_PROPERTY_ADAPTER_TOKEN_LINK_IDS -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class RemoveLayerZeroAdaptersRequest { - public static final String JSON_PROPERTY_VAULT_ACCOUNT_ID = "vaultAccountId"; - @jakarta.annotation.Nonnull private String vaultAccountId; - - public static final String JSON_PROPERTY_ADAPTER_TOKEN_LINK_IDS = "adapterTokenLinkIds"; - @jakarta.annotation.Nonnull private List adapterTokenLinkIds = new ArrayList<>(); - - public RemoveLayerZeroAdaptersRequest() {} - - @JsonCreator - public RemoveLayerZeroAdaptersRequest( - @JsonProperty(value = JSON_PROPERTY_VAULT_ACCOUNT_ID, required = true) - String vaultAccountId, - @JsonProperty(value = JSON_PROPERTY_ADAPTER_TOKEN_LINK_IDS, required = true) - List adapterTokenLinkIds) { - this.vaultAccountId = vaultAccountId; - this.adapterTokenLinkIds = adapterTokenLinkIds; - } - - public RemoveLayerZeroAdaptersRequest vaultAccountId( - @jakarta.annotation.Nonnull String vaultAccountId) { - this.vaultAccountId = vaultAccountId; - return this; - } - - /** - * The vault account ID to use for signing the role revocation transactions. - * - * @return vaultAccountId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_VAULT_ACCOUNT_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getVaultAccountId() { - return vaultAccountId; - } - - @JsonProperty(JSON_PROPERTY_VAULT_ACCOUNT_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setVaultAccountId(@jakarta.annotation.Nonnull String vaultAccountId) { - this.vaultAccountId = vaultAccountId; - } - - public RemoveLayerZeroAdaptersRequest adapterTokenLinkIds( - @jakarta.annotation.Nonnull List adapterTokenLinkIds) { - this.adapterTokenLinkIds = adapterTokenLinkIds; - return this; - } - - public RemoveLayerZeroAdaptersRequest addAdapterTokenLinkIdsItem(UUID adapterTokenLinkIdsItem) { - if (this.adapterTokenLinkIds == null) { - this.adapterTokenLinkIds = new ArrayList<>(); - } - this.adapterTokenLinkIds.add(adapterTokenLinkIdsItem); - return this; - } - - /** - * A list of adapter token link IDs to be deactivated and unlinked. - * - * @return adapterTokenLinkIds - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ADAPTER_TOKEN_LINK_IDS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getAdapterTokenLinkIds() { - return adapterTokenLinkIds; - } - - @JsonProperty(JSON_PROPERTY_ADAPTER_TOKEN_LINK_IDS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAdapterTokenLinkIds(@jakarta.annotation.Nonnull List adapterTokenLinkIds) { - this.adapterTokenLinkIds = adapterTokenLinkIds; - } - - /** Return true if this RemoveLayerZeroAdaptersRequest object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - RemoveLayerZeroAdaptersRequest removeLayerZeroAdaptersRequest = - (RemoveLayerZeroAdaptersRequest) o; - return Objects.equals(this.vaultAccountId, removeLayerZeroAdaptersRequest.vaultAccountId) - && Objects.equals( - this.adapterTokenLinkIds, - removeLayerZeroAdaptersRequest.adapterTokenLinkIds); - } - - @Override - public int hashCode() { - return Objects.hash(vaultAccountId, adapterTokenLinkIds); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class RemoveLayerZeroAdaptersRequest {\n"); - sb.append(" vaultAccountId: ").append(toIndentedString(vaultAccountId)).append("\n"); - sb.append(" adapterTokenLinkIds: ") - .append(toIndentedString(adapterTokenLinkIds)) - .append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `vaultAccountId` to the URL query string - if (getVaultAccountId() != null) { - joiner.add( - String.format( - "%svaultAccountId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getVaultAccountId())))); - } - - // add `adapterTokenLinkIds` to the URL query string - if (getAdapterTokenLinkIds() != null) { - for (int i = 0; i < getAdapterTokenLinkIds().size(); i++) { - if (getAdapterTokenLinkIds().get(i) != null) { - joiner.add( - String.format( - "%sadapterTokenLinkIds%s%s=%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode( - ApiClient.valueToString( - getAdapterTokenLinkIds().get(i))))); - } - } - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/RemoveLayerZeroAdaptersResponse.java b/src/main/java/com/fireblocks/sdk/model/RemoveLayerZeroAdaptersResponse.java deleted file mode 100644 index b1c5bb6a..00000000 --- a/src/main/java/com/fireblocks/sdk/model/RemoveLayerZeroAdaptersResponse.java +++ /dev/null @@ -1,236 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** RemoveLayerZeroAdaptersResponse */ -@JsonPropertyOrder({ - RemoveLayerZeroAdaptersResponse.JSON_PROPERTY_DEACTIVATED, - RemoveLayerZeroAdaptersResponse.JSON_PROPERTY_FAILED -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class RemoveLayerZeroAdaptersResponse { - public static final String JSON_PROPERTY_DEACTIVATED = "deactivated"; - @jakarta.annotation.Nonnull private List deactivated = new ArrayList<>(); - - public static final String JSON_PROPERTY_FAILED = "failed"; - - @jakarta.annotation.Nonnull - private List failed = new ArrayList<>(); - - public RemoveLayerZeroAdaptersResponse() {} - - @JsonCreator - public RemoveLayerZeroAdaptersResponse( - @JsonProperty(value = JSON_PROPERTY_DEACTIVATED, required = true) - List deactivated, - @JsonProperty(value = JSON_PROPERTY_FAILED, required = true) - List failed) { - this.deactivated = deactivated; - this.failed = failed; - } - - public RemoveLayerZeroAdaptersResponse deactivated( - @jakarta.annotation.Nonnull List deactivated) { - this.deactivated = deactivated; - return this; - } - - public RemoveLayerZeroAdaptersResponse addDeactivatedItem(String deactivatedItem) { - if (this.deactivated == null) { - this.deactivated = new ArrayList<>(); - } - this.deactivated.add(deactivatedItem); - return this; - } - - /** - * List of successfully deactivated adapter token link IDs - * - * @return deactivated - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DEACTIVATED) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getDeactivated() { - return deactivated; - } - - @JsonProperty(JSON_PROPERTY_DEACTIVATED) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDeactivated(@jakarta.annotation.Nonnull List deactivated) { - this.deactivated = deactivated; - } - - public RemoveLayerZeroAdaptersResponse failed( - @jakarta.annotation.Nonnull List failed) { - this.failed = failed; - return this; - } - - public RemoveLayerZeroAdaptersResponse addFailedItem( - RemoveLayerZeroAdapterFailedResult failedItem) { - if (this.failed == null) { - this.failed = new ArrayList<>(); - } - this.failed.add(failedItem); - return this; - } - - /** - * List of adapter token link IDs that failed to be removed - * - * @return failed - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_FAILED) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getFailed() { - return failed; - } - - @JsonProperty(JSON_PROPERTY_FAILED) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setFailed( - @jakarta.annotation.Nonnull List failed) { - this.failed = failed; - } - - /** Return true if this RemoveLayerZeroAdaptersResponse object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - RemoveLayerZeroAdaptersResponse removeLayerZeroAdaptersResponse = - (RemoveLayerZeroAdaptersResponse) o; - return Objects.equals(this.deactivated, removeLayerZeroAdaptersResponse.deactivated) - && Objects.equals(this.failed, removeLayerZeroAdaptersResponse.failed); - } - - @Override - public int hashCode() { - return Objects.hash(deactivated, failed); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class RemoveLayerZeroAdaptersResponse {\n"); - sb.append(" deactivated: ").append(toIndentedString(deactivated)).append("\n"); - sb.append(" failed: ").append(toIndentedString(failed)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `deactivated` to the URL query string - if (getDeactivated() != null) { - for (int i = 0; i < getDeactivated().size(); i++) { - joiner.add( - String.format( - "%sdeactivated%s%s=%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode( - ApiClient.valueToString(getDeactivated().get(i))))); - } - } - - // add `failed` to the URL query string - if (getFailed() != null) { - for (int i = 0; i < getFailed().size(); i++) { - if (getFailed().get(i) != null) { - joiner.add( - getFailed() - .get(i) - .toUrlQueryString( - String.format( - "%sfailed%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/RemoveLayerZeroPeersRequest.java b/src/main/java/com/fireblocks/sdk/model/RemoveLayerZeroPeersRequest.java deleted file mode 100644 index a5eaa612..00000000 --- a/src/main/java/com/fireblocks/sdk/model/RemoveLayerZeroPeersRequest.java +++ /dev/null @@ -1,320 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; -import java.util.UUID; - -/** RemoveLayerZeroPeersRequest */ -@JsonPropertyOrder({ - RemoveLayerZeroPeersRequest.JSON_PROPERTY_VAULT_ACCOUNT_ID, - RemoveLayerZeroPeersRequest.JSON_PROPERTY_SOURCE_ADAPTER_TOKEN_LINK_ID, - RemoveLayerZeroPeersRequest.JSON_PROPERTY_DESTINATION_ADAPTER_TOKEN_LINK_IDS, - RemoveLayerZeroPeersRequest.JSON_PROPERTY_BIDIRECTIONAL -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class RemoveLayerZeroPeersRequest { - public static final String JSON_PROPERTY_VAULT_ACCOUNT_ID = "vaultAccountId"; - @jakarta.annotation.Nonnull private String vaultAccountId; - - public static final String JSON_PROPERTY_SOURCE_ADAPTER_TOKEN_LINK_ID = - "sourceAdapterTokenLinkId"; - @jakarta.annotation.Nonnull private UUID sourceAdapterTokenLinkId; - - public static final String JSON_PROPERTY_DESTINATION_ADAPTER_TOKEN_LINK_IDS = - "destinationAdapterTokenLinkIds"; - - @jakarta.annotation.Nonnull - private List destinationAdapterTokenLinkIds = new ArrayList<>(); - - public static final String JSON_PROPERTY_BIDIRECTIONAL = "bidirectional"; - @jakarta.annotation.Nonnull private Boolean bidirectional; - - public RemoveLayerZeroPeersRequest() {} - - @JsonCreator - public RemoveLayerZeroPeersRequest( - @JsonProperty(value = JSON_PROPERTY_VAULT_ACCOUNT_ID, required = true) - String vaultAccountId, - @JsonProperty(value = JSON_PROPERTY_SOURCE_ADAPTER_TOKEN_LINK_ID, required = true) - UUID sourceAdapterTokenLinkId, - @JsonProperty(value = JSON_PROPERTY_DESTINATION_ADAPTER_TOKEN_LINK_IDS, required = true) - List destinationAdapterTokenLinkIds, - @JsonProperty(value = JSON_PROPERTY_BIDIRECTIONAL, required = true) - Boolean bidirectional) { - this.vaultAccountId = vaultAccountId; - this.sourceAdapterTokenLinkId = sourceAdapterTokenLinkId; - this.destinationAdapterTokenLinkIds = destinationAdapterTokenLinkIds; - this.bidirectional = bidirectional; - } - - public RemoveLayerZeroPeersRequest vaultAccountId( - @jakarta.annotation.Nonnull String vaultAccountId) { - this.vaultAccountId = vaultAccountId; - return this; - } - - /** - * The id of the vault account that will be used to inititate transactions ot set peers - * - * @return vaultAccountId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_VAULT_ACCOUNT_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getVaultAccountId() { - return vaultAccountId; - } - - @JsonProperty(JSON_PROPERTY_VAULT_ACCOUNT_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setVaultAccountId(@jakarta.annotation.Nonnull String vaultAccountId) { - this.vaultAccountId = vaultAccountId; - } - - public RemoveLayerZeroPeersRequest sourceAdapterTokenLinkId( - @jakarta.annotation.Nonnull UUID sourceAdapterTokenLinkId) { - this.sourceAdapterTokenLinkId = sourceAdapterTokenLinkId; - return this; - } - - /** - * `token_link` ID of the source adapter contract - * - * @return sourceAdapterTokenLinkId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SOURCE_ADAPTER_TOKEN_LINK_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public UUID getSourceAdapterTokenLinkId() { - return sourceAdapterTokenLinkId; - } - - @JsonProperty(JSON_PROPERTY_SOURCE_ADAPTER_TOKEN_LINK_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSourceAdapterTokenLinkId( - @jakarta.annotation.Nonnull UUID sourceAdapterTokenLinkId) { - this.sourceAdapterTokenLinkId = sourceAdapterTokenLinkId; - } - - public RemoveLayerZeroPeersRequest destinationAdapterTokenLinkIds( - @jakarta.annotation.Nonnull List destinationAdapterTokenLinkIds) { - this.destinationAdapterTokenLinkIds = destinationAdapterTokenLinkIds; - return this; - } - - public RemoveLayerZeroPeersRequest addDestinationAdapterTokenLinkIdsItem( - UUID destinationAdapterTokenLinkIdsItem) { - if (this.destinationAdapterTokenLinkIds == null) { - this.destinationAdapterTokenLinkIds = new ArrayList<>(); - } - this.destinationAdapterTokenLinkIds.add(destinationAdapterTokenLinkIdsItem); - return this; - } - - /** - * Array of `token_link` IDs for destination adapter contracts - * - * @return destinationAdapterTokenLinkIds - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DESTINATION_ADAPTER_TOKEN_LINK_IDS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getDestinationAdapterTokenLinkIds() { - return destinationAdapterTokenLinkIds; - } - - @JsonProperty(JSON_PROPERTY_DESTINATION_ADAPTER_TOKEN_LINK_IDS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDestinationAdapterTokenLinkIds( - @jakarta.annotation.Nonnull List destinationAdapterTokenLinkIds) { - this.destinationAdapterTokenLinkIds = destinationAdapterTokenLinkIds; - } - - public RemoveLayerZeroPeersRequest bidirectional( - @jakarta.annotation.Nonnull Boolean bidirectional) { - this.bidirectional = bidirectional; - return this; - } - - /** - * If true, also sets peers from destination(s) back to source - * - * @return bidirectional - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BIDIRECTIONAL) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Boolean getBidirectional() { - return bidirectional; - } - - @JsonProperty(JSON_PROPERTY_BIDIRECTIONAL) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBidirectional(@jakarta.annotation.Nonnull Boolean bidirectional) { - this.bidirectional = bidirectional; - } - - /** Return true if this RemoveLayerZeroPeersRequest object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - RemoveLayerZeroPeersRequest removeLayerZeroPeersRequest = (RemoveLayerZeroPeersRequest) o; - return Objects.equals(this.vaultAccountId, removeLayerZeroPeersRequest.vaultAccountId) - && Objects.equals( - this.sourceAdapterTokenLinkId, - removeLayerZeroPeersRequest.sourceAdapterTokenLinkId) - && Objects.equals( - this.destinationAdapterTokenLinkIds, - removeLayerZeroPeersRequest.destinationAdapterTokenLinkIds) - && Objects.equals(this.bidirectional, removeLayerZeroPeersRequest.bidirectional); - } - - @Override - public int hashCode() { - return Objects.hash( - vaultAccountId, - sourceAdapterTokenLinkId, - destinationAdapterTokenLinkIds, - bidirectional); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class RemoveLayerZeroPeersRequest {\n"); - sb.append(" vaultAccountId: ").append(toIndentedString(vaultAccountId)).append("\n"); - sb.append(" sourceAdapterTokenLinkId: ") - .append(toIndentedString(sourceAdapterTokenLinkId)) - .append("\n"); - sb.append(" destinationAdapterTokenLinkIds: ") - .append(toIndentedString(destinationAdapterTokenLinkIds)) - .append("\n"); - sb.append(" bidirectional: ").append(toIndentedString(bidirectional)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `vaultAccountId` to the URL query string - if (getVaultAccountId() != null) { - joiner.add( - String.format( - "%svaultAccountId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getVaultAccountId())))); - } - - // add `sourceAdapterTokenLinkId` to the URL query string - if (getSourceAdapterTokenLinkId() != null) { - joiner.add( - String.format( - "%ssourceAdapterTokenLinkId%s=%s", - prefix, - suffix, - ApiClient.urlEncode( - ApiClient.valueToString(getSourceAdapterTokenLinkId())))); - } - - // add `destinationAdapterTokenLinkIds` to the URL query string - if (getDestinationAdapterTokenLinkIds() != null) { - for (int i = 0; i < getDestinationAdapterTokenLinkIds().size(); i++) { - if (getDestinationAdapterTokenLinkIds().get(i) != null) { - joiner.add( - String.format( - "%sdestinationAdapterTokenLinkIds%s%s=%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode( - ApiClient.valueToString( - getDestinationAdapterTokenLinkIds().get(i))))); - } - } - } - - // add `bidirectional` to the URL query string - if (getBidirectional() != null) { - joiner.add( - String.format( - "%sbidirectional%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBidirectional())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/RemoveLayerZeroPeersResponse.java b/src/main/java/com/fireblocks/sdk/model/RemoveLayerZeroPeersResponse.java deleted file mode 100644 index 6f243b82..00000000 --- a/src/main/java/com/fireblocks/sdk/model/RemoveLayerZeroPeersResponse.java +++ /dev/null @@ -1,168 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; -import java.util.UUID; - -/** RemoveLayerZeroPeersResponse */ -@JsonPropertyOrder({RemoveLayerZeroPeersResponse.JSON_PROPERTY_TXN_IDS}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class RemoveLayerZeroPeersResponse { - public static final String JSON_PROPERTY_TXN_IDS = "txnIds"; - @jakarta.annotation.Nonnull private List txnIds = new ArrayList<>(); - - public RemoveLayerZeroPeersResponse() {} - - @JsonCreator - public RemoveLayerZeroPeersResponse( - @JsonProperty(value = JSON_PROPERTY_TXN_IDS, required = true) List txnIds) { - this.txnIds = txnIds; - } - - public RemoveLayerZeroPeersResponse txnIds(@jakarta.annotation.Nonnull List txnIds) { - this.txnIds = txnIds; - return this; - } - - public RemoveLayerZeroPeersResponse addTxnIdsItem(UUID txnIdsItem) { - if (this.txnIds == null) { - this.txnIds = new ArrayList<>(); - } - this.txnIds.add(txnIdsItem); - return this; - } - - /** - * Array of fireblocks transaction IDs, each corresponding to an on-chain transaction to set - * peers - * - * @return txnIds - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TXN_IDS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getTxnIds() { - return txnIds; - } - - @JsonProperty(JSON_PROPERTY_TXN_IDS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTxnIds(@jakarta.annotation.Nonnull List txnIds) { - this.txnIds = txnIds; - } - - /** Return true if this RemoveLayerZeroPeersResponse object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - RemoveLayerZeroPeersResponse removeLayerZeroPeersResponse = - (RemoveLayerZeroPeersResponse) o; - return Objects.equals(this.txnIds, removeLayerZeroPeersResponse.txnIds); - } - - @Override - public int hashCode() { - return Objects.hash(txnIds); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class RemoveLayerZeroPeersResponse {\n"); - sb.append(" txnIds: ").append(toIndentedString(txnIds)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `txnIds` to the URL query string - if (getTxnIds() != null) { - for (int i = 0; i < getTxnIds().size(); i++) { - if (getTxnIds().get(i) != null) { - joiner.add( - String.format( - "%stxnIds%s%s=%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode( - ApiClient.valueToString(getTxnIds().get(i))))); - } - } - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/RescanTransaction.java b/src/main/java/com/fireblocks/sdk/model/RescanTransaction.java deleted file mode 100644 index dd87e35d..00000000 --- a/src/main/java/com/fireblocks/sdk/model/RescanTransaction.java +++ /dev/null @@ -1,180 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** RescanTransaction */ -@JsonPropertyOrder({ - RescanTransaction.JSON_PROPERTY_TX_HASH, - RescanTransaction.JSON_PROPERTY_ASSET_ID -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class RescanTransaction { - public static final String JSON_PROPERTY_TX_HASH = "txHash"; - @jakarta.annotation.Nullable private String txHash; - - public static final String JSON_PROPERTY_ASSET_ID = "assetId"; - @jakarta.annotation.Nullable private String assetId; - - public RescanTransaction() {} - - public RescanTransaction txHash(@jakarta.annotation.Nullable String txHash) { - this.txHash = txHash; - return this; - } - - /** - * Blockchain TX hash - * - * @return txHash - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TX_HASH) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getTxHash() { - return txHash; - } - - @JsonProperty(JSON_PROPERTY_TX_HASH) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTxHash(@jakarta.annotation.Nullable String txHash) { - this.txHash = txHash; - } - - public RescanTransaction assetId(@jakarta.annotation.Nullable String assetId) { - this.assetId = assetId; - return this; - } - - /** - * Asset symbol BTC,ETH) - * - * @return assetId - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ASSET_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getAssetId() { - return assetId; - } - - @JsonProperty(JSON_PROPERTY_ASSET_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAssetId(@jakarta.annotation.Nullable String assetId) { - this.assetId = assetId; - } - - /** Return true if this RescanTransaction object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - RescanTransaction rescanTransaction = (RescanTransaction) o; - return Objects.equals(this.txHash, rescanTransaction.txHash) - && Objects.equals(this.assetId, rescanTransaction.assetId); - } - - @Override - public int hashCode() { - return Objects.hash(txHash, assetId); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class RescanTransaction {\n"); - sb.append(" txHash: ").append(toIndentedString(txHash)).append("\n"); - sb.append(" assetId: ").append(toIndentedString(assetId)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `txHash` to the URL query string - if (getTxHash() != null) { - joiner.add( - String.format( - "%stxHash%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getTxHash())))); - } - - // add `assetId` to the URL query string - if (getAssetId() != null) { - joiner.add( - String.format( - "%sassetId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAssetId())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/ResendFailedNotificationsJobStatusResponse.java b/src/main/java/com/fireblocks/sdk/model/ResendFailedNotificationsJobStatusResponse.java deleted file mode 100644 index 2b74caa7..00000000 --- a/src/main/java/com/fireblocks/sdk/model/ResendFailedNotificationsJobStatusResponse.java +++ /dev/null @@ -1,316 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fireblocks.sdk.ApiClient; -import java.math.BigDecimal; -import java.util.Objects; -import java.util.StringJoiner; - -/** ResendFailedNotificationsJobStatusResponse */ -@JsonPropertyOrder({ - ResendFailedNotificationsJobStatusResponse.JSON_PROPERTY_JOB_ID, - ResendFailedNotificationsJobStatusResponse.JSON_PROPERTY_STATUS, - ResendFailedNotificationsJobStatusResponse.JSON_PROPERTY_PROCESSED, - ResendFailedNotificationsJobStatusResponse.JSON_PROPERTY_TOTAL -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class ResendFailedNotificationsJobStatusResponse { - public static final String JSON_PROPERTY_JOB_ID = "jobId"; - @jakarta.annotation.Nonnull private String jobId; - - /** Bulk resend job status */ - public enum StatusEnum { - QUEUED(String.valueOf("QUEUED")), - - IN_PROGRESS(String.valueOf("IN_PROGRESS")), - - COMPLETED(String.valueOf("COMPLETED")), - - FAILED(String.valueOf("FAILED")); - - private String value; - - StatusEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static StatusEnum fromValue(String value) { - for (StatusEnum b : StatusEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_STATUS = "status"; - @jakarta.annotation.Nonnull private StatusEnum status; - - public static final String JSON_PROPERTY_PROCESSED = "processed"; - @jakarta.annotation.Nonnull private BigDecimal processed; - - public static final String JSON_PROPERTY_TOTAL = "total"; - @jakarta.annotation.Nonnull private BigDecimal total; - - public ResendFailedNotificationsJobStatusResponse() {} - - @JsonCreator - public ResendFailedNotificationsJobStatusResponse( - @JsonProperty(value = JSON_PROPERTY_JOB_ID, required = true) String jobId, - @JsonProperty(value = JSON_PROPERTY_STATUS, required = true) StatusEnum status, - @JsonProperty(value = JSON_PROPERTY_PROCESSED, required = true) BigDecimal processed, - @JsonProperty(value = JSON_PROPERTY_TOTAL, required = true) BigDecimal total) { - this.jobId = jobId; - this.status = status; - this.processed = processed; - this.total = total; - } - - public ResendFailedNotificationsJobStatusResponse jobId( - @jakarta.annotation.Nonnull String jobId) { - this.jobId = jobId; - return this; - } - - /** - * Bulk resend job ID - * - * @return jobId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_JOB_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getJobId() { - return jobId; - } - - @JsonProperty(JSON_PROPERTY_JOB_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setJobId(@jakarta.annotation.Nonnull String jobId) { - this.jobId = jobId; - } - - public ResendFailedNotificationsJobStatusResponse status( - @jakarta.annotation.Nonnull StatusEnum status) { - this.status = status; - return this; - } - - /** - * Bulk resend job status - * - * @return status - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_STATUS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public StatusEnum getStatus() { - return status; - } - - @JsonProperty(JSON_PROPERTY_STATUS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStatus(@jakarta.annotation.Nonnull StatusEnum status) { - this.status = status; - } - - public ResendFailedNotificationsJobStatusResponse processed( - @jakarta.annotation.Nonnull BigDecimal processed) { - this.processed = processed; - return this; - } - - /** - * Number of notifications processed - * - * @return processed - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PROCESSED) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public BigDecimal getProcessed() { - return processed; - } - - @JsonProperty(JSON_PROPERTY_PROCESSED) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setProcessed(@jakarta.annotation.Nonnull BigDecimal processed) { - this.processed = processed; - } - - public ResendFailedNotificationsJobStatusResponse total( - @jakarta.annotation.Nonnull BigDecimal total) { - this.total = total; - return this; - } - - /** - * Total number of notifications to process - * - * @return total - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TOTAL) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public BigDecimal getTotal() { - return total; - } - - @JsonProperty(JSON_PROPERTY_TOTAL) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTotal(@jakarta.annotation.Nonnull BigDecimal total) { - this.total = total; - } - - /** Return true if this ResendFailedNotificationsJobStatusResponse object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ResendFailedNotificationsJobStatusResponse resendFailedNotificationsJobStatusResponse = - (ResendFailedNotificationsJobStatusResponse) o; - return Objects.equals(this.jobId, resendFailedNotificationsJobStatusResponse.jobId) - && Objects.equals(this.status, resendFailedNotificationsJobStatusResponse.status) - && Objects.equals( - this.processed, resendFailedNotificationsJobStatusResponse.processed) - && Objects.equals(this.total, resendFailedNotificationsJobStatusResponse.total); - } - - @Override - public int hashCode() { - return Objects.hash(jobId, status, processed, total); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ResendFailedNotificationsJobStatusResponse {\n"); - sb.append(" jobId: ").append(toIndentedString(jobId)).append("\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append(" processed: ").append(toIndentedString(processed)).append("\n"); - sb.append(" total: ").append(toIndentedString(total)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `jobId` to the URL query string - if (getJobId() != null) { - joiner.add( - String.format( - "%sjobId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getJobId())))); - } - - // add `status` to the URL query string - if (getStatus() != null) { - joiner.add( - String.format( - "%sstatus%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getStatus())))); - } - - // add `processed` to the URL query string - if (getProcessed() != null) { - joiner.add( - String.format( - "%sprocessed%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getProcessed())))); - } - - // add `total` to the URL query string - if (getTotal() != null) { - joiner.add( - String.format( - "%stotal%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getTotal())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/ResendFailedNotificationsRequest.java b/src/main/java/com/fireblocks/sdk/model/ResendFailedNotificationsRequest.java deleted file mode 100644 index 71b94342..00000000 --- a/src/main/java/com/fireblocks/sdk/model/ResendFailedNotificationsRequest.java +++ /dev/null @@ -1,207 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.math.BigDecimal; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** ResendFailedNotificationsRequest */ -@JsonPropertyOrder({ - ResendFailedNotificationsRequest.JSON_PROPERTY_START_TIME, - ResendFailedNotificationsRequest.JSON_PROPERTY_EVENTS -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class ResendFailedNotificationsRequest { - public static final String JSON_PROPERTY_START_TIME = "startTime"; - @jakarta.annotation.Nullable private BigDecimal startTime; - - public static final String JSON_PROPERTY_EVENTS = "events"; - @jakarta.annotation.Nullable private List events = new ArrayList<>(); - - public ResendFailedNotificationsRequest() {} - - public ResendFailedNotificationsRequest startTime( - @jakarta.annotation.Nullable BigDecimal startTime) { - this.startTime = startTime; - return this; - } - - /** - * (optional) Start time for the resend window in milliseconds since epoch up to 24 hours before - * the current time - Default if missing means 24 hours before the current time in milliseconds - * since epoch - Maximum value is current time in milliseconds since epoch - Minimum value is 24 - * hours before the current time in milliseconds since epoch - * - * @return startTime - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_START_TIME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public BigDecimal getStartTime() { - return startTime; - } - - @JsonProperty(JSON_PROPERTY_START_TIME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStartTime(@jakarta.annotation.Nullable BigDecimal startTime) { - this.startTime = startTime; - } - - public ResendFailedNotificationsRequest events( - @jakarta.annotation.Nullable List events) { - this.events = events; - return this; - } - - public ResendFailedNotificationsRequest addEventsItem(WebhookEvent eventsItem) { - if (this.events == null) { - this.events = new ArrayList<>(); - } - this.events.add(eventsItem); - return this; - } - - /** - * (optional) Event types to resend, default is all event types - Default if missing means all - * events will be included - Empty array means all events will be included - * - * @return events - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EVENTS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getEvents() { - return events; - } - - @JsonProperty(JSON_PROPERTY_EVENTS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEvents(@jakarta.annotation.Nullable List events) { - this.events = events; - } - - /** Return true if this ResendFailedNotificationsRequest object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ResendFailedNotificationsRequest resendFailedNotificationsRequest = - (ResendFailedNotificationsRequest) o; - return Objects.equals(this.startTime, resendFailedNotificationsRequest.startTime) - && Objects.equals(this.events, resendFailedNotificationsRequest.events); - } - - @Override - public int hashCode() { - return Objects.hash(startTime, events); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ResendFailedNotificationsRequest {\n"); - sb.append(" startTime: ").append(toIndentedString(startTime)).append("\n"); - sb.append(" events: ").append(toIndentedString(events)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `startTime` to the URL query string - if (getStartTime() != null) { - joiner.add( - String.format( - "%sstartTime%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getStartTime())))); - } - - // add `events` to the URL query string - if (getEvents() != null) { - for (int i = 0; i < getEvents().size(); i++) { - if (getEvents().get(i) != null) { - joiner.add( - String.format( - "%sevents%s%s=%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode( - ApiClient.valueToString(getEvents().get(i))))); - } - } - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/ResendFailedNotificationsResponse.java b/src/main/java/com/fireblocks/sdk/model/ResendFailedNotificationsResponse.java deleted file mode 100644 index a578fba3..00000000 --- a/src/main/java/com/fireblocks/sdk/model/ResendFailedNotificationsResponse.java +++ /dev/null @@ -1,141 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.math.BigDecimal; -import java.util.Objects; -import java.util.StringJoiner; - -/** ResendFailedNotificationsResponse */ -@JsonPropertyOrder({ResendFailedNotificationsResponse.JSON_PROPERTY_TOTAL}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class ResendFailedNotificationsResponse { - public static final String JSON_PROPERTY_TOTAL = "total"; - @jakarta.annotation.Nullable private BigDecimal total; - - public ResendFailedNotificationsResponse() {} - - public ResendFailedNotificationsResponse total(@jakarta.annotation.Nullable BigDecimal total) { - this.total = total; - return this; - } - - /** - * The total number of failed notifications that are scheduled to be resent. - * - * @return total - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TOTAL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public BigDecimal getTotal() { - return total; - } - - @JsonProperty(JSON_PROPERTY_TOTAL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTotal(@jakarta.annotation.Nullable BigDecimal total) { - this.total = total; - } - - /** Return true if this ResendFailedNotificationsResponse object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ResendFailedNotificationsResponse resendFailedNotificationsResponse = - (ResendFailedNotificationsResponse) o; - return Objects.equals(this.total, resendFailedNotificationsResponse.total); - } - - @Override - public int hashCode() { - return Objects.hash(total); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ResendFailedNotificationsResponse {\n"); - sb.append(" total: ").append(toIndentedString(total)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `total` to the URL query string - if (getTotal() != null) { - joiner.add( - String.format( - "%stotal%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getTotal())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/ResendNotificationsByResourceIdRequest.java b/src/main/java/com/fireblocks/sdk/model/ResendNotificationsByResourceIdRequest.java deleted file mode 100644 index 9e8620cf..00000000 --- a/src/main/java/com/fireblocks/sdk/model/ResendNotificationsByResourceIdRequest.java +++ /dev/null @@ -1,219 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; -import java.util.UUID; - -/** ResendNotificationsByResourceIdRequest */ -@JsonPropertyOrder({ - ResendNotificationsByResourceIdRequest.JSON_PROPERTY_RESOURCE_ID, - ResendNotificationsByResourceIdRequest.JSON_PROPERTY_EXCLUDE_STATUSES -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class ResendNotificationsByResourceIdRequest { - public static final String JSON_PROPERTY_RESOURCE_ID = "resourceId"; - @jakarta.annotation.Nonnull private UUID resourceId; - - public static final String JSON_PROPERTY_EXCLUDE_STATUSES = "excludeStatuses"; - - @jakarta.annotation.Nullable - private List excludeStatuses = new ArrayList<>(); - - public ResendNotificationsByResourceIdRequest() {} - - @JsonCreator - public ResendNotificationsByResourceIdRequest( - @JsonProperty(value = JSON_PROPERTY_RESOURCE_ID, required = true) UUID resourceId) { - this.resourceId = resourceId; - } - - public ResendNotificationsByResourceIdRequest resourceId( - @jakarta.annotation.Nonnull UUID resourceId) { - this.resourceId = resourceId; - return this; - } - - /** - * The resource id to resend notifications for - * - * @return resourceId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_RESOURCE_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public UUID getResourceId() { - return resourceId; - } - - @JsonProperty(JSON_PROPERTY_RESOURCE_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setResourceId(@jakarta.annotation.Nonnull UUID resourceId) { - this.resourceId = resourceId; - } - - public ResendNotificationsByResourceIdRequest excludeStatuses( - @jakarta.annotation.Nullable List excludeStatuses) { - this.excludeStatuses = excludeStatuses; - return this; - } - - public ResendNotificationsByResourceIdRequest addExcludeStatusesItem( - NotificationStatus excludeStatusesItem) { - if (this.excludeStatuses == null) { - this.excludeStatuses = new ArrayList<>(); - } - this.excludeStatuses.add(excludeStatusesItem); - return this; - } - - /** - * (optional) List of notification statuses to exclude from the resend operation - Empty array - * means all statuses will be included - If you want to exclude some statuses, you can use the - * following example: [ IN_PROGRESS, FAILED ] - Default if missing, means all statuses other - * than \"COMPLETED\" will be included - * - * @return excludeStatuses - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EXCLUDE_STATUSES) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getExcludeStatuses() { - return excludeStatuses; - } - - @JsonProperty(JSON_PROPERTY_EXCLUDE_STATUSES) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setExcludeStatuses( - @jakarta.annotation.Nullable List excludeStatuses) { - this.excludeStatuses = excludeStatuses; - } - - /** Return true if this ResendNotificationsByResourceIdRequest object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ResendNotificationsByResourceIdRequest resendNotificationsByResourceIdRequest = - (ResendNotificationsByResourceIdRequest) o; - return Objects.equals(this.resourceId, resendNotificationsByResourceIdRequest.resourceId) - && Objects.equals( - this.excludeStatuses, - resendNotificationsByResourceIdRequest.excludeStatuses); - } - - @Override - public int hashCode() { - return Objects.hash(resourceId, excludeStatuses); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ResendNotificationsByResourceIdRequest {\n"); - sb.append(" resourceId: ").append(toIndentedString(resourceId)).append("\n"); - sb.append(" excludeStatuses: ").append(toIndentedString(excludeStatuses)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `resourceId` to the URL query string - if (getResourceId() != null) { - joiner.add( - String.format( - "%sresourceId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getResourceId())))); - } - - // add `excludeStatuses` to the URL query string - if (getExcludeStatuses() != null) { - for (int i = 0; i < getExcludeStatuses().size(); i++) { - if (getExcludeStatuses().get(i) != null) { - joiner.add( - String.format( - "%sexcludeStatuses%s%s=%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode( - ApiClient.valueToString(getExcludeStatuses().get(i))))); - } - } - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/RetryRequoteRequestDetails.java b/src/main/java/com/fireblocks/sdk/model/RetryRequoteRequestDetails.java deleted file mode 100644 index 4aa87b35..00000000 --- a/src/main/java/com/fireblocks/sdk/model/RetryRequoteRequestDetails.java +++ /dev/null @@ -1,268 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fireblocks.sdk.ApiClient; -import java.math.BigDecimal; -import java.util.Objects; -import java.util.StringJoiner; - -/** RetryRequoteRequestDetails */ -@JsonPropertyOrder({ - RetryRequoteRequestDetails.JSON_PROPERTY_TYPE, - RetryRequoteRequestDetails.JSON_PROPERTY_COUNT, - RetryRequoteRequestDetails.JSON_PROPERTY_SLIPPAGE_BPS -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class RetryRequoteRequestDetails { - /** - * Indicates that the order should be re-quoted if the original quote is expired, trying to - * match the original quote. - */ - public enum TypeEnum { - RETRY(String.valueOf("RETRY")); - - private String value; - - TypeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static TypeEnum fromValue(String value) { - for (TypeEnum b : TypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_TYPE = "type"; - @jakarta.annotation.Nonnull private TypeEnum type; - - public static final String JSON_PROPERTY_COUNT = "count"; - @jakarta.annotation.Nonnull private BigDecimal count; - - public static final String JSON_PROPERTY_SLIPPAGE_BPS = "slippageBps"; - @jakarta.annotation.Nullable private BigDecimal slippageBps = new BigDecimal("1"); - - public RetryRequoteRequestDetails() {} - - @JsonCreator - public RetryRequoteRequestDetails( - @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) TypeEnum type, - @JsonProperty(value = JSON_PROPERTY_COUNT, required = true) BigDecimal count) { - this.type = type; - this.count = count; - } - - public RetryRequoteRequestDetails type(@jakarta.annotation.Nonnull TypeEnum type) { - this.type = type; - return this; - } - - /** - * Indicates that the order should be re-quoted if the original quote is expired, trying to - * match the original quote. - * - * @return type - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { - return type; - } - - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(@jakarta.annotation.Nonnull TypeEnum type) { - this.type = type; - } - - public RetryRequoteRequestDetails count(@jakarta.annotation.Nonnull BigDecimal count) { - this.count = count; - return this; - } - - /** - * If quote is expired, how many times to re-generate new quotes to try having the order - * executed as in the original quote. minimum: 1 maximum: 10 - * - * @return count - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_COUNT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public BigDecimal getCount() { - return count; - } - - @JsonProperty(JSON_PROPERTY_COUNT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCount(@jakarta.annotation.Nonnull BigDecimal count) { - this.count = count; - } - - public RetryRequoteRequestDetails slippageBps( - @jakarta.annotation.Nullable BigDecimal slippageBps) { - this.slippageBps = slippageBps; - return this; - } - - /** - * Slippage tolerance in basis points (bps) for quote orders - 1 is 0.01% and 10000 is 100% - * minimum: 1 maximum: 10000 - * - * @return slippageBps - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SLIPPAGE_BPS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public BigDecimal getSlippageBps() { - return slippageBps; - } - - @JsonProperty(JSON_PROPERTY_SLIPPAGE_BPS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSlippageBps(@jakarta.annotation.Nullable BigDecimal slippageBps) { - this.slippageBps = slippageBps; - } - - /** Return true if this RetryRequoteRequestDetails object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - RetryRequoteRequestDetails retryRequoteRequestDetails = (RetryRequoteRequestDetails) o; - return Objects.equals(this.type, retryRequoteRequestDetails.type) - && Objects.equals(this.count, retryRequoteRequestDetails.count) - && Objects.equals(this.slippageBps, retryRequoteRequestDetails.slippageBps); - } - - @Override - public int hashCode() { - return Objects.hash(type, count, slippageBps); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class RetryRequoteRequestDetails {\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" count: ").append(toIndentedString(count)).append("\n"); - sb.append(" slippageBps: ").append(toIndentedString(slippageBps)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `type` to the URL query string - if (getType() != null) { - joiner.add( - String.format( - "%stype%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getType())))); - } - - // add `count` to the URL query string - if (getCount() != null) { - joiner.add( - String.format( - "%scount%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getCount())))); - } - - // add `slippageBps` to the URL query string - if (getSlippageBps() != null) { - joiner.add( - String.format( - "%sslippageBps%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getSlippageBps())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/SOLAccount.java b/src/main/java/com/fireblocks/sdk/model/SOLAccount.java deleted file mode 100644 index 543b1862..00000000 --- a/src/main/java/com/fireblocks/sdk/model/SOLAccount.java +++ /dev/null @@ -1,265 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** The accounts involved in the instruction */ -@JsonPropertyOrder({ - SOLAccount.JSON_PROPERTY_NAME, - SOLAccount.JSON_PROPERTY_SIGNER, - SOLAccount.JSON_PROPERTY_WRITABLE, - SOLAccount.JSON_PROPERTY_ADDRESS -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class SOLAccount { - public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nonnull private String name; - - public static final String JSON_PROPERTY_SIGNER = "signer"; - @jakarta.annotation.Nullable private Boolean signer; - - public static final String JSON_PROPERTY_WRITABLE = "writable"; - @jakarta.annotation.Nullable private Boolean writable; - - public static final String JSON_PROPERTY_ADDRESS = "address"; - @jakarta.annotation.Nullable private String address; - - public SOLAccount() {} - - @JsonCreator - public SOLAccount(@JsonProperty(value = JSON_PROPERTY_NAME, required = true) String name) { - this.name = name; - } - - public SOLAccount name(@jakarta.annotation.Nonnull String name) { - this.name = name; - return this; - } - - /** - * The name of the account - * - * @return name - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getName() { - return name; - } - - @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(@jakarta.annotation.Nonnull String name) { - this.name = name; - } - - public SOLAccount signer(@jakarta.annotation.Nullable Boolean signer) { - this.signer = signer; - return this; - } - - /** - * Indicates if the account needs to sign the instruction. If true a signature for this account - * must be provided - * - * @return signer - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SIGNER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getSigner() { - return signer; - } - - @JsonProperty(JSON_PROPERTY_SIGNER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSigner(@jakarta.annotation.Nullable Boolean signer) { - this.signer = signer; - } - - public SOLAccount writable(@jakarta.annotation.Nullable Boolean writable) { - this.writable = writable; - return this; - } - - /** - * Indicates if the account's data can be changed by the instruction. - * - * @return writable - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_WRITABLE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getWritable() { - return writable; - } - - @JsonProperty(JSON_PROPERTY_WRITABLE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setWritable(@jakarta.annotation.Nullable Boolean writable) { - this.writable = writable; - } - - public SOLAccount address(@jakarta.annotation.Nullable String address) { - this.address = address; - return this; - } - - /** - * The address of the account - * - * @return address - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ADDRESS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getAddress() { - return address; - } - - @JsonProperty(JSON_PROPERTY_ADDRESS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAddress(@jakarta.annotation.Nullable String address) { - this.address = address; - } - - /** Return true if this SOLAccount object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SOLAccount soLAccount = (SOLAccount) o; - return Objects.equals(this.name, soLAccount.name) - && Objects.equals(this.signer, soLAccount.signer) - && Objects.equals(this.writable, soLAccount.writable) - && Objects.equals(this.address, soLAccount.address); - } - - @Override - public int hashCode() { - return Objects.hash(name, signer, writable, address); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SOLAccount {\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" signer: ").append(toIndentedString(signer)).append("\n"); - sb.append(" writable: ").append(toIndentedString(writable)).append("\n"); - sb.append(" address: ").append(toIndentedString(address)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `name` to the URL query string - if (getName() != null) { - joiner.add( - String.format( - "%sname%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getName())))); - } - - // add `signer` to the URL query string - if (getSigner() != null) { - joiner.add( - String.format( - "%ssigner%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getSigner())))); - } - - // add `writable` to the URL query string - if (getWritable() != null) { - joiner.add( - String.format( - "%swritable%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getWritable())))); - } - - // add `address` to the URL query string - if (getAddress() != null) { - joiner.add( - String.format( - "%saddress%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAddress())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/SOLAccountWithValue.java b/src/main/java/com/fireblocks/sdk/model/SOLAccountWithValue.java deleted file mode 100644 index 8ed6cab9..00000000 --- a/src/main/java/com/fireblocks/sdk/model/SOLAccountWithValue.java +++ /dev/null @@ -1,268 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** SOLAccountWithValue */ -@JsonPropertyOrder({ - SOLAccountWithValue.JSON_PROPERTY_NAME, - SOLAccountWithValue.JSON_PROPERTY_SIGNER, - SOLAccountWithValue.JSON_PROPERTY_WRITABLE, - SOLAccountWithValue.JSON_PROPERTY_ADDRESS -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class SOLAccountWithValue { - public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nonnull private String name; - - public static final String JSON_PROPERTY_SIGNER = "signer"; - @jakarta.annotation.Nullable private Boolean signer; - - public static final String JSON_PROPERTY_WRITABLE = "writable"; - @jakarta.annotation.Nullable private Boolean writable; - - public static final String JSON_PROPERTY_ADDRESS = "address"; - @jakarta.annotation.Nonnull private String address; - - public SOLAccountWithValue() {} - - @JsonCreator - public SOLAccountWithValue( - @JsonProperty(value = JSON_PROPERTY_NAME, required = true) String name, - @JsonProperty(value = JSON_PROPERTY_ADDRESS, required = true) String address) { - this.name = name; - this.address = address; - } - - public SOLAccountWithValue name(@jakarta.annotation.Nonnull String name) { - this.name = name; - return this; - } - - /** - * The name of the account - * - * @return name - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getName() { - return name; - } - - @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(@jakarta.annotation.Nonnull String name) { - this.name = name; - } - - public SOLAccountWithValue signer(@jakarta.annotation.Nullable Boolean signer) { - this.signer = signer; - return this; - } - - /** - * Indicates if the account needs to sign the instruction. If true a signature for this account - * must be provided - * - * @return signer - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SIGNER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getSigner() { - return signer; - } - - @JsonProperty(JSON_PROPERTY_SIGNER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSigner(@jakarta.annotation.Nullable Boolean signer) { - this.signer = signer; - } - - public SOLAccountWithValue writable(@jakarta.annotation.Nullable Boolean writable) { - this.writable = writable; - return this; - } - - /** - * Indicates if the account's data can be changed by the instruction. - * - * @return writable - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_WRITABLE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getWritable() { - return writable; - } - - @JsonProperty(JSON_PROPERTY_WRITABLE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setWritable(@jakarta.annotation.Nullable Boolean writable) { - this.writable = writable; - } - - public SOLAccountWithValue address(@jakarta.annotation.Nonnull String address) { - this.address = address; - return this; - } - - /** - * The address of the account - * - * @return address - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ADDRESS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getAddress() { - return address; - } - - @JsonProperty(JSON_PROPERTY_ADDRESS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAddress(@jakarta.annotation.Nonnull String address) { - this.address = address; - } - - /** Return true if this SOLAccountWithValue object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SOLAccountWithValue soLAccountWithValue = (SOLAccountWithValue) o; - return Objects.equals(this.name, soLAccountWithValue.name) - && Objects.equals(this.signer, soLAccountWithValue.signer) - && Objects.equals(this.writable, soLAccountWithValue.writable) - && Objects.equals(this.address, soLAccountWithValue.address); - } - - @Override - public int hashCode() { - return Objects.hash(name, signer, writable, address); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SOLAccountWithValue {\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" signer: ").append(toIndentedString(signer)).append("\n"); - sb.append(" writable: ").append(toIndentedString(writable)).append("\n"); - sb.append(" address: ").append(toIndentedString(address)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `name` to the URL query string - if (getName() != null) { - joiner.add( - String.format( - "%sname%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getName())))); - } - - // add `signer` to the URL query string - if (getSigner() != null) { - joiner.add( - String.format( - "%ssigner%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getSigner())))); - } - - // add `writable` to the URL query string - if (getWritable() != null) { - joiner.add( - String.format( - "%swritable%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getWritable())))); - } - - // add `address` to the URL query string - if (getAddress() != null) { - joiner.add( - String.format( - "%saddress%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAddress())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/ScreeningMetadataConfig.java b/src/main/java/com/fireblocks/sdk/model/ScreeningMetadataConfig.java deleted file mode 100644 index 7d290886..00000000 --- a/src/main/java/com/fireblocks/sdk/model/ScreeningMetadataConfig.java +++ /dev/null @@ -1,790 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fireblocks.sdk.ApiClient; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** Screening metadata configuration */ -@JsonPropertyOrder({ - ScreeningMetadataConfig.JSON_PROPERTY_DIRECTION, - ScreeningMetadataConfig.JSON_PROPERTY_PROVIDER, - ScreeningMetadataConfig.JSON_PROPERTY_RISK_RATING, - ScreeningMetadataConfig.JSON_PROPERTY_RISK_SCORE, - ScreeningMetadataConfig.JSON_PROPERTY_EXPOSURE_TYPE, - ScreeningMetadataConfig.JSON_PROPERTY_CATEGORY, - ScreeningMetadataConfig.JSON_PROPERTY_NAME, - ScreeningMetadataConfig.JSON_PROPERTY_CATEGORY_ID, - ScreeningMetadataConfig.JSON_PROPERTY_STATUS, - ScreeningMetadataConfig.JSON_PROPERTY_SOURCE_ADDRESS, - ScreeningMetadataConfig.JSON_PROPERTY_DEST_ADDRESS -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class ScreeningMetadataConfig { - /** Direction of transaction */ - public enum DirectionEnum { - INBOUND(String.valueOf("INBOUND")), - - OUTBOUND(String.valueOf("OUTBOUND")), - - ANY(String.valueOf("ANY")); - - private String value; - - DirectionEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static DirectionEnum fromValue(String value) { - for (DirectionEnum b : DirectionEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_DIRECTION = "direction"; - @jakarta.annotation.Nonnull private DirectionEnum direction; - - /** Screening provider */ - public enum ProviderEnum { - CHAINALYSIS(String.valueOf("CHAINALYSIS")), - - CHAINALYSIS_V2(String.valueOf("CHAINALYSIS_V2")), - - ELLIPTIC(String.valueOf("ELLIPTIC")), - - ELLIPTIC_HOLISTIC(String.valueOf("ELLIPTIC_HOLISTIC")), - - NOTABENE(String.valueOf("NOTABENE")); - - private String value; - - ProviderEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static ProviderEnum fromValue(String value) { - for (ProviderEnum b : ProviderEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - return null; - } - } - - public static final String JSON_PROPERTY_PROVIDER = "provider"; - @jakarta.annotation.Nullable private ProviderEnum provider; - - /** Risk rating threshold */ - public enum RiskRatingEnum { - LOW(String.valueOf("LOW")), - - MEDIUM(String.valueOf("MEDIUM")), - - HIGH(String.valueOf("HIGH")), - - SEVERE(String.valueOf("SEVERE")), - - ANY(String.valueOf("ANY")); - - private String value; - - RiskRatingEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static RiskRatingEnum fromValue(String value) { - for (RiskRatingEnum b : RiskRatingEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_RISK_RATING = "riskRating"; - @jakarta.annotation.Nullable private RiskRatingEnum riskRating; - - public static final String JSON_PROPERTY_RISK_SCORE = "riskScore"; - @jakarta.annotation.Nullable private String riskScore; - - /** Exposure type */ - public enum ExposureTypeEnum { - DIRECT(String.valueOf("DIRECT")), - - INDIRECT(String.valueOf("INDIRECT")), - - ANY(String.valueOf("ANY")); - - private String value; - - ExposureTypeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static ExposureTypeEnum fromValue(String value) { - for (ExposureTypeEnum b : ExposureTypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_EXPOSURE_TYPE = "exposureType"; - @jakarta.annotation.Nullable private ExposureTypeEnum exposureType; - - public static final String JSON_PROPERTY_CATEGORY = "category"; - @jakarta.annotation.Nullable private List category = new ArrayList<>(); - - public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nullable private List name = new ArrayList<>(); - - public static final String JSON_PROPERTY_CATEGORY_ID = "categoryId"; - @jakarta.annotation.Nullable private List categoryId = new ArrayList<>(); - - /** Transaction status */ - public enum StatusEnum { - COMPLETED(String.valueOf("COMPLETED")), - - PENDING(String.valueOf("PENDING")), - - REJECTED(String.valueOf("REJECTED")), - - FAILED(String.valueOf("FAILED")), - - CANCELED(String.valueOf("CANCELED")), - - BLOCKING_TIME_EXPIRED(String.valueOf("BLOCKING_TIME_EXPIRED")); - - private String value; - - StatusEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static StatusEnum fromValue(String value) { - for (StatusEnum b : StatusEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_STATUS = "status"; - @jakarta.annotation.Nullable private StatusEnum status; - - public static final String JSON_PROPERTY_SOURCE_ADDRESS = "sourceAddress"; - @jakarta.annotation.Nullable private String sourceAddress; - - public static final String JSON_PROPERTY_DEST_ADDRESS = "destAddress"; - @jakarta.annotation.Nullable private String destAddress; - - public ScreeningMetadataConfig() {} - - @JsonCreator - public ScreeningMetadataConfig( - @JsonProperty(value = JSON_PROPERTY_DIRECTION, required = true) - DirectionEnum direction) { - this.direction = direction; - } - - public ScreeningMetadataConfig direction(@jakarta.annotation.Nonnull DirectionEnum direction) { - this.direction = direction; - return this; - } - - /** - * Direction of transaction - * - * @return direction - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DIRECTION) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public DirectionEnum getDirection() { - return direction; - } - - @JsonProperty(JSON_PROPERTY_DIRECTION) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDirection(@jakarta.annotation.Nonnull DirectionEnum direction) { - this.direction = direction; - } - - public ScreeningMetadataConfig provider(@jakarta.annotation.Nullable ProviderEnum provider) { - this.provider = provider; - return this; - } - - /** - * Screening provider - * - * @return provider - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROVIDER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public ProviderEnum getProvider() { - return provider; - } - - @JsonProperty(JSON_PROPERTY_PROVIDER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setProvider(@jakarta.annotation.Nullable ProviderEnum provider) { - this.provider = provider; - } - - public ScreeningMetadataConfig riskRating( - @jakarta.annotation.Nullable RiskRatingEnum riskRating) { - this.riskRating = riskRating; - return this; - } - - /** - * Risk rating threshold - * - * @return riskRating - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_RISK_RATING) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public RiskRatingEnum getRiskRating() { - return riskRating; - } - - @JsonProperty(JSON_PROPERTY_RISK_RATING) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRiskRating(@jakarta.annotation.Nullable RiskRatingEnum riskRating) { - this.riskRating = riskRating; - } - - public ScreeningMetadataConfig riskScore(@jakarta.annotation.Nullable String riskScore) { - this.riskScore = riskScore; - return this; - } - - /** - * Risk score threshold - * - * @return riskScore - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_RISK_SCORE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getRiskScore() { - return riskScore; - } - - @JsonProperty(JSON_PROPERTY_RISK_SCORE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRiskScore(@jakarta.annotation.Nullable String riskScore) { - this.riskScore = riskScore; - } - - public ScreeningMetadataConfig exposureType( - @jakarta.annotation.Nullable ExposureTypeEnum exposureType) { - this.exposureType = exposureType; - return this; - } - - /** - * Exposure type - * - * @return exposureType - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EXPOSURE_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public ExposureTypeEnum getExposureType() { - return exposureType; - } - - @JsonProperty(JSON_PROPERTY_EXPOSURE_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setExposureType(@jakarta.annotation.Nullable ExposureTypeEnum exposureType) { - this.exposureType = exposureType; - } - - public ScreeningMetadataConfig category(@jakarta.annotation.Nullable List category) { - this.category = category; - return this; - } - - public ScreeningMetadataConfig addCategoryItem(String categoryItem) { - if (this.category == null) { - this.category = new ArrayList<>(); - } - this.category.add(categoryItem); - return this; - } - - /** - * Get category - * - * @return category - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CATEGORY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getCategory() { - return category; - } - - @JsonProperty(JSON_PROPERTY_CATEGORY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCategory(@jakarta.annotation.Nullable List category) { - this.category = category; - } - - public ScreeningMetadataConfig name(@jakarta.annotation.Nullable List name) { - this.name = name; - return this; - } - - public ScreeningMetadataConfig addNameItem(String nameItem) { - if (this.name == null) { - this.name = new ArrayList<>(); - } - this.name.add(nameItem); - return this; - } - - /** - * Get name - * - * @return name - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getName() { - return name; - } - - @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(@jakarta.annotation.Nullable List name) { - this.name = name; - } - - public ScreeningMetadataConfig categoryId( - @jakarta.annotation.Nullable List categoryId) { - this.categoryId = categoryId; - return this; - } - - public ScreeningMetadataConfig addCategoryIdItem(String categoryIdItem) { - if (this.categoryId == null) { - this.categoryId = new ArrayList<>(); - } - this.categoryId.add(categoryIdItem); - return this; - } - - /** - * Get categoryId - * - * @return categoryId - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CATEGORY_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getCategoryId() { - return categoryId; - } - - @JsonProperty(JSON_PROPERTY_CATEGORY_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCategoryId(@jakarta.annotation.Nullable List categoryId) { - this.categoryId = categoryId; - } - - public ScreeningMetadataConfig status(@jakarta.annotation.Nullable StatusEnum status) { - this.status = status; - return this; - } - - /** - * Transaction status - * - * @return status - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public StatusEnum getStatus() { - return status; - } - - @JsonProperty(JSON_PROPERTY_STATUS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStatus(@jakarta.annotation.Nullable StatusEnum status) { - this.status = status; - } - - public ScreeningMetadataConfig sourceAddress( - @jakarta.annotation.Nullable String sourceAddress) { - this.sourceAddress = sourceAddress; - return this; - } - - /** - * Source address - * - * @return sourceAddress - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOURCE_ADDRESS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getSourceAddress() { - return sourceAddress; - } - - @JsonProperty(JSON_PROPERTY_SOURCE_ADDRESS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSourceAddress(@jakarta.annotation.Nullable String sourceAddress) { - this.sourceAddress = sourceAddress; - } - - public ScreeningMetadataConfig destAddress(@jakarta.annotation.Nullable String destAddress) { - this.destAddress = destAddress; - return this; - } - - /** - * Destination address - * - * @return destAddress - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DEST_ADDRESS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getDestAddress() { - return destAddress; - } - - @JsonProperty(JSON_PROPERTY_DEST_ADDRESS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDestAddress(@jakarta.annotation.Nullable String destAddress) { - this.destAddress = destAddress; - } - - /** Return true if this ScreeningMetadataConfig object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ScreeningMetadataConfig screeningMetadataConfig = (ScreeningMetadataConfig) o; - return Objects.equals(this.direction, screeningMetadataConfig.direction) - && Objects.equals(this.provider, screeningMetadataConfig.provider) - && Objects.equals(this.riskRating, screeningMetadataConfig.riskRating) - && Objects.equals(this.riskScore, screeningMetadataConfig.riskScore) - && Objects.equals(this.exposureType, screeningMetadataConfig.exposureType) - && Objects.equals(this.category, screeningMetadataConfig.category) - && Objects.equals(this.name, screeningMetadataConfig.name) - && Objects.equals(this.categoryId, screeningMetadataConfig.categoryId) - && Objects.equals(this.status, screeningMetadataConfig.status) - && Objects.equals(this.sourceAddress, screeningMetadataConfig.sourceAddress) - && Objects.equals(this.destAddress, screeningMetadataConfig.destAddress); - } - - @Override - public int hashCode() { - return Objects.hash( - direction, - provider, - riskRating, - riskScore, - exposureType, - category, - name, - categoryId, - status, - sourceAddress, - destAddress); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ScreeningMetadataConfig {\n"); - sb.append(" direction: ").append(toIndentedString(direction)).append("\n"); - sb.append(" provider: ").append(toIndentedString(provider)).append("\n"); - sb.append(" riskRating: ").append(toIndentedString(riskRating)).append("\n"); - sb.append(" riskScore: ").append(toIndentedString(riskScore)).append("\n"); - sb.append(" exposureType: ").append(toIndentedString(exposureType)).append("\n"); - sb.append(" category: ").append(toIndentedString(category)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" categoryId: ").append(toIndentedString(categoryId)).append("\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append(" sourceAddress: ").append(toIndentedString(sourceAddress)).append("\n"); - sb.append(" destAddress: ").append(toIndentedString(destAddress)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `direction` to the URL query string - if (getDirection() != null) { - joiner.add( - String.format( - "%sdirection%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getDirection())))); - } - - // add `provider` to the URL query string - if (getProvider() != null) { - joiner.add( - String.format( - "%sprovider%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getProvider())))); - } - - // add `riskRating` to the URL query string - if (getRiskRating() != null) { - joiner.add( - String.format( - "%sriskRating%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getRiskRating())))); - } - - // add `riskScore` to the URL query string - if (getRiskScore() != null) { - joiner.add( - String.format( - "%sriskScore%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getRiskScore())))); - } - - // add `exposureType` to the URL query string - if (getExposureType() != null) { - joiner.add( - String.format( - "%sexposureType%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getExposureType())))); - } - - // add `category` to the URL query string - if (getCategory() != null) { - for (int i = 0; i < getCategory().size(); i++) { - joiner.add( - String.format( - "%scategory%s%s=%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode( - ApiClient.valueToString(getCategory().get(i))))); - } - } - - // add `name` to the URL query string - if (getName() != null) { - for (int i = 0; i < getName().size(); i++) { - joiner.add( - String.format( - "%sname%s%s=%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode(ApiClient.valueToString(getName().get(i))))); - } - } - - // add `categoryId` to the URL query string - if (getCategoryId() != null) { - for (int i = 0; i < getCategoryId().size(); i++) { - joiner.add( - String.format( - "%scategoryId%s%s=%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode( - ApiClient.valueToString(getCategoryId().get(i))))); - } - } - - // add `status` to the URL query string - if (getStatus() != null) { - joiner.add( - String.format( - "%sstatus%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getStatus())))); - } - - // add `sourceAddress` to the URL query string - if (getSourceAddress() != null) { - joiner.add( - String.format( - "%ssourceAddress%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getSourceAddress())))); - } - - // add `destAddress` to the URL query string - if (getDestAddress() != null) { - joiner.add( - String.format( - "%sdestAddress%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getDestAddress())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/ScreeningOperationExecutionOutput.java b/src/main/java/com/fireblocks/sdk/model/ScreeningOperationExecutionOutput.java index 90e358f0..4353224d 100644 --- a/src/main/java/com/fireblocks/sdk/model/ScreeningOperationExecutionOutput.java +++ b/src/main/java/com/fireblocks/sdk/model/ScreeningOperationExecutionOutput.java @@ -29,7 +29,7 @@ comments = "Generator version: 7.14.0") public class ScreeningOperationExecutionOutput { public static final String JSON_PROPERTY_VERDICTS = "verdicts"; - @jakarta.annotation.Nonnull private List verdicts = new ArrayList<>(); + @jakarta.annotation.Nonnull private List verdicts; public ScreeningOperationExecutionOutput() {} diff --git a/src/main/java/com/fireblocks/sdk/model/ScreeningUpdateConfigurations.java b/src/main/java/com/fireblocks/sdk/model/ScreeningUpdateConfigurationsRequest.java similarity index 86% rename from src/main/java/com/fireblocks/sdk/model/ScreeningUpdateConfigurations.java rename to src/main/java/com/fireblocks/sdk/model/ScreeningUpdateConfigurationsRequest.java index 9380472a..b7acc452 100644 --- a/src/main/java/com/fireblocks/sdk/model/ScreeningUpdateConfigurations.java +++ b/src/main/java/com/fireblocks/sdk/model/ScreeningUpdateConfigurationsRequest.java @@ -20,24 +20,24 @@ import java.util.Objects; import java.util.StringJoiner; -/** ScreeningUpdateConfigurations */ +/** ScreeningUpdateConfigurationsRequest */ @JsonPropertyOrder({ - ScreeningUpdateConfigurations.JSON_PROPERTY_DISABLE_BYPASS, - ScreeningUpdateConfigurations.JSON_PROPERTY_DISABLE_UNFREEZE + ScreeningUpdateConfigurationsRequest.JSON_PROPERTY_DISABLE_BYPASS, + ScreeningUpdateConfigurationsRequest.JSON_PROPERTY_DISABLE_UNFREEZE }) @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") -public class ScreeningUpdateConfigurations { +public class ScreeningUpdateConfigurationsRequest { public static final String JSON_PROPERTY_DISABLE_BYPASS = "disableBypass"; @jakarta.annotation.Nullable private Boolean disableBypass; public static final String JSON_PROPERTY_DISABLE_UNFREEZE = "disableUnfreeze"; @jakarta.annotation.Nullable private Boolean disableUnfreeze; - public ScreeningUpdateConfigurations() {} + public ScreeningUpdateConfigurationsRequest() {} - public ScreeningUpdateConfigurations disableBypass( + public ScreeningUpdateConfigurationsRequest disableBypass( @jakarta.annotation.Nullable Boolean disableBypass) { this.disableBypass = disableBypass; return this; @@ -61,7 +61,7 @@ public void setDisableBypass(@jakarta.annotation.Nullable Boolean disableBypass) this.disableBypass = disableBypass; } - public ScreeningUpdateConfigurations disableUnfreeze( + public ScreeningUpdateConfigurationsRequest disableUnfreeze( @jakarta.annotation.Nullable Boolean disableUnfreeze) { this.disableUnfreeze = disableUnfreeze; return this; @@ -86,7 +86,7 @@ public void setDisableUnfreeze(@jakarta.annotation.Nullable Boolean disableUnfre this.disableUnfreeze = disableUnfreeze; } - /** Return true if this ScreeningUpdateConfigurations object is equal to o. */ + /** Return true if this ScreeningUpdateConfigurationsRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -95,11 +95,12 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ScreeningUpdateConfigurations screeningUpdateConfigurations = - (ScreeningUpdateConfigurations) o; - return Objects.equals(this.disableBypass, screeningUpdateConfigurations.disableBypass) + ScreeningUpdateConfigurationsRequest screeningUpdateConfigurationsRequest = + (ScreeningUpdateConfigurationsRequest) o; + return Objects.equals( + this.disableBypass, screeningUpdateConfigurationsRequest.disableBypass) && Objects.equals( - this.disableUnfreeze, screeningUpdateConfigurations.disableUnfreeze); + this.disableUnfreeze, screeningUpdateConfigurationsRequest.disableUnfreeze); } @Override @@ -110,7 +111,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class ScreeningUpdateConfigurations {\n"); + sb.append("class ScreeningUpdateConfigurationsRequest {\n"); sb.append(" disableBypass: ").append(toIndentedString(disableBypass)).append("\n"); sb.append(" disableUnfreeze: ").append(toIndentedString(disableUnfreeze)).append("\n"); sb.append("}"); diff --git a/src/main/java/com/fireblocks/sdk/model/ScreeningValidationFailure.java b/src/main/java/com/fireblocks/sdk/model/ScreeningValidationFailure.java index 4c69d336..685bc295 100644 --- a/src/main/java/com/fireblocks/sdk/model/ScreeningValidationFailure.java +++ b/src/main/java/com/fireblocks/sdk/model/ScreeningValidationFailure.java @@ -68,7 +68,7 @@ public static ReasonEnum fromValue(String value) { @jakarta.annotation.Nonnull private ReasonEnum reason; public static final String JSON_PROPERTY_DATA = "data"; - @jakarta.annotation.Nullable private Map data = new HashMap<>(); + @jakarta.annotation.Nullable private Map data; public ScreeningValidationFailure() {} diff --git a/src/main/java/com/fireblocks/sdk/model/ScreeningVerdictMatchedRule.java b/src/main/java/com/fireblocks/sdk/model/ScreeningVerdictMatchedRule.java index 99ea8dc6..97687828 100644 --- a/src/main/java/com/fireblocks/sdk/model/ScreeningVerdictMatchedRule.java +++ b/src/main/java/com/fireblocks/sdk/model/ScreeningVerdictMatchedRule.java @@ -35,7 +35,7 @@ public class ScreeningVerdictMatchedRule { @jakarta.annotation.Nullable private String action; public static final String JSON_PROPERTY_CATEGORY = "category"; - @jakarta.annotation.Nullable private List category = new ArrayList<>(); + @jakarta.annotation.Nullable private List category; public ScreeningVerdictMatchedRule() {} diff --git a/src/main/java/com/fireblocks/sdk/model/SearchNetworkIdsResponse.java b/src/main/java/com/fireblocks/sdk/model/SearchNetworkIdsResponse.java deleted file mode 100644 index c95444ee..00000000 --- a/src/main/java/com/fireblocks/sdk/model/SearchNetworkIdsResponse.java +++ /dev/null @@ -1,204 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** SearchNetworkIdsResponse */ -@JsonPropertyOrder({ - SearchNetworkIdsResponse.JSON_PROPERTY_DATA, - SearchNetworkIdsResponse.JSON_PROPERTY_NEXT -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class SearchNetworkIdsResponse { - public static final String JSON_PROPERTY_DATA = "data"; - @jakarta.annotation.Nullable private List data = new ArrayList<>(); - - public static final String JSON_PROPERTY_NEXT = "next"; - @jakarta.annotation.Nullable private String next; - - public SearchNetworkIdsResponse() {} - - public SearchNetworkIdsResponse data( - @jakarta.annotation.Nullable List data) { - this.data = data; - return this; - } - - public SearchNetworkIdsResponse addDataItem(NetworkIdResponse dataItem) { - if (this.data == null) { - this.data = new ArrayList<>(); - } - this.data.add(dataItem); - return this; - } - - /** - * Get data - * - * @return data - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getData() { - return data; - } - - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setData(@jakarta.annotation.Nullable List data) { - this.data = data; - } - - public SearchNetworkIdsResponse next(@jakarta.annotation.Nullable String next) { - this.next = next; - return this; - } - - /** - * Get next - * - * @return next - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NEXT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getNext() { - return next; - } - - @JsonProperty(JSON_PROPERTY_NEXT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNext(@jakarta.annotation.Nullable String next) { - this.next = next; - } - - /** Return true if this SearchNetworkIdsResponse object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SearchNetworkIdsResponse searchNetworkIdsResponse = (SearchNetworkIdsResponse) o; - return Objects.equals(this.data, searchNetworkIdsResponse.data) - && Objects.equals(this.next, searchNetworkIdsResponse.next); - } - - @Override - public int hashCode() { - return Objects.hash(data, next); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SearchNetworkIdsResponse {\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" next: ").append(toIndentedString(next)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `data` to the URL query string - if (getData() != null) { - for (int i = 0; i < getData().size(); i++) { - if (getData().get(i) != null) { - joiner.add( - getData() - .get(i) - .toUrlQueryString( - String.format( - "%sdata%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } - } - - // add `next` to the URL query string - if (getNext() != null) { - joiner.add( - String.format( - "%snext%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getNext())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/SepaPaymentInfo.java b/src/main/java/com/fireblocks/sdk/model/SepaPaymentInfo.java deleted file mode 100644 index 81f9b4f7..00000000 --- a/src/main/java/com/fireblocks/sdk/model/SepaPaymentInfo.java +++ /dev/null @@ -1,765 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** SEPA payment information for European Single Euro Payments Area transfers */ -@JsonPropertyOrder({ - SepaPaymentInfo.JSON_PROPERTY_RAIL, - SepaPaymentInfo.JSON_PROPERTY_ADDRESSING_SYSTEM, - SepaPaymentInfo.JSON_PROPERTY_ACCOUNT_HOLDER_GIVEN_NAME, - SepaPaymentInfo.JSON_PROPERTY_ACCOUNT_HOLDER_SURNAME, - SepaPaymentInfo.JSON_PROPERTY_ACCOUNT_HOLDER_COUNTRY, - SepaPaymentInfo.JSON_PROPERTY_ACCOUNT_HOLDER_ADDRESS, - SepaPaymentInfo.JSON_PROPERTY_IBAN, - SepaPaymentInfo.JSON_PROPERTY_COUNTRY, - SepaPaymentInfo.JSON_PROPERTY_BIC, - SepaPaymentInfo.JSON_PROPERTY_BANK_NAME, - SepaPaymentInfo.JSON_PROPERTY_BANK_BRANCH, - SepaPaymentInfo.JSON_PROPERTY_BANK_ADDRESS, - SepaPaymentInfo.JSON_PROPERTY_PURPOSE_CODE, - SepaPaymentInfo.JSON_PROPERTY_TAX_ID -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class SepaPaymentInfo { - /** The payment rail type for SEPA transfers */ - public enum RailEnum { - SEPA(String.valueOf("SEPA")); - - private String value; - - RailEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static RailEnum fromValue(String value) { - for (RailEnum b : RailEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_RAIL = "rail"; - @jakarta.annotation.Nonnull private RailEnum rail; - - /** The addressing system used for SEPA transfers */ - public enum AddressingSystemEnum { - IBAN(String.valueOf("IBAN")); - - private String value; - - AddressingSystemEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static AddressingSystemEnum fromValue(String value) { - for (AddressingSystemEnum b : AddressingSystemEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_ADDRESSING_SYSTEM = "addressingSystem"; - @jakarta.annotation.Nonnull private AddressingSystemEnum addressingSystem; - - public static final String JSON_PROPERTY_ACCOUNT_HOLDER_GIVEN_NAME = "accountHolderGivenName"; - @jakarta.annotation.Nonnull private String accountHolderGivenName; - - public static final String JSON_PROPERTY_ACCOUNT_HOLDER_SURNAME = "accountHolderSurname"; - @jakarta.annotation.Nonnull private String accountHolderSurname; - - public static final String JSON_PROPERTY_ACCOUNT_HOLDER_COUNTRY = "accountHolderCountry"; - @jakarta.annotation.Nullable private String accountHolderCountry; - - public static final String JSON_PROPERTY_ACCOUNT_HOLDER_ADDRESS = "accountHolderAddress"; - @jakarta.annotation.Nullable private String accountHolderAddress; - - public static final String JSON_PROPERTY_IBAN = "iban"; - @jakarta.annotation.Nonnull private String iban; - - public static final String JSON_PROPERTY_COUNTRY = "country"; - @jakarta.annotation.Nonnull private String country; - - public static final String JSON_PROPERTY_BIC = "bic"; - @jakarta.annotation.Nullable private String bic; - - public static final String JSON_PROPERTY_BANK_NAME = "bankName"; - @jakarta.annotation.Nullable private String bankName; - - public static final String JSON_PROPERTY_BANK_BRANCH = "bankBranch"; - @jakarta.annotation.Nullable private String bankBranch; - - public static final String JSON_PROPERTY_BANK_ADDRESS = "bankAddress"; - @jakarta.annotation.Nullable private String bankAddress; - - public static final String JSON_PROPERTY_PURPOSE_CODE = "purposeCode"; - @jakarta.annotation.Nullable private String purposeCode; - - public static final String JSON_PROPERTY_TAX_ID = "taxId"; - @jakarta.annotation.Nullable private String taxId; - - public SepaPaymentInfo() {} - - @JsonCreator - public SepaPaymentInfo( - @JsonProperty(value = JSON_PROPERTY_RAIL, required = true) RailEnum rail, - @JsonProperty(value = JSON_PROPERTY_ADDRESSING_SYSTEM, required = true) - AddressingSystemEnum addressingSystem, - @JsonProperty(value = JSON_PROPERTY_ACCOUNT_HOLDER_GIVEN_NAME, required = true) - String accountHolderGivenName, - @JsonProperty(value = JSON_PROPERTY_ACCOUNT_HOLDER_SURNAME, required = true) - String accountHolderSurname, - @JsonProperty(value = JSON_PROPERTY_IBAN, required = true) String iban, - @JsonProperty(value = JSON_PROPERTY_COUNTRY, required = true) String country) { - this.rail = rail; - this.addressingSystem = addressingSystem; - this.accountHolderGivenName = accountHolderGivenName; - this.accountHolderSurname = accountHolderSurname; - this.iban = iban; - this.country = country; - } - - public SepaPaymentInfo rail(@jakarta.annotation.Nonnull RailEnum rail) { - this.rail = rail; - return this; - } - - /** - * The payment rail type for SEPA transfers - * - * @return rail - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_RAIL) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public RailEnum getRail() { - return rail; - } - - @JsonProperty(JSON_PROPERTY_RAIL) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setRail(@jakarta.annotation.Nonnull RailEnum rail) { - this.rail = rail; - } - - public SepaPaymentInfo addressingSystem( - @jakarta.annotation.Nonnull AddressingSystemEnum addressingSystem) { - this.addressingSystem = addressingSystem; - return this; - } - - /** - * The addressing system used for SEPA transfers - * - * @return addressingSystem - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ADDRESSING_SYSTEM) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AddressingSystemEnum getAddressingSystem() { - return addressingSystem; - } - - @JsonProperty(JSON_PROPERTY_ADDRESSING_SYSTEM) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAddressingSystem( - @jakarta.annotation.Nonnull AddressingSystemEnum addressingSystem) { - this.addressingSystem = addressingSystem; - } - - public SepaPaymentInfo accountHolderGivenName( - @jakarta.annotation.Nonnull String accountHolderGivenName) { - this.accountHolderGivenName = accountHolderGivenName; - return this; - } - - /** - * The given name (first name) of the account holder - * - * @return accountHolderGivenName - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_GIVEN_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getAccountHolderGivenName() { - return accountHolderGivenName; - } - - @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_GIVEN_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAccountHolderGivenName( - @jakarta.annotation.Nonnull String accountHolderGivenName) { - this.accountHolderGivenName = accountHolderGivenName; - } - - public SepaPaymentInfo accountHolderSurname( - @jakarta.annotation.Nonnull String accountHolderSurname) { - this.accountHolderSurname = accountHolderSurname; - return this; - } - - /** - * The surname (last name) of the account holder - * - * @return accountHolderSurname - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_SURNAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getAccountHolderSurname() { - return accountHolderSurname; - } - - @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_SURNAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAccountHolderSurname(@jakarta.annotation.Nonnull String accountHolderSurname) { - this.accountHolderSurname = accountHolderSurname; - } - - public SepaPaymentInfo accountHolderCountry( - @jakarta.annotation.Nullable String accountHolderCountry) { - this.accountHolderCountry = accountHolderCountry; - return this; - } - - /** - * The country where the account holder resides (ISO 3166-1 alpha-2 code) - * - * @return accountHolderCountry - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_COUNTRY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getAccountHolderCountry() { - return accountHolderCountry; - } - - @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_COUNTRY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAccountHolderCountry(@jakarta.annotation.Nullable String accountHolderCountry) { - this.accountHolderCountry = accountHolderCountry; - } - - public SepaPaymentInfo accountHolderAddress( - @jakarta.annotation.Nullable String accountHolderAddress) { - this.accountHolderAddress = accountHolderAddress; - return this; - } - - /** - * The address of the account holder - * - * @return accountHolderAddress - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_ADDRESS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getAccountHolderAddress() { - return accountHolderAddress; - } - - @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_ADDRESS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAccountHolderAddress(@jakarta.annotation.Nullable String accountHolderAddress) { - this.accountHolderAddress = accountHolderAddress; - } - - public SepaPaymentInfo iban(@jakarta.annotation.Nonnull String iban) { - this.iban = iban; - return this; - } - - /** - * The International Bank Account Number (IBAN) - * - * @return iban - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_IBAN) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getIban() { - return iban; - } - - @JsonProperty(JSON_PROPERTY_IBAN) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setIban(@jakarta.annotation.Nonnull String iban) { - this.iban = iban; - } - - public SepaPaymentInfo country(@jakarta.annotation.Nonnull String country) { - this.country = country; - return this; - } - - /** - * The country for the transfer (ISO 3166-1 alpha-2 code) - * - * @return country - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_COUNTRY) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getCountry() { - return country; - } - - @JsonProperty(JSON_PROPERTY_COUNTRY) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCountry(@jakarta.annotation.Nonnull String country) { - this.country = country; - } - - public SepaPaymentInfo bic(@jakarta.annotation.Nullable String bic) { - this.bic = bic; - return this; - } - - /** - * The Bank Identifier Code (BIC/SWIFT code) - * - * @return bic - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BIC) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getBic() { - return bic; - } - - @JsonProperty(JSON_PROPERTY_BIC) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBic(@jakarta.annotation.Nullable String bic) { - this.bic = bic; - } - - public SepaPaymentInfo bankName(@jakarta.annotation.Nullable String bankName) { - this.bankName = bankName; - return this; - } - - /** - * The name of the bank - * - * @return bankName - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BANK_NAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getBankName() { - return bankName; - } - - @JsonProperty(JSON_PROPERTY_BANK_NAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBankName(@jakarta.annotation.Nullable String bankName) { - this.bankName = bankName; - } - - public SepaPaymentInfo bankBranch(@jakarta.annotation.Nullable String bankBranch) { - this.bankBranch = bankBranch; - return this; - } - - /** - * The bank branch information - * - * @return bankBranch - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BANK_BRANCH) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getBankBranch() { - return bankBranch; - } - - @JsonProperty(JSON_PROPERTY_BANK_BRANCH) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBankBranch(@jakarta.annotation.Nullable String bankBranch) { - this.bankBranch = bankBranch; - } - - public SepaPaymentInfo bankAddress(@jakarta.annotation.Nullable String bankAddress) { - this.bankAddress = bankAddress; - return this; - } - - /** - * The address of the bank - * - * @return bankAddress - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BANK_ADDRESS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getBankAddress() { - return bankAddress; - } - - @JsonProperty(JSON_PROPERTY_BANK_ADDRESS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBankAddress(@jakarta.annotation.Nullable String bankAddress) { - this.bankAddress = bankAddress; - } - - public SepaPaymentInfo purposeCode(@jakarta.annotation.Nullable String purposeCode) { - this.purposeCode = purposeCode; - return this; - } - - /** - * The purpose code for the transfer - * - * @return purposeCode - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PURPOSE_CODE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getPurposeCode() { - return purposeCode; - } - - @JsonProperty(JSON_PROPERTY_PURPOSE_CODE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPurposeCode(@jakarta.annotation.Nullable String purposeCode) { - this.purposeCode = purposeCode; - } - - public SepaPaymentInfo taxId(@jakarta.annotation.Nullable String taxId) { - this.taxId = taxId; - return this; - } - - /** - * The tax identification number - * - * @return taxId - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TAX_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getTaxId() { - return taxId; - } - - @JsonProperty(JSON_PROPERTY_TAX_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTaxId(@jakarta.annotation.Nullable String taxId) { - this.taxId = taxId; - } - - /** Return true if this SepaPaymentInfo object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SepaPaymentInfo sepaPaymentInfo = (SepaPaymentInfo) o; - return Objects.equals(this.rail, sepaPaymentInfo.rail) - && Objects.equals(this.addressingSystem, sepaPaymentInfo.addressingSystem) - && Objects.equals( - this.accountHolderGivenName, sepaPaymentInfo.accountHolderGivenName) - && Objects.equals(this.accountHolderSurname, sepaPaymentInfo.accountHolderSurname) - && Objects.equals(this.accountHolderCountry, sepaPaymentInfo.accountHolderCountry) - && Objects.equals(this.accountHolderAddress, sepaPaymentInfo.accountHolderAddress) - && Objects.equals(this.iban, sepaPaymentInfo.iban) - && Objects.equals(this.country, sepaPaymentInfo.country) - && Objects.equals(this.bic, sepaPaymentInfo.bic) - && Objects.equals(this.bankName, sepaPaymentInfo.bankName) - && Objects.equals(this.bankBranch, sepaPaymentInfo.bankBranch) - && Objects.equals(this.bankAddress, sepaPaymentInfo.bankAddress) - && Objects.equals(this.purposeCode, sepaPaymentInfo.purposeCode) - && Objects.equals(this.taxId, sepaPaymentInfo.taxId); - } - - @Override - public int hashCode() { - return Objects.hash( - rail, - addressingSystem, - accountHolderGivenName, - accountHolderSurname, - accountHolderCountry, - accountHolderAddress, - iban, - country, - bic, - bankName, - bankBranch, - bankAddress, - purposeCode, - taxId); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SepaPaymentInfo {\n"); - sb.append(" rail: ").append(toIndentedString(rail)).append("\n"); - sb.append(" addressingSystem: ").append(toIndentedString(addressingSystem)).append("\n"); - sb.append(" accountHolderGivenName: ") - .append(toIndentedString(accountHolderGivenName)) - .append("\n"); - sb.append(" accountHolderSurname: ") - .append(toIndentedString(accountHolderSurname)) - .append("\n"); - sb.append(" accountHolderCountry: ") - .append(toIndentedString(accountHolderCountry)) - .append("\n"); - sb.append(" accountHolderAddress: ") - .append(toIndentedString(accountHolderAddress)) - .append("\n"); - sb.append(" iban: ").append(toIndentedString(iban)).append("\n"); - sb.append(" country: ").append(toIndentedString(country)).append("\n"); - sb.append(" bic: ").append(toIndentedString(bic)).append("\n"); - sb.append(" bankName: ").append(toIndentedString(bankName)).append("\n"); - sb.append(" bankBranch: ").append(toIndentedString(bankBranch)).append("\n"); - sb.append(" bankAddress: ").append(toIndentedString(bankAddress)).append("\n"); - sb.append(" purposeCode: ").append(toIndentedString(purposeCode)).append("\n"); - sb.append(" taxId: ").append(toIndentedString(taxId)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `rail` to the URL query string - if (getRail() != null) { - joiner.add( - String.format( - "%srail%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getRail())))); - } - - // add `addressingSystem` to the URL query string - if (getAddressingSystem() != null) { - joiner.add( - String.format( - "%saddressingSystem%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAddressingSystem())))); - } - - // add `accountHolderGivenName` to the URL query string - if (getAccountHolderGivenName() != null) { - joiner.add( - String.format( - "%saccountHolderGivenName%s=%s", - prefix, - suffix, - ApiClient.urlEncode( - ApiClient.valueToString(getAccountHolderGivenName())))); - } - - // add `accountHolderSurname` to the URL query string - if (getAccountHolderSurname() != null) { - joiner.add( - String.format( - "%saccountHolderSurname%s=%s", - prefix, - suffix, - ApiClient.urlEncode( - ApiClient.valueToString(getAccountHolderSurname())))); - } - - // add `accountHolderCountry` to the URL query string - if (getAccountHolderCountry() != null) { - joiner.add( - String.format( - "%saccountHolderCountry%s=%s", - prefix, - suffix, - ApiClient.urlEncode( - ApiClient.valueToString(getAccountHolderCountry())))); - } - - // add `accountHolderAddress` to the URL query string - if (getAccountHolderAddress() != null) { - joiner.add( - String.format( - "%saccountHolderAddress%s=%s", - prefix, - suffix, - ApiClient.urlEncode( - ApiClient.valueToString(getAccountHolderAddress())))); - } - - // add `iban` to the URL query string - if (getIban() != null) { - joiner.add( - String.format( - "%siban%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getIban())))); - } - - // add `country` to the URL query string - if (getCountry() != null) { - joiner.add( - String.format( - "%scountry%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getCountry())))); - } - - // add `bic` to the URL query string - if (getBic() != null) { - joiner.add( - String.format( - "%sbic%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBic())))); - } - - // add `bankName` to the URL query string - if (getBankName() != null) { - joiner.add( - String.format( - "%sbankName%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBankName())))); - } - - // add `bankBranch` to the URL query string - if (getBankBranch() != null) { - joiner.add( - String.format( - "%sbankBranch%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBankBranch())))); - } - - // add `bankAddress` to the URL query string - if (getBankAddress() != null) { - joiner.add( - String.format( - "%sbankAddress%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBankAddress())))); - } - - // add `purposeCode` to the URL query string - if (getPurposeCode() != null) { - joiner.add( - String.format( - "%spurposeCode%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getPurposeCode())))); - } - - // add `taxId` to the URL query string - if (getTaxId() != null) { - joiner.add( - String.format( - "%staxId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getTaxId())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/SessionDTO.java b/src/main/java/com/fireblocks/sdk/model/SessionDTO.java index 2c9317de..127a6c46 100644 --- a/src/main/java/com/fireblocks/sdk/model/SessionDTO.java +++ b/src/main/java/com/fireblocks/sdk/model/SessionDTO.java @@ -91,7 +91,7 @@ public static FeeLevelEnum fromValue(String value) { @jakarta.annotation.Nonnull private FeeLevelEnum feeLevel; public static final String JSON_PROPERTY_CHAIN_IDS = "chainIds"; - @jakarta.annotation.Nonnull private List chainIds = new ArrayList<>(); + @jakarta.annotation.Nonnull private List chainIds; /** The connection's type */ public enum ConnectionTypeEnum { diff --git a/src/main/java/com/fireblocks/sdk/model/SetAssetPriceRequest.java b/src/main/java/com/fireblocks/sdk/model/SetAssetPriceRequest.java deleted file mode 100644 index 32b38835..00000000 --- a/src/main/java/com/fireblocks/sdk/model/SetAssetPriceRequest.java +++ /dev/null @@ -1,190 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.math.BigDecimal; -import java.util.Objects; -import java.util.StringJoiner; - -/** SetAssetPriceRequest */ -@JsonPropertyOrder({ - SetAssetPriceRequest.JSON_PROPERTY_CURRENCY, - SetAssetPriceRequest.JSON_PROPERTY_PRICE -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class SetAssetPriceRequest { - public static final String JSON_PROPERTY_CURRENCY = "currency"; - @jakarta.annotation.Nonnull private String currency; - - public static final String JSON_PROPERTY_PRICE = "price"; - @jakarta.annotation.Nonnull private BigDecimal price; - - public SetAssetPriceRequest() {} - - @JsonCreator - public SetAssetPriceRequest( - @JsonProperty(value = JSON_PROPERTY_CURRENCY, required = true) String currency, - @JsonProperty(value = JSON_PROPERTY_PRICE, required = true) BigDecimal price) { - this.currency = currency; - this.price = price; - } - - public SetAssetPriceRequest currency(@jakarta.annotation.Nonnull String currency) { - this.currency = currency; - return this; - } - - /** - * Currency (according to ISO 4217 currency codes) - * - * @return currency - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CURRENCY) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getCurrency() { - return currency; - } - - @JsonProperty(JSON_PROPERTY_CURRENCY) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCurrency(@jakarta.annotation.Nonnull String currency) { - this.currency = currency; - } - - public SetAssetPriceRequest price(@jakarta.annotation.Nonnull BigDecimal price) { - this.price = price; - return this; - } - - /** - * Price in currency - * - * @return price - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PRICE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public BigDecimal getPrice() { - return price; - } - - @JsonProperty(JSON_PROPERTY_PRICE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPrice(@jakarta.annotation.Nonnull BigDecimal price) { - this.price = price; - } - - /** Return true if this SetAssetPriceRequest object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SetAssetPriceRequest setAssetPriceRequest = (SetAssetPriceRequest) o; - return Objects.equals(this.currency, setAssetPriceRequest.currency) - && Objects.equals(this.price, setAssetPriceRequest.price); - } - - @Override - public int hashCode() { - return Objects.hash(currency, price); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SetAssetPriceRequest {\n"); - sb.append(" currency: ").append(toIndentedString(currency)).append("\n"); - sb.append(" price: ").append(toIndentedString(price)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `currency` to the URL query string - if (getCurrency() != null) { - joiner.add( - String.format( - "%scurrency%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getCurrency())))); - } - - // add `price` to the URL query string - if (getPrice() != null) { - joiner.add( - String.format( - "%sprice%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getPrice())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/SetConfirmationsThresholdResponse.java b/src/main/java/com/fireblocks/sdk/model/SetConfirmationsThresholdResponse.java index f6df0cd8..99d85a10 100644 --- a/src/main/java/com/fireblocks/sdk/model/SetConfirmationsThresholdResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/SetConfirmationsThresholdResponse.java @@ -35,7 +35,7 @@ public class SetConfirmationsThresholdResponse { @jakarta.annotation.Nullable private Boolean success; public static final String JSON_PROPERTY_TRANSACTIONS = "transactions"; - @jakarta.annotation.Nullable private List transactions = new ArrayList<>(); + @jakarta.annotation.Nullable private List transactions; public SetConfirmationsThresholdResponse() {} diff --git a/src/main/java/com/fireblocks/sdk/model/SetLayerZeroDvnConfigRequest.java b/src/main/java/com/fireblocks/sdk/model/SetLayerZeroDvnConfigRequest.java deleted file mode 100644 index 11b812e9..00000000 --- a/src/main/java/com/fireblocks/sdk/model/SetLayerZeroDvnConfigRequest.java +++ /dev/null @@ -1,331 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** SetLayerZeroDvnConfigRequest */ -@JsonPropertyOrder({ - SetLayerZeroDvnConfigRequest.JSON_PROPERTY_VAULT_ACCOUNT_ID, - SetLayerZeroDvnConfigRequest.JSON_PROPERTY_SOURCE_ADAPTER_TOKEN_LINK_ID, - SetLayerZeroDvnConfigRequest.JSON_PROPERTY_DESTINATION_ADAPTER_TOKEN_LINK_ID, - SetLayerZeroDvnConfigRequest.JSON_PROPERTY_SEND_CONFIG, - SetLayerZeroDvnConfigRequest.JSON_PROPERTY_RECEIVE_CONFIG -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class SetLayerZeroDvnConfigRequest { - public static final String JSON_PROPERTY_VAULT_ACCOUNT_ID = "vaultAccountId"; - @jakarta.annotation.Nonnull private String vaultAccountId; - - public static final String JSON_PROPERTY_SOURCE_ADAPTER_TOKEN_LINK_ID = - "sourceAdapterTokenLinkId"; - @jakarta.annotation.Nonnull private String sourceAdapterTokenLinkId; - - public static final String JSON_PROPERTY_DESTINATION_ADAPTER_TOKEN_LINK_ID = - "destinationAdapterTokenLinkId"; - @jakarta.annotation.Nonnull private String destinationAdapterTokenLinkId; - - public static final String JSON_PROPERTY_SEND_CONFIG = "sendConfig"; - @jakarta.annotation.Nonnull private DvnConfig sendConfig; - - public static final String JSON_PROPERTY_RECEIVE_CONFIG = "receiveConfig"; - @jakarta.annotation.Nonnull private DvnConfig receiveConfig; - - public SetLayerZeroDvnConfigRequest() {} - - @JsonCreator - public SetLayerZeroDvnConfigRequest( - @JsonProperty(value = JSON_PROPERTY_VAULT_ACCOUNT_ID, required = true) - String vaultAccountId, - @JsonProperty(value = JSON_PROPERTY_SOURCE_ADAPTER_TOKEN_LINK_ID, required = true) - String sourceAdapterTokenLinkId, - @JsonProperty(value = JSON_PROPERTY_DESTINATION_ADAPTER_TOKEN_LINK_ID, required = true) - String destinationAdapterTokenLinkId, - @JsonProperty(value = JSON_PROPERTY_SEND_CONFIG, required = true) DvnConfig sendConfig, - @JsonProperty(value = JSON_PROPERTY_RECEIVE_CONFIG, required = true) - DvnConfig receiveConfig) { - this.vaultAccountId = vaultAccountId; - this.sourceAdapterTokenLinkId = sourceAdapterTokenLinkId; - this.destinationAdapterTokenLinkId = destinationAdapterTokenLinkId; - this.sendConfig = sendConfig; - this.receiveConfig = receiveConfig; - } - - public SetLayerZeroDvnConfigRequest vaultAccountId( - @jakarta.annotation.Nonnull String vaultAccountId) { - this.vaultAccountId = vaultAccountId; - return this; - } - - /** - * Vault account that pays gas - * - * @return vaultAccountId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_VAULT_ACCOUNT_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getVaultAccountId() { - return vaultAccountId; - } - - @JsonProperty(JSON_PROPERTY_VAULT_ACCOUNT_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setVaultAccountId(@jakarta.annotation.Nonnull String vaultAccountId) { - this.vaultAccountId = vaultAccountId; - } - - public SetLayerZeroDvnConfigRequest sourceAdapterTokenLinkId( - @jakarta.annotation.Nonnull String sourceAdapterTokenLinkId) { - this.sourceAdapterTokenLinkId = sourceAdapterTokenLinkId; - return this; - } - - /** - * Source adapter TokenLink ID - * - * @return sourceAdapterTokenLinkId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SOURCE_ADAPTER_TOKEN_LINK_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getSourceAdapterTokenLinkId() { - return sourceAdapterTokenLinkId; - } - - @JsonProperty(JSON_PROPERTY_SOURCE_ADAPTER_TOKEN_LINK_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSourceAdapterTokenLinkId( - @jakarta.annotation.Nonnull String sourceAdapterTokenLinkId) { - this.sourceAdapterTokenLinkId = sourceAdapterTokenLinkId; - } - - public SetLayerZeroDvnConfigRequest destinationAdapterTokenLinkId( - @jakarta.annotation.Nonnull String destinationAdapterTokenLinkId) { - this.destinationAdapterTokenLinkId = destinationAdapterTokenLinkId; - return this; - } - - /** - * Destination adapter TokenLink ID - * - * @return destinationAdapterTokenLinkId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DESTINATION_ADAPTER_TOKEN_LINK_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getDestinationAdapterTokenLinkId() { - return destinationAdapterTokenLinkId; - } - - @JsonProperty(JSON_PROPERTY_DESTINATION_ADAPTER_TOKEN_LINK_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDestinationAdapterTokenLinkId( - @jakarta.annotation.Nonnull String destinationAdapterTokenLinkId) { - this.destinationAdapterTokenLinkId = destinationAdapterTokenLinkId; - } - - public SetLayerZeroDvnConfigRequest sendConfig( - @jakarta.annotation.Nonnull DvnConfig sendConfig) { - this.sendConfig = sendConfig; - return this; - } - - /** - * Get sendConfig - * - * @return sendConfig - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SEND_CONFIG) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public DvnConfig getSendConfig() { - return sendConfig; - } - - @JsonProperty(JSON_PROPERTY_SEND_CONFIG) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSendConfig(@jakarta.annotation.Nonnull DvnConfig sendConfig) { - this.sendConfig = sendConfig; - } - - public SetLayerZeroDvnConfigRequest receiveConfig( - @jakarta.annotation.Nonnull DvnConfig receiveConfig) { - this.receiveConfig = receiveConfig; - return this; - } - - /** - * Get receiveConfig - * - * @return receiveConfig - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_RECEIVE_CONFIG) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public DvnConfig getReceiveConfig() { - return receiveConfig; - } - - @JsonProperty(JSON_PROPERTY_RECEIVE_CONFIG) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setReceiveConfig(@jakarta.annotation.Nonnull DvnConfig receiveConfig) { - this.receiveConfig = receiveConfig; - } - - /** Return true if this SetLayerZeroDvnConfigRequest object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SetLayerZeroDvnConfigRequest setLayerZeroDvnConfigRequest = - (SetLayerZeroDvnConfigRequest) o; - return Objects.equals(this.vaultAccountId, setLayerZeroDvnConfigRequest.vaultAccountId) - && Objects.equals( - this.sourceAdapterTokenLinkId, - setLayerZeroDvnConfigRequest.sourceAdapterTokenLinkId) - && Objects.equals( - this.destinationAdapterTokenLinkId, - setLayerZeroDvnConfigRequest.destinationAdapterTokenLinkId) - && Objects.equals(this.sendConfig, setLayerZeroDvnConfigRequest.sendConfig) - && Objects.equals(this.receiveConfig, setLayerZeroDvnConfigRequest.receiveConfig); - } - - @Override - public int hashCode() { - return Objects.hash( - vaultAccountId, - sourceAdapterTokenLinkId, - destinationAdapterTokenLinkId, - sendConfig, - receiveConfig); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SetLayerZeroDvnConfigRequest {\n"); - sb.append(" vaultAccountId: ").append(toIndentedString(vaultAccountId)).append("\n"); - sb.append(" sourceAdapterTokenLinkId: ") - .append(toIndentedString(sourceAdapterTokenLinkId)) - .append("\n"); - sb.append(" destinationAdapterTokenLinkId: ") - .append(toIndentedString(destinationAdapterTokenLinkId)) - .append("\n"); - sb.append(" sendConfig: ").append(toIndentedString(sendConfig)).append("\n"); - sb.append(" receiveConfig: ").append(toIndentedString(receiveConfig)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `vaultAccountId` to the URL query string - if (getVaultAccountId() != null) { - joiner.add( - String.format( - "%svaultAccountId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getVaultAccountId())))); - } - - // add `sourceAdapterTokenLinkId` to the URL query string - if (getSourceAdapterTokenLinkId() != null) { - joiner.add( - String.format( - "%ssourceAdapterTokenLinkId%s=%s", - prefix, - suffix, - ApiClient.urlEncode( - ApiClient.valueToString(getSourceAdapterTokenLinkId())))); - } - - // add `destinationAdapterTokenLinkId` to the URL query string - if (getDestinationAdapterTokenLinkId() != null) { - joiner.add( - String.format( - "%sdestinationAdapterTokenLinkId%s=%s", - prefix, - suffix, - ApiClient.urlEncode( - ApiClient.valueToString(getDestinationAdapterTokenLinkId())))); - } - - // add `sendConfig` to the URL query string - if (getSendConfig() != null) { - joiner.add(getSendConfig().toUrlQueryString(prefix + "sendConfig" + suffix)); - } - - // add `receiveConfig` to the URL query string - if (getReceiveConfig() != null) { - joiner.add(getReceiveConfig().toUrlQueryString(prefix + "receiveConfig" + suffix)); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/SetLayerZeroDvnConfigResponse.java b/src/main/java/com/fireblocks/sdk/model/SetLayerZeroDvnConfigResponse.java deleted file mode 100644 index fba43fac..00000000 --- a/src/main/java/com/fireblocks/sdk/model/SetLayerZeroDvnConfigResponse.java +++ /dev/null @@ -1,163 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** SetLayerZeroDvnConfigResponse */ -@JsonPropertyOrder({SetLayerZeroDvnConfigResponse.JSON_PROPERTY_TXN_IDS}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class SetLayerZeroDvnConfigResponse { - public static final String JSON_PROPERTY_TXN_IDS = "txnIds"; - @jakarta.annotation.Nonnull private List txnIds = new ArrayList<>(); - - public SetLayerZeroDvnConfigResponse() {} - - @JsonCreator - public SetLayerZeroDvnConfigResponse( - @JsonProperty(value = JSON_PROPERTY_TXN_IDS, required = true) List txnIds) { - this.txnIds = txnIds; - } - - public SetLayerZeroDvnConfigResponse txnIds(@jakarta.annotation.Nonnull List txnIds) { - this.txnIds = txnIds; - return this; - } - - public SetLayerZeroDvnConfigResponse addTxnIdsItem(String txnIdsItem) { - if (this.txnIds == null) { - this.txnIds = new ArrayList<>(); - } - this.txnIds.add(txnIdsItem); - return this; - } - - /** - * Transaction IDs submitted to the network - * - * @return txnIds - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TXN_IDS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getTxnIds() { - return txnIds; - } - - @JsonProperty(JSON_PROPERTY_TXN_IDS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTxnIds(@jakarta.annotation.Nonnull List txnIds) { - this.txnIds = txnIds; - } - - /** Return true if this SetLayerZeroDvnConfigResponse object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SetLayerZeroDvnConfigResponse setLayerZeroDvnConfigResponse = - (SetLayerZeroDvnConfigResponse) o; - return Objects.equals(this.txnIds, setLayerZeroDvnConfigResponse.txnIds); - } - - @Override - public int hashCode() { - return Objects.hash(txnIds); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SetLayerZeroDvnConfigResponse {\n"); - sb.append(" txnIds: ").append(toIndentedString(txnIds)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `txnIds` to the URL query string - if (getTxnIds() != null) { - for (int i = 0; i < getTxnIds().size(); i++) { - joiner.add( - String.format( - "%stxnIds%s%s=%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode(ApiClient.valueToString(getTxnIds().get(i))))); - } - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/SetLayerZeroPeersRequest.java b/src/main/java/com/fireblocks/sdk/model/SetLayerZeroPeersRequest.java deleted file mode 100644 index bd0ff917..00000000 --- a/src/main/java/com/fireblocks/sdk/model/SetLayerZeroPeersRequest.java +++ /dev/null @@ -1,320 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; -import java.util.UUID; - -/** SetLayerZeroPeersRequest */ -@JsonPropertyOrder({ - SetLayerZeroPeersRequest.JSON_PROPERTY_VAULT_ACCOUNT_ID, - SetLayerZeroPeersRequest.JSON_PROPERTY_SOURCE_ADAPTER_TOKEN_LINK_ID, - SetLayerZeroPeersRequest.JSON_PROPERTY_DESTINATION_ADAPTER_TOKEN_LINK_IDS, - SetLayerZeroPeersRequest.JSON_PROPERTY_BIDIRECTIONAL -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class SetLayerZeroPeersRequest { - public static final String JSON_PROPERTY_VAULT_ACCOUNT_ID = "vaultAccountId"; - @jakarta.annotation.Nonnull private String vaultAccountId; - - public static final String JSON_PROPERTY_SOURCE_ADAPTER_TOKEN_LINK_ID = - "sourceAdapterTokenLinkId"; - @jakarta.annotation.Nonnull private UUID sourceAdapterTokenLinkId; - - public static final String JSON_PROPERTY_DESTINATION_ADAPTER_TOKEN_LINK_IDS = - "destinationAdapterTokenLinkIds"; - - @jakarta.annotation.Nonnull - private List destinationAdapterTokenLinkIds = new ArrayList<>(); - - public static final String JSON_PROPERTY_BIDIRECTIONAL = "bidirectional"; - @jakarta.annotation.Nonnull private Boolean bidirectional; - - public SetLayerZeroPeersRequest() {} - - @JsonCreator - public SetLayerZeroPeersRequest( - @JsonProperty(value = JSON_PROPERTY_VAULT_ACCOUNT_ID, required = true) - String vaultAccountId, - @JsonProperty(value = JSON_PROPERTY_SOURCE_ADAPTER_TOKEN_LINK_ID, required = true) - UUID sourceAdapterTokenLinkId, - @JsonProperty(value = JSON_PROPERTY_DESTINATION_ADAPTER_TOKEN_LINK_IDS, required = true) - List destinationAdapterTokenLinkIds, - @JsonProperty(value = JSON_PROPERTY_BIDIRECTIONAL, required = true) - Boolean bidirectional) { - this.vaultAccountId = vaultAccountId; - this.sourceAdapterTokenLinkId = sourceAdapterTokenLinkId; - this.destinationAdapterTokenLinkIds = destinationAdapterTokenLinkIds; - this.bidirectional = bidirectional; - } - - public SetLayerZeroPeersRequest vaultAccountId( - @jakarta.annotation.Nonnull String vaultAccountId) { - this.vaultAccountId = vaultAccountId; - return this; - } - - /** - * The id of the vault account that will be used to inititate transactions ot set peers - * - * @return vaultAccountId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_VAULT_ACCOUNT_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getVaultAccountId() { - return vaultAccountId; - } - - @JsonProperty(JSON_PROPERTY_VAULT_ACCOUNT_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setVaultAccountId(@jakarta.annotation.Nonnull String vaultAccountId) { - this.vaultAccountId = vaultAccountId; - } - - public SetLayerZeroPeersRequest sourceAdapterTokenLinkId( - @jakarta.annotation.Nonnull UUID sourceAdapterTokenLinkId) { - this.sourceAdapterTokenLinkId = sourceAdapterTokenLinkId; - return this; - } - - /** - * `token_link` ID of the source adapter contract - * - * @return sourceAdapterTokenLinkId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SOURCE_ADAPTER_TOKEN_LINK_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public UUID getSourceAdapterTokenLinkId() { - return sourceAdapterTokenLinkId; - } - - @JsonProperty(JSON_PROPERTY_SOURCE_ADAPTER_TOKEN_LINK_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSourceAdapterTokenLinkId( - @jakarta.annotation.Nonnull UUID sourceAdapterTokenLinkId) { - this.sourceAdapterTokenLinkId = sourceAdapterTokenLinkId; - } - - public SetLayerZeroPeersRequest destinationAdapterTokenLinkIds( - @jakarta.annotation.Nonnull List destinationAdapterTokenLinkIds) { - this.destinationAdapterTokenLinkIds = destinationAdapterTokenLinkIds; - return this; - } - - public SetLayerZeroPeersRequest addDestinationAdapterTokenLinkIdsItem( - UUID destinationAdapterTokenLinkIdsItem) { - if (this.destinationAdapterTokenLinkIds == null) { - this.destinationAdapterTokenLinkIds = new ArrayList<>(); - } - this.destinationAdapterTokenLinkIds.add(destinationAdapterTokenLinkIdsItem); - return this; - } - - /** - * Array of `token_link` IDs for destination adapter contracts - * - * @return destinationAdapterTokenLinkIds - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DESTINATION_ADAPTER_TOKEN_LINK_IDS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getDestinationAdapterTokenLinkIds() { - return destinationAdapterTokenLinkIds; - } - - @JsonProperty(JSON_PROPERTY_DESTINATION_ADAPTER_TOKEN_LINK_IDS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDestinationAdapterTokenLinkIds( - @jakarta.annotation.Nonnull List destinationAdapterTokenLinkIds) { - this.destinationAdapterTokenLinkIds = destinationAdapterTokenLinkIds; - } - - public SetLayerZeroPeersRequest bidirectional( - @jakarta.annotation.Nonnull Boolean bidirectional) { - this.bidirectional = bidirectional; - return this; - } - - /** - * If true, also sets peers from destination(s) back to source - * - * @return bidirectional - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BIDIRECTIONAL) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Boolean getBidirectional() { - return bidirectional; - } - - @JsonProperty(JSON_PROPERTY_BIDIRECTIONAL) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBidirectional(@jakarta.annotation.Nonnull Boolean bidirectional) { - this.bidirectional = bidirectional; - } - - /** Return true if this SetLayerZeroPeersRequest object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SetLayerZeroPeersRequest setLayerZeroPeersRequest = (SetLayerZeroPeersRequest) o; - return Objects.equals(this.vaultAccountId, setLayerZeroPeersRequest.vaultAccountId) - && Objects.equals( - this.sourceAdapterTokenLinkId, - setLayerZeroPeersRequest.sourceAdapterTokenLinkId) - && Objects.equals( - this.destinationAdapterTokenLinkIds, - setLayerZeroPeersRequest.destinationAdapterTokenLinkIds) - && Objects.equals(this.bidirectional, setLayerZeroPeersRequest.bidirectional); - } - - @Override - public int hashCode() { - return Objects.hash( - vaultAccountId, - sourceAdapterTokenLinkId, - destinationAdapterTokenLinkIds, - bidirectional); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SetLayerZeroPeersRequest {\n"); - sb.append(" vaultAccountId: ").append(toIndentedString(vaultAccountId)).append("\n"); - sb.append(" sourceAdapterTokenLinkId: ") - .append(toIndentedString(sourceAdapterTokenLinkId)) - .append("\n"); - sb.append(" destinationAdapterTokenLinkIds: ") - .append(toIndentedString(destinationAdapterTokenLinkIds)) - .append("\n"); - sb.append(" bidirectional: ").append(toIndentedString(bidirectional)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `vaultAccountId` to the URL query string - if (getVaultAccountId() != null) { - joiner.add( - String.format( - "%svaultAccountId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getVaultAccountId())))); - } - - // add `sourceAdapterTokenLinkId` to the URL query string - if (getSourceAdapterTokenLinkId() != null) { - joiner.add( - String.format( - "%ssourceAdapterTokenLinkId%s=%s", - prefix, - suffix, - ApiClient.urlEncode( - ApiClient.valueToString(getSourceAdapterTokenLinkId())))); - } - - // add `destinationAdapterTokenLinkIds` to the URL query string - if (getDestinationAdapterTokenLinkIds() != null) { - for (int i = 0; i < getDestinationAdapterTokenLinkIds().size(); i++) { - if (getDestinationAdapterTokenLinkIds().get(i) != null) { - joiner.add( - String.format( - "%sdestinationAdapterTokenLinkIds%s%s=%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode( - ApiClient.valueToString( - getDestinationAdapterTokenLinkIds().get(i))))); - } - } - } - - // add `bidirectional` to the URL query string - if (getBidirectional() != null) { - joiner.add( - String.format( - "%sbidirectional%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBidirectional())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/SetLayerZeroPeersResponse.java b/src/main/java/com/fireblocks/sdk/model/SetLayerZeroPeersResponse.java deleted file mode 100644 index 1d933901..00000000 --- a/src/main/java/com/fireblocks/sdk/model/SetLayerZeroPeersResponse.java +++ /dev/null @@ -1,167 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; -import java.util.UUID; - -/** SetLayerZeroPeersResponse */ -@JsonPropertyOrder({SetLayerZeroPeersResponse.JSON_PROPERTY_TXN_IDS}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class SetLayerZeroPeersResponse { - public static final String JSON_PROPERTY_TXN_IDS = "txnIds"; - @jakarta.annotation.Nonnull private List txnIds = new ArrayList<>(); - - public SetLayerZeroPeersResponse() {} - - @JsonCreator - public SetLayerZeroPeersResponse( - @JsonProperty(value = JSON_PROPERTY_TXN_IDS, required = true) List txnIds) { - this.txnIds = txnIds; - } - - public SetLayerZeroPeersResponse txnIds(@jakarta.annotation.Nonnull List txnIds) { - this.txnIds = txnIds; - return this; - } - - public SetLayerZeroPeersResponse addTxnIdsItem(UUID txnIdsItem) { - if (this.txnIds == null) { - this.txnIds = new ArrayList<>(); - } - this.txnIds.add(txnIdsItem); - return this; - } - - /** - * Array of fireblocks transaction IDs, each corresponding to an on-chain transaction to set - * peers - * - * @return txnIds - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TXN_IDS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getTxnIds() { - return txnIds; - } - - @JsonProperty(JSON_PROPERTY_TXN_IDS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTxnIds(@jakarta.annotation.Nonnull List txnIds) { - this.txnIds = txnIds; - } - - /** Return true if this SetLayerZeroPeersResponse object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SetLayerZeroPeersResponse setLayerZeroPeersResponse = (SetLayerZeroPeersResponse) o; - return Objects.equals(this.txnIds, setLayerZeroPeersResponse.txnIds); - } - - @Override - public int hashCode() { - return Objects.hash(txnIds); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SetLayerZeroPeersResponse {\n"); - sb.append(" txnIds: ").append(toIndentedString(txnIds)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `txnIds` to the URL query string - if (getTxnIds() != null) { - for (int i = 0; i < getTxnIds().size(); i++) { - if (getTxnIds().get(i) != null) { - joiner.add( - String.format( - "%stxnIds%s%s=%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode( - ApiClient.valueToString(getTxnIds().get(i))))); - } - } - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/SetNetworkIdRoutingPolicyRequest.java b/src/main/java/com/fireblocks/sdk/model/SetNetworkIdRoutingPolicyRequest.java index 47083825..906f893d 100644 --- a/src/main/java/com/fireblocks/sdk/model/SetNetworkIdRoutingPolicyRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/SetNetworkIdRoutingPolicyRequest.java @@ -29,9 +29,7 @@ comments = "Generator version: 7.14.0") public class SetNetworkIdRoutingPolicyRequest { public static final String JSON_PROPERTY_ROUTING_POLICY = "routingPolicy"; - - @jakarta.annotation.Nonnull - private Map routingPolicy = new HashMap<>(); + @jakarta.annotation.Nonnull private Map routingPolicy; public SetNetworkIdRoutingPolicyRequest() {} diff --git a/src/main/java/com/fireblocks/sdk/model/SetRoutingPolicyRequest.java b/src/main/java/com/fireblocks/sdk/model/SetRoutingPolicyRequest.java index a2690650..262ef983 100644 --- a/src/main/java/com/fireblocks/sdk/model/SetRoutingPolicyRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/SetRoutingPolicyRequest.java @@ -31,7 +31,7 @@ public class SetRoutingPolicyRequest { public static final String JSON_PROPERTY_ROUTING_POLICY = "routingPolicy"; @jakarta.annotation.Nonnull - private Map routingPolicy = new HashMap<>(); + private Map routingPolicy; public SetRoutingPolicyRequest() {} diff --git a/src/main/java/com/fireblocks/sdk/model/SettlementSourceAccount.java b/src/main/java/com/fireblocks/sdk/model/SettlementSourceAccount.java deleted file mode 100644 index b2af7539..00000000 --- a/src/main/java/com/fireblocks/sdk/model/SettlementSourceAccount.java +++ /dev/null @@ -1,332 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.core.JsonGenerator; -import com.fasterxml.jackson.core.JsonParser; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.core.JsonToken; -import com.fasterxml.jackson.databind.DeserializationContext; -import com.fasterxml.jackson.databind.JsonMappingException; -import com.fasterxml.jackson.databind.JsonNode; -import com.fasterxml.jackson.databind.MapperFeature; -import com.fasterxml.jackson.databind.SerializerProvider; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import com.fasterxml.jackson.databind.deser.std.StdDeserializer; -import com.fasterxml.jackson.databind.ser.std.StdSerializer; -import com.fireblocks.sdk.JSON; -import java.io.IOException; -import java.util.Collections; -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; -import java.util.StringJoiner; -import java.util.logging.Level; -import java.util.logging.Logger; - -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -@JsonDeserialize(using = SettlementSourceAccount.SettlementSourceAccountDeserializer.class) -@JsonSerialize(using = SettlementSourceAccount.SettlementSourceAccountSerializer.class) -public class SettlementSourceAccount extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(SettlementSourceAccount.class.getName()); - - public static class SettlementSourceAccountSerializer - extends StdSerializer { - public SettlementSourceAccountSerializer(Class t) { - super(t); - } - - public SettlementSourceAccountSerializer() { - this(null); - } - - @Override - public void serialize( - SettlementSourceAccount value, JsonGenerator jgen, SerializerProvider provider) - throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); - } - } - - public static class SettlementSourceAccountDeserializer - extends StdDeserializer { - public SettlementSourceAccountDeserializer() { - this(SettlementSourceAccount.class); - } - - public SettlementSourceAccountDeserializer(Class vc) { - super(vc); - } - - @Override - public SettlementSourceAccount deserialize(JsonParser jp, DeserializationContext ctxt) - throws IOException, JsonProcessingException { - JsonNode tree = jp.readValueAsTree(); - Object deserialized = null; - boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); - int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); - // deserialize ExternalAccount - try { - boolean attemptParsing = true; - // ensure that we respect type coercion as set on the client ObjectMapper - if (ExternalAccount.class.equals(Integer.class) - || ExternalAccount.class.equals(Long.class) - || ExternalAccount.class.equals(Float.class) - || ExternalAccount.class.equals(Double.class) - || ExternalAccount.class.equals(Boolean.class) - || ExternalAccount.class.equals(String.class)) { - attemptParsing = typeCoercion; - if (!attemptParsing) { - attemptParsing |= - ((ExternalAccount.class.equals(Integer.class) - || ExternalAccount.class.equals(Long.class)) - && token == JsonToken.VALUE_NUMBER_INT); - attemptParsing |= - ((ExternalAccount.class.equals(Float.class) - || ExternalAccount.class.equals(Double.class)) - && token == JsonToken.VALUE_NUMBER_FLOAT); - attemptParsing |= - (ExternalAccount.class.equals(Boolean.class) - && (token == JsonToken.VALUE_FALSE - || token == JsonToken.VALUE_TRUE)); - attemptParsing |= - (ExternalAccount.class.equals(String.class) - && token == JsonToken.VALUE_STRING); - } - } - if (attemptParsing) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(ExternalAccount.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'ExternalAccount'"); - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'ExternalAccount'", e); - } - - // deserialize PlatformAccount - try { - boolean attemptParsing = true; - // ensure that we respect type coercion as set on the client ObjectMapper - if (PlatformAccount.class.equals(Integer.class) - || PlatformAccount.class.equals(Long.class) - || PlatformAccount.class.equals(Float.class) - || PlatformAccount.class.equals(Double.class) - || PlatformAccount.class.equals(Boolean.class) - || PlatformAccount.class.equals(String.class)) { - attemptParsing = typeCoercion; - if (!attemptParsing) { - attemptParsing |= - ((PlatformAccount.class.equals(Integer.class) - || PlatformAccount.class.equals(Long.class)) - && token == JsonToken.VALUE_NUMBER_INT); - attemptParsing |= - ((PlatformAccount.class.equals(Float.class) - || PlatformAccount.class.equals(Double.class)) - && token == JsonToken.VALUE_NUMBER_FLOAT); - attemptParsing |= - (PlatformAccount.class.equals(Boolean.class) - && (token == JsonToken.VALUE_FALSE - || token == JsonToken.VALUE_TRUE)); - attemptParsing |= - (PlatformAccount.class.equals(String.class) - && token == JsonToken.VALUE_STRING); - } - } - if (attemptParsing) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(PlatformAccount.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'PlatformAccount'"); - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'PlatformAccount'", e); - } - - if (match == 1) { - SettlementSourceAccount ret = new SettlementSourceAccount(); - ret.setActualInstance(deserialized); - return ret; - } - throw new IOException( - String.format( - "Failed deserialization for SettlementSourceAccount: %d classes match" - + " result, expected 1", - match)); - } - - /** Handle deserialization of the 'null' value. */ - @Override - public SettlementSourceAccount getNullValue(DeserializationContext ctxt) - throws JsonMappingException { - throw new JsonMappingException( - ctxt.getParser(), "SettlementSourceAccount cannot be null"); - } - } - - // store a list of schema names defined in oneOf - public static final Map> schemas = new HashMap<>(); - - public SettlementSourceAccount() { - super("oneOf", Boolean.FALSE); - } - - public SettlementSourceAccount(ExternalAccount o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public SettlementSourceAccount(PlatformAccount o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("ExternalAccount", ExternalAccount.class); - schemas.put("PlatformAccount", PlatformAccount.class); - JSON.registerDescendants( - SettlementSourceAccount.class, Collections.unmodifiableMap(schemas)); - // Initialize and register the discriminator mappings. - Map> mappings = new HashMap>(); - mappings.put("CONNECTED_ACCOUNT", PlatformAccount.class); - mappings.put("EXTERNAL", ExternalAccount.class); - mappings.put("FIAT_ACCOUNT", PlatformAccount.class); - mappings.put("VAULT_ACCOUNT", PlatformAccount.class); - mappings.put("ExternalAccount", ExternalAccount.class); - mappings.put("PlatformAccount", PlatformAccount.class); - mappings.put("SettlementSourceAccount", SettlementSourceAccount.class); - JSON.registerDiscriminator(SettlementSourceAccount.class, "type", mappings); - } - - @Override - public Map> getSchemas() { - return SettlementSourceAccount.schemas; - } - - /** - * Set the instance that matches the oneOf child schema, check the instance parameter is valid - * against the oneOf child schemas: ExternalAccount, PlatformAccount - * - *

It could be an instance of the 'oneOf' schemas. The oneOf child schemas may themselves be - * a composed schema (allOf, anyOf, oneOf). - */ - @Override - public void setActualInstance(Object instance) { - if (JSON.isInstanceOf(ExternalAccount.class, instance, new HashSet>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(PlatformAccount.class, instance, new HashSet>())) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException( - "Invalid instance type. Must be ExternalAccount, PlatformAccount"); - } - - /** - * Get the actual instance, which can be the following: ExternalAccount, PlatformAccount - * - * @return The actual instance (ExternalAccount, PlatformAccount) - */ - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `ExternalAccount`. If the actual instance is not - * `ExternalAccount`, the ClassCastException will be thrown. - * - * @return The actual instance of `ExternalAccount` - * @throws ClassCastException if the instance is not `ExternalAccount` - */ - public ExternalAccount getExternalAccount() throws ClassCastException { - return (ExternalAccount) super.getActualInstance(); - } - - /** - * Get the actual instance of `PlatformAccount`. If the actual instance is not - * `PlatformAccount`, the ClassCastException will be thrown. - * - * @return The actual instance of `PlatformAccount` - * @throws ClassCastException if the instance is not `PlatformAccount` - */ - public PlatformAccount getPlatformAccount() throws ClassCastException { - return (PlatformAccount) super.getActualInstance(); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - if (getActualInstance() instanceof PlatformAccount) { - if (getActualInstance() != null) { - joiner.add( - ((PlatformAccount) getActualInstance()) - .toUrlQueryString(prefix + "one_of_0" + suffix)); - } - return joiner.toString(); - } - if (getActualInstance() instanceof ExternalAccount) { - if (getActualInstance() != null) { - joiner.add( - ((ExternalAccount) getActualInstance()) - .toUrlQueryString(prefix + "one_of_1" + suffix)); - } - return joiner.toString(); - } - return null; - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/SignedMessage.java b/src/main/java/com/fireblocks/sdk/model/SignedMessage.java index 23910345..ad089800 100644 --- a/src/main/java/com/fireblocks/sdk/model/SignedMessage.java +++ b/src/main/java/com/fireblocks/sdk/model/SignedMessage.java @@ -77,7 +77,7 @@ public static AlgorithmEnum fromValue(String value) { @jakarta.annotation.Nullable private AlgorithmEnum algorithm; public static final String JSON_PROPERTY_DERIVATION_PATH = "derivationPath"; - @jakarta.annotation.Nullable private List derivationPath = new ArrayList<>(); + @jakarta.annotation.Nullable private List derivationPath; public static final String JSON_PROPERTY_SIGNATURE = "signature"; @jakarta.annotation.Nullable private SignedMessageSignature signature; diff --git a/src/main/java/com/fireblocks/sdk/model/SmartTransferApproveTerm.java b/src/main/java/com/fireblocks/sdk/model/SmartTransferApproveTerm.java deleted file mode 100644 index 45bd5db3..00000000 --- a/src/main/java/com/fireblocks/sdk/model/SmartTransferApproveTerm.java +++ /dev/null @@ -1,383 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** SmartTransferApproveTerm */ -@JsonPropertyOrder({ - SmartTransferApproveTerm.JSON_PROPERTY_ASSET, - SmartTransferApproveTerm.JSON_PROPERTY_AMOUNT, - SmartTransferApproveTerm.JSON_PROPERTY_SRC_ID, - SmartTransferApproveTerm.JSON_PROPERTY_FEE, - SmartTransferApproveTerm.JSON_PROPERTY_FEE_LEVEL, - SmartTransferApproveTerm.JSON_PROPERTY_NOTE -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class SmartTransferApproveTerm { - public static final String JSON_PROPERTY_ASSET = "asset"; - @jakarta.annotation.Nonnull private String asset; - - public static final String JSON_PROPERTY_AMOUNT = "amount"; - @jakarta.annotation.Nonnull private String amount; - - public static final String JSON_PROPERTY_SRC_ID = "srcId"; - @jakarta.annotation.Nonnull private String srcId; - - public static final String JSON_PROPERTY_FEE = "fee"; - @jakarta.annotation.Nullable private String fee; - - /** Transaction fee level. */ - public enum FeeLevelEnum { - LOW(String.valueOf("LOW")), - - MEDIUM(String.valueOf("MEDIUM")), - - HIGH(String.valueOf("HIGH")); - - private String value; - - FeeLevelEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static FeeLevelEnum fromValue(String value) { - for (FeeLevelEnum b : FeeLevelEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_FEE_LEVEL = "feeLevel"; - @jakarta.annotation.Nullable private FeeLevelEnum feeLevel; - - public static final String JSON_PROPERTY_NOTE = "note"; - @jakarta.annotation.Nullable private String note; - - public SmartTransferApproveTerm() {} - - @JsonCreator - public SmartTransferApproveTerm( - @JsonProperty(value = JSON_PROPERTY_ASSET, required = true) String asset, - @JsonProperty(value = JSON_PROPERTY_AMOUNT, required = true) String amount, - @JsonProperty(value = JSON_PROPERTY_SRC_ID, required = true) String srcId) { - this.asset = asset; - this.amount = amount; - this.srcId = srcId; - } - - public SmartTransferApproveTerm asset(@jakarta.annotation.Nonnull String asset) { - this.asset = asset; - return this; - } - - /** - * Asset name - * - * @return asset - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ASSET) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getAsset() { - return asset; - } - - @JsonProperty(JSON_PROPERTY_ASSET) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAsset(@jakarta.annotation.Nonnull String asset) { - this.asset = asset; - } - - public SmartTransferApproveTerm amount(@jakarta.annotation.Nonnull String amount) { - this.amount = amount; - return this; - } - - /** - * Amount - * - * @return amount - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_AMOUNT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getAmount() { - return amount; - } - - @JsonProperty(JSON_PROPERTY_AMOUNT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAmount(@jakarta.annotation.Nonnull String amount) { - this.amount = amount; - } - - public SmartTransferApproveTerm srcId(@jakarta.annotation.Nonnull String srcId) { - this.srcId = srcId; - return this; - } - - /** - * Id of the vault that is used as the source of the asset. - * - * @return srcId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SRC_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getSrcId() { - return srcId; - } - - @JsonProperty(JSON_PROPERTY_SRC_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSrcId(@jakarta.annotation.Nonnull String srcId) { - this.srcId = srcId; - } - - public SmartTransferApproveTerm fee(@jakarta.annotation.Nullable String fee) { - this.fee = fee; - return this; - } - - /** - * Transaction fee - * - * @return fee - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FEE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getFee() { - return fee; - } - - @JsonProperty(JSON_PROPERTY_FEE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFee(@jakarta.annotation.Nullable String fee) { - this.fee = fee; - } - - public SmartTransferApproveTerm feeLevel(@jakarta.annotation.Nullable FeeLevelEnum feeLevel) { - this.feeLevel = feeLevel; - return this; - } - - /** - * Transaction fee level. - * - * @return feeLevel - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FEE_LEVEL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public FeeLevelEnum getFeeLevel() { - return feeLevel; - } - - @JsonProperty(JSON_PROPERTY_FEE_LEVEL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFeeLevel(@jakarta.annotation.Nullable FeeLevelEnum feeLevel) { - this.feeLevel = feeLevel; - } - - public SmartTransferApproveTerm note(@jakarta.annotation.Nullable String note) { - this.note = note; - return this; - } - - /** - * Transaction note - * - * @return note - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NOTE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getNote() { - return note; - } - - @JsonProperty(JSON_PROPERTY_NOTE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNote(@jakarta.annotation.Nullable String note) { - this.note = note; - } - - /** Return true if this SmartTransferApproveTerm object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SmartTransferApproveTerm smartTransferApproveTerm = (SmartTransferApproveTerm) o; - return Objects.equals(this.asset, smartTransferApproveTerm.asset) - && Objects.equals(this.amount, smartTransferApproveTerm.amount) - && Objects.equals(this.srcId, smartTransferApproveTerm.srcId) - && Objects.equals(this.fee, smartTransferApproveTerm.fee) - && Objects.equals(this.feeLevel, smartTransferApproveTerm.feeLevel) - && Objects.equals(this.note, smartTransferApproveTerm.note); - } - - @Override - public int hashCode() { - return Objects.hash(asset, amount, srcId, fee, feeLevel, note); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SmartTransferApproveTerm {\n"); - sb.append(" asset: ").append(toIndentedString(asset)).append("\n"); - sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); - sb.append(" srcId: ").append(toIndentedString(srcId)).append("\n"); - sb.append(" fee: ").append(toIndentedString(fee)).append("\n"); - sb.append(" feeLevel: ").append(toIndentedString(feeLevel)).append("\n"); - sb.append(" note: ").append(toIndentedString(note)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `asset` to the URL query string - if (getAsset() != null) { - joiner.add( - String.format( - "%sasset%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAsset())))); - } - - // add `amount` to the URL query string - if (getAmount() != null) { - joiner.add( - String.format( - "%samount%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAmount())))); - } - - // add `srcId` to the URL query string - if (getSrcId() != null) { - joiner.add( - String.format( - "%ssrcId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getSrcId())))); - } - - // add `fee` to the URL query string - if (getFee() != null) { - joiner.add( - String.format( - "%sfee%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getFee())))); - } - - // add `feeLevel` to the URL query string - if (getFeeLevel() != null) { - joiner.add( - String.format( - "%sfeeLevel%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getFeeLevel())))); - } - - // add `note` to the URL query string - if (getNote() != null) { - joiner.add( - String.format( - "%snote%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getNote())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/SmartTransferCoinStatistic.java b/src/main/java/com/fireblocks/sdk/model/SmartTransferCoinStatistic.java deleted file mode 100644 index 71e6c49e..00000000 --- a/src/main/java/com/fireblocks/sdk/model/SmartTransferCoinStatistic.java +++ /dev/null @@ -1,180 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** Smart transfer coin statistic */ -@JsonPropertyOrder({ - SmartTransferCoinStatistic.JSON_PROPERTY_ASSET, - SmartTransferCoinStatistic.JSON_PROPERTY_AMOUNT -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class SmartTransferCoinStatistic { - public static final String JSON_PROPERTY_ASSET = "asset"; - @jakarta.annotation.Nullable private String asset; - - public static final String JSON_PROPERTY_AMOUNT = "amount"; - @jakarta.annotation.Nullable private String amount; - - public SmartTransferCoinStatistic() {} - - public SmartTransferCoinStatistic asset(@jakarta.annotation.Nullable String asset) { - this.asset = asset; - return this; - } - - /** - * Get asset - * - * @return asset - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ASSET) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getAsset() { - return asset; - } - - @JsonProperty(JSON_PROPERTY_ASSET) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAsset(@jakarta.annotation.Nullable String asset) { - this.asset = asset; - } - - public SmartTransferCoinStatistic amount(@jakarta.annotation.Nullable String amount) { - this.amount = amount; - return this; - } - - /** - * Get amount - * - * @return amount - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_AMOUNT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getAmount() { - return amount; - } - - @JsonProperty(JSON_PROPERTY_AMOUNT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAmount(@jakarta.annotation.Nullable String amount) { - this.amount = amount; - } - - /** Return true if this SmartTransferCoinStatistic object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SmartTransferCoinStatistic smartTransferCoinStatistic = (SmartTransferCoinStatistic) o; - return Objects.equals(this.asset, smartTransferCoinStatistic.asset) - && Objects.equals(this.amount, smartTransferCoinStatistic.amount); - } - - @Override - public int hashCode() { - return Objects.hash(asset, amount); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SmartTransferCoinStatistic {\n"); - sb.append(" asset: ").append(toIndentedString(asset)).append("\n"); - sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `asset` to the URL query string - if (getAsset() != null) { - joiner.add( - String.format( - "%sasset%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAsset())))); - } - - // add `amount` to the URL query string - if (getAmount() != null) { - joiner.add( - String.format( - "%samount%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAmount())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/SmartTransferCreateTicket.java b/src/main/java/com/fireblocks/sdk/model/SmartTransferCreateTicket.java index 55d55a80..1270631e 100644 --- a/src/main/java/com/fireblocks/sdk/model/SmartTransferCreateTicket.java +++ b/src/main/java/com/fireblocks/sdk/model/SmartTransferCreateTicket.java @@ -44,9 +44,7 @@ public class SmartTransferCreateTicket { /** Gets or Sets type */ public enum TypeEnum { - ASYNC(String.valueOf("ASYNC")), - - DVP(String.valueOf("DVP")); + ASYNC(String.valueOf("ASYNC")); private String value; @@ -82,9 +80,7 @@ public static TypeEnum fromValue(String value) { @jakarta.annotation.Nullable private BigDecimal expiresIn; public static final String JSON_PROPERTY_TERMS = "terms"; - - @jakarta.annotation.Nullable - private List terms = new ArrayList<>(); + @jakarta.annotation.Nullable private List terms; public static final String JSON_PROPERTY_EXTERNAL_REF_ID = "externalRefId"; @jakarta.annotation.Nullable private String externalRefId; diff --git a/src/main/java/com/fireblocks/sdk/model/SmartTransferFundDvpTicket.java b/src/main/java/com/fireblocks/sdk/model/SmartTransferFundDvpTicket.java deleted file mode 100644 index 09459bd0..00000000 --- a/src/main/java/com/fireblocks/sdk/model/SmartTransferFundDvpTicket.java +++ /dev/null @@ -1,256 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** SmartTransferFundDvpTicket */ -@JsonPropertyOrder({ - SmartTransferFundDvpTicket.JSON_PROPERTY_FEE, - SmartTransferFundDvpTicket.JSON_PROPERTY_FEE_LEVEL, - SmartTransferFundDvpTicket.JSON_PROPERTY_NOTE -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class SmartTransferFundDvpTicket { - public static final String JSON_PROPERTY_FEE = "fee"; - @jakarta.annotation.Nullable private String fee; - - /** Transaction fee level. */ - public enum FeeLevelEnum { - LOW(String.valueOf("LOW")), - - MEDIUM(String.valueOf("MEDIUM")), - - HIGH(String.valueOf("HIGH")); - - private String value; - - FeeLevelEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static FeeLevelEnum fromValue(String value) { - for (FeeLevelEnum b : FeeLevelEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_FEE_LEVEL = "feeLevel"; - @jakarta.annotation.Nullable private FeeLevelEnum feeLevel; - - public static final String JSON_PROPERTY_NOTE = "note"; - @jakarta.annotation.Nullable private String note; - - public SmartTransferFundDvpTicket() {} - - public SmartTransferFundDvpTicket fee(@jakarta.annotation.Nullable String fee) { - this.fee = fee; - return this; - } - - /** - * Transaction fee - * - * @return fee - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FEE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getFee() { - return fee; - } - - @JsonProperty(JSON_PROPERTY_FEE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFee(@jakarta.annotation.Nullable String fee) { - this.fee = fee; - } - - public SmartTransferFundDvpTicket feeLevel(@jakarta.annotation.Nullable FeeLevelEnum feeLevel) { - this.feeLevel = feeLevel; - return this; - } - - /** - * Transaction fee level. - * - * @return feeLevel - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FEE_LEVEL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public FeeLevelEnum getFeeLevel() { - return feeLevel; - } - - @JsonProperty(JSON_PROPERTY_FEE_LEVEL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFeeLevel(@jakarta.annotation.Nullable FeeLevelEnum feeLevel) { - this.feeLevel = feeLevel; - } - - public SmartTransferFundDvpTicket note(@jakarta.annotation.Nullable String note) { - this.note = note; - return this; - } - - /** - * Transaction note - * - * @return note - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NOTE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getNote() { - return note; - } - - @JsonProperty(JSON_PROPERTY_NOTE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNote(@jakarta.annotation.Nullable String note) { - this.note = note; - } - - /** Return true if this SmartTransferFundDvpTicket object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SmartTransferFundDvpTicket smartTransferFundDvpTicket = (SmartTransferFundDvpTicket) o; - return Objects.equals(this.fee, smartTransferFundDvpTicket.fee) - && Objects.equals(this.feeLevel, smartTransferFundDvpTicket.feeLevel) - && Objects.equals(this.note, smartTransferFundDvpTicket.note); - } - - @Override - public int hashCode() { - return Objects.hash(fee, feeLevel, note); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SmartTransferFundDvpTicket {\n"); - sb.append(" fee: ").append(toIndentedString(fee)).append("\n"); - sb.append(" feeLevel: ").append(toIndentedString(feeLevel)).append("\n"); - sb.append(" note: ").append(toIndentedString(note)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `fee` to the URL query string - if (getFee() != null) { - joiner.add( - String.format( - "%sfee%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getFee())))); - } - - // add `feeLevel` to the URL query string - if (getFeeLevel() != null) { - joiner.add( - String.format( - "%sfeeLevel%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getFeeLevel())))); - } - - // add `note` to the URL query string - if (getNote() != null) { - joiner.add( - String.format( - "%snote%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getNote())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/SmartTransferSetUserGroups.java b/src/main/java/com/fireblocks/sdk/model/SmartTransferSetUserGroups.java index 076ef547..819cff4f 100644 --- a/src/main/java/com/fireblocks/sdk/model/SmartTransferSetUserGroups.java +++ b/src/main/java/com/fireblocks/sdk/model/SmartTransferSetUserGroups.java @@ -30,7 +30,7 @@ comments = "Generator version: 7.14.0") public class SmartTransferSetUserGroups { public static final String JSON_PROPERTY_USER_GROUP_IDS = "userGroupIds"; - @jakarta.annotation.Nonnull private List userGroupIds = new ArrayList<>(); + @jakarta.annotation.Nonnull private List userGroupIds; public SmartTransferSetUserGroups() {} diff --git a/src/main/java/com/fireblocks/sdk/model/SmartTransferStatistic.java b/src/main/java/com/fireblocks/sdk/model/SmartTransferStatistic.java deleted file mode 100644 index 591dcbbc..00000000 --- a/src/main/java/com/fireblocks/sdk/model/SmartTransferStatistic.java +++ /dev/null @@ -1,276 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** Smart transfers statistic */ -@JsonPropertyOrder({ - SmartTransferStatistic.JSON_PROPERTY_INFLOW, - SmartTransferStatistic.JSON_PROPERTY_OUTFLOW, - SmartTransferStatistic.JSON_PROPERTY_TOTAL_ACTIVE_TICKETS, - SmartTransferStatistic.JSON_PROPERTY_TOTAL_INACTIVE_TICKETS -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class SmartTransferStatistic { - public static final String JSON_PROPERTY_INFLOW = "inflow"; - @jakarta.annotation.Nonnull private SmartTransferStatisticInflow inflow; - - public static final String JSON_PROPERTY_OUTFLOW = "outflow"; - @jakarta.annotation.Nonnull private SmartTransferStatisticOutflow outflow; - - public static final String JSON_PROPERTY_TOTAL_ACTIVE_TICKETS = "totalActiveTickets"; - @jakarta.annotation.Nonnull private Integer totalActiveTickets; - - public static final String JSON_PROPERTY_TOTAL_INACTIVE_TICKETS = "totalInactiveTickets"; - @jakarta.annotation.Nonnull private Integer totalInactiveTickets; - - public SmartTransferStatistic() {} - - @JsonCreator - public SmartTransferStatistic( - @JsonProperty(value = JSON_PROPERTY_INFLOW, required = true) - SmartTransferStatisticInflow inflow, - @JsonProperty(value = JSON_PROPERTY_OUTFLOW, required = true) - SmartTransferStatisticOutflow outflow, - @JsonProperty(value = JSON_PROPERTY_TOTAL_ACTIVE_TICKETS, required = true) - Integer totalActiveTickets, - @JsonProperty(value = JSON_PROPERTY_TOTAL_INACTIVE_TICKETS, required = true) - Integer totalInactiveTickets) { - this.inflow = inflow; - this.outflow = outflow; - this.totalActiveTickets = totalActiveTickets; - this.totalInactiveTickets = totalInactiveTickets; - } - - public SmartTransferStatistic inflow( - @jakarta.annotation.Nonnull SmartTransferStatisticInflow inflow) { - this.inflow = inflow; - return this; - } - - /** - * Get inflow - * - * @return inflow - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_INFLOW) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public SmartTransferStatisticInflow getInflow() { - return inflow; - } - - @JsonProperty(JSON_PROPERTY_INFLOW) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setInflow(@jakarta.annotation.Nonnull SmartTransferStatisticInflow inflow) { - this.inflow = inflow; - } - - public SmartTransferStatistic outflow( - @jakarta.annotation.Nonnull SmartTransferStatisticOutflow outflow) { - this.outflow = outflow; - return this; - } - - /** - * Get outflow - * - * @return outflow - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_OUTFLOW) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public SmartTransferStatisticOutflow getOutflow() { - return outflow; - } - - @JsonProperty(JSON_PROPERTY_OUTFLOW) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setOutflow(@jakarta.annotation.Nonnull SmartTransferStatisticOutflow outflow) { - this.outflow = outflow; - } - - public SmartTransferStatistic totalActiveTickets( - @jakarta.annotation.Nonnull Integer totalActiveTickets) { - this.totalActiveTickets = totalActiveTickets; - return this; - } - - /** - * Number of total active tickets - * - * @return totalActiveTickets - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TOTAL_ACTIVE_TICKETS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getTotalActiveTickets() { - return totalActiveTickets; - } - - @JsonProperty(JSON_PROPERTY_TOTAL_ACTIVE_TICKETS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTotalActiveTickets(@jakarta.annotation.Nonnull Integer totalActiveTickets) { - this.totalActiveTickets = totalActiveTickets; - } - - public SmartTransferStatistic totalInactiveTickets( - @jakarta.annotation.Nonnull Integer totalInactiveTickets) { - this.totalInactiveTickets = totalInactiveTickets; - return this; - } - - /** - * Number of total inactive tickets (expired, canceled, completed) - * - * @return totalInactiveTickets - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TOTAL_INACTIVE_TICKETS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getTotalInactiveTickets() { - return totalInactiveTickets; - } - - @JsonProperty(JSON_PROPERTY_TOTAL_INACTIVE_TICKETS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTotalInactiveTickets(@jakarta.annotation.Nonnull Integer totalInactiveTickets) { - this.totalInactiveTickets = totalInactiveTickets; - } - - /** Return true if this SmartTransferStatistic object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SmartTransferStatistic smartTransferStatistic = (SmartTransferStatistic) o; - return Objects.equals(this.inflow, smartTransferStatistic.inflow) - && Objects.equals(this.outflow, smartTransferStatistic.outflow) - && Objects.equals( - this.totalActiveTickets, smartTransferStatistic.totalActiveTickets) - && Objects.equals( - this.totalInactiveTickets, smartTransferStatistic.totalInactiveTickets); - } - - @Override - public int hashCode() { - return Objects.hash(inflow, outflow, totalActiveTickets, totalInactiveTickets); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SmartTransferStatistic {\n"); - sb.append(" inflow: ").append(toIndentedString(inflow)).append("\n"); - sb.append(" outflow: ").append(toIndentedString(outflow)).append("\n"); - sb.append(" totalActiveTickets: ") - .append(toIndentedString(totalActiveTickets)) - .append("\n"); - sb.append(" totalInactiveTickets: ") - .append(toIndentedString(totalInactiveTickets)) - .append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `inflow` to the URL query string - if (getInflow() != null) { - joiner.add(getInflow().toUrlQueryString(prefix + "inflow" + suffix)); - } - - // add `outflow` to the URL query string - if (getOutflow() != null) { - joiner.add(getOutflow().toUrlQueryString(prefix + "outflow" + suffix)); - } - - // add `totalActiveTickets` to the URL query string - if (getTotalActiveTickets() != null) { - joiner.add( - String.format( - "%stotalActiveTickets%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getTotalActiveTickets())))); - } - - // add `totalInactiveTickets` to the URL query string - if (getTotalInactiveTickets() != null) { - joiner.add( - String.format( - "%stotalInactiveTickets%s=%s", - prefix, - suffix, - ApiClient.urlEncode( - ApiClient.valueToString(getTotalInactiveTickets())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/SmartTransferStatisticInflow.java b/src/main/java/com/fireblocks/sdk/model/SmartTransferStatisticInflow.java deleted file mode 100644 index 3c9c512c..00000000 --- a/src/main/java/com/fireblocks/sdk/model/SmartTransferStatisticInflow.java +++ /dev/null @@ -1,206 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** Inflow tickets data */ -@JsonPropertyOrder({ - SmartTransferStatisticInflow.JSON_PROPERTY_COINS, - SmartTransferStatisticInflow.JSON_PROPERTY_TICKET_COUNT -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class SmartTransferStatisticInflow { - public static final String JSON_PROPERTY_COINS = "coins"; - @jakarta.annotation.Nullable private List coins = new ArrayList<>(); - - public static final String JSON_PROPERTY_TICKET_COUNT = "ticketCount"; - @jakarta.annotation.Nullable private Integer ticketCount; - - public SmartTransferStatisticInflow() {} - - public SmartTransferStatisticInflow coins( - @jakarta.annotation.Nullable List coins) { - this.coins = coins; - return this; - } - - public SmartTransferStatisticInflow addCoinsItem(SmartTransferCoinStatistic coinsItem) { - if (this.coins == null) { - this.coins = new ArrayList<>(); - } - this.coins.add(coinsItem); - return this; - } - - /** - * Get coins - * - * @return coins - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COINS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getCoins() { - return coins; - } - - @JsonProperty(JSON_PROPERTY_COINS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCoins(@jakarta.annotation.Nullable List coins) { - this.coins = coins; - } - - public SmartTransferStatisticInflow ticketCount( - @jakarta.annotation.Nullable Integer ticketCount) { - this.ticketCount = ticketCount; - return this; - } - - /** - * Get ticketCount - * - * @return ticketCount - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TICKET_COUNT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getTicketCount() { - return ticketCount; - } - - @JsonProperty(JSON_PROPERTY_TICKET_COUNT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTicketCount(@jakarta.annotation.Nullable Integer ticketCount) { - this.ticketCount = ticketCount; - } - - /** Return true if this SmartTransferStatistic_inflow object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SmartTransferStatisticInflow smartTransferStatisticInflow = - (SmartTransferStatisticInflow) o; - return Objects.equals(this.coins, smartTransferStatisticInflow.coins) - && Objects.equals(this.ticketCount, smartTransferStatisticInflow.ticketCount); - } - - @Override - public int hashCode() { - return Objects.hash(coins, ticketCount); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SmartTransferStatisticInflow {\n"); - sb.append(" coins: ").append(toIndentedString(coins)).append("\n"); - sb.append(" ticketCount: ").append(toIndentedString(ticketCount)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `coins` to the URL query string - if (getCoins() != null) { - for (int i = 0; i < getCoins().size(); i++) { - if (getCoins().get(i) != null) { - joiner.add( - getCoins() - .get(i) - .toUrlQueryString( - String.format( - "%scoins%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } - } - - // add `ticketCount` to the URL query string - if (getTicketCount() != null) { - joiner.add( - String.format( - "%sticketCount%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getTicketCount())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/SmartTransferStatisticOutflow.java b/src/main/java/com/fireblocks/sdk/model/SmartTransferStatisticOutflow.java deleted file mode 100644 index 359c2fd8..00000000 --- a/src/main/java/com/fireblocks/sdk/model/SmartTransferStatisticOutflow.java +++ /dev/null @@ -1,206 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** Outflow tickets data */ -@JsonPropertyOrder({ - SmartTransferStatisticOutflow.JSON_PROPERTY_COINS, - SmartTransferStatisticOutflow.JSON_PROPERTY_TICKET_COUNT -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class SmartTransferStatisticOutflow { - public static final String JSON_PROPERTY_COINS = "coins"; - @jakarta.annotation.Nullable private List coins = new ArrayList<>(); - - public static final String JSON_PROPERTY_TICKET_COUNT = "ticketCount"; - @jakarta.annotation.Nullable private Integer ticketCount; - - public SmartTransferStatisticOutflow() {} - - public SmartTransferStatisticOutflow coins( - @jakarta.annotation.Nullable List coins) { - this.coins = coins; - return this; - } - - public SmartTransferStatisticOutflow addCoinsItem(SmartTransferCoinStatistic coinsItem) { - if (this.coins == null) { - this.coins = new ArrayList<>(); - } - this.coins.add(coinsItem); - return this; - } - - /** - * Get coins - * - * @return coins - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COINS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getCoins() { - return coins; - } - - @JsonProperty(JSON_PROPERTY_COINS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCoins(@jakarta.annotation.Nullable List coins) { - this.coins = coins; - } - - public SmartTransferStatisticOutflow ticketCount( - @jakarta.annotation.Nullable Integer ticketCount) { - this.ticketCount = ticketCount; - return this; - } - - /** - * Get ticketCount - * - * @return ticketCount - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TICKET_COUNT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getTicketCount() { - return ticketCount; - } - - @JsonProperty(JSON_PROPERTY_TICKET_COUNT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTicketCount(@jakarta.annotation.Nullable Integer ticketCount) { - this.ticketCount = ticketCount; - } - - /** Return true if this SmartTransferStatistic_outflow object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SmartTransferStatisticOutflow smartTransferStatisticOutflow = - (SmartTransferStatisticOutflow) o; - return Objects.equals(this.coins, smartTransferStatisticOutflow.coins) - && Objects.equals(this.ticketCount, smartTransferStatisticOutflow.ticketCount); - } - - @Override - public int hashCode() { - return Objects.hash(coins, ticketCount); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SmartTransferStatisticOutflow {\n"); - sb.append(" coins: ").append(toIndentedString(coins)).append("\n"); - sb.append(" ticketCount: ").append(toIndentedString(ticketCount)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `coins` to the URL query string - if (getCoins() != null) { - for (int i = 0; i < getCoins().size(); i++) { - if (getCoins().get(i) != null) { - joiner.add( - getCoins() - .get(i) - .toUrlQueryString( - String.format( - "%scoins%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } - } - - // add `ticketCount` to the URL query string - if (getTicketCount() != null) { - joiner.add( - String.format( - "%sticketCount%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getTicketCount())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/SmartTransferTicket.java b/src/main/java/com/fireblocks/sdk/model/SmartTransferTicket.java index f3c91110..63a4bb80 100644 --- a/src/main/java/com/fireblocks/sdk/model/SmartTransferTicket.java +++ b/src/main/java/com/fireblocks/sdk/model/SmartTransferTicket.java @@ -32,8 +32,6 @@ SmartTransferTicket.JSON_PROPERTY_TYPE, SmartTransferTicket.JSON_PROPERTY_DIRECTION, SmartTransferTicket.JSON_PROPERTY_STATUS, - SmartTransferTicket.JSON_PROPERTY_DVP_EXECUTION_STATUS, - SmartTransferTicket.JSON_PROPERTY_ORDER_CREATED_BY_NETWORK_ID, SmartTransferTicket.JSON_PROPERTY_TERMS, SmartTransferTicket.JSON_PROPERTY_EXPIRES_IN, SmartTransferTicket.JSON_PROPERTY_EXPIRES_AT, @@ -58,11 +56,9 @@ public class SmartTransferTicket { public static final String JSON_PROPERTY_ID = "id"; @jakarta.annotation.Nonnull private String id; - /** Kind of Smart Transfer. Can be either `ASYNC` or `DVP` */ + /** Kind of Smart Transfer. Can be either `ASYNC` or `ATOMIC` */ public enum TypeEnum { - ASYNC(String.valueOf("ASYNC")), - - DVP(String.valueOf("DVP")); + ASYNC(String.valueOf("ASYNC")); private String value; @@ -180,58 +176,8 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_STATUS = "status"; @jakarta.annotation.Nonnull private StatusEnum status; - /** Current status of DVP execution */ - public enum DvpExecutionStatusEnum { - STARTED(String.valueOf("STARTED")), - - CREATING_ORDER(String.valueOf("CREATING_ORDER")), - - ORDER_CREATED(String.valueOf("ORDER_CREATED")), - - FULFILLING(String.valueOf("FULFILLING")), - - FULFILLING_ORDER_FAILED(String.valueOf("FULFILLING_ORDER_FAILED")), - - CREATING_ORDER_FAILED(String.valueOf("CREATING_ORDER_FAILED")), - - FULFILLED(String.valueOf("FULFILLED")); - - private String value; - - DvpExecutionStatusEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static DvpExecutionStatusEnum fromValue(String value) { - for (DvpExecutionStatusEnum b : DvpExecutionStatusEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_DVP_EXECUTION_STATUS = "dvpExecutionStatus"; - @jakarta.annotation.Nullable private DvpExecutionStatusEnum dvpExecutionStatus; - - public static final String JSON_PROPERTY_ORDER_CREATED_BY_NETWORK_ID = - "orderCreatedByNetworkId"; - @jakarta.annotation.Nullable private String orderCreatedByNetworkId; - public static final String JSON_PROPERTY_TERMS = "terms"; - @jakarta.annotation.Nullable private List terms = new ArrayList<>(); + @jakarta.annotation.Nullable private List terms; public static final String JSON_PROPERTY_EXPIRES_IN = "expiresIn"; @jakarta.annotation.Nullable private BigDecimal expiresIn; @@ -332,7 +278,7 @@ public SmartTransferTicket type(@jakarta.annotation.Nonnull TypeEnum type) { } /** - * Kind of Smart Transfer. Can be either `ASYNC` or `DVP` + * Kind of Smart Transfer. Can be either `ASYNC` or `ATOMIC` * * @return type */ @@ -395,56 +341,6 @@ public void setStatus(@jakarta.annotation.Nonnull StatusEnum status) { this.status = status; } - public SmartTransferTicket dvpExecutionStatus( - @jakarta.annotation.Nullable DvpExecutionStatusEnum dvpExecutionStatus) { - this.dvpExecutionStatus = dvpExecutionStatus; - return this; - } - - /** - * Current status of DVP execution - * - * @return dvpExecutionStatus - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DVP_EXECUTION_STATUS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public DvpExecutionStatusEnum getDvpExecutionStatus() { - return dvpExecutionStatus; - } - - @JsonProperty(JSON_PROPERTY_DVP_EXECUTION_STATUS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDvpExecutionStatus( - @jakarta.annotation.Nullable DvpExecutionStatusEnum dvpExecutionStatus) { - this.dvpExecutionStatus = dvpExecutionStatus; - } - - public SmartTransferTicket orderCreatedByNetworkId( - @jakarta.annotation.Nullable String orderCreatedByNetworkId) { - this.orderCreatedByNetworkId = orderCreatedByNetworkId; - return this; - } - - /** - * ID of network profile that created order - * - * @return orderCreatedByNetworkId - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ORDER_CREATED_BY_NETWORK_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getOrderCreatedByNetworkId() { - return orderCreatedByNetworkId; - } - - @JsonProperty(JSON_PROPERTY_ORDER_CREATED_BY_NETWORK_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOrderCreatedByNetworkId( - @jakarta.annotation.Nullable String orderCreatedByNetworkId) { - this.orderCreatedByNetworkId = orderCreatedByNetworkId; - } - public SmartTransferTicket terms( @jakarta.annotation.Nullable List terms) { this.terms = terms; @@ -844,9 +740,6 @@ public boolean equals(Object o) { && Objects.equals(this.type, smartTransferTicket.type) && Objects.equals(this.direction, smartTransferTicket.direction) && Objects.equals(this.status, smartTransferTicket.status) - && Objects.equals(this.dvpExecutionStatus, smartTransferTicket.dvpExecutionStatus) - && Objects.equals( - this.orderCreatedByNetworkId, smartTransferTicket.orderCreatedByNetworkId) && Objects.equals(this.terms, smartTransferTicket.terms) && Objects.equals(this.expiresIn, smartTransferTicket.expiresIn) && Objects.equals(this.expiresAt, smartTransferTicket.expiresAt) @@ -874,8 +767,6 @@ public int hashCode() { type, direction, status, - dvpExecutionStatus, - orderCreatedByNetworkId, terms, expiresIn, expiresAt, @@ -902,12 +793,6 @@ public String toString() { sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" direction: ").append(toIndentedString(direction)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append(" dvpExecutionStatus: ") - .append(toIndentedString(dvpExecutionStatus)) - .append("\n"); - sb.append(" orderCreatedByNetworkId: ") - .append(toIndentedString(orderCreatedByNetworkId)) - .append("\n"); sb.append(" terms: ").append(toIndentedString(terms)).append("\n"); sb.append(" expiresIn: ").append(toIndentedString(expiresIn)).append("\n"); sb.append(" expiresAt: ").append(toIndentedString(expiresAt)).append("\n"); @@ -1015,27 +900,6 @@ public String toUrlQueryString(String prefix) { ApiClient.urlEncode(ApiClient.valueToString(getStatus())))); } - // add `dvpExecutionStatus` to the URL query string - if (getDvpExecutionStatus() != null) { - joiner.add( - String.format( - "%sdvpExecutionStatus%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getDvpExecutionStatus())))); - } - - // add `orderCreatedByNetworkId` to the URL query string - if (getOrderCreatedByNetworkId() != null) { - joiner.add( - String.format( - "%sorderCreatedByNetworkId%s=%s", - prefix, - suffix, - ApiClient.urlEncode( - ApiClient.valueToString(getOrderCreatedByNetworkId())))); - } - // add `terms` to the URL query string if (getTerms() != null) { for (int i = 0; i < getTerms().size(); i++) { diff --git a/src/main/java/com/fireblocks/sdk/model/SmartTransferTicketFilteredResponse.java b/src/main/java/com/fireblocks/sdk/model/SmartTransferTicketFilteredResponse.java index 3a29b948..9cf34387 100644 --- a/src/main/java/com/fireblocks/sdk/model/SmartTransferTicketFilteredResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/SmartTransferTicketFilteredResponse.java @@ -40,7 +40,7 @@ public class SmartTransferTicketFilteredResponse { @jakarta.annotation.Nonnull private String after; public static final String JSON_PROPERTY_DATA = "data"; - @jakarta.annotation.Nonnull private List data = new ArrayList<>(); + @jakarta.annotation.Nonnull private List data; public SmartTransferTicketFilteredResponse() {} diff --git a/src/main/java/com/fireblocks/sdk/model/SmartTransferTicketTerm.java b/src/main/java/com/fireblocks/sdk/model/SmartTransferTicketTerm.java index 2c099bfc..17b2fac5 100644 --- a/src/main/java/com/fireblocks/sdk/model/SmartTransferTicketTerm.java +++ b/src/main/java/com/fireblocks/sdk/model/SmartTransferTicketTerm.java @@ -29,7 +29,6 @@ SmartTransferTicketTerm.JSON_PROPERTY_TICKET_ID, SmartTransferTicketTerm.JSON_PROPERTY_ASSET, SmartTransferTicketTerm.JSON_PROPERTY_AMOUNT, - SmartTransferTicketTerm.JSON_PROPERTY_DVP_SRC_DST_VAULT_ID, SmartTransferTicketTerm.JSON_PROPERTY_AMOUNT_USD, SmartTransferTicketTerm.JSON_PROPERTY_FROM_NETWORK_ID, SmartTransferTicketTerm.JSON_PROPERTY_FROM_NETWORK_ID_NAME, @@ -58,9 +57,6 @@ public class SmartTransferTicketTerm { public static final String JSON_PROPERTY_AMOUNT = "amount"; @jakarta.annotation.Nonnull private String amount; - public static final String JSON_PROPERTY_DVP_SRC_DST_VAULT_ID = "dvpSrcDstVaultId"; - @jakarta.annotation.Nullable private String dvpSrcDstVaultId; - public static final String JSON_PROPERTY_AMOUNT_USD = "amountUsd"; @jakarta.annotation.Nullable private String amountUsd; @@ -325,30 +321,6 @@ public void setAmount(@jakarta.annotation.Nonnull String amount) { this.amount = amount; } - public SmartTransferTicketTerm dvpSrcDstVaultId( - @jakarta.annotation.Nullable String dvpSrcDstVaultId) { - this.dvpSrcDstVaultId = dvpSrcDstVaultId; - return this; - } - - /** - * Identifier of the source and destination vault for DVP execution - * - * @return dvpSrcDstVaultId - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DVP_SRC_DST_VAULT_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getDvpSrcDstVaultId() { - return dvpSrcDstVaultId; - } - - @JsonProperty(JSON_PROPERTY_DVP_SRC_DST_VAULT_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDvpSrcDstVaultId(@jakarta.annotation.Nullable String dvpSrcDstVaultId) { - this.dvpSrcDstVaultId = dvpSrcDstVaultId; - } - public SmartTransferTicketTerm amountUsd(@jakarta.annotation.Nullable String amountUsd) { this.amountUsd = amountUsd; return this; @@ -618,7 +590,6 @@ public boolean equals(Object o) { && Objects.equals(this.ticketId, smartTransferTicketTerm.ticketId) && Objects.equals(this.asset, smartTransferTicketTerm.asset) && Objects.equals(this.amount, smartTransferTicketTerm.amount) - && Objects.equals(this.dvpSrcDstVaultId, smartTransferTicketTerm.dvpSrcDstVaultId) && Objects.equals(this.amountUsd, smartTransferTicketTerm.amountUsd) && Objects.equals(this.fromNetworkId, smartTransferTicketTerm.fromNetworkId) && Objects.equals(this.fromNetworkIdName, smartTransferTicketTerm.fromNetworkIdName) @@ -639,7 +610,6 @@ public int hashCode() { ticketId, asset, amount, - dvpSrcDstVaultId, amountUsd, fromNetworkId, fromNetworkIdName, @@ -661,7 +631,6 @@ public String toString() { sb.append(" ticketId: ").append(toIndentedString(ticketId)).append("\n"); sb.append(" asset: ").append(toIndentedString(asset)).append("\n"); sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); - sb.append(" dvpSrcDstVaultId: ").append(toIndentedString(dvpSrcDstVaultId)).append("\n"); sb.append(" amountUsd: ").append(toIndentedString(amountUsd)).append("\n"); sb.append(" fromNetworkId: ").append(toIndentedString(fromNetworkId)).append("\n"); sb.append(" fromNetworkIdName: ") @@ -760,16 +729,6 @@ public String toUrlQueryString(String prefix) { ApiClient.urlEncode(ApiClient.valueToString(getAmount())))); } - // add `dvpSrcDstVaultId` to the URL query string - if (getDvpSrcDstVaultId() != null) { - joiner.add( - String.format( - "%sdvpSrcDstVaultId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getDvpSrcDstVaultId())))); - } - // add `amountUsd` to the URL query string if (getAmountUsd() != null) { joiner.add( diff --git a/src/main/java/com/fireblocks/sdk/model/SolParameter.java b/src/main/java/com/fireblocks/sdk/model/SolParameter.java deleted file mode 100644 index 7dcf0a45..00000000 --- a/src/main/java/com/fireblocks/sdk/model/SolParameter.java +++ /dev/null @@ -1,186 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** The arguments of the instruction */ -@JsonPropertyOrder({SolParameter.JSON_PROPERTY_NAME, SolParameter.JSON_PROPERTY_TYPE}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class SolParameter { - public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nonnull private String name; - - public static final String JSON_PROPERTY_TYPE = "type"; - @jakarta.annotation.Nonnull private IdlType type; - - public SolParameter() {} - - @JsonCreator - public SolParameter( - @JsonProperty(value = JSON_PROPERTY_NAME, required = true) String name, - @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) IdlType type) { - this.name = name; - this.type = type; - } - - public SolParameter name(@jakarta.annotation.Nonnull String name) { - this.name = name; - return this; - } - - /** - * The name of the parameter - * - * @return name - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getName() { - return name; - } - - @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(@jakarta.annotation.Nonnull String name) { - this.name = name; - } - - public SolParameter type(@jakarta.annotation.Nonnull IdlType type) { - this.type = type; - return this; - } - - /** - * Get type - * - * @return type - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public IdlType getType() { - return type; - } - - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(@jakarta.annotation.Nonnull IdlType type) { - this.type = type; - } - - /** Return true if this SolParameter object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SolParameter solParameter = (SolParameter) o; - return Objects.equals(this.name, solParameter.name) - && Objects.equals(this.type, solParameter.type); - } - - @Override - public int hashCode() { - return Objects.hash(name, type); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SolParameter {\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `name` to the URL query string - if (getName() != null) { - joiner.add( - String.format( - "%sname%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getName())))); - } - - // add `type` to the URL query string - if (getType() != null) { - joiner.add( - String.format( - "%stype%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getType())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/SolParameterWithValue.java b/src/main/java/com/fireblocks/sdk/model/SolParameterWithValue.java deleted file mode 100644 index babb36e9..00000000 --- a/src/main/java/com/fireblocks/sdk/model/SolParameterWithValue.java +++ /dev/null @@ -1,230 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** SolParameterWithValue */ -@JsonPropertyOrder({ - SolParameterWithValue.JSON_PROPERTY_VALUE, - SolParameterWithValue.JSON_PROPERTY_NAME, - SolParameterWithValue.JSON_PROPERTY_TYPE -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class SolParameterWithValue { - public static final String JSON_PROPERTY_VALUE = "value"; - @jakarta.annotation.Nonnull private String value; - - public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nonnull private String name; - - public static final String JSON_PROPERTY_TYPE = "type"; - @jakarta.annotation.Nonnull private IdlType type; - - public SolParameterWithValue() {} - - @JsonCreator - public SolParameterWithValue( - @JsonProperty(value = JSON_PROPERTY_VALUE, required = true) String value, - @JsonProperty(value = JSON_PROPERTY_NAME, required = true) String name, - @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) IdlType type) { - this.value = value; - this.name = name; - this.type = type; - } - - public SolParameterWithValue value(@jakarta.annotation.Nonnull String value) { - this.value = value; - return this; - } - - /** - * The value of the parameter - * - * @return value - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_VALUE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getValue() { - return value; - } - - @JsonProperty(JSON_PROPERTY_VALUE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setValue(@jakarta.annotation.Nonnull String value) { - this.value = value; - } - - public SolParameterWithValue name(@jakarta.annotation.Nonnull String name) { - this.name = name; - return this; - } - - /** - * The name of the parameter - * - * @return name - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getName() { - return name; - } - - @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(@jakarta.annotation.Nonnull String name) { - this.name = name; - } - - public SolParameterWithValue type(@jakarta.annotation.Nonnull IdlType type) { - this.type = type; - return this; - } - - /** - * Get type - * - * @return type - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public IdlType getType() { - return type; - } - - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(@jakarta.annotation.Nonnull IdlType type) { - this.type = type; - } - - /** Return true if this SolParameterWithValue object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SolParameterWithValue solParameterWithValue = (SolParameterWithValue) o; - return Objects.equals(this.value, solParameterWithValue.value) - && Objects.equals(this.name, solParameterWithValue.name) - && Objects.equals(this.type, solParameterWithValue.type); - } - - @Override - public int hashCode() { - return Objects.hash(value, name, type); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SolParameterWithValue {\n"); - sb.append(" value: ").append(toIndentedString(value)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `value` to the URL query string - if (getValue() != null) { - joiner.add( - String.format( - "%svalue%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getValue())))); - } - - // add `name` to the URL query string - if (getName() != null) { - joiner.add( - String.format( - "%sname%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getName())))); - } - - // add `type` to the URL query string - if (getType() != null) { - joiner.add( - String.format( - "%stype%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getType())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/SolanaBlockchainData.java b/src/main/java/com/fireblocks/sdk/model/SolanaBlockchainData.java deleted file mode 100644 index f30595fc..00000000 --- a/src/main/java/com/fireblocks/sdk/model/SolanaBlockchainData.java +++ /dev/null @@ -1,212 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.math.BigDecimal; -import java.util.Objects; -import java.util.StringJoiner; - -/** - * Additional fields per blockchain - can be empty or missing if not initialized or no additional - * info exists. The type depends on the chainDescriptor value. For Solana (SOL), stake account - * address. For Ethereum (ETH), an empty object is returned as no specific data is available. - */ -@JsonPropertyOrder({ - SolanaBlockchainData.JSON_PROPERTY_STAKE_ACCOUNT_ADDRESS, - SolanaBlockchainData.JSON_PROPERTY_STAKE_ACCOUNT_DERIVATION_CHANGE_VALUE -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class SolanaBlockchainData { - public static final String JSON_PROPERTY_STAKE_ACCOUNT_ADDRESS = "stakeAccountAddress"; - @jakarta.annotation.Nonnull private String stakeAccountAddress; - - public static final String JSON_PROPERTY_STAKE_ACCOUNT_DERIVATION_CHANGE_VALUE = - "stakeAccountDerivationChangeValue"; - @jakarta.annotation.Nonnull private BigDecimal stakeAccountDerivationChangeValue; - - public SolanaBlockchainData() {} - - @JsonCreator - public SolanaBlockchainData( - @JsonProperty(value = JSON_PROPERTY_STAKE_ACCOUNT_ADDRESS, required = true) - String stakeAccountAddress, - @JsonProperty( - value = JSON_PROPERTY_STAKE_ACCOUNT_DERIVATION_CHANGE_VALUE, - required = true) - BigDecimal stakeAccountDerivationChangeValue) { - this.stakeAccountAddress = stakeAccountAddress; - this.stakeAccountDerivationChangeValue = stakeAccountDerivationChangeValue; - } - - public SolanaBlockchainData stakeAccountAddress( - @jakarta.annotation.Nonnull String stakeAccountAddress) { - this.stakeAccountAddress = stakeAccountAddress; - return this; - } - - /** - * The stake account address matching the stakeAccountId. - * - * @return stakeAccountAddress - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_STAKE_ACCOUNT_ADDRESS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getStakeAccountAddress() { - return stakeAccountAddress; - } - - @JsonProperty(JSON_PROPERTY_STAKE_ACCOUNT_ADDRESS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStakeAccountAddress(@jakarta.annotation.Nonnull String stakeAccountAddress) { - this.stakeAccountAddress = stakeAccountAddress; - } - - public SolanaBlockchainData stakeAccountDerivationChangeValue( - @jakarta.annotation.Nonnull BigDecimal stakeAccountDerivationChangeValue) { - this.stakeAccountDerivationChangeValue = stakeAccountDerivationChangeValue; - return this; - } - - /** - * The value of the change level in the BIP44 path which was used to derive the stake account - * address - * - * @return stakeAccountDerivationChangeValue - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_STAKE_ACCOUNT_DERIVATION_CHANGE_VALUE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public BigDecimal getStakeAccountDerivationChangeValue() { - return stakeAccountDerivationChangeValue; - } - - @JsonProperty(JSON_PROPERTY_STAKE_ACCOUNT_DERIVATION_CHANGE_VALUE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStakeAccountDerivationChangeValue( - @jakarta.annotation.Nonnull BigDecimal stakeAccountDerivationChangeValue) { - this.stakeAccountDerivationChangeValue = stakeAccountDerivationChangeValue; - } - - /** Return true if this SolanaBlockchainData object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SolanaBlockchainData solanaBlockchainData = (SolanaBlockchainData) o; - return Objects.equals(this.stakeAccountAddress, solanaBlockchainData.stakeAccountAddress) - && Objects.equals( - this.stakeAccountDerivationChangeValue, - solanaBlockchainData.stakeAccountDerivationChangeValue); - } - - @Override - public int hashCode() { - return Objects.hash(stakeAccountAddress, stakeAccountDerivationChangeValue); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SolanaBlockchainData {\n"); - sb.append(" stakeAccountAddress: ") - .append(toIndentedString(stakeAccountAddress)) - .append("\n"); - sb.append(" stakeAccountDerivationChangeValue: ") - .append(toIndentedString(stakeAccountDerivationChangeValue)) - .append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `stakeAccountAddress` to the URL query string - if (getStakeAccountAddress() != null) { - joiner.add( - String.format( - "%sstakeAccountAddress%s=%s", - prefix, - suffix, - ApiClient.urlEncode( - ApiClient.valueToString(getStakeAccountAddress())))); - } - - // add `stakeAccountDerivationChangeValue` to the URL query string - if (getStakeAccountDerivationChangeValue() != null) { - joiner.add( - String.format( - "%sstakeAccountDerivationChangeValue%s=%s", - prefix, - suffix, - ApiClient.urlEncode( - ApiClient.valueToString( - getStakeAccountDerivationChangeValue())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/CollectionMintResponseDto.java b/src/main/java/com/fireblocks/sdk/model/SolanaBlockchainDataDto.java similarity index 59% rename from src/main/java/com/fireblocks/sdk/model/CollectionMintResponseDto.java rename to src/main/java/com/fireblocks/sdk/model/SolanaBlockchainDataDto.java index d328a351..0db02850 100644 --- a/src/main/java/com/fireblocks/sdk/model/CollectionMintResponseDto.java +++ b/src/main/java/com/fireblocks/sdk/model/SolanaBlockchainDataDto.java @@ -21,47 +21,49 @@ import java.util.Objects; import java.util.StringJoiner; -/** CollectionMintResponseDto */ -@JsonPropertyOrder({CollectionMintResponseDto.JSON_PROPERTY_TX_ID}) +/** SolanaBlockchainDataDto */ +@JsonPropertyOrder({SolanaBlockchainDataDto.JSON_PROPERTY_STAKE_ACCOUNT_ADDRESS}) @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") -public class CollectionMintResponseDto { - public static final String JSON_PROPERTY_TX_ID = "txId"; - @jakarta.annotation.Nonnull private String txId; +public class SolanaBlockchainDataDto { + public static final String JSON_PROPERTY_STAKE_ACCOUNT_ADDRESS = "stakeAccountAddress"; + @jakarta.annotation.Nonnull private String stakeAccountAddress; - public CollectionMintResponseDto() {} + public SolanaBlockchainDataDto() {} @JsonCreator - public CollectionMintResponseDto( - @JsonProperty(value = JSON_PROPERTY_TX_ID, required = true) String txId) { - this.txId = txId; + public SolanaBlockchainDataDto( + @JsonProperty(value = JSON_PROPERTY_STAKE_ACCOUNT_ADDRESS, required = true) + String stakeAccountAddress) { + this.stakeAccountAddress = stakeAccountAddress; } - public CollectionMintResponseDto txId(@jakarta.annotation.Nonnull String txId) { - this.txId = txId; + public SolanaBlockchainDataDto stakeAccountAddress( + @jakarta.annotation.Nonnull String stakeAccountAddress) { + this.stakeAccountAddress = stakeAccountAddress; return this; } /** - * Transaction Id for the mint operation + * The stake account address matching the stakeAccountId. * - * @return txId + * @return stakeAccountAddress */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TX_ID) + @JsonProperty(JSON_PROPERTY_STAKE_ACCOUNT_ADDRESS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getTxId() { - return txId; + public String getStakeAccountAddress() { + return stakeAccountAddress; } - @JsonProperty(JSON_PROPERTY_TX_ID) + @JsonProperty(JSON_PROPERTY_STAKE_ACCOUNT_ADDRESS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTxId(@jakarta.annotation.Nonnull String txId) { - this.txId = txId; + public void setStakeAccountAddress(@jakarta.annotation.Nonnull String stakeAccountAddress) { + this.stakeAccountAddress = stakeAccountAddress; } - /** Return true if this CollectionMintResponseDto object is equal to o. */ + /** Return true if this SolanaBlockchainDataDto object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -70,20 +72,23 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - CollectionMintResponseDto collectionMintResponseDto = (CollectionMintResponseDto) o; - return Objects.equals(this.txId, collectionMintResponseDto.txId); + SolanaBlockchainDataDto solanaBlockchainDataDto = (SolanaBlockchainDataDto) o; + return Objects.equals( + this.stakeAccountAddress, solanaBlockchainDataDto.stakeAccountAddress); } @Override public int hashCode() { - return Objects.hash(txId); + return Objects.hash(stakeAccountAddress); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class CollectionMintResponseDto {\n"); - sb.append(" txId: ").append(toIndentedString(txId)).append("\n"); + sb.append("class SolanaBlockchainDataDto {\n"); + sb.append(" stakeAccountAddress: ") + .append(toIndentedString(stakeAccountAddress)) + .append("\n"); sb.append("}"); return sb.toString(); } @@ -131,14 +136,15 @@ public String toUrlQueryString(String prefix) { StringJoiner joiner = new StringJoiner("&"); - // add `txId` to the URL query string - if (getTxId() != null) { + // add `stakeAccountAddress` to the URL query string + if (getStakeAccountAddress() != null) { joiner.add( String.format( - "%stxId%s=%s", + "%sstakeAccountAddress%s=%s", prefix, suffix, - ApiClient.urlEncode(ApiClient.valueToString(getTxId())))); + ApiClient.urlEncode( + ApiClient.valueToString(getStakeAccountAddress())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/SolanaConfig.java b/src/main/java/com/fireblocks/sdk/model/SolanaConfig.java deleted file mode 100644 index e6f2f0b0..00000000 --- a/src/main/java/com/fireblocks/sdk/model/SolanaConfig.java +++ /dev/null @@ -1,231 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fireblocks.sdk.ApiClient; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** The Solana configuration of the contract */ -@JsonPropertyOrder({SolanaConfig.JSON_PROPERTY_EXTENSIONS, SolanaConfig.JSON_PROPERTY_TYPE}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class SolanaConfig { - public static final String JSON_PROPERTY_EXTENSIONS = "extensions"; - @jakarta.annotation.Nullable private List extensions = new ArrayList<>(); - - /** The type of the contract. */ - public enum TypeEnum { - SPL(String.valueOf("SPL")), - - TOKEN2022(String.valueOf("TOKEN2022")), - - PROGRAM(String.valueOf("PROGRAM")); - - private String value; - - TypeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static TypeEnum fromValue(String value) { - for (TypeEnum b : TypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_TYPE = "type"; - @jakarta.annotation.Nullable private TypeEnum type; - - public SolanaConfig() {} - - public SolanaConfig extensions(@jakarta.annotation.Nullable List extensions) { - this.extensions = extensions; - return this; - } - - public SolanaConfig addExtensionsItem(String extensionsItem) { - if (this.extensions == null) { - this.extensions = new ArrayList<>(); - } - this.extensions.add(extensionsItem); - return this; - } - - /** - * The extensions that the contract implements. - * - * @return extensions - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EXTENSIONS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getExtensions() { - return extensions; - } - - @JsonProperty(JSON_PROPERTY_EXTENSIONS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setExtensions(@jakarta.annotation.Nullable List extensions) { - this.extensions = extensions; - } - - public SolanaConfig type(@jakarta.annotation.Nullable TypeEnum type) { - this.type = type; - return this; - } - - /** - * The type of the contract. - * - * @return type - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public TypeEnum getType() { - return type; - } - - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(@jakarta.annotation.Nullable TypeEnum type) { - this.type = type; - } - - /** Return true if this SolanaConfig object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SolanaConfig solanaConfig = (SolanaConfig) o; - return Objects.equals(this.extensions, solanaConfig.extensions) - && Objects.equals(this.type, solanaConfig.type); - } - - @Override - public int hashCode() { - return Objects.hash(extensions, type); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SolanaConfig {\n"); - sb.append(" extensions: ").append(toIndentedString(extensions)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `extensions` to the URL query string - if (getExtensions() != null) { - for (int i = 0; i < getExtensions().size(); i++) { - joiner.add( - String.format( - "%sextensions%s%s=%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode( - ApiClient.valueToString(getExtensions().get(i))))); - } - } - - // add `type` to the URL query string - if (getType() != null) { - joiner.add( - String.format( - "%stype%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getType())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/SolanaInstruction.java b/src/main/java/com/fireblocks/sdk/model/SolanaInstruction.java deleted file mode 100644 index 2d8dcebc..00000000 --- a/src/main/java/com/fireblocks/sdk/model/SolanaInstruction.java +++ /dev/null @@ -1,336 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.math.BigDecimal; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** SolanaInstruction */ -@JsonPropertyOrder({ - SolanaInstruction.JSON_PROPERTY_NAME, - SolanaInstruction.JSON_PROPERTY_DISCRIMINATOR, - SolanaInstruction.JSON_PROPERTY_ACCOUNTS, - SolanaInstruction.JSON_PROPERTY_ARGS -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class SolanaInstruction { - public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nonnull private String name; - - public static final String JSON_PROPERTY_DISCRIMINATOR = "discriminator"; - @jakarta.annotation.Nonnull private List discriminator = new ArrayList<>(); - - public static final String JSON_PROPERTY_ACCOUNTS = "accounts"; - @jakarta.annotation.Nonnull private List accounts = new ArrayList<>(); - - public static final String JSON_PROPERTY_ARGS = "args"; - @jakarta.annotation.Nonnull private List args = new ArrayList<>(); - - public SolanaInstruction() {} - - @JsonCreator - public SolanaInstruction( - @JsonProperty(value = JSON_PROPERTY_NAME, required = true) String name, - @JsonProperty(value = JSON_PROPERTY_DISCRIMINATOR, required = true) - List discriminator, - @JsonProperty(value = JSON_PROPERTY_ACCOUNTS, required = true) - List accounts, - @JsonProperty(value = JSON_PROPERTY_ARGS, required = true) List args) { - this.name = name; - this.discriminator = discriminator; - this.accounts = accounts; - this.args = args; - } - - public SolanaInstruction name(@jakarta.annotation.Nonnull String name) { - this.name = name; - return this; - } - - /** - * The name of the instruction - * - * @return name - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getName() { - return name; - } - - @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(@jakarta.annotation.Nonnull String name) { - this.name = name; - } - - public SolanaInstruction discriminator( - @jakarta.annotation.Nonnull List discriminator) { - this.discriminator = discriminator; - return this; - } - - public SolanaInstruction addDiscriminatorItem(BigDecimal discriminatorItem) { - if (this.discriminator == null) { - this.discriminator = new ArrayList<>(); - } - this.discriminator.add(discriminatorItem); - return this; - } - - /** - * The discriminator for the instruction. Acts as a function selector - * - * @return discriminator - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DISCRIMINATOR) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getDiscriminator() { - return discriminator; - } - - @JsonProperty(JSON_PROPERTY_DISCRIMINATOR) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDiscriminator(@jakarta.annotation.Nonnull List discriminator) { - this.discriminator = discriminator; - } - - public SolanaInstruction accounts(@jakarta.annotation.Nonnull List accounts) { - this.accounts = accounts; - return this; - } - - public SolanaInstruction addAccountsItem(SOLAccount accountsItem) { - if (this.accounts == null) { - this.accounts = new ArrayList<>(); - } - this.accounts.add(accountsItem); - return this; - } - - /** - * Get accounts - * - * @return accounts - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ACCOUNTS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getAccounts() { - return accounts; - } - - @JsonProperty(JSON_PROPERTY_ACCOUNTS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAccounts(@jakarta.annotation.Nonnull List accounts) { - this.accounts = accounts; - } - - public SolanaInstruction args(@jakarta.annotation.Nonnull List args) { - this.args = args; - return this; - } - - public SolanaInstruction addArgsItem(SolParameter argsItem) { - if (this.args == null) { - this.args = new ArrayList<>(); - } - this.args.add(argsItem); - return this; - } - - /** - * Get args - * - * @return args - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ARGS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getArgs() { - return args; - } - - @JsonProperty(JSON_PROPERTY_ARGS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setArgs(@jakarta.annotation.Nonnull List args) { - this.args = args; - } - - /** Return true if this SolanaInstruction object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SolanaInstruction solanaInstruction = (SolanaInstruction) o; - return Objects.equals(this.name, solanaInstruction.name) - && Objects.equals(this.discriminator, solanaInstruction.discriminator) - && Objects.equals(this.accounts, solanaInstruction.accounts) - && Objects.equals(this.args, solanaInstruction.args); - } - - @Override - public int hashCode() { - return Objects.hash(name, discriminator, accounts, args); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SolanaInstruction {\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" discriminator: ").append(toIndentedString(discriminator)).append("\n"); - sb.append(" accounts: ").append(toIndentedString(accounts)).append("\n"); - sb.append(" args: ").append(toIndentedString(args)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `name` to the URL query string - if (getName() != null) { - joiner.add( - String.format( - "%sname%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getName())))); - } - - // add `discriminator` to the URL query string - if (getDiscriminator() != null) { - for (int i = 0; i < getDiscriminator().size(); i++) { - if (getDiscriminator().get(i) != null) { - joiner.add( - String.format( - "%sdiscriminator%s%s=%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode( - ApiClient.valueToString(getDiscriminator().get(i))))); - } - } - } - - // add `accounts` to the URL query string - if (getAccounts() != null) { - for (int i = 0; i < getAccounts().size(); i++) { - if (getAccounts().get(i) != null) { - joiner.add( - getAccounts() - .get(i) - .toUrlQueryString( - String.format( - "%saccounts%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } - } - - // add `args` to the URL query string - if (getArgs() != null) { - for (int i = 0; i < getArgs().size(); i++) { - if (getArgs().get(i) != null) { - joiner.add( - getArgs() - .get(i) - .toUrlQueryString( - String.format( - "%sargs%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/SolanaInstructionWithValue.java b/src/main/java/com/fireblocks/sdk/model/SolanaInstructionWithValue.java deleted file mode 100644 index e1eaea2b..00000000 --- a/src/main/java/com/fireblocks/sdk/model/SolanaInstructionWithValue.java +++ /dev/null @@ -1,339 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.math.BigDecimal; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** SolanaInstructionWithValue */ -@JsonPropertyOrder({ - SolanaInstructionWithValue.JSON_PROPERTY_NAME, - SolanaInstructionWithValue.JSON_PROPERTY_DISCRIMINATOR, - SolanaInstructionWithValue.JSON_PROPERTY_ACCOUNTS, - SolanaInstructionWithValue.JSON_PROPERTY_ARGS -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class SolanaInstructionWithValue { - public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nonnull private String name; - - public static final String JSON_PROPERTY_DISCRIMINATOR = "discriminator"; - @jakarta.annotation.Nonnull private List discriminator = new ArrayList<>(); - - public static final String JSON_PROPERTY_ACCOUNTS = "accounts"; - @jakarta.annotation.Nonnull private List accounts = new ArrayList<>(); - - public static final String JSON_PROPERTY_ARGS = "args"; - @jakarta.annotation.Nonnull private List args = new ArrayList<>(); - - public SolanaInstructionWithValue() {} - - @JsonCreator - public SolanaInstructionWithValue( - @JsonProperty(value = JSON_PROPERTY_NAME, required = true) String name, - @JsonProperty(value = JSON_PROPERTY_DISCRIMINATOR, required = true) - List discriminator, - @JsonProperty(value = JSON_PROPERTY_ACCOUNTS, required = true) - List accounts, - @JsonProperty(value = JSON_PROPERTY_ARGS, required = true) - List args) { - this.name = name; - this.discriminator = discriminator; - this.accounts = accounts; - this.args = args; - } - - public SolanaInstructionWithValue name(@jakarta.annotation.Nonnull String name) { - this.name = name; - return this; - } - - /** - * The name of the instruction - * - * @return name - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getName() { - return name; - } - - @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(@jakarta.annotation.Nonnull String name) { - this.name = name; - } - - public SolanaInstructionWithValue discriminator( - @jakarta.annotation.Nonnull List discriminator) { - this.discriminator = discriminator; - return this; - } - - public SolanaInstructionWithValue addDiscriminatorItem(BigDecimal discriminatorItem) { - if (this.discriminator == null) { - this.discriminator = new ArrayList<>(); - } - this.discriminator.add(discriminatorItem); - return this; - } - - /** - * The discriminator for the instruction. Acts as a function selector - * - * @return discriminator - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DISCRIMINATOR) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getDiscriminator() { - return discriminator; - } - - @JsonProperty(JSON_PROPERTY_DISCRIMINATOR) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDiscriminator(@jakarta.annotation.Nonnull List discriminator) { - this.discriminator = discriminator; - } - - public SolanaInstructionWithValue accounts( - @jakarta.annotation.Nonnull List accounts) { - this.accounts = accounts; - return this; - } - - public SolanaInstructionWithValue addAccountsItem(SOLAccountWithValue accountsItem) { - if (this.accounts == null) { - this.accounts = new ArrayList<>(); - } - this.accounts.add(accountsItem); - return this; - } - - /** - * Get accounts - * - * @return accounts - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ACCOUNTS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getAccounts() { - return accounts; - } - - @JsonProperty(JSON_PROPERTY_ACCOUNTS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAccounts(@jakarta.annotation.Nonnull List accounts) { - this.accounts = accounts; - } - - public SolanaInstructionWithValue args( - @jakarta.annotation.Nonnull List args) { - this.args = args; - return this; - } - - public SolanaInstructionWithValue addArgsItem(SolParameterWithValue argsItem) { - if (this.args == null) { - this.args = new ArrayList<>(); - } - this.args.add(argsItem); - return this; - } - - /** - * The arguments of the instruction - * - * @return args - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ARGS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getArgs() { - return args; - } - - @JsonProperty(JSON_PROPERTY_ARGS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setArgs(@jakarta.annotation.Nonnull List args) { - this.args = args; - } - - /** Return true if this SolanaInstructionWithValue object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SolanaInstructionWithValue solanaInstructionWithValue = (SolanaInstructionWithValue) o; - return Objects.equals(this.name, solanaInstructionWithValue.name) - && Objects.equals(this.discriminator, solanaInstructionWithValue.discriminator) - && Objects.equals(this.accounts, solanaInstructionWithValue.accounts) - && Objects.equals(this.args, solanaInstructionWithValue.args); - } - - @Override - public int hashCode() { - return Objects.hash(name, discriminator, accounts, args); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SolanaInstructionWithValue {\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" discriminator: ").append(toIndentedString(discriminator)).append("\n"); - sb.append(" accounts: ").append(toIndentedString(accounts)).append("\n"); - sb.append(" args: ").append(toIndentedString(args)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `name` to the URL query string - if (getName() != null) { - joiner.add( - String.format( - "%sname%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getName())))); - } - - // add `discriminator` to the URL query string - if (getDiscriminator() != null) { - for (int i = 0; i < getDiscriminator().size(); i++) { - if (getDiscriminator().get(i) != null) { - joiner.add( - String.format( - "%sdiscriminator%s%s=%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode( - ApiClient.valueToString(getDiscriminator().get(i))))); - } - } - } - - // add `accounts` to the URL query string - if (getAccounts() != null) { - for (int i = 0; i < getAccounts().size(); i++) { - if (getAccounts().get(i) != null) { - joiner.add( - getAccounts() - .get(i) - .toUrlQueryString( - String.format( - "%saccounts%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } - } - - // add `args` to the URL query string - if (getArgs() != null) { - for (int i = 0; i < getArgs().size(); i++) { - if (getArgs().get(i) != null) { - joiner.add( - getArgs() - .get(i) - .toUrlQueryString( - String.format( - "%sargs%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/SolanaSimpleCreateParams.java b/src/main/java/com/fireblocks/sdk/model/SolanaSimpleCreateParams.java deleted file mode 100644 index 4fa53f65..00000000 --- a/src/main/java/com/fireblocks/sdk/model/SolanaSimpleCreateParams.java +++ /dev/null @@ -1,230 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** SolanaSimpleCreateParams */ -@JsonPropertyOrder({ - SolanaSimpleCreateParams.JSON_PROPERTY_NAME, - SolanaSimpleCreateParams.JSON_PROPERTY_SYMBOL, - SolanaSimpleCreateParams.JSON_PROPERTY_DECIMALS -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class SolanaSimpleCreateParams { - public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nonnull private String name; - - public static final String JSON_PROPERTY_SYMBOL = "symbol"; - @jakarta.annotation.Nonnull private String symbol; - - public static final String JSON_PROPERTY_DECIMALS = "decimals"; - @jakarta.annotation.Nonnull private Integer decimals; - - public SolanaSimpleCreateParams() {} - - @JsonCreator - public SolanaSimpleCreateParams( - @JsonProperty(value = JSON_PROPERTY_NAME, required = true) String name, - @JsonProperty(value = JSON_PROPERTY_SYMBOL, required = true) String symbol, - @JsonProperty(value = JSON_PROPERTY_DECIMALS, required = true) Integer decimals) { - this.name = name; - this.symbol = symbol; - this.decimals = decimals; - } - - public SolanaSimpleCreateParams name(@jakarta.annotation.Nonnull String name) { - this.name = name; - return this; - } - - /** - * The name of the token or asset being created. - * - * @return name - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getName() { - return name; - } - - @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(@jakarta.annotation.Nonnull String name) { - this.name = name; - } - - public SolanaSimpleCreateParams symbol(@jakarta.annotation.Nonnull String symbol) { - this.symbol = symbol; - return this; - } - - /** - * The symbol for the token, typically an abbreviated representation. - * - * @return symbol - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SYMBOL) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getSymbol() { - return symbol; - } - - @JsonProperty(JSON_PROPERTY_SYMBOL) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSymbol(@jakarta.annotation.Nonnull String symbol) { - this.symbol = symbol; - } - - public SolanaSimpleCreateParams decimals(@jakarta.annotation.Nonnull Integer decimals) { - this.decimals = decimals; - return this; - } - - /** - * The number of decimal places the token supports (e.g., 9 for typical Solana tokens). - * - * @return decimals - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DECIMALS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getDecimals() { - return decimals; - } - - @JsonProperty(JSON_PROPERTY_DECIMALS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDecimals(@jakarta.annotation.Nonnull Integer decimals) { - this.decimals = decimals; - } - - /** Return true if this SolanaSimpleCreateParams object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SolanaSimpleCreateParams solanaSimpleCreateParams = (SolanaSimpleCreateParams) o; - return Objects.equals(this.name, solanaSimpleCreateParams.name) - && Objects.equals(this.symbol, solanaSimpleCreateParams.symbol) - && Objects.equals(this.decimals, solanaSimpleCreateParams.decimals); - } - - @Override - public int hashCode() { - return Objects.hash(name, symbol, decimals); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SolanaSimpleCreateParams {\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" symbol: ").append(toIndentedString(symbol)).append("\n"); - sb.append(" decimals: ").append(toIndentedString(decimals)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `name` to the URL query string - if (getName() != null) { - joiner.add( - String.format( - "%sname%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getName())))); - } - - // add `symbol` to the URL query string - if (getSymbol() != null) { - joiner.add( - String.format( - "%ssymbol%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getSymbol())))); - } - - // add `decimals` to the URL query string - if (getDecimals() != null) { - joiner.add( - String.format( - "%sdecimals%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getDecimals())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/SourceTransferPeerPath.java b/src/main/java/com/fireblocks/sdk/model/SourceTransferPeerPath.java index 4e627027..89edfdc3 100644 --- a/src/main/java/com/fireblocks/sdk/model/SourceTransferPeerPath.java +++ b/src/main/java/com/fireblocks/sdk/model/SourceTransferPeerPath.java @@ -28,8 +28,7 @@ SourceTransferPeerPath.JSON_PROPERTY_SUB_TYPE, SourceTransferPeerPath.JSON_PROPERTY_ID, SourceTransferPeerPath.JSON_PROPERTY_NAME, - SourceTransferPeerPath.JSON_PROPERTY_WALLET_ID, - SourceTransferPeerPath.JSON_PROPERTY_IS_COLLATERAL + SourceTransferPeerPath.JSON_PROPERTY_WALLET_ID }) @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", @@ -50,9 +49,6 @@ public class SourceTransferPeerPath { public static final String JSON_PROPERTY_WALLET_ID = "walletId"; @jakarta.annotation.Nullable private UUID walletId; - public static final String JSON_PROPERTY_IS_COLLATERAL = "isCollateral"; - @jakarta.annotation.Nullable private Boolean isCollateral; - public SourceTransferPeerPath() {} @JsonCreator @@ -177,29 +173,6 @@ public void setWalletId(@jakarta.annotation.Nullable UUID walletId) { this.walletId = walletId; } - public SourceTransferPeerPath isCollateral(@jakarta.annotation.Nullable Boolean isCollateral) { - this.isCollateral = isCollateral; - return this; - } - - /** - * indicate if the source is collateral account - * - * @return isCollateral - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_IS_COLLATERAL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getIsCollateral() { - return isCollateral; - } - - @JsonProperty(JSON_PROPERTY_IS_COLLATERAL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIsCollateral(@jakarta.annotation.Nullable Boolean isCollateral) { - this.isCollateral = isCollateral; - } - /** Return true if this SourceTransferPeerPath object is equal to o. */ @Override public boolean equals(Object o) { @@ -214,13 +187,12 @@ public boolean equals(Object o) { && Objects.equals(this.subType, sourceTransferPeerPath.subType) && Objects.equals(this.id, sourceTransferPeerPath.id) && Objects.equals(this.name, sourceTransferPeerPath.name) - && Objects.equals(this.walletId, sourceTransferPeerPath.walletId) - && Objects.equals(this.isCollateral, sourceTransferPeerPath.isCollateral); + && Objects.equals(this.walletId, sourceTransferPeerPath.walletId); } @Override public int hashCode() { - return Objects.hash(type, subType, id, name, walletId, isCollateral); + return Objects.hash(type, subType, id, name, walletId); } @Override @@ -232,7 +204,6 @@ public String toString() { sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" walletId: ").append(toIndentedString(walletId)).append("\n"); - sb.append(" isCollateral: ").append(toIndentedString(isCollateral)).append("\n"); sb.append("}"); return sb.toString(); } @@ -328,16 +299,6 @@ public String toUrlQueryString(String prefix) { ApiClient.urlEncode(ApiClient.valueToString(getWalletId())))); } - // add `isCollateral` to the URL query string - if (getIsCollateral() != null) { - joiner.add( - String.format( - "%sisCollateral%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getIsCollateral())))); - } - return joiner.toString(); } } diff --git a/src/main/java/com/fireblocks/sdk/model/SourceTransferPeerPathResponse.java b/src/main/java/com/fireblocks/sdk/model/SourceTransferPeerPathResponse.java index 3e9caeac..34f86c50 100644 --- a/src/main/java/com/fireblocks/sdk/model/SourceTransferPeerPathResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/SourceTransferPeerPathResponse.java @@ -28,8 +28,7 @@ SourceTransferPeerPathResponse.JSON_PROPERTY_SUB_TYPE, SourceTransferPeerPathResponse.JSON_PROPERTY_ID, SourceTransferPeerPathResponse.JSON_PROPERTY_NAME, - SourceTransferPeerPathResponse.JSON_PROPERTY_WALLET_ID, - SourceTransferPeerPathResponse.JSON_PROPERTY_TRADING_ACCOUNT + SourceTransferPeerPathResponse.JSON_PROPERTY_WALLET_ID }) @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", @@ -50,9 +49,6 @@ public class SourceTransferPeerPathResponse { public static final String JSON_PROPERTY_WALLET_ID = "walletId"; @jakarta.annotation.Nullable private UUID walletId; - public static final String JSON_PROPERTY_TRADING_ACCOUNT = "tradingAccount"; - @jakarta.annotation.Nullable private String tradingAccount; - public SourceTransferPeerPathResponse() {} @JsonCreator @@ -118,13 +114,14 @@ public SourceTransferPeerPathResponse id(@jakarta.annotation.Nullable String id) /** * 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/getpagedvaultaccounts), - * [listing exchange account](https://developers.fireblocks.com/reference/getexchangeaccounts), - * [listing fiat accounts](https://developers.fireblocks.com/reference/getfiataccounts), - * [listing internal wallets](https://developers.fireblocks.com/reference/getinternalwallets), - * [listing external wallets](https://developers.fireblocks.com/reference/getexternalwallets), + * [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/getnetworkconnections). For the + * connections](https://developers.fireblocks.com/reference/get_network-connections). For the * other types, this parameter is not needed. * * @return id @@ -188,31 +185,6 @@ public void setWalletId(@jakarta.annotation.Nullable UUID walletId) { this.walletId = walletId; } - public SourceTransferPeerPathResponse tradingAccount( - @jakarta.annotation.Nullable String tradingAccount) { - this.tradingAccount = tradingAccount; - return this; - } - - /** - * If this transaction is an exchange internal transfer, this field will be populated with the - * type of that trading account. - * - * @return tradingAccount - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TRADING_ACCOUNT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getTradingAccount() { - return tradingAccount; - } - - @JsonProperty(JSON_PROPERTY_TRADING_ACCOUNT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTradingAccount(@jakarta.annotation.Nullable String tradingAccount) { - this.tradingAccount = tradingAccount; - } - /** Return true if this SourceTransferPeerPathResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -228,14 +200,12 @@ public boolean equals(Object o) { && Objects.equals(this.subType, sourceTransferPeerPathResponse.subType) && Objects.equals(this.id, sourceTransferPeerPathResponse.id) && Objects.equals(this.name, sourceTransferPeerPathResponse.name) - && Objects.equals(this.walletId, sourceTransferPeerPathResponse.walletId) - && Objects.equals( - this.tradingAccount, sourceTransferPeerPathResponse.tradingAccount); + && Objects.equals(this.walletId, sourceTransferPeerPathResponse.walletId); } @Override public int hashCode() { - return Objects.hash(type, subType, id, name, walletId, tradingAccount); + return Objects.hash(type, subType, id, name, walletId); } @Override @@ -247,7 +217,6 @@ public String toString() { sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" walletId: ").append(toIndentedString(walletId)).append("\n"); - sb.append(" tradingAccount: ").append(toIndentedString(tradingAccount)).append("\n"); sb.append("}"); return sb.toString(); } @@ -343,16 +312,6 @@ public String toUrlQueryString(String prefix) { ApiClient.urlEncode(ApiClient.valueToString(getWalletId())))); } - // add `tradingAccount` to the URL query string - if (getTradingAccount() != null) { - joiner.add( - String.format( - "%stradingAccount%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getTradingAccount())))); - } - return joiner.toString(); } } diff --git a/src/main/java/com/fireblocks/sdk/model/SpeiAdvancedPaymentInfo.java b/src/main/java/com/fireblocks/sdk/model/SpeiAdvancedPaymentInfo.java deleted file mode 100644 index 399f8a6a..00000000 --- a/src/main/java/com/fireblocks/sdk/model/SpeiAdvancedPaymentInfo.java +++ /dev/null @@ -1,560 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** Advanced SPEI payment information for Mexican bank transfers with full details */ -@JsonPropertyOrder({ - SpeiAdvancedPaymentInfo.JSON_PROPERTY_RAIL, - SpeiAdvancedPaymentInfo.JSON_PROPERTY_ADDRESSING_SYSTEM, - SpeiAdvancedPaymentInfo.JSON_PROPERTY_ACCOUNT_HOLDER_GIVEN_NAME, - SpeiAdvancedPaymentInfo.JSON_PROPERTY_ACCOUNT_HOLDER_SURNAME, - SpeiAdvancedPaymentInfo.JSON_PROPERTY_COUNTRY, - SpeiAdvancedPaymentInfo.JSON_PROPERTY_BANK_NAME, - SpeiAdvancedPaymentInfo.JSON_PROPERTY_BENEFICIARY_RFC, - SpeiAdvancedPaymentInfo.JSON_PROPERTY_SENDER_DOCUMENT_ID, - SpeiAdvancedPaymentInfo.JSON_PROPERTY_CLABE -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class SpeiAdvancedPaymentInfo { - /** The payment rail type for SPEI transfers */ - public enum RailEnum { - SPEI(String.valueOf("SPEI")); - - private String value; - - RailEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static RailEnum fromValue(String value) { - for (RailEnum b : RailEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_RAIL = "rail"; - @jakarta.annotation.Nonnull private RailEnum rail; - - /** The addressing system used for SPEI transfers */ - public enum AddressingSystemEnum { - CLABE(String.valueOf("CLABE")); - - private String value; - - AddressingSystemEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static AddressingSystemEnum fromValue(String value) { - for (AddressingSystemEnum b : AddressingSystemEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_ADDRESSING_SYSTEM = "addressingSystem"; - @jakarta.annotation.Nonnull private AddressingSystemEnum addressingSystem; - - public static final String JSON_PROPERTY_ACCOUNT_HOLDER_GIVEN_NAME = "accountHolderGivenName"; - @jakarta.annotation.Nonnull private String accountHolderGivenName; - - public static final String JSON_PROPERTY_ACCOUNT_HOLDER_SURNAME = "accountHolderSurname"; - @jakarta.annotation.Nonnull private String accountHolderSurname; - - public static final String JSON_PROPERTY_COUNTRY = "country"; - @jakarta.annotation.Nonnull private String country; - - public static final String JSON_PROPERTY_BANK_NAME = "bankName"; - @jakarta.annotation.Nullable private String bankName; - - public static final String JSON_PROPERTY_BENEFICIARY_RFC = "beneficiaryRfc"; - @jakarta.annotation.Nullable private String beneficiaryRfc; - - public static final String JSON_PROPERTY_SENDER_DOCUMENT_ID = "senderDocumentId"; - @jakarta.annotation.Nullable private String senderDocumentId; - - public static final String JSON_PROPERTY_CLABE = "clabe"; - @jakarta.annotation.Nonnull private String clabe; - - public SpeiAdvancedPaymentInfo() {} - - @JsonCreator - public SpeiAdvancedPaymentInfo( - @JsonProperty(value = JSON_PROPERTY_RAIL, required = true) RailEnum rail, - @JsonProperty(value = JSON_PROPERTY_ADDRESSING_SYSTEM, required = true) - AddressingSystemEnum addressingSystem, - @JsonProperty(value = JSON_PROPERTY_ACCOUNT_HOLDER_GIVEN_NAME, required = true) - String accountHolderGivenName, - @JsonProperty(value = JSON_PROPERTY_ACCOUNT_HOLDER_SURNAME, required = true) - String accountHolderSurname, - @JsonProperty(value = JSON_PROPERTY_COUNTRY, required = true) String country, - @JsonProperty(value = JSON_PROPERTY_CLABE, required = true) String clabe) { - this.rail = rail; - this.addressingSystem = addressingSystem; - this.accountHolderGivenName = accountHolderGivenName; - this.accountHolderSurname = accountHolderSurname; - this.country = country; - this.clabe = clabe; - } - - public SpeiAdvancedPaymentInfo rail(@jakarta.annotation.Nonnull RailEnum rail) { - this.rail = rail; - return this; - } - - /** - * The payment rail type for SPEI transfers - * - * @return rail - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_RAIL) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public RailEnum getRail() { - return rail; - } - - @JsonProperty(JSON_PROPERTY_RAIL) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setRail(@jakarta.annotation.Nonnull RailEnum rail) { - this.rail = rail; - } - - public SpeiAdvancedPaymentInfo addressingSystem( - @jakarta.annotation.Nonnull AddressingSystemEnum addressingSystem) { - this.addressingSystem = addressingSystem; - return this; - } - - /** - * The addressing system used for SPEI transfers - * - * @return addressingSystem - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ADDRESSING_SYSTEM) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AddressingSystemEnum getAddressingSystem() { - return addressingSystem; - } - - @JsonProperty(JSON_PROPERTY_ADDRESSING_SYSTEM) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAddressingSystem( - @jakarta.annotation.Nonnull AddressingSystemEnum addressingSystem) { - this.addressingSystem = addressingSystem; - } - - public SpeiAdvancedPaymentInfo accountHolderGivenName( - @jakarta.annotation.Nonnull String accountHolderGivenName) { - this.accountHolderGivenName = accountHolderGivenName; - return this; - } - - /** - * The given name (first name) of the account holder - * - * @return accountHolderGivenName - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_GIVEN_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getAccountHolderGivenName() { - return accountHolderGivenName; - } - - @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_GIVEN_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAccountHolderGivenName( - @jakarta.annotation.Nonnull String accountHolderGivenName) { - this.accountHolderGivenName = accountHolderGivenName; - } - - public SpeiAdvancedPaymentInfo accountHolderSurname( - @jakarta.annotation.Nonnull String accountHolderSurname) { - this.accountHolderSurname = accountHolderSurname; - return this; - } - - /** - * The surname (last name) of the account holder - * - * @return accountHolderSurname - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_SURNAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getAccountHolderSurname() { - return accountHolderSurname; - } - - @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_SURNAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAccountHolderSurname(@jakarta.annotation.Nonnull String accountHolderSurname) { - this.accountHolderSurname = accountHolderSurname; - } - - public SpeiAdvancedPaymentInfo country(@jakarta.annotation.Nonnull String country) { - this.country = country; - return this; - } - - /** - * The country for the transfer (ISO 3166-1 alpha-2 code) - * - * @return country - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_COUNTRY) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getCountry() { - return country; - } - - @JsonProperty(JSON_PROPERTY_COUNTRY) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCountry(@jakarta.annotation.Nonnull String country) { - this.country = country; - } - - public SpeiAdvancedPaymentInfo bankName(@jakarta.annotation.Nullable String bankName) { - this.bankName = bankName; - return this; - } - - /** - * The name of the bank - * - * @return bankName - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BANK_NAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getBankName() { - return bankName; - } - - @JsonProperty(JSON_PROPERTY_BANK_NAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBankName(@jakarta.annotation.Nullable String bankName) { - this.bankName = bankName; - } - - public SpeiAdvancedPaymentInfo beneficiaryRfc( - @jakarta.annotation.Nullable String beneficiaryRfc) { - this.beneficiaryRfc = beneficiaryRfc; - return this; - } - - /** - * The RFC (Registro Federal de Contribuyentes) of the beneficiary - * - * @return beneficiaryRfc - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BENEFICIARY_RFC) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getBeneficiaryRfc() { - return beneficiaryRfc; - } - - @JsonProperty(JSON_PROPERTY_BENEFICIARY_RFC) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBeneficiaryRfc(@jakarta.annotation.Nullable String beneficiaryRfc) { - this.beneficiaryRfc = beneficiaryRfc; - } - - public SpeiAdvancedPaymentInfo senderDocumentId( - @jakarta.annotation.Nullable String senderDocumentId) { - this.senderDocumentId = senderDocumentId; - return this; - } - - /** - * The document ID of the sender - * - * @return senderDocumentId - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SENDER_DOCUMENT_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getSenderDocumentId() { - return senderDocumentId; - } - - @JsonProperty(JSON_PROPERTY_SENDER_DOCUMENT_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSenderDocumentId(@jakarta.annotation.Nullable String senderDocumentId) { - this.senderDocumentId = senderDocumentId; - } - - public SpeiAdvancedPaymentInfo clabe(@jakarta.annotation.Nonnull String clabe) { - this.clabe = clabe; - return this; - } - - /** - * The CLABE (Clave Bancaria Estandarizada) number - * - * @return clabe - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CLABE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getClabe() { - return clabe; - } - - @JsonProperty(JSON_PROPERTY_CLABE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setClabe(@jakarta.annotation.Nonnull String clabe) { - this.clabe = clabe; - } - - /** Return true if this SpeiAdvancedPaymentInfo object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SpeiAdvancedPaymentInfo speiAdvancedPaymentInfo = (SpeiAdvancedPaymentInfo) o; - return Objects.equals(this.rail, speiAdvancedPaymentInfo.rail) - && Objects.equals(this.addressingSystem, speiAdvancedPaymentInfo.addressingSystem) - && Objects.equals( - this.accountHolderGivenName, speiAdvancedPaymentInfo.accountHolderGivenName) - && Objects.equals( - this.accountHolderSurname, speiAdvancedPaymentInfo.accountHolderSurname) - && Objects.equals(this.country, speiAdvancedPaymentInfo.country) - && Objects.equals(this.bankName, speiAdvancedPaymentInfo.bankName) - && Objects.equals(this.beneficiaryRfc, speiAdvancedPaymentInfo.beneficiaryRfc) - && Objects.equals(this.senderDocumentId, speiAdvancedPaymentInfo.senderDocumentId) - && Objects.equals(this.clabe, speiAdvancedPaymentInfo.clabe); - } - - @Override - public int hashCode() { - return Objects.hash( - rail, - addressingSystem, - accountHolderGivenName, - accountHolderSurname, - country, - bankName, - beneficiaryRfc, - senderDocumentId, - clabe); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SpeiAdvancedPaymentInfo {\n"); - sb.append(" rail: ").append(toIndentedString(rail)).append("\n"); - sb.append(" addressingSystem: ").append(toIndentedString(addressingSystem)).append("\n"); - sb.append(" accountHolderGivenName: ") - .append(toIndentedString(accountHolderGivenName)) - .append("\n"); - sb.append(" accountHolderSurname: ") - .append(toIndentedString(accountHolderSurname)) - .append("\n"); - sb.append(" country: ").append(toIndentedString(country)).append("\n"); - sb.append(" bankName: ").append(toIndentedString(bankName)).append("\n"); - sb.append(" beneficiaryRfc: ").append(toIndentedString(beneficiaryRfc)).append("\n"); - sb.append(" senderDocumentId: ").append(toIndentedString(senderDocumentId)).append("\n"); - sb.append(" clabe: ").append(toIndentedString(clabe)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `rail` to the URL query string - if (getRail() != null) { - joiner.add( - String.format( - "%srail%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getRail())))); - } - - // add `addressingSystem` to the URL query string - if (getAddressingSystem() != null) { - joiner.add( - String.format( - "%saddressingSystem%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAddressingSystem())))); - } - - // add `accountHolderGivenName` to the URL query string - if (getAccountHolderGivenName() != null) { - joiner.add( - String.format( - "%saccountHolderGivenName%s=%s", - prefix, - suffix, - ApiClient.urlEncode( - ApiClient.valueToString(getAccountHolderGivenName())))); - } - - // add `accountHolderSurname` to the URL query string - if (getAccountHolderSurname() != null) { - joiner.add( - String.format( - "%saccountHolderSurname%s=%s", - prefix, - suffix, - ApiClient.urlEncode( - ApiClient.valueToString(getAccountHolderSurname())))); - } - - // add `country` to the URL query string - if (getCountry() != null) { - joiner.add( - String.format( - "%scountry%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getCountry())))); - } - - // add `bankName` to the URL query string - if (getBankName() != null) { - joiner.add( - String.format( - "%sbankName%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBankName())))); - } - - // add `beneficiaryRfc` to the URL query string - if (getBeneficiaryRfc() != null) { - joiner.add( - String.format( - "%sbeneficiaryRfc%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBeneficiaryRfc())))); - } - - // add `senderDocumentId` to the URL query string - if (getSenderDocumentId() != null) { - joiner.add( - String.format( - "%ssenderDocumentId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getSenderDocumentId())))); - } - - // add `clabe` to the URL query string - if (getClabe() != null) { - joiner.add( - String.format( - "%sclabe%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getClabe())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/SplitRequest.java b/src/main/java/com/fireblocks/sdk/model/SplitRequest.java deleted file mode 100644 index 1a8624ca..00000000 --- a/src/main/java/com/fireblocks/sdk/model/SplitRequest.java +++ /dev/null @@ -1,305 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** SplitRequest */ -@JsonPropertyOrder({ - SplitRequest.JSON_PROPERTY_ID, - SplitRequest.JSON_PROPERTY_AMOUNT, - SplitRequest.JSON_PROPERTY_FEE, - SplitRequest.JSON_PROPERTY_FEE_LEVEL, - SplitRequest.JSON_PROPERTY_TX_NOTE -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class SplitRequest { - public static final String JSON_PROPERTY_ID = "id"; - @jakarta.annotation.Nonnull private String id; - - public static final String JSON_PROPERTY_AMOUNT = "amount"; - @jakarta.annotation.Nonnull private String amount; - - public static final String JSON_PROPERTY_FEE = "fee"; - @jakarta.annotation.Nullable private String fee; - - public static final String JSON_PROPERTY_FEE_LEVEL = "feeLevel"; - @jakarta.annotation.Nullable private FeeLevel feeLevel; - - public static final String JSON_PROPERTY_TX_NOTE = "txNote"; - @jakarta.annotation.Nullable private String txNote; - - public SplitRequest() {} - - @JsonCreator - public SplitRequest( - @JsonProperty(value = JSON_PROPERTY_ID, required = true) String id, - @JsonProperty(value = JSON_PROPERTY_AMOUNT, required = true) String amount) { - this.id = id; - this.amount = amount; - } - - public SplitRequest id(@jakarta.annotation.Nonnull String id) { - this.id = id; - return this; - } - - /** - * id of position to split - * - * @return id - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getId() { - return id; - } - - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(@jakarta.annotation.Nonnull String id) { - this.id = id; - } - - public SplitRequest amount(@jakarta.annotation.Nonnull String amount) { - this.amount = amount; - return this; - } - - /** - * Amount of tokens to be transferred to the new stake account. - * - * @return amount - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_AMOUNT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getAmount() { - return amount; - } - - @JsonProperty(JSON_PROPERTY_AMOUNT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAmount(@jakarta.annotation.Nonnull String amount) { - this.amount = amount; - } - - public SplitRequest fee(@jakarta.annotation.Nullable String fee) { - this.fee = fee; - return this; - } - - /** - * Represents the fee for a transaction, which can be specified as a percentage value. Only one - * of fee/feeLevel is required. - * - * @return fee - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FEE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getFee() { - return fee; - } - - @JsonProperty(JSON_PROPERTY_FEE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFee(@jakarta.annotation.Nullable String fee) { - this.fee = fee; - } - - public SplitRequest feeLevel(@jakarta.annotation.Nullable FeeLevel feeLevel) { - this.feeLevel = feeLevel; - return this; - } - - /** - * Get feeLevel - * - * @return feeLevel - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FEE_LEVEL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public FeeLevel getFeeLevel() { - return feeLevel; - } - - @JsonProperty(JSON_PROPERTY_FEE_LEVEL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFeeLevel(@jakarta.annotation.Nullable FeeLevel feeLevel) { - this.feeLevel = feeLevel; - } - - public SplitRequest txNote(@jakarta.annotation.Nullable String txNote) { - this.txNote = txNote; - return this; - } - - /** - * The note to associate with the transactions. - * - * @return txNote - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TX_NOTE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getTxNote() { - return txNote; - } - - @JsonProperty(JSON_PROPERTY_TX_NOTE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTxNote(@jakarta.annotation.Nullable String txNote) { - this.txNote = txNote; - } - - /** Return true if this SplitRequest object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SplitRequest splitRequest = (SplitRequest) o; - return Objects.equals(this.id, splitRequest.id) - && Objects.equals(this.amount, splitRequest.amount) - && Objects.equals(this.fee, splitRequest.fee) - && Objects.equals(this.feeLevel, splitRequest.feeLevel) - && Objects.equals(this.txNote, splitRequest.txNote); - } - - @Override - public int hashCode() { - return Objects.hash(id, amount, fee, feeLevel, txNote); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SplitRequest {\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); - sb.append(" fee: ").append(toIndentedString(fee)).append("\n"); - sb.append(" feeLevel: ").append(toIndentedString(feeLevel)).append("\n"); - sb.append(" txNote: ").append(toIndentedString(txNote)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `id` to the URL query string - if (getId() != null) { - joiner.add( - String.format( - "%sid%s=%s", - prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); - } - - // add `amount` to the URL query string - if (getAmount() != null) { - joiner.add( - String.format( - "%samount%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAmount())))); - } - - // add `fee` to the URL query string - if (getFee() != null) { - joiner.add( - String.format( - "%sfee%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getFee())))); - } - - // add `feeLevel` to the URL query string - if (getFeeLevel() != null) { - joiner.add( - String.format( - "%sfeeLevel%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getFeeLevel())))); - } - - // add `txNote` to the URL query string - if (getTxNote() != null) { - joiner.add( - String.format( - "%stxNote%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getTxNote())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/SplitResponse.java b/src/main/java/com/fireblocks/sdk/model/SplitResponse.java deleted file mode 100644 index 4fd7879c..00000000 --- a/src/main/java/com/fireblocks/sdk/model/SplitResponse.java +++ /dev/null @@ -1,143 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** SplitResponse */ -@JsonPropertyOrder({SplitResponse.JSON_PROPERTY_ID}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class SplitResponse { - public static final String JSON_PROPERTY_ID = "id"; - @jakarta.annotation.Nonnull private String id; - - public SplitResponse() {} - - @JsonCreator - public SplitResponse(@JsonProperty(value = JSON_PROPERTY_ID, required = true) String id) { - this.id = id; - } - - public SplitResponse id(@jakarta.annotation.Nonnull String id) { - this.id = id; - return this; - } - - /** - * The unique identifier of the new staking position - * - * @return id - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getId() { - return id; - } - - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(@jakarta.annotation.Nonnull String id) { - this.id = id; - } - - /** Return true if this SplitResponse object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SplitResponse splitResponse = (SplitResponse) o; - return Objects.equals(this.id, splitResponse.id); - } - - @Override - public int hashCode() { - return Objects.hash(id); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SplitResponse {\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `id` to the URL query string - if (getId() != null) { - joiner.add( - String.format( - "%sid%s=%s", - prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/LegacySrcOrDestAttributesInner.java b/src/main/java/com/fireblocks/sdk/model/SrcOrDestAttributesInner.java similarity index 54% rename from src/main/java/com/fireblocks/sdk/model/LegacySrcOrDestAttributesInner.java rename to src/main/java/com/fireblocks/sdk/model/SrcOrDestAttributesInner.java index 74688570..f5ce1f1a 100644 --- a/src/main/java/com/fireblocks/sdk/model/LegacySrcOrDestAttributesInner.java +++ b/src/main/java/com/fireblocks/sdk/model/SrcOrDestAttributesInner.java @@ -37,163 +37,143 @@ @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") -@JsonDeserialize( - using = LegacySrcOrDestAttributesInner.LegacySrcOrDestAttributesInnerDeserializer.class) -@JsonSerialize( - using = LegacySrcOrDestAttributesInner.LegacySrcOrDestAttributesInnerSerializer.class) -public class LegacySrcOrDestAttributesInner extends AbstractOpenApiSchema { - private static final Logger log = - Logger.getLogger(LegacySrcOrDestAttributesInner.class.getName()); - - public static class LegacySrcOrDestAttributesInnerSerializer - extends StdSerializer { - public LegacySrcOrDestAttributesInnerSerializer(Class t) { +@JsonDeserialize(using = SrcOrDestAttributesInner.SrcOrDestAttributesInnerDeserializer.class) +@JsonSerialize(using = SrcOrDestAttributesInner.SrcOrDestAttributesInnerSerializer.class) +public class SrcOrDestAttributesInner extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(SrcOrDestAttributesInner.class.getName()); + + public static class SrcOrDestAttributesInnerSerializer + extends StdSerializer { + public SrcOrDestAttributesInnerSerializer(Class t) { super(t); } - public LegacySrcOrDestAttributesInnerSerializer() { + public SrcOrDestAttributesInnerSerializer() { this(null); } @Override public void serialize( - LegacySrcOrDestAttributesInner value, - JsonGenerator jgen, - SerializerProvider provider) + SrcOrDestAttributesInner value, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { jgen.writeObject(value.getActualInstance()); } } - public static class LegacySrcOrDestAttributesInnerDeserializer - extends StdDeserializer { - public LegacySrcOrDestAttributesInnerDeserializer() { - this(LegacySrcOrDestAttributesInner.class); + public static class SrcOrDestAttributesInnerDeserializer + extends StdDeserializer { + public SrcOrDestAttributesInnerDeserializer() { + this(SrcOrDestAttributesInner.class); } - public LegacySrcOrDestAttributesInnerDeserializer(Class vc) { + public SrcOrDestAttributesInnerDeserializer(Class vc) { super(vc); } @Override - public LegacySrcOrDestAttributesInner deserialize( - JsonParser jp, DeserializationContext ctxt) + public SrcOrDestAttributesInner deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { JsonNode tree = jp.readValueAsTree(); Object deserialized = null; - // deserialize LegacyPolicySrcOrDestSubType + // deserialize PolicySrcOrDestSubType try { deserialized = - tree.traverse(jp.getCodec()) - .readValueAs(LegacyPolicySrcOrDestSubType.class); - LegacySrcOrDestAttributesInner ret = new LegacySrcOrDestAttributesInner(); + tree.traverse(jp.getCodec()).readValueAs(PolicySrcOrDestSubType.class); + SrcOrDestAttributesInner ret = new SrcOrDestAttributesInner(); ret.setActualInstance(deserialized); return ret; } catch (Exception e) { // deserialization failed, continue, log to help debugging - log.log( - Level.FINER, - "Input data does not match 'LegacySrcOrDestAttributesInner'", - e); + log.log(Level.FINER, "Input data does not match 'SrcOrDestAttributesInner'", e); } - // deserialize LegacyPolicySrcOrDestType + // deserialize PolicySrcOrDestType try { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(LegacyPolicySrcOrDestType.class); - LegacySrcOrDestAttributesInner ret = new LegacySrcOrDestAttributesInner(); + deserialized = tree.traverse(jp.getCodec()).readValueAs(PolicySrcOrDestType.class); + SrcOrDestAttributesInner ret = new SrcOrDestAttributesInner(); ret.setActualInstance(deserialized); return ret; } catch (Exception e) { // deserialization failed, continue, log to help debugging - log.log( - Level.FINER, - "Input data does not match 'LegacySrcOrDestAttributesInner'", - e); + log.log(Level.FINER, "Input data does not match 'SrcOrDestAttributesInner'", e); } // deserialize String try { deserialized = tree.traverse(jp.getCodec()).readValueAs(String.class); - LegacySrcOrDestAttributesInner ret = new LegacySrcOrDestAttributesInner(); + SrcOrDestAttributesInner ret = new SrcOrDestAttributesInner(); ret.setActualInstance(deserialized); return ret; } catch (Exception e) { // deserialization failed, continue, log to help debugging - log.log( - Level.FINER, - "Input data does not match 'LegacySrcOrDestAttributesInner'", - e); + log.log(Level.FINER, "Input data does not match 'SrcOrDestAttributesInner'", e); } throw new IOException( String.format( - "Failed deserialization for LegacySrcOrDestAttributesInner: no match" - + " found")); + "Failed deserialization for SrcOrDestAttributesInner: no match found")); } /** Handle deserialization of the 'null' value. */ @Override - public LegacySrcOrDestAttributesInner getNullValue(DeserializationContext ctxt) + public SrcOrDestAttributesInner getNullValue(DeserializationContext ctxt) throws JsonMappingException { throw new JsonMappingException( - ctxt.getParser(), "LegacySrcOrDestAttributesInner cannot be null"); + ctxt.getParser(), "SrcOrDestAttributesInner cannot be null"); } } // store a list of schema names defined in anyOf public static final Map> schemas = new HashMap>(); - public LegacySrcOrDestAttributesInner() { + public SrcOrDestAttributesInner() { super("anyOf", Boolean.FALSE); } - public LegacySrcOrDestAttributesInner(LegacyPolicySrcOrDestSubType o) { + public SrcOrDestAttributesInner(PolicySrcOrDestSubType o) { super("anyOf", Boolean.FALSE); setActualInstance(o); } - public LegacySrcOrDestAttributesInner(LegacyPolicySrcOrDestType o) { + public SrcOrDestAttributesInner(PolicySrcOrDestType o) { super("anyOf", Boolean.FALSE); setActualInstance(o); } - public LegacySrcOrDestAttributesInner(String o) { + public SrcOrDestAttributesInner(String o) { super("anyOf", Boolean.FALSE); setActualInstance(o); } static { - schemas.put("LegacyPolicySrcOrDestSubType", LegacyPolicySrcOrDestSubType.class); - schemas.put("LegacyPolicySrcOrDestType", LegacyPolicySrcOrDestType.class); + schemas.put("PolicySrcOrDestSubType", PolicySrcOrDestSubType.class); + schemas.put("PolicySrcOrDestType", PolicySrcOrDestType.class); schemas.put("String", String.class); JSON.registerDescendants( - LegacySrcOrDestAttributesInner.class, Collections.unmodifiableMap(schemas)); + SrcOrDestAttributesInner.class, Collections.unmodifiableMap(schemas)); } @Override public Map> getSchemas() { - return LegacySrcOrDestAttributesInner.schemas; + return SrcOrDestAttributesInner.schemas; } /** * Set the instance that matches the anyOf child schema, check the instance parameter is valid - * against the anyOf child schemas: LegacyPolicySrcOrDestSubType, LegacyPolicySrcOrDestType, - * String + * against the anyOf child schemas: PolicySrcOrDestSubType, PolicySrcOrDestType, String * *

It could be an instance of the 'anyOf' schemas. The anyOf child schemas may themselves be * a composed schema (allOf, anyOf, anyOf). */ @Override public void setActualInstance(Object instance) { - if (JSON.isInstanceOf( - LegacyPolicySrcOrDestSubType.class, instance, new HashSet>())) { + if (JSON.isInstanceOf(PolicySrcOrDestSubType.class, instance, new HashSet>())) { super.setActualInstance(instance); return; } - if (JSON.isInstanceOf(LegacyPolicySrcOrDestType.class, instance, new HashSet>())) { + if (JSON.isInstanceOf(PolicySrcOrDestType.class, instance, new HashSet>())) { super.setActualInstance(instance); return; } @@ -204,15 +184,15 @@ public void setActualInstance(Object instance) { } throw new RuntimeException( - "Invalid instance type. Must be LegacyPolicySrcOrDestSubType," - + " LegacyPolicySrcOrDestType, String"); + "Invalid instance type. Must be PolicySrcOrDestSubType, PolicySrcOrDestType," + + " String"); } /** - * Get the actual instance, which can be the following: LegacyPolicySrcOrDestSubType, - * LegacyPolicySrcOrDestType, String + * Get the actual instance, which can be the following: PolicySrcOrDestSubType, + * PolicySrcOrDestType, String * - * @return The actual instance (LegacyPolicySrcOrDestSubType, LegacyPolicySrcOrDestType, String) + * @return The actual instance (PolicySrcOrDestSubType, PolicySrcOrDestType, String) */ @Override public Object getActualInstance() { @@ -220,26 +200,25 @@ public Object getActualInstance() { } /** - * Get the actual instance of `LegacyPolicySrcOrDestSubType`. If the actual instance is not - * `LegacyPolicySrcOrDestSubType`, the ClassCastException will be thrown. + * Get the actual instance of `PolicySrcOrDestSubType`. If the actual instance is not + * `PolicySrcOrDestSubType`, the ClassCastException will be thrown. * - * @return The actual instance of `LegacyPolicySrcOrDestSubType` - * @throws ClassCastException if the instance is not `LegacyPolicySrcOrDestSubType` + * @return The actual instance of `PolicySrcOrDestSubType` + * @throws ClassCastException if the instance is not `PolicySrcOrDestSubType` */ - public LegacyPolicySrcOrDestSubType getLegacyPolicySrcOrDestSubType() - throws ClassCastException { - return (LegacyPolicySrcOrDestSubType) super.getActualInstance(); + public PolicySrcOrDestSubType getPolicySrcOrDestSubType() throws ClassCastException { + return (PolicySrcOrDestSubType) super.getActualInstance(); } /** - * Get the actual instance of `LegacyPolicySrcOrDestType`. If the actual instance is not - * `LegacyPolicySrcOrDestType`, the ClassCastException will be thrown. + * Get the actual instance of `PolicySrcOrDestType`. If the actual instance is not + * `PolicySrcOrDestType`, the ClassCastException will be thrown. * - * @return The actual instance of `LegacyPolicySrcOrDestType` - * @throws ClassCastException if the instance is not `LegacyPolicySrcOrDestType` + * @return The actual instance of `PolicySrcOrDestType` + * @throws ClassCastException if the instance is not `PolicySrcOrDestType` */ - public LegacyPolicySrcOrDestType getLegacyPolicySrcOrDestType() throws ClassCastException { - return (LegacyPolicySrcOrDestType) super.getActualInstance(); + public PolicySrcOrDestType getPolicySrcOrDestType() throws ClassCastException { + return (PolicySrcOrDestType) super.getActualInstance(); } /** diff --git a/src/main/java/com/fireblocks/sdk/model/StakeRequest.java b/src/main/java/com/fireblocks/sdk/model/StakeRequestDto.java similarity index 82% rename from src/main/java/com/fireblocks/sdk/model/StakeRequest.java rename to src/main/java/com/fireblocks/sdk/model/StakeRequestDto.java index 2493ae1c..01066595 100644 --- a/src/main/java/com/fireblocks/sdk/model/StakeRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/StakeRequestDto.java @@ -21,24 +21,24 @@ import java.util.Objects; import java.util.StringJoiner; -/** StakeRequest */ +/** StakeRequestDto */ @JsonPropertyOrder({ - StakeRequest.JSON_PROPERTY_VAULT_ACCOUNT_ID, - StakeRequest.JSON_PROPERTY_PROVIDER_ID, - StakeRequest.JSON_PROPERTY_STAKE_AMOUNT, - StakeRequest.JSON_PROPERTY_TX_NOTE, - StakeRequest.JSON_PROPERTY_FEE, - StakeRequest.JSON_PROPERTY_FEE_LEVEL + StakeRequestDto.JSON_PROPERTY_VAULT_ACCOUNT_ID, + StakeRequestDto.JSON_PROPERTY_PROVIDER_ID, + StakeRequestDto.JSON_PROPERTY_STAKE_AMOUNT, + StakeRequestDto.JSON_PROPERTY_TX_NOTE, + StakeRequestDto.JSON_PROPERTY_FEE, + StakeRequestDto.JSON_PROPERTY_FEE_LEVEL }) @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") -public class StakeRequest { +public class StakeRequestDto { public static final String JSON_PROPERTY_VAULT_ACCOUNT_ID = "vaultAccountId"; @jakarta.annotation.Nonnull private String vaultAccountId; public static final String JSON_PROPERTY_PROVIDER_ID = "providerId"; - @jakarta.annotation.Nonnull private StakingProvider providerId; + @jakarta.annotation.Nonnull private String providerId; public static final String JSON_PROPERTY_STAKE_AMOUNT = "stakeAmount"; @jakarta.annotation.Nonnull private String stakeAmount; @@ -50,23 +50,22 @@ public class StakeRequest { @jakarta.annotation.Nullable private String fee; public static final String JSON_PROPERTY_FEE_LEVEL = "feeLevel"; - @jakarta.annotation.Nullable private FeeLevel feeLevel; + @jakarta.annotation.Nullable private String feeLevel; - public StakeRequest() {} + public StakeRequestDto() {} @JsonCreator - public StakeRequest( + public StakeRequestDto( @JsonProperty(value = JSON_PROPERTY_VAULT_ACCOUNT_ID, required = true) String vaultAccountId, - @JsonProperty(value = JSON_PROPERTY_PROVIDER_ID, required = true) - StakingProvider providerId, + @JsonProperty(value = JSON_PROPERTY_PROVIDER_ID, required = true) String providerId, @JsonProperty(value = JSON_PROPERTY_STAKE_AMOUNT, required = true) String stakeAmount) { this.vaultAccountId = vaultAccountId; this.providerId = providerId; this.stakeAmount = stakeAmount; } - public StakeRequest vaultAccountId(@jakarta.annotation.Nonnull String vaultAccountId) { + public StakeRequestDto vaultAccountId(@jakarta.annotation.Nonnull String vaultAccountId) { this.vaultAccountId = vaultAccountId; return this; } @@ -89,30 +88,30 @@ public void setVaultAccountId(@jakarta.annotation.Nonnull String vaultAccountId) this.vaultAccountId = vaultAccountId; } - public StakeRequest providerId(@jakarta.annotation.Nonnull StakingProvider providerId) { + public StakeRequestDto providerId(@jakarta.annotation.Nonnull String providerId) { this.providerId = providerId; return this; } /** - * Get providerId + * The ID of the provider * * @return providerId */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_PROVIDER_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public StakingProvider getProviderId() { + public String getProviderId() { return providerId; } @JsonProperty(JSON_PROPERTY_PROVIDER_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setProviderId(@jakarta.annotation.Nonnull StakingProvider providerId) { + public void setProviderId(@jakarta.annotation.Nonnull String providerId) { this.providerId = providerId; } - public StakeRequest stakeAmount(@jakarta.annotation.Nonnull String stakeAmount) { + public StakeRequestDto stakeAmount(@jakarta.annotation.Nonnull String stakeAmount) { this.stakeAmount = stakeAmount; return this; } @@ -135,7 +134,7 @@ public void setStakeAmount(@jakarta.annotation.Nonnull String stakeAmount) { this.stakeAmount = stakeAmount; } - public StakeRequest txNote(@jakarta.annotation.Nullable String txNote) { + public StakeRequestDto txNote(@jakarta.annotation.Nullable String txNote) { this.txNote = txNote; return this; } @@ -158,7 +157,7 @@ public void setTxNote(@jakarta.annotation.Nullable String txNote) { this.txNote = txNote; } - public StakeRequest fee(@jakarta.annotation.Nullable String fee) { + public StakeRequestDto fee(@jakarta.annotation.Nullable String fee) { this.fee = fee; return this; } @@ -182,30 +181,31 @@ public void setFee(@jakarta.annotation.Nullable String fee) { this.fee = fee; } - public StakeRequest feeLevel(@jakarta.annotation.Nullable FeeLevel feeLevel) { + public StakeRequestDto feeLevel(@jakarta.annotation.Nullable String feeLevel) { this.feeLevel = feeLevel; return this; } /** - * Get feeLevel + * Represents the fee level for a transaction, which can be set as slow, medium, or fast. Only + * one of fee/feeLevel is required. * * @return feeLevel */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_FEE_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public FeeLevel getFeeLevel() { + public String getFeeLevel() { return feeLevel; } @JsonProperty(JSON_PROPERTY_FEE_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFeeLevel(@jakarta.annotation.Nullable FeeLevel feeLevel) { + public void setFeeLevel(@jakarta.annotation.Nullable String feeLevel) { this.feeLevel = feeLevel; } - /** Return true if this StakeRequest object is equal to o. */ + /** Return true if this StakeRequestDto object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -214,13 +214,13 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - StakeRequest stakeRequest = (StakeRequest) o; - return Objects.equals(this.vaultAccountId, stakeRequest.vaultAccountId) - && Objects.equals(this.providerId, stakeRequest.providerId) - && Objects.equals(this.stakeAmount, stakeRequest.stakeAmount) - && Objects.equals(this.txNote, stakeRequest.txNote) - && Objects.equals(this.fee, stakeRequest.fee) - && Objects.equals(this.feeLevel, stakeRequest.feeLevel); + StakeRequestDto stakeRequestDto = (StakeRequestDto) o; + return Objects.equals(this.vaultAccountId, stakeRequestDto.vaultAccountId) + && Objects.equals(this.providerId, stakeRequestDto.providerId) + && Objects.equals(this.stakeAmount, stakeRequestDto.stakeAmount) + && Objects.equals(this.txNote, stakeRequestDto.txNote) + && Objects.equals(this.fee, stakeRequestDto.fee) + && Objects.equals(this.feeLevel, stakeRequestDto.feeLevel); } @Override @@ -231,7 +231,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class StakeRequest {\n"); + sb.append("class StakeRequestDto {\n"); sb.append(" vaultAccountId: ").append(toIndentedString(vaultAccountId)).append("\n"); sb.append(" providerId: ").append(toIndentedString(providerId)).append("\n"); sb.append(" stakeAmount: ").append(toIndentedString(stakeAmount)).append("\n"); diff --git a/src/main/java/com/fireblocks/sdk/model/StakeResponse.java b/src/main/java/com/fireblocks/sdk/model/StakeResponseDto.java similarity index 86% rename from src/main/java/com/fireblocks/sdk/model/StakeResponse.java rename to src/main/java/com/fireblocks/sdk/model/StakeResponseDto.java index 3b55fc2d..65415a9b 100644 --- a/src/main/java/com/fireblocks/sdk/model/StakeResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/StakeResponseDto.java @@ -21,23 +21,23 @@ import java.util.Objects; import java.util.StringJoiner; -/** StakeResponse */ -@JsonPropertyOrder({StakeResponse.JSON_PROPERTY_ID}) +/** StakeResponseDto */ +@JsonPropertyOrder({StakeResponseDto.JSON_PROPERTY_ID}) @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") -public class StakeResponse { +public class StakeResponseDto { public static final String JSON_PROPERTY_ID = "id"; @jakarta.annotation.Nonnull private String id; - public StakeResponse() {} + public StakeResponseDto() {} @JsonCreator - public StakeResponse(@JsonProperty(value = JSON_PROPERTY_ID, required = true) String id) { + public StakeResponseDto(@JsonProperty(value = JSON_PROPERTY_ID, required = true) String id) { this.id = id; } - public StakeResponse id(@jakarta.annotation.Nonnull String id) { + public StakeResponseDto id(@jakarta.annotation.Nonnull String id) { this.id = id; return this; } @@ -60,7 +60,7 @@ public void setId(@jakarta.annotation.Nonnull String id) { this.id = id; } - /** Return true if this StakeResponse object is equal to o. */ + /** Return true if this StakeResponseDto object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -69,8 +69,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - StakeResponse stakeResponse = (StakeResponse) o; - return Objects.equals(this.id, stakeResponse.id); + StakeResponseDto stakeResponseDto = (StakeResponseDto) o; + return Objects.equals(this.id, stakeResponseDto.id); } @Override @@ -81,7 +81,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class StakeResponse {\n"); + sb.append("class StakeResponseDto {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/StakingProvider.java b/src/main/java/com/fireblocks/sdk/model/StakingProvider.java deleted file mode 100644 index ad8cb99f..00000000 --- a/src/main/java/com/fireblocks/sdk/model/StakingProvider.java +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - -/** The unique identifier of the staking provider */ -public enum StakingProvider { - KILN("kiln"), - - FIGMENT("figment"), - - LIDO("lido"), - - P2P("p2p"); - - private String value; - - StakingProvider(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static StakingProvider fromValue(String value) { - for (StakingProvider b : StakingProvider.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - if (prefix == null) { - prefix = ""; - } - - return String.format("%s=%s", prefix, this.toString()); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/Status.java b/src/main/java/com/fireblocks/sdk/model/Status.java deleted file mode 100644 index b3c8efaf..00000000 --- a/src/main/java/com/fireblocks/sdk/model/Status.java +++ /dev/null @@ -1,260 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** Status */ -@JsonPropertyOrder({Status.JSON_PROPERTY_STATUS, Status.JSON_PROPERTY_TYPE}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class Status { - /** The status of the command */ - public enum StatusEnum { - WAITING_FOR_APPROVAL(String.valueOf("WAITING_FOR_APPROVAL")), - - APPROVED(String.valueOf("APPROVED")), - - CANCELLED(String.valueOf("CANCELLED")), - - REJECTED(String.valueOf("REJECTED")), - - COMPLETED(String.valueOf("COMPLETED")); - - private String value; - - StatusEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static StatusEnum fromValue(String value) { - for (StatusEnum b : StatusEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_STATUS = "status"; - @jakarta.annotation.Nonnull private StatusEnum status; - - /** The type of the command */ - public enum TypeEnum { - PAIR_API_KEY(String.valueOf("PAIR_API_KEY")), - - UPDATE_CALLBACK_HANDLER(String.valueOf("UPDATE_CALLBACK_HANDLER")), - - UNPAIR_API_KEY(String.valueOf("UNPAIR_API_KEY")); - - private String value; - - TypeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static TypeEnum fromValue(String value) { - for (TypeEnum b : TypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_TYPE = "type"; - @jakarta.annotation.Nonnull private TypeEnum type; - - public Status() {} - - @JsonCreator - public Status( - @JsonProperty(value = JSON_PROPERTY_STATUS, required = true) StatusEnum status, - @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) TypeEnum type) { - this.status = status; - this.type = type; - } - - public Status status(@jakarta.annotation.Nonnull StatusEnum status) { - this.status = status; - return this; - } - - /** - * The status of the command - * - * @return status - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_STATUS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public StatusEnum getStatus() { - return status; - } - - @JsonProperty(JSON_PROPERTY_STATUS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStatus(@jakarta.annotation.Nonnull StatusEnum status) { - this.status = status; - } - - public Status type(@jakarta.annotation.Nonnull TypeEnum type) { - this.type = type; - return this; - } - - /** - * The type of the command - * - * @return type - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { - return type; - } - - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(@jakarta.annotation.Nonnull TypeEnum type) { - this.type = type; - } - - /** Return true if this Status object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Status status = (Status) o; - return Objects.equals(this.status, status.status) && Objects.equals(this.type, status.type); - } - - @Override - public int hashCode() { - return Objects.hash(status, type); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class Status {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `status` to the URL query string - if (getStatus() != null) { - joiner.add( - String.format( - "%sstatus%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getStatus())))); - } - - // add `type` to the URL query string - if (getType() != null) { - joiner.add( - String.format( - "%stype%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getType())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/Tag.java b/src/main/java/com/fireblocks/sdk/model/Tag.java deleted file mode 100644 index d1e04470..00000000 --- a/src/main/java/com/fireblocks/sdk/model/Tag.java +++ /dev/null @@ -1,223 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; -import java.util.UUID; - -/** Tag */ -@JsonPropertyOrder({Tag.JSON_PROPERTY_ID, Tag.JSON_PROPERTY_LABEL, Tag.JSON_PROPERTY_DESCRIPTION}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class Tag { - public static final String JSON_PROPERTY_ID = "id"; - @jakarta.annotation.Nonnull private UUID id; - - public static final String JSON_PROPERTY_LABEL = "label"; - @jakarta.annotation.Nonnull private String label; - - public static final String JSON_PROPERTY_DESCRIPTION = "description"; - @jakarta.annotation.Nullable private String description; - - public Tag() {} - - @JsonCreator - public Tag( - @JsonProperty(value = JSON_PROPERTY_ID, required = true) UUID id, - @JsonProperty(value = JSON_PROPERTY_LABEL, required = true) String label) { - this.id = id; - this.label = label; - } - - public Tag id(@jakarta.annotation.Nonnull UUID id) { - this.id = id; - return this; - } - - /** - * The unique identifier of the tag - * - * @return id - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public UUID getId() { - return id; - } - - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(@jakarta.annotation.Nonnull UUID id) { - this.id = id; - } - - public Tag label(@jakarta.annotation.Nonnull String label) { - this.label = label; - return this; - } - - /** - * The tag label - * - * @return label - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_LABEL) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getLabel() { - return label; - } - - @JsonProperty(JSON_PROPERTY_LABEL) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setLabel(@jakarta.annotation.Nonnull String label) { - this.label = label; - } - - public Tag description(@jakarta.annotation.Nullable String description) { - this.description = description; - return this; - } - - /** - * Description for the tag - * - * @return description - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DESCRIPTION) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getDescription() { - return description; - } - - @JsonProperty(JSON_PROPERTY_DESCRIPTION) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDescription(@jakarta.annotation.Nullable String description) { - this.description = description; - } - - /** Return true if this Tag object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Tag tag = (Tag) o; - return Objects.equals(this.id, tag.id) - && Objects.equals(this.label, tag.label) - && Objects.equals(this.description, tag.description); - } - - @Override - public int hashCode() { - return Objects.hash(id, label, description); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class Tag {\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" label: ").append(toIndentedString(label)).append("\n"); - sb.append(" description: ").append(toIndentedString(description)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `id` to the URL query string - if (getId() != null) { - joiner.add( - String.format( - "%sid%s=%s", - prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); - } - - // add `label` to the URL query string - if (getLabel() != null) { - joiner.add( - String.format( - "%slabel%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getLabel())))); - } - - // add `description` to the URL query string - if (getDescription() != null) { - joiner.add( - String.format( - "%sdescription%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getDescription())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/TagsPagedResponse.java b/src/main/java/com/fireblocks/sdk/model/TagsPagedResponse.java deleted file mode 100644 index caf3e8c7..00000000 --- a/src/main/java/com/fireblocks/sdk/model/TagsPagedResponse.java +++ /dev/null @@ -1,209 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** TagsPagedResponse */ -@JsonPropertyOrder({TagsPagedResponse.JSON_PROPERTY_DATA, TagsPagedResponse.JSON_PROPERTY_NEXT}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class TagsPagedResponse { - public static final String JSON_PROPERTY_DATA = "data"; - @jakarta.annotation.Nonnull private List data = new ArrayList<>(); - - public static final String JSON_PROPERTY_NEXT = "next"; - @jakarta.annotation.Nullable private String next; - - public TagsPagedResponse() {} - - @JsonCreator - public TagsPagedResponse( - @JsonProperty(value = JSON_PROPERTY_DATA, required = true) List data, - @JsonProperty(value = JSON_PROPERTY_NEXT, required = true) String next) { - this.data = data; - this.next = next; - } - - public TagsPagedResponse data(@jakarta.annotation.Nonnull List data) { - this.data = data; - return this; - } - - public TagsPagedResponse addDataItem(Tag dataItem) { - if (this.data == null) { - this.data = new ArrayList<>(); - } - this.data.add(dataItem); - return this; - } - - /** - * Get data - * - * @return data - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getData() { - return data; - } - - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setData(@jakarta.annotation.Nonnull List data) { - this.data = data; - } - - public TagsPagedResponse next(@jakarta.annotation.Nullable String next) { - this.next = next; - return this; - } - - /** - * Cursor to the next page - * - * @return next - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NEXT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getNext() { - return next; - } - - @JsonProperty(JSON_PROPERTY_NEXT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setNext(@jakarta.annotation.Nullable String next) { - this.next = next; - } - - /** Return true if this TagsPagedResponse object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - TagsPagedResponse tagsPagedResponse = (TagsPagedResponse) o; - return Objects.equals(this.data, tagsPagedResponse.data) - && Objects.equals(this.next, tagsPagedResponse.next); - } - - @Override - public int hashCode() { - return Objects.hash(data, next); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class TagsPagedResponse {\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" next: ").append(toIndentedString(next)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `data` to the URL query string - if (getData() != null) { - for (int i = 0; i < getData().size(); i++) { - if (getData().get(i) != null) { - joiner.add( - getData() - .get(i) - .toUrlQueryString( - String.format( - "%sdata%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } - } - - // add `next` to the URL query string - if (getNext() != null) { - joiner.add( - String.format( - "%snext%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getNext())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/TemplatesPaginatedResponse.java b/src/main/java/com/fireblocks/sdk/model/TemplatesPaginatedResponse.java index e3b9ad19..3c54ba59 100644 --- a/src/main/java/com/fireblocks/sdk/model/TemplatesPaginatedResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/TemplatesPaginatedResponse.java @@ -33,7 +33,7 @@ comments = "Generator version: 7.14.0") public class TemplatesPaginatedResponse { public static final String JSON_PROPERTY_DATA = "data"; - @jakarta.annotation.Nonnull private List data = new ArrayList<>(); + @jakarta.annotation.Nonnull private List data; public static final String JSON_PROPERTY_NEXT = "next"; @jakarta.annotation.Nullable private String next; diff --git a/src/main/java/com/fireblocks/sdk/model/TimeInForce.java b/src/main/java/com/fireblocks/sdk/model/TimeInForce.java deleted file mode 100644 index 66dffef1..00000000 --- a/src/main/java/com/fireblocks/sdk/model/TimeInForce.java +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - -/** Time in force for limit orders */ -public enum TimeInForce { - FOK("FOK"); - - private String value; - - TimeInForce(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static TimeInForce fromValue(String value) { - for (TimeInForce b : TimeInForce.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - if (prefix == null) { - prefix = ""; - } - - return String.format("%s=%s", prefix, this.toString()); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/TimePeriodConfig.java b/src/main/java/com/fireblocks/sdk/model/TimePeriodConfig.java deleted file mode 100644 index 624bdb80..00000000 --- a/src/main/java/com/fireblocks/sdk/model/TimePeriodConfig.java +++ /dev/null @@ -1,274 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** Time period configuration */ -@JsonPropertyOrder({ - TimePeriodConfig.JSON_PROPERTY_SECONDS, - TimePeriodConfig.JSON_PROPERTY_INITIATOR, - TimePeriodConfig.JSON_PROPERTY_SOURCE, - TimePeriodConfig.JSON_PROPERTY_DESTINATION -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class TimePeriodConfig { - public static final String JSON_PROPERTY_SECONDS = "seconds"; - @jakarta.annotation.Nonnull private String seconds; - - public static final String JSON_PROPERTY_INITIATOR = "initiator"; - @jakarta.annotation.Nonnull private TimePeriodMatchType initiator; - - public static final String JSON_PROPERTY_SOURCE = "source"; - @jakarta.annotation.Nonnull private TimePeriodMatchType source; - - public static final String JSON_PROPERTY_DESTINATION = "destination"; - @jakarta.annotation.Nonnull private TimePeriodMatchType destination; - - public TimePeriodConfig() {} - - @JsonCreator - public TimePeriodConfig( - @JsonProperty(value = JSON_PROPERTY_SECONDS, required = true) String seconds, - @JsonProperty(value = JSON_PROPERTY_INITIATOR, required = true) - TimePeriodMatchType initiator, - @JsonProperty(value = JSON_PROPERTY_SOURCE, required = true) TimePeriodMatchType source, - @JsonProperty(value = JSON_PROPERTY_DESTINATION, required = true) - TimePeriodMatchType destination) { - this.seconds = seconds; - this.initiator = initiator; - this.source = source; - this.destination = destination; - } - - public TimePeriodConfig seconds(@jakarta.annotation.Nonnull String seconds) { - this.seconds = seconds; - return this; - } - - /** - * Time period in seconds - * - * @return seconds - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SECONDS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getSeconds() { - return seconds; - } - - @JsonProperty(JSON_PROPERTY_SECONDS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSeconds(@jakarta.annotation.Nonnull String seconds) { - this.seconds = seconds; - } - - public TimePeriodConfig initiator(@jakarta.annotation.Nonnull TimePeriodMatchType initiator) { - this.initiator = initiator; - return this; - } - - /** - * Get initiator - * - * @return initiator - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_INITIATOR) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TimePeriodMatchType getInitiator() { - return initiator; - } - - @JsonProperty(JSON_PROPERTY_INITIATOR) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setInitiator(@jakarta.annotation.Nonnull TimePeriodMatchType initiator) { - this.initiator = initiator; - } - - public TimePeriodConfig source(@jakarta.annotation.Nonnull TimePeriodMatchType source) { - this.source = source; - return this; - } - - /** - * Get source - * - * @return source - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SOURCE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TimePeriodMatchType getSource() { - return source; - } - - @JsonProperty(JSON_PROPERTY_SOURCE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSource(@jakarta.annotation.Nonnull TimePeriodMatchType source) { - this.source = source; - } - - public TimePeriodConfig destination( - @jakarta.annotation.Nonnull TimePeriodMatchType destination) { - this.destination = destination; - return this; - } - - /** - * Get destination - * - * @return destination - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DESTINATION) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TimePeriodMatchType getDestination() { - return destination; - } - - @JsonProperty(JSON_PROPERTY_DESTINATION) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDestination(@jakarta.annotation.Nonnull TimePeriodMatchType destination) { - this.destination = destination; - } - - /** Return true if this TimePeriodConfig object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - TimePeriodConfig timePeriodConfig = (TimePeriodConfig) o; - return Objects.equals(this.seconds, timePeriodConfig.seconds) - && Objects.equals(this.initiator, timePeriodConfig.initiator) - && Objects.equals(this.source, timePeriodConfig.source) - && Objects.equals(this.destination, timePeriodConfig.destination); - } - - @Override - public int hashCode() { - return Objects.hash(seconds, initiator, source, destination); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class TimePeriodConfig {\n"); - sb.append(" seconds: ").append(toIndentedString(seconds)).append("\n"); - sb.append(" initiator: ").append(toIndentedString(initiator)).append("\n"); - sb.append(" source: ").append(toIndentedString(source)).append("\n"); - sb.append(" destination: ").append(toIndentedString(destination)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `seconds` to the URL query string - if (getSeconds() != null) { - joiner.add( - String.format( - "%sseconds%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getSeconds())))); - } - - // add `initiator` to the URL query string - if (getInitiator() != null) { - joiner.add( - String.format( - "%sinitiator%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getInitiator())))); - } - - // add `source` to the URL query string - if (getSource() != null) { - joiner.add( - String.format( - "%ssource%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getSource())))); - } - - // add `destination` to the URL query string - if (getDestination() != null) { - joiner.add( - String.format( - "%sdestination%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getDestination())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/TimePeriodMatchType.java b/src/main/java/com/fireblocks/sdk/model/TimePeriodMatchType.java deleted file mode 100644 index 54054c9a..00000000 --- a/src/main/java/com/fireblocks/sdk/model/TimePeriodMatchType.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - -/** Type of match for time period application */ -public enum TimePeriodMatchType { - PER_SINGLE_MATCH("PER_SINGLE_MATCH"), - - ACROSS_ALL_MATCHES("ACROSS_ALL_MATCHES"); - - private String value; - - TimePeriodMatchType(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static TimePeriodMatchType fromValue(String value) { - for (TimePeriodMatchType b : TimePeriodMatchType.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - if (prefix == null) { - prefix = ""; - } - - return String.format("%s=%s", prefix, this.toString()); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/TokenInfoNotFoundErrorResponse.java b/src/main/java/com/fireblocks/sdk/model/TokenInfoNotFoundErrorResponse.java deleted file mode 100644 index e4b14b0f..00000000 --- a/src/main/java/com/fireblocks/sdk/model/TokenInfoNotFoundErrorResponse.java +++ /dev/null @@ -1,191 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.math.BigDecimal; -import java.util.Objects; -import java.util.StringJoiner; - -/** TokenInfoNotFoundErrorResponse */ -@JsonPropertyOrder({ - TokenInfoNotFoundErrorResponse.JSON_PROPERTY_MESSAGE, - TokenInfoNotFoundErrorResponse.JSON_PROPERTY_CODE -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class TokenInfoNotFoundErrorResponse { - public static final String JSON_PROPERTY_MESSAGE = "message"; - @jakarta.annotation.Nonnull private String message; - - public static final String JSON_PROPERTY_CODE = "code"; - @jakarta.annotation.Nonnull private BigDecimal code; - - public TokenInfoNotFoundErrorResponse() {} - - @JsonCreator - public TokenInfoNotFoundErrorResponse( - @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = true) String message, - @JsonProperty(value = JSON_PROPERTY_CODE, required = true) BigDecimal code) { - this.message = message; - this.code = code; - } - - public TokenInfoNotFoundErrorResponse message(@jakarta.annotation.Nonnull String message) { - this.message = message; - return this; - } - - /** - * Not found error code - * - * @return message - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_MESSAGE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getMessage() { - return message; - } - - @JsonProperty(JSON_PROPERTY_MESSAGE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setMessage(@jakarta.annotation.Nonnull String message) { - this.message = message; - } - - public TokenInfoNotFoundErrorResponse code(@jakarta.annotation.Nonnull BigDecimal code) { - this.code = code; - return this; - } - - /** - * Error code - * - * @return code - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CODE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public BigDecimal getCode() { - return code; - } - - @JsonProperty(JSON_PROPERTY_CODE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCode(@jakarta.annotation.Nonnull BigDecimal code) { - this.code = code; - } - - /** Return true if this TokenInfoNotFoundErrorResponse object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - TokenInfoNotFoundErrorResponse tokenInfoNotFoundErrorResponse = - (TokenInfoNotFoundErrorResponse) o; - return Objects.equals(this.message, tokenInfoNotFoundErrorResponse.message) - && Objects.equals(this.code, tokenInfoNotFoundErrorResponse.code); - } - - @Override - public int hashCode() { - return Objects.hash(message, code); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class TokenInfoNotFoundErrorResponse {\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); - sb.append(" code: ").append(toIndentedString(code)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `message` to the URL query string - if (getMessage() != null) { - joiner.add( - String.format( - "%smessage%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getMessage())))); - } - - // add `code` to the URL query string - if (getCode() != null) { - joiner.add( - String.format( - "%scode%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getCode())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/TokenLinkDto.java b/src/main/java/com/fireblocks/sdk/model/TokenLinkDto.java index 8572a5b1..b3fbe2cc 100644 --- a/src/main/java/com/fireblocks/sdk/model/TokenLinkDto.java +++ b/src/main/java/com/fireblocks/sdk/model/TokenLinkDto.java @@ -208,7 +208,8 @@ public TokenLinkDto refId(@jakarta.annotation.Nullable String refId) { } /** - * The Fireblocks' reference id + * The Fireblocks' reference id. Can be a Fireblocks' supported asset, collectionId or + * contractId * * @return refId */ @@ -231,7 +232,7 @@ public TokenLinkDto displayName(@jakarta.annotation.Nullable String displayName) } /** - * The token display name. If was not provided, would be taken from the contract template + * The token display name. If was not provided, would be taken from the contract template name * * @return displayName */ diff --git a/src/main/java/com/fireblocks/sdk/model/TokenLinkNotMultichainCompatibleHttpError.java b/src/main/java/com/fireblocks/sdk/model/TokenLinkNotMultichainCompatibleHttpError.java deleted file mode 100644 index 6860840c..00000000 --- a/src/main/java/com/fireblocks/sdk/model/TokenLinkNotMultichainCompatibleHttpError.java +++ /dev/null @@ -1,193 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.math.BigDecimal; -import java.util.Objects; -import java.util.StringJoiner; - -/** TokenLinkNotMultichainCompatibleHttpError */ -@JsonPropertyOrder({ - TokenLinkNotMultichainCompatibleHttpError.JSON_PROPERTY_MESSAGE, - TokenLinkNotMultichainCompatibleHttpError.JSON_PROPERTY_CODE -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class TokenLinkNotMultichainCompatibleHttpError { - public static final String JSON_PROPERTY_MESSAGE = "message"; - @jakarta.annotation.Nonnull private String message; - - public static final String JSON_PROPERTY_CODE = "code"; - @jakarta.annotation.Nonnull private BigDecimal code; - - public TokenLinkNotMultichainCompatibleHttpError() {} - - @JsonCreator - public TokenLinkNotMultichainCompatibleHttpError( - @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = true) String message, - @JsonProperty(value = JSON_PROPERTY_CODE, required = true) BigDecimal code) { - this.message = message; - this.code = code; - } - - public TokenLinkNotMultichainCompatibleHttpError message( - @jakarta.annotation.Nonnull String message) { - this.message = message; - return this; - } - - /** - * Bad request error message - * - * @return message - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_MESSAGE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getMessage() { - return message; - } - - @JsonProperty(JSON_PROPERTY_MESSAGE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setMessage(@jakarta.annotation.Nonnull String message) { - this.message = message; - } - - public TokenLinkNotMultichainCompatibleHttpError code( - @jakarta.annotation.Nonnull BigDecimal code) { - this.code = code; - return this; - } - - /** - * Error code - * - * @return code - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CODE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public BigDecimal getCode() { - return code; - } - - @JsonProperty(JSON_PROPERTY_CODE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCode(@jakarta.annotation.Nonnull BigDecimal code) { - this.code = code; - } - - /** Return true if this TokenLinkNotMultichainCompatibleHttpError object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - TokenLinkNotMultichainCompatibleHttpError tokenLinkNotMultichainCompatibleHttpError = - (TokenLinkNotMultichainCompatibleHttpError) o; - return Objects.equals(this.message, tokenLinkNotMultichainCompatibleHttpError.message) - && Objects.equals(this.code, tokenLinkNotMultichainCompatibleHttpError.code); - } - - @Override - public int hashCode() { - return Objects.hash(message, code); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class TokenLinkNotMultichainCompatibleHttpError {\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); - sb.append(" code: ").append(toIndentedString(code)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `message` to the URL query string - if (getMessage() != null) { - joiner.add( - String.format( - "%smessage%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getMessage())))); - } - - // add `code` to the URL query string - if (getCode() != null) { - joiner.add( - String.format( - "%scode%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getCode())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/TokenLinkRequestDto.java b/src/main/java/com/fireblocks/sdk/model/TokenLinkRequestDto.java index 2dd3b432..d0df7c31 100644 --- a/src/main/java/com/fireblocks/sdk/model/TokenLinkRequestDto.java +++ b/src/main/java/com/fireblocks/sdk/model/TokenLinkRequestDto.java @@ -26,9 +26,7 @@ @JsonPropertyOrder({ TokenLinkRequestDto.JSON_PROPERTY_TYPE, TokenLinkRequestDto.JSON_PROPERTY_REF_ID, - TokenLinkRequestDto.JSON_PROPERTY_DISPLAY_NAME, - TokenLinkRequestDto.JSON_PROPERTY_BASE_ASSET_ID, - TokenLinkRequestDto.JSON_PROPERTY_CONTRACT_ADDRESS + TokenLinkRequestDto.JSON_PROPERTY_DISPLAY_NAME }) @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", @@ -75,23 +73,19 @@ public static TypeEnum fromValue(String value) { @jakarta.annotation.Nonnull private TypeEnum type; public static final String JSON_PROPERTY_REF_ID = "refId"; - @jakarta.annotation.Nullable private String refId; + @jakarta.annotation.Nonnull private String refId; public static final String JSON_PROPERTY_DISPLAY_NAME = "displayName"; @jakarta.annotation.Nullable private String displayName; - public static final String JSON_PROPERTY_BASE_ASSET_ID = "baseAssetId"; - @jakarta.annotation.Nullable private String baseAssetId; - - public static final String JSON_PROPERTY_CONTRACT_ADDRESS = "contractAddress"; - @jakarta.annotation.Nullable private String contractAddress; - public TokenLinkRequestDto() {} @JsonCreator public TokenLinkRequestDto( - @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) TypeEnum type) { + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) TypeEnum type, + @JsonProperty(value = JSON_PROPERTY_REF_ID, required = true) String refId) { this.type = type; + this.refId = refId; } public TokenLinkRequestDto type(@jakarta.annotation.Nonnull TypeEnum type) { @@ -117,7 +111,7 @@ public void setType(@jakarta.annotation.Nonnull TypeEnum type) { this.type = type; } - public TokenLinkRequestDto refId(@jakarta.annotation.Nullable String refId) { + public TokenLinkRequestDto refId(@jakarta.annotation.Nonnull String refId) { this.refId = refId; return this; } @@ -128,16 +122,16 @@ public TokenLinkRequestDto refId(@jakarta.annotation.Nullable String refId) { * * @return refId */ - @jakarta.annotation.Nullable + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_REF_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getRefId() { return refId; } @JsonProperty(JSON_PROPERTY_REF_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRefId(@jakarta.annotation.Nullable String refId) { + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setRefId(@jakarta.annotation.Nonnull String refId) { this.refId = refId; } @@ -164,53 +158,6 @@ public void setDisplayName(@jakarta.annotation.Nullable String displayName) { this.displayName = displayName; } - public TokenLinkRequestDto baseAssetId(@jakarta.annotation.Nullable String baseAssetId) { - this.baseAssetId = baseAssetId; - return this; - } - - /** - * The blockchain base assetId - * - * @return baseAssetId - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BASE_ASSET_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getBaseAssetId() { - return baseAssetId; - } - - @JsonProperty(JSON_PROPERTY_BASE_ASSET_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBaseAssetId(@jakarta.annotation.Nullable String baseAssetId) { - this.baseAssetId = baseAssetId; - } - - public TokenLinkRequestDto contractAddress( - @jakarta.annotation.Nullable String contractAddress) { - this.contractAddress = contractAddress; - return this; - } - - /** - * The contract's onchain address - * - * @return contractAddress - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CONTRACT_ADDRESS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getContractAddress() { - return contractAddress; - } - - @JsonProperty(JSON_PROPERTY_CONTRACT_ADDRESS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setContractAddress(@jakarta.annotation.Nullable String contractAddress) { - this.contractAddress = contractAddress; - } - /** Return true if this TokenLinkRequestDto object is equal to o. */ @Override public boolean equals(Object o) { @@ -223,14 +170,12 @@ public boolean equals(Object o) { TokenLinkRequestDto tokenLinkRequestDto = (TokenLinkRequestDto) o; return Objects.equals(this.type, tokenLinkRequestDto.type) && Objects.equals(this.refId, tokenLinkRequestDto.refId) - && Objects.equals(this.displayName, tokenLinkRequestDto.displayName) - && Objects.equals(this.baseAssetId, tokenLinkRequestDto.baseAssetId) - && Objects.equals(this.contractAddress, tokenLinkRequestDto.contractAddress); + && Objects.equals(this.displayName, tokenLinkRequestDto.displayName); } @Override public int hashCode() { - return Objects.hash(type, refId, displayName, baseAssetId, contractAddress); + return Objects.hash(type, refId, displayName); } @Override @@ -240,8 +185,6 @@ public String toString() { sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" refId: ").append(toIndentedString(refId)).append("\n"); sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n"); - sb.append(" baseAssetId: ").append(toIndentedString(baseAssetId)).append("\n"); - sb.append(" contractAddress: ").append(toIndentedString(contractAddress)).append("\n"); sb.append("}"); return sb.toString(); } @@ -319,26 +262,6 @@ public String toUrlQueryString(String prefix) { ApiClient.urlEncode(ApiClient.valueToString(getDisplayName())))); } - // add `baseAssetId` to the URL query string - if (getBaseAssetId() != null) { - joiner.add( - String.format( - "%sbaseAssetId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBaseAssetId())))); - } - - // add `contractAddress` to the URL query string - if (getContractAddress() != null) { - joiner.add( - String.format( - "%scontractAddress%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getContractAddress())))); - } - return joiner.toString(); } } diff --git a/src/main/java/com/fireblocks/sdk/model/TokenOwnershipResponse.java b/src/main/java/com/fireblocks/sdk/model/TokenOwnershipResponse.java index fd2ea266..2019fbab 100644 --- a/src/main/java/com/fireblocks/sdk/model/TokenOwnershipResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/TokenOwnershipResponse.java @@ -66,7 +66,7 @@ public class TokenOwnershipResponse { @jakarta.annotation.Nullable private String cachedMetadataURI; public static final String JSON_PROPERTY_MEDIA = "media"; - @jakarta.annotation.Nullable private List media = new ArrayList<>(); + @jakarta.annotation.Nullable private List media; public static final String JSON_PROPERTY_SPAM = "spam"; @jakarta.annotation.Nullable private SpamOwnershipResponse spam; @@ -106,37 +106,7 @@ public enum BlockchainDescriptorEnum { XTZ_TEST(String.valueOf("XTZ_TEST")), - BASECHAIN_ETH(String.valueOf("BASECHAIN_ETH")), - - BASECHAIN_ETH_TEST3(String.valueOf("BASECHAIN_ETH_TEST3")), - - BASECHAIN_ETH_TEST5(String.valueOf("BASECHAIN_ETH_TEST5")), - - ETHERLINK(String.valueOf("ETHERLINK")), - - ETHERLINK_TEST(String.valueOf("ETHERLINK_TEST")), - - MANTLE(String.valueOf("MANTLE")), - - MANTLE_TEST(String.valueOf("MANTLE_TEST")), - - GUN_GUNZILLA(String.valueOf("GUN_GUNZILLA")), - - GUN_GUNZILLA_TEST(String.valueOf("GUN_GUNZILLA_TEST")), - - ETH_SONEIUM(String.valueOf("ETH_SONEIUM")), - - SONEIUM_MINATO_TEST(String.valueOf("SONEIUM_MINATO_TEST")), - - IOTX_IOTEX(String.valueOf("IOTX_IOTEX")), - - KLAY_KAIA(String.valueOf("KLAY_KAIA")), - - KLAY_KAIA_TEST(String.valueOf("KLAY_KAIA_TEST")), - - APECHAIN(String.valueOf("APECHAIN")), - - APECHAIN_TEST(String.valueOf("APECHAIN_TEST")); + BASECHAIN_ETH(String.valueOf("BASECHAIN_ETH")); private String value; diff --git a/src/main/java/com/fireblocks/sdk/model/TokenResponse.java b/src/main/java/com/fireblocks/sdk/model/TokenResponse.java index f5c70eb9..0a6b7320 100644 --- a/src/main/java/com/fireblocks/sdk/model/TokenResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/TokenResponse.java @@ -58,7 +58,7 @@ public class TokenResponse { @jakarta.annotation.Nullable private String cachedMetadataURI; public static final String JSON_PROPERTY_MEDIA = "media"; - @jakarta.annotation.Nullable private List media = new ArrayList<>(); + @jakarta.annotation.Nullable private List media; public static final String JSON_PROPERTY_SPAM = "spam"; @jakarta.annotation.Nullable private SpamTokenResponse spam; @@ -86,37 +86,7 @@ public enum BlockchainDescriptorEnum { XTZ_TEST(String.valueOf("XTZ_TEST")), - BASECHAIN_ETH(String.valueOf("BASECHAIN_ETH")), - - BASECHAIN_ETH_TEST3(String.valueOf("BASECHAIN_ETH_TEST3")), - - BASECHAIN_ETH_TEST5(String.valueOf("BASECHAIN_ETH_TEST5")), - - ETHERLINK(String.valueOf("ETHERLINK")), - - ETHERLINK_TEST(String.valueOf("ETHERLINK_TEST")), - - MANTLE(String.valueOf("MANTLE")), - - MANTLE_TEST(String.valueOf("MANTLE_TEST")), - - GUN_GUNZILLA(String.valueOf("GUN_GUNZILLA")), - - GUN_GUNZILLA_TEST(String.valueOf("GUN_GUNZILLA_TEST")), - - ETH_SONEIUM(String.valueOf("ETH_SONEIUM")), - - SONEIUM_MINATO_TEST(String.valueOf("SONEIUM_MINATO_TEST")), - - IOTX_IOTEX(String.valueOf("IOTX_IOTEX")), - - KLAY_KAIA(String.valueOf("KLAY_KAIA")), - - KLAY_KAIA_TEST(String.valueOf("KLAY_KAIA_TEST")), - - APECHAIN(String.valueOf("APECHAIN")), - - APECHAIN_TEST(String.valueOf("APECHAIN_TEST")); + BASECHAIN_ETH(String.valueOf("BASECHAIN_ETH")); private String value; diff --git a/src/main/java/com/fireblocks/sdk/model/TokensPaginatedResponse.java b/src/main/java/com/fireblocks/sdk/model/TokensPaginatedResponse.java index 32334e29..2d7ba5ba 100644 --- a/src/main/java/com/fireblocks/sdk/model/TokensPaginatedResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/TokensPaginatedResponse.java @@ -33,7 +33,7 @@ comments = "Generator version: 7.14.0") public class TokensPaginatedResponse { public static final String JSON_PROPERTY_DATA = "data"; - @jakarta.annotation.Nonnull private List data = new ArrayList<>(); + @jakarta.annotation.Nonnull private List data; public static final String JSON_PROPERTY_NEXT = "next"; @jakarta.annotation.Nullable private String next; diff --git a/src/main/java/com/fireblocks/sdk/model/TradingErrorResponse.java b/src/main/java/com/fireblocks/sdk/model/TradingErrorResponse.java deleted file mode 100644 index 4a93a22a..00000000 --- a/src/main/java/com/fireblocks/sdk/model/TradingErrorResponse.java +++ /dev/null @@ -1,141 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.Objects; -import java.util.StringJoiner; - -/** TradingErrorResponse */ -@JsonPropertyOrder({TradingErrorResponse.JSON_PROPERTY_ERROR}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class TradingErrorResponse { - public static final String JSON_PROPERTY_ERROR = "error"; - @jakarta.annotation.Nonnull private TradingErrorResponseError error; - - public TradingErrorResponse() {} - - @JsonCreator - public TradingErrorResponse( - @JsonProperty(value = JSON_PROPERTY_ERROR, required = true) - TradingErrorResponseError error) { - this.error = error; - } - - public TradingErrorResponse error(@jakarta.annotation.Nonnull TradingErrorResponseError error) { - this.error = error; - return this; - } - - /** - * Get error - * - * @return error - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ERROR) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TradingErrorResponseError getError() { - return error; - } - - @JsonProperty(JSON_PROPERTY_ERROR) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setError(@jakarta.annotation.Nonnull TradingErrorResponseError error) { - this.error = error; - } - - /** Return true if this TradingErrorResponse object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - TradingErrorResponse tradingErrorResponse = (TradingErrorResponse) o; - return Objects.equals(this.error, tradingErrorResponse.error); - } - - @Override - public int hashCode() { - return Objects.hash(error); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class TradingErrorResponse {\n"); - sb.append(" error: ").append(toIndentedString(error)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `error` to the URL query string - if (getError() != null) { - joiner.add(getError().toUrlQueryString(prefix + "error" + suffix)); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/TradingErrorResponseError.java b/src/main/java/com/fireblocks/sdk/model/TradingErrorResponseError.java deleted file mode 100644 index 1dbe5072..00000000 --- a/src/main/java/com/fireblocks/sdk/model/TradingErrorResponseError.java +++ /dev/null @@ -1,272 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** TradingErrorResponseError */ -@JsonPropertyOrder({ - TradingErrorResponseError.JSON_PROPERTY_TYPE, - TradingErrorResponseError.JSON_PROPERTY_MESSAGE, - TradingErrorResponseError.JSON_PROPERTY_ERROR_CODE -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class TradingErrorResponseError { - /** Gets or Sets type */ - public enum TypeEnum { - INTERNAL(String.valueOf("INTERNAL")), - - AUTHENTICATION(String.valueOf("AUTHENTICATION")), - - AUTHORIZATION(String.valueOf("AUTHORIZATION")), - - VALIDATION(String.valueOf("VALIDATION")), - - NOT_FOUND(String.valueOf("NOT_FOUND")), - - UNPROCESSABLE_ENTITY(String.valueOf("UNPROCESSABLE_ENTITY")), - - FORBIDDEN(String.valueOf("FORBIDDEN")); - - private String value; - - TypeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static TypeEnum fromValue(String value) { - for (TypeEnum b : TypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_TYPE = "type"; - @jakarta.annotation.Nonnull private TypeEnum type; - - public static final String JSON_PROPERTY_MESSAGE = "message"; - @jakarta.annotation.Nonnull private String message; - - public static final String JSON_PROPERTY_ERROR_CODE = "errorCode"; - @jakarta.annotation.Nullable private ErrorCodes errorCode; - - public TradingErrorResponseError() {} - - @JsonCreator - public TradingErrorResponseError( - @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) TypeEnum type, - @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = true) String message) { - this.type = type; - this.message = message; - } - - public TradingErrorResponseError type(@jakarta.annotation.Nonnull TypeEnum type) { - this.type = type; - return this; - } - - /** - * Get type - * - * @return type - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { - return type; - } - - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(@jakarta.annotation.Nonnull TypeEnum type) { - this.type = type; - } - - public TradingErrorResponseError message(@jakarta.annotation.Nonnull String message) { - this.message = message; - return this; - } - - /** - * Get message - * - * @return message - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_MESSAGE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getMessage() { - return message; - } - - @JsonProperty(JSON_PROPERTY_MESSAGE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setMessage(@jakarta.annotation.Nonnull String message) { - this.message = message; - } - - public TradingErrorResponseError errorCode(@jakarta.annotation.Nullable ErrorCodes errorCode) { - this.errorCode = errorCode; - return this; - } - - /** - * Get errorCode - * - * @return errorCode - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ERROR_CODE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public ErrorCodes getErrorCode() { - return errorCode; - } - - @JsonProperty(JSON_PROPERTY_ERROR_CODE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setErrorCode(@jakarta.annotation.Nullable ErrorCodes errorCode) { - this.errorCode = errorCode; - } - - /** Return true if this TradingErrorResponse_error object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - TradingErrorResponseError tradingErrorResponseError = (TradingErrorResponseError) o; - return Objects.equals(this.type, tradingErrorResponseError.type) - && Objects.equals(this.message, tradingErrorResponseError.message) - && Objects.equals(this.errorCode, tradingErrorResponseError.errorCode); - } - - @Override - public int hashCode() { - return Objects.hash(type, message, errorCode); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class TradingErrorResponseError {\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); - sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `type` to the URL query string - if (getType() != null) { - joiner.add( - String.format( - "%stype%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getType())))); - } - - // add `message` to the URL query string - if (getMessage() != null) { - joiner.add( - String.format( - "%smessage%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getMessage())))); - } - - // add `errorCode` to the URL query string - if (getErrorCode() != null) { - joiner.add( - String.format( - "%serrorCode%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getErrorCode())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/TradingProvider.java b/src/main/java/com/fireblocks/sdk/model/TradingProvider.java deleted file mode 100644 index b6b1ea64..00000000 --- a/src/main/java/com/fireblocks/sdk/model/TradingProvider.java +++ /dev/null @@ -1,328 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.core.JsonGenerator; -import com.fasterxml.jackson.core.JsonParser; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.core.JsonToken; -import com.fasterxml.jackson.databind.DeserializationContext; -import com.fasterxml.jackson.databind.JsonMappingException; -import com.fasterxml.jackson.databind.JsonNode; -import com.fasterxml.jackson.databind.MapperFeature; -import com.fasterxml.jackson.databind.SerializerProvider; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import com.fasterxml.jackson.databind.deser.std.StdDeserializer; -import com.fasterxml.jackson.databind.ser.std.StdSerializer; -import com.fireblocks.sdk.JSON; -import java.io.IOException; -import java.util.Collections; -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; -import java.util.StringJoiner; -import java.util.logging.Level; -import java.util.logging.Logger; - -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -@JsonDeserialize(using = TradingProvider.TradingProviderDeserializer.class) -@JsonSerialize(using = TradingProvider.TradingProviderSerializer.class) -public class TradingProvider extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(TradingProvider.class.getName()); - - public static class TradingProviderSerializer extends StdSerializer { - public TradingProviderSerializer(Class t) { - super(t); - } - - public TradingProviderSerializer() { - this(null); - } - - @Override - public void serialize( - TradingProvider value, JsonGenerator jgen, SerializerProvider provider) - throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); - } - } - - public static class TradingProviderDeserializer extends StdDeserializer { - public TradingProviderDeserializer() { - this(TradingProvider.class); - } - - public TradingProviderDeserializer(Class vc) { - super(vc); - } - - @Override - public TradingProvider deserialize(JsonParser jp, DeserializationContext ctxt) - throws IOException, JsonProcessingException { - JsonNode tree = jp.readValueAsTree(); - Object deserialized = null; - boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); - int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); - // deserialize AccountBasedAccessProvider - try { - boolean attemptParsing = true; - // ensure that we respect type coercion as set on the client ObjectMapper - if (AccountBasedAccessProvider.class.equals(Integer.class) - || AccountBasedAccessProvider.class.equals(Long.class) - || AccountBasedAccessProvider.class.equals(Float.class) - || AccountBasedAccessProvider.class.equals(Double.class) - || AccountBasedAccessProvider.class.equals(Boolean.class) - || AccountBasedAccessProvider.class.equals(String.class)) { - attemptParsing = typeCoercion; - if (!attemptParsing) { - attemptParsing |= - ((AccountBasedAccessProvider.class.equals(Integer.class) - || AccountBasedAccessProvider.class.equals( - Long.class)) - && token == JsonToken.VALUE_NUMBER_INT); - attemptParsing |= - ((AccountBasedAccessProvider.class.equals(Float.class) - || AccountBasedAccessProvider.class.equals( - Double.class)) - && token == JsonToken.VALUE_NUMBER_FLOAT); - attemptParsing |= - (AccountBasedAccessProvider.class.equals(Boolean.class) - && (token == JsonToken.VALUE_FALSE - || token == JsonToken.VALUE_TRUE)); - attemptParsing |= - (AccountBasedAccessProvider.class.equals(String.class) - && token == JsonToken.VALUE_STRING); - } - } - if (attemptParsing) { - deserialized = - tree.traverse(jp.getCodec()) - .readValueAs(AccountBasedAccessProvider.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'AccountBasedAccessProvider'"); - } - } catch (Exception e) { - // deserialization failed, continue - log.log( - Level.FINER, - "Input data does not match schema 'AccountBasedAccessProvider'", - e); - } - - // deserialize DirectAccessProvider - try { - boolean attemptParsing = true; - // ensure that we respect type coercion as set on the client ObjectMapper - if (DirectAccessProvider.class.equals(Integer.class) - || DirectAccessProvider.class.equals(Long.class) - || DirectAccessProvider.class.equals(Float.class) - || DirectAccessProvider.class.equals(Double.class) - || DirectAccessProvider.class.equals(Boolean.class) - || DirectAccessProvider.class.equals(String.class)) { - attemptParsing = typeCoercion; - if (!attemptParsing) { - attemptParsing |= - ((DirectAccessProvider.class.equals(Integer.class) - || DirectAccessProvider.class.equals(Long.class)) - && token == JsonToken.VALUE_NUMBER_INT); - attemptParsing |= - ((DirectAccessProvider.class.equals(Float.class) - || DirectAccessProvider.class.equals(Double.class)) - && token == JsonToken.VALUE_NUMBER_FLOAT); - attemptParsing |= - (DirectAccessProvider.class.equals(Boolean.class) - && (token == JsonToken.VALUE_FALSE - || token == JsonToken.VALUE_TRUE)); - attemptParsing |= - (DirectAccessProvider.class.equals(String.class) - && token == JsonToken.VALUE_STRING); - } - } - if (attemptParsing) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(DirectAccessProvider.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'DirectAccessProvider'"); - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'DirectAccessProvider'", e); - } - - if (match == 1) { - TradingProvider ret = new TradingProvider(); - ret.setActualInstance(deserialized); - return ret; - } - throw new IOException( - String.format( - "Failed deserialization for TradingProvider: %d classes match result," - + " expected 1", - match)); - } - - /** Handle deserialization of the 'null' value. */ - @Override - public TradingProvider getNullValue(DeserializationContext ctxt) - throws JsonMappingException { - throw new JsonMappingException(ctxt.getParser(), "TradingProvider cannot be null"); - } - } - - // store a list of schema names defined in oneOf - public static final Map> schemas = new HashMap<>(); - - public TradingProvider() { - super("oneOf", Boolean.FALSE); - } - - public TradingProvider(AccountBasedAccessProvider o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public TradingProvider(DirectAccessProvider o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("AccountBasedAccessProvider", AccountBasedAccessProvider.class); - schemas.put("DirectAccessProvider", DirectAccessProvider.class); - JSON.registerDescendants(TradingProvider.class, Collections.unmodifiableMap(schemas)); - } - - @Override - public Map> getSchemas() { - return TradingProvider.schemas; - } - - /** - * Set the instance that matches the oneOf child schema, check the instance parameter is valid - * against the oneOf child schemas: AccountBasedAccessProvider, DirectAccessProvider - * - *

It could be an instance of the 'oneOf' schemas. The oneOf child schemas may themselves be - * a composed schema (allOf, anyOf, oneOf). - */ - @Override - public void setActualInstance(Object instance) { - if (JSON.isInstanceOf( - AccountBasedAccessProvider.class, instance, new HashSet>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(DirectAccessProvider.class, instance, new HashSet>())) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException( - "Invalid instance type. Must be AccountBasedAccessProvider, DirectAccessProvider"); - } - - /** - * Get the actual instance, which can be the following: AccountBasedAccessProvider, - * DirectAccessProvider - * - * @return The actual instance (AccountBasedAccessProvider, DirectAccessProvider) - */ - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `AccountBasedAccessProvider`. If the actual instance is not - * `AccountBasedAccessProvider`, the ClassCastException will be thrown. - * - * @return The actual instance of `AccountBasedAccessProvider` - * @throws ClassCastException if the instance is not `AccountBasedAccessProvider` - */ - public AccountBasedAccessProvider getAccountBasedAccessProvider() throws ClassCastException { - return (AccountBasedAccessProvider) super.getActualInstance(); - } - - /** - * Get the actual instance of `DirectAccessProvider`. If the actual instance is not - * `DirectAccessProvider`, the ClassCastException will be thrown. - * - * @return The actual instance of `DirectAccessProvider` - * @throws ClassCastException if the instance is not `DirectAccessProvider` - */ - public DirectAccessProvider getDirectAccessProvider() throws ClassCastException { - return (DirectAccessProvider) super.getActualInstance(); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - if (getActualInstance() instanceof AccountBasedAccessProvider) { - if (getActualInstance() != null) { - joiner.add( - ((AccountBasedAccessProvider) getActualInstance()) - .toUrlQueryString(prefix + "one_of_0" + suffix)); - } - return joiner.toString(); - } - if (getActualInstance() instanceof DirectAccessProvider) { - if (getActualInstance() != null) { - joiner.add( - ((DirectAccessProvider) getActualInstance()) - .toUrlQueryString(prefix + "one_of_1" + suffix)); - } - return joiner.toString(); - } - return null; - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/TransactionOperation.java b/src/main/java/com/fireblocks/sdk/model/TransactionOperation.java index 05a0d1a5..21769a7c 100644 --- a/src/main/java/com/fireblocks/sdk/model/TransactionOperation.java +++ b/src/main/java/com/fireblocks/sdk/model/TransactionOperation.java @@ -25,22 +25,14 @@ * Calls a smart contract method for web3 operations on any EVM blockchain. The Fireblocks * [development * libraries](https://developers.fireblocks.com/docs/ethereum-development#convenience-libraries) are - * recommended for building contract call transactions. * `PROGRAM_CALL` - Execute - * multiple instructions on Solana blockchain. The @solana/web3.js library is recommended for - * building program call transactions. Currently in beta and disabled * `TYPED_MESSAGE` - - * An off-chain message in either Ethereum Personal Message or EIP712 format. Use it to sign - * specific readable messages that are not actual transactions. [Learn more about typed + * recommended for building contract call transactions. * `TYPED_MESSAGE` - An off-chain + * message in either Ethereum Personal Message or EIP712 format. Use it to sign specific readable + * messages that are not actual transactions. [Learn more about typed * messages](https://developers.fireblocks.com/docs/typed-message-signing). * `RAW` - An * off-chain message with no predefined format. Use it to sign any message with your private key, * including protocols such as blockchains and custom transaction types that are not natively * supported by Fireblocks. [Learn more about raw signing - * transactions.](https://developers.fireblocks.com/docs/raw-message-signing) * `APPROVE` - * - Enables the approve function for a smart contract or wallet to withdraw from a designated - * wallet. [Learn - * more](https://support.fireblocks.io/hc/en-us/articles/4404616097426-Amount-Cap-for-Approve-transactions). - * * `ENABLE_ASSET` - Algorand, DigitalBits, Solana, and Stellar require an on-chain - * transaction to create an asset wallet and enable the deposit address. This transaction is - * automatically created when adding assets on these blockchains at a vault account. + * transactions.](https://developers.fireblocks.com/docs/raw-message-signing) */ public enum TransactionOperation { TRANSFER("TRANSFER"), @@ -49,17 +41,11 @@ public enum TransactionOperation { CONTRACT_CALL("CONTRACT_CALL"), - PROGRAM_CALL("PROGRAM_CALL"), - MINT("MINT"), RAW("RAW"), - TYPED_MESSAGE("TYPED_MESSAGE"), - - APPROVE("APPROVE"), - - ENABLE_ASSET("ENABLE_ASSET"); + TYPED_MESSAGE("TYPED_MESSAGE"); private String value; diff --git a/src/main/java/com/fireblocks/sdk/model/TransactionReceiptResponse.java b/src/main/java/com/fireblocks/sdk/model/TransactionReceiptResponse.java deleted file mode 100644 index 2eea130f..00000000 --- a/src/main/java/com/fireblocks/sdk/model/TransactionReceiptResponse.java +++ /dev/null @@ -1,728 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** TransactionReceiptResponse */ -@JsonPropertyOrder({ - TransactionReceiptResponse.JSON_PROPERTY_BLOCK_HASH, - TransactionReceiptResponse.JSON_PROPERTY_BLOCK_NUMBER, - TransactionReceiptResponse.JSON_PROPERTY_CONTRACT_ADDRESS, - TransactionReceiptResponse.JSON_PROPERTY_CUMULATIVE_GAS_USED, - TransactionReceiptResponse.JSON_PROPERTY_EFFECTIVE_GAS_PRICE, - TransactionReceiptResponse.JSON_PROPERTY_FROM, - TransactionReceiptResponse.JSON_PROPERTY_GAS_USED, - TransactionReceiptResponse.JSON_PROPERTY_LOGS, - TransactionReceiptResponse.JSON_PROPERTY_LOGS_BLOOM, - TransactionReceiptResponse.JSON_PROPERTY_STATUS, - TransactionReceiptResponse.JSON_PROPERTY_TO, - TransactionReceiptResponse.JSON_PROPERTY_TRANSACTION_HASH, - TransactionReceiptResponse.JSON_PROPERTY_TRANSACTION_INDEX, - TransactionReceiptResponse.JSON_PROPERTY_TYPE -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class TransactionReceiptResponse { - public static final String JSON_PROPERTY_BLOCK_HASH = "blockHash"; - @jakarta.annotation.Nonnull private String blockHash; - - public static final String JSON_PROPERTY_BLOCK_NUMBER = "blockNumber"; - @jakarta.annotation.Nonnull private Integer blockNumber; - - public static final String JSON_PROPERTY_CONTRACT_ADDRESS = "contractAddress"; - @jakarta.annotation.Nullable private String contractAddress; - - public static final String JSON_PROPERTY_CUMULATIVE_GAS_USED = "cumulativeGasUsed"; - @jakarta.annotation.Nonnull private Integer cumulativeGasUsed; - - public static final String JSON_PROPERTY_EFFECTIVE_GAS_PRICE = "effectiveGasPrice"; - @jakarta.annotation.Nonnull private Integer effectiveGasPrice; - - public static final String JSON_PROPERTY_FROM = "from"; - @jakarta.annotation.Nonnull private String from; - - public static final String JSON_PROPERTY_GAS_USED = "gasUsed"; - @jakarta.annotation.Nonnull private Integer gasUsed; - - public static final String JSON_PROPERTY_LOGS = "logs"; - @jakarta.annotation.Nonnull private List logs = new ArrayList<>(); - - public static final String JSON_PROPERTY_LOGS_BLOOM = "logsBloom"; - @jakarta.annotation.Nonnull private String logsBloom; - - public static final String JSON_PROPERTY_STATUS = "status"; - @jakarta.annotation.Nonnull private Integer status; - - public static final String JSON_PROPERTY_TO = "to"; - @jakarta.annotation.Nullable private String to; - - public static final String JSON_PROPERTY_TRANSACTION_HASH = "transactionHash"; - @jakarta.annotation.Nonnull private String transactionHash; - - public static final String JSON_PROPERTY_TRANSACTION_INDEX = "transactionIndex"; - @jakarta.annotation.Nonnull private Integer transactionIndex; - - public static final String JSON_PROPERTY_TYPE = "type"; - @jakarta.annotation.Nonnull private String type; - - public TransactionReceiptResponse() {} - - @JsonCreator - public TransactionReceiptResponse( - @JsonProperty(value = JSON_PROPERTY_BLOCK_HASH, required = true) String blockHash, - @JsonProperty(value = JSON_PROPERTY_BLOCK_NUMBER, required = true) Integer blockNumber, - @JsonProperty(value = JSON_PROPERTY_CUMULATIVE_GAS_USED, required = true) - Integer cumulativeGasUsed, - @JsonProperty(value = JSON_PROPERTY_EFFECTIVE_GAS_PRICE, required = true) - Integer effectiveGasPrice, - @JsonProperty(value = JSON_PROPERTY_FROM, required = true) String from, - @JsonProperty(value = JSON_PROPERTY_GAS_USED, required = true) Integer gasUsed, - @JsonProperty(value = JSON_PROPERTY_LOGS, required = true) List logs, - @JsonProperty(value = JSON_PROPERTY_LOGS_BLOOM, required = true) String logsBloom, - @JsonProperty(value = JSON_PROPERTY_STATUS, required = true) Integer status, - @JsonProperty(value = JSON_PROPERTY_TRANSACTION_HASH, required = true) - String transactionHash, - @JsonProperty(value = JSON_PROPERTY_TRANSACTION_INDEX, required = true) - Integer transactionIndex, - @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) String type) { - this.blockHash = blockHash; - this.blockNumber = blockNumber; - this.cumulativeGasUsed = cumulativeGasUsed; - this.effectiveGasPrice = effectiveGasPrice; - this.from = from; - this.gasUsed = gasUsed; - this.logs = logs; - this.logsBloom = logsBloom; - this.status = status; - this.transactionHash = transactionHash; - this.transactionIndex = transactionIndex; - this.type = type; - } - - public TransactionReceiptResponse blockHash(@jakarta.annotation.Nonnull String blockHash) { - this.blockHash = blockHash; - return this; - } - - /** - * The block hash - * - * @return blockHash - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BLOCK_HASH) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getBlockHash() { - return blockHash; - } - - @JsonProperty(JSON_PROPERTY_BLOCK_HASH) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBlockHash(@jakarta.annotation.Nonnull String blockHash) { - this.blockHash = blockHash; - } - - public TransactionReceiptResponse blockNumber(@jakarta.annotation.Nonnull Integer blockNumber) { - this.blockNumber = blockNumber; - return this; - } - - /** - * The block number - * - * @return blockNumber - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BLOCK_NUMBER) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getBlockNumber() { - return blockNumber; - } - - @JsonProperty(JSON_PROPERTY_BLOCK_NUMBER) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBlockNumber(@jakarta.annotation.Nonnull Integer blockNumber) { - this.blockNumber = blockNumber; - } - - public TransactionReceiptResponse contractAddress( - @jakarta.annotation.Nullable String contractAddress) { - this.contractAddress = contractAddress; - return this; - } - - /** - * The address of deployed contract - * - * @return contractAddress - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CONTRACT_ADDRESS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getContractAddress() { - return contractAddress; - } - - @JsonProperty(JSON_PROPERTY_CONTRACT_ADDRESS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setContractAddress(@jakarta.annotation.Nullable String contractAddress) { - this.contractAddress = contractAddress; - } - - public TransactionReceiptResponse cumulativeGasUsed( - @jakarta.annotation.Nonnull Integer cumulativeGasUsed) { - this.cumulativeGasUsed = cumulativeGasUsed; - return this; - } - - /** - * The cumulative gas used in the transaction - * - * @return cumulativeGasUsed - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CUMULATIVE_GAS_USED) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getCumulativeGasUsed() { - return cumulativeGasUsed; - } - - @JsonProperty(JSON_PROPERTY_CUMULATIVE_GAS_USED) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCumulativeGasUsed(@jakarta.annotation.Nonnull Integer cumulativeGasUsed) { - this.cumulativeGasUsed = cumulativeGasUsed; - } - - public TransactionReceiptResponse effectiveGasPrice( - @jakarta.annotation.Nonnull Integer effectiveGasPrice) { - this.effectiveGasPrice = effectiveGasPrice; - return this; - } - - /** - * The effective gas price - * - * @return effectiveGasPrice - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_EFFECTIVE_GAS_PRICE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getEffectiveGasPrice() { - return effectiveGasPrice; - } - - @JsonProperty(JSON_PROPERTY_EFFECTIVE_GAS_PRICE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setEffectiveGasPrice(@jakarta.annotation.Nonnull Integer effectiveGasPrice) { - this.effectiveGasPrice = effectiveGasPrice; - } - - public TransactionReceiptResponse from(@jakarta.annotation.Nonnull String from) { - this.from = from; - return this; - } - - /** - * Sender address - * - * @return from - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_FROM) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getFrom() { - return from; - } - - @JsonProperty(JSON_PROPERTY_FROM) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setFrom(@jakarta.annotation.Nonnull String from) { - this.from = from; - } - - public TransactionReceiptResponse gasUsed(@jakarta.annotation.Nonnull Integer gasUsed) { - this.gasUsed = gasUsed; - return this; - } - - /** - * Gas used by the transaction - * - * @return gasUsed - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_GAS_USED) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getGasUsed() { - return gasUsed; - } - - @JsonProperty(JSON_PROPERTY_GAS_USED) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setGasUsed(@jakarta.annotation.Nonnull Integer gasUsed) { - this.gasUsed = gasUsed; - } - - public TransactionReceiptResponse logs(@jakarta.annotation.Nonnull List logs) { - this.logs = logs; - return this; - } - - public TransactionReceiptResponse addLogsItem(TxLog logsItem) { - if (this.logs == null) { - this.logs = new ArrayList<>(); - } - this.logs.add(logsItem); - return this; - } - - /** - * Array of transaction logs - * - * @return logs - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_LOGS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getLogs() { - return logs; - } - - @JsonProperty(JSON_PROPERTY_LOGS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setLogs(@jakarta.annotation.Nonnull List logs) { - this.logs = logs; - } - - public TransactionReceiptResponse logsBloom(@jakarta.annotation.Nonnull String logsBloom) { - this.logsBloom = logsBloom; - return this; - } - - /** - * Logs bloom filter - * - * @return logsBloom - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_LOGS_BLOOM) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getLogsBloom() { - return logsBloom; - } - - @JsonProperty(JSON_PROPERTY_LOGS_BLOOM) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setLogsBloom(@jakarta.annotation.Nonnull String logsBloom) { - this.logsBloom = logsBloom; - } - - public TransactionReceiptResponse status(@jakarta.annotation.Nonnull Integer status) { - this.status = status; - return this; - } - - /** - * Transaction status (1 for success, 0 for failure) - * - * @return status - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_STATUS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getStatus() { - return status; - } - - @JsonProperty(JSON_PROPERTY_STATUS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStatus(@jakarta.annotation.Nonnull Integer status) { - this.status = status; - } - - public TransactionReceiptResponse to(@jakarta.annotation.Nullable String to) { - this.to = to; - return this; - } - - /** - * Recipient address - * - * @return to - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TO) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getTo() { - return to; - } - - @JsonProperty(JSON_PROPERTY_TO) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTo(@jakarta.annotation.Nullable String to) { - this.to = to; - } - - public TransactionReceiptResponse transactionHash( - @jakarta.annotation.Nonnull String transactionHash) { - this.transactionHash = transactionHash; - return this; - } - - /** - * The transaction hash - * - * @return transactionHash - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TRANSACTION_HASH) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getTransactionHash() { - return transactionHash; - } - - @JsonProperty(JSON_PROPERTY_TRANSACTION_HASH) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTransactionHash(@jakarta.annotation.Nonnull String transactionHash) { - this.transactionHash = transactionHash; - } - - public TransactionReceiptResponse transactionIndex( - @jakarta.annotation.Nonnull Integer transactionIndex) { - this.transactionIndex = transactionIndex; - return this; - } - - /** - * Transaction index in the block - * - * @return transactionIndex - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TRANSACTION_INDEX) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getTransactionIndex() { - return transactionIndex; - } - - @JsonProperty(JSON_PROPERTY_TRANSACTION_INDEX) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTransactionIndex(@jakarta.annotation.Nonnull Integer transactionIndex) { - this.transactionIndex = transactionIndex; - } - - public TransactionReceiptResponse type(@jakarta.annotation.Nonnull String type) { - this.type = type; - return this; - } - - /** - * Type of transaction - * - * @return type - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getType() { - return type; - } - - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(@jakarta.annotation.Nonnull String type) { - this.type = type; - } - - /** Return true if this TransactionReceiptResponse object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - TransactionReceiptResponse transactionReceiptResponse = (TransactionReceiptResponse) o; - return Objects.equals(this.blockHash, transactionReceiptResponse.blockHash) - && Objects.equals(this.blockNumber, transactionReceiptResponse.blockNumber) - && Objects.equals(this.contractAddress, transactionReceiptResponse.contractAddress) - && Objects.equals( - this.cumulativeGasUsed, transactionReceiptResponse.cumulativeGasUsed) - && Objects.equals( - this.effectiveGasPrice, transactionReceiptResponse.effectiveGasPrice) - && Objects.equals(this.from, transactionReceiptResponse.from) - && Objects.equals(this.gasUsed, transactionReceiptResponse.gasUsed) - && Objects.equals(this.logs, transactionReceiptResponse.logs) - && Objects.equals(this.logsBloom, transactionReceiptResponse.logsBloom) - && Objects.equals(this.status, transactionReceiptResponse.status) - && Objects.equals(this.to, transactionReceiptResponse.to) - && Objects.equals(this.transactionHash, transactionReceiptResponse.transactionHash) - && Objects.equals( - this.transactionIndex, transactionReceiptResponse.transactionIndex) - && Objects.equals(this.type, transactionReceiptResponse.type); - } - - @Override - public int hashCode() { - return Objects.hash( - blockHash, - blockNumber, - contractAddress, - cumulativeGasUsed, - effectiveGasPrice, - from, - gasUsed, - logs, - logsBloom, - status, - to, - transactionHash, - transactionIndex, - type); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class TransactionReceiptResponse {\n"); - sb.append(" blockHash: ").append(toIndentedString(blockHash)).append("\n"); - sb.append(" blockNumber: ").append(toIndentedString(blockNumber)).append("\n"); - sb.append(" contractAddress: ").append(toIndentedString(contractAddress)).append("\n"); - sb.append(" cumulativeGasUsed: ") - .append(toIndentedString(cumulativeGasUsed)) - .append("\n"); - sb.append(" effectiveGasPrice: ") - .append(toIndentedString(effectiveGasPrice)) - .append("\n"); - sb.append(" from: ").append(toIndentedString(from)).append("\n"); - sb.append(" gasUsed: ").append(toIndentedString(gasUsed)).append("\n"); - sb.append(" logs: ").append(toIndentedString(logs)).append("\n"); - sb.append(" logsBloom: ").append(toIndentedString(logsBloom)).append("\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append(" to: ").append(toIndentedString(to)).append("\n"); - sb.append(" transactionHash: ").append(toIndentedString(transactionHash)).append("\n"); - sb.append(" transactionIndex: ").append(toIndentedString(transactionIndex)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `blockHash` to the URL query string - if (getBlockHash() != null) { - joiner.add( - String.format( - "%sblockHash%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBlockHash())))); - } - - // add `blockNumber` to the URL query string - if (getBlockNumber() != null) { - joiner.add( - String.format( - "%sblockNumber%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBlockNumber())))); - } - - // add `contractAddress` to the URL query string - if (getContractAddress() != null) { - joiner.add( - String.format( - "%scontractAddress%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getContractAddress())))); - } - - // add `cumulativeGasUsed` to the URL query string - if (getCumulativeGasUsed() != null) { - joiner.add( - String.format( - "%scumulativeGasUsed%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getCumulativeGasUsed())))); - } - - // add `effectiveGasPrice` to the URL query string - if (getEffectiveGasPrice() != null) { - joiner.add( - String.format( - "%seffectiveGasPrice%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getEffectiveGasPrice())))); - } - - // add `from` to the URL query string - if (getFrom() != null) { - joiner.add( - String.format( - "%sfrom%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getFrom())))); - } - - // add `gasUsed` to the URL query string - if (getGasUsed() != null) { - joiner.add( - String.format( - "%sgasUsed%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getGasUsed())))); - } - - // add `logs` to the URL query string - if (getLogs() != null) { - for (int i = 0; i < getLogs().size(); i++) { - if (getLogs().get(i) != null) { - joiner.add( - getLogs() - .get(i) - .toUrlQueryString( - String.format( - "%slogs%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } - } - - // add `logsBloom` to the URL query string - if (getLogsBloom() != null) { - joiner.add( - String.format( - "%slogsBloom%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getLogsBloom())))); - } - - // add `status` to the URL query string - if (getStatus() != null) { - joiner.add( - String.format( - "%sstatus%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getStatus())))); - } - - // add `to` to the URL query string - if (getTo() != null) { - joiner.add( - String.format( - "%sto%s=%s", - prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getTo())))); - } - - // add `transactionHash` to the URL query string - if (getTransactionHash() != null) { - joiner.add( - String.format( - "%stransactionHash%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getTransactionHash())))); - } - - // add `transactionIndex` to the URL query string - if (getTransactionIndex() != null) { - joiner.add( - String.format( - "%stransactionIndex%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getTransactionIndex())))); - } - - // add `type` to the URL query string - if (getType() != null) { - joiner.add( - String.format( - "%stype%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getType())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/TransactionRequest.java b/src/main/java/com/fireblocks/sdk/model/TransactionRequest.java index 487ae87f..9e0fcc43 100644 --- a/src/main/java/com/fireblocks/sdk/model/TransactionRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/TransactionRequest.java @@ -41,7 +41,6 @@ TransactionRequest.JSON_PROPERTY_PRIORITY_FEE, TransactionRequest.JSON_PROPERTY_FAIL_ON_LOW_FEE, TransactionRequest.JSON_PROPERTY_MAX_FEE, - TransactionRequest.JSON_PROPERTY_MAX_TOTAL_FEE, TransactionRequest.JSON_PROPERTY_GAS_LIMIT, TransactionRequest.JSON_PROPERTY_GAS_PRICE, TransactionRequest.JSON_PROPERTY_NETWORK_FEE, @@ -49,11 +48,9 @@ TransactionRequest.JSON_PROPERTY_EXTRA_PARAMETERS, TransactionRequest.JSON_PROPERTY_CUSTOMER_REF_ID, TransactionRequest.JSON_PROPERTY_TRAVEL_RULE_MESSAGE, - TransactionRequest.JSON_PROPERTY_TRAVEL_RULE_MESSAGE_ID, TransactionRequest.JSON_PROPERTY_AUTO_STAKING, TransactionRequest.JSON_PROPERTY_NETWORK_STAKING, - TransactionRequest.JSON_PROPERTY_CPU_STAKING, - TransactionRequest.JSON_PROPERTY_USE_GASLESS + TransactionRequest.JSON_PROPERTY_CPU_STAKING }) @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", @@ -80,9 +77,7 @@ public class TransactionRequest { @jakarta.annotation.Nullable private DestinationTransferPeerPath destination; public static final String JSON_PROPERTY_DESTINATIONS = "destinations"; - - @jakarta.annotation.Nullable - private List destinations = new ArrayList<>(); + @jakarta.annotation.Nullable private List destinations; public static final String JSON_PROPERTY_AMOUNT = "amount"; @jakarta.annotation.Nullable private TransactionRequestAmount amount; @@ -146,9 +141,6 @@ public static FeeLevelEnum fromValue(String value) { public static final String JSON_PROPERTY_MAX_FEE = "maxFee"; @jakarta.annotation.Nullable private String maxFee; - public static final String JSON_PROPERTY_MAX_TOTAL_FEE = "maxTotalFee"; - @jakarta.annotation.Nullable private String maxTotalFee; - public static final String JSON_PROPERTY_GAS_LIMIT = "gasLimit"; @jakarta.annotation.Nullable private TransactionRequestGasLimit gasLimit; @@ -170,9 +162,6 @@ public static FeeLevelEnum fromValue(String value) { public static final String JSON_PROPERTY_TRAVEL_RULE_MESSAGE = "travelRuleMessage"; @jakarta.annotation.Nullable private TravelRuleCreateTransactionRequest travelRuleMessage; - public static final String JSON_PROPERTY_TRAVEL_RULE_MESSAGE_ID = "travelRuleMessageId"; - @jakarta.annotation.Nullable private String travelRuleMessageId; - public static final String JSON_PROPERTY_AUTO_STAKING = "autoStaking"; @jakarta.annotation.Nullable private Boolean autoStaking; @@ -182,9 +171,6 @@ public static FeeLevelEnum fromValue(String value) { public static final String JSON_PROPERTY_CPU_STAKING = "cpuStaking"; @jakarta.annotation.Nullable private TransactionRequestNetworkStaking cpuStaking; - public static final String JSON_PROPERTY_USE_GASLESS = "useGasless"; - @jakarta.annotation.Nullable private Boolean useGasless; - public TransactionRequest() {} public TransactionRequest operation( @@ -241,15 +227,14 @@ public TransactionRequest externalTxId(@jakarta.annotation.Nullable String exter } /** - * **This parameter will become required for all transactions on March 1, 2026.** This parameter - * allows you to add a unique ID of your own to help prevent duplicate transactions. No specific - * format is required for this parameter. After you submit a transaction with an external ID, - * Fireblocks will automatically reject all future transactions with the same ID. Using an - * external ID primarily helps in situations where, even though a submitted transaction responds - * with an error due to an internet outage, the transaction was still sent to and processed on - * the blockchain. Use the [Get a specific transaction by external transaction - * ID](https://developers.fireblocks.com/reference/gettransactionbyexternalid) endpoint to - * validate whether these transactions have been processed. + * An optional but highly recommended parameter. Fireblocks will reject future transactions with + * same ID. You should set this to a unique ID representing the transaction, to avoid submitting + * the same transaction twice. This helps with cases where submitting the transaction responds + * with an error code due to Internet interruptions, but the transaction was actually sent and + * processed. To validate whether a transaction has been processed, [Find a specific transaction + * by external transaction + * ID](https://developers.fireblocks.com/reference/get_transactions-external-tx-id-externaltxid). + * There is no specific format required for this parameter. * * @return externalTxId */ @@ -571,30 +556,6 @@ public void setMaxFee(@jakarta.annotation.Nullable String maxFee) { this.maxFee = maxFee; } - public TransactionRequest maxTotalFee(@jakarta.annotation.Nullable String maxTotalFee) { - this.maxTotalFee = maxTotalFee; - return this; - } - - /** - * For BTC-based blockchains only. The maximum fee (in the units of the fee-paying asset) that - * should be paid for the transaction. - * - * @return maxTotalFee - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAX_TOTAL_FEE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getMaxTotalFee() { - return maxTotalFee; - } - - @JsonProperty(JSON_PROPERTY_MAX_TOTAL_FEE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMaxTotalFee(@jakarta.annotation.Nullable String maxTotalFee) { - this.maxTotalFee = maxTotalFee; - } - public TransactionRequest gasLimit( @jakarta.annotation.Nullable TransactionRequestGasLimit gasLimit) { this.gasLimit = gasLimit; @@ -712,14 +673,7 @@ public TransactionRequest extraParameters(@jakarta.annotation.Nullable Object ex * value set to the Ethereum smart contract Application Binary Interface (ABI) payload. The * Fireblocks [development * libraries](https://developers.fireblocks.com/docs/ethereum-development#convenience-libraries) - * are recommended for building contract call transactions. For **exchange compliance (e.g., - * Binance) and Travel Rule purposes**, include the key `piiData` containing a - * **custom JSON structure** with Personally Identifiable Information (PII) relevant to the - * transaction. This data must be fully **encrypted by the sender** before being submitted to - * the Fireblocks API. The recommended encryption method is **hybrid encryption** using - * AES-256-GCM for the payload and RSA-OAEP for key exchange, with the recipient exchange’s - * public key. [development - * libraries](https://developers.fireblocks.com/docs/a-developers-guide-to-constructing-encrypted-pii-messages-for-binance-via-fireblocks) + * are recommended for building contract call transactions. * * @return extraParameters */ @@ -784,31 +738,6 @@ public void setTravelRuleMessage( this.travelRuleMessage = travelRuleMessage; } - public TransactionRequest travelRuleMessageId( - @jakarta.annotation.Nullable String travelRuleMessageId) { - this.travelRuleMessageId = travelRuleMessageId; - return this; - } - - /** - * The ID of the travel rule message from any travel rule provider. Used for travel rule linking - * functionality to associate transactions with existing travel rule messages. - * - * @return travelRuleMessageId - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TRAVEL_RULE_MESSAGE_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getTravelRuleMessageId() { - return travelRuleMessageId; - } - - @JsonProperty(JSON_PROPERTY_TRAVEL_RULE_MESSAGE_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTravelRuleMessageId(@jakarta.annotation.Nullable String travelRuleMessageId) { - this.travelRuleMessageId = travelRuleMessageId; - } - public TransactionRequest autoStaking(@jakarta.annotation.Nullable Boolean autoStaking) { this.autoStaking = autoStaking; return this; @@ -888,29 +817,6 @@ public void setCpuStaking( this.cpuStaking = cpuStaking; } - public TransactionRequest useGasless(@jakarta.annotation.Nullable Boolean useGasless) { - this.useGasless = useGasless; - return this; - } - - /** - * - Override the default gasless configuration by sending true\\false - * - * @return useGasless - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USE_GASLESS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getUseGasless() { - return useGasless; - } - - @JsonProperty(JSON_PROPERTY_USE_GASLESS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUseGasless(@jakarta.annotation.Nullable Boolean useGasless) { - this.useGasless = useGasless; - } - /** Return true if this TransactionRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -936,7 +842,6 @@ public boolean equals(Object o) { && Objects.equals(this.priorityFee, transactionRequest.priorityFee) && Objects.equals(this.failOnLowFee, transactionRequest.failOnLowFee) && Objects.equals(this.maxFee, transactionRequest.maxFee) - && Objects.equals(this.maxTotalFee, transactionRequest.maxTotalFee) && Objects.equals(this.gasLimit, transactionRequest.gasLimit) && Objects.equals(this.gasPrice, transactionRequest.gasPrice) && Objects.equals(this.networkFee, transactionRequest.networkFee) @@ -944,11 +849,9 @@ public boolean equals(Object o) { && Objects.equals(this.extraParameters, transactionRequest.extraParameters) && Objects.equals(this.customerRefId, transactionRequest.customerRefId) && Objects.equals(this.travelRuleMessage, transactionRequest.travelRuleMessage) - && Objects.equals(this.travelRuleMessageId, transactionRequest.travelRuleMessageId) && Objects.equals(this.autoStaking, transactionRequest.autoStaking) && Objects.equals(this.networkStaking, transactionRequest.networkStaking) - && Objects.equals(this.cpuStaking, transactionRequest.cpuStaking) - && Objects.equals(this.useGasless, transactionRequest.useGasless); + && Objects.equals(this.cpuStaking, transactionRequest.cpuStaking); } @Override @@ -969,7 +872,6 @@ public int hashCode() { priorityFee, failOnLowFee, maxFee, - maxTotalFee, gasLimit, gasPrice, networkFee, @@ -977,11 +879,9 @@ public int hashCode() { extraParameters, customerRefId, travelRuleMessage, - travelRuleMessageId, autoStaking, networkStaking, - cpuStaking, - useGasless); + cpuStaking); } @Override @@ -1005,7 +905,6 @@ public String toString() { sb.append(" priorityFee: ").append(toIndentedString(priorityFee)).append("\n"); sb.append(" failOnLowFee: ").append(toIndentedString(failOnLowFee)).append("\n"); sb.append(" maxFee: ").append(toIndentedString(maxFee)).append("\n"); - sb.append(" maxTotalFee: ").append(toIndentedString(maxTotalFee)).append("\n"); sb.append(" gasLimit: ").append(toIndentedString(gasLimit)).append("\n"); sb.append(" gasPrice: ").append(toIndentedString(gasPrice)).append("\n"); sb.append(" networkFee: ").append(toIndentedString(networkFee)).append("\n"); @@ -1015,13 +914,9 @@ public String toString() { sb.append(" travelRuleMessage: ") .append(toIndentedString(travelRuleMessage)) .append("\n"); - sb.append(" travelRuleMessageId: ") - .append(toIndentedString(travelRuleMessageId)) - .append("\n"); sb.append(" autoStaking: ").append(toIndentedString(autoStaking)).append("\n"); sb.append(" networkStaking: ").append(toIndentedString(networkStaking)).append("\n"); sb.append(" cpuStaking: ").append(toIndentedString(cpuStaking)).append("\n"); - sb.append(" useGasless: ").append(toIndentedString(useGasless)).append("\n"); sb.append("}"); return sb.toString(); } @@ -1207,16 +1102,6 @@ public String toUrlQueryString(String prefix) { ApiClient.urlEncode(ApiClient.valueToString(getMaxFee())))); } - // add `maxTotalFee` to the URL query string - if (getMaxTotalFee() != null) { - joiner.add( - String.format( - "%smaxTotalFee%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getMaxTotalFee())))); - } - // add `gasLimit` to the URL query string if (getGasLimit() != null) { joiner.add(getGasLimit().toUrlQueryString(prefix + "gasLimit" + suffix)); @@ -1268,17 +1153,6 @@ public String toUrlQueryString(String prefix) { getTravelRuleMessage().toUrlQueryString(prefix + "travelRuleMessage" + suffix)); } - // add `travelRuleMessageId` to the URL query string - if (getTravelRuleMessageId() != null) { - joiner.add( - String.format( - "%stravelRuleMessageId%s=%s", - prefix, - suffix, - ApiClient.urlEncode( - ApiClient.valueToString(getTravelRuleMessageId())))); - } - // add `autoStaking` to the URL query string if (getAutoStaking() != null) { joiner.add( @@ -1299,16 +1173,6 @@ public String toUrlQueryString(String prefix) { joiner.add(getCpuStaking().toUrlQueryString(prefix + "cpuStaking" + suffix)); } - // add `useGasless` to the URL query string - if (getUseGasless() != null) { - joiner.add( - String.format( - "%suseGasless%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getUseGasless())))); - } - return joiner.toString(); } } diff --git a/src/main/java/com/fireblocks/sdk/model/TransactionRequestDestination.java b/src/main/java/com/fireblocks/sdk/model/TransactionRequestDestination.java index e7ddd44b..0c43a451 100644 --- a/src/main/java/com/fireblocks/sdk/model/TransactionRequestDestination.java +++ b/src/main/java/com/fireblocks/sdk/model/TransactionRequestDestination.java @@ -23,9 +23,7 @@ /** TransactionRequestDestination */ @JsonPropertyOrder({ TransactionRequestDestination.JSON_PROPERTY_AMOUNT, - TransactionRequestDestination.JSON_PROPERTY_DESTINATION, - TransactionRequestDestination.JSON_PROPERTY_TRAVEL_RULE_MESSAGE_ID, - TransactionRequestDestination.JSON_PROPERTY_CUSTOMER_REF_ID + TransactionRequestDestination.JSON_PROPERTY_DESTINATION }) @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", @@ -37,12 +35,6 @@ public class TransactionRequestDestination { public static final String JSON_PROPERTY_DESTINATION = "destination"; @jakarta.annotation.Nullable private DestinationTransferPeerPath destination; - public static final String JSON_PROPERTY_TRAVEL_RULE_MESSAGE_ID = "travelRuleMessageId"; - @jakarta.annotation.Nullable private String travelRuleMessageId; - - public static final String JSON_PROPERTY_CUSTOMER_REF_ID = "customerRefId"; - @jakarta.annotation.Nullable private String customerRefId; - public TransactionRequestDestination() {} public TransactionRequestDestination amount(@jakarta.annotation.Nullable String amount) { @@ -93,55 +85,6 @@ public void setDestination( this.destination = destination; } - public TransactionRequestDestination travelRuleMessageId( - @jakarta.annotation.Nullable String travelRuleMessageId) { - this.travelRuleMessageId = travelRuleMessageId; - return this; - } - - /** - * The ID of the travel rule message from any travel rule provider. Used for travel rule linking - * functionality to associate transactions with existing travel rule messages. - * - * @return travelRuleMessageId - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TRAVEL_RULE_MESSAGE_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getTravelRuleMessageId() { - return travelRuleMessageId; - } - - @JsonProperty(JSON_PROPERTY_TRAVEL_RULE_MESSAGE_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTravelRuleMessageId(@jakarta.annotation.Nullable String travelRuleMessageId) { - this.travelRuleMessageId = travelRuleMessageId; - } - - public TransactionRequestDestination customerRefId( - @jakarta.annotation.Nullable String customerRefId) { - this.customerRefId = customerRefId; - return this; - } - - /** - * The ID for AML providers to associate the owner of funds with transactions. - * - * @return customerRefId - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CUSTOMER_REF_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getCustomerRefId() { - return customerRefId; - } - - @JsonProperty(JSON_PROPERTY_CUSTOMER_REF_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCustomerRefId(@jakarta.annotation.Nullable String customerRefId) { - this.customerRefId = customerRefId; - } - /** Return true if this TransactionRequestDestination object is equal to o. */ @Override public boolean equals(Object o) { @@ -154,15 +97,12 @@ public boolean equals(Object o) { TransactionRequestDestination transactionRequestDestination = (TransactionRequestDestination) o; return Objects.equals(this.amount, transactionRequestDestination.amount) - && Objects.equals(this.destination, transactionRequestDestination.destination) - && Objects.equals( - this.travelRuleMessageId, transactionRequestDestination.travelRuleMessageId) - && Objects.equals(this.customerRefId, transactionRequestDestination.customerRefId); + && Objects.equals(this.destination, transactionRequestDestination.destination); } @Override public int hashCode() { - return Objects.hash(amount, destination, travelRuleMessageId, customerRefId); + return Objects.hash(amount, destination); } @Override @@ -171,10 +111,6 @@ public String toString() { sb.append("class TransactionRequestDestination {\n"); sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); sb.append(" destination: ").append(toIndentedString(destination)).append("\n"); - sb.append(" travelRuleMessageId: ") - .append(toIndentedString(travelRuleMessageId)) - .append("\n"); - sb.append(" customerRefId: ").append(toIndentedString(customerRefId)).append("\n"); sb.append("}"); return sb.toString(); } @@ -237,27 +173,6 @@ public String toUrlQueryString(String prefix) { joiner.add(getDestination().toUrlQueryString(prefix + "destination" + suffix)); } - // add `travelRuleMessageId` to the URL query string - if (getTravelRuleMessageId() != null) { - joiner.add( - String.format( - "%stravelRuleMessageId%s=%s", - prefix, - suffix, - ApiClient.urlEncode( - ApiClient.valueToString(getTravelRuleMessageId())))); - } - - // add `customerRefId` to the URL query string - if (getCustomerRefId() != null) { - joiner.add( - String.format( - "%scustomerRefId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getCustomerRefId())))); - } - return joiner.toString(); } } diff --git a/src/main/java/com/fireblocks/sdk/model/TransactionResponse.java b/src/main/java/com/fireblocks/sdk/model/TransactionResponse.java index 1c0c6ac7..9799ffbf 100644 --- a/src/main/java/com/fireblocks/sdk/model/TransactionResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/TransactionResponse.java @@ -58,7 +58,7 @@ TransactionResponse.JSON_PROPERTY_EXCHANGE_TX_ID, TransactionResponse.JSON_PROPERTY_CUSTOMER_REF_ID, TransactionResponse.JSON_PROPERTY_AML_SCREENING_RESULT, - TransactionResponse.JSON_PROPERTY_COMPLIANCE_RESULTS, + TransactionResponse.JSON_PROPERTY_COMPLIANCE_RESULT, TransactionResponse.JSON_PROPERTY_EXTRA_PARAMETERS, TransactionResponse.JSON_PROPERTY_SIGNED_MESSAGES, TransactionResponse.JSON_PROPERTY_NUM_OF_CONFIRMATIONS, @@ -117,9 +117,7 @@ public class TransactionResponse { @jakarta.annotation.Nullable private DestinationTransferPeerPathResponse destination; public static final String JSON_PROPERTY_DESTINATIONS = "destinations"; - - @jakarta.annotation.Nullable - private List destinations = new ArrayList<>(); + @jakarta.annotation.Nullable private List destinations; public static final String JSON_PROPERTY_DESTINATION_ADDRESS = "destinationAddress"; @jakarta.annotation.Nullable private String destinationAddress; @@ -149,7 +147,7 @@ public class TransactionResponse { @jakarta.annotation.Nullable private String feeCurrency; public static final String JSON_PROPERTY_NETWORK_RECORDS = "networkRecords"; - @jakarta.annotation.Nullable private List networkRecords = new ArrayList<>(); + @jakarta.annotation.Nullable private List networkRecords; public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; @jakarta.annotation.Nullable private BigDecimal createdAt; @@ -161,7 +159,7 @@ public class TransactionResponse { @jakarta.annotation.Nullable private String createdBy; public static final String JSON_PROPERTY_SIGNED_BY = "signedBy"; - @jakarta.annotation.Nullable private List signedBy = new ArrayList<>(); + @jakarta.annotation.Nullable private List signedBy; public static final String JSON_PROPERTY_REJECTED_BY = "rejectedBy"; @jakarta.annotation.Nullable private String rejectedBy; @@ -178,14 +176,14 @@ public class TransactionResponse { public static final String JSON_PROPERTY_AML_SCREENING_RESULT = "amlScreeningResult"; @jakarta.annotation.Nullable private AmlScreeningResult amlScreeningResult; - public static final String JSON_PROPERTY_COMPLIANCE_RESULTS = "complianceResults"; - @jakarta.annotation.Nullable private ComplianceResults complianceResults; + public static final String JSON_PROPERTY_COMPLIANCE_RESULT = "complianceResult"; + @jakarta.annotation.Nullable private ComplianceResult complianceResult; public static final String JSON_PROPERTY_EXTRA_PARAMETERS = "extraParameters"; @jakarta.annotation.Nullable private Object extraParameters; public static final String JSON_PROPERTY_SIGNED_MESSAGES = "signedMessages"; - @jakarta.annotation.Nullable private List signedMessages = new ArrayList<>(); + @jakarta.annotation.Nullable private List signedMessages; public static final String JSON_PROPERTY_NUM_OF_CONFIRMATIONS = "numOfConfirmations"; @jakarta.annotation.Nullable private BigDecimal numOfConfirmations; @@ -1064,29 +1062,29 @@ public void setAmlScreeningResult( this.amlScreeningResult = amlScreeningResult; } - public TransactionResponse complianceResults( - @jakarta.annotation.Nullable ComplianceResults complianceResults) { - this.complianceResults = complianceResults; + public TransactionResponse complianceResult( + @jakarta.annotation.Nullable ComplianceResult complianceResult) { + this.complianceResult = complianceResult; return this; } /** - * Get complianceResults + * Get complianceResult * - * @return complianceResults + * @return complianceResult */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COMPLIANCE_RESULTS) + @JsonProperty(JSON_PROPERTY_COMPLIANCE_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public ComplianceResults getComplianceResults() { - return complianceResults; + public ComplianceResult getComplianceResult() { + return complianceResult; } - @JsonProperty(JSON_PROPERTY_COMPLIANCE_RESULTS) + @JsonProperty(JSON_PROPERTY_COMPLIANCE_RESULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setComplianceResults( - @jakarta.annotation.Nullable ComplianceResults complianceResults) { - this.complianceResults = complianceResults; + public void setComplianceResult( + @jakarta.annotation.Nullable ComplianceResult complianceResult) { + this.complianceResult = complianceResult; } public TransactionResponse extraParameters( @@ -1109,14 +1107,7 @@ public TransactionResponse extraParameters( * value set to the Ethereum smart contract Application Binary Interface (ABI) payload. The * Fireblocks [development * libraries](https://developers.fireblocks.com/docs/ethereum-development#convenience-libraries) - * are recommended for building contract call transactions. For **exchange compliance (e.g., - * Binance) and Travel Rule purposes**, include the key `piiData` containing a - * **custom JSON structure** with Personally Identifiable Information (PII) relevant to the - * transaction. This data must be fully **encrypted by the sender** before being submitted to - * the Fireblocks API. The recommended encryption method is **hybrid encryption** using - * AES-256-GCM for the payload and RSA-OAEP for key exchange, with the recipient exchange’s - * public key. [development - * libraries](https://developers.fireblocks.com/docs/a-developers-guide-to-constructing-encrypted-pii-messages-for-binance-via-fireblocks) + * are recommended for building contract call transactions. * * @return extraParameters */ @@ -1562,7 +1553,7 @@ public boolean equals(Object o) { && Objects.equals(this.exchangeTxId, transactionResponse.exchangeTxId) && Objects.equals(this.customerRefId, transactionResponse.customerRefId) && Objects.equals(this.amlScreeningResult, transactionResponse.amlScreeningResult) - && Objects.equals(this.complianceResults, transactionResponse.complianceResults) + && Objects.equals(this.complianceResult, transactionResponse.complianceResult) && Objects.equals(this.extraParameters, transactionResponse.extraParameters) && Objects.equals(this.signedMessages, transactionResponse.signedMessages) && Objects.equals(this.numOfConfirmations, transactionResponse.numOfConfirmations) @@ -1615,7 +1606,7 @@ public int hashCode() { exchangeTxId, customerRefId, amlScreeningResult, - complianceResults, + complianceResult, extraParameters, signedMessages, numOfConfirmations, @@ -1681,9 +1672,7 @@ public String toString() { sb.append(" amlScreeningResult: ") .append(toIndentedString(amlScreeningResult)) .append("\n"); - sb.append(" complianceResults: ") - .append(toIndentedString(complianceResults)) - .append("\n"); + sb.append(" complianceResult: ").append(toIndentedString(complianceResult)).append("\n"); sb.append(" extraParameters: ").append(toIndentedString(extraParameters)).append("\n"); sb.append(" signedMessages: ").append(toIndentedString(signedMessages)).append("\n"); sb.append(" numOfConfirmations: ") @@ -2061,10 +2050,10 @@ public String toUrlQueryString(String prefix) { .toUrlQueryString(prefix + "amlScreeningResult" + suffix)); } - // add `complianceResults` to the URL query string - if (getComplianceResults() != null) { + // add `complianceResult` to the URL query string + if (getComplianceResult() != null) { joiner.add( - getComplianceResults().toUrlQueryString(prefix + "complianceResults" + suffix)); + getComplianceResult().toUrlQueryString(prefix + "complianceResult" + suffix)); } // add `extraParameters` to the URL query string diff --git a/src/main/java/com/fireblocks/sdk/model/TransactionResponseContractCallDecodedData.java b/src/main/java/com/fireblocks/sdk/model/TransactionResponseContractCallDecodedData.java index 09e01cfc..569697c8 100644 --- a/src/main/java/com/fireblocks/sdk/model/TransactionResponseContractCallDecodedData.java +++ b/src/main/java/com/fireblocks/sdk/model/TransactionResponseContractCallDecodedData.java @@ -39,7 +39,7 @@ public class TransactionResponseContractCallDecodedData { @jakarta.annotation.Nullable private String contractName; public static final String JSON_PROPERTY_FUNCTION_CALLS = "functionCalls"; - @jakarta.annotation.Nullable private List functionCalls = new ArrayList<>(); + @jakarta.annotation.Nullable private List functionCalls; public TransactionResponseContractCallDecodedData() {} diff --git a/src/main/java/com/fireblocks/sdk/model/TransferPeerPathType.java b/src/main/java/com/fireblocks/sdk/model/TransferPeerPathType.java index 57ebc158..18854d43 100644 --- a/src/main/java/com/fireblocks/sdk/model/TransferPeerPathType.java +++ b/src/main/java/com/fireblocks/sdk/model/TransferPeerPathType.java @@ -40,11 +40,7 @@ public enum TransferPeerPathType { UNKNOWN("UNKNOWN"), - END_USER_WALLET("END_USER_WALLET"), - - PROGRAM_CALL("PROGRAM_CALL"), - - MULTI_DESTINATION("MULTI_DESTINATION"); + END_USER_WALLET("END_USER_WALLET"); private String value; diff --git a/src/main/java/com/fireblocks/sdk/model/TransferRail.java b/src/main/java/com/fireblocks/sdk/model/TransferRail.java deleted file mode 100644 index ba10db78..00000000 --- a/src/main/java/com/fireblocks/sdk/model/TransferRail.java +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - -/** - * Transfer rail: * **BLOCKCHAIN** - Transfer over the public blockchain * **INTERNAL** - Internal - * transfer within the same account (e.g. sub-accounts or same api key) * **PEER** - Peer transfer - * within the same provider network * **SWIFT** - International wire transfer * **IBAN** - - * International Bank Account Number transfer * **US_WIRE** - Domestic wire transfer within the - * United States (e.g. FedWire) * **ACH** - Automated Clearing House transfer, typically takes - * longer but not as expensive as wire transfers * **SEPA** - Euro transfers within the SEPA zone * - * **SPEI** - Mexican interbank electronic payment system * **PIX** - Brazilian instant payment - * system * **LOCAL_BANK_TRANSFER_AFRICA** - Local bank transfers within Africa * **MOBILE_MONEY** - - * Mobile money transfers (e.g. M-Pesa) - */ -public enum TransferRail { - BLOCKCHAIN("BLOCKCHAIN"), - - INTERNAL("INTERNAL"), - - PEER("PEER"), - - SWIFT("SWIFT"), - - IBAN("IBAN"), - - US_WIRE("US_WIRE"), - - ACH("ACH"), - - SEPA("SEPA"), - - SPEI("SPEI"), - - PIX("PIX"), - - LOCAL_BANK_TRANSFER_AFRICA("LOCAL_BANK_TRANSFER_AFRICA"), - - MOBILE_MONEY("MOBILE_MONEY"); - - private String value; - - TransferRail(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static TransferRail fromValue(String value) { - for (TransferRail b : TransferRail.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - if (prefix == null) { - prefix = ""; - } - - return String.format("%s=%s", prefix, this.toString()); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/TransferReceipt.java b/src/main/java/com/fireblocks/sdk/model/TransferReceipt.java deleted file mode 100644 index 52daf3d9..00000000 --- a/src/main/java/com/fireblocks/sdk/model/TransferReceipt.java +++ /dev/null @@ -1,327 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.core.JsonGenerator; -import com.fasterxml.jackson.core.JsonParser; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.core.JsonToken; -import com.fasterxml.jackson.databind.DeserializationContext; -import com.fasterxml.jackson.databind.JsonMappingException; -import com.fasterxml.jackson.databind.JsonNode; -import com.fasterxml.jackson.databind.MapperFeature; -import com.fasterxml.jackson.databind.SerializerProvider; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import com.fasterxml.jackson.databind.deser.std.StdDeserializer; -import com.fasterxml.jackson.databind.ser.std.StdSerializer; -import com.fireblocks.sdk.JSON; -import java.io.IOException; -import java.util.Collections; -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; -import java.util.StringJoiner; -import java.util.logging.Level; -import java.util.logging.Logger; - -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -@JsonDeserialize(using = TransferReceipt.TransferReceiptDeserializer.class) -@JsonSerialize(using = TransferReceipt.TransferReceiptSerializer.class) -public class TransferReceipt extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(TransferReceipt.class.getName()); - - public static class TransferReceiptSerializer extends StdSerializer { - public TransferReceiptSerializer(Class t) { - super(t); - } - - public TransferReceiptSerializer() { - this(null); - } - - @Override - public void serialize( - TransferReceipt value, JsonGenerator jgen, SerializerProvider provider) - throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); - } - } - - public static class TransferReceiptDeserializer extends StdDeserializer { - public TransferReceiptDeserializer() { - this(TransferReceipt.class); - } - - public TransferReceiptDeserializer(Class vc) { - super(vc); - } - - @Override - public TransferReceipt deserialize(JsonParser jp, DeserializationContext ctxt) - throws IOException, JsonProcessingException { - JsonNode tree = jp.readValueAsTree(); - Object deserialized = null; - boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); - int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); - // deserialize BlockchainTransfer - try { - boolean attemptParsing = true; - // ensure that we respect type coercion as set on the client ObjectMapper - if (BlockchainTransfer.class.equals(Integer.class) - || BlockchainTransfer.class.equals(Long.class) - || BlockchainTransfer.class.equals(Float.class) - || BlockchainTransfer.class.equals(Double.class) - || BlockchainTransfer.class.equals(Boolean.class) - || BlockchainTransfer.class.equals(String.class)) { - attemptParsing = typeCoercion; - if (!attemptParsing) { - attemptParsing |= - ((BlockchainTransfer.class.equals(Integer.class) - || BlockchainTransfer.class.equals(Long.class)) - && token == JsonToken.VALUE_NUMBER_INT); - attemptParsing |= - ((BlockchainTransfer.class.equals(Float.class) - || BlockchainTransfer.class.equals(Double.class)) - && token == JsonToken.VALUE_NUMBER_FLOAT); - attemptParsing |= - (BlockchainTransfer.class.equals(Boolean.class) - && (token == JsonToken.VALUE_FALSE - || token == JsonToken.VALUE_TRUE)); - attemptParsing |= - (BlockchainTransfer.class.equals(String.class) - && token == JsonToken.VALUE_STRING); - } - } - if (attemptParsing) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(BlockchainTransfer.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'BlockchainTransfer'"); - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'BlockchainTransfer'", e); - } - - // deserialize FiatTransfer - try { - boolean attemptParsing = true; - // ensure that we respect type coercion as set on the client ObjectMapper - if (FiatTransfer.class.equals(Integer.class) - || FiatTransfer.class.equals(Long.class) - || FiatTransfer.class.equals(Float.class) - || FiatTransfer.class.equals(Double.class) - || FiatTransfer.class.equals(Boolean.class) - || FiatTransfer.class.equals(String.class)) { - attemptParsing = typeCoercion; - if (!attemptParsing) { - attemptParsing |= - ((FiatTransfer.class.equals(Integer.class) - || FiatTransfer.class.equals(Long.class)) - && token == JsonToken.VALUE_NUMBER_INT); - attemptParsing |= - ((FiatTransfer.class.equals(Float.class) - || FiatTransfer.class.equals(Double.class)) - && token == JsonToken.VALUE_NUMBER_FLOAT); - attemptParsing |= - (FiatTransfer.class.equals(Boolean.class) - && (token == JsonToken.VALUE_FALSE - || token == JsonToken.VALUE_TRUE)); - attemptParsing |= - (FiatTransfer.class.equals(String.class) - && token == JsonToken.VALUE_STRING); - } - } - if (attemptParsing) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(FiatTransfer.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'FiatTransfer'"); - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'FiatTransfer'", e); - } - - if (match == 1) { - TransferReceipt ret = new TransferReceipt(); - ret.setActualInstance(deserialized); - return ret; - } - throw new IOException( - String.format( - "Failed deserialization for TransferReceipt: %d classes match result," - + " expected 1", - match)); - } - - /** Handle deserialization of the 'null' value. */ - @Override - public TransferReceipt getNullValue(DeserializationContext ctxt) - throws JsonMappingException { - throw new JsonMappingException(ctxt.getParser(), "TransferReceipt cannot be null"); - } - } - - // store a list of schema names defined in oneOf - public static final Map> schemas = new HashMap<>(); - - public TransferReceipt() { - super("oneOf", Boolean.FALSE); - } - - public TransferReceipt(BlockchainTransfer o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public TransferReceipt(FiatTransfer o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("BlockchainTransfer", BlockchainTransfer.class); - schemas.put("FiatTransfer", FiatTransfer.class); - JSON.registerDescendants(TransferReceipt.class, Collections.unmodifiableMap(schemas)); - // Initialize and register the discriminator mappings. - Map> mappings = new HashMap>(); - mappings.put("BLOCKCHAIN", BlockchainTransfer.class); - mappings.put("FIAT", FiatTransfer.class); - mappings.put("BlockchainTransfer", BlockchainTransfer.class); - mappings.put("FiatTransfer", FiatTransfer.class); - mappings.put("TransferReceipt", TransferReceipt.class); - JSON.registerDiscriminator(TransferReceipt.class, "type", mappings); - } - - @Override - public Map> getSchemas() { - return TransferReceipt.schemas; - } - - /** - * Set the instance that matches the oneOf child schema, check the instance parameter is valid - * against the oneOf child schemas: BlockchainTransfer, FiatTransfer - * - *

It could be an instance of the 'oneOf' schemas. The oneOf child schemas may themselves be - * a composed schema (allOf, anyOf, oneOf). - */ - @Override - public void setActualInstance(Object instance) { - if (JSON.isInstanceOf(BlockchainTransfer.class, instance, new HashSet>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(FiatTransfer.class, instance, new HashSet>())) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException( - "Invalid instance type. Must be BlockchainTransfer, FiatTransfer"); - } - - /** - * Get the actual instance, which can be the following: BlockchainTransfer, FiatTransfer - * - * @return The actual instance (BlockchainTransfer, FiatTransfer) - */ - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `BlockchainTransfer`. If the actual instance is not - * `BlockchainTransfer`, the ClassCastException will be thrown. - * - * @return The actual instance of `BlockchainTransfer` - * @throws ClassCastException if the instance is not `BlockchainTransfer` - */ - public BlockchainTransfer getBlockchainTransfer() throws ClassCastException { - return (BlockchainTransfer) super.getActualInstance(); - } - - /** - * Get the actual instance of `FiatTransfer`. If the actual instance is not `FiatTransfer`, the - * ClassCastException will be thrown. - * - * @return The actual instance of `FiatTransfer` - * @throws ClassCastException if the instance is not `FiatTransfer` - */ - public FiatTransfer getFiatTransfer() throws ClassCastException { - return (FiatTransfer) super.getActualInstance(); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - if (getActualInstance() instanceof BlockchainTransfer) { - if (getActualInstance() != null) { - joiner.add( - ((BlockchainTransfer) getActualInstance()) - .toUrlQueryString(prefix + "one_of_0" + suffix)); - } - return joiner.toString(); - } - if (getActualInstance() instanceof FiatTransfer) { - if (getActualInstance() != null) { - joiner.add( - ((FiatTransfer) getActualInstance()) - .toUrlQueryString(prefix + "one_of_1" + suffix)); - } - return joiner.toString(); - } - return null; - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/TransferValidationFailure.java b/src/main/java/com/fireblocks/sdk/model/TransferValidationFailure.java index f1d1f8a0..78be7417 100644 --- a/src/main/java/com/fireblocks/sdk/model/TransferValidationFailure.java +++ b/src/main/java/com/fireblocks/sdk/model/TransferValidationFailure.java @@ -95,7 +95,7 @@ public static ReasonEnum fromValue(String value) { @jakarta.annotation.Nonnull private ReasonEnum reason; public static final String JSON_PROPERTY_DATA = "data"; - @jakarta.annotation.Nullable private Map data = new HashMap<>(); + @jakarta.annotation.Nullable private Map data; public TransferValidationFailure() {} diff --git a/src/main/java/com/fireblocks/sdk/model/TravelRuleAddress.java b/src/main/java/com/fireblocks/sdk/model/TravelRuleAddress.java index a19280aa..677c8e71 100644 --- a/src/main/java/com/fireblocks/sdk/model/TravelRuleAddress.java +++ b/src/main/java/com/fireblocks/sdk/model/TravelRuleAddress.java @@ -13,6 +13,7 @@ package com.fireblocks.sdk.model; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; @@ -32,20 +33,32 @@ comments = "Generator version: 7.14.0") public class TravelRuleAddress { public static final String JSON_PROPERTY_STREET = "street"; - @jakarta.annotation.Nullable private String street; + @jakarta.annotation.Nonnull private String street; public static final String JSON_PROPERTY_CITY = "city"; - @jakarta.annotation.Nullable private String city; + @jakarta.annotation.Nonnull private String city; public static final String JSON_PROPERTY_STATE = "state"; - @jakarta.annotation.Nullable private String state; + @jakarta.annotation.Nonnull private String state; public static final String JSON_PROPERTY_POSTAL_CODE = "postalCode"; - @jakarta.annotation.Nullable private String postalCode; + @jakarta.annotation.Nonnull private String postalCode; public TravelRuleAddress() {} - public TravelRuleAddress street(@jakarta.annotation.Nullable String street) { + @JsonCreator + public TravelRuleAddress( + @JsonProperty(value = JSON_PROPERTY_STREET, required = true) String street, + @JsonProperty(value = JSON_PROPERTY_CITY, required = true) String city, + @JsonProperty(value = JSON_PROPERTY_STATE, required = true) String state, + @JsonProperty(value = JSON_PROPERTY_POSTAL_CODE, required = true) String postalCode) { + this.street = street; + this.city = city; + this.state = state; + this.postalCode = postalCode; + } + + public TravelRuleAddress street(@jakarta.annotation.Nonnull String street) { this.street = street; return this; } @@ -55,20 +68,20 @@ public TravelRuleAddress street(@jakarta.annotation.Nullable String street) { * * @return street */ - @jakarta.annotation.Nullable + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_STREET) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getStreet() { return street; } @JsonProperty(JSON_PROPERTY_STREET) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStreet(@jakarta.annotation.Nullable String street) { + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setStreet(@jakarta.annotation.Nonnull String street) { this.street = street; } - public TravelRuleAddress city(@jakarta.annotation.Nullable String city) { + public TravelRuleAddress city(@jakarta.annotation.Nonnull String city) { this.city = city; return this; } @@ -78,20 +91,20 @@ public TravelRuleAddress city(@jakarta.annotation.Nullable String city) { * * @return city */ - @jakarta.annotation.Nullable + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CITY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getCity() { return city; } @JsonProperty(JSON_PROPERTY_CITY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCity(@jakarta.annotation.Nullable String city) { + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCity(@jakarta.annotation.Nonnull String city) { this.city = city; } - public TravelRuleAddress state(@jakarta.annotation.Nullable String state) { + public TravelRuleAddress state(@jakarta.annotation.Nonnull String state) { this.state = state; return this; } @@ -101,20 +114,20 @@ public TravelRuleAddress state(@jakarta.annotation.Nullable String state) { * * @return state */ - @jakarta.annotation.Nullable + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_STATE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getState() { return state; } @JsonProperty(JSON_PROPERTY_STATE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setState(@jakarta.annotation.Nullable String state) { + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setState(@jakarta.annotation.Nonnull String state) { this.state = state; } - public TravelRuleAddress postalCode(@jakarta.annotation.Nullable String postalCode) { + public TravelRuleAddress postalCode(@jakarta.annotation.Nonnull String postalCode) { this.postalCode = postalCode; return this; } @@ -124,16 +137,16 @@ public TravelRuleAddress postalCode(@jakarta.annotation.Nullable String postalCo * * @return postalCode */ - @jakarta.annotation.Nullable + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_POSTAL_CODE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getPostalCode() { return postalCode; } @JsonProperty(JSON_PROPERTY_POSTAL_CODE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPostalCode(@jakarta.annotation.Nullable String postalCode) { + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setPostalCode(@jakarta.annotation.Nonnull String postalCode) { this.postalCode = postalCode; } diff --git a/src/main/java/com/fireblocks/sdk/model/TravelRuleCreateTransactionRequest.java b/src/main/java/com/fireblocks/sdk/model/TravelRuleCreateTransactionRequest.java index bb980a22..a008825d 100644 --- a/src/main/java/com/fireblocks/sdk/model/TravelRuleCreateTransactionRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/TravelRuleCreateTransactionRequest.java @@ -17,7 +17,6 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; @@ -26,25 +25,17 @@ @JsonPropertyOrder({ TravelRuleCreateTransactionRequest.JSON_PROPERTY_ORIGINATOR_V_A_S_PDID, TravelRuleCreateTransactionRequest.JSON_PROPERTY_BENEFICIARY_V_A_S_PDID, - TravelRuleCreateTransactionRequest.JSON_PROPERTY_ORIGINATOR_V_A_S_PNAME, TravelRuleCreateTransactionRequest.JSON_PROPERTY_BENEFICIARY_V_A_S_PNAME, - TravelRuleCreateTransactionRequest.JSON_PROPERTY_BENEFICIARY_V_A_S_PWEBSITE, TravelRuleCreateTransactionRequest.JSON_PROPERTY_TRANSACTION_BLOCKCHAIN_INFO, TravelRuleCreateTransactionRequest.JSON_PROPERTY_ORIGINATOR, TravelRuleCreateTransactionRequest.JSON_PROPERTY_BENEFICIARY, TravelRuleCreateTransactionRequest.JSON_PROPERTY_ENCRYPTED, TravelRuleCreateTransactionRequest.JSON_PROPERTY_PROTOCOL, - TravelRuleCreateTransactionRequest.JSON_PROPERTY_TARGET_PROTOCOL, TravelRuleCreateTransactionRequest.JSON_PROPERTY_SKIP_BENEFICIARY_DATA_VALIDATION, TravelRuleCreateTransactionRequest.JSON_PROPERTY_TRAVEL_RULE_BEHAVIOR, - TravelRuleCreateTransactionRequest.JSON_PROPERTY_ORIGINATOR_REF, - TravelRuleCreateTransactionRequest.JSON_PROPERTY_BENEFICIARY_REF, - TravelRuleCreateTransactionRequest.JSON_PROPERTY_TRAVEL_RULE_BEHAVIOR_REF, TravelRuleCreateTransactionRequest.JSON_PROPERTY_ORIGINATOR_PROOF, TravelRuleCreateTransactionRequest.JSON_PROPERTY_BENEFICIARY_PROOF, - TravelRuleCreateTransactionRequest.JSON_PROPERTY_BENEFICIARY_DID, - TravelRuleCreateTransactionRequest.JSON_PROPERTY_ORIGINATOR_DID, - TravelRuleCreateTransactionRequest.JSON_PROPERTY_IS_NON_CUSTODIAL + TravelRuleCreateTransactionRequest.JSON_PROPERTY_PII }) @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", @@ -56,15 +47,9 @@ public class TravelRuleCreateTransactionRequest { public static final String JSON_PROPERTY_BENEFICIARY_V_A_S_PDID = "beneficiaryVASPdid"; @jakarta.annotation.Nullable private String beneficiaryVASPdid; - public static final String JSON_PROPERTY_ORIGINATOR_V_A_S_PNAME = "originatorVASPname"; - @jakarta.annotation.Nullable private String originatorVASPname; - public static final String JSON_PROPERTY_BENEFICIARY_V_A_S_PNAME = "beneficiaryVASPname"; @jakarta.annotation.Nullable private String beneficiaryVASPname; - public static final String JSON_PROPERTY_BENEFICIARY_V_A_S_PWEBSITE = "beneficiaryVASPwebsite"; - @jakarta.annotation.Nullable private String beneficiaryVASPwebsite; - public static final String JSON_PROPERTY_TRANSACTION_BLOCKCHAIN_INFO = "transactionBlockchainInfo"; @@ -80,50 +65,8 @@ public class TravelRuleCreateTransactionRequest { public static final String JSON_PROPERTY_ENCRYPTED = "encrypted"; @jakarta.annotation.Nullable private String encrypted; - /** The protocol used to perform the travel rule. */ - public enum ProtocolEnum { - IVMS101(String.valueOf("IVMS101")), - - TR_LIGHT(String.valueOf("TRLight")), - - TRP(String.valueOf("TRP")), - - OPEN_VASP(String.valueOf("OpenVASP")), - - GTR(String.valueOf("GTR")); - - private String value; - - ProtocolEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static ProtocolEnum fromValue(String value) { - for (ProtocolEnum b : ProtocolEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - public static final String JSON_PROPERTY_PROTOCOL = "protocol"; - @jakarta.annotation.Nullable private ProtocolEnum protocol; - - public static final String JSON_PROPERTY_TARGET_PROTOCOL = "targetProtocol"; - @jakarta.annotation.Nullable private String targetProtocol; + @jakarta.annotation.Nullable private String protocol; public static final String JSON_PROPERTY_SKIP_BENEFICIARY_DATA_VALIDATION = "skipBeneficiaryDataValidation"; @@ -132,29 +75,14 @@ public static ProtocolEnum fromValue(String value) { public static final String JSON_PROPERTY_TRAVEL_RULE_BEHAVIOR = "travelRuleBehavior"; @jakarta.annotation.Nullable private Boolean travelRuleBehavior; - public static final String JSON_PROPERTY_ORIGINATOR_REF = "originatorRef"; - @jakarta.annotation.Nullable private String originatorRef; - - public static final String JSON_PROPERTY_BENEFICIARY_REF = "beneficiaryRef"; - @jakarta.annotation.Nullable private String beneficiaryRef; - - public static final String JSON_PROPERTY_TRAVEL_RULE_BEHAVIOR_REF = "travelRuleBehaviorRef"; - @jakarta.annotation.Nullable private String travelRuleBehaviorRef; - public static final String JSON_PROPERTY_ORIGINATOR_PROOF = "originatorProof"; @jakarta.annotation.Nullable private TravelRuleOwnershipProof originatorProof; public static final String JSON_PROPERTY_BENEFICIARY_PROOF = "beneficiaryProof"; @jakarta.annotation.Nullable private TravelRuleOwnershipProof beneficiaryProof; - public static final String JSON_PROPERTY_BENEFICIARY_DID = "beneficiaryDid"; - @jakarta.annotation.Nullable private String beneficiaryDid; - - public static final String JSON_PROPERTY_ORIGINATOR_DID = "originatorDid"; - @jakarta.annotation.Nullable private String originatorDid; - - public static final String JSON_PROPERTY_IS_NON_CUSTODIAL = "isNonCustodial"; - @jakarta.annotation.Nullable private Boolean isNonCustodial; + public static final String JSON_PROPERTY_PII = "pii"; + @jakarta.annotation.Nullable private TravelRulePiiIVMS pii; public TravelRuleCreateTransactionRequest() {} @@ -175,9 +103,7 @@ public TravelRuleCreateTransactionRequest originatorVASPdid( } /** - * The Decentralized Identifier (DID) of the exchange (VASP) that is sending the virtual assets. - * This identifier is unique to the exchange and is generated when the exchange's account is - * created in the Notabene network. + * The VASP ID of the transaction originator * * @return originatorVASPdid */ @@ -201,9 +127,7 @@ public TravelRuleCreateTransactionRequest beneficiaryVASPdid( } /** - * The Decentralized Identifier (DID) of the exchange (VASP) that is receiving the virtual - * assets. This identifier is unique to the exchange and is generated when the exchange's - * account is created in the Notabene network. + * The VASP ID of the transaction beneficiary * * @return beneficiaryVASPdid */ @@ -220,30 +144,6 @@ public void setBeneficiaryVASPdid(@jakarta.annotation.Nullable String beneficiar this.beneficiaryVASPdid = beneficiaryVASPdid; } - public TravelRuleCreateTransactionRequest originatorVASPname( - @jakarta.annotation.Nullable String originatorVASPname) { - this.originatorVASPname = originatorVASPname; - return this; - } - - /** - * The name of the VASP acting as the transaction originator. - * - * @return originatorVASPname - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ORIGINATOR_V_A_S_PNAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getOriginatorVASPname() { - return originatorVASPname; - } - - @JsonProperty(JSON_PROPERTY_ORIGINATOR_V_A_S_PNAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOriginatorVASPname(@jakarta.annotation.Nullable String originatorVASPname) { - this.originatorVASPname = originatorVASPname; - } - public TravelRuleCreateTransactionRequest beneficiaryVASPname( @jakarta.annotation.Nullable String beneficiaryVASPname) { this.beneficiaryVASPname = beneficiaryVASPname; @@ -251,7 +151,7 @@ public TravelRuleCreateTransactionRequest beneficiaryVASPname( } /** - * The name of the VASP acting as the transaction beneficiary. + * The name of the VASP acting as the beneficiary * * @return beneficiaryVASPname */ @@ -268,31 +168,6 @@ public void setBeneficiaryVASPname(@jakarta.annotation.Nullable String beneficia this.beneficiaryVASPname = beneficiaryVASPname; } - public TravelRuleCreateTransactionRequest beneficiaryVASPwebsite( - @jakarta.annotation.Nullable String beneficiaryVASPwebsite) { - this.beneficiaryVASPwebsite = beneficiaryVASPwebsite; - return this; - } - - /** - * The website of the VASP acting as the transaction beneficiary. - * - * @return beneficiaryVASPwebsite - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BENEFICIARY_V_A_S_PWEBSITE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getBeneficiaryVASPwebsite() { - return beneficiaryVASPwebsite; - } - - @JsonProperty(JSON_PROPERTY_BENEFICIARY_V_A_S_PWEBSITE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBeneficiaryVASPwebsite( - @jakarta.annotation.Nullable String beneficiaryVASPwebsite) { - this.beneficiaryVASPwebsite = beneficiaryVASPwebsite; - } - public TravelRuleCreateTransactionRequest transactionBlockchainInfo( @jakarta.annotation.Nullable TravelRuleTransactionBlockchainInfo transactionBlockchainInfo) { @@ -301,7 +176,7 @@ public TravelRuleCreateTransactionRequest transactionBlockchainInfo( } /** - * Get transactionBlockchainInfo + * Information about the blockchain transaction * * @return transactionBlockchainInfo */ @@ -327,7 +202,7 @@ public TravelRuleCreateTransactionRequest originator( } /** - * Get originator + * Information about the originator of the transaction * * @return originator */ @@ -351,7 +226,7 @@ public TravelRuleCreateTransactionRequest beneficiary( } /** - * Get beneficiary + * Information about the beneficiary of the transaction * * @return beneficiary */ @@ -375,7 +250,7 @@ public TravelRuleCreateTransactionRequest encrypted( } /** - * Encrypted data related to the transaction. + * Encrypted data related to the transaction * * @return encrypted */ @@ -393,53 +268,29 @@ public void setEncrypted(@jakarta.annotation.Nullable String encrypted) { } public TravelRuleCreateTransactionRequest protocol( - @jakarta.annotation.Nullable ProtocolEnum protocol) { + @jakarta.annotation.Nullable String protocol) { this.protocol = protocol; return this; } /** - * The protocol used to perform the travel rule. + * The protocol used to perform the travel rule * * @return protocol */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PROTOCOL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public ProtocolEnum getProtocol() { + public String getProtocol() { return protocol; } @JsonProperty(JSON_PROPERTY_PROTOCOL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setProtocol(@jakarta.annotation.Nullable ProtocolEnum protocol) { + public void setProtocol(@jakarta.annotation.Nullable String protocol) { this.protocol = protocol; } - public TravelRuleCreateTransactionRequest targetProtocol( - @jakarta.annotation.Nullable String targetProtocol) { - this.targetProtocol = targetProtocol; - return this; - } - - /** - * The target protocol for GTR (Global Travel Rule) transfers. - * - * @return targetProtocol - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TARGET_PROTOCOL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getTargetProtocol() { - return targetProtocol; - } - - @JsonProperty(JSON_PROPERTY_TARGET_PROTOCOL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTargetProtocol(@jakarta.annotation.Nullable String targetProtocol) { - this.targetProtocol = targetProtocol; - } - public TravelRuleCreateTransactionRequest skipBeneficiaryDataValidation( @jakarta.annotation.Nullable Boolean skipBeneficiaryDataValidation) { this.skipBeneficiaryDataValidation = skipBeneficiaryDataValidation; @@ -447,7 +298,7 @@ public TravelRuleCreateTransactionRequest skipBeneficiaryDataValidation( } /** - * Whether to skip validation of beneficiary data. + * Whether to skip validation of beneficiary data * * @return skipBeneficiaryDataValidation */ @@ -472,8 +323,8 @@ public TravelRuleCreateTransactionRequest travelRuleBehavior( } /** - * Whether to check if the transaction complies with the travel rule in the beneficiary - * VASP's jurisdiction. + * Whether to check if the transaction is a TRAVEL_RULE in the beneficiary VASP's + * jurisdiction * * @return travelRuleBehavior */ @@ -490,79 +341,6 @@ public void setTravelRuleBehavior(@jakarta.annotation.Nullable Boolean travelRul this.travelRuleBehavior = travelRuleBehavior; } - public TravelRuleCreateTransactionRequest originatorRef( - @jakarta.annotation.Nullable String originatorRef) { - this.originatorRef = originatorRef; - return this; - } - - /** - * A reference ID related to the originator of the transaction. - * - * @return originatorRef - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ORIGINATOR_REF) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getOriginatorRef() { - return originatorRef; - } - - @JsonProperty(JSON_PROPERTY_ORIGINATOR_REF) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOriginatorRef(@jakarta.annotation.Nullable String originatorRef) { - this.originatorRef = originatorRef; - } - - public TravelRuleCreateTransactionRequest beneficiaryRef( - @jakarta.annotation.Nullable String beneficiaryRef) { - this.beneficiaryRef = beneficiaryRef; - return this; - } - - /** - * A reference ID related to the beneficiary of the transaction. - * - * @return beneficiaryRef - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BENEFICIARY_REF) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getBeneficiaryRef() { - return beneficiaryRef; - } - - @JsonProperty(JSON_PROPERTY_BENEFICIARY_REF) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBeneficiaryRef(@jakarta.annotation.Nullable String beneficiaryRef) { - this.beneficiaryRef = beneficiaryRef; - } - - public TravelRuleCreateTransactionRequest travelRuleBehaviorRef( - @jakarta.annotation.Nullable String travelRuleBehaviorRef) { - this.travelRuleBehaviorRef = travelRuleBehaviorRef; - return this; - } - - /** - * A reference ID related to the travel rule behavior. - * - * @return travelRuleBehaviorRef - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TRAVEL_RULE_BEHAVIOR_REF) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getTravelRuleBehaviorRef() { - return travelRuleBehaviorRef; - } - - @JsonProperty(JSON_PROPERTY_TRAVEL_RULE_BEHAVIOR_REF) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTravelRuleBehaviorRef( - @jakarta.annotation.Nullable String travelRuleBehaviorRef) { - this.travelRuleBehaviorRef = travelRuleBehaviorRef; - } - public TravelRuleCreateTransactionRequest originatorProof( @jakarta.annotation.Nullable TravelRuleOwnershipProof originatorProof) { this.originatorProof = originatorProof; @@ -570,7 +348,7 @@ public TravelRuleCreateTransactionRequest originatorProof( } /** - * Get originatorProof + * Ownership proof related to the originator of the transaction * * @return originatorProof */ @@ -595,7 +373,7 @@ public TravelRuleCreateTransactionRequest beneficiaryProof( } /** - * Get beneficiaryProof + * Ownership proof related to the beneficiary of the transaction * * @return beneficiaryProof */ @@ -613,84 +391,28 @@ public void setBeneficiaryProof( this.beneficiaryProof = beneficiaryProof; } - public TravelRuleCreateTransactionRequest beneficiaryDid( - @jakarta.annotation.Nullable String beneficiaryDid) { - this.beneficiaryDid = beneficiaryDid; - return this; - } - - /** - * The Decentralized Identifier (DID) of the person at the receiving exchange (VASP). This - * identifier is generated when the customer is registered in the Notabene network, or - * automatically created based on the `beneficiaryRef`. - If neither - * `beneficiaryRef` nor `beneficiaryDid` is provided in the - * `txCreate` payload, a new random DID is generated for every transaction. - * - * @return beneficiaryDid - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BENEFICIARY_DID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getBeneficiaryDid() { - return beneficiaryDid; - } - - @JsonProperty(JSON_PROPERTY_BENEFICIARY_DID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBeneficiaryDid(@jakarta.annotation.Nullable String beneficiaryDid) { - this.beneficiaryDid = beneficiaryDid; - } - - public TravelRuleCreateTransactionRequest originatorDid( - @jakarta.annotation.Nullable String originatorDid) { - this.originatorDid = originatorDid; - return this; - } - - /** - * The Decentralized Identifier (DID) of the person at the exchange (VASP) who is requesting the - * withdrawal. This identifier is generated when the customer is registered in the Notabene - * network or automatically created based on the `originatorRef`. - If neither - * `originatorRef` nor `originatorDid` is provided in the - * `txCreate` payload, a new random DID is generated for every transaction. - * - * @return originatorDid - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ORIGINATOR_DID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getOriginatorDid() { - return originatorDid; - } - - @JsonProperty(JSON_PROPERTY_ORIGINATOR_DID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOriginatorDid(@jakarta.annotation.Nullable String originatorDid) { - this.originatorDid = originatorDid; - } - - public TravelRuleCreateTransactionRequest isNonCustodial( - @jakarta.annotation.Nullable Boolean isNonCustodial) { - this.isNonCustodial = isNonCustodial; + public TravelRuleCreateTransactionRequest pii( + @jakarta.annotation.Nullable TravelRulePiiIVMS pii) { + this.pii = pii; return this; } /** - * Indicates if the transaction involves a non-custodial wallet. + * Personal identifiable information related to the transaction * - * @return isNonCustodial + * @return pii */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_IS_NON_CUSTODIAL) + @JsonProperty(JSON_PROPERTY_PII) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getIsNonCustodial() { - return isNonCustodial; + public TravelRulePiiIVMS getPii() { + return pii; } - @JsonProperty(JSON_PROPERTY_IS_NON_CUSTODIAL) + @JsonProperty(JSON_PROPERTY_PII) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIsNonCustodial(@jakarta.annotation.Nullable Boolean isNonCustodial) { - this.isNonCustodial = isNonCustodial; + public void setPii(@jakarta.annotation.Nullable TravelRulePiiIVMS pii) { + this.pii = pii; } /** Return true if this TravelRuleCreateTransactionRequest object is equal to o. */ @@ -710,15 +432,9 @@ public boolean equals(Object o) { && Objects.equals( this.beneficiaryVASPdid, travelRuleCreateTransactionRequest.beneficiaryVASPdid) - && Objects.equals( - this.originatorVASPname, - travelRuleCreateTransactionRequest.originatorVASPname) && Objects.equals( this.beneficiaryVASPname, travelRuleCreateTransactionRequest.beneficiaryVASPname) - && Objects.equals( - this.beneficiaryVASPwebsite, - travelRuleCreateTransactionRequest.beneficiaryVASPwebsite) && Objects.equals( this.transactionBlockchainInfo, travelRuleCreateTransactionRequest.transactionBlockchainInfo) @@ -726,31 +442,17 @@ public boolean equals(Object o) { && Objects.equals(this.beneficiary, travelRuleCreateTransactionRequest.beneficiary) && Objects.equals(this.encrypted, travelRuleCreateTransactionRequest.encrypted) && Objects.equals(this.protocol, travelRuleCreateTransactionRequest.protocol) - && Objects.equals( - this.targetProtocol, travelRuleCreateTransactionRequest.targetProtocol) && Objects.equals( this.skipBeneficiaryDataValidation, travelRuleCreateTransactionRequest.skipBeneficiaryDataValidation) && Objects.equals( this.travelRuleBehavior, travelRuleCreateTransactionRequest.travelRuleBehavior) - && Objects.equals( - this.originatorRef, travelRuleCreateTransactionRequest.originatorRef) - && Objects.equals( - this.beneficiaryRef, travelRuleCreateTransactionRequest.beneficiaryRef) - && Objects.equals( - this.travelRuleBehaviorRef, - travelRuleCreateTransactionRequest.travelRuleBehaviorRef) && Objects.equals( this.originatorProof, travelRuleCreateTransactionRequest.originatorProof) && Objects.equals( this.beneficiaryProof, travelRuleCreateTransactionRequest.beneficiaryProof) - && Objects.equals( - this.beneficiaryDid, travelRuleCreateTransactionRequest.beneficiaryDid) - && Objects.equals( - this.originatorDid, travelRuleCreateTransactionRequest.originatorDid) - && Objects.equals( - this.isNonCustodial, travelRuleCreateTransactionRequest.isNonCustodial); + && Objects.equals(this.pii, travelRuleCreateTransactionRequest.pii); } @Override @@ -758,25 +460,17 @@ public int hashCode() { return Objects.hash( originatorVASPdid, beneficiaryVASPdid, - originatorVASPname, beneficiaryVASPname, - beneficiaryVASPwebsite, transactionBlockchainInfo, originator, beneficiary, encrypted, protocol, - targetProtocol, skipBeneficiaryDataValidation, travelRuleBehavior, - originatorRef, - beneficiaryRef, - travelRuleBehaviorRef, originatorProof, beneficiaryProof, - beneficiaryDid, - originatorDid, - isNonCustodial); + pii); } @Override @@ -789,15 +483,9 @@ public String toString() { sb.append(" beneficiaryVASPdid: ") .append(toIndentedString(beneficiaryVASPdid)) .append("\n"); - sb.append(" originatorVASPname: ") - .append(toIndentedString(originatorVASPname)) - .append("\n"); sb.append(" beneficiaryVASPname: ") .append(toIndentedString(beneficiaryVASPname)) .append("\n"); - sb.append(" beneficiaryVASPwebsite: ") - .append(toIndentedString(beneficiaryVASPwebsite)) - .append("\n"); sb.append(" transactionBlockchainInfo: ") .append(toIndentedString(transactionBlockchainInfo)) .append("\n"); @@ -805,23 +493,15 @@ public String toString() { sb.append(" beneficiary: ").append(toIndentedString(beneficiary)).append("\n"); sb.append(" encrypted: ").append(toIndentedString(encrypted)).append("\n"); sb.append(" protocol: ").append(toIndentedString(protocol)).append("\n"); - sb.append(" targetProtocol: ").append(toIndentedString(targetProtocol)).append("\n"); sb.append(" skipBeneficiaryDataValidation: ") .append(toIndentedString(skipBeneficiaryDataValidation)) .append("\n"); sb.append(" travelRuleBehavior: ") .append(toIndentedString(travelRuleBehavior)) .append("\n"); - sb.append(" originatorRef: ").append(toIndentedString(originatorRef)).append("\n"); - sb.append(" beneficiaryRef: ").append(toIndentedString(beneficiaryRef)).append("\n"); - sb.append(" travelRuleBehaviorRef: ") - .append(toIndentedString(travelRuleBehaviorRef)) - .append("\n"); sb.append(" originatorProof: ").append(toIndentedString(originatorProof)).append("\n"); sb.append(" beneficiaryProof: ").append(toIndentedString(beneficiaryProof)).append("\n"); - sb.append(" beneficiaryDid: ").append(toIndentedString(beneficiaryDid)).append("\n"); - sb.append(" originatorDid: ").append(toIndentedString(originatorDid)).append("\n"); - sb.append(" isNonCustodial: ").append(toIndentedString(isNonCustodial)).append("\n"); + sb.append(" pii: ").append(toIndentedString(pii)).append("\n"); sb.append("}"); return sb.toString(); } @@ -889,16 +569,6 @@ public String toUrlQueryString(String prefix) { ApiClient.urlEncode(ApiClient.valueToString(getBeneficiaryVASPdid())))); } - // add `originatorVASPname` to the URL query string - if (getOriginatorVASPname() != null) { - joiner.add( - String.format( - "%soriginatorVASPname%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getOriginatorVASPname())))); - } - // add `beneficiaryVASPname` to the URL query string if (getBeneficiaryVASPname() != null) { joiner.add( @@ -910,17 +580,6 @@ public String toUrlQueryString(String prefix) { ApiClient.valueToString(getBeneficiaryVASPname())))); } - // add `beneficiaryVASPwebsite` to the URL query string - if (getBeneficiaryVASPwebsite() != null) { - joiner.add( - String.format( - "%sbeneficiaryVASPwebsite%s=%s", - prefix, - suffix, - ApiClient.urlEncode( - ApiClient.valueToString(getBeneficiaryVASPwebsite())))); - } - // add `transactionBlockchainInfo` to the URL query string if (getTransactionBlockchainInfo() != null) { joiner.add( @@ -958,16 +617,6 @@ public String toUrlQueryString(String prefix) { ApiClient.urlEncode(ApiClient.valueToString(getProtocol())))); } - // add `targetProtocol` to the URL query string - if (getTargetProtocol() != null) { - joiner.add( - String.format( - "%stargetProtocol%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getTargetProtocol())))); - } - // add `skipBeneficiaryDataValidation` to the URL query string if (getSkipBeneficiaryDataValidation() != null) { joiner.add( @@ -989,37 +638,6 @@ public String toUrlQueryString(String prefix) { ApiClient.urlEncode(ApiClient.valueToString(getTravelRuleBehavior())))); } - // add `originatorRef` to the URL query string - if (getOriginatorRef() != null) { - joiner.add( - String.format( - "%soriginatorRef%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getOriginatorRef())))); - } - - // add `beneficiaryRef` to the URL query string - if (getBeneficiaryRef() != null) { - joiner.add( - String.format( - "%sbeneficiaryRef%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBeneficiaryRef())))); - } - - // add `travelRuleBehaviorRef` to the URL query string - if (getTravelRuleBehaviorRef() != null) { - joiner.add( - String.format( - "%stravelRuleBehaviorRef%s=%s", - prefix, - suffix, - ApiClient.urlEncode( - ApiClient.valueToString(getTravelRuleBehaviorRef())))); - } - // add `originatorProof` to the URL query string if (getOriginatorProof() != null) { joiner.add(getOriginatorProof().toUrlQueryString(prefix + "originatorProof" + suffix)); @@ -1031,34 +649,9 @@ public String toUrlQueryString(String prefix) { getBeneficiaryProof().toUrlQueryString(prefix + "beneficiaryProof" + suffix)); } - // add `beneficiaryDid` to the URL query string - if (getBeneficiaryDid() != null) { - joiner.add( - String.format( - "%sbeneficiaryDid%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBeneficiaryDid())))); - } - - // add `originatorDid` to the URL query string - if (getOriginatorDid() != null) { - joiner.add( - String.format( - "%soriginatorDid%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getOriginatorDid())))); - } - - // add `isNonCustodial` to the URL query string - if (getIsNonCustodial() != null) { - joiner.add( - String.format( - "%sisNonCustodial%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getIsNonCustodial())))); + // add `pii` to the URL query string + if (getPii() != null) { + joiner.add(getPii().toUrlQueryString(prefix + "pii" + suffix)); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/TravelRuleDateAndPlaceOfBirth.java b/src/main/java/com/fireblocks/sdk/model/TravelRuleDateAndPlaceOfBirth.java deleted file mode 100644 index f29da696..00000000 --- a/src/main/java/com/fireblocks/sdk/model/TravelRuleDateAndPlaceOfBirth.java +++ /dev/null @@ -1,183 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** Represents the date and place of birth for a natural person */ -@JsonPropertyOrder({ - TravelRuleDateAndPlaceOfBirth.JSON_PROPERTY_DATE_OF_BIRTH, - TravelRuleDateAndPlaceOfBirth.JSON_PROPERTY_PLACE_OF_BIRTH -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class TravelRuleDateAndPlaceOfBirth { - public static final String JSON_PROPERTY_DATE_OF_BIRTH = "dateOfBirth"; - @jakarta.annotation.Nullable private String dateOfBirth; - - public static final String JSON_PROPERTY_PLACE_OF_BIRTH = "placeOfBirth"; - @jakarta.annotation.Nullable private String placeOfBirth; - - public TravelRuleDateAndPlaceOfBirth() {} - - public TravelRuleDateAndPlaceOfBirth dateOfBirth( - @jakarta.annotation.Nullable String dateOfBirth) { - this.dateOfBirth = dateOfBirth; - return this; - } - - /** - * Date of birth. The value must be encrypted. - * - * @return dateOfBirth - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getDateOfBirth() { - return dateOfBirth; - } - - @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDateOfBirth(@jakarta.annotation.Nullable String dateOfBirth) { - this.dateOfBirth = dateOfBirth; - } - - public TravelRuleDateAndPlaceOfBirth placeOfBirth( - @jakarta.annotation.Nullable String placeOfBirth) { - this.placeOfBirth = placeOfBirth; - return this; - } - - /** - * Place of birth. The value must be encrypted. - * - * @return placeOfBirth - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PLACE_OF_BIRTH) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getPlaceOfBirth() { - return placeOfBirth; - } - - @JsonProperty(JSON_PROPERTY_PLACE_OF_BIRTH) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPlaceOfBirth(@jakarta.annotation.Nullable String placeOfBirth) { - this.placeOfBirth = placeOfBirth; - } - - /** Return true if this TravelRuleDateAndPlaceOfBirth object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - TravelRuleDateAndPlaceOfBirth travelRuleDateAndPlaceOfBirth = - (TravelRuleDateAndPlaceOfBirth) o; - return Objects.equals(this.dateOfBirth, travelRuleDateAndPlaceOfBirth.dateOfBirth) - && Objects.equals(this.placeOfBirth, travelRuleDateAndPlaceOfBirth.placeOfBirth); - } - - @Override - public int hashCode() { - return Objects.hash(dateOfBirth, placeOfBirth); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class TravelRuleDateAndPlaceOfBirth {\n"); - sb.append(" dateOfBirth: ").append(toIndentedString(dateOfBirth)).append("\n"); - sb.append(" placeOfBirth: ").append(toIndentedString(placeOfBirth)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `dateOfBirth` to the URL query string - if (getDateOfBirth() != null) { - joiner.add( - String.format( - "%sdateOfBirth%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getDateOfBirth())))); - } - - // add `placeOfBirth` to the URL query string - if (getPlaceOfBirth() != null) { - joiner.add( - String.format( - "%splaceOfBirth%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getPlaceOfBirth())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/TravelRuleGeographicAddress.java b/src/main/java/com/fireblocks/sdk/model/TravelRuleGeographicAddress.java deleted file mode 100644 index 2d4b62eb..00000000 --- a/src/main/java/com/fireblocks/sdk/model/TravelRuleGeographicAddress.java +++ /dev/null @@ -1,779 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** TravelRuleGeographicAddress */ -@JsonPropertyOrder({ - TravelRuleGeographicAddress.JSON_PROPERTY_STREET_NAME, - TravelRuleGeographicAddress.JSON_PROPERTY_TOWN_NAME, - TravelRuleGeographicAddress.JSON_PROPERTY_COUNTRY, - TravelRuleGeographicAddress.JSON_PROPERTY_BUILDING_NUMBER, - TravelRuleGeographicAddress.JSON_PROPERTY_POST_CODE, - TravelRuleGeographicAddress.JSON_PROPERTY_ADDRESS_TYPE, - TravelRuleGeographicAddress.JSON_PROPERTY_DEPARTMENT, - TravelRuleGeographicAddress.JSON_PROPERTY_SUB_DEPARTMENT, - TravelRuleGeographicAddress.JSON_PROPERTY_BUILDING_NAME, - TravelRuleGeographicAddress.JSON_PROPERTY_FLOOR, - TravelRuleGeographicAddress.JSON_PROPERTY_POST_BOX, - TravelRuleGeographicAddress.JSON_PROPERTY_ROOM, - TravelRuleGeographicAddress.JSON_PROPERTY_TOWN_LOCATION_NAME, - TravelRuleGeographicAddress.JSON_PROPERTY_DISTRICT_NAME, - TravelRuleGeographicAddress.JSON_PROPERTY_COUNTRY_SUB_DIVISION, - TravelRuleGeographicAddress.JSON_PROPERTY_ADDRESS_LINE -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class TravelRuleGeographicAddress { - public static final String JSON_PROPERTY_STREET_NAME = "streetName"; - @jakarta.annotation.Nullable private String streetName; - - public static final String JSON_PROPERTY_TOWN_NAME = "townName"; - @jakarta.annotation.Nullable private String townName; - - public static final String JSON_PROPERTY_COUNTRY = "country"; - @jakarta.annotation.Nullable private String country; - - public static final String JSON_PROPERTY_BUILDING_NUMBER = "buildingNumber"; - @jakarta.annotation.Nullable private String buildingNumber; - - public static final String JSON_PROPERTY_POST_CODE = "postCode"; - @jakarta.annotation.Nullable private String postCode; - - public static final String JSON_PROPERTY_ADDRESS_TYPE = "addressType"; - @jakarta.annotation.Nullable private String addressType; - - public static final String JSON_PROPERTY_DEPARTMENT = "department"; - @jakarta.annotation.Nullable private String department; - - public static final String JSON_PROPERTY_SUB_DEPARTMENT = "subDepartment"; - @jakarta.annotation.Nullable private String subDepartment; - - public static final String JSON_PROPERTY_BUILDING_NAME = "buildingName"; - @jakarta.annotation.Nullable private String buildingName; - - public static final String JSON_PROPERTY_FLOOR = "floor"; - @jakarta.annotation.Nullable private String floor; - - public static final String JSON_PROPERTY_POST_BOX = "postBox"; - @jakarta.annotation.Nullable private String postBox; - - public static final String JSON_PROPERTY_ROOM = "room"; - @jakarta.annotation.Nullable private String room; - - public static final String JSON_PROPERTY_TOWN_LOCATION_NAME = "townLocationName"; - @jakarta.annotation.Nullable private String townLocationName; - - public static final String JSON_PROPERTY_DISTRICT_NAME = "districtName"; - @jakarta.annotation.Nullable private String districtName; - - public static final String JSON_PROPERTY_COUNTRY_SUB_DIVISION = "countrySubDivision"; - @jakarta.annotation.Nullable private String countrySubDivision; - - public static final String JSON_PROPERTY_ADDRESS_LINE = "addressLine"; - @jakarta.annotation.Nullable private List addressLine = new ArrayList<>(); - - public TravelRuleGeographicAddress() {} - - public TravelRuleGeographicAddress streetName(@jakarta.annotation.Nullable String streetName) { - this.streetName = streetName; - return this; - } - - /** - * Name of a street or thoroughfare. The value must be encrypted. - * - * @return streetName - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STREET_NAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getStreetName() { - return streetName; - } - - @JsonProperty(JSON_PROPERTY_STREET_NAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStreetName(@jakarta.annotation.Nullable String streetName) { - this.streetName = streetName; - } - - public TravelRuleGeographicAddress townName(@jakarta.annotation.Nullable String townName) { - this.townName = townName; - return this; - } - - /** - * Name of a built-up area, with defined boundaries, and a local government. The value must be - * encrypted. - * - * @return townName - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TOWN_NAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getTownName() { - return townName; - } - - @JsonProperty(JSON_PROPERTY_TOWN_NAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTownName(@jakarta.annotation.Nullable String townName) { - this.townName = townName; - } - - public TravelRuleGeographicAddress country(@jakarta.annotation.Nullable String country) { - this.country = country; - return this; - } - - /** - * Nation with its own government (ISO-3166 Alpha-2 country code). The value must be encrypted. - * - * @return country - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COUNTRY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getCountry() { - return country; - } - - @JsonProperty(JSON_PROPERTY_COUNTRY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCountry(@jakarta.annotation.Nullable String country) { - this.country = country; - } - - public TravelRuleGeographicAddress buildingNumber( - @jakarta.annotation.Nullable String buildingNumber) { - this.buildingNumber = buildingNumber; - return this; - } - - /** - * Number that identifies the position of a building on a street. The value must be encrypted. - * - * @return buildingNumber - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BUILDING_NUMBER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getBuildingNumber() { - return buildingNumber; - } - - @JsonProperty(JSON_PROPERTY_BUILDING_NUMBER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBuildingNumber(@jakarta.annotation.Nullable String buildingNumber) { - this.buildingNumber = buildingNumber; - } - - public TravelRuleGeographicAddress postCode(@jakarta.annotation.Nullable String postCode) { - this.postCode = postCode; - return this; - } - - /** - * Identifier consisting of a group of letters and/or numbers added to a postal address to - * assist the sorting of mail. The value must be encrypted. - * - * @return postCode - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_POST_CODE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getPostCode() { - return postCode; - } - - @JsonProperty(JSON_PROPERTY_POST_CODE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPostCode(@jakarta.annotation.Nullable String postCode) { - this.postCode = postCode; - } - - public TravelRuleGeographicAddress addressType( - @jakarta.annotation.Nullable String addressType) { - this.addressType = addressType; - return this; - } - - /** - * Specifies the type of address. Acceptable values are: - 'HOME': Residential, the home - * address - 'BIZZ': Business, the business address - 'GEOG': Geographic, an - * unspecified physical (geographical) address The value must be encrypted. - * - * @return addressType - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ADDRESS_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getAddressType() { - return addressType; - } - - @JsonProperty(JSON_PROPERTY_ADDRESS_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAddressType(@jakarta.annotation.Nullable String addressType) { - this.addressType = addressType; - } - - public TravelRuleGeographicAddress department(@jakarta.annotation.Nullable String department) { - this.department = department; - return this; - } - - /** - * Identification of a division of a large organisation or building. The value must be - * encrypted. - * - * @return department - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DEPARTMENT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getDepartment() { - return department; - } - - @JsonProperty(JSON_PROPERTY_DEPARTMENT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDepartment(@jakarta.annotation.Nullable String department) { - this.department = department; - } - - public TravelRuleGeographicAddress subDepartment( - @jakarta.annotation.Nullable String subDepartment) { - this.subDepartment = subDepartment; - return this; - } - - /** - * Identification of a sub-division of a large organisation or building. The value must be - * encrypted. - * - * @return subDepartment - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SUB_DEPARTMENT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getSubDepartment() { - return subDepartment; - } - - @JsonProperty(JSON_PROPERTY_SUB_DEPARTMENT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSubDepartment(@jakarta.annotation.Nullable String subDepartment) { - this.subDepartment = subDepartment; - } - - public TravelRuleGeographicAddress buildingName( - @jakarta.annotation.Nullable String buildingName) { - this.buildingName = buildingName; - return this; - } - - /** - * Name of the building or house. The value must be encrypted. - * - * @return buildingName - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BUILDING_NAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getBuildingName() { - return buildingName; - } - - @JsonProperty(JSON_PROPERTY_BUILDING_NAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBuildingName(@jakarta.annotation.Nullable String buildingName) { - this.buildingName = buildingName; - } - - public TravelRuleGeographicAddress floor(@jakarta.annotation.Nullable String floor) { - this.floor = floor; - return this; - } - - /** - * Floor or storey within a building. The value must be encrypted. - * - * @return floor - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FLOOR) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getFloor() { - return floor; - } - - @JsonProperty(JSON_PROPERTY_FLOOR) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFloor(@jakarta.annotation.Nullable String floor) { - this.floor = floor; - } - - public TravelRuleGeographicAddress postBox(@jakarta.annotation.Nullable String postBox) { - this.postBox = postBox; - return this; - } - - /** - * Numbered box in a post office. The value must be encrypted. - * - * @return postBox - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_POST_BOX) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getPostBox() { - return postBox; - } - - @JsonProperty(JSON_PROPERTY_POST_BOX) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPostBox(@jakarta.annotation.Nullable String postBox) { - this.postBox = postBox; - } - - public TravelRuleGeographicAddress room(@jakarta.annotation.Nullable String room) { - this.room = room; - return this; - } - - /** - * Building room number. The value must be encrypted. - * - * @return room - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ROOM) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getRoom() { - return room; - } - - @JsonProperty(JSON_PROPERTY_ROOM) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRoom(@jakarta.annotation.Nullable String room) { - this.room = room; - } - - public TravelRuleGeographicAddress townLocationName( - @jakarta.annotation.Nullable String townLocationName) { - this.townLocationName = townLocationName; - return this; - } - - /** - * Specific location name within the town. The value must be encrypted. - * - * @return townLocationName - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TOWN_LOCATION_NAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getTownLocationName() { - return townLocationName; - } - - @JsonProperty(JSON_PROPERTY_TOWN_LOCATION_NAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTownLocationName(@jakarta.annotation.Nullable String townLocationName) { - this.townLocationName = townLocationName; - } - - public TravelRuleGeographicAddress districtName( - @jakarta.annotation.Nullable String districtName) { - this.districtName = districtName; - return this; - } - - /** - * Identifies a subdivision within a country subdivision. The value must be encrypted. - * - * @return districtName - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DISTRICT_NAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getDistrictName() { - return districtName; - } - - @JsonProperty(JSON_PROPERTY_DISTRICT_NAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDistrictName(@jakarta.annotation.Nullable String districtName) { - this.districtName = districtName; - } - - public TravelRuleGeographicAddress countrySubDivision( - @jakarta.annotation.Nullable String countrySubDivision) { - this.countrySubDivision = countrySubDivision; - return this; - } - - /** - * Identifies a subdivision of a country such as state, region, or province. The value must be - * encrypted. - * - * @return countrySubDivision - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COUNTRY_SUB_DIVISION) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getCountrySubDivision() { - return countrySubDivision; - } - - @JsonProperty(JSON_PROPERTY_COUNTRY_SUB_DIVISION) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCountrySubDivision(@jakarta.annotation.Nullable String countrySubDivision) { - this.countrySubDivision = countrySubDivision; - } - - public TravelRuleGeographicAddress addressLine( - @jakarta.annotation.Nullable List addressLine) { - this.addressLine = addressLine; - return this; - } - - public TravelRuleGeographicAddress addAddressLineItem(String addressLineItem) { - if (this.addressLine == null) { - this.addressLine = new ArrayList<>(); - } - this.addressLine.add(addressLineItem); - return this; - } - - /** - * Information that locates and identifies a specific address, presented in free format text. - * Each item must be encrypted. - * - * @return addressLine - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ADDRESS_LINE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getAddressLine() { - return addressLine; - } - - @JsonProperty(JSON_PROPERTY_ADDRESS_LINE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAddressLine(@jakarta.annotation.Nullable List addressLine) { - this.addressLine = addressLine; - } - - /** Return true if this TravelRuleGeographicAddress object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - TravelRuleGeographicAddress travelRuleGeographicAddress = (TravelRuleGeographicAddress) o; - return Objects.equals(this.streetName, travelRuleGeographicAddress.streetName) - && Objects.equals(this.townName, travelRuleGeographicAddress.townName) - && Objects.equals(this.country, travelRuleGeographicAddress.country) - && Objects.equals(this.buildingNumber, travelRuleGeographicAddress.buildingNumber) - && Objects.equals(this.postCode, travelRuleGeographicAddress.postCode) - && Objects.equals(this.addressType, travelRuleGeographicAddress.addressType) - && Objects.equals(this.department, travelRuleGeographicAddress.department) - && Objects.equals(this.subDepartment, travelRuleGeographicAddress.subDepartment) - && Objects.equals(this.buildingName, travelRuleGeographicAddress.buildingName) - && Objects.equals(this.floor, travelRuleGeographicAddress.floor) - && Objects.equals(this.postBox, travelRuleGeographicAddress.postBox) - && Objects.equals(this.room, travelRuleGeographicAddress.room) - && Objects.equals( - this.townLocationName, travelRuleGeographicAddress.townLocationName) - && Objects.equals(this.districtName, travelRuleGeographicAddress.districtName) - && Objects.equals( - this.countrySubDivision, travelRuleGeographicAddress.countrySubDivision) - && Objects.equals(this.addressLine, travelRuleGeographicAddress.addressLine); - } - - @Override - public int hashCode() { - return Objects.hash( - streetName, - townName, - country, - buildingNumber, - postCode, - addressType, - department, - subDepartment, - buildingName, - floor, - postBox, - room, - townLocationName, - districtName, - countrySubDivision, - addressLine); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class TravelRuleGeographicAddress {\n"); - sb.append(" streetName: ").append(toIndentedString(streetName)).append("\n"); - sb.append(" townName: ").append(toIndentedString(townName)).append("\n"); - sb.append(" country: ").append(toIndentedString(country)).append("\n"); - sb.append(" buildingNumber: ").append(toIndentedString(buildingNumber)).append("\n"); - sb.append(" postCode: ").append(toIndentedString(postCode)).append("\n"); - sb.append(" addressType: ").append(toIndentedString(addressType)).append("\n"); - sb.append(" department: ").append(toIndentedString(department)).append("\n"); - sb.append(" subDepartment: ").append(toIndentedString(subDepartment)).append("\n"); - sb.append(" buildingName: ").append(toIndentedString(buildingName)).append("\n"); - sb.append(" floor: ").append(toIndentedString(floor)).append("\n"); - sb.append(" postBox: ").append(toIndentedString(postBox)).append("\n"); - sb.append(" room: ").append(toIndentedString(room)).append("\n"); - sb.append(" townLocationName: ").append(toIndentedString(townLocationName)).append("\n"); - sb.append(" districtName: ").append(toIndentedString(districtName)).append("\n"); - sb.append(" countrySubDivision: ") - .append(toIndentedString(countrySubDivision)) - .append("\n"); - sb.append(" addressLine: ").append(toIndentedString(addressLine)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `streetName` to the URL query string - if (getStreetName() != null) { - joiner.add( - String.format( - "%sstreetName%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getStreetName())))); - } - - // add `townName` to the URL query string - if (getTownName() != null) { - joiner.add( - String.format( - "%stownName%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getTownName())))); - } - - // add `country` to the URL query string - if (getCountry() != null) { - joiner.add( - String.format( - "%scountry%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getCountry())))); - } - - // add `buildingNumber` to the URL query string - if (getBuildingNumber() != null) { - joiner.add( - String.format( - "%sbuildingNumber%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBuildingNumber())))); - } - - // add `postCode` to the URL query string - if (getPostCode() != null) { - joiner.add( - String.format( - "%spostCode%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getPostCode())))); - } - - // add `addressType` to the URL query string - if (getAddressType() != null) { - joiner.add( - String.format( - "%saddressType%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAddressType())))); - } - - // add `department` to the URL query string - if (getDepartment() != null) { - joiner.add( - String.format( - "%sdepartment%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getDepartment())))); - } - - // add `subDepartment` to the URL query string - if (getSubDepartment() != null) { - joiner.add( - String.format( - "%ssubDepartment%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getSubDepartment())))); - } - - // add `buildingName` to the URL query string - if (getBuildingName() != null) { - joiner.add( - String.format( - "%sbuildingName%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBuildingName())))); - } - - // add `floor` to the URL query string - if (getFloor() != null) { - joiner.add( - String.format( - "%sfloor%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getFloor())))); - } - - // add `postBox` to the URL query string - if (getPostBox() != null) { - joiner.add( - String.format( - "%spostBox%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getPostBox())))); - } - - // add `room` to the URL query string - if (getRoom() != null) { - joiner.add( - String.format( - "%sroom%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getRoom())))); - } - - // add `townLocationName` to the URL query string - if (getTownLocationName() != null) { - joiner.add( - String.format( - "%stownLocationName%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getTownLocationName())))); - } - - // add `districtName` to the URL query string - if (getDistrictName() != null) { - joiner.add( - String.format( - "%sdistrictName%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getDistrictName())))); - } - - // add `countrySubDivision` to the URL query string - if (getCountrySubDivision() != null) { - joiner.add( - String.format( - "%scountrySubDivision%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getCountrySubDivision())))); - } - - // add `addressLine` to the URL query string - if (getAddressLine() != null) { - for (int i = 0; i < getAddressLine().size(); i++) { - joiner.add( - String.format( - "%saddressLine%s%s=%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode( - ApiClient.valueToString(getAddressLine().get(i))))); - } - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/TravelRuleGetAllVASPsResponse.java b/src/main/java/com/fireblocks/sdk/model/TravelRuleGetAllVASPsResponse.java index b1aa9a4e..d6aeddec 100644 --- a/src/main/java/com/fireblocks/sdk/model/TravelRuleGetAllVASPsResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/TravelRuleGetAllVASPsResponse.java @@ -17,115 +17,59 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; import java.util.Objects; import java.util.StringJoiner; /** TravelRuleGetAllVASPsResponse */ -@JsonPropertyOrder({ - TravelRuleGetAllVASPsResponse.JSON_PROPERTY_DATA, - TravelRuleGetAllVASPsResponse.JSON_PROPERTY_TOTAL, - TravelRuleGetAllVASPsResponse.JSON_PROPERTY_NEXT -}) +@JsonPropertyOrder({TravelRuleGetAllVASPsResponse.JSON_PROPERTY_VASPS}) @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") public class TravelRuleGetAllVASPsResponse { - public static final String JSON_PROPERTY_DATA = "data"; - @jakarta.annotation.Nonnull private List data = new ArrayList<>(); - - public static final String JSON_PROPERTY_TOTAL = "total"; - @jakarta.annotation.Nullable private Integer total; - - public static final String JSON_PROPERTY_NEXT = "next"; - @jakarta.annotation.Nullable private String next; + public static final String JSON_PROPERTY_VASPS = "vasps"; + @jakarta.annotation.Nonnull private List vasps; public TravelRuleGetAllVASPsResponse() {} @JsonCreator public TravelRuleGetAllVASPsResponse( - @JsonProperty(value = JSON_PROPERTY_DATA, required = true) List data) { - this.data = data; + @JsonProperty(value = JSON_PROPERTY_VASPS, required = true) + List vasps) { + this.vasps = vasps; } - public TravelRuleGetAllVASPsResponse data( - @jakarta.annotation.Nonnull List data) { - this.data = data; + public TravelRuleGetAllVASPsResponse vasps( + @jakarta.annotation.Nonnull List vasps) { + this.vasps = vasps; return this; } - public TravelRuleGetAllVASPsResponse addDataItem(TravelRuleVASP dataItem) { - if (this.data == null) { - this.data = new ArrayList<>(); + public TravelRuleGetAllVASPsResponse addVaspsItem(TravelRuleVASP vaspsItem) { + if (this.vasps == null) { + this.vasps = new ArrayList<>(); } - this.data.add(dataItem); + this.vasps.add(vaspsItem); return this; } /** - * An array of VASP objects, referencing the TravelRuleVASP schema. + * Get vasps * - * @return data + * @return vasps */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DATA) + @JsonProperty(JSON_PROPERTY_VASPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getData() { - return data; + public List getVasps() { + return vasps; } - @JsonProperty(JSON_PROPERTY_DATA) + @JsonProperty(JSON_PROPERTY_VASPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setData(@jakarta.annotation.Nonnull List data) { - this.data = data; - } - - public TravelRuleGetAllVASPsResponse total(@jakarta.annotation.Nullable Integer total) { - this.total = total; - return this; - } - - /** - * The total number of VASPs. - * - * @return total - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TOTAL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getTotal() { - return total; - } - - @JsonProperty(JSON_PROPERTY_TOTAL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTotal(@jakarta.annotation.Nullable Integer total) { - this.total = total; - } - - public TravelRuleGetAllVASPsResponse next(@jakarta.annotation.Nullable String next) { - this.next = next; - return this; - } - - /** - * The URL for the next page of results. - * - * @return next - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NEXT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getNext() { - return next; - } - - @JsonProperty(JSON_PROPERTY_NEXT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNext(@jakarta.annotation.Nullable String next) { - this.next = next; + public void setVasps(@jakarta.annotation.Nonnull List vasps) { + this.vasps = vasps; } /** Return true if this TravelRuleGetAllVASPsResponse object is equal to o. */ @@ -139,23 +83,19 @@ public boolean equals(Object o) { } TravelRuleGetAllVASPsResponse travelRuleGetAllVASPsResponse = (TravelRuleGetAllVASPsResponse) o; - return Objects.equals(this.data, travelRuleGetAllVASPsResponse.data) - && Objects.equals(this.total, travelRuleGetAllVASPsResponse.total) - && Objects.equals(this.next, travelRuleGetAllVASPsResponse.next); + return Objects.equals(this.vasps, travelRuleGetAllVASPsResponse.vasps); } @Override public int hashCode() { - return Objects.hash(data, total, next); + return Objects.hash(vasps); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TravelRuleGetAllVASPsResponse {\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" total: ").append(toIndentedString(total)).append("\n"); - sb.append(" next: ").append(toIndentedString(next)).append("\n"); + sb.append(" vasps: ").append(toIndentedString(vasps)).append("\n"); sb.append("}"); return sb.toString(); } @@ -203,16 +143,16 @@ public String toUrlQueryString(String prefix) { StringJoiner joiner = new StringJoiner("&"); - // add `data` to the URL query string - if (getData() != null) { - for (int i = 0; i < getData().size(); i++) { - if (getData().get(i) != null) { + // add `vasps` to the URL query string + if (getVasps() != null) { + for (int i = 0; i < getVasps().size(); i++) { + if (getVasps().get(i) != null) { joiner.add( - getData() + getVasps() .get(i) .toUrlQueryString( String.format( - "%sdata%s%s", + "%svasps%s%s", prefix, suffix, "".equals(suffix) @@ -226,26 +166,6 @@ public String toUrlQueryString(String prefix) { } } - // add `total` to the URL query string - if (getTotal() != null) { - joiner.add( - String.format( - "%stotal%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getTotal())))); - } - - // add `next` to the URL query string - if (getNext() != null) { - joiner.add( - String.format( - "%snext%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getNext())))); - } - return joiner.toString(); } } diff --git a/src/main/java/com/fireblocks/sdk/model/TravelRuleLegalPerson.java b/src/main/java/com/fireblocks/sdk/model/TravelRuleLegalPerson.java deleted file mode 100644 index 55158c84..00000000 --- a/src/main/java/com/fireblocks/sdk/model/TravelRuleLegalPerson.java +++ /dev/null @@ -1,386 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** TravelRuleLegalPerson */ -@JsonPropertyOrder({ - TravelRuleLegalPerson.JSON_PROPERTY_NAME, - TravelRuleLegalPerson.JSON_PROPERTY_GEOGRAPHIC_ADDRESS, - TravelRuleLegalPerson.JSON_PROPERTY_NATIONAL_IDENTIFICATION, - TravelRuleLegalPerson.JSON_PROPERTY_CUSTOMER_IDENTIFICATION, - TravelRuleLegalPerson.JSON_PROPERTY_CUSTOMER_NUMBER, - TravelRuleLegalPerson.JSON_PROPERTY_COUNTRY_OF_REGISTRATION -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class TravelRuleLegalPerson { - public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nullable private TravelRuleLegalPersonNameIdentifier name; - - public static final String JSON_PROPERTY_GEOGRAPHIC_ADDRESS = "geographicAddress"; - - @jakarta.annotation.Nullable - private List geographicAddress = new ArrayList<>(); - - public static final String JSON_PROPERTY_NATIONAL_IDENTIFICATION = "nationalIdentification"; - @jakarta.annotation.Nullable private TravelRuleNationalIdentification nationalIdentification; - - public static final String JSON_PROPERTY_CUSTOMER_IDENTIFICATION = "customerIdentification"; - @jakarta.annotation.Nullable private String customerIdentification; - - public static final String JSON_PROPERTY_CUSTOMER_NUMBER = "customerNumber"; - @jakarta.annotation.Nullable private String customerNumber; - - public static final String JSON_PROPERTY_COUNTRY_OF_REGISTRATION = "countryOfRegistration"; - @jakarta.annotation.Nullable private String countryOfRegistration; - - public TravelRuleLegalPerson() {} - - public TravelRuleLegalPerson name( - @jakarta.annotation.Nullable TravelRuleLegalPersonNameIdentifier name) { - this.name = name; - return this; - } - - /** - * Get name - * - * @return name - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public TravelRuleLegalPersonNameIdentifier getName() { - return name; - } - - @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(@jakarta.annotation.Nullable TravelRuleLegalPersonNameIdentifier name) { - this.name = name; - } - - public TravelRuleLegalPerson geographicAddress( - @jakarta.annotation.Nullable List geographicAddress) { - this.geographicAddress = geographicAddress; - return this; - } - - public TravelRuleLegalPerson addGeographicAddressItem( - TravelRuleGeographicAddress geographicAddressItem) { - if (this.geographicAddress == null) { - this.geographicAddress = new ArrayList<>(); - } - this.geographicAddress.add(geographicAddressItem); - return this; - } - - /** - * The array of geographic addresses associated with the legal person. - * - * @return geographicAddress - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_GEOGRAPHIC_ADDRESS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getGeographicAddress() { - return geographicAddress; - } - - @JsonProperty(JSON_PROPERTY_GEOGRAPHIC_ADDRESS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setGeographicAddress( - @jakarta.annotation.Nullable List geographicAddress) { - this.geographicAddress = geographicAddress; - } - - public TravelRuleLegalPerson nationalIdentification( - @jakarta.annotation.Nullable TravelRuleNationalIdentification nationalIdentification) { - this.nationalIdentification = nationalIdentification; - return this; - } - - /** - * Get nationalIdentification - * - * @return nationalIdentification - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NATIONAL_IDENTIFICATION) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public TravelRuleNationalIdentification getNationalIdentification() { - return nationalIdentification; - } - - @JsonProperty(JSON_PROPERTY_NATIONAL_IDENTIFICATION) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNationalIdentification( - @jakarta.annotation.Nullable TravelRuleNationalIdentification nationalIdentification) { - this.nationalIdentification = nationalIdentification; - } - - public TravelRuleLegalPerson customerIdentification( - @jakarta.annotation.Nullable String customerIdentification) { - this.customerIdentification = customerIdentification; - return this; - } - - /** - * A unique identifier that identifies the customer in the organization's context. The value - * must be encrypted. - * - * @return customerIdentification - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CUSTOMER_IDENTIFICATION) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getCustomerIdentification() { - return customerIdentification; - } - - @JsonProperty(JSON_PROPERTY_CUSTOMER_IDENTIFICATION) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCustomerIdentification( - @jakarta.annotation.Nullable String customerIdentification) { - this.customerIdentification = customerIdentification; - } - - public TravelRuleLegalPerson customerNumber( - @jakarta.annotation.Nullable String customerNumber) { - this.customerNumber = customerNumber; - return this; - } - - /** - * A distinct identifier that uniquely identifies the customer within the organization. The - * value must be encrypted. - * - * @return customerNumber - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CUSTOMER_NUMBER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getCustomerNumber() { - return customerNumber; - } - - @JsonProperty(JSON_PROPERTY_CUSTOMER_NUMBER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCustomerNumber(@jakarta.annotation.Nullable String customerNumber) { - this.customerNumber = customerNumber; - } - - public TravelRuleLegalPerson countryOfRegistration( - @jakarta.annotation.Nullable String countryOfRegistration) { - this.countryOfRegistration = countryOfRegistration; - return this; - } - - /** - * The ISO-3166 Alpha-2 country code where the legal person is registered. The value must be - * encrypted. - * - * @return countryOfRegistration - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COUNTRY_OF_REGISTRATION) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getCountryOfRegistration() { - return countryOfRegistration; - } - - @JsonProperty(JSON_PROPERTY_COUNTRY_OF_REGISTRATION) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCountryOfRegistration( - @jakarta.annotation.Nullable String countryOfRegistration) { - this.countryOfRegistration = countryOfRegistration; - } - - /** Return true if this TravelRuleLegalPerson object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - TravelRuleLegalPerson travelRuleLegalPerson = (TravelRuleLegalPerson) o; - return Objects.equals(this.name, travelRuleLegalPerson.name) - && Objects.equals(this.geographicAddress, travelRuleLegalPerson.geographicAddress) - && Objects.equals( - this.nationalIdentification, travelRuleLegalPerson.nationalIdentification) - && Objects.equals( - this.customerIdentification, travelRuleLegalPerson.customerIdentification) - && Objects.equals(this.customerNumber, travelRuleLegalPerson.customerNumber) - && Objects.equals( - this.countryOfRegistration, travelRuleLegalPerson.countryOfRegistration); - } - - @Override - public int hashCode() { - return Objects.hash( - name, - geographicAddress, - nationalIdentification, - customerIdentification, - customerNumber, - countryOfRegistration); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class TravelRuleLegalPerson {\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" geographicAddress: ") - .append(toIndentedString(geographicAddress)) - .append("\n"); - sb.append(" nationalIdentification: ") - .append(toIndentedString(nationalIdentification)) - .append("\n"); - sb.append(" customerIdentification: ") - .append(toIndentedString(customerIdentification)) - .append("\n"); - sb.append(" customerNumber: ").append(toIndentedString(customerNumber)).append("\n"); - sb.append(" countryOfRegistration: ") - .append(toIndentedString(countryOfRegistration)) - .append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `name` to the URL query string - if (getName() != null) { - joiner.add(getName().toUrlQueryString(prefix + "name" + suffix)); - } - - // add `geographicAddress` to the URL query string - if (getGeographicAddress() != null) { - for (int i = 0; i < getGeographicAddress().size(); i++) { - if (getGeographicAddress().get(i) != null) { - joiner.add( - getGeographicAddress() - .get(i) - .toUrlQueryString( - String.format( - "%sgeographicAddress%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } - } - - // add `nationalIdentification` to the URL query string - if (getNationalIdentification() != null) { - joiner.add( - getNationalIdentification() - .toUrlQueryString(prefix + "nationalIdentification" + suffix)); - } - - // add `customerIdentification` to the URL query string - if (getCustomerIdentification() != null) { - joiner.add( - String.format( - "%scustomerIdentification%s=%s", - prefix, - suffix, - ApiClient.urlEncode( - ApiClient.valueToString(getCustomerIdentification())))); - } - - // add `customerNumber` to the URL query string - if (getCustomerNumber() != null) { - joiner.add( - String.format( - "%scustomerNumber%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getCustomerNumber())))); - } - - // add `countryOfRegistration` to the URL query string - if (getCountryOfRegistration() != null) { - joiner.add( - String.format( - "%scountryOfRegistration%s=%s", - prefix, - suffix, - ApiClient.urlEncode( - ApiClient.valueToString(getCountryOfRegistration())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/TravelRuleLegalPersonNameIdentifier.java b/src/main/java/com/fireblocks/sdk/model/TravelRuleLegalPersonNameIdentifier.java deleted file mode 100644 index 9364660f..00000000 --- a/src/main/java/com/fireblocks/sdk/model/TravelRuleLegalPersonNameIdentifier.java +++ /dev/null @@ -1,193 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** TravelRuleLegalPersonNameIdentifier */ -@JsonPropertyOrder({ - TravelRuleLegalPersonNameIdentifier.JSON_PROPERTY_LEGAL_PERSON_NAME, - TravelRuleLegalPersonNameIdentifier.JSON_PROPERTY_LEGAL_PERSON_NAME_IDENTIFIER_TYPE -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class TravelRuleLegalPersonNameIdentifier { - public static final String JSON_PROPERTY_LEGAL_PERSON_NAME = "legalPersonName"; - @jakarta.annotation.Nullable private String legalPersonName; - - public static final String JSON_PROPERTY_LEGAL_PERSON_NAME_IDENTIFIER_TYPE = - "legalPersonNameIdentifierType"; - @jakarta.annotation.Nullable private String legalPersonNameIdentifierType; - - public TravelRuleLegalPersonNameIdentifier() {} - - public TravelRuleLegalPersonNameIdentifier legalPersonName( - @jakarta.annotation.Nullable String legalPersonName) { - this.legalPersonName = legalPersonName; - return this; - } - - /** - * Name by which the legal person is known. The value must be encrypted. - * - * @return legalPersonName - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_LEGAL_PERSON_NAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getLegalPersonName() { - return legalPersonName; - } - - @JsonProperty(JSON_PROPERTY_LEGAL_PERSON_NAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLegalPersonName(@jakarta.annotation.Nullable String legalPersonName) { - this.legalPersonName = legalPersonName; - } - - public TravelRuleLegalPersonNameIdentifier legalPersonNameIdentifierType( - @jakarta.annotation.Nullable String legalPersonNameIdentifierType) { - this.legalPersonNameIdentifierType = legalPersonNameIdentifierType; - return this; - } - - /** - * Specifies the type of name for a legal person. Acceptable values are: - 'REGISTERED': - * The official registered name. - 'TRADE': A trading name or DBA (Doing Business As) - * name. - 'OTHER': Any other type of name. The value must be encrypted. - * - * @return legalPersonNameIdentifierType - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_LEGAL_PERSON_NAME_IDENTIFIER_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getLegalPersonNameIdentifierType() { - return legalPersonNameIdentifierType; - } - - @JsonProperty(JSON_PROPERTY_LEGAL_PERSON_NAME_IDENTIFIER_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLegalPersonNameIdentifierType( - @jakarta.annotation.Nullable String legalPersonNameIdentifierType) { - this.legalPersonNameIdentifierType = legalPersonNameIdentifierType; - } - - /** Return true if this TravelRuleLegalPersonNameIdentifier object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - TravelRuleLegalPersonNameIdentifier travelRuleLegalPersonNameIdentifier = - (TravelRuleLegalPersonNameIdentifier) o; - return Objects.equals( - this.legalPersonName, travelRuleLegalPersonNameIdentifier.legalPersonName) - && Objects.equals( - this.legalPersonNameIdentifierType, - travelRuleLegalPersonNameIdentifier.legalPersonNameIdentifierType); - } - - @Override - public int hashCode() { - return Objects.hash(legalPersonName, legalPersonNameIdentifierType); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class TravelRuleLegalPersonNameIdentifier {\n"); - sb.append(" legalPersonName: ").append(toIndentedString(legalPersonName)).append("\n"); - sb.append(" legalPersonNameIdentifierType: ") - .append(toIndentedString(legalPersonNameIdentifierType)) - .append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `legalPersonName` to the URL query string - if (getLegalPersonName() != null) { - joiner.add( - String.format( - "%slegalPersonName%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getLegalPersonName())))); - } - - // add `legalPersonNameIdentifierType` to the URL query string - if (getLegalPersonNameIdentifierType() != null) { - joiner.add( - String.format( - "%slegalPersonNameIdentifierType%s=%s", - prefix, - suffix, - ApiClient.urlEncode( - ApiClient.valueToString(getLegalPersonNameIdentifierType())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/TravelRuleNationalIdentification.java b/src/main/java/com/fireblocks/sdk/model/TravelRuleNationalIdentification.java deleted file mode 100644 index 2afe5f98..00000000 --- a/src/main/java/com/fireblocks/sdk/model/TravelRuleNationalIdentification.java +++ /dev/null @@ -1,284 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** Represents a national identifier for a person or entity */ -@JsonPropertyOrder({ - TravelRuleNationalIdentification.JSON_PROPERTY_COUNTRY_OF_ISSUE, - TravelRuleNationalIdentification.JSON_PROPERTY_NATIONAL_IDENTIFIER, - TravelRuleNationalIdentification.JSON_PROPERTY_NATIONAL_IDENTIFIER_TYPE, - TravelRuleNationalIdentification.JSON_PROPERTY_REGISTRATION_AUTHORITY -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class TravelRuleNationalIdentification { - public static final String JSON_PROPERTY_COUNTRY_OF_ISSUE = "countryOfIssue"; - @jakarta.annotation.Nullable private String countryOfIssue; - - public static final String JSON_PROPERTY_NATIONAL_IDENTIFIER = "nationalIdentifier"; - @jakarta.annotation.Nullable private String nationalIdentifier; - - public static final String JSON_PROPERTY_NATIONAL_IDENTIFIER_TYPE = "nationalIdentifierType"; - @jakarta.annotation.Nullable private String nationalIdentifierType; - - public static final String JSON_PROPERTY_REGISTRATION_AUTHORITY = "registrationAuthority"; - @jakarta.annotation.Nullable private String registrationAuthority; - - public TravelRuleNationalIdentification() {} - - public TravelRuleNationalIdentification countryOfIssue( - @jakarta.annotation.Nullable String countryOfIssue) { - this.countryOfIssue = countryOfIssue; - return this; - } - - /** - * Country that issued the national identifier (ISO-3166 Alpha-2 country code). The value must - * be encrypted. - * - * @return countryOfIssue - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COUNTRY_OF_ISSUE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getCountryOfIssue() { - return countryOfIssue; - } - - @JsonProperty(JSON_PROPERTY_COUNTRY_OF_ISSUE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCountryOfIssue(@jakarta.annotation.Nullable String countryOfIssue) { - this.countryOfIssue = countryOfIssue; - } - - public TravelRuleNationalIdentification nationalIdentifier( - @jakarta.annotation.Nullable String nationalIdentifier) { - this.nationalIdentifier = nationalIdentifier; - return this; - } - - /** - * National identifier (max 35 characters). The value must be encrypted. - * - * @return nationalIdentifier - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NATIONAL_IDENTIFIER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getNationalIdentifier() { - return nationalIdentifier; - } - - @JsonProperty(JSON_PROPERTY_NATIONAL_IDENTIFIER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNationalIdentifier(@jakarta.annotation.Nullable String nationalIdentifier) { - this.nationalIdentifier = nationalIdentifier; - } - - public TravelRuleNationalIdentification nationalIdentifierType( - @jakarta.annotation.Nullable String nationalIdentifierType) { - this.nationalIdentifierType = nationalIdentifierType; - return this; - } - - /** - * Type of national identifier. Acceptable values include: - 'PASSPORT': Passport number - * - 'NATIONAL_ID': National identification number - 'TAX_ID': Tax - * identification number - 'SOCIAL_SECURITY': Social security number The value must be - * encrypted. - * - * @return nationalIdentifierType - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NATIONAL_IDENTIFIER_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getNationalIdentifierType() { - return nationalIdentifierType; - } - - @JsonProperty(JSON_PROPERTY_NATIONAL_IDENTIFIER_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNationalIdentifierType( - @jakarta.annotation.Nullable String nationalIdentifierType) { - this.nationalIdentifierType = nationalIdentifierType; - } - - public TravelRuleNationalIdentification registrationAuthority( - @jakarta.annotation.Nullable String registrationAuthority) { - this.registrationAuthority = registrationAuthority; - return this; - } - - /** - * Registration authority (format -> RA followed by 6 digits). The value must be encrypted. - * - * @return registrationAuthority - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_REGISTRATION_AUTHORITY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getRegistrationAuthority() { - return registrationAuthority; - } - - @JsonProperty(JSON_PROPERTY_REGISTRATION_AUTHORITY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRegistrationAuthority( - @jakarta.annotation.Nullable String registrationAuthority) { - this.registrationAuthority = registrationAuthority; - } - - /** Return true if this TravelRuleNationalIdentification object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - TravelRuleNationalIdentification travelRuleNationalIdentification = - (TravelRuleNationalIdentification) o; - return Objects.equals(this.countryOfIssue, travelRuleNationalIdentification.countryOfIssue) - && Objects.equals( - this.nationalIdentifier, - travelRuleNationalIdentification.nationalIdentifier) - && Objects.equals( - this.nationalIdentifierType, - travelRuleNationalIdentification.nationalIdentifierType) - && Objects.equals( - this.registrationAuthority, - travelRuleNationalIdentification.registrationAuthority); - } - - @Override - public int hashCode() { - return Objects.hash( - countryOfIssue, nationalIdentifier, nationalIdentifierType, registrationAuthority); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class TravelRuleNationalIdentification {\n"); - sb.append(" countryOfIssue: ").append(toIndentedString(countryOfIssue)).append("\n"); - sb.append(" nationalIdentifier: ") - .append(toIndentedString(nationalIdentifier)) - .append("\n"); - sb.append(" nationalIdentifierType: ") - .append(toIndentedString(nationalIdentifierType)) - .append("\n"); - sb.append(" registrationAuthority: ") - .append(toIndentedString(registrationAuthority)) - .append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `countryOfIssue` to the URL query string - if (getCountryOfIssue() != null) { - joiner.add( - String.format( - "%scountryOfIssue%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getCountryOfIssue())))); - } - - // add `nationalIdentifier` to the URL query string - if (getNationalIdentifier() != null) { - joiner.add( - String.format( - "%snationalIdentifier%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getNationalIdentifier())))); - } - - // add `nationalIdentifierType` to the URL query string - if (getNationalIdentifierType() != null) { - joiner.add( - String.format( - "%snationalIdentifierType%s=%s", - prefix, - suffix, - ApiClient.urlEncode( - ApiClient.valueToString(getNationalIdentifierType())))); - } - - // add `registrationAuthority` to the URL query string - if (getRegistrationAuthority() != null) { - joiner.add( - String.format( - "%sregistrationAuthority%s=%s", - prefix, - suffix, - ApiClient.urlEncode( - ApiClient.valueToString(getRegistrationAuthority())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/TravelRuleNaturalNameIdentifier.java b/src/main/java/com/fireblocks/sdk/model/TravelRuleNaturalNameIdentifier.java deleted file mode 100644 index 1f722fb2..00000000 --- a/src/main/java/com/fireblocks/sdk/model/TravelRuleNaturalNameIdentifier.java +++ /dev/null @@ -1,236 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** TravelRuleNaturalNameIdentifier */ -@JsonPropertyOrder({ - TravelRuleNaturalNameIdentifier.JSON_PROPERTY_PRIMARY_IDENTIFIER, - TravelRuleNaturalNameIdentifier.JSON_PROPERTY_SECONDARY_IDENTIFIER, - TravelRuleNaturalNameIdentifier.JSON_PROPERTY_NAME_IDENTIFIER_TYPE -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class TravelRuleNaturalNameIdentifier { - public static final String JSON_PROPERTY_PRIMARY_IDENTIFIER = "primaryIdentifier"; - @jakarta.annotation.Nullable private String primaryIdentifier; - - public static final String JSON_PROPERTY_SECONDARY_IDENTIFIER = "secondaryIdentifier"; - @jakarta.annotation.Nullable private String secondaryIdentifier; - - public static final String JSON_PROPERTY_NAME_IDENTIFIER_TYPE = "nameIdentifierType"; - @jakarta.annotation.Nullable private String nameIdentifierType; - - public TravelRuleNaturalNameIdentifier() {} - - public TravelRuleNaturalNameIdentifier primaryIdentifier( - @jakarta.annotation.Nullable String primaryIdentifier) { - this.primaryIdentifier = primaryIdentifier; - return this; - } - - /** - * The primary identifier of the name. The value must be encrypted. - * - * @return primaryIdentifier - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PRIMARY_IDENTIFIER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getPrimaryIdentifier() { - return primaryIdentifier; - } - - @JsonProperty(JSON_PROPERTY_PRIMARY_IDENTIFIER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrimaryIdentifier(@jakarta.annotation.Nullable String primaryIdentifier) { - this.primaryIdentifier = primaryIdentifier; - } - - public TravelRuleNaturalNameIdentifier secondaryIdentifier( - @jakarta.annotation.Nullable String secondaryIdentifier) { - this.secondaryIdentifier = secondaryIdentifier; - return this; - } - - /** - * The secondary identifier of the name. The value must be encrypted. - * - * @return secondaryIdentifier - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SECONDARY_IDENTIFIER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getSecondaryIdentifier() { - return secondaryIdentifier; - } - - @JsonProperty(JSON_PROPERTY_SECONDARY_IDENTIFIER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSecondaryIdentifier(@jakarta.annotation.Nullable String secondaryIdentifier) { - this.secondaryIdentifier = secondaryIdentifier; - } - - public TravelRuleNaturalNameIdentifier nameIdentifierType( - @jakarta.annotation.Nullable String nameIdentifierType) { - this.nameIdentifierType = nameIdentifierType; - return this; - } - - /** - * The type of the name identifier. The value must be encrypted. The value must be one of the - * following: [LEGL, DBA, TRAD, NICK, ALIA, MAID, FORM, PREV, BORN, OTHR]. - * - * @return nameIdentifierType - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME_IDENTIFIER_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getNameIdentifierType() { - return nameIdentifierType; - } - - @JsonProperty(JSON_PROPERTY_NAME_IDENTIFIER_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNameIdentifierType(@jakarta.annotation.Nullable String nameIdentifierType) { - this.nameIdentifierType = nameIdentifierType; - } - - /** Return true if this TravelRuleNaturalNameIdentifier object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - TravelRuleNaturalNameIdentifier travelRuleNaturalNameIdentifier = - (TravelRuleNaturalNameIdentifier) o; - return Objects.equals( - this.primaryIdentifier, travelRuleNaturalNameIdentifier.primaryIdentifier) - && Objects.equals( - this.secondaryIdentifier, - travelRuleNaturalNameIdentifier.secondaryIdentifier) - && Objects.equals( - this.nameIdentifierType, - travelRuleNaturalNameIdentifier.nameIdentifierType); - } - - @Override - public int hashCode() { - return Objects.hash(primaryIdentifier, secondaryIdentifier, nameIdentifierType); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class TravelRuleNaturalNameIdentifier {\n"); - sb.append(" primaryIdentifier: ") - .append(toIndentedString(primaryIdentifier)) - .append("\n"); - sb.append(" secondaryIdentifier: ") - .append(toIndentedString(secondaryIdentifier)) - .append("\n"); - sb.append(" nameIdentifierType: ") - .append(toIndentedString(nameIdentifierType)) - .append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `primaryIdentifier` to the URL query string - if (getPrimaryIdentifier() != null) { - joiner.add( - String.format( - "%sprimaryIdentifier%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getPrimaryIdentifier())))); - } - - // add `secondaryIdentifier` to the URL query string - if (getSecondaryIdentifier() != null) { - joiner.add( - String.format( - "%ssecondaryIdentifier%s=%s", - prefix, - suffix, - ApiClient.urlEncode( - ApiClient.valueToString(getSecondaryIdentifier())))); - } - - // add `nameIdentifierType` to the URL query string - if (getNameIdentifierType() != null) { - joiner.add( - String.format( - "%snameIdentifierType%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getNameIdentifierType())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/TravelRuleNaturalPerson.java b/src/main/java/com/fireblocks/sdk/model/TravelRuleNaturalPerson.java deleted file mode 100644 index 4cf10abb..00000000 --- a/src/main/java/com/fireblocks/sdk/model/TravelRuleNaturalPerson.java +++ /dev/null @@ -1,457 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** TravelRuleNaturalPerson */ -@JsonPropertyOrder({ - TravelRuleNaturalPerson.JSON_PROPERTY_NAME, - TravelRuleNaturalPerson.JSON_PROPERTY_GEOGRAPHIC_ADDRESS, - TravelRuleNaturalPerson.JSON_PROPERTY_NATIONAL_IDENTIFICATION, - TravelRuleNaturalPerson.JSON_PROPERTY_DATE_AND_PLACE_OF_BIRTH, - TravelRuleNaturalPerson.JSON_PROPERTY_CUSTOMER_IDENTIFICATION, - TravelRuleNaturalPerson.JSON_PROPERTY_COUNTRY_OF_RESIDENCE, - TravelRuleNaturalPerson.JSON_PROPERTY_CUSTOMER_NUMBER -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class TravelRuleNaturalPerson { - public static final String JSON_PROPERTY_NAME = "name"; - - @jakarta.annotation.Nullable - private List name = new ArrayList<>(); - - public static final String JSON_PROPERTY_GEOGRAPHIC_ADDRESS = "geographicAddress"; - - @jakarta.annotation.Nullable - private List geographicAddress = new ArrayList<>(); - - public static final String JSON_PROPERTY_NATIONAL_IDENTIFICATION = "nationalIdentification"; - @jakarta.annotation.Nullable private TravelRuleNationalIdentification nationalIdentification; - - public static final String JSON_PROPERTY_DATE_AND_PLACE_OF_BIRTH = "dateAndPlaceOfBirth"; - @jakarta.annotation.Nullable private TravelRuleDateAndPlaceOfBirth dateAndPlaceOfBirth; - - public static final String JSON_PROPERTY_CUSTOMER_IDENTIFICATION = "customerIdentification"; - @jakarta.annotation.Nullable private String customerIdentification; - - public static final String JSON_PROPERTY_COUNTRY_OF_RESIDENCE = "countryOfResidence"; - @jakarta.annotation.Nullable private String countryOfResidence; - - public static final String JSON_PROPERTY_CUSTOMER_NUMBER = "customerNumber"; - @jakarta.annotation.Nullable private String customerNumber; - - public TravelRuleNaturalPerson() {} - - public TravelRuleNaturalPerson name( - @jakarta.annotation.Nullable List name) { - this.name = name; - return this; - } - - public TravelRuleNaturalPerson addNameItem(TravelRuleNaturalPersonNameIdentifier nameItem) { - if (this.name == null) { - this.name = new ArrayList<>(); - } - this.name.add(nameItem); - return this; - } - - /** - * An array of structured name identifiers for the natural person, referencing the - * TravelRuleNaturalPersonNameIdentifier schema. - * - * @return name - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getName() { - return name; - } - - @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName( - @jakarta.annotation.Nullable List name) { - this.name = name; - } - - public TravelRuleNaturalPerson geographicAddress( - @jakarta.annotation.Nullable List geographicAddress) { - this.geographicAddress = geographicAddress; - return this; - } - - public TravelRuleNaturalPerson addGeographicAddressItem( - TravelRuleGeographicAddress geographicAddressItem) { - if (this.geographicAddress == null) { - this.geographicAddress = new ArrayList<>(); - } - this.geographicAddress.add(geographicAddressItem); - return this; - } - - /** - * An array of geographic addresses associated with the natural person, referencing the - * TravelRuleGeographicAddress schema. - * - * @return geographicAddress - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_GEOGRAPHIC_ADDRESS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getGeographicAddress() { - return geographicAddress; - } - - @JsonProperty(JSON_PROPERTY_GEOGRAPHIC_ADDRESS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setGeographicAddress( - @jakarta.annotation.Nullable List geographicAddress) { - this.geographicAddress = geographicAddress; - } - - public TravelRuleNaturalPerson nationalIdentification( - @jakarta.annotation.Nullable TravelRuleNationalIdentification nationalIdentification) { - this.nationalIdentification = nationalIdentification; - return this; - } - - /** - * Get nationalIdentification - * - * @return nationalIdentification - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NATIONAL_IDENTIFICATION) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public TravelRuleNationalIdentification getNationalIdentification() { - return nationalIdentification; - } - - @JsonProperty(JSON_PROPERTY_NATIONAL_IDENTIFICATION) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNationalIdentification( - @jakarta.annotation.Nullable TravelRuleNationalIdentification nationalIdentification) { - this.nationalIdentification = nationalIdentification; - } - - public TravelRuleNaturalPerson dateAndPlaceOfBirth( - @jakarta.annotation.Nullable TravelRuleDateAndPlaceOfBirth dateAndPlaceOfBirth) { - this.dateAndPlaceOfBirth = dateAndPlaceOfBirth; - return this; - } - - /** - * Get dateAndPlaceOfBirth - * - * @return dateAndPlaceOfBirth - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATE_AND_PLACE_OF_BIRTH) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public TravelRuleDateAndPlaceOfBirth getDateAndPlaceOfBirth() { - return dateAndPlaceOfBirth; - } - - @JsonProperty(JSON_PROPERTY_DATE_AND_PLACE_OF_BIRTH) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDateAndPlaceOfBirth( - @jakarta.annotation.Nullable TravelRuleDateAndPlaceOfBirth dateAndPlaceOfBirth) { - this.dateAndPlaceOfBirth = dateAndPlaceOfBirth; - } - - public TravelRuleNaturalPerson customerIdentification( - @jakarta.annotation.Nullable String customerIdentification) { - this.customerIdentification = customerIdentification; - return this; - } - - /** - * A unique identifier for the customer within the organization's context. The value must be - * encrypted. - * - * @return customerIdentification - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CUSTOMER_IDENTIFICATION) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getCustomerIdentification() { - return customerIdentification; - } - - @JsonProperty(JSON_PROPERTY_CUSTOMER_IDENTIFICATION) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCustomerIdentification( - @jakarta.annotation.Nullable String customerIdentification) { - this.customerIdentification = customerIdentification; - } - - public TravelRuleNaturalPerson countryOfResidence( - @jakarta.annotation.Nullable String countryOfResidence) { - this.countryOfResidence = countryOfResidence; - return this; - } - - /** - * The ISO-3166 Alpha-2 country code of the natural person's residence. The value must be - * encrypted. - * - * @return countryOfResidence - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COUNTRY_OF_RESIDENCE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getCountryOfResidence() { - return countryOfResidence; - } - - @JsonProperty(JSON_PROPERTY_COUNTRY_OF_RESIDENCE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCountryOfResidence(@jakarta.annotation.Nullable String countryOfResidence) { - this.countryOfResidence = countryOfResidence; - } - - public TravelRuleNaturalPerson customerNumber( - @jakarta.annotation.Nullable String customerNumber) { - this.customerNumber = customerNumber; - return this; - } - - /** - * A distinct identifier that uniquely identifies the customer within the organization. The - * value must be encrypted. - * - * @return customerNumber - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CUSTOMER_NUMBER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getCustomerNumber() { - return customerNumber; - } - - @JsonProperty(JSON_PROPERTY_CUSTOMER_NUMBER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCustomerNumber(@jakarta.annotation.Nullable String customerNumber) { - this.customerNumber = customerNumber; - } - - /** Return true if this TravelRuleNaturalPerson object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - TravelRuleNaturalPerson travelRuleNaturalPerson = (TravelRuleNaturalPerson) o; - return Objects.equals(this.name, travelRuleNaturalPerson.name) - && Objects.equals(this.geographicAddress, travelRuleNaturalPerson.geographicAddress) - && Objects.equals( - this.nationalIdentification, travelRuleNaturalPerson.nationalIdentification) - && Objects.equals( - this.dateAndPlaceOfBirth, travelRuleNaturalPerson.dateAndPlaceOfBirth) - && Objects.equals( - this.customerIdentification, travelRuleNaturalPerson.customerIdentification) - && Objects.equals( - this.countryOfResidence, travelRuleNaturalPerson.countryOfResidence) - && Objects.equals(this.customerNumber, travelRuleNaturalPerson.customerNumber); - } - - @Override - public int hashCode() { - return Objects.hash( - name, - geographicAddress, - nationalIdentification, - dateAndPlaceOfBirth, - customerIdentification, - countryOfResidence, - customerNumber); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class TravelRuleNaturalPerson {\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" geographicAddress: ") - .append(toIndentedString(geographicAddress)) - .append("\n"); - sb.append(" nationalIdentification: ") - .append(toIndentedString(nationalIdentification)) - .append("\n"); - sb.append(" dateAndPlaceOfBirth: ") - .append(toIndentedString(dateAndPlaceOfBirth)) - .append("\n"); - sb.append(" customerIdentification: ") - .append(toIndentedString(customerIdentification)) - .append("\n"); - sb.append(" countryOfResidence: ") - .append(toIndentedString(countryOfResidence)) - .append("\n"); - sb.append(" customerNumber: ").append(toIndentedString(customerNumber)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `name` to the URL query string - if (getName() != null) { - for (int i = 0; i < getName().size(); i++) { - if (getName().get(i) != null) { - joiner.add( - getName() - .get(i) - .toUrlQueryString( - String.format( - "%sname%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } - } - - // add `geographicAddress` to the URL query string - if (getGeographicAddress() != null) { - for (int i = 0; i < getGeographicAddress().size(); i++) { - if (getGeographicAddress().get(i) != null) { - joiner.add( - getGeographicAddress() - .get(i) - .toUrlQueryString( - String.format( - "%sgeographicAddress%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } - } - - // add `nationalIdentification` to the URL query string - if (getNationalIdentification() != null) { - joiner.add( - getNationalIdentification() - .toUrlQueryString(prefix + "nationalIdentification" + suffix)); - } - - // add `dateAndPlaceOfBirth` to the URL query string - if (getDateAndPlaceOfBirth() != null) { - joiner.add( - getDateAndPlaceOfBirth() - .toUrlQueryString(prefix + "dateAndPlaceOfBirth" + suffix)); - } - - // add `customerIdentification` to the URL query string - if (getCustomerIdentification() != null) { - joiner.add( - String.format( - "%scustomerIdentification%s=%s", - prefix, - suffix, - ApiClient.urlEncode( - ApiClient.valueToString(getCustomerIdentification())))); - } - - // add `countryOfResidence` to the URL query string - if (getCountryOfResidence() != null) { - joiner.add( - String.format( - "%scountryOfResidence%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getCountryOfResidence())))); - } - - // add `customerNumber` to the URL query string - if (getCustomerNumber() != null) { - joiner.add( - String.format( - "%scustomerNumber%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getCustomerNumber())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/TravelRuleNaturalPersonNameIdentifier.java b/src/main/java/com/fireblocks/sdk/model/TravelRuleNaturalPersonNameIdentifier.java deleted file mode 100644 index 200a81bf..00000000 --- a/src/main/java/com/fireblocks/sdk/model/TravelRuleNaturalPersonNameIdentifier.java +++ /dev/null @@ -1,312 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** TravelRuleNaturalPersonNameIdentifier */ -@JsonPropertyOrder({ - TravelRuleNaturalPersonNameIdentifier.JSON_PROPERTY_NAME_IDENTIFIER, - TravelRuleNaturalPersonNameIdentifier.JSON_PROPERTY_LOCAL_NAME_IDENTIFIER, - TravelRuleNaturalPersonNameIdentifier.JSON_PROPERTY_PHONETIC_NAME_IDENTIFIER -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class TravelRuleNaturalPersonNameIdentifier { - public static final String JSON_PROPERTY_NAME_IDENTIFIER = "nameIdentifier"; - - @jakarta.annotation.Nullable - private List nameIdentifier = new ArrayList<>(); - - public static final String JSON_PROPERTY_LOCAL_NAME_IDENTIFIER = "localNameIdentifier"; - - @jakarta.annotation.Nullable - private List localNameIdentifier = new ArrayList<>(); - - public static final String JSON_PROPERTY_PHONETIC_NAME_IDENTIFIER = "phoneticNameIdentifier"; - - @jakarta.annotation.Nullable - private List phoneticNameIdentifier = new ArrayList<>(); - - public TravelRuleNaturalPersonNameIdentifier() {} - - public TravelRuleNaturalPersonNameIdentifier nameIdentifier( - @jakarta.annotation.Nullable List nameIdentifier) { - this.nameIdentifier = nameIdentifier; - return this; - } - - public TravelRuleNaturalPersonNameIdentifier addNameIdentifierItem( - TravelRuleNaturalNameIdentifier nameIdentifierItem) { - if (this.nameIdentifier == null) { - this.nameIdentifier = new ArrayList<>(); - } - this.nameIdentifier.add(nameIdentifierItem); - return this; - } - - /** - * Get nameIdentifier - * - * @return nameIdentifier - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME_IDENTIFIER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getNameIdentifier() { - return nameIdentifier; - } - - @JsonProperty(JSON_PROPERTY_NAME_IDENTIFIER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNameIdentifier( - @jakarta.annotation.Nullable List nameIdentifier) { - this.nameIdentifier = nameIdentifier; - } - - public TravelRuleNaturalPersonNameIdentifier localNameIdentifier( - @jakarta.annotation.Nullable - List localNameIdentifier) { - this.localNameIdentifier = localNameIdentifier; - return this; - } - - public TravelRuleNaturalPersonNameIdentifier addLocalNameIdentifierItem( - TravelRuleNaturalNameIdentifier localNameIdentifierItem) { - if (this.localNameIdentifier == null) { - this.localNameIdentifier = new ArrayList<>(); - } - this.localNameIdentifier.add(localNameIdentifierItem); - return this; - } - - /** - * Get localNameIdentifier - * - * @return localNameIdentifier - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_LOCAL_NAME_IDENTIFIER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getLocalNameIdentifier() { - return localNameIdentifier; - } - - @JsonProperty(JSON_PROPERTY_LOCAL_NAME_IDENTIFIER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLocalNameIdentifier( - @jakarta.annotation.Nullable - List localNameIdentifier) { - this.localNameIdentifier = localNameIdentifier; - } - - public TravelRuleNaturalPersonNameIdentifier phoneticNameIdentifier( - @jakarta.annotation.Nullable - List phoneticNameIdentifier) { - this.phoneticNameIdentifier = phoneticNameIdentifier; - return this; - } - - public TravelRuleNaturalPersonNameIdentifier addPhoneticNameIdentifierItem( - TravelRuleNaturalNameIdentifier phoneticNameIdentifierItem) { - if (this.phoneticNameIdentifier == null) { - this.phoneticNameIdentifier = new ArrayList<>(); - } - this.phoneticNameIdentifier.add(phoneticNameIdentifierItem); - return this; - } - - /** - * Get phoneticNameIdentifier - * - * @return phoneticNameIdentifier - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PHONETIC_NAME_IDENTIFIER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getPhoneticNameIdentifier() { - return phoneticNameIdentifier; - } - - @JsonProperty(JSON_PROPERTY_PHONETIC_NAME_IDENTIFIER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPhoneticNameIdentifier( - @jakarta.annotation.Nullable - List phoneticNameIdentifier) { - this.phoneticNameIdentifier = phoneticNameIdentifier; - } - - /** Return true if this TravelRuleNaturalPersonNameIdentifier object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - TravelRuleNaturalPersonNameIdentifier travelRuleNaturalPersonNameIdentifier = - (TravelRuleNaturalPersonNameIdentifier) o; - return Objects.equals( - this.nameIdentifier, travelRuleNaturalPersonNameIdentifier.nameIdentifier) - && Objects.equals( - this.localNameIdentifier, - travelRuleNaturalPersonNameIdentifier.localNameIdentifier) - && Objects.equals( - this.phoneticNameIdentifier, - travelRuleNaturalPersonNameIdentifier.phoneticNameIdentifier); - } - - @Override - public int hashCode() { - return Objects.hash(nameIdentifier, localNameIdentifier, phoneticNameIdentifier); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class TravelRuleNaturalPersonNameIdentifier {\n"); - sb.append(" nameIdentifier: ").append(toIndentedString(nameIdentifier)).append("\n"); - sb.append(" localNameIdentifier: ") - .append(toIndentedString(localNameIdentifier)) - .append("\n"); - sb.append(" phoneticNameIdentifier: ") - .append(toIndentedString(phoneticNameIdentifier)) - .append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `nameIdentifier` to the URL query string - if (getNameIdentifier() != null) { - for (int i = 0; i < getNameIdentifier().size(); i++) { - if (getNameIdentifier().get(i) != null) { - joiner.add( - getNameIdentifier() - .get(i) - .toUrlQueryString( - String.format( - "%snameIdentifier%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } - } - - // add `localNameIdentifier` to the URL query string - if (getLocalNameIdentifier() != null) { - for (int i = 0; i < getLocalNameIdentifier().size(); i++) { - if (getLocalNameIdentifier().get(i) != null) { - joiner.add( - getLocalNameIdentifier() - .get(i) - .toUrlQueryString( - String.format( - "%slocalNameIdentifier%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } - } - - // add `phoneticNameIdentifier` to the URL query string - if (getPhoneticNameIdentifier() != null) { - for (int i = 0; i < getPhoneticNameIdentifier().size(); i++) { - if (getPhoneticNameIdentifier().get(i) != null) { - joiner.add( - getPhoneticNameIdentifier() - .get(i) - .toUrlQueryString( - String.format( - "%sphoneticNameIdentifier%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/TravelRuleOwnershipProof.java b/src/main/java/com/fireblocks/sdk/model/TravelRuleOwnershipProof.java index b755b2b6..a27f7cb6 100644 --- a/src/main/java/com/fireblocks/sdk/model/TravelRuleOwnershipProof.java +++ b/src/main/java/com/fireblocks/sdk/model/TravelRuleOwnershipProof.java @@ -20,15 +20,10 @@ import java.util.Objects; import java.util.StringJoiner; -/** Ownership proof related to the originator of the transaction. */ +/** TravelRuleOwnershipProof */ @JsonPropertyOrder({ TravelRuleOwnershipProof.JSON_PROPERTY_TYPE, - TravelRuleOwnershipProof.JSON_PROPERTY_PROOF, - TravelRuleOwnershipProof.JSON_PROPERTY_ATTESTATION, - TravelRuleOwnershipProof.JSON_PROPERTY_ADDRESS, - TravelRuleOwnershipProof.JSON_PROPERTY_WALLET_PROVIDER, - TravelRuleOwnershipProof.JSON_PROPERTY_URL, - TravelRuleOwnershipProof.JSON_PROPERTY_CONFIRMED + TravelRuleOwnershipProof.JSON_PROPERTY_PROOF }) @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", @@ -40,21 +35,6 @@ public class TravelRuleOwnershipProof { public static final String JSON_PROPERTY_PROOF = "proof"; @jakarta.annotation.Nullable private String proof; - public static final String JSON_PROPERTY_ATTESTATION = "attestation"; - @jakarta.annotation.Nullable private String attestation; - - public static final String JSON_PROPERTY_ADDRESS = "address"; - @jakarta.annotation.Nullable private String address; - - public static final String JSON_PROPERTY_WALLET_PROVIDER = "wallet_provider"; - @jakarta.annotation.Nullable private String walletProvider; - - public static final String JSON_PROPERTY_URL = "url"; - @jakarta.annotation.Nullable private String url; - - public static final String JSON_PROPERTY_CONFIRMED = "confirmed"; - @jakarta.annotation.Nullable private Boolean confirmed; - public TravelRuleOwnershipProof() {} public TravelRuleOwnershipProof type(@jakarta.annotation.Nullable String type) { @@ -63,11 +43,7 @@ public TravelRuleOwnershipProof type(@jakarta.annotation.Nullable String type) { } /** - * The type of ownership proof. Example values: - `eip-191`: Ethereum signature proof - * - `eip-712`: Ethereum typed data signature proof - `bip-137`: Bitcoin - * signature proof - `microtransfer`: Microtransaction (Satoshi test) - - * `screenshot`: Uploaded screenshot of the wallet - `self-declaration`: - * Checkbox attestation of ownership + * Type of ownership proof * * @return type */ @@ -90,9 +66,7 @@ public TravelRuleOwnershipProof proof(@jakarta.annotation.Nullable String proof) } /** - * The cryptographic signature, transaction hash, or other proof depending on the type. - * Examples: - For `eip-191`: `0x3dd4a17a...ce4a2bcd1b` - For - * `microtransfer`: The transaction hash `H3V8GXBy39Dz...tr3TSTkY=` + * Identification number * * @return proof */ @@ -109,129 +83,6 @@ public void setProof(@jakarta.annotation.Nullable String proof) { this.proof = proof; } - public TravelRuleOwnershipProof attestation(@jakarta.annotation.Nullable String attestation) { - this.attestation = attestation; - return this; - } - - /** - * A human-readable statement of wallet ownership. Required for signature proofs and - * self-declarations. Examples: - `I certify that ETH account 0x896B...0b9b belongs to - * me.` - `I hereby declare that the blockchain address - * 0xa437bEed902AF9338B7DEB23848e195d85019510 is under my control.` - * - * @return attestation - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ATTESTATION) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getAttestation() { - return attestation; - } - - @JsonProperty(JSON_PROPERTY_ATTESTATION) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAttestation(@jakarta.annotation.Nullable String attestation) { - this.attestation = attestation; - } - - public TravelRuleOwnershipProof address(@jakarta.annotation.Nullable String address) { - this.address = address; - return this; - } - - /** - * The wallet address being verified. Examples: - For Ethereum: `0x896B...0b9b` - For - * Bitcoin: `1442...dxhsQ` - * - * @return address - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ADDRESS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getAddress() { - return address; - } - - @JsonProperty(JSON_PROPERTY_ADDRESS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAddress(@jakarta.annotation.Nullable String address) { - this.address = address; - } - - public TravelRuleOwnershipProof walletProvider( - @jakarta.annotation.Nullable String walletProvider) { - this.walletProvider = walletProvider; - return this; - } - - /** - * The wallet provider or method used for verification. Examples: - For Metamask: - * `Metamask` - For manual signature: `manual` - * - * @return walletProvider - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_WALLET_PROVIDER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getWalletProvider() { - return walletProvider; - } - - @JsonProperty(JSON_PROPERTY_WALLET_PROVIDER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setWalletProvider(@jakarta.annotation.Nullable String walletProvider) { - this.walletProvider = walletProvider; - } - - public TravelRuleOwnershipProof url(@jakarta.annotation.Nullable String url) { - this.url = url; - return this; - } - - /** - * The URL for the uploaded screenshot (for `screenshot` proof types only). Example: - * `https://example.com/uploaded_image.png` - * - * @return url - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_URL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getUrl() { - return url; - } - - @JsonProperty(JSON_PROPERTY_URL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUrl(@jakarta.annotation.Nullable String url) { - this.url = url; - } - - public TravelRuleOwnershipProof confirmed(@jakarta.annotation.Nullable Boolean confirmed) { - this.confirmed = confirmed; - return this; - } - - /** - * Whether the user confirmed ownership of the wallet (for `self-declaration` proofs). - * Example: `true` - * - * @return confirmed - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CONFIRMED) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getConfirmed() { - return confirmed; - } - - @JsonProperty(JSON_PROPERTY_CONFIRMED) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setConfirmed(@jakarta.annotation.Nullable Boolean confirmed) { - this.confirmed = confirmed; - } - /** Return true if this TravelRuleOwnershipProof object is equal to o. */ @Override public boolean equals(Object o) { @@ -243,17 +94,12 @@ public boolean equals(Object o) { } TravelRuleOwnershipProof travelRuleOwnershipProof = (TravelRuleOwnershipProof) o; return Objects.equals(this.type, travelRuleOwnershipProof.type) - && Objects.equals(this.proof, travelRuleOwnershipProof.proof) - && Objects.equals(this.attestation, travelRuleOwnershipProof.attestation) - && Objects.equals(this.address, travelRuleOwnershipProof.address) - && Objects.equals(this.walletProvider, travelRuleOwnershipProof.walletProvider) - && Objects.equals(this.url, travelRuleOwnershipProof.url) - && Objects.equals(this.confirmed, travelRuleOwnershipProof.confirmed); + && Objects.equals(this.proof, travelRuleOwnershipProof.proof); } @Override public int hashCode() { - return Objects.hash(type, proof, attestation, address, walletProvider, url, confirmed); + return Objects.hash(type, proof); } @Override @@ -262,11 +108,6 @@ public String toString() { sb.append("class TravelRuleOwnershipProof {\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" proof: ").append(toIndentedString(proof)).append("\n"); - sb.append(" attestation: ").append(toIndentedString(attestation)).append("\n"); - sb.append(" address: ").append(toIndentedString(address)).append("\n"); - sb.append(" walletProvider: ").append(toIndentedString(walletProvider)).append("\n"); - sb.append(" url: ").append(toIndentedString(url)).append("\n"); - sb.append(" confirmed: ").append(toIndentedString(confirmed)).append("\n"); sb.append("}"); return sb.toString(); } @@ -334,56 +175,6 @@ public String toUrlQueryString(String prefix) { ApiClient.urlEncode(ApiClient.valueToString(getProof())))); } - // add `attestation` to the URL query string - if (getAttestation() != null) { - joiner.add( - String.format( - "%sattestation%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAttestation())))); - } - - // add `address` to the URL query string - if (getAddress() != null) { - joiner.add( - String.format( - "%saddress%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAddress())))); - } - - // add `wallet_provider` to the URL query string - if (getWalletProvider() != null) { - joiner.add( - String.format( - "%swallet_provider%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getWalletProvider())))); - } - - // add `url` to the URL query string - if (getUrl() != null) { - joiner.add( - String.format( - "%surl%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getUrl())))); - } - - // add `confirmed` to the URL query string - if (getConfirmed() != null) { - joiner.add( - String.format( - "%sconfirmed%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getConfirmed())))); - } - return joiner.toString(); } } diff --git a/src/main/java/com/fireblocks/sdk/model/TravelRulePerson.java b/src/main/java/com/fireblocks/sdk/model/TravelRulePerson.java deleted file mode 100644 index fde5208d..00000000 --- a/src/main/java/com/fireblocks/sdk/model/TravelRulePerson.java +++ /dev/null @@ -1,172 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.Objects; -import java.util.StringJoiner; - -/** TravelRulePerson */ -@JsonPropertyOrder({ - TravelRulePerson.JSON_PROPERTY_NATURAL_PERSON, - TravelRulePerson.JSON_PROPERTY_LEGAL_PERSON -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class TravelRulePerson { - public static final String JSON_PROPERTY_NATURAL_PERSON = "naturalPerson"; - @jakarta.annotation.Nullable private TravelRuleNaturalPerson naturalPerson; - - public static final String JSON_PROPERTY_LEGAL_PERSON = "legalPerson"; - @jakarta.annotation.Nullable private TravelRuleLegalPerson legalPerson; - - public TravelRulePerson() {} - - public TravelRulePerson naturalPerson( - @jakarta.annotation.Nullable TravelRuleNaturalPerson naturalPerson) { - this.naturalPerson = naturalPerson; - return this; - } - - /** - * Get naturalPerson - * - * @return naturalPerson - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NATURAL_PERSON) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public TravelRuleNaturalPerson getNaturalPerson() { - return naturalPerson; - } - - @JsonProperty(JSON_PROPERTY_NATURAL_PERSON) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNaturalPerson( - @jakarta.annotation.Nullable TravelRuleNaturalPerson naturalPerson) { - this.naturalPerson = naturalPerson; - } - - public TravelRulePerson legalPerson( - @jakarta.annotation.Nullable TravelRuleLegalPerson legalPerson) { - this.legalPerson = legalPerson; - return this; - } - - /** - * Get legalPerson - * - * @return legalPerson - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_LEGAL_PERSON) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public TravelRuleLegalPerson getLegalPerson() { - return legalPerson; - } - - @JsonProperty(JSON_PROPERTY_LEGAL_PERSON) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLegalPerson(@jakarta.annotation.Nullable TravelRuleLegalPerson legalPerson) { - this.legalPerson = legalPerson; - } - - /** Return true if this TravelRulePerson object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - TravelRulePerson travelRulePerson = (TravelRulePerson) o; - return Objects.equals(this.naturalPerson, travelRulePerson.naturalPerson) - && Objects.equals(this.legalPerson, travelRulePerson.legalPerson); - } - - @Override - public int hashCode() { - return Objects.hash(naturalPerson, legalPerson); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class TravelRulePerson {\n"); - sb.append(" naturalPerson: ").append(toIndentedString(naturalPerson)).append("\n"); - sb.append(" legalPerson: ").append(toIndentedString(legalPerson)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `naturalPerson` to the URL query string - if (getNaturalPerson() != null) { - joiner.add(getNaturalPerson().toUrlQueryString(prefix + "naturalPerson" + suffix)); - } - - // add `legalPerson` to the URL query string - if (getLegalPerson() != null) { - joiner.add(getLegalPerson().toUrlQueryString(prefix + "legalPerson" + suffix)); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/TravelRulePiiIVMS.java b/src/main/java/com/fireblocks/sdk/model/TravelRulePiiIVMS.java index 9417c51a..d575cb3c 100644 --- a/src/main/java/com/fireblocks/sdk/model/TravelRulePiiIVMS.java +++ b/src/main/java/com/fireblocks/sdk/model/TravelRulePiiIVMS.java @@ -17,132 +17,263 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fireblocks.sdk.ApiClient; -import java.util.ArrayList; -import java.util.List; import java.util.Objects; import java.util.StringJoiner; -/** Personal identifiable information related to the transaction */ +/** TravelRulePiiIVMS */ @JsonPropertyOrder({ - TravelRulePiiIVMS.JSON_PROPERTY_ORIGINATOR_PERSONS, - TravelRulePiiIVMS.JSON_PROPERTY_BENEFICIARY_PERSONS, - TravelRulePiiIVMS.JSON_PROPERTY_ACCOUNT_NUMBER + TravelRulePiiIVMS.JSON_PROPERTY_FULL_NAME, + TravelRulePiiIVMS.JSON_PROPERTY_DATE_OF_BIRTH, + TravelRulePiiIVMS.JSON_PROPERTY_PLACE_OF_BIRTH, + TravelRulePiiIVMS.JSON_PROPERTY_ADDRESS, + TravelRulePiiIVMS.JSON_PROPERTY_IDENTIFICATION_NUMBER, + TravelRulePiiIVMS.JSON_PROPERTY_NATIONALITY, + TravelRulePiiIVMS.JSON_PROPERTY_COUNTRY_OF_RESIDENCE, + TravelRulePiiIVMS.JSON_PROPERTY_TAX_IDENTIFICATION_NUMBER, + TravelRulePiiIVMS.JSON_PROPERTY_CUSTOMER_NUMBER }) @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") public class TravelRulePiiIVMS { - public static final String JSON_PROPERTY_ORIGINATOR_PERSONS = "originatorPersons"; + public static final String JSON_PROPERTY_FULL_NAME = "fullName"; + @jakarta.annotation.Nullable private String fullName; + public static final String JSON_PROPERTY_DATE_OF_BIRTH = "dateOfBirth"; + @jakarta.annotation.Nullable private String dateOfBirth; + + public static final String JSON_PROPERTY_PLACE_OF_BIRTH = "placeOfBirth"; + @jakarta.annotation.Nullable private String placeOfBirth; + + public static final String JSON_PROPERTY_ADDRESS = "address"; + @jakarta.annotation.Nullable private String address; + + public static final String JSON_PROPERTY_IDENTIFICATION_NUMBER = "identificationNumber"; + @jakarta.annotation.Nullable private String identificationNumber; + + public static final String JSON_PROPERTY_NATIONALITY = "nationality"; + @jakarta.annotation.Nullable private String nationality; + + public static final String JSON_PROPERTY_COUNTRY_OF_RESIDENCE = "countryOfResidence"; + @jakarta.annotation.Nullable private String countryOfResidence; + + public static final String JSON_PROPERTY_TAX_IDENTIFICATION_NUMBER = "taxIdentificationNumber"; + @jakarta.annotation.Nullable private String taxIdentificationNumber; + + public static final String JSON_PROPERTY_CUSTOMER_NUMBER = "customerNumber"; + @jakarta.annotation.Nullable private String customerNumber; + + public TravelRulePiiIVMS() {} + + public TravelRulePiiIVMS fullName(@jakarta.annotation.Nullable String fullName) { + this.fullName = fullName; + return this; + } + + /** + * Get fullName + * + * @return fullName + */ @jakarta.annotation.Nullable - private List originatorPersons = new ArrayList<>(); + @JsonProperty(JSON_PROPERTY_FULL_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getFullName() { + return fullName; + } - public static final String JSON_PROPERTY_BENEFICIARY_PERSONS = "beneficiaryPersons"; + @JsonProperty(JSON_PROPERTY_FULL_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setFullName(@jakarta.annotation.Nullable String fullName) { + this.fullName = fullName; + } + + public TravelRulePiiIVMS dateOfBirth(@jakarta.annotation.Nullable String dateOfBirth) { + this.dateOfBirth = dateOfBirth; + return this; + } + /** + * Get dateOfBirth + * + * @return dateOfBirth + */ @jakarta.annotation.Nullable - private List beneficiaryPersons = new ArrayList<>(); + @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getDateOfBirth() { + return dateOfBirth; + } - public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; - @jakarta.annotation.Nullable private List accountNumber = new ArrayList<>(); + @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDateOfBirth(@jakarta.annotation.Nullable String dateOfBirth) { + this.dateOfBirth = dateOfBirth; + } - public TravelRulePiiIVMS() {} + public TravelRulePiiIVMS placeOfBirth(@jakarta.annotation.Nullable String placeOfBirth) { + this.placeOfBirth = placeOfBirth; + return this; + } + + /** + * Get placeOfBirth + * + * @return placeOfBirth + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_PLACE_OF_BIRTH) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPlaceOfBirth() { + return placeOfBirth; + } - public TravelRulePiiIVMS originatorPersons( - @jakarta.annotation.Nullable List originatorPersons) { - this.originatorPersons = originatorPersons; + @JsonProperty(JSON_PROPERTY_PLACE_OF_BIRTH) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPlaceOfBirth(@jakarta.annotation.Nullable String placeOfBirth) { + this.placeOfBirth = placeOfBirth; + } + + public TravelRulePiiIVMS address(@jakarta.annotation.Nullable String address) { + this.address = address; return this; } - public TravelRulePiiIVMS addOriginatorPersonsItem(TravelRulePerson originatorPersonsItem) { - if (this.originatorPersons == null) { - this.originatorPersons = new ArrayList<>(); - } - this.originatorPersons.add(originatorPersonsItem); + /** + * Get address + * + * @return address + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ADDRESS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getAddress() { + return address; + } + + @JsonProperty(JSON_PROPERTY_ADDRESS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setAddress(@jakarta.annotation.Nullable String address) { + this.address = address; + } + + public TravelRulePiiIVMS identificationNumber( + @jakarta.annotation.Nullable String identificationNumber) { + this.identificationNumber = identificationNumber; return this; } /** - * Information about the originator of the transaction + * Get identificationNumber * - * @return originatorPersons + * @return identificationNumber */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ORIGINATOR_PERSONS) + @JsonProperty(JSON_PROPERTY_IDENTIFICATION_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getOriginatorPersons() { - return originatorPersons; + public String getIdentificationNumber() { + return identificationNumber; } - @JsonProperty(JSON_PROPERTY_ORIGINATOR_PERSONS) + @JsonProperty(JSON_PROPERTY_IDENTIFICATION_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOriginatorPersons( - @jakarta.annotation.Nullable List originatorPersons) { - this.originatorPersons = originatorPersons; + public void setIdentificationNumber(@jakarta.annotation.Nullable String identificationNumber) { + this.identificationNumber = identificationNumber; } - public TravelRulePiiIVMS beneficiaryPersons( - @jakarta.annotation.Nullable List beneficiaryPersons) { - this.beneficiaryPersons = beneficiaryPersons; + public TravelRulePiiIVMS nationality(@jakarta.annotation.Nullable String nationality) { + this.nationality = nationality; return this; } - public TravelRulePiiIVMS addBeneficiaryPersonsItem(TravelRulePerson beneficiaryPersonsItem) { - if (this.beneficiaryPersons == null) { - this.beneficiaryPersons = new ArrayList<>(); - } - this.beneficiaryPersons.add(beneficiaryPersonsItem); + /** + * Get nationality + * + * @return nationality + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_NATIONALITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getNationality() { + return nationality; + } + + @JsonProperty(JSON_PROPERTY_NATIONALITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setNationality(@jakarta.annotation.Nullable String nationality) { + this.nationality = nationality; + } + + public TravelRulePiiIVMS countryOfResidence( + @jakarta.annotation.Nullable String countryOfResidence) { + this.countryOfResidence = countryOfResidence; return this; } /** - * Information about the beneficiary of the transaction + * Get countryOfResidence * - * @return beneficiaryPersons + * @return countryOfResidence */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BENEFICIARY_PERSONS) + @JsonProperty(JSON_PROPERTY_COUNTRY_OF_RESIDENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getBeneficiaryPersons() { - return beneficiaryPersons; + public String getCountryOfResidence() { + return countryOfResidence; } - @JsonProperty(JSON_PROPERTY_BENEFICIARY_PERSONS) + @JsonProperty(JSON_PROPERTY_COUNTRY_OF_RESIDENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBeneficiaryPersons( - @jakarta.annotation.Nullable List beneficiaryPersons) { - this.beneficiaryPersons = beneficiaryPersons; + public void setCountryOfResidence(@jakarta.annotation.Nullable String countryOfResidence) { + this.countryOfResidence = countryOfResidence; } - public TravelRulePiiIVMS accountNumber( - @jakarta.annotation.Nullable List accountNumber) { - this.accountNumber = accountNumber; + public TravelRulePiiIVMS taxIdentificationNumber( + @jakarta.annotation.Nullable String taxIdentificationNumber) { + this.taxIdentificationNumber = taxIdentificationNumber; return this; } - public TravelRulePiiIVMS addAccountNumberItem(String accountNumberItem) { - if (this.accountNumber == null) { - this.accountNumber = new ArrayList<>(); - } - this.accountNumber.add(accountNumberItem); + /** + * Get taxIdentificationNumber + * + * @return taxIdentificationNumber + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_TAX_IDENTIFICATION_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getTaxIdentificationNumber() { + return taxIdentificationNumber; + } + + @JsonProperty(JSON_PROPERTY_TAX_IDENTIFICATION_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setTaxIdentificationNumber( + @jakarta.annotation.Nullable String taxIdentificationNumber) { + this.taxIdentificationNumber = taxIdentificationNumber; + } + + public TravelRulePiiIVMS customerNumber(@jakarta.annotation.Nullable String customerNumber) { + this.customerNumber = customerNumber; return this; } /** - * Beneficiary account number. The value must be encrypted. + * Get customerNumber * - * @return accountNumber + * @return customerNumber */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) + @JsonProperty(JSON_PROPERTY_CUSTOMER_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getAccountNumber() { - return accountNumber; + public String getCustomerNumber() { + return customerNumber; } - @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) + @JsonProperty(JSON_PROPERTY_CUSTOMER_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAccountNumber(@jakarta.annotation.Nullable List accountNumber) { - this.accountNumber = accountNumber; + public void setCustomerNumber(@jakarta.annotation.Nullable String customerNumber) { + this.customerNumber = customerNumber; } /** Return true if this TravelRulePiiIVMS object is equal to o. */ @@ -155,27 +286,51 @@ public boolean equals(Object o) { return false; } TravelRulePiiIVMS travelRulePiiIVMS = (TravelRulePiiIVMS) o; - return Objects.equals(this.originatorPersons, travelRulePiiIVMS.originatorPersons) - && Objects.equals(this.beneficiaryPersons, travelRulePiiIVMS.beneficiaryPersons) - && Objects.equals(this.accountNumber, travelRulePiiIVMS.accountNumber); + return Objects.equals(this.fullName, travelRulePiiIVMS.fullName) + && Objects.equals(this.dateOfBirth, travelRulePiiIVMS.dateOfBirth) + && Objects.equals(this.placeOfBirth, travelRulePiiIVMS.placeOfBirth) + && Objects.equals(this.address, travelRulePiiIVMS.address) + && Objects.equals(this.identificationNumber, travelRulePiiIVMS.identificationNumber) + && Objects.equals(this.nationality, travelRulePiiIVMS.nationality) + && Objects.equals(this.countryOfResidence, travelRulePiiIVMS.countryOfResidence) + && Objects.equals( + this.taxIdentificationNumber, travelRulePiiIVMS.taxIdentificationNumber) + && Objects.equals(this.customerNumber, travelRulePiiIVMS.customerNumber); } @Override public int hashCode() { - return Objects.hash(originatorPersons, beneficiaryPersons, accountNumber); + return Objects.hash( + fullName, + dateOfBirth, + placeOfBirth, + address, + identificationNumber, + nationality, + countryOfResidence, + taxIdentificationNumber, + customerNumber); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TravelRulePiiIVMS {\n"); - sb.append(" originatorPersons: ") - .append(toIndentedString(originatorPersons)) + sb.append(" fullName: ").append(toIndentedString(fullName)).append("\n"); + sb.append(" dateOfBirth: ").append(toIndentedString(dateOfBirth)).append("\n"); + sb.append(" placeOfBirth: ").append(toIndentedString(placeOfBirth)).append("\n"); + sb.append(" address: ").append(toIndentedString(address)).append("\n"); + sb.append(" identificationNumber: ") + .append(toIndentedString(identificationNumber)) .append("\n"); - sb.append(" beneficiaryPersons: ") - .append(toIndentedString(beneficiaryPersons)) + sb.append(" nationality: ").append(toIndentedString(nationality)).append("\n"); + sb.append(" countryOfResidence: ") + .append(toIndentedString(countryOfResidence)) .append("\n"); - sb.append(" accountNumber: ").append(toIndentedString(accountNumber)).append("\n"); + sb.append(" taxIdentificationNumber: ") + .append(toIndentedString(taxIdentificationNumber)) + .append("\n"); + sb.append(" customerNumber: ").append(toIndentedString(customerNumber)).append("\n"); sb.append("}"); return sb.toString(); } @@ -223,67 +378,96 @@ public String toUrlQueryString(String prefix) { StringJoiner joiner = new StringJoiner("&"); - // add `originatorPersons` to the URL query string - if (getOriginatorPersons() != null) { - for (int i = 0; i < getOriginatorPersons().size(); i++) { - if (getOriginatorPersons().get(i) != null) { - joiner.add( - getOriginatorPersons() - .get(i) - .toUrlQueryString( - String.format( - "%soriginatorPersons%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } + // add `fullName` to the URL query string + if (getFullName() != null) { + joiner.add( + String.format( + "%sfullName%s=%s", + prefix, + suffix, + ApiClient.urlEncode(ApiClient.valueToString(getFullName())))); + } + + // add `dateOfBirth` to the URL query string + if (getDateOfBirth() != null) { + joiner.add( + String.format( + "%sdateOfBirth%s=%s", + prefix, + suffix, + ApiClient.urlEncode(ApiClient.valueToString(getDateOfBirth())))); + } + + // add `placeOfBirth` to the URL query string + if (getPlaceOfBirth() != null) { + joiner.add( + String.format( + "%splaceOfBirth%s=%s", + prefix, + suffix, + ApiClient.urlEncode(ApiClient.valueToString(getPlaceOfBirth())))); + } + + // add `address` to the URL query string + if (getAddress() != null) { + joiner.add( + String.format( + "%saddress%s=%s", + prefix, + suffix, + ApiClient.urlEncode(ApiClient.valueToString(getAddress())))); + } + + // add `identificationNumber` to the URL query string + if (getIdentificationNumber() != null) { + joiner.add( + String.format( + "%sidentificationNumber%s=%s", + prefix, + suffix, + ApiClient.urlEncode( + ApiClient.valueToString(getIdentificationNumber())))); + } + + // add `nationality` to the URL query string + if (getNationality() != null) { + joiner.add( + String.format( + "%snationality%s=%s", + prefix, + suffix, + ApiClient.urlEncode(ApiClient.valueToString(getNationality())))); + } + + // add `countryOfResidence` to the URL query string + if (getCountryOfResidence() != null) { + joiner.add( + String.format( + "%scountryOfResidence%s=%s", + prefix, + suffix, + ApiClient.urlEncode(ApiClient.valueToString(getCountryOfResidence())))); } - // add `beneficiaryPersons` to the URL query string - if (getBeneficiaryPersons() != null) { - for (int i = 0; i < getBeneficiaryPersons().size(); i++) { - if (getBeneficiaryPersons().get(i) != null) { - joiner.add( - getBeneficiaryPersons() - .get(i) - .toUrlQueryString( - String.format( - "%sbeneficiaryPersons%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } + // add `taxIdentificationNumber` to the URL query string + if (getTaxIdentificationNumber() != null) { + joiner.add( + String.format( + "%staxIdentificationNumber%s=%s", + prefix, + suffix, + ApiClient.urlEncode( + ApiClient.valueToString(getTaxIdentificationNumber())))); } - // add `accountNumber` to the URL query string - if (getAccountNumber() != null) { - for (int i = 0; i < getAccountNumber().size(); i++) { - joiner.add( - String.format( - "%saccountNumber%s%s=%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode( - ApiClient.valueToString(getAccountNumber().get(i))))); - } + // add `customerNumber` to the URL query string + if (getCustomerNumber() != null) { + joiner.add( + String.format( + "%scustomerNumber%s=%s", + prefix, + suffix, + ApiClient.urlEncode(ApiClient.valueToString(getCustomerNumber())))); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/TravelRulePolicyRuleResponse.java b/src/main/java/com/fireblocks/sdk/model/TravelRulePolicyRuleResponse.java index 4c335701..d867f709 100644 --- a/src/main/java/com/fireblocks/sdk/model/TravelRulePolicyRuleResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/TravelRulePolicyRuleResponse.java @@ -393,7 +393,7 @@ public TravelRulePolicyRuleResponse networkProtocol( } /** - * The network protocol of the token + * Get networkProtocol * * @return networkProtocol */ diff --git a/src/main/java/com/fireblocks/sdk/model/TravelRuleTransactionBlockchainInfo.java b/src/main/java/com/fireblocks/sdk/model/TravelRuleTransactionBlockchainInfo.java index d06ccd0b..b245f387 100644 --- a/src/main/java/com/fireblocks/sdk/model/TravelRuleTransactionBlockchainInfo.java +++ b/src/main/java/com/fireblocks/sdk/model/TravelRuleTransactionBlockchainInfo.java @@ -20,7 +20,7 @@ import java.util.Objects; import java.util.StringJoiner; -/** Information about the blockchain transaction. */ +/** TravelRuleTransactionBlockchainInfo */ @JsonPropertyOrder({ TravelRuleTransactionBlockchainInfo.JSON_PROPERTY_TX_HASH, TravelRuleTransactionBlockchainInfo.JSON_PROPERTY_ORIGIN, @@ -47,7 +47,7 @@ public TravelRuleTransactionBlockchainInfo txHash(@jakarta.annotation.Nullable S } /** - * The hash of the transaction + * Get txHash * * @return txHash */ @@ -70,7 +70,7 @@ public TravelRuleTransactionBlockchainInfo origin(@jakarta.annotation.Nullable S } /** - * The origin address of the transaction + * Get origin * * @return origin */ @@ -94,7 +94,7 @@ public TravelRuleTransactionBlockchainInfo destination( } /** - * The destination address of the transaction + * Get destination * * @return destination */ diff --git a/src/main/java/com/fireblocks/sdk/model/TravelRuleVASP.java b/src/main/java/com/fireblocks/sdk/model/TravelRuleVASP.java index 246a0657..3a55c66d 100644 --- a/src/main/java/com/fireblocks/sdk/model/TravelRuleVASP.java +++ b/src/main/java/com/fireblocks/sdk/model/TravelRuleVASP.java @@ -87,7 +87,7 @@ public class TravelRuleVASP { @jakarta.annotation.Nonnull private String addressLine1; public static final String JSON_PROPERTY_ADDRESS_LINE2 = "addressLine2"; - @jakarta.annotation.Nullable private String addressLine2; + @jakarta.annotation.Nonnull private String addressLine2; public static final String JSON_PROPERTY_CITY = "city"; @jakarta.annotation.Nonnull private String city; @@ -102,7 +102,7 @@ public class TravelRuleVASP { @jakarta.annotation.Nonnull private String website; public static final String JSON_PROPERTY_LOGO = "logo"; - @jakarta.annotation.Nullable private String logo; + @jakarta.annotation.Nonnull private String logo; public static final String JSON_PROPERTY_LEGAL_STRUCTURE = "legalStructure"; @jakarta.annotation.Nonnull private String legalStructure; @@ -120,89 +120,89 @@ public class TravelRuleVASP { @jakarta.annotation.Nonnull private String isRegulated; public static final String JSON_PROPERTY_OTHER_NAMES = "otherNames"; - @jakarta.annotation.Nullable private String otherNames; + @jakarta.annotation.Nonnull private String otherNames; public static final String JSON_PROPERTY_IDENTIFICATION_TYPE = "identificationType"; - @jakarta.annotation.Nullable private String identificationType; + @jakarta.annotation.Nonnull private String identificationType; public static final String JSON_PROPERTY_IDENTIFICATION_COUNTRY = "identificationCountry"; - @jakarta.annotation.Nullable private String identificationCountry; + @jakarta.annotation.Nonnull private String identificationCountry; public static final String JSON_PROPERTY_BUSINESS_NUMBER = "businessNumber"; - @jakarta.annotation.Nullable private String businessNumber; + @jakarta.annotation.Nonnull private String businessNumber; public static final String JSON_PROPERTY_REGULATORY_AUTHORITIES = "regulatoryAuthorities"; - @jakarta.annotation.Nullable private String regulatoryAuthorities; + @jakarta.annotation.Nonnull private String regulatoryAuthorities; public static final String JSON_PROPERTY_JURISDICTIONS = "jurisdictions"; @jakarta.annotation.Nonnull private String jurisdictions; public static final String JSON_PROPERTY_STREET = "street"; - @jakarta.annotation.Nullable private String street; + @jakarta.annotation.Nonnull private String street; public static final String JSON_PROPERTY_NUMBER = "number"; - @jakarta.annotation.Nullable private String number; + @jakarta.annotation.Nonnull private String number; public static final String JSON_PROPERTY_UNIT = "unit"; - @jakarta.annotation.Nullable private String unit; + @jakarta.annotation.Nonnull private String unit; public static final String JSON_PROPERTY_POST_CODE = "postCode"; - @jakarta.annotation.Nullable private String postCode; + @jakarta.annotation.Nonnull private String postCode; public static final String JSON_PROPERTY_STATE = "state"; - @jakarta.annotation.Nullable private String state; + @jakarta.annotation.Nonnull private String state; public static final String JSON_PROPERTY_CERTIFICATES = "certificates"; - @jakarta.annotation.Nullable private String certificates; + @jakarta.annotation.Nonnull private String certificates; public static final String JSON_PROPERTY_DESCRIPTION = "description"; - @jakarta.annotation.Nullable private String description; + @jakarta.annotation.Nonnull private String description; public static final String JSON_PROPERTY_TRAVEL_RULE_O_P_E_N_V_A_S_P = "travelRule_OPENVASP"; - @jakarta.annotation.Nullable private String travelRuleOPENVASP; + @jakarta.annotation.Nonnull private String travelRuleOPENVASP; public static final String JSON_PROPERTY_TRAVEL_RULE_S_Y_G_N_A = "travelRule_SYGNA"; - @jakarta.annotation.Nullable private String travelRuleSYGNA; + @jakarta.annotation.Nonnull private String travelRuleSYGNA; public static final String JSON_PROPERTY_TRAVEL_RULE_T_R_I_S_A = "travelRule_TRISA"; - @jakarta.annotation.Nullable private String travelRuleTRISA; + @jakarta.annotation.Nonnull private String travelRuleTRISA; public static final String JSON_PROPERTY_TRAVEL_RULE_T_R_L_I_G_H_T = "travelRule_TRLIGHT"; @jakarta.annotation.Nonnull private String travelRuleTRLIGHT; public static final String JSON_PROPERTY_TRAVEL_RULE_E_M_A_I_L = "travelRule_EMAIL"; - @jakarta.annotation.Nullable private String travelRuleEMAIL; + @jakarta.annotation.Nonnull private String travelRuleEMAIL; public static final String JSON_PROPERTY_TRAVEL_RULE_T_R_P = "travelRule_TRP"; - @jakarta.annotation.Nullable private String travelRuleTRP; + @jakarta.annotation.Nonnull private String travelRuleTRP; public static final String JSON_PROPERTY_TRAVEL_RULE_S_H_Y_F_T = "travelRule_SHYFT"; - @jakarta.annotation.Nullable private String travelRuleSHYFT; + @jakarta.annotation.Nonnull private String travelRuleSHYFT; public static final String JSON_PROPERTY_TRAVEL_RULE_U_S_T_R_A_V_E_L_R_U_L_E_W_G = "travelRule_USTRAVELRULEWG"; - @jakarta.annotation.Nullable private String travelRuleUSTRAVELRULEWG; + @jakarta.annotation.Nonnull private String travelRuleUSTRAVELRULEWG; public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; @jakarta.annotation.Nonnull private String createdAt; public static final String JSON_PROPERTY_CREATED_BY = "createdBy"; - @jakarta.annotation.Nullable private String createdBy; + @jakarta.annotation.Nonnull private String createdBy; public static final String JSON_PROPERTY_UPDATED_AT = "updatedAt"; - @jakarta.annotation.Nullable private String updatedAt; + @jakarta.annotation.Nonnull private String updatedAt; public static final String JSON_PROPERTY_UPDATED_BY = "updatedBy"; - @jakarta.annotation.Nullable private String updatedBy; + @jakarta.annotation.Nonnull private String updatedBy; public static final String JSON_PROPERTY_LAST_SENT_DATE = "lastSentDate"; - @jakarta.annotation.Nullable private String lastSentDate; + @jakarta.annotation.Nonnull private String lastSentDate; public static final String JSON_PROPERTY_LAST_RECEIVED_DATE = "lastReceivedDate"; - @jakarta.annotation.Nullable private String lastReceivedDate; + @jakarta.annotation.Nonnull private String lastReceivedDate; public static final String JSON_PROPERTY_DOCUMENTS = "documents"; - @jakarta.annotation.Nullable private String documents; + @jakarta.annotation.Nonnull private String documents; public static final String JSON_PROPERTY_HAS_ADMIN = "hasAdmin"; @jakarta.annotation.Nonnull private Boolean hasAdmin; @@ -222,10 +222,12 @@ public TravelRuleVASP( @JsonProperty(value = JSON_PROPERTY_VERIFICATION_STATUS, required = true) String verificationStatus, @JsonProperty(value = JSON_PROPERTY_ADDRESS_LINE1, required = true) String addressLine1, + @JsonProperty(value = JSON_PROPERTY_ADDRESS_LINE2, required = true) String addressLine2, @JsonProperty(value = JSON_PROPERTY_CITY, required = true) String city, @JsonProperty(value = JSON_PROPERTY_COUNTRY, required = true) String country, @JsonProperty(value = JSON_PROPERTY_EMAIL_DOMAINS, required = true) String emailDomains, @JsonProperty(value = JSON_PROPERTY_WEBSITE, required = true) String website, + @JsonProperty(value = JSON_PROPERTY_LOGO, required = true) String logo, @JsonProperty(value = JSON_PROPERTY_LEGAL_STRUCTURE, required = true) String legalStructure, @JsonProperty(value = JSON_PROPERTY_LEGAL_NAME, required = true) String legalName, @@ -233,11 +235,51 @@ public TravelRuleVASP( @JsonProperty(value = JSON_PROPERTY_INCORPORATION_COUNTRY, required = true) String incorporationCountry, @JsonProperty(value = JSON_PROPERTY_IS_REGULATED, required = true) String isRegulated, + @JsonProperty(value = JSON_PROPERTY_OTHER_NAMES, required = true) String otherNames, + @JsonProperty(value = JSON_PROPERTY_IDENTIFICATION_TYPE, required = true) + String identificationType, + @JsonProperty(value = JSON_PROPERTY_IDENTIFICATION_COUNTRY, required = true) + String identificationCountry, + @JsonProperty(value = JSON_PROPERTY_BUSINESS_NUMBER, required = true) + String businessNumber, + @JsonProperty(value = JSON_PROPERTY_REGULATORY_AUTHORITIES, required = true) + String regulatoryAuthorities, @JsonProperty(value = JSON_PROPERTY_JURISDICTIONS, required = true) String jurisdictions, + @JsonProperty(value = JSON_PROPERTY_STREET, required = true) String street, + @JsonProperty(value = JSON_PROPERTY_NUMBER, required = true) String number, + @JsonProperty(value = JSON_PROPERTY_UNIT, required = true) String unit, + @JsonProperty(value = JSON_PROPERTY_POST_CODE, required = true) String postCode, + @JsonProperty(value = JSON_PROPERTY_STATE, required = true) String state, + @JsonProperty(value = JSON_PROPERTY_CERTIFICATES, required = true) String certificates, + @JsonProperty(value = JSON_PROPERTY_DESCRIPTION, required = true) String description, + @JsonProperty(value = JSON_PROPERTY_TRAVEL_RULE_O_P_E_N_V_A_S_P, required = true) + String travelRuleOPENVASP, + @JsonProperty(value = JSON_PROPERTY_TRAVEL_RULE_S_Y_G_N_A, required = true) + String travelRuleSYGNA, + @JsonProperty(value = JSON_PROPERTY_TRAVEL_RULE_T_R_I_S_A, required = true) + String travelRuleTRISA, @JsonProperty(value = JSON_PROPERTY_TRAVEL_RULE_T_R_L_I_G_H_T, required = true) String travelRuleTRLIGHT, + @JsonProperty(value = JSON_PROPERTY_TRAVEL_RULE_E_M_A_I_L, required = true) + String travelRuleEMAIL, + @JsonProperty(value = JSON_PROPERTY_TRAVEL_RULE_T_R_P, required = true) + String travelRuleTRP, + @JsonProperty(value = JSON_PROPERTY_TRAVEL_RULE_S_H_Y_F_T, required = true) + String travelRuleSHYFT, + @JsonProperty( + value = JSON_PROPERTY_TRAVEL_RULE_U_S_T_R_A_V_E_L_R_U_L_E_W_G, + required = true) + String travelRuleUSTRAVELRULEWG, @JsonProperty(value = JSON_PROPERTY_CREATED_AT, required = true) String createdAt, + @JsonProperty(value = JSON_PROPERTY_CREATED_BY, required = true) String createdBy, + @JsonProperty(value = JSON_PROPERTY_UPDATED_AT, required = true) String updatedAt, + @JsonProperty(value = JSON_PROPERTY_UPDATED_BY, required = true) String updatedBy, + @JsonProperty(value = JSON_PROPERTY_LAST_SENT_DATE, required = true) + String lastSentDate, + @JsonProperty(value = JSON_PROPERTY_LAST_RECEIVED_DATE, required = true) + String lastReceivedDate, + @JsonProperty(value = JSON_PROPERTY_DOCUMENTS, required = true) String documents, @JsonProperty(value = JSON_PROPERTY_HAS_ADMIN, required = true) Boolean hasAdmin, @JsonProperty(value = JSON_PROPERTY_IS_NOTIFIABLE, required = true) Boolean isNotifiable, @@ -247,18 +289,45 @@ public TravelRuleVASP( this.name = name; this.verificationStatus = verificationStatus; this.addressLine1 = addressLine1; + this.addressLine2 = addressLine2; this.city = city; this.country = country; this.emailDomains = emailDomains; this.website = website; + this.logo = logo; this.legalStructure = legalStructure; this.legalName = legalName; this.yearFounded = yearFounded; this.incorporationCountry = incorporationCountry; this.isRegulated = isRegulated; + this.otherNames = otherNames; + this.identificationType = identificationType; + this.identificationCountry = identificationCountry; + this.businessNumber = businessNumber; + this.regulatoryAuthorities = regulatoryAuthorities; this.jurisdictions = jurisdictions; + this.street = street; + this.number = number; + this.unit = unit; + this.postCode = postCode; + this.state = state; + this.certificates = certificates; + this.description = description; + this.travelRuleOPENVASP = travelRuleOPENVASP; + this.travelRuleSYGNA = travelRuleSYGNA; + this.travelRuleTRISA = travelRuleTRISA; this.travelRuleTRLIGHT = travelRuleTRLIGHT; + this.travelRuleEMAIL = travelRuleEMAIL; + this.travelRuleTRP = travelRuleTRP; + this.travelRuleSHYFT = travelRuleSHYFT; + this.travelRuleUSTRAVELRULEWG = travelRuleUSTRAVELRULEWG; this.createdAt = createdAt; + this.createdBy = createdBy; + this.updatedAt = updatedAt; + this.updatedBy = updatedBy; + this.lastSentDate = lastSentDate; + this.lastReceivedDate = lastReceivedDate; + this.documents = documents; this.hasAdmin = hasAdmin; this.isNotifiable = isNotifiable; this.issuers = issuers; @@ -270,7 +339,7 @@ public TravelRuleVASP did(@jakarta.annotation.Nonnull String did) { } /** - * The Decentralized Identifier (DID) of the VASP. + * Get did * * @return did */ @@ -293,7 +362,7 @@ public TravelRuleVASP name(@jakarta.annotation.Nonnull String name) { } /** - * The name of the VASP. + * Get name * * @return name */ @@ -317,7 +386,7 @@ public TravelRuleVASP verificationStatus( } /** - * The current verification status of the VASP. + * Get verificationStatus * * @return verificationStatus */ @@ -340,7 +409,7 @@ public TravelRuleVASP addressLine1(@jakarta.annotation.Nonnull String addressLin } /** - * The first line of the VASP's address. + * Get addressLine1 * * @return addressLine1 */ @@ -357,26 +426,26 @@ public void setAddressLine1(@jakarta.annotation.Nonnull String addressLine1) { this.addressLine1 = addressLine1; } - public TravelRuleVASP addressLine2(@jakarta.annotation.Nullable String addressLine2) { + public TravelRuleVASP addressLine2(@jakarta.annotation.Nonnull String addressLine2) { this.addressLine2 = addressLine2; return this; } /** - * The second line of the VASP's address (if applicable). + * Get addressLine2 * * @return addressLine2 */ - @jakarta.annotation.Nullable + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ADDRESS_LINE2) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getAddressLine2() { return addressLine2; } @JsonProperty(JSON_PROPERTY_ADDRESS_LINE2) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAddressLine2(@jakarta.annotation.Nullable String addressLine2) { + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setAddressLine2(@jakarta.annotation.Nonnull String addressLine2) { this.addressLine2 = addressLine2; } @@ -386,7 +455,7 @@ public TravelRuleVASP city(@jakarta.annotation.Nonnull String city) { } /** - * The city where the VASP is located. + * Get city * * @return city */ @@ -409,7 +478,7 @@ public TravelRuleVASP country(@jakarta.annotation.Nonnull String country) { } /** - * The country where the VASP is registered (ISO-3166 Alpha-2 code). + * Get country * * @return country */ @@ -432,7 +501,7 @@ public TravelRuleVASP emailDomains(@jakarta.annotation.Nonnull String emailDomai } /** - * Comma-separated list of email domains associated with the VASP. + * Get emailDomains * * @return emailDomains */ @@ -455,7 +524,7 @@ public TravelRuleVASP website(@jakarta.annotation.Nonnull String website) { } /** - * The official website of the VASP. + * Get website * * @return website */ @@ -472,26 +541,26 @@ public void setWebsite(@jakarta.annotation.Nonnull String website) { this.website = website; } - public TravelRuleVASP logo(@jakarta.annotation.Nullable String logo) { + public TravelRuleVASP logo(@jakarta.annotation.Nonnull String logo) { this.logo = logo; return this; } /** - * URL to the logo of the VASP. + * Get logo * * @return logo */ - @jakarta.annotation.Nullable + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_LOGO) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getLogo() { return logo; } @JsonProperty(JSON_PROPERTY_LOGO) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLogo(@jakarta.annotation.Nullable String logo) { + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setLogo(@jakarta.annotation.Nonnull String logo) { this.logo = logo; } @@ -501,7 +570,7 @@ public TravelRuleVASP legalStructure(@jakarta.annotation.Nonnull String legalStr } /** - * The legal structure of the VASP (e.g., Corporation, LLC). + * Get legalStructure * * @return legalStructure */ @@ -524,7 +593,7 @@ public TravelRuleVASP legalName(@jakarta.annotation.Nonnull String legalName) { } /** - * The legal name of the VASP. + * Get legalName * * @return legalName */ @@ -547,7 +616,7 @@ public TravelRuleVASP yearFounded(@jakarta.annotation.Nonnull String yearFounded } /** - * The year the VASP was founded. + * Get yearFounded * * @return yearFounded */ @@ -571,7 +640,7 @@ public TravelRuleVASP incorporationCountry( } /** - * The country where the VASP is incorporated (ISO-3166 Alpha-2 code). + * Get incorporationCountry * * @return incorporationCountry */ @@ -594,7 +663,7 @@ public TravelRuleVASP isRegulated(@jakarta.annotation.Nonnull String isRegulated } /** - * Indicates whether the VASP is regulated. + * Get isRegulated * * @return isRegulated */ @@ -611,123 +680,121 @@ public void setIsRegulated(@jakarta.annotation.Nonnull String isRegulated) { this.isRegulated = isRegulated; } - public TravelRuleVASP otherNames(@jakarta.annotation.Nullable String otherNames) { + public TravelRuleVASP otherNames(@jakarta.annotation.Nonnull String otherNames) { this.otherNames = otherNames; return this; } /** - * Other names the VASP is known by. + * Get otherNames * * @return otherNames */ - @jakarta.annotation.Nullable + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_OTHER_NAMES) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getOtherNames() { return otherNames; } @JsonProperty(JSON_PROPERTY_OTHER_NAMES) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOtherNames(@jakarta.annotation.Nullable String otherNames) { + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setOtherNames(@jakarta.annotation.Nonnull String otherNames) { this.otherNames = otherNames; } public TravelRuleVASP identificationType( - @jakarta.annotation.Nullable String identificationType) { + @jakarta.annotation.Nonnull String identificationType) { this.identificationType = identificationType; return this; } /** - * The type of identification used by the VASP. + * Get identificationType * * @return identificationType */ - @jakarta.annotation.Nullable + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_IDENTIFICATION_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getIdentificationType() { return identificationType; } @JsonProperty(JSON_PROPERTY_IDENTIFICATION_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIdentificationType(@jakarta.annotation.Nullable String identificationType) { + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setIdentificationType(@jakarta.annotation.Nonnull String identificationType) { this.identificationType = identificationType; } public TravelRuleVASP identificationCountry( - @jakarta.annotation.Nullable String identificationCountry) { + @jakarta.annotation.Nonnull String identificationCountry) { this.identificationCountry = identificationCountry; return this; } /** - * The country of identification for the VASP (ISO-3166 Alpha-2 code). + * Get identificationCountry * * @return identificationCountry */ - @jakarta.annotation.Nullable + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_IDENTIFICATION_COUNTRY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getIdentificationCountry() { return identificationCountry; } @JsonProperty(JSON_PROPERTY_IDENTIFICATION_COUNTRY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIdentificationCountry( - @jakarta.annotation.Nullable String identificationCountry) { + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setIdentificationCountry(@jakarta.annotation.Nonnull String identificationCountry) { this.identificationCountry = identificationCountry; } - public TravelRuleVASP businessNumber(@jakarta.annotation.Nullable String businessNumber) { + public TravelRuleVASP businessNumber(@jakarta.annotation.Nonnull String businessNumber) { this.businessNumber = businessNumber; return this; } /** - * The business registration number of the VASP. + * Get businessNumber * * @return businessNumber */ - @jakarta.annotation.Nullable + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_BUSINESS_NUMBER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getBusinessNumber() { return businessNumber; } @JsonProperty(JSON_PROPERTY_BUSINESS_NUMBER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBusinessNumber(@jakarta.annotation.Nullable String businessNumber) { + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setBusinessNumber(@jakarta.annotation.Nonnull String businessNumber) { this.businessNumber = businessNumber; } public TravelRuleVASP regulatoryAuthorities( - @jakarta.annotation.Nullable String regulatoryAuthorities) { + @jakarta.annotation.Nonnull String regulatoryAuthorities) { this.regulatoryAuthorities = regulatoryAuthorities; return this; } /** - * The regulatory authorities overseeing the VASP. + * Get regulatoryAuthorities * * @return regulatoryAuthorities */ - @jakarta.annotation.Nullable + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_REGULATORY_AUTHORITIES) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getRegulatoryAuthorities() { return regulatoryAuthorities; } @JsonProperty(JSON_PROPERTY_REGULATORY_AUTHORITIES) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRegulatoryAuthorities( - @jakarta.annotation.Nullable String regulatoryAuthorities) { + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setRegulatoryAuthorities(@jakarta.annotation.Nonnull String regulatoryAuthorities) { this.regulatoryAuthorities = regulatoryAuthorities; } @@ -737,7 +804,7 @@ public TravelRuleVASP jurisdictions(@jakarta.annotation.Nonnull String jurisdict } /** - * The jurisdictions where the VASP operates. + * Get jurisdictions * * @return jurisdictions */ @@ -754,234 +821,234 @@ public void setJurisdictions(@jakarta.annotation.Nonnull String jurisdictions) { this.jurisdictions = jurisdictions; } - public TravelRuleVASP street(@jakarta.annotation.Nullable String street) { + public TravelRuleVASP street(@jakarta.annotation.Nonnull String street) { this.street = street; return this; } /** - * The street name where the VASP is located. + * Get street * * @return street */ - @jakarta.annotation.Nullable + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_STREET) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getStreet() { return street; } @JsonProperty(JSON_PROPERTY_STREET) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStreet(@jakarta.annotation.Nullable String street) { + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setStreet(@jakarta.annotation.Nonnull String street) { this.street = street; } - public TravelRuleVASP number(@jakarta.annotation.Nullable String number) { + public TravelRuleVASP number(@jakarta.annotation.Nonnull String number) { this.number = number; return this; } /** - * The building number of the VASP's address. + * Get number * * @return number */ - @jakarta.annotation.Nullable + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NUMBER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getNumber() { return number; } @JsonProperty(JSON_PROPERTY_NUMBER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNumber(@jakarta.annotation.Nullable String number) { + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setNumber(@jakarta.annotation.Nonnull String number) { this.number = number; } - public TravelRuleVASP unit(@jakarta.annotation.Nullable String unit) { + public TravelRuleVASP unit(@jakarta.annotation.Nonnull String unit) { this.unit = unit; return this; } /** - * The unit or suite number of the VASP's address. + * Get unit * * @return unit */ - @jakarta.annotation.Nullable + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_UNIT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getUnit() { return unit; } @JsonProperty(JSON_PROPERTY_UNIT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUnit(@jakarta.annotation.Nullable String unit) { + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setUnit(@jakarta.annotation.Nonnull String unit) { this.unit = unit; } - public TravelRuleVASP postCode(@jakarta.annotation.Nullable String postCode) { + public TravelRuleVASP postCode(@jakarta.annotation.Nonnull String postCode) { this.postCode = postCode; return this; } /** - * The postal code of the VASP's location. + * Get postCode * * @return postCode */ - @jakarta.annotation.Nullable + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_POST_CODE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getPostCode() { return postCode; } @JsonProperty(JSON_PROPERTY_POST_CODE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPostCode(@jakarta.annotation.Nullable String postCode) { + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setPostCode(@jakarta.annotation.Nonnull String postCode) { this.postCode = postCode; } - public TravelRuleVASP state(@jakarta.annotation.Nullable String state) { + public TravelRuleVASP state(@jakarta.annotation.Nonnull String state) { this.state = state; return this; } /** - * The state or region where the VASP is located. + * Get state * * @return state */ - @jakarta.annotation.Nullable + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_STATE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getState() { return state; } @JsonProperty(JSON_PROPERTY_STATE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setState(@jakarta.annotation.Nullable String state) { + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setState(@jakarta.annotation.Nonnull String state) { this.state = state; } - public TravelRuleVASP certificates(@jakarta.annotation.Nullable String certificates) { + public TravelRuleVASP certificates(@jakarta.annotation.Nonnull String certificates) { this.certificates = certificates; return this; } /** - * Certificates or licenses held by the VASP. + * Get certificates * * @return certificates */ - @jakarta.annotation.Nullable + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CERTIFICATES) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getCertificates() { return certificates; } @JsonProperty(JSON_PROPERTY_CERTIFICATES) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCertificates(@jakarta.annotation.Nullable String certificates) { + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCertificates(@jakarta.annotation.Nonnull String certificates) { this.certificates = certificates; } - public TravelRuleVASP description(@jakarta.annotation.Nullable String description) { + public TravelRuleVASP description(@jakarta.annotation.Nonnull String description) { this.description = description; return this; } /** - * A brief description of the VASP. + * Get description * * @return description */ - @jakarta.annotation.Nullable + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DESCRIPTION) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getDescription() { return description; } @JsonProperty(JSON_PROPERTY_DESCRIPTION) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDescription(@jakarta.annotation.Nullable String description) { + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setDescription(@jakarta.annotation.Nonnull String description) { this.description = description; } public TravelRuleVASP travelRuleOPENVASP( - @jakarta.annotation.Nullable String travelRuleOPENVASP) { + @jakarta.annotation.Nonnull String travelRuleOPENVASP) { this.travelRuleOPENVASP = travelRuleOPENVASP; return this; } /** - * Travel rule compliance status for OpenVASP. + * Get travelRuleOPENVASP * * @return travelRuleOPENVASP */ - @jakarta.annotation.Nullable + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TRAVEL_RULE_O_P_E_N_V_A_S_P) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getTravelRuleOPENVASP() { return travelRuleOPENVASP; } @JsonProperty(JSON_PROPERTY_TRAVEL_RULE_O_P_E_N_V_A_S_P) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTravelRuleOPENVASP(@jakarta.annotation.Nullable String travelRuleOPENVASP) { + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setTravelRuleOPENVASP(@jakarta.annotation.Nonnull String travelRuleOPENVASP) { this.travelRuleOPENVASP = travelRuleOPENVASP; } - public TravelRuleVASP travelRuleSYGNA(@jakarta.annotation.Nullable String travelRuleSYGNA) { + public TravelRuleVASP travelRuleSYGNA(@jakarta.annotation.Nonnull String travelRuleSYGNA) { this.travelRuleSYGNA = travelRuleSYGNA; return this; } /** - * Travel rule compliance status for Sygna. + * Get travelRuleSYGNA * * @return travelRuleSYGNA */ - @jakarta.annotation.Nullable + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TRAVEL_RULE_S_Y_G_N_A) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getTravelRuleSYGNA() { return travelRuleSYGNA; } @JsonProperty(JSON_PROPERTY_TRAVEL_RULE_S_Y_G_N_A) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTravelRuleSYGNA(@jakarta.annotation.Nullable String travelRuleSYGNA) { + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setTravelRuleSYGNA(@jakarta.annotation.Nonnull String travelRuleSYGNA) { this.travelRuleSYGNA = travelRuleSYGNA; } - public TravelRuleVASP travelRuleTRISA(@jakarta.annotation.Nullable String travelRuleTRISA) { + public TravelRuleVASP travelRuleTRISA(@jakarta.annotation.Nonnull String travelRuleTRISA) { this.travelRuleTRISA = travelRuleTRISA; return this; } /** - * Travel rule compliance status for TRISA. + * Get travelRuleTRISA * * @return travelRuleTRISA */ - @jakarta.annotation.Nullable + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TRAVEL_RULE_T_R_I_S_A) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getTravelRuleTRISA() { return travelRuleTRISA; } @JsonProperty(JSON_PROPERTY_TRAVEL_RULE_T_R_I_S_A) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTravelRuleTRISA(@jakarta.annotation.Nullable String travelRuleTRISA) { + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setTravelRuleTRISA(@jakarta.annotation.Nonnull String travelRuleTRISA) { this.travelRuleTRISA = travelRuleTRISA; } @@ -991,7 +1058,7 @@ public TravelRuleVASP travelRuleTRLIGHT(@jakarta.annotation.Nonnull String trave } /** - * Travel rule compliance status for TRLight. + * Get travelRuleTRLIGHT * * @return travelRuleTRLIGHT */ @@ -1008,97 +1075,97 @@ public void setTravelRuleTRLIGHT(@jakarta.annotation.Nonnull String travelRuleTR this.travelRuleTRLIGHT = travelRuleTRLIGHT; } - public TravelRuleVASP travelRuleEMAIL(@jakarta.annotation.Nullable String travelRuleEMAIL) { + public TravelRuleVASP travelRuleEMAIL(@jakarta.annotation.Nonnull String travelRuleEMAIL) { this.travelRuleEMAIL = travelRuleEMAIL; return this; } /** - * Travel rule compliance status for EMAIL. + * Get travelRuleEMAIL * * @return travelRuleEMAIL */ - @jakarta.annotation.Nullable + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TRAVEL_RULE_E_M_A_I_L) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getTravelRuleEMAIL() { return travelRuleEMAIL; } @JsonProperty(JSON_PROPERTY_TRAVEL_RULE_E_M_A_I_L) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTravelRuleEMAIL(@jakarta.annotation.Nullable String travelRuleEMAIL) { + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setTravelRuleEMAIL(@jakarta.annotation.Nonnull String travelRuleEMAIL) { this.travelRuleEMAIL = travelRuleEMAIL; } - public TravelRuleVASP travelRuleTRP(@jakarta.annotation.Nullable String travelRuleTRP) { + public TravelRuleVASP travelRuleTRP(@jakarta.annotation.Nonnull String travelRuleTRP) { this.travelRuleTRP = travelRuleTRP; return this; } /** - * Travel rule compliance status for TRP. + * Get travelRuleTRP * * @return travelRuleTRP */ - @jakarta.annotation.Nullable + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TRAVEL_RULE_T_R_P) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getTravelRuleTRP() { return travelRuleTRP; } @JsonProperty(JSON_PROPERTY_TRAVEL_RULE_T_R_P) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTravelRuleTRP(@jakarta.annotation.Nullable String travelRuleTRP) { + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setTravelRuleTRP(@jakarta.annotation.Nonnull String travelRuleTRP) { this.travelRuleTRP = travelRuleTRP; } - public TravelRuleVASP travelRuleSHYFT(@jakarta.annotation.Nullable String travelRuleSHYFT) { + public TravelRuleVASP travelRuleSHYFT(@jakarta.annotation.Nonnull String travelRuleSHYFT) { this.travelRuleSHYFT = travelRuleSHYFT; return this; } /** - * Travel rule compliance status for Shyft. + * Get travelRuleSHYFT * * @return travelRuleSHYFT */ - @jakarta.annotation.Nullable + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TRAVEL_RULE_S_H_Y_F_T) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getTravelRuleSHYFT() { return travelRuleSHYFT; } @JsonProperty(JSON_PROPERTY_TRAVEL_RULE_S_H_Y_F_T) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTravelRuleSHYFT(@jakarta.annotation.Nullable String travelRuleSHYFT) { + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setTravelRuleSHYFT(@jakarta.annotation.Nonnull String travelRuleSHYFT) { this.travelRuleSHYFT = travelRuleSHYFT; } public TravelRuleVASP travelRuleUSTRAVELRULEWG( - @jakarta.annotation.Nullable String travelRuleUSTRAVELRULEWG) { + @jakarta.annotation.Nonnull String travelRuleUSTRAVELRULEWG) { this.travelRuleUSTRAVELRULEWG = travelRuleUSTRAVELRULEWG; return this; } /** - * Travel rule compliance status for US Travel Rule WG. + * Get travelRuleUSTRAVELRULEWG * * @return travelRuleUSTRAVELRULEWG */ - @jakarta.annotation.Nullable + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TRAVEL_RULE_U_S_T_R_A_V_E_L_R_U_L_E_W_G) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getTravelRuleUSTRAVELRULEWG() { return travelRuleUSTRAVELRULEWG; } @JsonProperty(JSON_PROPERTY_TRAVEL_RULE_U_S_T_R_A_V_E_L_R_U_L_E_W_G) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setTravelRuleUSTRAVELRULEWG( - @jakarta.annotation.Nullable String travelRuleUSTRAVELRULEWG) { + @jakarta.annotation.Nonnull String travelRuleUSTRAVELRULEWG) { this.travelRuleUSTRAVELRULEWG = travelRuleUSTRAVELRULEWG; } @@ -1108,7 +1175,7 @@ public TravelRuleVASP createdAt(@jakarta.annotation.Nonnull String createdAt) { } /** - * Timestamp when the VASP record was created. + * Get createdAt * * @return createdAt */ @@ -1125,141 +1192,141 @@ public void setCreatedAt(@jakarta.annotation.Nonnull String createdAt) { this.createdAt = createdAt; } - public TravelRuleVASP createdBy(@jakarta.annotation.Nullable String createdBy) { + public TravelRuleVASP createdBy(@jakarta.annotation.Nonnull String createdBy) { this.createdBy = createdBy; return this; } /** - * User or system that created the VASP record. + * Get createdBy * * @return createdBy */ - @jakarta.annotation.Nullable + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CREATED_BY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getCreatedBy() { return createdBy; } @JsonProperty(JSON_PROPERTY_CREATED_BY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCreatedBy(@jakarta.annotation.Nullable String createdBy) { + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCreatedBy(@jakarta.annotation.Nonnull String createdBy) { this.createdBy = createdBy; } - public TravelRuleVASP updatedAt(@jakarta.annotation.Nullable String updatedAt) { + public TravelRuleVASP updatedAt(@jakarta.annotation.Nonnull String updatedAt) { this.updatedAt = updatedAt; return this; } /** - * Timestamp of the last update to the VASP record. + * Get updatedAt * * @return updatedAt */ - @jakarta.annotation.Nullable + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_UPDATED_AT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getUpdatedAt() { return updatedAt; } @JsonProperty(JSON_PROPERTY_UPDATED_AT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUpdatedAt(@jakarta.annotation.Nullable String updatedAt) { + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setUpdatedAt(@jakarta.annotation.Nonnull String updatedAt) { this.updatedAt = updatedAt; } - public TravelRuleVASP updatedBy(@jakarta.annotation.Nullable String updatedBy) { + public TravelRuleVASP updatedBy(@jakarta.annotation.Nonnull String updatedBy) { this.updatedBy = updatedBy; return this; } /** - * User or system that last updated the VASP record. + * Get updatedBy * * @return updatedBy */ - @jakarta.annotation.Nullable + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_UPDATED_BY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getUpdatedBy() { return updatedBy; } @JsonProperty(JSON_PROPERTY_UPDATED_BY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUpdatedBy(@jakarta.annotation.Nullable String updatedBy) { + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setUpdatedBy(@jakarta.annotation.Nonnull String updatedBy) { this.updatedBy = updatedBy; } - public TravelRuleVASP lastSentDate(@jakarta.annotation.Nullable String lastSentDate) { + public TravelRuleVASP lastSentDate(@jakarta.annotation.Nonnull String lastSentDate) { this.lastSentDate = lastSentDate; return this; } /** - * The last date a transaction was sent by the VASP. + * Get lastSentDate * * @return lastSentDate */ - @jakarta.annotation.Nullable + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_LAST_SENT_DATE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getLastSentDate() { return lastSentDate; } @JsonProperty(JSON_PROPERTY_LAST_SENT_DATE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLastSentDate(@jakarta.annotation.Nullable String lastSentDate) { + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setLastSentDate(@jakarta.annotation.Nonnull String lastSentDate) { this.lastSentDate = lastSentDate; } - public TravelRuleVASP lastReceivedDate(@jakarta.annotation.Nullable String lastReceivedDate) { + public TravelRuleVASP lastReceivedDate(@jakarta.annotation.Nonnull String lastReceivedDate) { this.lastReceivedDate = lastReceivedDate; return this; } /** - * The last date a transaction was received by the VASP. + * Get lastReceivedDate * * @return lastReceivedDate */ - @jakarta.annotation.Nullable + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_LAST_RECEIVED_DATE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getLastReceivedDate() { return lastReceivedDate; } @JsonProperty(JSON_PROPERTY_LAST_RECEIVED_DATE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLastReceivedDate(@jakarta.annotation.Nullable String lastReceivedDate) { + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setLastReceivedDate(@jakarta.annotation.Nonnull String lastReceivedDate) { this.lastReceivedDate = lastReceivedDate; } - public TravelRuleVASP documents(@jakarta.annotation.Nullable String documents) { + public TravelRuleVASP documents(@jakarta.annotation.Nonnull String documents) { this.documents = documents; return this; } /** - * Documents associated with the VASP. + * Get documents * * @return documents */ - @jakarta.annotation.Nullable + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DOCUMENTS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getDocuments() { return documents; } @JsonProperty(JSON_PROPERTY_DOCUMENTS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDocuments(@jakarta.annotation.Nullable String documents) { + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setDocuments(@jakarta.annotation.Nonnull String documents) { this.documents = documents; } @@ -1269,7 +1336,7 @@ public TravelRuleVASP hasAdmin(@jakarta.annotation.Nonnull Boolean hasAdmin) { } /** - * Indicates if the VASP has an admin. + * Get hasAdmin * * @return hasAdmin */ @@ -1292,7 +1359,7 @@ public TravelRuleVASP isNotifiable(@jakarta.annotation.Nonnull Boolean isNotifia } /** - * Indicates if the VASP is notifiable for compliance reasons. + * Get isNotifiable * * @return isNotifiable */ diff --git a/src/main/java/com/fireblocks/sdk/model/TravelRuleValidateDateAndPlaceOfBirth.java b/src/main/java/com/fireblocks/sdk/model/TravelRuleValidateDateAndPlaceOfBirth.java deleted file mode 100644 index 1efa835c..00000000 --- a/src/main/java/com/fireblocks/sdk/model/TravelRuleValidateDateAndPlaceOfBirth.java +++ /dev/null @@ -1,184 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** Represents the date and place of birth for a natural person */ -@JsonPropertyOrder({ - TravelRuleValidateDateAndPlaceOfBirth.JSON_PROPERTY_DATE_OF_BIRTH, - TravelRuleValidateDateAndPlaceOfBirth.JSON_PROPERTY_PLACE_OF_BIRTH -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class TravelRuleValidateDateAndPlaceOfBirth { - public static final String JSON_PROPERTY_DATE_OF_BIRTH = "dateOfBirth"; - @jakarta.annotation.Nullable private String dateOfBirth; - - public static final String JSON_PROPERTY_PLACE_OF_BIRTH = "placeOfBirth"; - @jakarta.annotation.Nullable private String placeOfBirth; - - public TravelRuleValidateDateAndPlaceOfBirth() {} - - public TravelRuleValidateDateAndPlaceOfBirth dateOfBirth( - @jakarta.annotation.Nullable String dateOfBirth) { - this.dateOfBirth = dateOfBirth; - return this; - } - - /** - * Date of birth in ISO 8601 format (YYYY-MM-DD) - * - * @return dateOfBirth - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getDateOfBirth() { - return dateOfBirth; - } - - @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDateOfBirth(@jakarta.annotation.Nullable String dateOfBirth) { - this.dateOfBirth = dateOfBirth; - } - - public TravelRuleValidateDateAndPlaceOfBirth placeOfBirth( - @jakarta.annotation.Nullable String placeOfBirth) { - this.placeOfBirth = placeOfBirth; - return this; - } - - /** - * Place of birth - * - * @return placeOfBirth - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PLACE_OF_BIRTH) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getPlaceOfBirth() { - return placeOfBirth; - } - - @JsonProperty(JSON_PROPERTY_PLACE_OF_BIRTH) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPlaceOfBirth(@jakarta.annotation.Nullable String placeOfBirth) { - this.placeOfBirth = placeOfBirth; - } - - /** Return true if this TravelRuleValidateDateAndPlaceOfBirth object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - TravelRuleValidateDateAndPlaceOfBirth travelRuleValidateDateAndPlaceOfBirth = - (TravelRuleValidateDateAndPlaceOfBirth) o; - return Objects.equals(this.dateOfBirth, travelRuleValidateDateAndPlaceOfBirth.dateOfBirth) - && Objects.equals( - this.placeOfBirth, travelRuleValidateDateAndPlaceOfBirth.placeOfBirth); - } - - @Override - public int hashCode() { - return Objects.hash(dateOfBirth, placeOfBirth); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class TravelRuleValidateDateAndPlaceOfBirth {\n"); - sb.append(" dateOfBirth: ").append(toIndentedString(dateOfBirth)).append("\n"); - sb.append(" placeOfBirth: ").append(toIndentedString(placeOfBirth)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `dateOfBirth` to the URL query string - if (getDateOfBirth() != null) { - joiner.add( - String.format( - "%sdateOfBirth%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getDateOfBirth())))); - } - - // add `placeOfBirth` to the URL query string - if (getPlaceOfBirth() != null) { - joiner.add( - String.format( - "%splaceOfBirth%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getPlaceOfBirth())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/TravelRuleValidateFullTransactionRequest.java b/src/main/java/com/fireblocks/sdk/model/TravelRuleValidateFullTransactionRequest.java index d939b0d5..046ac82d 100644 --- a/src/main/java/com/fireblocks/sdk/model/TravelRuleValidateFullTransactionRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/TravelRuleValidateFullTransactionRequest.java @@ -17,56 +17,52 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; import com.fireblocks.sdk.ApiClient; import java.util.Objects; import java.util.StringJoiner; /** TravelRuleValidateFullTransactionRequest */ @JsonPropertyOrder({ - TravelRuleValidateFullTransactionRequest.JSON_PROPERTY_ORIGINATOR_V_A_S_PDID, - TravelRuleValidateFullTransactionRequest.JSON_PROPERTY_BENEFICIARY_V_A_S_PDID, TravelRuleValidateFullTransactionRequest.JSON_PROPERTY_TRANSACTION_ASSET, TravelRuleValidateFullTransactionRequest.JSON_PROPERTY_TRANSACTION_AMOUNT, - TravelRuleValidateFullTransactionRequest.JSON_PROPERTY_ORIGINATOR_V_A_S_PNAME, + TravelRuleValidateFullTransactionRequest.JSON_PROPERTY_ORIGINATOR_DID, + TravelRuleValidateFullTransactionRequest.JSON_PROPERTY_BENEFICIARY_DID, + TravelRuleValidateFullTransactionRequest.JSON_PROPERTY_ORIGINATOR_V_A_S_PDID, + TravelRuleValidateFullTransactionRequest.JSON_PROPERTY_BENEFICIARY_V_A_S_PDID, TravelRuleValidateFullTransactionRequest.JSON_PROPERTY_BENEFICIARY_V_A_S_PNAME, TravelRuleValidateFullTransactionRequest.JSON_PROPERTY_TRANSACTION_BLOCKCHAIN_INFO, TravelRuleValidateFullTransactionRequest.JSON_PROPERTY_ORIGINATOR, TravelRuleValidateFullTransactionRequest.JSON_PROPERTY_BENEFICIARY, TravelRuleValidateFullTransactionRequest.JSON_PROPERTY_ENCRYPTED, TravelRuleValidateFullTransactionRequest.JSON_PROPERTY_PROTOCOL, + TravelRuleValidateFullTransactionRequest.JSON_PROPERTY_NOTIFICATION_EMAIL, TravelRuleValidateFullTransactionRequest.JSON_PROPERTY_SKIP_BENEFICIARY_DATA_VALIDATION, TravelRuleValidateFullTransactionRequest.JSON_PROPERTY_TRAVEL_RULE_BEHAVIOR, - TravelRuleValidateFullTransactionRequest.JSON_PROPERTY_ORIGINATOR_REF, - TravelRuleValidateFullTransactionRequest.JSON_PROPERTY_BENEFICIARY_REF, - TravelRuleValidateFullTransactionRequest.JSON_PROPERTY_TRAVEL_RULE_BEHAVIOR_REF, TravelRuleValidateFullTransactionRequest.JSON_PROPERTY_ORIGINATOR_PROOF, TravelRuleValidateFullTransactionRequest.JSON_PROPERTY_BENEFICIARY_PROOF, - TravelRuleValidateFullTransactionRequest.JSON_PROPERTY_BENEFICIARY_DID, - TravelRuleValidateFullTransactionRequest.JSON_PROPERTY_ORIGINATOR_DID, - TravelRuleValidateFullTransactionRequest.JSON_PROPERTY_IS_NON_CUSTODIAL, - TravelRuleValidateFullTransactionRequest.JSON_PROPERTY_NOTIFICATION_EMAIL, - TravelRuleValidateFullTransactionRequest.JSON_PROPERTY_PII, - TravelRuleValidateFullTransactionRequest.JSON_PROPERTY_PII_URL + TravelRuleValidateFullTransactionRequest.JSON_PROPERTY_PII }) @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") public class TravelRuleValidateFullTransactionRequest { - public static final String JSON_PROPERTY_ORIGINATOR_V_A_S_PDID = "originatorVASPdid"; - @jakarta.annotation.Nullable private String originatorVASPdid; - - public static final String JSON_PROPERTY_BENEFICIARY_V_A_S_PDID = "beneficiaryVASPdid"; - @jakarta.annotation.Nullable private String beneficiaryVASPdid; - public static final String JSON_PROPERTY_TRANSACTION_ASSET = "transactionAsset"; @jakarta.annotation.Nullable private String transactionAsset; public static final String JSON_PROPERTY_TRANSACTION_AMOUNT = "transactionAmount"; @jakarta.annotation.Nullable private String transactionAmount; - public static final String JSON_PROPERTY_ORIGINATOR_V_A_S_PNAME = "originatorVASPname"; - @jakarta.annotation.Nullable private String originatorVASPname; + public static final String JSON_PROPERTY_ORIGINATOR_DID = "originatorDid"; + @jakarta.annotation.Nullable private String originatorDid; + + public static final String JSON_PROPERTY_BENEFICIARY_DID = "beneficiaryDid"; + @jakarta.annotation.Nullable private String beneficiaryDid; + + public static final String JSON_PROPERTY_ORIGINATOR_V_A_S_PDID = "originatorVASPdid"; + @jakarta.annotation.Nullable private String originatorVASPdid; + + public static final String JSON_PROPERTY_BENEFICIARY_V_A_S_PDID = "beneficiaryVASPdid"; + @jakarta.annotation.Nullable private String beneficiaryVASPdid; public static final String JSON_PROPERTY_BENEFICIARY_V_A_S_PNAME = "beneficiaryVASPname"; @jakarta.annotation.Nullable private String beneficiaryVASPname; @@ -78,53 +74,19 @@ public class TravelRuleValidateFullTransactionRequest { private TravelRuleTransactionBlockchainInfo transactionBlockchainInfo; public static final String JSON_PROPERTY_ORIGINATOR = "originator"; - @jakarta.annotation.Nonnull private TravelRuleValidatePiiIVMS originator; + @jakarta.annotation.Nonnull private TravelRulePiiIVMS originator; public static final String JSON_PROPERTY_BENEFICIARY = "beneficiary"; - @jakarta.annotation.Nonnull private TravelRuleValidatePiiIVMS beneficiary; + @jakarta.annotation.Nonnull private TravelRulePiiIVMS beneficiary; public static final String JSON_PROPERTY_ENCRYPTED = "encrypted"; @jakarta.annotation.Nullable private String encrypted; - /** The protocol used to perform the travel rule. */ - public enum ProtocolEnum { - TR_LIGHT(String.valueOf("TRLight")), - - TRP(String.valueOf("TRP")), - - OPEN_VASP(String.valueOf("OpenVASP")), - - GTR(String.valueOf("GTR")); - - private String value; - - ProtocolEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static ProtocolEnum fromValue(String value) { - for (ProtocolEnum b : ProtocolEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - public static final String JSON_PROPERTY_PROTOCOL = "protocol"; - @jakarta.annotation.Nullable private ProtocolEnum protocol; + @jakarta.annotation.Nullable private String protocol; + + public static final String JSON_PROPERTY_NOTIFICATION_EMAIL = "notificationEmail"; + @jakarta.annotation.Nullable private String notificationEmail; public static final String JSON_PROPERTY_SKIP_BENEFICIARY_DATA_VALIDATION = "skipBeneficiaryDataValidation"; @@ -133,180 +95,169 @@ public static ProtocolEnum fromValue(String value) { public static final String JSON_PROPERTY_TRAVEL_RULE_BEHAVIOR = "travelRuleBehavior"; @jakarta.annotation.Nullable private Boolean travelRuleBehavior; - public static final String JSON_PROPERTY_ORIGINATOR_REF = "originatorRef"; - @jakarta.annotation.Nullable private String originatorRef; - - public static final String JSON_PROPERTY_BENEFICIARY_REF = "beneficiaryRef"; - @jakarta.annotation.Nullable private String beneficiaryRef; - - public static final String JSON_PROPERTY_TRAVEL_RULE_BEHAVIOR_REF = "travelRuleBehaviorRef"; - @jakarta.annotation.Nullable private String travelRuleBehaviorRef; - public static final String JSON_PROPERTY_ORIGINATOR_PROOF = "originatorProof"; @jakarta.annotation.Nullable private TravelRuleOwnershipProof originatorProof; public static final String JSON_PROPERTY_BENEFICIARY_PROOF = "beneficiaryProof"; @jakarta.annotation.Nullable private TravelRuleOwnershipProof beneficiaryProof; - public static final String JSON_PROPERTY_BENEFICIARY_DID = "beneficiaryDid"; - @jakarta.annotation.Nullable private String beneficiaryDid; - - public static final String JSON_PROPERTY_ORIGINATOR_DID = "originatorDid"; - @jakarta.annotation.Nullable private String originatorDid; - - public static final String JSON_PROPERTY_IS_NON_CUSTODIAL = "isNonCustodial"; - @jakarta.annotation.Nullable private Boolean isNonCustodial; - - public static final String JSON_PROPERTY_NOTIFICATION_EMAIL = "notificationEmail"; - @jakarta.annotation.Nullable private String notificationEmail; - public static final String JSON_PROPERTY_PII = "pii"; @jakarta.annotation.Nullable private TravelRulePiiIVMS pii; - public static final String JSON_PROPERTY_PII_URL = "pii_url"; - @jakarta.annotation.Nullable private String piiUrl; - public TravelRuleValidateFullTransactionRequest() {} @JsonCreator public TravelRuleValidateFullTransactionRequest( @JsonProperty(value = JSON_PROPERTY_ORIGINATOR, required = true) - TravelRuleValidatePiiIVMS originator, + TravelRulePiiIVMS originator, @JsonProperty(value = JSON_PROPERTY_BENEFICIARY, required = true) - TravelRuleValidatePiiIVMS beneficiary) { + TravelRulePiiIVMS beneficiary) { this.originator = originator; this.beneficiary = beneficiary; } - public TravelRuleValidateFullTransactionRequest originatorVASPdid( - @jakarta.annotation.Nullable String originatorVASPdid) { - this.originatorVASPdid = originatorVASPdid; + public TravelRuleValidateFullTransactionRequest transactionAsset( + @jakarta.annotation.Nullable String transactionAsset) { + this.transactionAsset = transactionAsset; return this; } /** - * The Decentralized Identifier (DID) of the exchange (VASP) that is sending the virtual assets. - * This identifier is unique to the exchange and is generated when the exchange's account is - * created in the Notabene network. + * The asset involved in the transaction * - * @return originatorVASPdid + * @return transactionAsset */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ORIGINATOR_V_A_S_PDID) + @JsonProperty(JSON_PROPERTY_TRANSACTION_ASSET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getOriginatorVASPdid() { - return originatorVASPdid; + public String getTransactionAsset() { + return transactionAsset; } - @JsonProperty(JSON_PROPERTY_ORIGINATOR_V_A_S_PDID) + @JsonProperty(JSON_PROPERTY_TRANSACTION_ASSET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOriginatorVASPdid(@jakarta.annotation.Nullable String originatorVASPdid) { - this.originatorVASPdid = originatorVASPdid; + public void setTransactionAsset(@jakarta.annotation.Nullable String transactionAsset) { + this.transactionAsset = transactionAsset; } - public TravelRuleValidateFullTransactionRequest beneficiaryVASPdid( - @jakarta.annotation.Nullable String beneficiaryVASPdid) { - this.beneficiaryVASPdid = beneficiaryVASPdid; + public TravelRuleValidateFullTransactionRequest transactionAmount( + @jakarta.annotation.Nullable String transactionAmount) { + this.transactionAmount = transactionAmount; return this; } /** - * The Decentralized Identifier (DID) of the exchange (VASP) that is receiving the virtual - * assets. This identifier is unique to the exchange and is generated when the exchange's - * account is created in the Notabene network. + * The amount of the transaction * - * @return beneficiaryVASPdid + * @return transactionAmount */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BENEFICIARY_V_A_S_PDID) + @JsonProperty(JSON_PROPERTY_TRANSACTION_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getBeneficiaryVASPdid() { - return beneficiaryVASPdid; + public String getTransactionAmount() { + return transactionAmount; } - @JsonProperty(JSON_PROPERTY_BENEFICIARY_V_A_S_PDID) + @JsonProperty(JSON_PROPERTY_TRANSACTION_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBeneficiaryVASPdid(@jakarta.annotation.Nullable String beneficiaryVASPdid) { - this.beneficiaryVASPdid = beneficiaryVASPdid; + public void setTransactionAmount(@jakarta.annotation.Nullable String transactionAmount) { + this.transactionAmount = transactionAmount; } - public TravelRuleValidateFullTransactionRequest transactionAsset( - @jakarta.annotation.Nullable String transactionAsset) { - this.transactionAsset = transactionAsset; + public TravelRuleValidateFullTransactionRequest originatorDid( + @jakarta.annotation.Nullable String originatorDid) { + this.originatorDid = originatorDid; return this; } /** - * Transaction asset symbol (e.g., BTC, ETH, USDC). By using the `notation` query - * string, users can select the type of asset notation: - `fireblocks`: Converts asset - * symbols to Fireblocks notation. - `notabene`: Retains the original Notabene asset - * symbol format. + * The DID of the transaction originator * - * @return transactionAsset + * @return originatorDid */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TRANSACTION_ASSET) + @JsonProperty(JSON_PROPERTY_ORIGINATOR_DID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getTransactionAsset() { - return transactionAsset; + public String getOriginatorDid() { + return originatorDid; } - @JsonProperty(JSON_PROPERTY_TRANSACTION_ASSET) + @JsonProperty(JSON_PROPERTY_ORIGINATOR_DID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTransactionAsset(@jakarta.annotation.Nullable String transactionAsset) { - this.transactionAsset = transactionAsset; + public void setOriginatorDid(@jakarta.annotation.Nullable String originatorDid) { + this.originatorDid = originatorDid; } - public TravelRuleValidateFullTransactionRequest transactionAmount( - @jakarta.annotation.Nullable String transactionAmount) { - this.transactionAmount = transactionAmount; + public TravelRuleValidateFullTransactionRequest beneficiaryDid( + @jakarta.annotation.Nullable String beneficiaryDid) { + this.beneficiaryDid = beneficiaryDid; return this; } /** - * Transaction amount in the transaction asset. For example, if the asset is BTC, the amount is - * the value in BTC units. By using the `notation` query string, users can select the - * type of amount notation: - `fireblocks`: Converts the amount to Fireblocks notation - * (e.g., adjusted for decimals). - `notabene`: Retains the original Notabene amount - * format. + * The DID of the transaction beneficiary * - * @return transactionAmount + * @return beneficiaryDid */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TRANSACTION_AMOUNT) + @JsonProperty(JSON_PROPERTY_BENEFICIARY_DID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getTransactionAmount() { - return transactionAmount; + public String getBeneficiaryDid() { + return beneficiaryDid; } - @JsonProperty(JSON_PROPERTY_TRANSACTION_AMOUNT) + @JsonProperty(JSON_PROPERTY_BENEFICIARY_DID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTransactionAmount(@jakarta.annotation.Nullable String transactionAmount) { - this.transactionAmount = transactionAmount; + public void setBeneficiaryDid(@jakarta.annotation.Nullable String beneficiaryDid) { + this.beneficiaryDid = beneficiaryDid; + } + + public TravelRuleValidateFullTransactionRequest originatorVASPdid( + @jakarta.annotation.Nullable String originatorVASPdid) { + this.originatorVASPdid = originatorVASPdid; + return this; + } + + /** + * The VASP ID of the transaction originator + * + * @return originatorVASPdid + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ORIGINATOR_V_A_S_PDID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getOriginatorVASPdid() { + return originatorVASPdid; + } + + @JsonProperty(JSON_PROPERTY_ORIGINATOR_V_A_S_PDID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setOriginatorVASPdid(@jakarta.annotation.Nullable String originatorVASPdid) { + this.originatorVASPdid = originatorVASPdid; } - public TravelRuleValidateFullTransactionRequest originatorVASPname( - @jakarta.annotation.Nullable String originatorVASPname) { - this.originatorVASPname = originatorVASPname; + public TravelRuleValidateFullTransactionRequest beneficiaryVASPdid( + @jakarta.annotation.Nullable String beneficiaryVASPdid) { + this.beneficiaryVASPdid = beneficiaryVASPdid; return this; } /** - * The name of the VASP acting as the transaction originator. + * The VASP ID of the transaction beneficiary * - * @return originatorVASPname + * @return beneficiaryVASPdid */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ORIGINATOR_V_A_S_PNAME) + @JsonProperty(JSON_PROPERTY_BENEFICIARY_V_A_S_PDID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getOriginatorVASPname() { - return originatorVASPname; + public String getBeneficiaryVASPdid() { + return beneficiaryVASPdid; } - @JsonProperty(JSON_PROPERTY_ORIGINATOR_V_A_S_PNAME) + @JsonProperty(JSON_PROPERTY_BENEFICIARY_V_A_S_PDID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOriginatorVASPname(@jakarta.annotation.Nullable String originatorVASPname) { - this.originatorVASPname = originatorVASPname; + public void setBeneficiaryVASPdid(@jakarta.annotation.Nullable String beneficiaryVASPdid) { + this.beneficiaryVASPdid = beneficiaryVASPdid; } public TravelRuleValidateFullTransactionRequest beneficiaryVASPname( @@ -316,7 +267,7 @@ public TravelRuleValidateFullTransactionRequest beneficiaryVASPname( } /** - * The name of the VASP acting as the transaction beneficiary. + * The name of the VASP acting as the beneficiary * * @return beneficiaryVASPname */ @@ -341,7 +292,7 @@ public TravelRuleValidateFullTransactionRequest transactionBlockchainInfo( } /** - * Get transactionBlockchainInfo + * Information about the blockchain transaction * * @return transactionBlockchainInfo */ @@ -361,50 +312,50 @@ public void setTransactionBlockchainInfo( } public TravelRuleValidateFullTransactionRequest originator( - @jakarta.annotation.Nonnull TravelRuleValidatePiiIVMS originator) { + @jakarta.annotation.Nonnull TravelRulePiiIVMS originator) { this.originator = originator; return this; } /** - * Get originator + * Information about the originator of the transaction * * @return originator */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ORIGINATOR) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TravelRuleValidatePiiIVMS getOriginator() { + public TravelRulePiiIVMS getOriginator() { return originator; } @JsonProperty(JSON_PROPERTY_ORIGINATOR) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setOriginator(@jakarta.annotation.Nonnull TravelRuleValidatePiiIVMS originator) { + public void setOriginator(@jakarta.annotation.Nonnull TravelRulePiiIVMS originator) { this.originator = originator; } public TravelRuleValidateFullTransactionRequest beneficiary( - @jakarta.annotation.Nonnull TravelRuleValidatePiiIVMS beneficiary) { + @jakarta.annotation.Nonnull TravelRulePiiIVMS beneficiary) { this.beneficiary = beneficiary; return this; } /** - * Get beneficiary + * Information about the beneficiary of the transaction * * @return beneficiary */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_BENEFICIARY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TravelRuleValidatePiiIVMS getBeneficiary() { + public TravelRulePiiIVMS getBeneficiary() { return beneficiary; } @JsonProperty(JSON_PROPERTY_BENEFICIARY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBeneficiary(@jakarta.annotation.Nonnull TravelRuleValidatePiiIVMS beneficiary) { + public void setBeneficiary(@jakarta.annotation.Nonnull TravelRulePiiIVMS beneficiary) { this.beneficiary = beneficiary; } @@ -415,7 +366,7 @@ public TravelRuleValidateFullTransactionRequest encrypted( } /** - * Encrypted data related to the transaction. + * Encrypted data related to the transaction * * @return encrypted */ @@ -433,29 +384,53 @@ public void setEncrypted(@jakarta.annotation.Nullable String encrypted) { } public TravelRuleValidateFullTransactionRequest protocol( - @jakarta.annotation.Nullable ProtocolEnum protocol) { + @jakarta.annotation.Nullable String protocol) { this.protocol = protocol; return this; } /** - * The protocol used to perform the travel rule. + * The protocol used to perform the travel rule * * @return protocol */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PROTOCOL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public ProtocolEnum getProtocol() { + public String getProtocol() { return protocol; } @JsonProperty(JSON_PROPERTY_PROTOCOL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setProtocol(@jakarta.annotation.Nullable ProtocolEnum protocol) { + public void setProtocol(@jakarta.annotation.Nullable String protocol) { this.protocol = protocol; } + public TravelRuleValidateFullTransactionRequest notificationEmail( + @jakarta.annotation.Nullable String notificationEmail) { + this.notificationEmail = notificationEmail; + return this; + } + + /** + * The email address where a notification should be sent upon completion of the travel rule + * + * @return notificationEmail + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_NOTIFICATION_EMAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getNotificationEmail() { + return notificationEmail; + } + + @JsonProperty(JSON_PROPERTY_NOTIFICATION_EMAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setNotificationEmail(@jakarta.annotation.Nullable String notificationEmail) { + this.notificationEmail = notificationEmail; + } + public TravelRuleValidateFullTransactionRequest skipBeneficiaryDataValidation( @jakarta.annotation.Nullable Boolean skipBeneficiaryDataValidation) { this.skipBeneficiaryDataValidation = skipBeneficiaryDataValidation; @@ -463,7 +438,7 @@ public TravelRuleValidateFullTransactionRequest skipBeneficiaryDataValidation( } /** - * Whether to skip validation of beneficiary data. + * Whether to skip validation of beneficiary data * * @return skipBeneficiaryDataValidation */ @@ -488,8 +463,8 @@ public TravelRuleValidateFullTransactionRequest travelRuleBehavior( } /** - * Whether to check if the transaction complies with the travel rule in the beneficiary - * VASP's jurisdiction. + * Whether to check if the transaction is a TRAVEL_RULE in the beneficiary VASP's + * jurisdiction * * @return travelRuleBehavior */ @@ -506,79 +481,6 @@ public void setTravelRuleBehavior(@jakarta.annotation.Nullable Boolean travelRul this.travelRuleBehavior = travelRuleBehavior; } - public TravelRuleValidateFullTransactionRequest originatorRef( - @jakarta.annotation.Nullable String originatorRef) { - this.originatorRef = originatorRef; - return this; - } - - /** - * A reference ID related to the originator of the transaction. - * - * @return originatorRef - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ORIGINATOR_REF) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getOriginatorRef() { - return originatorRef; - } - - @JsonProperty(JSON_PROPERTY_ORIGINATOR_REF) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOriginatorRef(@jakarta.annotation.Nullable String originatorRef) { - this.originatorRef = originatorRef; - } - - public TravelRuleValidateFullTransactionRequest beneficiaryRef( - @jakarta.annotation.Nullable String beneficiaryRef) { - this.beneficiaryRef = beneficiaryRef; - return this; - } - - /** - * A reference ID related to the beneficiary of the transaction. - * - * @return beneficiaryRef - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BENEFICIARY_REF) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getBeneficiaryRef() { - return beneficiaryRef; - } - - @JsonProperty(JSON_PROPERTY_BENEFICIARY_REF) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBeneficiaryRef(@jakarta.annotation.Nullable String beneficiaryRef) { - this.beneficiaryRef = beneficiaryRef; - } - - public TravelRuleValidateFullTransactionRequest travelRuleBehaviorRef( - @jakarta.annotation.Nullable String travelRuleBehaviorRef) { - this.travelRuleBehaviorRef = travelRuleBehaviorRef; - return this; - } - - /** - * A reference ID related to the travel rule behavior. - * - * @return travelRuleBehaviorRef - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TRAVEL_RULE_BEHAVIOR_REF) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getTravelRuleBehaviorRef() { - return travelRuleBehaviorRef; - } - - @JsonProperty(JSON_PROPERTY_TRAVEL_RULE_BEHAVIOR_REF) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTravelRuleBehaviorRef( - @jakarta.annotation.Nullable String travelRuleBehaviorRef) { - this.travelRuleBehaviorRef = travelRuleBehaviorRef; - } - public TravelRuleValidateFullTransactionRequest originatorProof( @jakarta.annotation.Nullable TravelRuleOwnershipProof originatorProof) { this.originatorProof = originatorProof; @@ -586,7 +488,7 @@ public TravelRuleValidateFullTransactionRequest originatorProof( } /** - * Get originatorProof + * Ownership proof related to the originator of the transaction * * @return originatorProof */ @@ -611,7 +513,7 @@ public TravelRuleValidateFullTransactionRequest beneficiaryProof( } /** - * Get beneficiaryProof + * Ownership proof related to the beneficiary of the transaction * * @return beneficiaryProof */ @@ -629,110 +531,6 @@ public void setBeneficiaryProof( this.beneficiaryProof = beneficiaryProof; } - public TravelRuleValidateFullTransactionRequest beneficiaryDid( - @jakarta.annotation.Nullable String beneficiaryDid) { - this.beneficiaryDid = beneficiaryDid; - return this; - } - - /** - * The Decentralized Identifier (DID) of the person at the receiving exchange (VASP). This - * identifier is generated when the customer is registered in the Notabene network, or - * automatically created based on the `beneficiaryRef`. - If neither - * `beneficiaryRef` nor `beneficiaryDid` is provided in the - * `txCreate` payload, a new random DID is generated for every transaction. - * - * @return beneficiaryDid - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BENEFICIARY_DID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getBeneficiaryDid() { - return beneficiaryDid; - } - - @JsonProperty(JSON_PROPERTY_BENEFICIARY_DID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBeneficiaryDid(@jakarta.annotation.Nullable String beneficiaryDid) { - this.beneficiaryDid = beneficiaryDid; - } - - public TravelRuleValidateFullTransactionRequest originatorDid( - @jakarta.annotation.Nullable String originatorDid) { - this.originatorDid = originatorDid; - return this; - } - - /** - * The Decentralized Identifier (DID) of the person at the exchange (VASP) who is requesting the - * withdrawal. This identifier is generated when the customer is registered in the Notabene - * network or automatically created based on the `originatorRef`. - If neither - * `originatorRef` nor `originatorDid` is provided in the - * `txCreate` payload, a new random DID is generated for every transaction. - * - * @return originatorDid - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ORIGINATOR_DID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getOriginatorDid() { - return originatorDid; - } - - @JsonProperty(JSON_PROPERTY_ORIGINATOR_DID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOriginatorDid(@jakarta.annotation.Nullable String originatorDid) { - this.originatorDid = originatorDid; - } - - public TravelRuleValidateFullTransactionRequest isNonCustodial( - @jakarta.annotation.Nullable Boolean isNonCustodial) { - this.isNonCustodial = isNonCustodial; - return this; - } - - /** - * Indicates if the transaction involves a non-custodial wallet. - * - * @return isNonCustodial - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_IS_NON_CUSTODIAL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getIsNonCustodial() { - return isNonCustodial; - } - - @JsonProperty(JSON_PROPERTY_IS_NON_CUSTODIAL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIsNonCustodial(@jakarta.annotation.Nullable Boolean isNonCustodial) { - this.isNonCustodial = isNonCustodial; - } - - public TravelRuleValidateFullTransactionRequest notificationEmail( - @jakarta.annotation.Nullable String notificationEmail) { - this.notificationEmail = notificationEmail; - return this; - } - - /** - * The email address where a notification should be sent upon completion of the travel rule - * - * @return notificationEmail - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NOTIFICATION_EMAIL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getNotificationEmail() { - return notificationEmail; - } - - @JsonProperty(JSON_PROPERTY_NOTIFICATION_EMAIL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNotificationEmail(@jakarta.annotation.Nullable String notificationEmail) { - this.notificationEmail = notificationEmail; - } - public TravelRuleValidateFullTransactionRequest pii( @jakarta.annotation.Nullable TravelRulePiiIVMS pii) { this.pii = pii; @@ -740,7 +538,7 @@ public TravelRuleValidateFullTransactionRequest pii( } /** - * Get pii + * Personal identifiable information related to the transaction * * @return pii */ @@ -757,30 +555,6 @@ public void setPii(@jakarta.annotation.Nullable TravelRulePiiIVMS pii) { this.pii = pii; } - public TravelRuleValidateFullTransactionRequest piiUrl( - @jakarta.annotation.Nullable String piiUrl) { - this.piiUrl = piiUrl; - return this; - } - - /** - * The URL of the personal identifiable information related to the transaction - * - * @return piiUrl - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PII_URL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getPiiUrl() { - return piiUrl; - } - - @JsonProperty(JSON_PROPERTY_PII_URL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPiiUrl(@jakarta.annotation.Nullable String piiUrl) { - this.piiUrl = piiUrl; - } - /** Return true if this TravelRuleValidateFullTransactionRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -793,20 +567,22 @@ public boolean equals(Object o) { TravelRuleValidateFullTransactionRequest travelRuleValidateFullTransactionRequest = (TravelRuleValidateFullTransactionRequest) o; return Objects.equals( - this.originatorVASPdid, - travelRuleValidateFullTransactionRequest.originatorVASPdid) - && Objects.equals( - this.beneficiaryVASPdid, - travelRuleValidateFullTransactionRequest.beneficiaryVASPdid) - && Objects.equals( this.transactionAsset, travelRuleValidateFullTransactionRequest.transactionAsset) && Objects.equals( this.transactionAmount, travelRuleValidateFullTransactionRequest.transactionAmount) && Objects.equals( - this.originatorVASPname, - travelRuleValidateFullTransactionRequest.originatorVASPname) + this.originatorDid, travelRuleValidateFullTransactionRequest.originatorDid) + && Objects.equals( + this.beneficiaryDid, + travelRuleValidateFullTransactionRequest.beneficiaryDid) + && Objects.equals( + this.originatorVASPdid, + travelRuleValidateFullTransactionRequest.originatorVASPdid) + && Objects.equals( + this.beneficiaryVASPdid, + travelRuleValidateFullTransactionRequest.beneficiaryVASPdid) && Objects.equals( this.beneficiaryVASPname, travelRuleValidateFullTransactionRequest.beneficiaryVASPname) @@ -820,87 +596,63 @@ public boolean equals(Object o) { && Objects.equals( this.encrypted, travelRuleValidateFullTransactionRequest.encrypted) && Objects.equals(this.protocol, travelRuleValidateFullTransactionRequest.protocol) + && Objects.equals( + this.notificationEmail, + travelRuleValidateFullTransactionRequest.notificationEmail) && Objects.equals( this.skipBeneficiaryDataValidation, travelRuleValidateFullTransactionRequest.skipBeneficiaryDataValidation) && Objects.equals( this.travelRuleBehavior, travelRuleValidateFullTransactionRequest.travelRuleBehavior) - && Objects.equals( - this.originatorRef, travelRuleValidateFullTransactionRequest.originatorRef) - && Objects.equals( - this.beneficiaryRef, - travelRuleValidateFullTransactionRequest.beneficiaryRef) - && Objects.equals( - this.travelRuleBehaviorRef, - travelRuleValidateFullTransactionRequest.travelRuleBehaviorRef) && Objects.equals( this.originatorProof, travelRuleValidateFullTransactionRequest.originatorProof) && Objects.equals( this.beneficiaryProof, travelRuleValidateFullTransactionRequest.beneficiaryProof) - && Objects.equals( - this.beneficiaryDid, - travelRuleValidateFullTransactionRequest.beneficiaryDid) - && Objects.equals( - this.originatorDid, travelRuleValidateFullTransactionRequest.originatorDid) - && Objects.equals( - this.isNonCustodial, - travelRuleValidateFullTransactionRequest.isNonCustodial) - && Objects.equals( - this.notificationEmail, - travelRuleValidateFullTransactionRequest.notificationEmail) - && Objects.equals(this.pii, travelRuleValidateFullTransactionRequest.pii) - && Objects.equals(this.piiUrl, travelRuleValidateFullTransactionRequest.piiUrl); + && Objects.equals(this.pii, travelRuleValidateFullTransactionRequest.pii); } @Override public int hashCode() { return Objects.hash( - originatorVASPdid, - beneficiaryVASPdid, transactionAsset, transactionAmount, - originatorVASPname, + originatorDid, + beneficiaryDid, + originatorVASPdid, + beneficiaryVASPdid, beneficiaryVASPname, transactionBlockchainInfo, originator, beneficiary, encrypted, protocol, + notificationEmail, skipBeneficiaryDataValidation, travelRuleBehavior, - originatorRef, - beneficiaryRef, - travelRuleBehaviorRef, originatorProof, beneficiaryProof, - beneficiaryDid, - originatorDid, - isNonCustodial, - notificationEmail, - pii, - piiUrl); + pii); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TravelRuleValidateFullTransactionRequest {\n"); + sb.append(" transactionAsset: ").append(toIndentedString(transactionAsset)).append("\n"); + sb.append(" transactionAmount: ") + .append(toIndentedString(transactionAmount)) + .append("\n"); + sb.append(" originatorDid: ").append(toIndentedString(originatorDid)).append("\n"); + sb.append(" beneficiaryDid: ").append(toIndentedString(beneficiaryDid)).append("\n"); sb.append(" originatorVASPdid: ") .append(toIndentedString(originatorVASPdid)) .append("\n"); sb.append(" beneficiaryVASPdid: ") .append(toIndentedString(beneficiaryVASPdid)) .append("\n"); - sb.append(" transactionAsset: ").append(toIndentedString(transactionAsset)).append("\n"); - sb.append(" transactionAmount: ") - .append(toIndentedString(transactionAmount)) - .append("\n"); - sb.append(" originatorVASPname: ") - .append(toIndentedString(originatorVASPname)) - .append("\n"); sb.append(" beneficiaryVASPname: ") .append(toIndentedString(beneficiaryVASPname)) .append("\n"); @@ -911,27 +663,18 @@ public String toString() { sb.append(" beneficiary: ").append(toIndentedString(beneficiary)).append("\n"); sb.append(" encrypted: ").append(toIndentedString(encrypted)).append("\n"); sb.append(" protocol: ").append(toIndentedString(protocol)).append("\n"); + sb.append(" notificationEmail: ") + .append(toIndentedString(notificationEmail)) + .append("\n"); sb.append(" skipBeneficiaryDataValidation: ") .append(toIndentedString(skipBeneficiaryDataValidation)) .append("\n"); sb.append(" travelRuleBehavior: ") .append(toIndentedString(travelRuleBehavior)) .append("\n"); - sb.append(" originatorRef: ").append(toIndentedString(originatorRef)).append("\n"); - sb.append(" beneficiaryRef: ").append(toIndentedString(beneficiaryRef)).append("\n"); - sb.append(" travelRuleBehaviorRef: ") - .append(toIndentedString(travelRuleBehaviorRef)) - .append("\n"); sb.append(" originatorProof: ").append(toIndentedString(originatorProof)).append("\n"); sb.append(" beneficiaryProof: ").append(toIndentedString(beneficiaryProof)).append("\n"); - sb.append(" beneficiaryDid: ").append(toIndentedString(beneficiaryDid)).append("\n"); - sb.append(" originatorDid: ").append(toIndentedString(originatorDid)).append("\n"); - sb.append(" isNonCustodial: ").append(toIndentedString(isNonCustodial)).append("\n"); - sb.append(" notificationEmail: ") - .append(toIndentedString(notificationEmail)) - .append("\n"); sb.append(" pii: ").append(toIndentedString(pii)).append("\n"); - sb.append(" piiUrl: ").append(toIndentedString(piiUrl)).append("\n"); sb.append("}"); return sb.toString(); } @@ -979,54 +722,64 @@ public String toUrlQueryString(String prefix) { StringJoiner joiner = new StringJoiner("&"); - // add `originatorVASPdid` to the URL query string - if (getOriginatorVASPdid() != null) { + // add `transactionAsset` to the URL query string + if (getTransactionAsset() != null) { joiner.add( String.format( - "%soriginatorVASPdid%s=%s", + "%stransactionAsset%s=%s", prefix, suffix, - ApiClient.urlEncode(ApiClient.valueToString(getOriginatorVASPdid())))); + ApiClient.urlEncode(ApiClient.valueToString(getTransactionAsset())))); } - // add `beneficiaryVASPdid` to the URL query string - if (getBeneficiaryVASPdid() != null) { + // add `transactionAmount` to the URL query string + if (getTransactionAmount() != null) { joiner.add( String.format( - "%sbeneficiaryVASPdid%s=%s", + "%stransactionAmount%s=%s", prefix, suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBeneficiaryVASPdid())))); + ApiClient.urlEncode(ApiClient.valueToString(getTransactionAmount())))); } - // add `transactionAsset` to the URL query string - if (getTransactionAsset() != null) { + // add `originatorDid` to the URL query string + if (getOriginatorDid() != null) { joiner.add( String.format( - "%stransactionAsset%s=%s", + "%soriginatorDid%s=%s", prefix, suffix, - ApiClient.urlEncode(ApiClient.valueToString(getTransactionAsset())))); + ApiClient.urlEncode(ApiClient.valueToString(getOriginatorDid())))); } - // add `transactionAmount` to the URL query string - if (getTransactionAmount() != null) { + // add `beneficiaryDid` to the URL query string + if (getBeneficiaryDid() != null) { joiner.add( String.format( - "%stransactionAmount%s=%s", + "%sbeneficiaryDid%s=%s", prefix, suffix, - ApiClient.urlEncode(ApiClient.valueToString(getTransactionAmount())))); + ApiClient.urlEncode(ApiClient.valueToString(getBeneficiaryDid())))); + } + + // add `originatorVASPdid` to the URL query string + if (getOriginatorVASPdid() != null) { + joiner.add( + String.format( + "%soriginatorVASPdid%s=%s", + prefix, + suffix, + ApiClient.urlEncode(ApiClient.valueToString(getOriginatorVASPdid())))); } - // add `originatorVASPname` to the URL query string - if (getOriginatorVASPname() != null) { + // add `beneficiaryVASPdid` to the URL query string + if (getBeneficiaryVASPdid() != null) { joiner.add( String.format( - "%soriginatorVASPname%s=%s", + "%sbeneficiaryVASPdid%s=%s", prefix, suffix, - ApiClient.urlEncode(ApiClient.valueToString(getOriginatorVASPname())))); + ApiClient.urlEncode(ApiClient.valueToString(getBeneficiaryVASPdid())))); } // add `beneficiaryVASPname` to the URL query string @@ -1077,6 +830,16 @@ public String toUrlQueryString(String prefix) { ApiClient.urlEncode(ApiClient.valueToString(getProtocol())))); } + // add `notificationEmail` to the URL query string + if (getNotificationEmail() != null) { + joiner.add( + String.format( + "%snotificationEmail%s=%s", + prefix, + suffix, + ApiClient.urlEncode(ApiClient.valueToString(getNotificationEmail())))); + } + // add `skipBeneficiaryDataValidation` to the URL query string if (getSkipBeneficiaryDataValidation() != null) { joiner.add( @@ -1098,37 +861,6 @@ public String toUrlQueryString(String prefix) { ApiClient.urlEncode(ApiClient.valueToString(getTravelRuleBehavior())))); } - // add `originatorRef` to the URL query string - if (getOriginatorRef() != null) { - joiner.add( - String.format( - "%soriginatorRef%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getOriginatorRef())))); - } - - // add `beneficiaryRef` to the URL query string - if (getBeneficiaryRef() != null) { - joiner.add( - String.format( - "%sbeneficiaryRef%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBeneficiaryRef())))); - } - - // add `travelRuleBehaviorRef` to the URL query string - if (getTravelRuleBehaviorRef() != null) { - joiner.add( - String.format( - "%stravelRuleBehaviorRef%s=%s", - prefix, - suffix, - ApiClient.urlEncode( - ApiClient.valueToString(getTravelRuleBehaviorRef())))); - } - // add `originatorProof` to the URL query string if (getOriginatorProof() != null) { joiner.add(getOriginatorProof().toUrlQueryString(prefix + "originatorProof" + suffix)); @@ -1140,61 +872,11 @@ public String toUrlQueryString(String prefix) { getBeneficiaryProof().toUrlQueryString(prefix + "beneficiaryProof" + suffix)); } - // add `beneficiaryDid` to the URL query string - if (getBeneficiaryDid() != null) { - joiner.add( - String.format( - "%sbeneficiaryDid%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBeneficiaryDid())))); - } - - // add `originatorDid` to the URL query string - if (getOriginatorDid() != null) { - joiner.add( - String.format( - "%soriginatorDid%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getOriginatorDid())))); - } - - // add `isNonCustodial` to the URL query string - if (getIsNonCustodial() != null) { - joiner.add( - String.format( - "%sisNonCustodial%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getIsNonCustodial())))); - } - - // add `notificationEmail` to the URL query string - if (getNotificationEmail() != null) { - joiner.add( - String.format( - "%snotificationEmail%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getNotificationEmail())))); - } - // add `pii` to the URL query string if (getPii() != null) { joiner.add(getPii().toUrlQueryString(prefix + "pii" + suffix)); } - // add `pii_url` to the URL query string - if (getPiiUrl() != null) { - joiner.add( - String.format( - "%spii_url%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getPiiUrl())))); - } - return joiner.toString(); } } diff --git a/src/main/java/com/fireblocks/sdk/model/TravelRuleValidateGeographicAddress.java b/src/main/java/com/fireblocks/sdk/model/TravelRuleValidateGeographicAddress.java deleted file mode 100644 index 67a6832f..00000000 --- a/src/main/java/com/fireblocks/sdk/model/TravelRuleValidateGeographicAddress.java +++ /dev/null @@ -1,828 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fireblocks.sdk.ApiClient; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** TravelRuleValidateGeographicAddress */ -@JsonPropertyOrder({ - TravelRuleValidateGeographicAddress.JSON_PROPERTY_STREET_NAME, - TravelRuleValidateGeographicAddress.JSON_PROPERTY_TOWN_NAME, - TravelRuleValidateGeographicAddress.JSON_PROPERTY_COUNTRY, - TravelRuleValidateGeographicAddress.JSON_PROPERTY_BUILDING_NUMBER, - TravelRuleValidateGeographicAddress.JSON_PROPERTY_POST_CODE, - TravelRuleValidateGeographicAddress.JSON_PROPERTY_ADDRESS_TYPE, - TravelRuleValidateGeographicAddress.JSON_PROPERTY_DEPARTMENT, - TravelRuleValidateGeographicAddress.JSON_PROPERTY_SUB_DEPARTMENT, - TravelRuleValidateGeographicAddress.JSON_PROPERTY_BUILDING_NAME, - TravelRuleValidateGeographicAddress.JSON_PROPERTY_FLOOR, - TravelRuleValidateGeographicAddress.JSON_PROPERTY_POST_BOX, - TravelRuleValidateGeographicAddress.JSON_PROPERTY_ROOM, - TravelRuleValidateGeographicAddress.JSON_PROPERTY_TOWN_LOCATION_NAME, - TravelRuleValidateGeographicAddress.JSON_PROPERTY_DISTRICT_NAME, - TravelRuleValidateGeographicAddress.JSON_PROPERTY_COUNTRY_SUB_DIVISION, - TravelRuleValidateGeographicAddress.JSON_PROPERTY_ADDRESS_LINE -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class TravelRuleValidateGeographicAddress { - public static final String JSON_PROPERTY_STREET_NAME = "streetName"; - @jakarta.annotation.Nullable private String streetName; - - public static final String JSON_PROPERTY_TOWN_NAME = "townName"; - @jakarta.annotation.Nullable private String townName; - - public static final String JSON_PROPERTY_COUNTRY = "country"; - @jakarta.annotation.Nullable private String country; - - public static final String JSON_PROPERTY_BUILDING_NUMBER = "buildingNumber"; - @jakarta.annotation.Nullable private String buildingNumber; - - public static final String JSON_PROPERTY_POST_CODE = "postCode"; - @jakarta.annotation.Nullable private String postCode; - - /** - * Specifies the type of address. Acceptable values are: - 'HOME': Residential, the home - * address - 'BIZZ': Business, the business address - 'GEOG': Geographic, an - * unspecified physical (geographical) address - */ - public enum AddressTypeEnum { - HOME(String.valueOf("HOME")), - - BIZZ(String.valueOf("BIZZ")), - - GEOG(String.valueOf("GEOG")); - - private String value; - - AddressTypeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static AddressTypeEnum fromValue(String value) { - for (AddressTypeEnum b : AddressTypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_ADDRESS_TYPE = "addressType"; - @jakarta.annotation.Nullable private AddressTypeEnum addressType; - - public static final String JSON_PROPERTY_DEPARTMENT = "department"; - @jakarta.annotation.Nullable private String department; - - public static final String JSON_PROPERTY_SUB_DEPARTMENT = "subDepartment"; - @jakarta.annotation.Nullable private String subDepartment; - - public static final String JSON_PROPERTY_BUILDING_NAME = "buildingName"; - @jakarta.annotation.Nullable private String buildingName; - - public static final String JSON_PROPERTY_FLOOR = "floor"; - @jakarta.annotation.Nullable private String floor; - - public static final String JSON_PROPERTY_POST_BOX = "postBox"; - @jakarta.annotation.Nullable private String postBox; - - public static final String JSON_PROPERTY_ROOM = "room"; - @jakarta.annotation.Nullable private String room; - - public static final String JSON_PROPERTY_TOWN_LOCATION_NAME = "townLocationName"; - @jakarta.annotation.Nullable private String townLocationName; - - public static final String JSON_PROPERTY_DISTRICT_NAME = "districtName"; - @jakarta.annotation.Nullable private String districtName; - - public static final String JSON_PROPERTY_COUNTRY_SUB_DIVISION = "countrySubDivision"; - @jakarta.annotation.Nullable private String countrySubDivision; - - public static final String JSON_PROPERTY_ADDRESS_LINE = "addressLine"; - @jakarta.annotation.Nullable private List addressLine = new ArrayList<>(); - - public TravelRuleValidateGeographicAddress() {} - - public TravelRuleValidateGeographicAddress streetName( - @jakarta.annotation.Nullable String streetName) { - this.streetName = streetName; - return this; - } - - /** - * Name of a street or thoroughfare - * - * @return streetName - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STREET_NAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getStreetName() { - return streetName; - } - - @JsonProperty(JSON_PROPERTY_STREET_NAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStreetName(@jakarta.annotation.Nullable String streetName) { - this.streetName = streetName; - } - - public TravelRuleValidateGeographicAddress townName( - @jakarta.annotation.Nullable String townName) { - this.townName = townName; - return this; - } - - /** - * Name of a built-up area, with defined boundaries, and a local government - * - * @return townName - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TOWN_NAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getTownName() { - return townName; - } - - @JsonProperty(JSON_PROPERTY_TOWN_NAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTownName(@jakarta.annotation.Nullable String townName) { - this.townName = townName; - } - - public TravelRuleValidateGeographicAddress country( - @jakarta.annotation.Nullable String country) { - this.country = country; - return this; - } - - /** - * Nation with its own government (ISO-3166 Alpha-2 country code) - * - * @return country - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COUNTRY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getCountry() { - return country; - } - - @JsonProperty(JSON_PROPERTY_COUNTRY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCountry(@jakarta.annotation.Nullable String country) { - this.country = country; - } - - public TravelRuleValidateGeographicAddress buildingNumber( - @jakarta.annotation.Nullable String buildingNumber) { - this.buildingNumber = buildingNumber; - return this; - } - - /** - * Number that identifies the position of a building on a street - * - * @return buildingNumber - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BUILDING_NUMBER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getBuildingNumber() { - return buildingNumber; - } - - @JsonProperty(JSON_PROPERTY_BUILDING_NUMBER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBuildingNumber(@jakarta.annotation.Nullable String buildingNumber) { - this.buildingNumber = buildingNumber; - } - - public TravelRuleValidateGeographicAddress postCode( - @jakarta.annotation.Nullable String postCode) { - this.postCode = postCode; - return this; - } - - /** - * Identifier consisting of a group of letters and/or numbers added to a postal address to - * assist the sorting of mail - * - * @return postCode - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_POST_CODE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getPostCode() { - return postCode; - } - - @JsonProperty(JSON_PROPERTY_POST_CODE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPostCode(@jakarta.annotation.Nullable String postCode) { - this.postCode = postCode; - } - - public TravelRuleValidateGeographicAddress addressType( - @jakarta.annotation.Nullable AddressTypeEnum addressType) { - this.addressType = addressType; - return this; - } - - /** - * Specifies the type of address. Acceptable values are: - 'HOME': Residential, the home - * address - 'BIZZ': Business, the business address - 'GEOG': Geographic, an - * unspecified physical (geographical) address - * - * @return addressType - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ADDRESS_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public AddressTypeEnum getAddressType() { - return addressType; - } - - @JsonProperty(JSON_PROPERTY_ADDRESS_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAddressType(@jakarta.annotation.Nullable AddressTypeEnum addressType) { - this.addressType = addressType; - } - - public TravelRuleValidateGeographicAddress department( - @jakarta.annotation.Nullable String department) { - this.department = department; - return this; - } - - /** - * Identification of a division of a large organisation or building - * - * @return department - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DEPARTMENT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getDepartment() { - return department; - } - - @JsonProperty(JSON_PROPERTY_DEPARTMENT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDepartment(@jakarta.annotation.Nullable String department) { - this.department = department; - } - - public TravelRuleValidateGeographicAddress subDepartment( - @jakarta.annotation.Nullable String subDepartment) { - this.subDepartment = subDepartment; - return this; - } - - /** - * Identification of a sub-division of a large organisation or building - * - * @return subDepartment - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SUB_DEPARTMENT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getSubDepartment() { - return subDepartment; - } - - @JsonProperty(JSON_PROPERTY_SUB_DEPARTMENT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSubDepartment(@jakarta.annotation.Nullable String subDepartment) { - this.subDepartment = subDepartment; - } - - public TravelRuleValidateGeographicAddress buildingName( - @jakarta.annotation.Nullable String buildingName) { - this.buildingName = buildingName; - return this; - } - - /** - * Name of the building or house - * - * @return buildingName - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BUILDING_NAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getBuildingName() { - return buildingName; - } - - @JsonProperty(JSON_PROPERTY_BUILDING_NAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBuildingName(@jakarta.annotation.Nullable String buildingName) { - this.buildingName = buildingName; - } - - public TravelRuleValidateGeographicAddress floor(@jakarta.annotation.Nullable String floor) { - this.floor = floor; - return this; - } - - /** - * Floor or storey within a building - * - * @return floor - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FLOOR) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getFloor() { - return floor; - } - - @JsonProperty(JSON_PROPERTY_FLOOR) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFloor(@jakarta.annotation.Nullable String floor) { - this.floor = floor; - } - - public TravelRuleValidateGeographicAddress postBox( - @jakarta.annotation.Nullable String postBox) { - this.postBox = postBox; - return this; - } - - /** - * Numbered box in a post office - * - * @return postBox - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_POST_BOX) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getPostBox() { - return postBox; - } - - @JsonProperty(JSON_PROPERTY_POST_BOX) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPostBox(@jakarta.annotation.Nullable String postBox) { - this.postBox = postBox; - } - - public TravelRuleValidateGeographicAddress room(@jakarta.annotation.Nullable String room) { - this.room = room; - return this; - } - - /** - * Building room number - * - * @return room - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ROOM) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getRoom() { - return room; - } - - @JsonProperty(JSON_PROPERTY_ROOM) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRoom(@jakarta.annotation.Nullable String room) { - this.room = room; - } - - public TravelRuleValidateGeographicAddress townLocationName( - @jakarta.annotation.Nullable String townLocationName) { - this.townLocationName = townLocationName; - return this; - } - - /** - * Specific location name within the town - * - * @return townLocationName - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TOWN_LOCATION_NAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getTownLocationName() { - return townLocationName; - } - - @JsonProperty(JSON_PROPERTY_TOWN_LOCATION_NAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTownLocationName(@jakarta.annotation.Nullable String townLocationName) { - this.townLocationName = townLocationName; - } - - public TravelRuleValidateGeographicAddress districtName( - @jakarta.annotation.Nullable String districtName) { - this.districtName = districtName; - return this; - } - - /** - * Identifies a subdivision within a country subdivision - * - * @return districtName - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DISTRICT_NAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getDistrictName() { - return districtName; - } - - @JsonProperty(JSON_PROPERTY_DISTRICT_NAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDistrictName(@jakarta.annotation.Nullable String districtName) { - this.districtName = districtName; - } - - public TravelRuleValidateGeographicAddress countrySubDivision( - @jakarta.annotation.Nullable String countrySubDivision) { - this.countrySubDivision = countrySubDivision; - return this; - } - - /** - * Identifies a subdivision of a country such as state, region, or province - * - * @return countrySubDivision - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COUNTRY_SUB_DIVISION) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getCountrySubDivision() { - return countrySubDivision; - } - - @JsonProperty(JSON_PROPERTY_COUNTRY_SUB_DIVISION) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCountrySubDivision(@jakarta.annotation.Nullable String countrySubDivision) { - this.countrySubDivision = countrySubDivision; - } - - public TravelRuleValidateGeographicAddress addressLine( - @jakarta.annotation.Nullable List addressLine) { - this.addressLine = addressLine; - return this; - } - - public TravelRuleValidateGeographicAddress addAddressLineItem(String addressLineItem) { - if (this.addressLine == null) { - this.addressLine = new ArrayList<>(); - } - this.addressLine.add(addressLineItem); - return this; - } - - /** - * Information that locates and identifies a specific address, presented in free format text - * - * @return addressLine - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ADDRESS_LINE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getAddressLine() { - return addressLine; - } - - @JsonProperty(JSON_PROPERTY_ADDRESS_LINE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAddressLine(@jakarta.annotation.Nullable List addressLine) { - this.addressLine = addressLine; - } - - /** Return true if this TravelRuleValidateGeographicAddress object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - TravelRuleValidateGeographicAddress travelRuleValidateGeographicAddress = - (TravelRuleValidateGeographicAddress) o; - return Objects.equals(this.streetName, travelRuleValidateGeographicAddress.streetName) - && Objects.equals(this.townName, travelRuleValidateGeographicAddress.townName) - && Objects.equals(this.country, travelRuleValidateGeographicAddress.country) - && Objects.equals( - this.buildingNumber, travelRuleValidateGeographicAddress.buildingNumber) - && Objects.equals(this.postCode, travelRuleValidateGeographicAddress.postCode) - && Objects.equals(this.addressType, travelRuleValidateGeographicAddress.addressType) - && Objects.equals(this.department, travelRuleValidateGeographicAddress.department) - && Objects.equals( - this.subDepartment, travelRuleValidateGeographicAddress.subDepartment) - && Objects.equals( - this.buildingName, travelRuleValidateGeographicAddress.buildingName) - && Objects.equals(this.floor, travelRuleValidateGeographicAddress.floor) - && Objects.equals(this.postBox, travelRuleValidateGeographicAddress.postBox) - && Objects.equals(this.room, travelRuleValidateGeographicAddress.room) - && Objects.equals( - this.townLocationName, travelRuleValidateGeographicAddress.townLocationName) - && Objects.equals( - this.districtName, travelRuleValidateGeographicAddress.districtName) - && Objects.equals( - this.countrySubDivision, - travelRuleValidateGeographicAddress.countrySubDivision) - && Objects.equals( - this.addressLine, travelRuleValidateGeographicAddress.addressLine); - } - - @Override - public int hashCode() { - return Objects.hash( - streetName, - townName, - country, - buildingNumber, - postCode, - addressType, - department, - subDepartment, - buildingName, - floor, - postBox, - room, - townLocationName, - districtName, - countrySubDivision, - addressLine); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class TravelRuleValidateGeographicAddress {\n"); - sb.append(" streetName: ").append(toIndentedString(streetName)).append("\n"); - sb.append(" townName: ").append(toIndentedString(townName)).append("\n"); - sb.append(" country: ").append(toIndentedString(country)).append("\n"); - sb.append(" buildingNumber: ").append(toIndentedString(buildingNumber)).append("\n"); - sb.append(" postCode: ").append(toIndentedString(postCode)).append("\n"); - sb.append(" addressType: ").append(toIndentedString(addressType)).append("\n"); - sb.append(" department: ").append(toIndentedString(department)).append("\n"); - sb.append(" subDepartment: ").append(toIndentedString(subDepartment)).append("\n"); - sb.append(" buildingName: ").append(toIndentedString(buildingName)).append("\n"); - sb.append(" floor: ").append(toIndentedString(floor)).append("\n"); - sb.append(" postBox: ").append(toIndentedString(postBox)).append("\n"); - sb.append(" room: ").append(toIndentedString(room)).append("\n"); - sb.append(" townLocationName: ").append(toIndentedString(townLocationName)).append("\n"); - sb.append(" districtName: ").append(toIndentedString(districtName)).append("\n"); - sb.append(" countrySubDivision: ") - .append(toIndentedString(countrySubDivision)) - .append("\n"); - sb.append(" addressLine: ").append(toIndentedString(addressLine)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `streetName` to the URL query string - if (getStreetName() != null) { - joiner.add( - String.format( - "%sstreetName%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getStreetName())))); - } - - // add `townName` to the URL query string - if (getTownName() != null) { - joiner.add( - String.format( - "%stownName%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getTownName())))); - } - - // add `country` to the URL query string - if (getCountry() != null) { - joiner.add( - String.format( - "%scountry%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getCountry())))); - } - - // add `buildingNumber` to the URL query string - if (getBuildingNumber() != null) { - joiner.add( - String.format( - "%sbuildingNumber%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBuildingNumber())))); - } - - // add `postCode` to the URL query string - if (getPostCode() != null) { - joiner.add( - String.format( - "%spostCode%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getPostCode())))); - } - - // add `addressType` to the URL query string - if (getAddressType() != null) { - joiner.add( - String.format( - "%saddressType%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAddressType())))); - } - - // add `department` to the URL query string - if (getDepartment() != null) { - joiner.add( - String.format( - "%sdepartment%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getDepartment())))); - } - - // add `subDepartment` to the URL query string - if (getSubDepartment() != null) { - joiner.add( - String.format( - "%ssubDepartment%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getSubDepartment())))); - } - - // add `buildingName` to the URL query string - if (getBuildingName() != null) { - joiner.add( - String.format( - "%sbuildingName%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBuildingName())))); - } - - // add `floor` to the URL query string - if (getFloor() != null) { - joiner.add( - String.format( - "%sfloor%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getFloor())))); - } - - // add `postBox` to the URL query string - if (getPostBox() != null) { - joiner.add( - String.format( - "%spostBox%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getPostBox())))); - } - - // add `room` to the URL query string - if (getRoom() != null) { - joiner.add( - String.format( - "%sroom%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getRoom())))); - } - - // add `townLocationName` to the URL query string - if (getTownLocationName() != null) { - joiner.add( - String.format( - "%stownLocationName%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getTownLocationName())))); - } - - // add `districtName` to the URL query string - if (getDistrictName() != null) { - joiner.add( - String.format( - "%sdistrictName%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getDistrictName())))); - } - - // add `countrySubDivision` to the URL query string - if (getCountrySubDivision() != null) { - joiner.add( - String.format( - "%scountrySubDivision%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getCountrySubDivision())))); - } - - // add `addressLine` to the URL query string - if (getAddressLine() != null) { - for (int i = 0; i < getAddressLine().size(); i++) { - joiner.add( - String.format( - "%saddressLine%s%s=%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode( - ApiClient.valueToString(getAddressLine().get(i))))); - } - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/TravelRuleValidateLegalPerson.java b/src/main/java/com/fireblocks/sdk/model/TravelRuleValidateLegalPerson.java deleted file mode 100644 index 1280bea7..00000000 --- a/src/main/java/com/fireblocks/sdk/model/TravelRuleValidateLegalPerson.java +++ /dev/null @@ -1,395 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** TravelRuleValidateLegalPerson */ -@JsonPropertyOrder({ - TravelRuleValidateLegalPerson.JSON_PROPERTY_NAME, - TravelRuleValidateLegalPerson.JSON_PROPERTY_GEOGRAPHIC_ADDRESS, - TravelRuleValidateLegalPerson.JSON_PROPERTY_NATIONAL_IDENTIFICATION, - TravelRuleValidateLegalPerson.JSON_PROPERTY_CUSTOMER_IDENTIFICATION, - TravelRuleValidateLegalPerson.JSON_PROPERTY_CUSTOMER_NUMBER, - TravelRuleValidateLegalPerson.JSON_PROPERTY_COUNTRY_OF_REGISTRATION -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class TravelRuleValidateLegalPerson { - public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nullable private TravelRuleValidateLegalPersonNameIdentifier name; - - public static final String JSON_PROPERTY_GEOGRAPHIC_ADDRESS = "geographicAddress"; - - @jakarta.annotation.Nullable - private List geographicAddress = new ArrayList<>(); - - public static final String JSON_PROPERTY_NATIONAL_IDENTIFICATION = "nationalIdentification"; - - @jakarta.annotation.Nullable - private TravelRuleValidateNationalIdentification nationalIdentification; - - public static final String JSON_PROPERTY_CUSTOMER_IDENTIFICATION = "customerIdentification"; - @jakarta.annotation.Nullable private String customerIdentification; - - public static final String JSON_PROPERTY_CUSTOMER_NUMBER = "customerNumber"; - @jakarta.annotation.Nullable private String customerNumber; - - public static final String JSON_PROPERTY_COUNTRY_OF_REGISTRATION = "countryOfRegistration"; - @jakarta.annotation.Nullable private String countryOfRegistration; - - public TravelRuleValidateLegalPerson() {} - - public TravelRuleValidateLegalPerson name( - @jakarta.annotation.Nullable TravelRuleValidateLegalPersonNameIdentifier name) { - this.name = name; - return this; - } - - /** - * Get name - * - * @return name - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public TravelRuleValidateLegalPersonNameIdentifier getName() { - return name; - } - - @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName( - @jakarta.annotation.Nullable TravelRuleValidateLegalPersonNameIdentifier name) { - this.name = name; - } - - public TravelRuleValidateLegalPerson geographicAddress( - @jakarta.annotation.Nullable - List geographicAddress) { - this.geographicAddress = geographicAddress; - return this; - } - - public TravelRuleValidateLegalPerson addGeographicAddressItem( - TravelRuleValidateGeographicAddress geographicAddressItem) { - if (this.geographicAddress == null) { - this.geographicAddress = new ArrayList<>(); - } - this.geographicAddress.add(geographicAddressItem); - return this; - } - - /** - * The array of geographic addresses associated with the legal person. - * - * @return geographicAddress - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_GEOGRAPHIC_ADDRESS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getGeographicAddress() { - return geographicAddress; - } - - @JsonProperty(JSON_PROPERTY_GEOGRAPHIC_ADDRESS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setGeographicAddress( - @jakarta.annotation.Nullable - List geographicAddress) { - this.geographicAddress = geographicAddress; - } - - public TravelRuleValidateLegalPerson nationalIdentification( - @jakarta.annotation.Nullable - TravelRuleValidateNationalIdentification nationalIdentification) { - this.nationalIdentification = nationalIdentification; - return this; - } - - /** - * Get nationalIdentification - * - * @return nationalIdentification - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NATIONAL_IDENTIFICATION) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public TravelRuleValidateNationalIdentification getNationalIdentification() { - return nationalIdentification; - } - - @JsonProperty(JSON_PROPERTY_NATIONAL_IDENTIFICATION) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNationalIdentification( - @jakarta.annotation.Nullable - TravelRuleValidateNationalIdentification nationalIdentification) { - this.nationalIdentification = nationalIdentification; - } - - public TravelRuleValidateLegalPerson customerIdentification( - @jakarta.annotation.Nullable String customerIdentification) { - this.customerIdentification = customerIdentification; - return this; - } - - /** - * A unique identifier that identifies the customer in the organization's context. - * - * @return customerIdentification - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CUSTOMER_IDENTIFICATION) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getCustomerIdentification() { - return customerIdentification; - } - - @JsonProperty(JSON_PROPERTY_CUSTOMER_IDENTIFICATION) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCustomerIdentification( - @jakarta.annotation.Nullable String customerIdentification) { - this.customerIdentification = customerIdentification; - } - - public TravelRuleValidateLegalPerson customerNumber( - @jakarta.annotation.Nullable String customerNumber) { - this.customerNumber = customerNumber; - return this; - } - - /** - * A distinct identifier that uniquely identifies the customer within the organization. - * - * @return customerNumber - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CUSTOMER_NUMBER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getCustomerNumber() { - return customerNumber; - } - - @JsonProperty(JSON_PROPERTY_CUSTOMER_NUMBER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCustomerNumber(@jakarta.annotation.Nullable String customerNumber) { - this.customerNumber = customerNumber; - } - - public TravelRuleValidateLegalPerson countryOfRegistration( - @jakarta.annotation.Nullable String countryOfRegistration) { - this.countryOfRegistration = countryOfRegistration; - return this; - } - - /** - * The ISO-3166 Alpha-2 country code where the legal person is registered. - * - * @return countryOfRegistration - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COUNTRY_OF_REGISTRATION) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getCountryOfRegistration() { - return countryOfRegistration; - } - - @JsonProperty(JSON_PROPERTY_COUNTRY_OF_REGISTRATION) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCountryOfRegistration( - @jakarta.annotation.Nullable String countryOfRegistration) { - this.countryOfRegistration = countryOfRegistration; - } - - /** Return true if this TravelRuleValidateLegalPerson object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - TravelRuleValidateLegalPerson travelRuleValidateLegalPerson = - (TravelRuleValidateLegalPerson) o; - return Objects.equals(this.name, travelRuleValidateLegalPerson.name) - && Objects.equals( - this.geographicAddress, travelRuleValidateLegalPerson.geographicAddress) - && Objects.equals( - this.nationalIdentification, - travelRuleValidateLegalPerson.nationalIdentification) - && Objects.equals( - this.customerIdentification, - travelRuleValidateLegalPerson.customerIdentification) - && Objects.equals(this.customerNumber, travelRuleValidateLegalPerson.customerNumber) - && Objects.equals( - this.countryOfRegistration, - travelRuleValidateLegalPerson.countryOfRegistration); - } - - @Override - public int hashCode() { - return Objects.hash( - name, - geographicAddress, - nationalIdentification, - customerIdentification, - customerNumber, - countryOfRegistration); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class TravelRuleValidateLegalPerson {\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" geographicAddress: ") - .append(toIndentedString(geographicAddress)) - .append("\n"); - sb.append(" nationalIdentification: ") - .append(toIndentedString(nationalIdentification)) - .append("\n"); - sb.append(" customerIdentification: ") - .append(toIndentedString(customerIdentification)) - .append("\n"); - sb.append(" customerNumber: ").append(toIndentedString(customerNumber)).append("\n"); - sb.append(" countryOfRegistration: ") - .append(toIndentedString(countryOfRegistration)) - .append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `name` to the URL query string - if (getName() != null) { - joiner.add(getName().toUrlQueryString(prefix + "name" + suffix)); - } - - // add `geographicAddress` to the URL query string - if (getGeographicAddress() != null) { - for (int i = 0; i < getGeographicAddress().size(); i++) { - if (getGeographicAddress().get(i) != null) { - joiner.add( - getGeographicAddress() - .get(i) - .toUrlQueryString( - String.format( - "%sgeographicAddress%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } - } - - // add `nationalIdentification` to the URL query string - if (getNationalIdentification() != null) { - joiner.add( - getNationalIdentification() - .toUrlQueryString(prefix + "nationalIdentification" + suffix)); - } - - // add `customerIdentification` to the URL query string - if (getCustomerIdentification() != null) { - joiner.add( - String.format( - "%scustomerIdentification%s=%s", - prefix, - suffix, - ApiClient.urlEncode( - ApiClient.valueToString(getCustomerIdentification())))); - } - - // add `customerNumber` to the URL query string - if (getCustomerNumber() != null) { - joiner.add( - String.format( - "%scustomerNumber%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getCustomerNumber())))); - } - - // add `countryOfRegistration` to the URL query string - if (getCountryOfRegistration() != null) { - joiner.add( - String.format( - "%scountryOfRegistration%s=%s", - prefix, - suffix, - ApiClient.urlEncode( - ApiClient.valueToString(getCountryOfRegistration())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/TravelRuleValidateLegalPersonNameIdentifier.java b/src/main/java/com/fireblocks/sdk/model/TravelRuleValidateLegalPersonNameIdentifier.java deleted file mode 100644 index 5d785c3f..00000000 --- a/src/main/java/com/fireblocks/sdk/model/TravelRuleValidateLegalPersonNameIdentifier.java +++ /dev/null @@ -1,239 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** TravelRuleValidateLegalPersonNameIdentifier */ -@JsonPropertyOrder({ - TravelRuleValidateLegalPersonNameIdentifier.JSON_PROPERTY_LEGAL_PERSON_NAME, - TravelRuleValidateLegalPersonNameIdentifier.JSON_PROPERTY_LEGAL_PERSON_NAME_IDENTIFIER_TYPE -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class TravelRuleValidateLegalPersonNameIdentifier { - public static final String JSON_PROPERTY_LEGAL_PERSON_NAME = "legalPersonName"; - @jakarta.annotation.Nullable private String legalPersonName; - - /** - * Specifies the type of name for a legal person. Acceptable values are: - 'REGISTERED': - * The official registered name. - 'TRADE': A trading name or DBA (Doing Business As) - * name. - 'OTHER': Any other type of name. - */ - public enum LegalPersonNameIdentifierTypeEnum { - REGISTERED(String.valueOf("REGISTERED")), - - TRADE(String.valueOf("TRADE")), - - OTHER(String.valueOf("OTHER")); - - private String value; - - LegalPersonNameIdentifierTypeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static LegalPersonNameIdentifierTypeEnum fromValue(String value) { - for (LegalPersonNameIdentifierTypeEnum b : LegalPersonNameIdentifierTypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_LEGAL_PERSON_NAME_IDENTIFIER_TYPE = - "legalPersonNameIdentifierType"; - - @jakarta.annotation.Nullable - private LegalPersonNameIdentifierTypeEnum legalPersonNameIdentifierType; - - public TravelRuleValidateLegalPersonNameIdentifier() {} - - public TravelRuleValidateLegalPersonNameIdentifier legalPersonName( - @jakarta.annotation.Nullable String legalPersonName) { - this.legalPersonName = legalPersonName; - return this; - } - - /** - * Name by which the legal person is known. - * - * @return legalPersonName - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_LEGAL_PERSON_NAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getLegalPersonName() { - return legalPersonName; - } - - @JsonProperty(JSON_PROPERTY_LEGAL_PERSON_NAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLegalPersonName(@jakarta.annotation.Nullable String legalPersonName) { - this.legalPersonName = legalPersonName; - } - - public TravelRuleValidateLegalPersonNameIdentifier legalPersonNameIdentifierType( - @jakarta.annotation.Nullable - LegalPersonNameIdentifierTypeEnum legalPersonNameIdentifierType) { - this.legalPersonNameIdentifierType = legalPersonNameIdentifierType; - return this; - } - - /** - * Specifies the type of name for a legal person. Acceptable values are: - 'REGISTERED': - * The official registered name. - 'TRADE': A trading name or DBA (Doing Business As) - * name. - 'OTHER': Any other type of name. - * - * @return legalPersonNameIdentifierType - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_LEGAL_PERSON_NAME_IDENTIFIER_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public LegalPersonNameIdentifierTypeEnum getLegalPersonNameIdentifierType() { - return legalPersonNameIdentifierType; - } - - @JsonProperty(JSON_PROPERTY_LEGAL_PERSON_NAME_IDENTIFIER_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLegalPersonNameIdentifierType( - @jakarta.annotation.Nullable - LegalPersonNameIdentifierTypeEnum legalPersonNameIdentifierType) { - this.legalPersonNameIdentifierType = legalPersonNameIdentifierType; - } - - /** Return true if this TravelRuleValidateLegalPersonNameIdentifier object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - TravelRuleValidateLegalPersonNameIdentifier travelRuleValidateLegalPersonNameIdentifier = - (TravelRuleValidateLegalPersonNameIdentifier) o; - return Objects.equals( - this.legalPersonName, - travelRuleValidateLegalPersonNameIdentifier.legalPersonName) - && Objects.equals( - this.legalPersonNameIdentifierType, - travelRuleValidateLegalPersonNameIdentifier.legalPersonNameIdentifierType); - } - - @Override - public int hashCode() { - return Objects.hash(legalPersonName, legalPersonNameIdentifierType); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class TravelRuleValidateLegalPersonNameIdentifier {\n"); - sb.append(" legalPersonName: ").append(toIndentedString(legalPersonName)).append("\n"); - sb.append(" legalPersonNameIdentifierType: ") - .append(toIndentedString(legalPersonNameIdentifierType)) - .append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `legalPersonName` to the URL query string - if (getLegalPersonName() != null) { - joiner.add( - String.format( - "%slegalPersonName%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getLegalPersonName())))); - } - - // add `legalPersonNameIdentifierType` to the URL query string - if (getLegalPersonNameIdentifierType() != null) { - joiner.add( - String.format( - "%slegalPersonNameIdentifierType%s=%s", - prefix, - suffix, - ApiClient.urlEncode( - ApiClient.valueToString(getLegalPersonNameIdentifierType())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/TravelRuleValidateNationalIdentification.java b/src/main/java/com/fireblocks/sdk/model/TravelRuleValidateNationalIdentification.java deleted file mode 100644 index fe081829..00000000 --- a/src/main/java/com/fireblocks/sdk/model/TravelRuleValidateNationalIdentification.java +++ /dev/null @@ -1,327 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** Represents a national identifier for a person or entity */ -@JsonPropertyOrder({ - TravelRuleValidateNationalIdentification.JSON_PROPERTY_COUNTRY_OF_ISSUE, - TravelRuleValidateNationalIdentification.JSON_PROPERTY_NATIONAL_IDENTIFIER, - TravelRuleValidateNationalIdentification.JSON_PROPERTY_NATIONAL_IDENTIFIER_TYPE, - TravelRuleValidateNationalIdentification.JSON_PROPERTY_REGISTRATION_AUTHORITY -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class TravelRuleValidateNationalIdentification { - public static final String JSON_PROPERTY_COUNTRY_OF_ISSUE = "countryOfIssue"; - @jakarta.annotation.Nullable private String countryOfIssue; - - public static final String JSON_PROPERTY_NATIONAL_IDENTIFIER = "nationalIdentifier"; - @jakarta.annotation.Nullable private String nationalIdentifier; - - /** - * Type of national identifier. Acceptable values include: - 'PASSPORT': Passport number - * - 'NATIONAL_ID': National identification number - 'TAX_ID': Tax - * identification number - 'SOCIAL_SECURITY': Social security number - */ - public enum NationalIdentifierTypeEnum { - PASSPORT(String.valueOf("PASSPORT")), - - NATIONAL_ID(String.valueOf("NATIONAL_ID")), - - TAX_ID(String.valueOf("TAX_ID")), - - SOCIAL_SECURITY(String.valueOf("SOCIAL_SECURITY")); - - private String value; - - NationalIdentifierTypeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static NationalIdentifierTypeEnum fromValue(String value) { - for (NationalIdentifierTypeEnum b : NationalIdentifierTypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_NATIONAL_IDENTIFIER_TYPE = "nationalIdentifierType"; - @jakarta.annotation.Nullable private NationalIdentifierTypeEnum nationalIdentifierType; - - public static final String JSON_PROPERTY_REGISTRATION_AUTHORITY = "registrationAuthority"; - @jakarta.annotation.Nullable private String registrationAuthority; - - public TravelRuleValidateNationalIdentification() {} - - public TravelRuleValidateNationalIdentification countryOfIssue( - @jakarta.annotation.Nullable String countryOfIssue) { - this.countryOfIssue = countryOfIssue; - return this; - } - - /** - * Country that issued the national identifier (ISO-3166 Alpha-2 country code) - * - * @return countryOfIssue - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COUNTRY_OF_ISSUE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getCountryOfIssue() { - return countryOfIssue; - } - - @JsonProperty(JSON_PROPERTY_COUNTRY_OF_ISSUE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCountryOfIssue(@jakarta.annotation.Nullable String countryOfIssue) { - this.countryOfIssue = countryOfIssue; - } - - public TravelRuleValidateNationalIdentification nationalIdentifier( - @jakarta.annotation.Nullable String nationalIdentifier) { - this.nationalIdentifier = nationalIdentifier; - return this; - } - - /** - * National identifier (max 35 characters) - * - * @return nationalIdentifier - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NATIONAL_IDENTIFIER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getNationalIdentifier() { - return nationalIdentifier; - } - - @JsonProperty(JSON_PROPERTY_NATIONAL_IDENTIFIER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNationalIdentifier(@jakarta.annotation.Nullable String nationalIdentifier) { - this.nationalIdentifier = nationalIdentifier; - } - - public TravelRuleValidateNationalIdentification nationalIdentifierType( - @jakarta.annotation.Nullable NationalIdentifierTypeEnum nationalIdentifierType) { - this.nationalIdentifierType = nationalIdentifierType; - return this; - } - - /** - * Type of national identifier. Acceptable values include: - 'PASSPORT': Passport number - * - 'NATIONAL_ID': National identification number - 'TAX_ID': Tax - * identification number - 'SOCIAL_SECURITY': Social security number - * - * @return nationalIdentifierType - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NATIONAL_IDENTIFIER_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public NationalIdentifierTypeEnum getNationalIdentifierType() { - return nationalIdentifierType; - } - - @JsonProperty(JSON_PROPERTY_NATIONAL_IDENTIFIER_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNationalIdentifierType( - @jakarta.annotation.Nullable NationalIdentifierTypeEnum nationalIdentifierType) { - this.nationalIdentifierType = nationalIdentifierType; - } - - public TravelRuleValidateNationalIdentification registrationAuthority( - @jakarta.annotation.Nullable String registrationAuthority) { - this.registrationAuthority = registrationAuthority; - return this; - } - - /** - * Registration authority (format -> RA followed by 6 digits) - * - * @return registrationAuthority - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_REGISTRATION_AUTHORITY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getRegistrationAuthority() { - return registrationAuthority; - } - - @JsonProperty(JSON_PROPERTY_REGISTRATION_AUTHORITY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRegistrationAuthority( - @jakarta.annotation.Nullable String registrationAuthority) { - this.registrationAuthority = registrationAuthority; - } - - /** Return true if this TravelRuleValidateNationalIdentification object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - TravelRuleValidateNationalIdentification travelRuleValidateNationalIdentification = - (TravelRuleValidateNationalIdentification) o; - return Objects.equals( - this.countryOfIssue, - travelRuleValidateNationalIdentification.countryOfIssue) - && Objects.equals( - this.nationalIdentifier, - travelRuleValidateNationalIdentification.nationalIdentifier) - && Objects.equals( - this.nationalIdentifierType, - travelRuleValidateNationalIdentification.nationalIdentifierType) - && Objects.equals( - this.registrationAuthority, - travelRuleValidateNationalIdentification.registrationAuthority); - } - - @Override - public int hashCode() { - return Objects.hash( - countryOfIssue, nationalIdentifier, nationalIdentifierType, registrationAuthority); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class TravelRuleValidateNationalIdentification {\n"); - sb.append(" countryOfIssue: ").append(toIndentedString(countryOfIssue)).append("\n"); - sb.append(" nationalIdentifier: ") - .append(toIndentedString(nationalIdentifier)) - .append("\n"); - sb.append(" nationalIdentifierType: ") - .append(toIndentedString(nationalIdentifierType)) - .append("\n"); - sb.append(" registrationAuthority: ") - .append(toIndentedString(registrationAuthority)) - .append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `countryOfIssue` to the URL query string - if (getCountryOfIssue() != null) { - joiner.add( - String.format( - "%scountryOfIssue%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getCountryOfIssue())))); - } - - // add `nationalIdentifier` to the URL query string - if (getNationalIdentifier() != null) { - joiner.add( - String.format( - "%snationalIdentifier%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getNationalIdentifier())))); - } - - // add `nationalIdentifierType` to the URL query string - if (getNationalIdentifierType() != null) { - joiner.add( - String.format( - "%snationalIdentifierType%s=%s", - prefix, - suffix, - ApiClient.urlEncode( - ApiClient.valueToString(getNationalIdentifierType())))); - } - - // add `registrationAuthority` to the URL query string - if (getRegistrationAuthority() != null) { - joiner.add( - String.format( - "%sregistrationAuthority%s=%s", - prefix, - suffix, - ApiClient.urlEncode( - ApiClient.valueToString(getRegistrationAuthority())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/TravelRuleValidateNaturalNameIdentifier.java b/src/main/java/com/fireblocks/sdk/model/TravelRuleValidateNaturalNameIdentifier.java deleted file mode 100644 index 00ce34af..00000000 --- a/src/main/java/com/fireblocks/sdk/model/TravelRuleValidateNaturalNameIdentifier.java +++ /dev/null @@ -1,292 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** TravelRuleValidateNaturalNameIdentifier */ -@JsonPropertyOrder({ - TravelRuleValidateNaturalNameIdentifier.JSON_PROPERTY_PRIMARY_IDENTIFIER, - TravelRuleValidateNaturalNameIdentifier.JSON_PROPERTY_SECONDARY_IDENTIFIER, - TravelRuleValidateNaturalNameIdentifier.JSON_PROPERTY_NAME_IDENTIFIER_TYPE -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class TravelRuleValidateNaturalNameIdentifier { - public static final String JSON_PROPERTY_PRIMARY_IDENTIFIER = "primaryIdentifier"; - @jakarta.annotation.Nullable private String primaryIdentifier; - - public static final String JSON_PROPERTY_SECONDARY_IDENTIFIER = "secondaryIdentifier"; - @jakarta.annotation.Nullable private String secondaryIdentifier; - - /** - * Specifies the type of name for a natural person. Acceptable values are: - 'ALIA': - * Alias name, a name other than the legal name by which a natural person is also known. - - * 'BIRT': Name at birth, the name given to a natural person at birth. - 'MAID': - * Maiden name, the original name of a natural person who has changed their name after marriage. - * - 'LEGL': Legal name, the name that identifies a natural person for legal, official, - * or administrative purposes. - 'MISC': Unspecified, a name by which a natural person - * may be known but cannot otherwise be categorized. - */ - public enum NameIdentifierTypeEnum { - ALIA(String.valueOf("ALIA")), - - BIRT(String.valueOf("BIRT")), - - MAID(String.valueOf("MAID")), - - LEGL(String.valueOf("LEGL")), - - MISC(String.valueOf("MISC")); - - private String value; - - NameIdentifierTypeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static NameIdentifierTypeEnum fromValue(String value) { - for (NameIdentifierTypeEnum b : NameIdentifierTypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_NAME_IDENTIFIER_TYPE = "nameIdentifierType"; - @jakarta.annotation.Nullable private NameIdentifierTypeEnum nameIdentifierType; - - public TravelRuleValidateNaturalNameIdentifier() {} - - public TravelRuleValidateNaturalNameIdentifier primaryIdentifier( - @jakarta.annotation.Nullable String primaryIdentifier) { - this.primaryIdentifier = primaryIdentifier; - return this; - } - - /** - * The primary identifier of the name - * - * @return primaryIdentifier - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PRIMARY_IDENTIFIER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getPrimaryIdentifier() { - return primaryIdentifier; - } - - @JsonProperty(JSON_PROPERTY_PRIMARY_IDENTIFIER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrimaryIdentifier(@jakarta.annotation.Nullable String primaryIdentifier) { - this.primaryIdentifier = primaryIdentifier; - } - - public TravelRuleValidateNaturalNameIdentifier secondaryIdentifier( - @jakarta.annotation.Nullable String secondaryIdentifier) { - this.secondaryIdentifier = secondaryIdentifier; - return this; - } - - /** - * The secondary identifier of the name - * - * @return secondaryIdentifier - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SECONDARY_IDENTIFIER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getSecondaryIdentifier() { - return secondaryIdentifier; - } - - @JsonProperty(JSON_PROPERTY_SECONDARY_IDENTIFIER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSecondaryIdentifier(@jakarta.annotation.Nullable String secondaryIdentifier) { - this.secondaryIdentifier = secondaryIdentifier; - } - - public TravelRuleValidateNaturalNameIdentifier nameIdentifierType( - @jakarta.annotation.Nullable NameIdentifierTypeEnum nameIdentifierType) { - this.nameIdentifierType = nameIdentifierType; - return this; - } - - /** - * Specifies the type of name for a natural person. Acceptable values are: - 'ALIA': - * Alias name, a name other than the legal name by which a natural person is also known. - - * 'BIRT': Name at birth, the name given to a natural person at birth. - 'MAID': - * Maiden name, the original name of a natural person who has changed their name after marriage. - * - 'LEGL': Legal name, the name that identifies a natural person for legal, official, - * or administrative purposes. - 'MISC': Unspecified, a name by which a natural person - * may be known but cannot otherwise be categorized. - * - * @return nameIdentifierType - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME_IDENTIFIER_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public NameIdentifierTypeEnum getNameIdentifierType() { - return nameIdentifierType; - } - - @JsonProperty(JSON_PROPERTY_NAME_IDENTIFIER_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNameIdentifierType( - @jakarta.annotation.Nullable NameIdentifierTypeEnum nameIdentifierType) { - this.nameIdentifierType = nameIdentifierType; - } - - /** Return true if this TravelRuleValidateNaturalNameIdentifier object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - TravelRuleValidateNaturalNameIdentifier travelRuleValidateNaturalNameIdentifier = - (TravelRuleValidateNaturalNameIdentifier) o; - return Objects.equals( - this.primaryIdentifier, - travelRuleValidateNaturalNameIdentifier.primaryIdentifier) - && Objects.equals( - this.secondaryIdentifier, - travelRuleValidateNaturalNameIdentifier.secondaryIdentifier) - && Objects.equals( - this.nameIdentifierType, - travelRuleValidateNaturalNameIdentifier.nameIdentifierType); - } - - @Override - public int hashCode() { - return Objects.hash(primaryIdentifier, secondaryIdentifier, nameIdentifierType); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class TravelRuleValidateNaturalNameIdentifier {\n"); - sb.append(" primaryIdentifier: ") - .append(toIndentedString(primaryIdentifier)) - .append("\n"); - sb.append(" secondaryIdentifier: ") - .append(toIndentedString(secondaryIdentifier)) - .append("\n"); - sb.append(" nameIdentifierType: ") - .append(toIndentedString(nameIdentifierType)) - .append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `primaryIdentifier` to the URL query string - if (getPrimaryIdentifier() != null) { - joiner.add( - String.format( - "%sprimaryIdentifier%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getPrimaryIdentifier())))); - } - - // add `secondaryIdentifier` to the URL query string - if (getSecondaryIdentifier() != null) { - joiner.add( - String.format( - "%ssecondaryIdentifier%s=%s", - prefix, - suffix, - ApiClient.urlEncode( - ApiClient.valueToString(getSecondaryIdentifier())))); - } - - // add `nameIdentifierType` to the URL query string - if (getNameIdentifierType() != null) { - joiner.add( - String.format( - "%snameIdentifierType%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getNameIdentifierType())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/TravelRuleValidateNaturalPerson.java b/src/main/java/com/fireblocks/sdk/model/TravelRuleValidateNaturalPerson.java deleted file mode 100644 index d885082d..00000000 --- a/src/main/java/com/fireblocks/sdk/model/TravelRuleValidateNaturalPerson.java +++ /dev/null @@ -1,469 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** TravelRuleValidateNaturalPerson */ -@JsonPropertyOrder({ - TravelRuleValidateNaturalPerson.JSON_PROPERTY_NAME, - TravelRuleValidateNaturalPerson.JSON_PROPERTY_GEOGRAPHIC_ADDRESS, - TravelRuleValidateNaturalPerson.JSON_PROPERTY_NATIONAL_IDENTIFICATION, - TravelRuleValidateNaturalPerson.JSON_PROPERTY_DATE_AND_PLACE_OF_BIRTH, - TravelRuleValidateNaturalPerson.JSON_PROPERTY_CUSTOMER_IDENTIFICATION, - TravelRuleValidateNaturalPerson.JSON_PROPERTY_COUNTRY_OF_RESIDENCE, - TravelRuleValidateNaturalPerson.JSON_PROPERTY_CUSTOMER_NUMBER -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class TravelRuleValidateNaturalPerson { - public static final String JSON_PROPERTY_NAME = "name"; - - @jakarta.annotation.Nullable - private List name = new ArrayList<>(); - - public static final String JSON_PROPERTY_GEOGRAPHIC_ADDRESS = "geographicAddress"; - - @jakarta.annotation.Nullable - private List geographicAddress = new ArrayList<>(); - - public static final String JSON_PROPERTY_NATIONAL_IDENTIFICATION = "nationalIdentification"; - - @jakarta.annotation.Nullable - private TravelRuleValidateNationalIdentification nationalIdentification; - - public static final String JSON_PROPERTY_DATE_AND_PLACE_OF_BIRTH = "dateAndPlaceOfBirth"; - @jakarta.annotation.Nullable private TravelRuleValidateDateAndPlaceOfBirth dateAndPlaceOfBirth; - - public static final String JSON_PROPERTY_CUSTOMER_IDENTIFICATION = "customerIdentification"; - @jakarta.annotation.Nullable private String customerIdentification; - - public static final String JSON_PROPERTY_COUNTRY_OF_RESIDENCE = "countryOfResidence"; - @jakarta.annotation.Nullable private String countryOfResidence; - - public static final String JSON_PROPERTY_CUSTOMER_NUMBER = "customerNumber"; - @jakarta.annotation.Nullable private String customerNumber; - - public TravelRuleValidateNaturalPerson() {} - - public TravelRuleValidateNaturalPerson name( - @jakarta.annotation.Nullable List name) { - this.name = name; - return this; - } - - public TravelRuleValidateNaturalPerson addNameItem( - TravelRuleValidateNaturalPersonNameIdentifier nameItem) { - if (this.name == null) { - this.name = new ArrayList<>(); - } - this.name.add(nameItem); - return this; - } - - /** - * An array of structured name identifiers for the natural person, referencing the - * TravelRuleNaturalPersonNameIdentifier schema. - * - * @return name - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getName() { - return name; - } - - @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName( - @jakarta.annotation.Nullable List name) { - this.name = name; - } - - public TravelRuleValidateNaturalPerson geographicAddress( - @jakarta.annotation.Nullable - List geographicAddress) { - this.geographicAddress = geographicAddress; - return this; - } - - public TravelRuleValidateNaturalPerson addGeographicAddressItem( - TravelRuleValidateGeographicAddress geographicAddressItem) { - if (this.geographicAddress == null) { - this.geographicAddress = new ArrayList<>(); - } - this.geographicAddress.add(geographicAddressItem); - return this; - } - - /** - * An array of geographic addresses associated with the natural person, referencing the - * TravelRuleGeographicAddress schema. - * - * @return geographicAddress - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_GEOGRAPHIC_ADDRESS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getGeographicAddress() { - return geographicAddress; - } - - @JsonProperty(JSON_PROPERTY_GEOGRAPHIC_ADDRESS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setGeographicAddress( - @jakarta.annotation.Nullable - List geographicAddress) { - this.geographicAddress = geographicAddress; - } - - public TravelRuleValidateNaturalPerson nationalIdentification( - @jakarta.annotation.Nullable - TravelRuleValidateNationalIdentification nationalIdentification) { - this.nationalIdentification = nationalIdentification; - return this; - } - - /** - * Get nationalIdentification - * - * @return nationalIdentification - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NATIONAL_IDENTIFICATION) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public TravelRuleValidateNationalIdentification getNationalIdentification() { - return nationalIdentification; - } - - @JsonProperty(JSON_PROPERTY_NATIONAL_IDENTIFICATION) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNationalIdentification( - @jakarta.annotation.Nullable - TravelRuleValidateNationalIdentification nationalIdentification) { - this.nationalIdentification = nationalIdentification; - } - - public TravelRuleValidateNaturalPerson dateAndPlaceOfBirth( - @jakarta.annotation.Nullable - TravelRuleValidateDateAndPlaceOfBirth dateAndPlaceOfBirth) { - this.dateAndPlaceOfBirth = dateAndPlaceOfBirth; - return this; - } - - /** - * Get dateAndPlaceOfBirth - * - * @return dateAndPlaceOfBirth - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATE_AND_PLACE_OF_BIRTH) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public TravelRuleValidateDateAndPlaceOfBirth getDateAndPlaceOfBirth() { - return dateAndPlaceOfBirth; - } - - @JsonProperty(JSON_PROPERTY_DATE_AND_PLACE_OF_BIRTH) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDateAndPlaceOfBirth( - @jakarta.annotation.Nullable - TravelRuleValidateDateAndPlaceOfBirth dateAndPlaceOfBirth) { - this.dateAndPlaceOfBirth = dateAndPlaceOfBirth; - } - - public TravelRuleValidateNaturalPerson customerIdentification( - @jakarta.annotation.Nullable String customerIdentification) { - this.customerIdentification = customerIdentification; - return this; - } - - /** - * A unique identifier for the customer within the organization's context. - * - * @return customerIdentification - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CUSTOMER_IDENTIFICATION) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getCustomerIdentification() { - return customerIdentification; - } - - @JsonProperty(JSON_PROPERTY_CUSTOMER_IDENTIFICATION) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCustomerIdentification( - @jakarta.annotation.Nullable String customerIdentification) { - this.customerIdentification = customerIdentification; - } - - public TravelRuleValidateNaturalPerson countryOfResidence( - @jakarta.annotation.Nullable String countryOfResidence) { - this.countryOfResidence = countryOfResidence; - return this; - } - - /** - * The ISO-3166 Alpha-2 country code of the natural person's residence. - * - * @return countryOfResidence - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COUNTRY_OF_RESIDENCE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getCountryOfResidence() { - return countryOfResidence; - } - - @JsonProperty(JSON_PROPERTY_COUNTRY_OF_RESIDENCE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCountryOfResidence(@jakarta.annotation.Nullable String countryOfResidence) { - this.countryOfResidence = countryOfResidence; - } - - public TravelRuleValidateNaturalPerson customerNumber( - @jakarta.annotation.Nullable String customerNumber) { - this.customerNumber = customerNumber; - return this; - } - - /** - * A distinct identifier that uniquely identifies the customer within the organization. - * - * @return customerNumber - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CUSTOMER_NUMBER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getCustomerNumber() { - return customerNumber; - } - - @JsonProperty(JSON_PROPERTY_CUSTOMER_NUMBER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCustomerNumber(@jakarta.annotation.Nullable String customerNumber) { - this.customerNumber = customerNumber; - } - - /** Return true if this TravelRuleValidateNaturalPerson object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - TravelRuleValidateNaturalPerson travelRuleValidateNaturalPerson = - (TravelRuleValidateNaturalPerson) o; - return Objects.equals(this.name, travelRuleValidateNaturalPerson.name) - && Objects.equals( - this.geographicAddress, travelRuleValidateNaturalPerson.geographicAddress) - && Objects.equals( - this.nationalIdentification, - travelRuleValidateNaturalPerson.nationalIdentification) - && Objects.equals( - this.dateAndPlaceOfBirth, - travelRuleValidateNaturalPerson.dateAndPlaceOfBirth) - && Objects.equals( - this.customerIdentification, - travelRuleValidateNaturalPerson.customerIdentification) - && Objects.equals( - this.countryOfResidence, travelRuleValidateNaturalPerson.countryOfResidence) - && Objects.equals( - this.customerNumber, travelRuleValidateNaturalPerson.customerNumber); - } - - @Override - public int hashCode() { - return Objects.hash( - name, - geographicAddress, - nationalIdentification, - dateAndPlaceOfBirth, - customerIdentification, - countryOfResidence, - customerNumber); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class TravelRuleValidateNaturalPerson {\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" geographicAddress: ") - .append(toIndentedString(geographicAddress)) - .append("\n"); - sb.append(" nationalIdentification: ") - .append(toIndentedString(nationalIdentification)) - .append("\n"); - sb.append(" dateAndPlaceOfBirth: ") - .append(toIndentedString(dateAndPlaceOfBirth)) - .append("\n"); - sb.append(" customerIdentification: ") - .append(toIndentedString(customerIdentification)) - .append("\n"); - sb.append(" countryOfResidence: ") - .append(toIndentedString(countryOfResidence)) - .append("\n"); - sb.append(" customerNumber: ").append(toIndentedString(customerNumber)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `name` to the URL query string - if (getName() != null) { - for (int i = 0; i < getName().size(); i++) { - if (getName().get(i) != null) { - joiner.add( - getName() - .get(i) - .toUrlQueryString( - String.format( - "%sname%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } - } - - // add `geographicAddress` to the URL query string - if (getGeographicAddress() != null) { - for (int i = 0; i < getGeographicAddress().size(); i++) { - if (getGeographicAddress().get(i) != null) { - joiner.add( - getGeographicAddress() - .get(i) - .toUrlQueryString( - String.format( - "%sgeographicAddress%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } - } - - // add `nationalIdentification` to the URL query string - if (getNationalIdentification() != null) { - joiner.add( - getNationalIdentification() - .toUrlQueryString(prefix + "nationalIdentification" + suffix)); - } - - // add `dateAndPlaceOfBirth` to the URL query string - if (getDateAndPlaceOfBirth() != null) { - joiner.add( - getDateAndPlaceOfBirth() - .toUrlQueryString(prefix + "dateAndPlaceOfBirth" + suffix)); - } - - // add `customerIdentification` to the URL query string - if (getCustomerIdentification() != null) { - joiner.add( - String.format( - "%scustomerIdentification%s=%s", - prefix, - suffix, - ApiClient.urlEncode( - ApiClient.valueToString(getCustomerIdentification())))); - } - - // add `countryOfResidence` to the URL query string - if (getCountryOfResidence() != null) { - joiner.add( - String.format( - "%scountryOfResidence%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getCountryOfResidence())))); - } - - // add `customerNumber` to the URL query string - if (getCustomerNumber() != null) { - joiner.add( - String.format( - "%scustomerNumber%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getCustomerNumber())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/TravelRuleValidateNaturalPersonNameIdentifier.java b/src/main/java/com/fireblocks/sdk/model/TravelRuleValidateNaturalPersonNameIdentifier.java deleted file mode 100644 index a8e249a8..00000000 --- a/src/main/java/com/fireblocks/sdk/model/TravelRuleValidateNaturalPersonNameIdentifier.java +++ /dev/null @@ -1,317 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** TravelRuleValidateNaturalPersonNameIdentifier */ -@JsonPropertyOrder({ - TravelRuleValidateNaturalPersonNameIdentifier.JSON_PROPERTY_NAME_IDENTIFIER, - TravelRuleValidateNaturalPersonNameIdentifier.JSON_PROPERTY_LOCAL_NAME_IDENTIFIER, - TravelRuleValidateNaturalPersonNameIdentifier.JSON_PROPERTY_PHONETIC_NAME_IDENTIFIER -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class TravelRuleValidateNaturalPersonNameIdentifier { - public static final String JSON_PROPERTY_NAME_IDENTIFIER = "nameIdentifier"; - - @jakarta.annotation.Nullable - private List nameIdentifier = new ArrayList<>(); - - public static final String JSON_PROPERTY_LOCAL_NAME_IDENTIFIER = "localNameIdentifier"; - - @jakarta.annotation.Nullable - private List localNameIdentifier = new ArrayList<>(); - - public static final String JSON_PROPERTY_PHONETIC_NAME_IDENTIFIER = "phoneticNameIdentifier"; - - @jakarta.annotation.Nullable - private List phoneticNameIdentifier = - new ArrayList<>(); - - public TravelRuleValidateNaturalPersonNameIdentifier() {} - - public TravelRuleValidateNaturalPersonNameIdentifier nameIdentifier( - @jakarta.annotation.Nullable - List nameIdentifier) { - this.nameIdentifier = nameIdentifier; - return this; - } - - public TravelRuleValidateNaturalPersonNameIdentifier addNameIdentifierItem( - TravelRuleValidateNaturalNameIdentifier nameIdentifierItem) { - if (this.nameIdentifier == null) { - this.nameIdentifier = new ArrayList<>(); - } - this.nameIdentifier.add(nameIdentifierItem); - return this; - } - - /** - * Get nameIdentifier - * - * @return nameIdentifier - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME_IDENTIFIER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getNameIdentifier() { - return nameIdentifier; - } - - @JsonProperty(JSON_PROPERTY_NAME_IDENTIFIER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNameIdentifier( - @jakarta.annotation.Nullable - List nameIdentifier) { - this.nameIdentifier = nameIdentifier; - } - - public TravelRuleValidateNaturalPersonNameIdentifier localNameIdentifier( - @jakarta.annotation.Nullable - List localNameIdentifier) { - this.localNameIdentifier = localNameIdentifier; - return this; - } - - public TravelRuleValidateNaturalPersonNameIdentifier addLocalNameIdentifierItem( - TravelRuleValidateNaturalNameIdentifier localNameIdentifierItem) { - if (this.localNameIdentifier == null) { - this.localNameIdentifier = new ArrayList<>(); - } - this.localNameIdentifier.add(localNameIdentifierItem); - return this; - } - - /** - * Get localNameIdentifier - * - * @return localNameIdentifier - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_LOCAL_NAME_IDENTIFIER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getLocalNameIdentifier() { - return localNameIdentifier; - } - - @JsonProperty(JSON_PROPERTY_LOCAL_NAME_IDENTIFIER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLocalNameIdentifier( - @jakarta.annotation.Nullable - List localNameIdentifier) { - this.localNameIdentifier = localNameIdentifier; - } - - public TravelRuleValidateNaturalPersonNameIdentifier phoneticNameIdentifier( - @jakarta.annotation.Nullable - List phoneticNameIdentifier) { - this.phoneticNameIdentifier = phoneticNameIdentifier; - return this; - } - - public TravelRuleValidateNaturalPersonNameIdentifier addPhoneticNameIdentifierItem( - TravelRuleValidateNaturalNameIdentifier phoneticNameIdentifierItem) { - if (this.phoneticNameIdentifier == null) { - this.phoneticNameIdentifier = new ArrayList<>(); - } - this.phoneticNameIdentifier.add(phoneticNameIdentifierItem); - return this; - } - - /** - * Get phoneticNameIdentifier - * - * @return phoneticNameIdentifier - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PHONETIC_NAME_IDENTIFIER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getPhoneticNameIdentifier() { - return phoneticNameIdentifier; - } - - @JsonProperty(JSON_PROPERTY_PHONETIC_NAME_IDENTIFIER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPhoneticNameIdentifier( - @jakarta.annotation.Nullable - List phoneticNameIdentifier) { - this.phoneticNameIdentifier = phoneticNameIdentifier; - } - - /** Return true if this TravelRuleValidateNaturalPersonNameIdentifier object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - TravelRuleValidateNaturalPersonNameIdentifier - travelRuleValidateNaturalPersonNameIdentifier = - (TravelRuleValidateNaturalPersonNameIdentifier) o; - return Objects.equals( - this.nameIdentifier, - travelRuleValidateNaturalPersonNameIdentifier.nameIdentifier) - && Objects.equals( - this.localNameIdentifier, - travelRuleValidateNaturalPersonNameIdentifier.localNameIdentifier) - && Objects.equals( - this.phoneticNameIdentifier, - travelRuleValidateNaturalPersonNameIdentifier.phoneticNameIdentifier); - } - - @Override - public int hashCode() { - return Objects.hash(nameIdentifier, localNameIdentifier, phoneticNameIdentifier); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class TravelRuleValidateNaturalPersonNameIdentifier {\n"); - sb.append(" nameIdentifier: ").append(toIndentedString(nameIdentifier)).append("\n"); - sb.append(" localNameIdentifier: ") - .append(toIndentedString(localNameIdentifier)) - .append("\n"); - sb.append(" phoneticNameIdentifier: ") - .append(toIndentedString(phoneticNameIdentifier)) - .append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `nameIdentifier` to the URL query string - if (getNameIdentifier() != null) { - for (int i = 0; i < getNameIdentifier().size(); i++) { - if (getNameIdentifier().get(i) != null) { - joiner.add( - getNameIdentifier() - .get(i) - .toUrlQueryString( - String.format( - "%snameIdentifier%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } - } - - // add `localNameIdentifier` to the URL query string - if (getLocalNameIdentifier() != null) { - for (int i = 0; i < getLocalNameIdentifier().size(); i++) { - if (getLocalNameIdentifier().get(i) != null) { - joiner.add( - getLocalNameIdentifier() - .get(i) - .toUrlQueryString( - String.format( - "%slocalNameIdentifier%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } - } - - // add `phoneticNameIdentifier` to the URL query string - if (getPhoneticNameIdentifier() != null) { - for (int i = 0; i < getPhoneticNameIdentifier().size(); i++) { - if (getPhoneticNameIdentifier().get(i) != null) { - joiner.add( - getPhoneticNameIdentifier() - .get(i) - .toUrlQueryString( - String.format( - "%sphoneticNameIdentifier%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/TravelRuleValidatePerson.java b/src/main/java/com/fireblocks/sdk/model/TravelRuleValidatePerson.java deleted file mode 100644 index 5fb08c3f..00000000 --- a/src/main/java/com/fireblocks/sdk/model/TravelRuleValidatePerson.java +++ /dev/null @@ -1,173 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.Objects; -import java.util.StringJoiner; - -/** TravelRuleValidatePerson */ -@JsonPropertyOrder({ - TravelRuleValidatePerson.JSON_PROPERTY_NATURAL_PERSON, - TravelRuleValidatePerson.JSON_PROPERTY_LEGAL_PERSON -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class TravelRuleValidatePerson { - public static final String JSON_PROPERTY_NATURAL_PERSON = "naturalPerson"; - @jakarta.annotation.Nullable private TravelRuleValidateNaturalPerson naturalPerson; - - public static final String JSON_PROPERTY_LEGAL_PERSON = "legalPerson"; - @jakarta.annotation.Nullable private TravelRuleValidateLegalPerson legalPerson; - - public TravelRuleValidatePerson() {} - - public TravelRuleValidatePerson naturalPerson( - @jakarta.annotation.Nullable TravelRuleValidateNaturalPerson naturalPerson) { - this.naturalPerson = naturalPerson; - return this; - } - - /** - * Get naturalPerson - * - * @return naturalPerson - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NATURAL_PERSON) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public TravelRuleValidateNaturalPerson getNaturalPerson() { - return naturalPerson; - } - - @JsonProperty(JSON_PROPERTY_NATURAL_PERSON) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNaturalPerson( - @jakarta.annotation.Nullable TravelRuleValidateNaturalPerson naturalPerson) { - this.naturalPerson = naturalPerson; - } - - public TravelRuleValidatePerson legalPerson( - @jakarta.annotation.Nullable TravelRuleValidateLegalPerson legalPerson) { - this.legalPerson = legalPerson; - return this; - } - - /** - * Get legalPerson - * - * @return legalPerson - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_LEGAL_PERSON) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public TravelRuleValidateLegalPerson getLegalPerson() { - return legalPerson; - } - - @JsonProperty(JSON_PROPERTY_LEGAL_PERSON) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLegalPerson( - @jakarta.annotation.Nullable TravelRuleValidateLegalPerson legalPerson) { - this.legalPerson = legalPerson; - } - - /** Return true if this TravelRuleValidatePerson object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - TravelRuleValidatePerson travelRuleValidatePerson = (TravelRuleValidatePerson) o; - return Objects.equals(this.naturalPerson, travelRuleValidatePerson.naturalPerson) - && Objects.equals(this.legalPerson, travelRuleValidatePerson.legalPerson); - } - - @Override - public int hashCode() { - return Objects.hash(naturalPerson, legalPerson); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class TravelRuleValidatePerson {\n"); - sb.append(" naturalPerson: ").append(toIndentedString(naturalPerson)).append("\n"); - sb.append(" legalPerson: ").append(toIndentedString(legalPerson)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `naturalPerson` to the URL query string - if (getNaturalPerson() != null) { - joiner.add(getNaturalPerson().toUrlQueryString(prefix + "naturalPerson" + suffix)); - } - - // add `legalPerson` to the URL query string - if (getLegalPerson() != null) { - joiner.add(getLegalPerson().toUrlQueryString(prefix + "legalPerson" + suffix)); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/TravelRuleValidatePiiIVMS.java b/src/main/java/com/fireblocks/sdk/model/TravelRuleValidatePiiIVMS.java deleted file mode 100644 index 9ca0da25..00000000 --- a/src/main/java/com/fireblocks/sdk/model/TravelRuleValidatePiiIVMS.java +++ /dev/null @@ -1,294 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** Information about the originator of the transaction. */ -@JsonPropertyOrder({ - TravelRuleValidatePiiIVMS.JSON_PROPERTY_ORIGINATOR_PERSONS, - TravelRuleValidatePiiIVMS.JSON_PROPERTY_BENEFICIARY_PERSONS, - TravelRuleValidatePiiIVMS.JSON_PROPERTY_ACCOUNT_NUMBER -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class TravelRuleValidatePiiIVMS { - public static final String JSON_PROPERTY_ORIGINATOR_PERSONS = "originatorPersons"; - - @jakarta.annotation.Nullable - private List originatorPersons = new ArrayList<>(); - - public static final String JSON_PROPERTY_BENEFICIARY_PERSONS = "beneficiaryPersons"; - - @jakarta.annotation.Nullable - private List beneficiaryPersons = new ArrayList<>(); - - public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; - @jakarta.annotation.Nullable private List accountNumber = new ArrayList<>(); - - public TravelRuleValidatePiiIVMS() {} - - public TravelRuleValidatePiiIVMS originatorPersons( - @jakarta.annotation.Nullable List originatorPersons) { - this.originatorPersons = originatorPersons; - return this; - } - - public TravelRuleValidatePiiIVMS addOriginatorPersonsItem( - TravelRuleValidatePerson originatorPersonsItem) { - if (this.originatorPersons == null) { - this.originatorPersons = new ArrayList<>(); - } - this.originatorPersons.add(originatorPersonsItem); - return this; - } - - /** - * Information about the originator of the transaction - * - * @return originatorPersons - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ORIGINATOR_PERSONS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getOriginatorPersons() { - return originatorPersons; - } - - @JsonProperty(JSON_PROPERTY_ORIGINATOR_PERSONS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOriginatorPersons( - @jakarta.annotation.Nullable List originatorPersons) { - this.originatorPersons = originatorPersons; - } - - public TravelRuleValidatePiiIVMS beneficiaryPersons( - @jakarta.annotation.Nullable List beneficiaryPersons) { - this.beneficiaryPersons = beneficiaryPersons; - return this; - } - - public TravelRuleValidatePiiIVMS addBeneficiaryPersonsItem( - TravelRuleValidatePerson beneficiaryPersonsItem) { - if (this.beneficiaryPersons == null) { - this.beneficiaryPersons = new ArrayList<>(); - } - this.beneficiaryPersons.add(beneficiaryPersonsItem); - return this; - } - - /** - * Information about the beneficiary of the transaction - * - * @return beneficiaryPersons - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BENEFICIARY_PERSONS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getBeneficiaryPersons() { - return beneficiaryPersons; - } - - @JsonProperty(JSON_PROPERTY_BENEFICIARY_PERSONS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBeneficiaryPersons( - @jakarta.annotation.Nullable List beneficiaryPersons) { - this.beneficiaryPersons = beneficiaryPersons; - } - - public TravelRuleValidatePiiIVMS accountNumber( - @jakarta.annotation.Nullable List accountNumber) { - this.accountNumber = accountNumber; - return this; - } - - public TravelRuleValidatePiiIVMS addAccountNumberItem(String accountNumberItem) { - if (this.accountNumber == null) { - this.accountNumber = new ArrayList<>(); - } - this.accountNumber.add(accountNumberItem); - return this; - } - - /** - * Beneficiary account number - * - * @return accountNumber - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getAccountNumber() { - return accountNumber; - } - - @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAccountNumber(@jakarta.annotation.Nullable List accountNumber) { - this.accountNumber = accountNumber; - } - - /** Return true if this TravelRuleValidatePiiIVMS object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - TravelRuleValidatePiiIVMS travelRuleValidatePiiIVMS = (TravelRuleValidatePiiIVMS) o; - return Objects.equals(this.originatorPersons, travelRuleValidatePiiIVMS.originatorPersons) - && Objects.equals( - this.beneficiaryPersons, travelRuleValidatePiiIVMS.beneficiaryPersons) - && Objects.equals(this.accountNumber, travelRuleValidatePiiIVMS.accountNumber); - } - - @Override - public int hashCode() { - return Objects.hash(originatorPersons, beneficiaryPersons, accountNumber); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class TravelRuleValidatePiiIVMS {\n"); - sb.append(" originatorPersons: ") - .append(toIndentedString(originatorPersons)) - .append("\n"); - sb.append(" beneficiaryPersons: ") - .append(toIndentedString(beneficiaryPersons)) - .append("\n"); - sb.append(" accountNumber: ").append(toIndentedString(accountNumber)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `originatorPersons` to the URL query string - if (getOriginatorPersons() != null) { - for (int i = 0; i < getOriginatorPersons().size(); i++) { - if (getOriginatorPersons().get(i) != null) { - joiner.add( - getOriginatorPersons() - .get(i) - .toUrlQueryString( - String.format( - "%soriginatorPersons%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } - } - - // add `beneficiaryPersons` to the URL query string - if (getBeneficiaryPersons() != null) { - for (int i = 0; i < getBeneficiaryPersons().size(); i++) { - if (getBeneficiaryPersons().get(i) != null) { - joiner.add( - getBeneficiaryPersons() - .get(i) - .toUrlQueryString( - String.format( - "%sbeneficiaryPersons%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } - } - - // add `accountNumber` to the URL query string - if (getAccountNumber() != null) { - for (int i = 0; i < getAccountNumber().size(); i++) { - joiner.add( - String.format( - "%saccountNumber%s%s=%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode( - ApiClient.valueToString(getAccountNumber().get(i))))); - } - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/TravelRuleValidateTransactionRequest.java b/src/main/java/com/fireblocks/sdk/model/TravelRuleValidateTransactionRequest.java index 3f6a2ec9..8dc740af 100644 --- a/src/main/java/com/fireblocks/sdk/model/TravelRuleValidateTransactionRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/TravelRuleValidateTransactionRequest.java @@ -18,7 +18,6 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fireblocks.sdk.ApiClient; -import java.math.BigDecimal; import java.util.Objects; import java.util.StringJoiner; @@ -27,7 +26,6 @@ TravelRuleValidateTransactionRequest.JSON_PROPERTY_TRANSACTION_ASSET, TravelRuleValidateTransactionRequest.JSON_PROPERTY_DESTINATION, TravelRuleValidateTransactionRequest.JSON_PROPERTY_TRANSACTION_AMOUNT, - TravelRuleValidateTransactionRequest.JSON_PROPERTY_TRANSACTION_ASSET_DECIMALS, TravelRuleValidateTransactionRequest.JSON_PROPERTY_ORIGINATOR_V_A_S_PDID, TravelRuleValidateTransactionRequest.JSON_PROPERTY_ORIGINATOR_EQUALS_BENEFICIARY, TravelRuleValidateTransactionRequest.JSON_PROPERTY_TRAVEL_RULE_BEHAVIOR, @@ -50,10 +48,6 @@ public class TravelRuleValidateTransactionRequest { public static final String JSON_PROPERTY_TRANSACTION_AMOUNT = "transactionAmount"; @jakarta.annotation.Nonnull private String transactionAmount; - public static final String JSON_PROPERTY_TRANSACTION_ASSET_DECIMALS = - "transactionAssetDecimals"; - @jakarta.annotation.Nullable private BigDecimal transactionAssetDecimals; - public static final String JSON_PROPERTY_ORIGINATOR_V_A_S_PDID = "originatorVASPdid"; @jakarta.annotation.Nonnull private String originatorVASPdid; @@ -107,7 +101,7 @@ public TravelRuleValidateTransactionRequest transactionAsset( } /** - * Transaction asset symbol (BTC,ETH) + * Transaction asset symbol BTC,ETH) * * @return transactionAsset */ @@ -172,32 +166,6 @@ public void setTransactionAmount(@jakarta.annotation.Nonnull String transactionA this.transactionAmount = transactionAmount; } - public TravelRuleValidateTransactionRequest transactionAssetDecimals( - @jakarta.annotation.Nullable BigDecimal transactionAssetDecimals) { - this.transactionAssetDecimals = transactionAssetDecimals; - return this; - } - - /** - * Number of decimals in the transaction asset. This is used to convert the transaction amount - * to the smallest unit of the asset - * - * @return transactionAssetDecimals - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TRANSACTION_ASSET_DECIMALS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public BigDecimal getTransactionAssetDecimals() { - return transactionAssetDecimals; - } - - @JsonProperty(JSON_PROPERTY_TRANSACTION_ASSET_DECIMALS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTransactionAssetDecimals( - @jakarta.annotation.Nullable BigDecimal transactionAssetDecimals) { - this.transactionAssetDecimals = transactionAssetDecimals; - } - public TravelRuleValidateTransactionRequest originatorVASPdid( @jakarta.annotation.Nonnull String originatorVASPdid) { this.originatorVASPdid = originatorVASPdid; @@ -377,7 +345,7 @@ public TravelRuleValidateTransactionRequest beneficiaryAddress( } /** - * Get beneficiaryAddress + * Beneficiary name * * @return beneficiaryAddress */ @@ -414,9 +382,6 @@ public boolean equals(Object o) { && Objects.equals( this.transactionAmount, travelRuleValidateTransactionRequest.transactionAmount) - && Objects.equals( - this.transactionAssetDecimals, - travelRuleValidateTransactionRequest.transactionAssetDecimals) && Objects.equals( this.originatorVASPdid, travelRuleValidateTransactionRequest.originatorVASPdid) @@ -448,7 +413,6 @@ public int hashCode() { transactionAsset, destination, transactionAmount, - transactionAssetDecimals, originatorVASPdid, originatorEqualsBeneficiary, travelRuleBehavior, @@ -468,9 +432,6 @@ public String toString() { sb.append(" transactionAmount: ") .append(toIndentedString(transactionAmount)) .append("\n"); - sb.append(" transactionAssetDecimals: ") - .append(toIndentedString(transactionAssetDecimals)) - .append("\n"); sb.append(" originatorVASPdid: ") .append(toIndentedString(originatorVASPdid)) .append("\n"); @@ -570,17 +531,6 @@ public String toUrlQueryString(String prefix) { ApiClient.urlEncode(ApiClient.valueToString(getTransactionAmount())))); } - // add `transactionAssetDecimals` to the URL query string - if (getTransactionAssetDecimals() != null) { - joiner.add( - String.format( - "%stransactionAssetDecimals%s=%s", - prefix, - suffix, - ApiClient.urlEncode( - ApiClient.valueToString(getTransactionAssetDecimals())))); - } - // add `originatorVASPdid` to the URL query string if (getOriginatorVASPdid() != null) { joiner.add( diff --git a/src/main/java/com/fireblocks/sdk/model/TravelRuleValidateTransactionResponse.java b/src/main/java/com/fireblocks/sdk/model/TravelRuleValidateTransactionResponse.java index e7143509..3c77e291 100644 --- a/src/main/java/com/fireblocks/sdk/model/TravelRuleValidateTransactionResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/TravelRuleValidateTransactionResponse.java @@ -17,7 +17,6 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; import com.fireblocks.sdk.ApiClient; import java.util.ArrayList; import java.util.List; @@ -44,93 +43,11 @@ public class TravelRuleValidateTransactionResponse { public static final String JSON_PROPERTY_TYPE = "type"; @jakarta.annotation.Nonnull private String type; - /** - * \"beneficiaryAddressType\" will tell you if your blockchain analytics provider or - * internal address book has been able to identify the wallet address. - */ - public enum BeneficiaryAddressTypeEnum { - UNKNOWN(String.valueOf("UNKNOWN")), - - HOSTED(String.valueOf("HOSTED")), - - UNHOSTED(String.valueOf("UNHOSTED")); - - private String value; - - BeneficiaryAddressTypeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static BeneficiaryAddressTypeEnum fromValue(String value) { - for (BeneficiaryAddressTypeEnum b : BeneficiaryAddressTypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - public static final String JSON_PROPERTY_BENEFICIARY_ADDRESS_TYPE = "beneficiaryAddressType"; - @jakarta.annotation.Nonnull private BeneficiaryAddressTypeEnum beneficiaryAddressType; - - /** - * \"addressSource\" will tell you if the address was found in your internal address - * book or identified by the blockchain analytics provider. - */ - public enum AddressSourceEnum { - UNKNOWN(String.valueOf("UNKNOWN")), - - ADDRESS_HASH(String.valueOf("ADDRESS_HASH")), - - ADDRESS_GRAPH(String.valueOf("ADDRESS_GRAPH")), - - CHAINALYSIS(String.valueOf("CHAINALYSIS")), - - ELLIPTIC(String.valueOf("ELLIPTIC")), - - CRYSTAL(String.valueOf("CRYSTAL")); - - private String value; - - AddressSourceEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static AddressSourceEnum fromValue(String value) { - for (AddressSourceEnum b : AddressSourceEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } + @jakarta.annotation.Nonnull private String beneficiaryAddressType; public static final String JSON_PROPERTY_ADDRESS_SOURCE = "addressSource"; - @jakarta.annotation.Nonnull private AddressSourceEnum addressSource; + @jakarta.annotation.Nonnull private String addressSource; public static final String JSON_PROPERTY_BENEFICIARY_V_A_S_PDID = "beneficiaryVASPdid"; @jakarta.annotation.Nonnull private String beneficiaryVASPdid; @@ -139,7 +56,7 @@ public static AddressSourceEnum fromValue(String value) { @jakarta.annotation.Nonnull private String beneficiaryVASPname; public static final String JSON_PROPERTY_WARNINGS = "warnings"; - @jakarta.annotation.Nonnull private List warnings = new ArrayList<>(); + @jakarta.annotation.Nonnull private List warnings; public TravelRuleValidateTransactionResponse() {} @@ -148,9 +65,9 @@ public TravelRuleValidateTransactionResponse( @JsonProperty(value = JSON_PROPERTY_IS_VALID, required = true) Boolean isValid, @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) String type, @JsonProperty(value = JSON_PROPERTY_BENEFICIARY_ADDRESS_TYPE, required = true) - BeneficiaryAddressTypeEnum beneficiaryAddressType, + String beneficiaryAddressType, @JsonProperty(value = JSON_PROPERTY_ADDRESS_SOURCE, required = true) - AddressSourceEnum addressSource, + String addressSource, @JsonProperty(value = JSON_PROPERTY_BENEFICIARY_V_A_S_PDID, required = true) String beneficiaryVASPdid, @JsonProperty(value = JSON_PROPERTY_BENEFICIARY_V_A_S_PNAME, required = true) @@ -219,7 +136,7 @@ public void setType(@jakarta.annotation.Nonnull String type) { } public TravelRuleValidateTransactionResponse beneficiaryAddressType( - @jakarta.annotation.Nonnull BeneficiaryAddressTypeEnum beneficiaryAddressType) { + @jakarta.annotation.Nonnull String beneficiaryAddressType) { this.beneficiaryAddressType = beneficiaryAddressType; return this; } @@ -233,19 +150,19 @@ public TravelRuleValidateTransactionResponse beneficiaryAddressType( @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_BENEFICIARY_ADDRESS_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public BeneficiaryAddressTypeEnum getBeneficiaryAddressType() { + public String getBeneficiaryAddressType() { return beneficiaryAddressType; } @JsonProperty(JSON_PROPERTY_BENEFICIARY_ADDRESS_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setBeneficiaryAddressType( - @jakarta.annotation.Nonnull BeneficiaryAddressTypeEnum beneficiaryAddressType) { + @jakarta.annotation.Nonnull String beneficiaryAddressType) { this.beneficiaryAddressType = beneficiaryAddressType; } public TravelRuleValidateTransactionResponse addressSource( - @jakarta.annotation.Nonnull AddressSourceEnum addressSource) { + @jakarta.annotation.Nonnull String addressSource) { this.addressSource = addressSource; return this; } @@ -259,13 +176,13 @@ public TravelRuleValidateTransactionResponse addressSource( @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ADDRESS_SOURCE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AddressSourceEnum getAddressSource() { + public String getAddressSource() { return addressSource; } @JsonProperty(JSON_PROPERTY_ADDRESS_SOURCE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAddressSource(@jakarta.annotation.Nonnull AddressSourceEnum addressSource) { + public void setAddressSource(@jakarta.annotation.Nonnull String addressSource) { this.addressSource = addressSource; } diff --git a/src/main/java/com/fireblocks/sdk/model/TravelRuleVaspForVault.java b/src/main/java/com/fireblocks/sdk/model/TravelRuleVaspForVault.java deleted file mode 100644 index 60f3f2ef..00000000 --- a/src/main/java/com/fireblocks/sdk/model/TravelRuleVaspForVault.java +++ /dev/null @@ -1,139 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** TravelRuleVaspForVault */ -@JsonPropertyOrder({TravelRuleVaspForVault.JSON_PROPERTY_VASP_DID}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class TravelRuleVaspForVault { - public static final String JSON_PROPERTY_VASP_DID = "vaspDid"; - @jakarta.annotation.Nullable private String vaspDid; - - public TravelRuleVaspForVault() {} - - public TravelRuleVaspForVault vaspDid(@jakarta.annotation.Nullable String vaspDid) { - this.vaspDid = vaspDid; - return this; - } - - /** - * VASP DID - * - * @return vaspDid - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_VASP_DID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getVaspDid() { - return vaspDid; - } - - @JsonProperty(JSON_PROPERTY_VASP_DID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setVaspDid(@jakarta.annotation.Nullable String vaspDid) { - this.vaspDid = vaspDid; - } - - /** Return true if this TravelRuleVaspForVault object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - TravelRuleVaspForVault travelRuleVaspForVault = (TravelRuleVaspForVault) o; - return Objects.equals(this.vaspDid, travelRuleVaspForVault.vaspDid); - } - - @Override - public int hashCode() { - return Objects.hash(vaspDid); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class TravelRuleVaspForVault {\n"); - sb.append(" vaspDid: ").append(toIndentedString(vaspDid)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `vaspDid` to the URL query string - if (getVaspDid() != null) { - joiner.add( - String.format( - "%svaspDid%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getVaspDid())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/TxLog.java b/src/main/java/com/fireblocks/sdk/model/TxLog.java deleted file mode 100644 index b1de3c1f..00000000 --- a/src/main/java/com/fireblocks/sdk/model/TxLog.java +++ /dev/null @@ -1,503 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** TxLog */ -@JsonPropertyOrder({ - TxLog.JSON_PROPERTY_ADDRESS, - TxLog.JSON_PROPERTY_TOPICS, - TxLog.JSON_PROPERTY_DATA, - TxLog.JSON_PROPERTY_BLOCK_NUMBER, - TxLog.JSON_PROPERTY_TRANSACTION_HASH, - TxLog.JSON_PROPERTY_TRANSACTION_INDEX, - TxLog.JSON_PROPERTY_BLOCK_HASH, - TxLog.JSON_PROPERTY_LOG_INDEX, - TxLog.JSON_PROPERTY_REMOVED -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class TxLog { - public static final String JSON_PROPERTY_ADDRESS = "address"; - @jakarta.annotation.Nonnull private String address; - - public static final String JSON_PROPERTY_TOPICS = "topics"; - @jakarta.annotation.Nonnull private List topics = new ArrayList<>(); - - public static final String JSON_PROPERTY_DATA = "data"; - @jakarta.annotation.Nonnull private String data; - - public static final String JSON_PROPERTY_BLOCK_NUMBER = "blockNumber"; - @jakarta.annotation.Nonnull private Integer blockNumber; - - public static final String JSON_PROPERTY_TRANSACTION_HASH = "transactionHash"; - @jakarta.annotation.Nonnull private String transactionHash; - - public static final String JSON_PROPERTY_TRANSACTION_INDEX = "transactionIndex"; - @jakarta.annotation.Nonnull private Integer transactionIndex; - - public static final String JSON_PROPERTY_BLOCK_HASH = "blockHash"; - @jakarta.annotation.Nonnull private String blockHash; - - public static final String JSON_PROPERTY_LOG_INDEX = "logIndex"; - @jakarta.annotation.Nonnull private Integer logIndex; - - public static final String JSON_PROPERTY_REMOVED = "removed"; - @jakarta.annotation.Nonnull private Boolean removed; - - public TxLog() {} - - @JsonCreator - public TxLog( - @JsonProperty(value = JSON_PROPERTY_ADDRESS, required = true) String address, - @JsonProperty(value = JSON_PROPERTY_TOPICS, required = true) List topics, - @JsonProperty(value = JSON_PROPERTY_DATA, required = true) String data, - @JsonProperty(value = JSON_PROPERTY_BLOCK_NUMBER, required = true) Integer blockNumber, - @JsonProperty(value = JSON_PROPERTY_TRANSACTION_HASH, required = true) - String transactionHash, - @JsonProperty(value = JSON_PROPERTY_TRANSACTION_INDEX, required = true) - Integer transactionIndex, - @JsonProperty(value = JSON_PROPERTY_BLOCK_HASH, required = true) String blockHash, - @JsonProperty(value = JSON_PROPERTY_LOG_INDEX, required = true) Integer logIndex, - @JsonProperty(value = JSON_PROPERTY_REMOVED, required = true) Boolean removed) { - this.address = address; - this.topics = topics; - this.data = data; - this.blockNumber = blockNumber; - this.transactionHash = transactionHash; - this.transactionIndex = transactionIndex; - this.blockHash = blockHash; - this.logIndex = logIndex; - this.removed = removed; - } - - public TxLog address(@jakarta.annotation.Nonnull String address) { - this.address = address; - return this; - } - - /** - * The log address - * - * @return address - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ADDRESS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getAddress() { - return address; - } - - @JsonProperty(JSON_PROPERTY_ADDRESS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAddress(@jakarta.annotation.Nonnull String address) { - this.address = address; - } - - public TxLog topics(@jakarta.annotation.Nonnull List topics) { - this.topics = topics; - return this; - } - - public TxLog addTopicsItem(String topicsItem) { - if (this.topics == null) { - this.topics = new ArrayList<>(); - } - this.topics.add(topicsItem); - return this; - } - - /** - * Array of log topics - * - * @return topics - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TOPICS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getTopics() { - return topics; - } - - @JsonProperty(JSON_PROPERTY_TOPICS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTopics(@jakarta.annotation.Nonnull List topics) { - this.topics = topics; - } - - public TxLog data(@jakarta.annotation.Nonnull String data) { - this.data = data; - return this; - } - - /** - * The log data - * - * @return data - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getData() { - return data; - } - - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setData(@jakarta.annotation.Nonnull String data) { - this.data = data; - } - - public TxLog blockNumber(@jakarta.annotation.Nonnull Integer blockNumber) { - this.blockNumber = blockNumber; - return this; - } - - /** - * Block number where the log occurred - * - * @return blockNumber - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BLOCK_NUMBER) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getBlockNumber() { - return blockNumber; - } - - @JsonProperty(JSON_PROPERTY_BLOCK_NUMBER) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBlockNumber(@jakarta.annotation.Nonnull Integer blockNumber) { - this.blockNumber = blockNumber; - } - - public TxLog transactionHash(@jakarta.annotation.Nonnull String transactionHash) { - this.transactionHash = transactionHash; - return this; - } - - /** - * Transaction hash associated with the log - * - * @return transactionHash - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TRANSACTION_HASH) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getTransactionHash() { - return transactionHash; - } - - @JsonProperty(JSON_PROPERTY_TRANSACTION_HASH) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTransactionHash(@jakarta.annotation.Nonnull String transactionHash) { - this.transactionHash = transactionHash; - } - - public TxLog transactionIndex(@jakarta.annotation.Nonnull Integer transactionIndex) { - this.transactionIndex = transactionIndex; - return this; - } - - /** - * Transaction index in the block - * - * @return transactionIndex - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TRANSACTION_INDEX) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getTransactionIndex() { - return transactionIndex; - } - - @JsonProperty(JSON_PROPERTY_TRANSACTION_INDEX) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTransactionIndex(@jakarta.annotation.Nonnull Integer transactionIndex) { - this.transactionIndex = transactionIndex; - } - - public TxLog blockHash(@jakarta.annotation.Nonnull String blockHash) { - this.blockHash = blockHash; - return this; - } - - /** - * The hash of the block - * - * @return blockHash - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BLOCK_HASH) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getBlockHash() { - return blockHash; - } - - @JsonProperty(JSON_PROPERTY_BLOCK_HASH) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBlockHash(@jakarta.annotation.Nonnull String blockHash) { - this.blockHash = blockHash; - } - - public TxLog logIndex(@jakarta.annotation.Nonnull Integer logIndex) { - this.logIndex = logIndex; - return this; - } - - /** - * Log index in the block - * - * @return logIndex - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_LOG_INDEX) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getLogIndex() { - return logIndex; - } - - @JsonProperty(JSON_PROPERTY_LOG_INDEX) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setLogIndex(@jakarta.annotation.Nonnull Integer logIndex) { - this.logIndex = logIndex; - } - - public TxLog removed(@jakarta.annotation.Nonnull Boolean removed) { - this.removed = removed; - return this; - } - - /** - * Indicates if the log was removed - * - * @return removed - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_REMOVED) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Boolean getRemoved() { - return removed; - } - - @JsonProperty(JSON_PROPERTY_REMOVED) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setRemoved(@jakarta.annotation.Nonnull Boolean removed) { - this.removed = removed; - } - - /** Return true if this TxLog object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - TxLog txLog = (TxLog) o; - return Objects.equals(this.address, txLog.address) - && Objects.equals(this.topics, txLog.topics) - && Objects.equals(this.data, txLog.data) - && Objects.equals(this.blockNumber, txLog.blockNumber) - && Objects.equals(this.transactionHash, txLog.transactionHash) - && Objects.equals(this.transactionIndex, txLog.transactionIndex) - && Objects.equals(this.blockHash, txLog.blockHash) - && Objects.equals(this.logIndex, txLog.logIndex) - && Objects.equals(this.removed, txLog.removed); - } - - @Override - public int hashCode() { - return Objects.hash( - address, - topics, - data, - blockNumber, - transactionHash, - transactionIndex, - blockHash, - logIndex, - removed); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class TxLog {\n"); - sb.append(" address: ").append(toIndentedString(address)).append("\n"); - sb.append(" topics: ").append(toIndentedString(topics)).append("\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" blockNumber: ").append(toIndentedString(blockNumber)).append("\n"); - sb.append(" transactionHash: ").append(toIndentedString(transactionHash)).append("\n"); - sb.append(" transactionIndex: ").append(toIndentedString(transactionIndex)).append("\n"); - sb.append(" blockHash: ").append(toIndentedString(blockHash)).append("\n"); - sb.append(" logIndex: ").append(toIndentedString(logIndex)).append("\n"); - sb.append(" removed: ").append(toIndentedString(removed)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `address` to the URL query string - if (getAddress() != null) { - joiner.add( - String.format( - "%saddress%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAddress())))); - } - - // add `topics` to the URL query string - if (getTopics() != null) { - for (int i = 0; i < getTopics().size(); i++) { - joiner.add( - String.format( - "%stopics%s%s=%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode(ApiClient.valueToString(getTopics().get(i))))); - } - } - - // add `data` to the URL query string - if (getData() != null) { - joiner.add( - String.format( - "%sdata%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getData())))); - } - - // add `blockNumber` to the URL query string - if (getBlockNumber() != null) { - joiner.add( - String.format( - "%sblockNumber%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBlockNumber())))); - } - - // add `transactionHash` to the URL query string - if (getTransactionHash() != null) { - joiner.add( - String.format( - "%stransactionHash%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getTransactionHash())))); - } - - // add `transactionIndex` to the URL query string - if (getTransactionIndex() != null) { - joiner.add( - String.format( - "%stransactionIndex%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getTransactionIndex())))); - } - - // add `blockHash` to the URL query string - if (getBlockHash() != null) { - joiner.add( - String.format( - "%sblockHash%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBlockHash())))); - } - - // add `logIndex` to the URL query string - if (getLogIndex() != null) { - joiner.add( - String.format( - "%slogIndex%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getLogIndex())))); - } - - // add `removed` to the URL query string - if (getRemoved() != null) { - joiner.add( - String.format( - "%sremoved%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getRemoved())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/UnmanagedWallet.java b/src/main/java/com/fireblocks/sdk/model/UnmanagedWallet.java index b3cb9b10..cd281e27 100644 --- a/src/main/java/com/fireblocks/sdk/model/UnmanagedWallet.java +++ b/src/main/java/com/fireblocks/sdk/model/UnmanagedWallet.java @@ -44,7 +44,7 @@ public class UnmanagedWallet { @jakarta.annotation.Nullable private String customerRefId; public static final String JSON_PROPERTY_ASSETS = "assets"; - @jakarta.annotation.Nonnull private List assets = new ArrayList<>(); + @jakarta.annotation.Nonnull private List assets; public UnmanagedWallet() {} diff --git a/src/main/java/com/fireblocks/sdk/model/UnstakeRequest.java b/src/main/java/com/fireblocks/sdk/model/UnstakeRequest.java deleted file mode 100644 index 43fcaddd..00000000 --- a/src/main/java/com/fireblocks/sdk/model/UnstakeRequest.java +++ /dev/null @@ -1,304 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** UnstakeRequest */ -@JsonPropertyOrder({ - UnstakeRequest.JSON_PROPERTY_ID, - UnstakeRequest.JSON_PROPERTY_FEE, - UnstakeRequest.JSON_PROPERTY_FEE_LEVEL, - UnstakeRequest.JSON_PROPERTY_TX_NOTE, - UnstakeRequest.JSON_PROPERTY_AMOUNT -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class UnstakeRequest { - public static final String JSON_PROPERTY_ID = "id"; - @jakarta.annotation.Nonnull private String id; - - public static final String JSON_PROPERTY_FEE = "fee"; - @jakarta.annotation.Nullable private String fee; - - public static final String JSON_PROPERTY_FEE_LEVEL = "feeLevel"; - @jakarta.annotation.Nullable private FeeLevel feeLevel; - - public static final String JSON_PROPERTY_TX_NOTE = "txNote"; - @jakarta.annotation.Nullable private String txNote; - - public static final String JSON_PROPERTY_AMOUNT = "amount"; - @jakarta.annotation.Nullable private String amount; - - public UnstakeRequest() {} - - @JsonCreator - public UnstakeRequest(@JsonProperty(value = JSON_PROPERTY_ID, required = true) String id) { - this.id = id; - } - - public UnstakeRequest id(@jakarta.annotation.Nonnull String id) { - this.id = id; - return this; - } - - /** - * id of position to unstake - * - * @return id - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getId() { - return id; - } - - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(@jakarta.annotation.Nonnull String id) { - this.id = id; - } - - public UnstakeRequest fee(@jakarta.annotation.Nullable String fee) { - this.fee = fee; - return this; - } - - /** - * Represents the fee for a transaction, which can be specified as a percentage value. Only one - * of fee/feeLevel is required. - * - * @return fee - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FEE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getFee() { - return fee; - } - - @JsonProperty(JSON_PROPERTY_FEE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFee(@jakarta.annotation.Nullable String fee) { - this.fee = fee; - } - - public UnstakeRequest feeLevel(@jakarta.annotation.Nullable FeeLevel feeLevel) { - this.feeLevel = feeLevel; - return this; - } - - /** - * Get feeLevel - * - * @return feeLevel - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FEE_LEVEL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public FeeLevel getFeeLevel() { - return feeLevel; - } - - @JsonProperty(JSON_PROPERTY_FEE_LEVEL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFeeLevel(@jakarta.annotation.Nullable FeeLevel feeLevel) { - this.feeLevel = feeLevel; - } - - public UnstakeRequest txNote(@jakarta.annotation.Nullable String txNote) { - this.txNote = txNote; - return this; - } - - /** - * The note to associate with the transactions. - * - * @return txNote - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TX_NOTE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getTxNote() { - return txNote; - } - - @JsonProperty(JSON_PROPERTY_TX_NOTE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTxNote(@jakarta.annotation.Nullable String txNote) { - this.txNote = txNote; - } - - public UnstakeRequest amount(@jakarta.annotation.Nullable String amount) { - this.amount = amount; - return this; - } - - /** - * The number of tokens to unstake. This optional field is applicable only for liquid staking - * and allows for a partial unstake of the position. If not provided, the entire position will - * be unstaked by default. - * - * @return amount - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_AMOUNT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getAmount() { - return amount; - } - - @JsonProperty(JSON_PROPERTY_AMOUNT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAmount(@jakarta.annotation.Nullable String amount) { - this.amount = amount; - } - - /** Return true if this UnstakeRequest object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - UnstakeRequest unstakeRequest = (UnstakeRequest) o; - return Objects.equals(this.id, unstakeRequest.id) - && Objects.equals(this.fee, unstakeRequest.fee) - && Objects.equals(this.feeLevel, unstakeRequest.feeLevel) - && Objects.equals(this.txNote, unstakeRequest.txNote) - && Objects.equals(this.amount, unstakeRequest.amount); - } - - @Override - public int hashCode() { - return Objects.hash(id, fee, feeLevel, txNote, amount); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class UnstakeRequest {\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" fee: ").append(toIndentedString(fee)).append("\n"); - sb.append(" feeLevel: ").append(toIndentedString(feeLevel)).append("\n"); - sb.append(" txNote: ").append(toIndentedString(txNote)).append("\n"); - sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `id` to the URL query string - if (getId() != null) { - joiner.add( - String.format( - "%sid%s=%s", - prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); - } - - // add `fee` to the URL query string - if (getFee() != null) { - joiner.add( - String.format( - "%sfee%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getFee())))); - } - - // add `feeLevel` to the URL query string - if (getFeeLevel() != null) { - joiner.add( - String.format( - "%sfeeLevel%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getFeeLevel())))); - } - - // add `txNote` to the URL query string - if (getTxNote() != null) { - joiner.add( - String.format( - "%stxNote%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getTxNote())))); - } - - // add `amount` to the URL query string - if (getAmount() != null) { - joiner.add( - String.format( - "%samount%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAmount())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/ClaimRewardsRequest.java b/src/main/java/com/fireblocks/sdk/model/UnstakeRequestDto.java similarity index 82% rename from src/main/java/com/fireblocks/sdk/model/ClaimRewardsRequest.java rename to src/main/java/com/fireblocks/sdk/model/UnstakeRequestDto.java index 42cc2ed0..d77b42a7 100644 --- a/src/main/java/com/fireblocks/sdk/model/ClaimRewardsRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/UnstakeRequestDto.java @@ -21,17 +21,17 @@ import java.util.Objects; import java.util.StringJoiner; -/** ClaimRewardsRequest */ +/** UnstakeRequestDto */ @JsonPropertyOrder({ - ClaimRewardsRequest.JSON_PROPERTY_ID, - ClaimRewardsRequest.JSON_PROPERTY_FEE, - ClaimRewardsRequest.JSON_PROPERTY_FEE_LEVEL, - ClaimRewardsRequest.JSON_PROPERTY_TX_NOTE + UnstakeRequestDto.JSON_PROPERTY_ID, + UnstakeRequestDto.JSON_PROPERTY_FEE, + UnstakeRequestDto.JSON_PROPERTY_FEE_LEVEL, + UnstakeRequestDto.JSON_PROPERTY_TX_NOTE }) @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") -public class ClaimRewardsRequest { +public class UnstakeRequestDto { public static final String JSON_PROPERTY_ID = "id"; @jakarta.annotation.Nonnull private String id; @@ -39,25 +39,25 @@ public class ClaimRewardsRequest { @jakarta.annotation.Nullable private String fee; public static final String JSON_PROPERTY_FEE_LEVEL = "feeLevel"; - @jakarta.annotation.Nullable private FeeLevel feeLevel; + @jakarta.annotation.Nullable private String feeLevel; public static final String JSON_PROPERTY_TX_NOTE = "txNote"; @jakarta.annotation.Nullable private String txNote; - public ClaimRewardsRequest() {} + public UnstakeRequestDto() {} @JsonCreator - public ClaimRewardsRequest(@JsonProperty(value = JSON_PROPERTY_ID, required = true) String id) { + public UnstakeRequestDto(@JsonProperty(value = JSON_PROPERTY_ID, required = true) String id) { this.id = id; } - public ClaimRewardsRequest id(@jakarta.annotation.Nonnull String id) { + public UnstakeRequestDto id(@jakarta.annotation.Nonnull String id) { this.id = id; return this; } /** - * id of position to withdraw rewards from + * id of position to unstake * * @return id */ @@ -74,7 +74,7 @@ public void setId(@jakarta.annotation.Nonnull String id) { this.id = id; } - public ClaimRewardsRequest fee(@jakarta.annotation.Nullable String fee) { + public UnstakeRequestDto fee(@jakarta.annotation.Nullable String fee) { this.fee = fee; return this; } @@ -98,30 +98,31 @@ public void setFee(@jakarta.annotation.Nullable String fee) { this.fee = fee; } - public ClaimRewardsRequest feeLevel(@jakarta.annotation.Nullable FeeLevel feeLevel) { + public UnstakeRequestDto feeLevel(@jakarta.annotation.Nullable String feeLevel) { this.feeLevel = feeLevel; return this; } /** - * Get feeLevel + * Represents the fee level for a transaction, which can be set as slow, medium, or fast. Only + * one of fee/feeLevel is required. * * @return feeLevel */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_FEE_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public FeeLevel getFeeLevel() { + public String getFeeLevel() { return feeLevel; } @JsonProperty(JSON_PROPERTY_FEE_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFeeLevel(@jakarta.annotation.Nullable FeeLevel feeLevel) { + public void setFeeLevel(@jakarta.annotation.Nullable String feeLevel) { this.feeLevel = feeLevel; } - public ClaimRewardsRequest txNote(@jakarta.annotation.Nullable String txNote) { + public UnstakeRequestDto txNote(@jakarta.annotation.Nullable String txNote) { this.txNote = txNote; return this; } @@ -144,7 +145,7 @@ public void setTxNote(@jakarta.annotation.Nullable String txNote) { this.txNote = txNote; } - /** Return true if this ClaimRewardsRequest object is equal to o. */ + /** Return true if this UnstakeRequestDto object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -153,11 +154,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ClaimRewardsRequest claimRewardsRequest = (ClaimRewardsRequest) o; - return Objects.equals(this.id, claimRewardsRequest.id) - && Objects.equals(this.fee, claimRewardsRequest.fee) - && Objects.equals(this.feeLevel, claimRewardsRequest.feeLevel) - && Objects.equals(this.txNote, claimRewardsRequest.txNote); + UnstakeRequestDto unstakeRequestDto = (UnstakeRequestDto) o; + return Objects.equals(this.id, unstakeRequestDto.id) + && Objects.equals(this.fee, unstakeRequestDto.fee) + && Objects.equals(this.feeLevel, unstakeRequestDto.feeLevel) + && Objects.equals(this.txNote, unstakeRequestDto.txNote); } @Override @@ -168,7 +169,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class ClaimRewardsRequest {\n"); + sb.append("class UnstakeRequestDto {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" fee: ").append(toIndentedString(fee)).append("\n"); sb.append(" feeLevel: ").append(toIndentedString(feeLevel)).append("\n"); diff --git a/src/main/java/com/fireblocks/sdk/model/UpdateAssetUserMetadataRequest.java b/src/main/java/com/fireblocks/sdk/model/UpdateAssetUserMetadataRequest.java deleted file mode 100644 index ff6f8945..00000000 --- a/src/main/java/com/fireblocks/sdk/model/UpdateAssetUserMetadataRequest.java +++ /dev/null @@ -1,135 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.Objects; -import java.util.StringJoiner; - -/** UpdateAssetUserMetadataRequest */ -@JsonPropertyOrder({UpdateAssetUserMetadataRequest.JSON_PROPERTY_METADATA}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class UpdateAssetUserMetadataRequest { - public static final String JSON_PROPERTY_METADATA = "metadata"; - @jakarta.annotation.Nullable private AssetMetadataRequest metadata; - - public UpdateAssetUserMetadataRequest() {} - - public UpdateAssetUserMetadataRequest metadata( - @jakarta.annotation.Nullable AssetMetadataRequest metadata) { - this.metadata = metadata; - return this; - } - - /** - * Get metadata - * - * @return metadata - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_METADATA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public AssetMetadataRequest getMetadata() { - return metadata; - } - - @JsonProperty(JSON_PROPERTY_METADATA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMetadata(@jakarta.annotation.Nullable AssetMetadataRequest metadata) { - this.metadata = metadata; - } - - /** Return true if this UpdateAssetUserMetadataRequest object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - UpdateAssetUserMetadataRequest updateAssetUserMetadataRequest = - (UpdateAssetUserMetadataRequest) o; - return Objects.equals(this.metadata, updateAssetUserMetadataRequest.metadata); - } - - @Override - public int hashCode() { - return Objects.hash(metadata); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class UpdateAssetUserMetadataRequest {\n"); - sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `metadata` to the URL query string - if (getMetadata() != null) { - joiner.add(getMetadata().toUrlQueryString(prefix + "metadata" + suffix)); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/UpdateCallbackHandlerRequest.java b/src/main/java/com/fireblocks/sdk/model/UpdateCallbackHandlerRequest.java deleted file mode 100644 index d079f491..00000000 --- a/src/main/java/com/fireblocks/sdk/model/UpdateCallbackHandlerRequest.java +++ /dev/null @@ -1,136 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.Objects; -import java.util.StringJoiner; - -/** UpdateCallbackHandlerRequest */ -@JsonPropertyOrder({UpdateCallbackHandlerRequest.JSON_PROPERTY_CALLBACK_HANDLER}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class UpdateCallbackHandlerRequest { - public static final String JSON_PROPERTY_CALLBACK_HANDLER = "callbackHandler"; - @jakarta.annotation.Nullable private CallbackHandlerRequest callbackHandler; - - public UpdateCallbackHandlerRequest() {} - - public UpdateCallbackHandlerRequest callbackHandler( - @jakarta.annotation.Nullable CallbackHandlerRequest callbackHandler) { - this.callbackHandler = callbackHandler; - return this; - } - - /** - * Get callbackHandler - * - * @return callbackHandler - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CALLBACK_HANDLER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CallbackHandlerRequest getCallbackHandler() { - return callbackHandler; - } - - @JsonProperty(JSON_PROPERTY_CALLBACK_HANDLER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCallbackHandler( - @jakarta.annotation.Nullable CallbackHandlerRequest callbackHandler) { - this.callbackHandler = callbackHandler; - } - - /** Return true if this UpdateCallbackHandlerRequest object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - UpdateCallbackHandlerRequest updateCallbackHandlerRequest = - (UpdateCallbackHandlerRequest) o; - return Objects.equals(this.callbackHandler, updateCallbackHandlerRequest.callbackHandler); - } - - @Override - public int hashCode() { - return Objects.hash(callbackHandler); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class UpdateCallbackHandlerRequest {\n"); - sb.append(" callbackHandler: ").append(toIndentedString(callbackHandler)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `callbackHandler` to the URL query string - if (getCallbackHandler() != null) { - joiner.add(getCallbackHandler().toUrlQueryString(prefix + "callbackHandler" + suffix)); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/UpdateCallbackHandlerResponse.java b/src/main/java/com/fireblocks/sdk/model/UpdateCallbackHandlerResponse.java deleted file mode 100644 index 9556365d..00000000 --- a/src/main/java/com/fireblocks/sdk/model/UpdateCallbackHandlerResponse.java +++ /dev/null @@ -1,185 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; -import java.util.UUID; - -/** UpdateCallbackHandlerResponse */ -@JsonPropertyOrder({ - UpdateCallbackHandlerResponse.JSON_PROPERTY_ID, - UpdateCallbackHandlerResponse.JSON_PROPERTY_CALLBACK_HANDLER -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class UpdateCallbackHandlerResponse { - public static final String JSON_PROPERTY_ID = "id"; - @jakarta.annotation.Nonnull private UUID id; - - public static final String JSON_PROPERTY_CALLBACK_HANDLER = "callbackHandler"; - @jakarta.annotation.Nullable private CallbackHandlerRequest callbackHandler; - - public UpdateCallbackHandlerResponse() {} - - @JsonCreator - public UpdateCallbackHandlerResponse( - @JsonProperty(value = JSON_PROPERTY_ID, required = true) UUID id) { - this.id = id; - } - - public UpdateCallbackHandlerResponse id(@jakarta.annotation.Nonnull UUID id) { - this.id = id; - return this; - } - - /** - * The unique identifier of the API key - * - * @return id - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public UUID getId() { - return id; - } - - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(@jakarta.annotation.Nonnull UUID id) { - this.id = id; - } - - public UpdateCallbackHandlerResponse callbackHandler( - @jakarta.annotation.Nullable CallbackHandlerRequest callbackHandler) { - this.callbackHandler = callbackHandler; - return this; - } - - /** - * Get callbackHandler - * - * @return callbackHandler - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CALLBACK_HANDLER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CallbackHandlerRequest getCallbackHandler() { - return callbackHandler; - } - - @JsonProperty(JSON_PROPERTY_CALLBACK_HANDLER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCallbackHandler( - @jakarta.annotation.Nullable CallbackHandlerRequest callbackHandler) { - this.callbackHandler = callbackHandler; - } - - /** Return true if this UpdateCallbackHandlerResponse object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - UpdateCallbackHandlerResponse updateCallbackHandlerResponse = - (UpdateCallbackHandlerResponse) o; - return Objects.equals(this.id, updateCallbackHandlerResponse.id) - && Objects.equals( - this.callbackHandler, updateCallbackHandlerResponse.callbackHandler); - } - - @Override - public int hashCode() { - return Objects.hash(id, callbackHandler); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class UpdateCallbackHandlerResponse {\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" callbackHandler: ").append(toIndentedString(callbackHandler)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `id` to the URL query string - if (getId() != null) { - joiner.add( - String.format( - "%sid%s=%s", - prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); - } - - // add `callbackHandler` to the URL query string - if (getCallbackHandler() != null) { - joiner.add(getCallbackHandler().toUrlQueryString(prefix + "callbackHandler" + suffix)); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/UpdateDraftRequest.java b/src/main/java/com/fireblocks/sdk/model/UpdateDraftRequest.java deleted file mode 100644 index 0da98c72..00000000 --- a/src/main/java/com/fireblocks/sdk/model/UpdateDraftRequest.java +++ /dev/null @@ -1,231 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** Request schema for updating draft with policy types and rules */ -@JsonPropertyOrder({ - UpdateDraftRequest.JSON_PROPERTY_POLICY_TYPES, - UpdateDraftRequest.JSON_PROPERTY_RULES -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class UpdateDraftRequest { - public static final String JSON_PROPERTY_POLICY_TYPES = "policyTypes"; - @jakarta.annotation.Nonnull private List policyTypes = new ArrayList<>(); - - public static final String JSON_PROPERTY_RULES = "rules"; - @jakarta.annotation.Nonnull private List rules = new ArrayList<>(); - - public UpdateDraftRequest() {} - - @JsonCreator - public UpdateDraftRequest( - @JsonProperty(value = JSON_PROPERTY_POLICY_TYPES, required = true) - List policyTypes, - @JsonProperty(value = JSON_PROPERTY_RULES, required = true) List rules) { - this.policyTypes = policyTypes; - this.rules = rules; - } - - public UpdateDraftRequest policyTypes( - @jakarta.annotation.Nonnull List policyTypes) { - this.policyTypes = policyTypes; - return this; - } - - public UpdateDraftRequest addPolicyTypesItem(PolicyType policyTypesItem) { - if (this.policyTypes == null) { - this.policyTypes = new ArrayList<>(); - } - this.policyTypes.add(policyTypesItem); - return this; - } - - /** - * Get policyTypes - * - * @return policyTypes - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_POLICY_TYPES) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getPolicyTypes() { - return policyTypes; - } - - @JsonProperty(JSON_PROPERTY_POLICY_TYPES) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPolicyTypes(@jakarta.annotation.Nonnull List policyTypes) { - this.policyTypes = policyTypes; - } - - public UpdateDraftRequest rules(@jakarta.annotation.Nonnull List rules) { - this.rules = rules; - return this; - } - - public UpdateDraftRequest addRulesItem(PolicyRule rulesItem) { - if (this.rules == null) { - this.rules = new ArrayList<>(); - } - this.rules.add(rulesItem); - return this; - } - - /** - * Array of policy rules - * - * @return rules - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_RULES) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getRules() { - return rules; - } - - @JsonProperty(JSON_PROPERTY_RULES) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setRules(@jakarta.annotation.Nonnull List rules) { - this.rules = rules; - } - - /** Return true if this UpdateDraftRequest object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - UpdateDraftRequest updateDraftRequest = (UpdateDraftRequest) o; - return Objects.equals(this.policyTypes, updateDraftRequest.policyTypes) - && Objects.equals(this.rules, updateDraftRequest.rules); - } - - @Override - public int hashCode() { - return Objects.hash(policyTypes, rules); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class UpdateDraftRequest {\n"); - sb.append(" policyTypes: ").append(toIndentedString(policyTypes)).append("\n"); - sb.append(" rules: ").append(toIndentedString(rules)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `policyTypes` to the URL query string - if (getPolicyTypes() != null) { - for (int i = 0; i < getPolicyTypes().size(); i++) { - if (getPolicyTypes().get(i) != null) { - joiner.add( - String.format( - "%spolicyTypes%s%s=%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode( - ApiClient.valueToString(getPolicyTypes().get(i))))); - } - } - } - - // add `rules` to the URL query string - if (getRules() != null) { - for (int i = 0; i < getRules().size(); i++) { - if (getRules().get(i) != null) { - joiner.add( - getRules() - .get(i) - .toUrlQueryString( - String.format( - "%srules%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/UpdateTagRequest.java b/src/main/java/com/fireblocks/sdk/model/UpdateTagRequest.java deleted file mode 100644 index 2f7aecf1..00000000 --- a/src/main/java/com/fireblocks/sdk/model/UpdateTagRequest.java +++ /dev/null @@ -1,180 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** UpdateTagRequest */ -@JsonPropertyOrder({ - UpdateTagRequest.JSON_PROPERTY_LABEL, - UpdateTagRequest.JSON_PROPERTY_DESCRIPTION -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class UpdateTagRequest { - public static final String JSON_PROPERTY_LABEL = "label"; - @jakarta.annotation.Nullable private String label; - - public static final String JSON_PROPERTY_DESCRIPTION = "description"; - @jakarta.annotation.Nullable private String description; - - public UpdateTagRequest() {} - - public UpdateTagRequest label(@jakarta.annotation.Nullable String label) { - this.label = label; - return this; - } - - /** - * The tag label - * - * @return label - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_LABEL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getLabel() { - return label; - } - - @JsonProperty(JSON_PROPERTY_LABEL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLabel(@jakarta.annotation.Nullable String label) { - this.label = label; - } - - public UpdateTagRequest description(@jakarta.annotation.Nullable String description) { - this.description = description; - return this; - } - - /** - * Description for the tag - * - * @return description - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DESCRIPTION) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getDescription() { - return description; - } - - @JsonProperty(JSON_PROPERTY_DESCRIPTION) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDescription(@jakarta.annotation.Nullable String description) { - this.description = description; - } - - /** Return true if this UpdateTagRequest object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - UpdateTagRequest updateTagRequest = (UpdateTagRequest) o; - return Objects.equals(this.label, updateTagRequest.label) - && Objects.equals(this.description, updateTagRequest.description); - } - - @Override - public int hashCode() { - return Objects.hash(label, description); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class UpdateTagRequest {\n"); - sb.append(" label: ").append(toIndentedString(label)).append("\n"); - sb.append(" description: ").append(toIndentedString(description)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `label` to the URL query string - if (getLabel() != null) { - joiner.add( - String.format( - "%slabel%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getLabel())))); - } - - // add `description` to the URL query string - if (getDescription() != null) { - joiner.add( - String.format( - "%sdescription%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getDescription())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/UpdateWebhookRequest.java b/src/main/java/com/fireblocks/sdk/model/UpdateWebhookRequest.java deleted file mode 100644 index ad1266e9..00000000 --- a/src/main/java/com/fireblocks/sdk/model/UpdateWebhookRequest.java +++ /dev/null @@ -1,277 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** UpdateWebhookRequest */ -@JsonPropertyOrder({ - UpdateWebhookRequest.JSON_PROPERTY_URL, - UpdateWebhookRequest.JSON_PROPERTY_DESCRIPTION, - UpdateWebhookRequest.JSON_PROPERTY_EVENTS, - UpdateWebhookRequest.JSON_PROPERTY_ENABLED -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class UpdateWebhookRequest { - public static final String JSON_PROPERTY_URL = "url"; - @jakarta.annotation.Nullable private String url; - - public static final String JSON_PROPERTY_DESCRIPTION = "description"; - @jakarta.annotation.Nullable private String description; - - public static final String JSON_PROPERTY_EVENTS = "events"; - @jakarta.annotation.Nullable private List events = new ArrayList<>(); - - public static final String JSON_PROPERTY_ENABLED = "enabled"; - @jakarta.annotation.Nullable private Boolean enabled; - - public UpdateWebhookRequest() {} - - public UpdateWebhookRequest url(@jakarta.annotation.Nullable String url) { - this.url = url; - return this; - } - - /** - * The url of the webhook where notifications will be sent. URL must be valid, unique and https. - * - * @return url - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_URL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getUrl() { - return url; - } - - @JsonProperty(JSON_PROPERTY_URL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUrl(@jakarta.annotation.Nullable String url) { - this.url = url; - } - - public UpdateWebhookRequest description(@jakarta.annotation.Nullable String description) { - this.description = description; - return this; - } - - /** - * description of the webhook of what it is used for.should not contain special characters. - * - * @return description - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DESCRIPTION) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getDescription() { - return description; - } - - @JsonProperty(JSON_PROPERTY_DESCRIPTION) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDescription(@jakarta.annotation.Nullable String description) { - this.description = description; - } - - public UpdateWebhookRequest events(@jakarta.annotation.Nullable List events) { - this.events = events; - return this; - } - - public UpdateWebhookRequest addEventsItem(WebhookEvent eventsItem) { - if (this.events == null) { - this.events = new ArrayList<>(); - } - this.events.add(eventsItem); - return this; - } - - /** - * The events that the webhook will be subscribed to - * - * @return events - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EVENTS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getEvents() { - return events; - } - - @JsonProperty(JSON_PROPERTY_EVENTS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEvents(@jakarta.annotation.Nullable List events) { - this.events = events; - } - - public UpdateWebhookRequest enabled(@jakarta.annotation.Nullable Boolean enabled) { - this.enabled = enabled; - return this; - } - - /** - * The status of the webhook - * - * @return enabled - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENABLED) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getEnabled() { - return enabled; - } - - @JsonProperty(JSON_PROPERTY_ENABLED) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnabled(@jakarta.annotation.Nullable Boolean enabled) { - this.enabled = enabled; - } - - /** Return true if this UpdateWebhookRequest object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - UpdateWebhookRequest updateWebhookRequest = (UpdateWebhookRequest) o; - return Objects.equals(this.url, updateWebhookRequest.url) - && Objects.equals(this.description, updateWebhookRequest.description) - && Objects.equals(this.events, updateWebhookRequest.events) - && Objects.equals(this.enabled, updateWebhookRequest.enabled); - } - - @Override - public int hashCode() { - return Objects.hash(url, description, events, enabled); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class UpdateWebhookRequest {\n"); - sb.append(" url: ").append(toIndentedString(url)).append("\n"); - sb.append(" description: ").append(toIndentedString(description)).append("\n"); - sb.append(" events: ").append(toIndentedString(events)).append("\n"); - sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `url` to the URL query string - if (getUrl() != null) { - joiner.add( - String.format( - "%surl%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getUrl())))); - } - - // add `description` to the URL query string - if (getDescription() != null) { - joiner.add( - String.format( - "%sdescription%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getDescription())))); - } - - // add `events` to the URL query string - if (getEvents() != null) { - for (int i = 0; i < getEvents().size(); i++) { - if (getEvents().get(i) != null) { - joiner.add( - String.format( - "%sevents%s%s=%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode( - ApiClient.valueToString(getEvents().get(i))))); - } - } - } - - // add `enabled` to the URL query string - if (getEnabled() != null) { - joiner.add( - String.format( - "%senabled%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getEnabled())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/UsWirePaymentInfo.java b/src/main/java/com/fireblocks/sdk/model/UsWirePaymentInfo.java deleted file mode 100644 index e9330a48..00000000 --- a/src/main/java/com/fireblocks/sdk/model/UsWirePaymentInfo.java +++ /dev/null @@ -1,826 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** US Wire payment information for US domestic wire transfers */ -@JsonPropertyOrder({ - UsWirePaymentInfo.JSON_PROPERTY_RAIL, - UsWirePaymentInfo.JSON_PROPERTY_ADDRESSING_SYSTEM, - UsWirePaymentInfo.JSON_PROPERTY_ACCOUNT_HOLDER_GIVEN_NAME, - UsWirePaymentInfo.JSON_PROPERTY_ACCOUNT_HOLDER_SURNAME, - UsWirePaymentInfo.JSON_PROPERTY_COUNTRY, - UsWirePaymentInfo.JSON_PROPERTY_ACCOUNT_NUMBER, - UsWirePaymentInfo.JSON_PROPERTY_ROUTING_NUMBER, - UsWirePaymentInfo.JSON_PROPERTY_SWIFT_CODE, - UsWirePaymentInfo.JSON_PROPERTY_BANK_NAME, - UsWirePaymentInfo.JSON_PROPERTY_BANK_ADDRESS_LINE, - UsWirePaymentInfo.JSON_PROPERTY_BANK_ADDRESS_CITY, - UsWirePaymentInfo.JSON_PROPERTY_BANK_ADDRESS_STATE, - UsWirePaymentInfo.JSON_PROPERTY_BANK_ADDRESS_COUNTRY, - UsWirePaymentInfo.JSON_PROPERTY_BANK_ADDRESS_POSTAL_CODE, - UsWirePaymentInfo.JSON_PROPERTY_BRANCH_NUMBER -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class UsWirePaymentInfo { - /** The payment rail type for US wire transfers */ - public enum RailEnum { - US_WIRE(String.valueOf("US_WIRE")); - - private String value; - - RailEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static RailEnum fromValue(String value) { - for (RailEnum b : RailEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_RAIL = "rail"; - @jakarta.annotation.Nonnull private RailEnum rail; - - /** The addressing system used for US wire transfers */ - public enum AddressingSystemEnum { - ABA(String.valueOf("ABA")); - - private String value; - - AddressingSystemEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static AddressingSystemEnum fromValue(String value) { - for (AddressingSystemEnum b : AddressingSystemEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_ADDRESSING_SYSTEM = "addressingSystem"; - @jakarta.annotation.Nonnull private AddressingSystemEnum addressingSystem; - - public static final String JSON_PROPERTY_ACCOUNT_HOLDER_GIVEN_NAME = "accountHolderGivenName"; - @jakarta.annotation.Nonnull private String accountHolderGivenName; - - public static final String JSON_PROPERTY_ACCOUNT_HOLDER_SURNAME = "accountHolderSurname"; - @jakarta.annotation.Nonnull private String accountHolderSurname; - - public static final String JSON_PROPERTY_COUNTRY = "country"; - @jakarta.annotation.Nonnull private String country; - - public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; - @jakarta.annotation.Nonnull private String accountNumber; - - public static final String JSON_PROPERTY_ROUTING_NUMBER = "routingNumber"; - @jakarta.annotation.Nonnull private String routingNumber; - - public static final String JSON_PROPERTY_SWIFT_CODE = "swiftCode"; - @jakarta.annotation.Nonnull private String swiftCode; - - public static final String JSON_PROPERTY_BANK_NAME = "bankName"; - @jakarta.annotation.Nonnull private String bankName; - - public static final String JSON_PROPERTY_BANK_ADDRESS_LINE = "bankAddressLine"; - @jakarta.annotation.Nonnull private String bankAddressLine; - - public static final String JSON_PROPERTY_BANK_ADDRESS_CITY = "bankAddressCity"; - @jakarta.annotation.Nonnull private String bankAddressCity; - - public static final String JSON_PROPERTY_BANK_ADDRESS_STATE = "bankAddressState"; - @jakarta.annotation.Nullable private String bankAddressState; - - public static final String JSON_PROPERTY_BANK_ADDRESS_COUNTRY = "bankAddressCountry"; - @jakarta.annotation.Nonnull private String bankAddressCountry; - - public static final String JSON_PROPERTY_BANK_ADDRESS_POSTAL_CODE = "bankAddressPostalCode"; - @jakarta.annotation.Nonnull private String bankAddressPostalCode; - - public static final String JSON_PROPERTY_BRANCH_NUMBER = "branchNumber"; - @jakarta.annotation.Nullable private String branchNumber; - - public UsWirePaymentInfo() {} - - @JsonCreator - public UsWirePaymentInfo( - @JsonProperty(value = JSON_PROPERTY_RAIL, required = true) RailEnum rail, - @JsonProperty(value = JSON_PROPERTY_ADDRESSING_SYSTEM, required = true) - AddressingSystemEnum addressingSystem, - @JsonProperty(value = JSON_PROPERTY_ACCOUNT_HOLDER_GIVEN_NAME, required = true) - String accountHolderGivenName, - @JsonProperty(value = JSON_PROPERTY_ACCOUNT_HOLDER_SURNAME, required = true) - String accountHolderSurname, - @JsonProperty(value = JSON_PROPERTY_COUNTRY, required = true) String country, - @JsonProperty(value = JSON_PROPERTY_ACCOUNT_NUMBER, required = true) - String accountNumber, - @JsonProperty(value = JSON_PROPERTY_ROUTING_NUMBER, required = true) - String routingNumber, - @JsonProperty(value = JSON_PROPERTY_SWIFT_CODE, required = true) String swiftCode, - @JsonProperty(value = JSON_PROPERTY_BANK_NAME, required = true) String bankName, - @JsonProperty(value = JSON_PROPERTY_BANK_ADDRESS_LINE, required = true) - String bankAddressLine, - @JsonProperty(value = JSON_PROPERTY_BANK_ADDRESS_CITY, required = true) - String bankAddressCity, - @JsonProperty(value = JSON_PROPERTY_BANK_ADDRESS_COUNTRY, required = true) - String bankAddressCountry, - @JsonProperty(value = JSON_PROPERTY_BANK_ADDRESS_POSTAL_CODE, required = true) - String bankAddressPostalCode) { - this.rail = rail; - this.addressingSystem = addressingSystem; - this.accountHolderGivenName = accountHolderGivenName; - this.accountHolderSurname = accountHolderSurname; - this.country = country; - this.accountNumber = accountNumber; - this.routingNumber = routingNumber; - this.swiftCode = swiftCode; - this.bankName = bankName; - this.bankAddressLine = bankAddressLine; - this.bankAddressCity = bankAddressCity; - this.bankAddressCountry = bankAddressCountry; - this.bankAddressPostalCode = bankAddressPostalCode; - } - - public UsWirePaymentInfo rail(@jakarta.annotation.Nonnull RailEnum rail) { - this.rail = rail; - return this; - } - - /** - * The payment rail type for US wire transfers - * - * @return rail - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_RAIL) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public RailEnum getRail() { - return rail; - } - - @JsonProperty(JSON_PROPERTY_RAIL) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setRail(@jakarta.annotation.Nonnull RailEnum rail) { - this.rail = rail; - } - - public UsWirePaymentInfo addressingSystem( - @jakarta.annotation.Nonnull AddressingSystemEnum addressingSystem) { - this.addressingSystem = addressingSystem; - return this; - } - - /** - * The addressing system used for US wire transfers - * - * @return addressingSystem - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ADDRESSING_SYSTEM) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AddressingSystemEnum getAddressingSystem() { - return addressingSystem; - } - - @JsonProperty(JSON_PROPERTY_ADDRESSING_SYSTEM) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAddressingSystem( - @jakarta.annotation.Nonnull AddressingSystemEnum addressingSystem) { - this.addressingSystem = addressingSystem; - } - - public UsWirePaymentInfo accountHolderGivenName( - @jakarta.annotation.Nonnull String accountHolderGivenName) { - this.accountHolderGivenName = accountHolderGivenName; - return this; - } - - /** - * The given name (first name) of the account holder - * - * @return accountHolderGivenName - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_GIVEN_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getAccountHolderGivenName() { - return accountHolderGivenName; - } - - @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_GIVEN_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAccountHolderGivenName( - @jakarta.annotation.Nonnull String accountHolderGivenName) { - this.accountHolderGivenName = accountHolderGivenName; - } - - public UsWirePaymentInfo accountHolderSurname( - @jakarta.annotation.Nonnull String accountHolderSurname) { - this.accountHolderSurname = accountHolderSurname; - return this; - } - - /** - * The surname (last name) of the account holder - * - * @return accountHolderSurname - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_SURNAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getAccountHolderSurname() { - return accountHolderSurname; - } - - @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_SURNAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAccountHolderSurname(@jakarta.annotation.Nonnull String accountHolderSurname) { - this.accountHolderSurname = accountHolderSurname; - } - - public UsWirePaymentInfo country(@jakarta.annotation.Nonnull String country) { - this.country = country; - return this; - } - - /** - * The country for the transfer (ISO 3166-1 alpha-2 code) - * - * @return country - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_COUNTRY) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getCountry() { - return country; - } - - @JsonProperty(JSON_PROPERTY_COUNTRY) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCountry(@jakarta.annotation.Nonnull String country) { - this.country = country; - } - - public UsWirePaymentInfo accountNumber(@jakarta.annotation.Nonnull String accountNumber) { - this.accountNumber = accountNumber; - return this; - } - - /** - * The bank account number - * - * @return accountNumber - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getAccountNumber() { - return accountNumber; - } - - @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAccountNumber(@jakarta.annotation.Nonnull String accountNumber) { - this.accountNumber = accountNumber; - } - - public UsWirePaymentInfo routingNumber(@jakarta.annotation.Nonnull String routingNumber) { - this.routingNumber = routingNumber; - return this; - } - - /** - * The bank routing number (ABA routing number) - * - * @return routingNumber - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ROUTING_NUMBER) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getRoutingNumber() { - return routingNumber; - } - - @JsonProperty(JSON_PROPERTY_ROUTING_NUMBER) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setRoutingNumber(@jakarta.annotation.Nonnull String routingNumber) { - this.routingNumber = routingNumber; - } - - public UsWirePaymentInfo swiftCode(@jakarta.annotation.Nonnull String swiftCode) { - this.swiftCode = swiftCode; - return this; - } - - /** - * The SWIFT/BIC code of the bank - * - * @return swiftCode - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SWIFT_CODE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getSwiftCode() { - return swiftCode; - } - - @JsonProperty(JSON_PROPERTY_SWIFT_CODE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSwiftCode(@jakarta.annotation.Nonnull String swiftCode) { - this.swiftCode = swiftCode; - } - - public UsWirePaymentInfo bankName(@jakarta.annotation.Nonnull String bankName) { - this.bankName = bankName; - return this; - } - - /** - * The name of the bank - * - * @return bankName - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BANK_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getBankName() { - return bankName; - } - - @JsonProperty(JSON_PROPERTY_BANK_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBankName(@jakarta.annotation.Nonnull String bankName) { - this.bankName = bankName; - } - - public UsWirePaymentInfo bankAddressLine(@jakarta.annotation.Nonnull String bankAddressLine) { - this.bankAddressLine = bankAddressLine; - return this; - } - - /** - * The street address of the bank - * - * @return bankAddressLine - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BANK_ADDRESS_LINE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getBankAddressLine() { - return bankAddressLine; - } - - @JsonProperty(JSON_PROPERTY_BANK_ADDRESS_LINE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBankAddressLine(@jakarta.annotation.Nonnull String bankAddressLine) { - this.bankAddressLine = bankAddressLine; - } - - public UsWirePaymentInfo bankAddressCity(@jakarta.annotation.Nonnull String bankAddressCity) { - this.bankAddressCity = bankAddressCity; - return this; - } - - /** - * The city where the bank is located - * - * @return bankAddressCity - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BANK_ADDRESS_CITY) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getBankAddressCity() { - return bankAddressCity; - } - - @JsonProperty(JSON_PROPERTY_BANK_ADDRESS_CITY) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBankAddressCity(@jakarta.annotation.Nonnull String bankAddressCity) { - this.bankAddressCity = bankAddressCity; - } - - public UsWirePaymentInfo bankAddressState( - @jakarta.annotation.Nullable String bankAddressState) { - this.bankAddressState = bankAddressState; - return this; - } - - /** - * The state where the bank is located - * - * @return bankAddressState - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BANK_ADDRESS_STATE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getBankAddressState() { - return bankAddressState; - } - - @JsonProperty(JSON_PROPERTY_BANK_ADDRESS_STATE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBankAddressState(@jakarta.annotation.Nullable String bankAddressState) { - this.bankAddressState = bankAddressState; - } - - public UsWirePaymentInfo bankAddressCountry( - @jakarta.annotation.Nonnull String bankAddressCountry) { - this.bankAddressCountry = bankAddressCountry; - return this; - } - - /** - * The country where the bank is located (ISO 3166-1 alpha-2 code) - * - * @return bankAddressCountry - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BANK_ADDRESS_COUNTRY) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getBankAddressCountry() { - return bankAddressCountry; - } - - @JsonProperty(JSON_PROPERTY_BANK_ADDRESS_COUNTRY) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBankAddressCountry(@jakarta.annotation.Nonnull String bankAddressCountry) { - this.bankAddressCountry = bankAddressCountry; - } - - public UsWirePaymentInfo bankAddressPostalCode( - @jakarta.annotation.Nonnull String bankAddressPostalCode) { - this.bankAddressPostalCode = bankAddressPostalCode; - return this; - } - - /** - * The postal code of the bank's address - * - * @return bankAddressPostalCode - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BANK_ADDRESS_POSTAL_CODE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getBankAddressPostalCode() { - return bankAddressPostalCode; - } - - @JsonProperty(JSON_PROPERTY_BANK_ADDRESS_POSTAL_CODE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBankAddressPostalCode(@jakarta.annotation.Nonnull String bankAddressPostalCode) { - this.bankAddressPostalCode = bankAddressPostalCode; - } - - public UsWirePaymentInfo branchNumber(@jakarta.annotation.Nullable String branchNumber) { - this.branchNumber = branchNumber; - return this; - } - - /** - * The branch number of the bank - * - * @return branchNumber - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BRANCH_NUMBER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getBranchNumber() { - return branchNumber; - } - - @JsonProperty(JSON_PROPERTY_BRANCH_NUMBER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBranchNumber(@jakarta.annotation.Nullable String branchNumber) { - this.branchNumber = branchNumber; - } - - /** Return true if this UsWirePaymentInfo object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - UsWirePaymentInfo usWirePaymentInfo = (UsWirePaymentInfo) o; - return Objects.equals(this.rail, usWirePaymentInfo.rail) - && Objects.equals(this.addressingSystem, usWirePaymentInfo.addressingSystem) - && Objects.equals( - this.accountHolderGivenName, usWirePaymentInfo.accountHolderGivenName) - && Objects.equals(this.accountHolderSurname, usWirePaymentInfo.accountHolderSurname) - && Objects.equals(this.country, usWirePaymentInfo.country) - && Objects.equals(this.accountNumber, usWirePaymentInfo.accountNumber) - && Objects.equals(this.routingNumber, usWirePaymentInfo.routingNumber) - && Objects.equals(this.swiftCode, usWirePaymentInfo.swiftCode) - && Objects.equals(this.bankName, usWirePaymentInfo.bankName) - && Objects.equals(this.bankAddressLine, usWirePaymentInfo.bankAddressLine) - && Objects.equals(this.bankAddressCity, usWirePaymentInfo.bankAddressCity) - && Objects.equals(this.bankAddressState, usWirePaymentInfo.bankAddressState) - && Objects.equals(this.bankAddressCountry, usWirePaymentInfo.bankAddressCountry) - && Objects.equals( - this.bankAddressPostalCode, usWirePaymentInfo.bankAddressPostalCode) - && Objects.equals(this.branchNumber, usWirePaymentInfo.branchNumber); - } - - @Override - public int hashCode() { - return Objects.hash( - rail, - addressingSystem, - accountHolderGivenName, - accountHolderSurname, - country, - accountNumber, - routingNumber, - swiftCode, - bankName, - bankAddressLine, - bankAddressCity, - bankAddressState, - bankAddressCountry, - bankAddressPostalCode, - branchNumber); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class UsWirePaymentInfo {\n"); - sb.append(" rail: ").append(toIndentedString(rail)).append("\n"); - sb.append(" addressingSystem: ").append(toIndentedString(addressingSystem)).append("\n"); - sb.append(" accountHolderGivenName: ") - .append(toIndentedString(accountHolderGivenName)) - .append("\n"); - sb.append(" accountHolderSurname: ") - .append(toIndentedString(accountHolderSurname)) - .append("\n"); - sb.append(" country: ").append(toIndentedString(country)).append("\n"); - sb.append(" accountNumber: ").append(toIndentedString(accountNumber)).append("\n"); - sb.append(" routingNumber: ").append(toIndentedString(routingNumber)).append("\n"); - sb.append(" swiftCode: ").append(toIndentedString(swiftCode)).append("\n"); - sb.append(" bankName: ").append(toIndentedString(bankName)).append("\n"); - sb.append(" bankAddressLine: ").append(toIndentedString(bankAddressLine)).append("\n"); - sb.append(" bankAddressCity: ").append(toIndentedString(bankAddressCity)).append("\n"); - sb.append(" bankAddressState: ").append(toIndentedString(bankAddressState)).append("\n"); - sb.append(" bankAddressCountry: ") - .append(toIndentedString(bankAddressCountry)) - .append("\n"); - sb.append(" bankAddressPostalCode: ") - .append(toIndentedString(bankAddressPostalCode)) - .append("\n"); - sb.append(" branchNumber: ").append(toIndentedString(branchNumber)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `rail` to the URL query string - if (getRail() != null) { - joiner.add( - String.format( - "%srail%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getRail())))); - } - - // add `addressingSystem` to the URL query string - if (getAddressingSystem() != null) { - joiner.add( - String.format( - "%saddressingSystem%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAddressingSystem())))); - } - - // add `accountHolderGivenName` to the URL query string - if (getAccountHolderGivenName() != null) { - joiner.add( - String.format( - "%saccountHolderGivenName%s=%s", - prefix, - suffix, - ApiClient.urlEncode( - ApiClient.valueToString(getAccountHolderGivenName())))); - } - - // add `accountHolderSurname` to the URL query string - if (getAccountHolderSurname() != null) { - joiner.add( - String.format( - "%saccountHolderSurname%s=%s", - prefix, - suffix, - ApiClient.urlEncode( - ApiClient.valueToString(getAccountHolderSurname())))); - } - - // add `country` to the URL query string - if (getCountry() != null) { - joiner.add( - String.format( - "%scountry%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getCountry())))); - } - - // add `accountNumber` to the URL query string - if (getAccountNumber() != null) { - joiner.add( - String.format( - "%saccountNumber%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAccountNumber())))); - } - - // add `routingNumber` to the URL query string - if (getRoutingNumber() != null) { - joiner.add( - String.format( - "%sroutingNumber%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getRoutingNumber())))); - } - - // add `swiftCode` to the URL query string - if (getSwiftCode() != null) { - joiner.add( - String.format( - "%sswiftCode%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getSwiftCode())))); - } - - // add `bankName` to the URL query string - if (getBankName() != null) { - joiner.add( - String.format( - "%sbankName%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBankName())))); - } - - // add `bankAddressLine` to the URL query string - if (getBankAddressLine() != null) { - joiner.add( - String.format( - "%sbankAddressLine%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBankAddressLine())))); - } - - // add `bankAddressCity` to the URL query string - if (getBankAddressCity() != null) { - joiner.add( - String.format( - "%sbankAddressCity%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBankAddressCity())))); - } - - // add `bankAddressState` to the URL query string - if (getBankAddressState() != null) { - joiner.add( - String.format( - "%sbankAddressState%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBankAddressState())))); - } - - // add `bankAddressCountry` to the URL query string - if (getBankAddressCountry() != null) { - joiner.add( - String.format( - "%sbankAddressCountry%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBankAddressCountry())))); - } - - // add `bankAddressPostalCode` to the URL query string - if (getBankAddressPostalCode() != null) { - joiner.add( - String.format( - "%sbankAddressPostalCode%s=%s", - prefix, - suffix, - ApiClient.urlEncode( - ApiClient.valueToString(getBankAddressPostalCode())))); - } - - // add `branchNumber` to the URL query string - if (getBranchNumber() != null) { - joiner.add( - String.format( - "%sbranchNumber%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBranchNumber())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/UserGroupCreateRequest.java b/src/main/java/com/fireblocks/sdk/model/UserGroupCreateRequest.java index 60f84cd6..4fe2ee55 100644 --- a/src/main/java/com/fireblocks/sdk/model/UserGroupCreateRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/UserGroupCreateRequest.java @@ -35,7 +35,7 @@ public class UserGroupCreateRequest { @jakarta.annotation.Nullable private String groupName; public static final String JSON_PROPERTY_MEMBER_IDS = "memberIds"; - @jakarta.annotation.Nullable private List memberIds = new ArrayList<>(); + @jakarta.annotation.Nullable private List memberIds; public UserGroupCreateRequest() {} diff --git a/src/main/java/com/fireblocks/sdk/model/UserGroupCreateResponse.java b/src/main/java/com/fireblocks/sdk/model/UserGroupCreateResponse.java index 270ccf78..a921a09a 100644 --- a/src/main/java/com/fireblocks/sdk/model/UserGroupCreateResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/UserGroupCreateResponse.java @@ -40,7 +40,7 @@ public class UserGroupCreateResponse { @jakarta.annotation.Nullable private String id; public static final String JSON_PROPERTY_MEMBER_IDS = "memberIds"; - @jakarta.annotation.Nullable private List memberIds = new ArrayList<>(); + @jakarta.annotation.Nullable private List memberIds; public static final String JSON_PROPERTY_STATUS = "status"; @jakarta.annotation.Nullable private String status; diff --git a/src/main/java/com/fireblocks/sdk/model/UserGroupResponse.java b/src/main/java/com/fireblocks/sdk/model/UserGroupResponse.java index 29d748f6..e71d9069 100644 --- a/src/main/java/com/fireblocks/sdk/model/UserGroupResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/UserGroupResponse.java @@ -43,7 +43,7 @@ public class UserGroupResponse { @jakarta.annotation.Nullable private String status; public static final String JSON_PROPERTY_MEMBER_IDS = "memberIds"; - @jakarta.annotation.Nullable private List memberIds = new ArrayList<>(); + @jakarta.annotation.Nullable private List memberIds; public UserGroupResponse() {} diff --git a/src/main/java/com/fireblocks/sdk/model/UserGroupUpdateRequest.java b/src/main/java/com/fireblocks/sdk/model/UserGroupUpdateRequest.java index 7b263750..7944ab14 100644 --- a/src/main/java/com/fireblocks/sdk/model/UserGroupUpdateRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/UserGroupUpdateRequest.java @@ -35,7 +35,7 @@ public class UserGroupUpdateRequest { @jakarta.annotation.Nullable private String groupName; public static final String JSON_PROPERTY_MEMBER_IDS = "memberIds"; - @jakarta.annotation.Nullable private List memberIds = new ArrayList<>(); + @jakarta.annotation.Nullable private List memberIds; public UserGroupUpdateRequest() {} diff --git a/src/main/java/com/fireblocks/sdk/model/ValidateLayerZeroChannelResponse.java b/src/main/java/com/fireblocks/sdk/model/ValidateLayerZeroChannelResponse.java deleted file mode 100644 index f16af354..00000000 --- a/src/main/java/com/fireblocks/sdk/model/ValidateLayerZeroChannelResponse.java +++ /dev/null @@ -1,207 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** ValidateLayerZeroChannelResponse */ -@JsonPropertyOrder({ - ValidateLayerZeroChannelResponse.JSON_PROPERTY_CORRECT, - ValidateLayerZeroChannelResponse.JSON_PROPERTY_ERRORS -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class ValidateLayerZeroChannelResponse { - public static final String JSON_PROPERTY_CORRECT = "correct"; - @jakarta.annotation.Nonnull private Boolean correct; - - public static final String JSON_PROPERTY_ERRORS = "errors"; - @jakarta.annotation.Nonnull private List errors = new ArrayList<>(); - - public ValidateLayerZeroChannelResponse() {} - - @JsonCreator - public ValidateLayerZeroChannelResponse( - @JsonProperty(value = JSON_PROPERTY_CORRECT, required = true) Boolean correct, - @JsonProperty(value = JSON_PROPERTY_ERRORS, required = true) List errors) { - this.correct = correct; - this.errors = errors; - } - - public ValidateLayerZeroChannelResponse correct(@jakarta.annotation.Nonnull Boolean correct) { - this.correct = correct; - return this; - } - - /** - * Indicates whether the LayerZero channel configuration is valid. - * - * @return correct - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CORRECT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Boolean getCorrect() { - return correct; - } - - @JsonProperty(JSON_PROPERTY_CORRECT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCorrect(@jakarta.annotation.Nonnull Boolean correct) { - this.correct = correct; - } - - public ValidateLayerZeroChannelResponse errors( - @jakarta.annotation.Nonnull List errors) { - this.errors = errors; - return this; - } - - public ValidateLayerZeroChannelResponse addErrorsItem(String errorsItem) { - if (this.errors == null) { - this.errors = new ArrayList<>(); - } - this.errors.add(errorsItem); - return this; - } - - /** - * List of errors found during validation. An empty array indicates no errors. - * - * @return errors - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ERRORS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getErrors() { - return errors; - } - - @JsonProperty(JSON_PROPERTY_ERRORS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setErrors(@jakarta.annotation.Nonnull List errors) { - this.errors = errors; - } - - /** Return true if this ValidateLayerZeroChannelResponse object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ValidateLayerZeroChannelResponse validateLayerZeroChannelResponse = - (ValidateLayerZeroChannelResponse) o; - return Objects.equals(this.correct, validateLayerZeroChannelResponse.correct) - && Objects.equals(this.errors, validateLayerZeroChannelResponse.errors); - } - - @Override - public int hashCode() { - return Objects.hash(correct, errors); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ValidateLayerZeroChannelResponse {\n"); - sb.append(" correct: ").append(toIndentedString(correct)).append("\n"); - sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `correct` to the URL query string - if (getCorrect() != null) { - joiner.add( - String.format( - "%scorrect%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getCorrect())))); - } - - // add `errors` to the URL query string - if (getErrors() != null) { - for (int i = 0; i < getErrors().size(); i++) { - joiner.add( - String.format( - "%serrors%s%s=%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode(ApiClient.valueToString(getErrors().get(i))))); - } - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/ValidatedTransactionsForRescan.java b/src/main/java/com/fireblocks/sdk/model/ValidatedTransactionsForRescan.java deleted file mode 100644 index 9b3cfc9c..00000000 --- a/src/main/java/com/fireblocks/sdk/model/ValidatedTransactionsForRescan.java +++ /dev/null @@ -1,240 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** ValidatedTransactionsForRescan */ -@JsonPropertyOrder({ - ValidatedTransactionsForRescan.JSON_PROPERTY_BASE_ASSET, - ValidatedTransactionsForRescan.JSON_PROPERTY_NETWORK_PROTOCOL, - ValidatedTransactionsForRescan.JSON_PROPERTY_TX_HASHES -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class ValidatedTransactionsForRescan { - public static final String JSON_PROPERTY_BASE_ASSET = "baseAsset"; - @jakarta.annotation.Nullable private String baseAsset; - - public static final String JSON_PROPERTY_NETWORK_PROTOCOL = "networkProtocol"; - @jakarta.annotation.Nullable private String networkProtocol; - - public static final String JSON_PROPERTY_TX_HASHES = "txHashes"; - @jakarta.annotation.Nullable private List txHashes = new ArrayList<>(); - - public ValidatedTransactionsForRescan() {} - - public ValidatedTransactionsForRescan baseAsset(@jakarta.annotation.Nullable String baseAsset) { - this.baseAsset = baseAsset; - return this; - } - - /** - * Base asset symbol BTC_TEST, ETH_TEST5) - * - * @return baseAsset - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BASE_ASSET) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getBaseAsset() { - return baseAsset; - } - - @JsonProperty(JSON_PROPERTY_BASE_ASSET) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBaseAsset(@jakarta.annotation.Nullable String baseAsset) { - this.baseAsset = baseAsset; - } - - public ValidatedTransactionsForRescan networkProtocol( - @jakarta.annotation.Nullable String networkProtocol) { - this.networkProtocol = networkProtocol; - return this; - } - - /** - * Netowrk protocol of the blockchain (BTC, ETH) - * - * @return networkProtocol - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NETWORK_PROTOCOL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getNetworkProtocol() { - return networkProtocol; - } - - @JsonProperty(JSON_PROPERTY_NETWORK_PROTOCOL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNetworkProtocol(@jakarta.annotation.Nullable String networkProtocol) { - this.networkProtocol = networkProtocol; - } - - public ValidatedTransactionsForRescan txHashes( - @jakarta.annotation.Nullable List txHashes) { - this.txHashes = txHashes; - return this; - } - - public ValidatedTransactionsForRescan addTxHashesItem(String txHashesItem) { - if (this.txHashes == null) { - this.txHashes = new ArrayList<>(); - } - this.txHashes.add(txHashesItem); - return this; - } - - /** - * Blockchain TX hashes - * - * @return txHashes - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TX_HASHES) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getTxHashes() { - return txHashes; - } - - @JsonProperty(JSON_PROPERTY_TX_HASHES) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTxHashes(@jakarta.annotation.Nullable List txHashes) { - this.txHashes = txHashes; - } - - /** Return true if this ValidatedTransactionsForRescan object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ValidatedTransactionsForRescan validatedTransactionsForRescan = - (ValidatedTransactionsForRescan) o; - return Objects.equals(this.baseAsset, validatedTransactionsForRescan.baseAsset) - && Objects.equals( - this.networkProtocol, validatedTransactionsForRescan.networkProtocol) - && Objects.equals(this.txHashes, validatedTransactionsForRescan.txHashes); - } - - @Override - public int hashCode() { - return Objects.hash(baseAsset, networkProtocol, txHashes); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ValidatedTransactionsForRescan {\n"); - sb.append(" baseAsset: ").append(toIndentedString(baseAsset)).append("\n"); - sb.append(" networkProtocol: ").append(toIndentedString(networkProtocol)).append("\n"); - sb.append(" txHashes: ").append(toIndentedString(txHashes)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `baseAsset` to the URL query string - if (getBaseAsset() != null) { - joiner.add( - String.format( - "%sbaseAsset%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBaseAsset())))); - } - - // add `networkProtocol` to the URL query string - if (getNetworkProtocol() != null) { - joiner.add( - String.format( - "%snetworkProtocol%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getNetworkProtocol())))); - } - - // add `txHashes` to the URL query string - if (getTxHashes() != null) { - for (int i = 0; i < getTxHashes().size(); i++) { - joiner.add( - String.format( - "%stxHashes%s%s=%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode( - ApiClient.valueToString(getTxHashes().get(i))))); - } - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/Validator.java b/src/main/java/com/fireblocks/sdk/model/ValidatorDto.java similarity index 72% rename from src/main/java/com/fireblocks/sdk/model/Validator.java rename to src/main/java/com/fireblocks/sdk/model/ValidatorDto.java index ecd07b48..c27cf9b3 100644 --- a/src/main/java/com/fireblocks/sdk/model/Validator.java +++ b/src/main/java/com/fireblocks/sdk/model/ValidatorDto.java @@ -22,29 +22,25 @@ import java.util.Objects; import java.util.StringJoiner; -/** Validator */ +/** ValidatorDto */ @JsonPropertyOrder({ - Validator.JSON_PROPERTY_CHAIN_DESCRIPTOR, - Validator.JSON_PROPERTY_FEE_PERCENT, - Validator.JSON_PROPERTY_IS_PRIVATE + ValidatorDto.JSON_PROPERTY_CHAIN_DESCRIPTOR, + ValidatorDto.JSON_PROPERTY_FEE_PERCENT }) @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") -public class Validator { +public class ValidatorDto { public static final String JSON_PROPERTY_CHAIN_DESCRIPTOR = "chainDescriptor"; @jakarta.annotation.Nonnull private String chainDescriptor; public static final String JSON_PROPERTY_FEE_PERCENT = "feePercent"; @jakarta.annotation.Nonnull private BigDecimal feePercent; - public static final String JSON_PROPERTY_IS_PRIVATE = "isPrivate"; - @jakarta.annotation.Nullable private Boolean isPrivate; - - public Validator() {} + public ValidatorDto() {} @JsonCreator - public Validator( + public ValidatorDto( @JsonProperty(value = JSON_PROPERTY_CHAIN_DESCRIPTOR, required = true) String chainDescriptor, @JsonProperty(value = JSON_PROPERTY_FEE_PERCENT, required = true) @@ -53,7 +49,7 @@ public Validator( this.feePercent = feePercent; } - public Validator chainDescriptor(@jakarta.annotation.Nonnull String chainDescriptor) { + public ValidatorDto chainDescriptor(@jakarta.annotation.Nonnull String chainDescriptor) { this.chainDescriptor = chainDescriptor; return this; } @@ -76,7 +72,7 @@ public void setChainDescriptor(@jakarta.annotation.Nonnull String chainDescripto this.chainDescriptor = chainDescriptor; } - public Validator feePercent(@jakarta.annotation.Nonnull BigDecimal feePercent) { + public ValidatorDto feePercent(@jakarta.annotation.Nonnull BigDecimal feePercent) { this.feePercent = feePercent; return this; } @@ -99,30 +95,7 @@ public void setFeePercent(@jakarta.annotation.Nonnull BigDecimal feePercent) { this.feePercent = feePercent; } - public Validator isPrivate(@jakarta.annotation.Nullable Boolean isPrivate) { - this.isPrivate = isPrivate; - return this; - } - - /** - * Is the validator private, i.e created by the user - * - * @return isPrivate - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_IS_PRIVATE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getIsPrivate() { - return isPrivate; - } - - @JsonProperty(JSON_PROPERTY_IS_PRIVATE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIsPrivate(@jakarta.annotation.Nullable Boolean isPrivate) { - this.isPrivate = isPrivate; - } - - /** Return true if this Validator object is equal to o. */ + /** Return true if this ValidatorDto object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -131,24 +104,22 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - Validator validator = (Validator) o; - return Objects.equals(this.chainDescriptor, validator.chainDescriptor) - && Objects.equals(this.feePercent, validator.feePercent) - && Objects.equals(this.isPrivate, validator.isPrivate); + ValidatorDto validatorDto = (ValidatorDto) o; + return Objects.equals(this.chainDescriptor, validatorDto.chainDescriptor) + && Objects.equals(this.feePercent, validatorDto.feePercent); } @Override public int hashCode() { - return Objects.hash(chainDescriptor, feePercent, isPrivate); + return Objects.hash(chainDescriptor, feePercent); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class Validator {\n"); + sb.append("class ValidatorDto {\n"); sb.append(" chainDescriptor: ").append(toIndentedString(chainDescriptor)).append("\n"); sb.append(" feePercent: ").append(toIndentedString(feePercent)).append("\n"); - sb.append(" isPrivate: ").append(toIndentedString(isPrivate)).append("\n"); sb.append("}"); return sb.toString(); } @@ -216,16 +187,6 @@ public String toUrlQueryString(String prefix) { ApiClient.urlEncode(ApiClient.valueToString(getFeePercent())))); } - // add `isPrivate` to the URL query string - if (getIsPrivate() != null) { - joiner.add( - String.format( - "%sisPrivate%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getIsPrivate())))); - } - return joiner.toString(); } } diff --git a/src/main/java/com/fireblocks/sdk/model/VaultAccount.java b/src/main/java/com/fireblocks/sdk/model/VaultAccount.java index 6356774d..1a0ecf8c 100644 --- a/src/main/java/com/fireblocks/sdk/model/VaultAccount.java +++ b/src/main/java/com/fireblocks/sdk/model/VaultAccount.java @@ -29,8 +29,7 @@ VaultAccount.JSON_PROPERTY_ASSETS, VaultAccount.JSON_PROPERTY_HIDDEN_ON_U_I, VaultAccount.JSON_PROPERTY_CUSTOMER_REF_ID, - VaultAccount.JSON_PROPERTY_AUTO_FUEL, - VaultAccount.JSON_PROPERTY_TAGS + VaultAccount.JSON_PROPERTY_AUTO_FUEL }) @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", @@ -43,7 +42,7 @@ public class VaultAccount { @jakarta.annotation.Nullable private String name; public static final String JSON_PROPERTY_ASSETS = "assets"; - @jakarta.annotation.Nullable private List assets = new ArrayList<>(); + @jakarta.annotation.Nullable private List assets; public static final String JSON_PROPERTY_HIDDEN_ON_U_I = "hiddenOnUI"; @jakarta.annotation.Nullable private Boolean hiddenOnUI; @@ -54,9 +53,6 @@ public class VaultAccount { public static final String JSON_PROPERTY_AUTO_FUEL = "autoFuel"; @jakarta.annotation.Nullable private Boolean autoFuel; - public static final String JSON_PROPERTY_TAGS = "tags"; - @jakarta.annotation.Nullable private List tags = new ArrayList<>(); - public VaultAccount() {} public VaultAccount id(@jakarta.annotation.Nullable String id) { @@ -205,37 +201,6 @@ public void setAutoFuel(@jakarta.annotation.Nullable Boolean autoFuel) { this.autoFuel = autoFuel; } - public VaultAccount tags(@jakarta.annotation.Nullable List tags) { - this.tags = tags; - return this; - } - - public VaultAccount addTagsItem(Tag tagsItem) { - if (this.tags == null) { - this.tags = new ArrayList<>(); - } - this.tags.add(tagsItem); - return this; - } - - /** - * List of tags attached to the vault account - * - * @return tags - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TAGS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getTags() { - return tags; - } - - @JsonProperty(JSON_PROPERTY_TAGS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTags(@jakarta.annotation.Nullable List tags) { - this.tags = tags; - } - /** Return true if this VaultAccount object is equal to o. */ @Override public boolean equals(Object o) { @@ -251,13 +216,12 @@ public boolean equals(Object o) { && Objects.equals(this.assets, vaultAccount.assets) && Objects.equals(this.hiddenOnUI, vaultAccount.hiddenOnUI) && Objects.equals(this.customerRefId, vaultAccount.customerRefId) - && Objects.equals(this.autoFuel, vaultAccount.autoFuel) - && Objects.equals(this.tags, vaultAccount.tags); + && Objects.equals(this.autoFuel, vaultAccount.autoFuel); } @Override public int hashCode() { - return Objects.hash(id, name, assets, hiddenOnUI, customerRefId, autoFuel, tags); + return Objects.hash(id, name, assets, hiddenOnUI, customerRefId, autoFuel); } @Override @@ -270,7 +234,6 @@ public String toString() { sb.append(" hiddenOnUI: ").append(toIndentedString(hiddenOnUI)).append("\n"); sb.append(" customerRefId: ").append(toIndentedString(customerRefId)).append("\n"); sb.append(" autoFuel: ").append(toIndentedString(autoFuel)).append("\n"); - sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append("}"); return sb.toString(); } @@ -389,29 +352,6 @@ public String toUrlQueryString(String prefix) { ApiClient.urlEncode(ApiClient.valueToString(getAutoFuel())))); } - // add `tags` to the URL query string - if (getTags() != null) { - for (int i = 0; i < getTags().size(); i++) { - if (getTags().get(i) != null) { - joiner.add( - getTags() - .get(i) - .toUrlQueryString( - String.format( - "%stags%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } - } - return joiner.toString(); } } diff --git a/src/main/java/com/fireblocks/sdk/model/VaultAccountsPagedResponse.java b/src/main/java/com/fireblocks/sdk/model/VaultAccountsPagedResponse.java index 5511b5b0..cbf8e02d 100644 --- a/src/main/java/com/fireblocks/sdk/model/VaultAccountsPagedResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/VaultAccountsPagedResponse.java @@ -34,7 +34,7 @@ comments = "Generator version: 7.14.0") public class VaultAccountsPagedResponse { public static final String JSON_PROPERTY_ACCOUNTS = "accounts"; - @jakarta.annotation.Nullable private List accounts = new ArrayList<>(); + @jakarta.annotation.Nullable private List accounts; public static final String JSON_PROPERTY_PAGING = "paging"; @jakarta.annotation.Nullable private VaultAccountsPagedResponsePaging paging; diff --git a/src/main/java/com/fireblocks/sdk/model/VaultAccountsTagAttachmentsRequest.java b/src/main/java/com/fireblocks/sdk/model/VaultAccountsTagAttachmentsRequest.java deleted file mode 100644 index f157a63d..00000000 --- a/src/main/java/com/fireblocks/sdk/model/VaultAccountsTagAttachmentsRequest.java +++ /dev/null @@ -1,229 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; -import java.util.UUID; - -/** VaultAccountsTagAttachmentsRequest */ -@JsonPropertyOrder({ - VaultAccountsTagAttachmentsRequest.JSON_PROPERTY_TAG_IDS, - VaultAccountsTagAttachmentsRequest.JSON_PROPERTY_VAULT_ACCOUNT_IDS -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class VaultAccountsTagAttachmentsRequest { - public static final String JSON_PROPERTY_TAG_IDS = "tagIds"; - @jakarta.annotation.Nonnull private List tagIds = new ArrayList<>(); - - public static final String JSON_PROPERTY_VAULT_ACCOUNT_IDS = "vaultAccountIds"; - @jakarta.annotation.Nonnull private List vaultAccountIds = new ArrayList<>(); - - public VaultAccountsTagAttachmentsRequest() {} - - @JsonCreator - public VaultAccountsTagAttachmentsRequest( - @JsonProperty(value = JSON_PROPERTY_TAG_IDS, required = true) List tagIds, - @JsonProperty(value = JSON_PROPERTY_VAULT_ACCOUNT_IDS, required = true) - List vaultAccountIds) { - this.tagIds = tagIds; - this.vaultAccountIds = vaultAccountIds; - } - - public VaultAccountsTagAttachmentsRequest tagIds( - @jakarta.annotation.Nonnull List tagIds) { - this.tagIds = tagIds; - return this; - } - - public VaultAccountsTagAttachmentsRequest addTagIdsItem(UUID tagIdsItem) { - if (this.tagIds == null) { - this.tagIds = new ArrayList<>(); - } - this.tagIds.add(tagIdsItem); - return this; - } - - /** - * The IDs of the tags to attach - * - * @return tagIds - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TAG_IDS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getTagIds() { - return tagIds; - } - - @JsonProperty(JSON_PROPERTY_TAG_IDS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTagIds(@jakarta.annotation.Nonnull List tagIds) { - this.tagIds = tagIds; - } - - public VaultAccountsTagAttachmentsRequest vaultAccountIds( - @jakarta.annotation.Nonnull List vaultAccountIds) { - this.vaultAccountIds = vaultAccountIds; - return this; - } - - public VaultAccountsTagAttachmentsRequest addVaultAccountIdsItem(String vaultAccountIdsItem) { - if (this.vaultAccountIds == null) { - this.vaultAccountIds = new ArrayList<>(); - } - this.vaultAccountIds.add(vaultAccountIdsItem); - return this; - } - - /** - * The IDs of the vault accounts to attach tags to - * - * @return vaultAccountIds - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_VAULT_ACCOUNT_IDS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getVaultAccountIds() { - return vaultAccountIds; - } - - @JsonProperty(JSON_PROPERTY_VAULT_ACCOUNT_IDS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setVaultAccountIds(@jakarta.annotation.Nonnull List vaultAccountIds) { - this.vaultAccountIds = vaultAccountIds; - } - - /** Return true if this VaultAccountsTagAttachmentsRequest object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - VaultAccountsTagAttachmentsRequest vaultAccountsTagAttachmentsRequest = - (VaultAccountsTagAttachmentsRequest) o; - return Objects.equals(this.tagIds, vaultAccountsTagAttachmentsRequest.tagIds) - && Objects.equals( - this.vaultAccountIds, vaultAccountsTagAttachmentsRequest.vaultAccountIds); - } - - @Override - public int hashCode() { - return Objects.hash(tagIds, vaultAccountIds); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class VaultAccountsTagAttachmentsRequest {\n"); - sb.append(" tagIds: ").append(toIndentedString(tagIds)).append("\n"); - sb.append(" vaultAccountIds: ").append(toIndentedString(vaultAccountIds)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `tagIds` to the URL query string - if (getTagIds() != null) { - for (int i = 0; i < getTagIds().size(); i++) { - if (getTagIds().get(i) != null) { - joiner.add( - String.format( - "%stagIds%s%s=%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode( - ApiClient.valueToString(getTagIds().get(i))))); - } - } - } - - // add `vaultAccountIds` to the URL query string - if (getVaultAccountIds() != null) { - for (int i = 0; i < getVaultAccountIds().size(); i++) { - joiner.add( - String.format( - "%svaultAccountIds%s%s=%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode( - ApiClient.valueToString(getVaultAccountIds().get(i))))); - } - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/VaultAsset.java b/src/main/java/com/fireblocks/sdk/model/VaultAsset.java index 298e436d..a5ac0308 100644 --- a/src/main/java/com/fireblocks/sdk/model/VaultAsset.java +++ b/src/main/java/com/fireblocks/sdk/model/VaultAsset.java @@ -17,6 +17,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fireblocks.sdk.ApiClient; +import java.math.BigDecimal; import java.util.Objects; import java.util.StringJoiner; @@ -69,7 +70,7 @@ public class VaultAsset { @jakarta.annotation.Nullable private String staked; public static final String JSON_PROPERTY_TOTAL_STAKED_C_P_U = "totalStakedCPU"; - @jakarta.annotation.Nullable private String totalStakedCPU; + @jakarta.annotation.Nullable private BigDecimal totalStakedCPU; public static final String JSON_PROPERTY_TOTAL_STAKED_NETWORK = "totalStakedNetwork"; @jakarta.annotation.Nullable private String totalStakedNetwork; @@ -284,7 +285,7 @@ public void setStaked(@jakarta.annotation.Nullable String staked) { this.staked = staked; } - public VaultAsset totalStakedCPU(@jakarta.annotation.Nullable String totalStakedCPU) { + public VaultAsset totalStakedCPU(@jakarta.annotation.Nullable BigDecimal totalStakedCPU) { this.totalStakedCPU = totalStakedCPU; return this; } @@ -297,13 +298,13 @@ public VaultAsset totalStakedCPU(@jakarta.annotation.Nullable String totalStaked @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TOTAL_STAKED_C_P_U) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getTotalStakedCPU() { + public BigDecimal getTotalStakedCPU() { return totalStakedCPU; } @JsonProperty(JSON_PROPERTY_TOTAL_STAKED_C_P_U) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTotalStakedCPU(@jakarta.annotation.Nullable String totalStakedCPU) { + public void setTotalStakedCPU(@jakarta.annotation.Nullable BigDecimal totalStakedCPU) { this.totalStakedCPU = totalStakedCPU; } diff --git a/src/main/java/com/fireblocks/sdk/model/VaultWalletAddress.java b/src/main/java/com/fireblocks/sdk/model/VaultWalletAddress.java index 9a4b46ed..683bd644 100644 --- a/src/main/java/com/fireblocks/sdk/model/VaultWalletAddress.java +++ b/src/main/java/com/fireblocks/sdk/model/VaultWalletAddress.java @@ -62,11 +62,7 @@ public class VaultWalletAddress { public enum AddressFormatEnum { SEGWIT(String.valueOf("SEGWIT")), - LEGACY(String.valueOf("LEGACY")), - - BASE(String.valueOf("BASE")), - - PAYMENT(String.valueOf("PAYMENT")); + LEGACY(String.valueOf("LEGACY")); private String value; diff --git a/src/main/java/com/fireblocks/sdk/model/VerdictConfig.java b/src/main/java/com/fireblocks/sdk/model/VerdictConfig.java deleted file mode 100644 index ae1a4af7..00000000 --- a/src/main/java/com/fireblocks/sdk/model/VerdictConfig.java +++ /dev/null @@ -1,273 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** Verdict configuration */ -@JsonPropertyOrder({ - VerdictConfig.JSON_PROPERTY_ACTION, - VerdictConfig.JSON_PROPERTY_APPROVERS, - VerdictConfig.JSON_PROPERTY_DESIGNATED_SIGNERS -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class VerdictConfig { - /** Verdict action */ - public enum ActionEnum { - ALLOW(String.valueOf("ALLOW")), - - BLOCK(String.valueOf("BLOCK")), - - _2_TIER(String.valueOf("2-TIER")), - - ACCEPT(String.valueOf("ACCEPT")), - - REJECT(String.valueOf("REJECT")), - - ALERT(String.valueOf("ALERT")), - - SCREEN(String.valueOf("SCREEN")), - - PASS(String.valueOf("PASS")), - - WAIT(String.valueOf("WAIT")), - - FREEZE(String.valueOf("FREEZE")), - - CANCEL(String.valueOf("CANCEL")); - - private String value; - - ActionEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static ActionEnum fromValue(String value) { - for (ActionEnum b : ActionEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_ACTION = "action"; - @jakarta.annotation.Nonnull private ActionEnum action; - - public static final String JSON_PROPERTY_APPROVERS = "approvers"; - @jakarta.annotation.Nullable private ApproversConfig approvers; - - public static final String JSON_PROPERTY_DESIGNATED_SIGNERS = "designatedSigners"; - @jakarta.annotation.Nullable private DesignatedSignersConfig designatedSigners; - - public VerdictConfig() {} - - @JsonCreator - public VerdictConfig( - @JsonProperty(value = JSON_PROPERTY_ACTION, required = true) ActionEnum action) { - this.action = action; - } - - public VerdictConfig action(@jakarta.annotation.Nonnull ActionEnum action) { - this.action = action; - return this; - } - - /** - * Verdict action - * - * @return action - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ACTION) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public ActionEnum getAction() { - return action; - } - - @JsonProperty(JSON_PROPERTY_ACTION) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAction(@jakarta.annotation.Nonnull ActionEnum action) { - this.action = action; - } - - public VerdictConfig approvers(@jakarta.annotation.Nullable ApproversConfig approvers) { - this.approvers = approvers; - return this; - } - - /** - * Get approvers - * - * @return approvers - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_APPROVERS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public ApproversConfig getApprovers() { - return approvers; - } - - @JsonProperty(JSON_PROPERTY_APPROVERS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setApprovers(@jakarta.annotation.Nullable ApproversConfig approvers) { - this.approvers = approvers; - } - - public VerdictConfig designatedSigners( - @jakarta.annotation.Nullable DesignatedSignersConfig designatedSigners) { - this.designatedSigners = designatedSigners; - return this; - } - - /** - * Get designatedSigners - * - * @return designatedSigners - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DESIGNATED_SIGNERS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public DesignatedSignersConfig getDesignatedSigners() { - return designatedSigners; - } - - @JsonProperty(JSON_PROPERTY_DESIGNATED_SIGNERS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDesignatedSigners( - @jakarta.annotation.Nullable DesignatedSignersConfig designatedSigners) { - this.designatedSigners = designatedSigners; - } - - /** Return true if this VerdictConfig object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - VerdictConfig verdictConfig = (VerdictConfig) o; - return Objects.equals(this.action, verdictConfig.action) - && Objects.equals(this.approvers, verdictConfig.approvers) - && Objects.equals(this.designatedSigners, verdictConfig.designatedSigners); - } - - @Override - public int hashCode() { - return Objects.hash(action, approvers, designatedSigners); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class VerdictConfig {\n"); - sb.append(" action: ").append(toIndentedString(action)).append("\n"); - sb.append(" approvers: ").append(toIndentedString(approvers)).append("\n"); - sb.append(" designatedSigners: ") - .append(toIndentedString(designatedSigners)) - .append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `action` to the URL query string - if (getAction() != null) { - joiner.add( - String.format( - "%saction%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAction())))); - } - - // add `approvers` to the URL query string - if (getApprovers() != null) { - joiner.add(getApprovers().toUrlQueryString(prefix + "approvers" + suffix)); - } - - // add `designatedSigners` to the URL query string - if (getDesignatedSigners() != null) { - joiner.add( - getDesignatedSigners().toUrlQueryString(prefix + "designatedSigners" + suffix)); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/Version.java b/src/main/java/com/fireblocks/sdk/model/Version.java deleted file mode 100644 index 14dfd101..00000000 --- a/src/main/java/com/fireblocks/sdk/model/Version.java +++ /dev/null @@ -1,145 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.Objects; -import java.util.StringJoiner; - -/** Version */ -@JsonPropertyOrder({Version.JSON_PROPERTY_HASH}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class Version { - public static final String JSON_PROPERTY_HASH = "hash"; - @jakarta.annotation.Nonnull private String hash; - - public Version() {} - - @JsonCreator - public Version(@JsonProperty(value = JSON_PROPERTY_HASH, required = true) String hash) { - this.hash = hash; - } - - public Version hash(@jakarta.annotation.Nonnull String hash) { - this.hash = hash; - return this; - } - - /** - * The version hash of the cosigner - * - * @return hash - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_HASH) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getHash() { - return hash; - } - - @JsonProperty(JSON_PROPERTY_HASH) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setHash(@jakarta.annotation.Nonnull String hash) { - this.hash = hash; - } - - /** Return true if this Version object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Version version = (Version) o; - return Objects.equals(this.hash, version.hash); - } - - @Override - public int hashCode() { - return Objects.hash(hash); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class Version {\n"); - sb.append(" hash: ").append(toIndentedString(hash)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `hash` to the URL query string - if (getHash() != null) { - joiner.add( - String.format( - "%shash%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getHash())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/Webhook.java b/src/main/java/com/fireblocks/sdk/model/Webhook.java deleted file mode 100644 index 1806274a..00000000 --- a/src/main/java/com/fireblocks/sdk/model/Webhook.java +++ /dev/null @@ -1,446 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fireblocks.sdk.ApiClient; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; -import java.util.UUID; - -/** Webhook */ -@JsonPropertyOrder({ - Webhook.JSON_PROPERTY_ID, - Webhook.JSON_PROPERTY_URL, - Webhook.JSON_PROPERTY_DESCRIPTION, - Webhook.JSON_PROPERTY_EVENTS, - Webhook.JSON_PROPERTY_STATUS, - Webhook.JSON_PROPERTY_CREATED_AT, - Webhook.JSON_PROPERTY_UPDATED_AT -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class Webhook { - public static final String JSON_PROPERTY_ID = "id"; - @jakarta.annotation.Nonnull private UUID id; - - public static final String JSON_PROPERTY_URL = "url"; - @jakarta.annotation.Nonnull private String url; - - public static final String JSON_PROPERTY_DESCRIPTION = "description"; - @jakarta.annotation.Nullable private String description; - - public static final String JSON_PROPERTY_EVENTS = "events"; - @jakarta.annotation.Nonnull private List events = new ArrayList<>(); - - /** The status of the webhook */ - public enum StatusEnum { - DISABLED(String.valueOf("DISABLED")), - - ENABLED(String.valueOf("ENABLED")), - - SUSPENDED(String.valueOf("SUSPENDED")); - - private String value; - - StatusEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static StatusEnum fromValue(String value) { - for (StatusEnum b : StatusEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_STATUS = "status"; - @jakarta.annotation.Nonnull private StatusEnum status; - - public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; - @jakarta.annotation.Nonnull private Long createdAt; - - public static final String JSON_PROPERTY_UPDATED_AT = "updatedAt"; - @jakarta.annotation.Nonnull private Long updatedAt; - - public Webhook() {} - - @JsonCreator - public Webhook( - @JsonProperty(value = JSON_PROPERTY_ID, required = true) UUID id, - @JsonProperty(value = JSON_PROPERTY_URL, required = true) String url, - @JsonProperty(value = JSON_PROPERTY_EVENTS, required = true) List events, - @JsonProperty(value = JSON_PROPERTY_STATUS, required = true) StatusEnum status, - @JsonProperty(value = JSON_PROPERTY_CREATED_AT, required = true) Long createdAt, - @JsonProperty(value = JSON_PROPERTY_UPDATED_AT, required = true) Long updatedAt) { - this.id = id; - this.url = url; - this.events = events; - this.status = status; - this.createdAt = createdAt; - this.updatedAt = updatedAt; - } - - public Webhook id(@jakarta.annotation.Nonnull UUID id) { - this.id = id; - return this; - } - - /** - * The id of the webhook - * - * @return id - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public UUID getId() { - return id; - } - - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(@jakarta.annotation.Nonnull UUID id) { - this.id = id; - } - - public Webhook url(@jakarta.annotation.Nonnull String url) { - this.url = url; - return this; - } - - /** - * The url of the webhook where notifications will be sent. Must be a valid URL and https. - * - * @return url - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_URL) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getUrl() { - return url; - } - - @JsonProperty(JSON_PROPERTY_URL) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUrl(@jakarta.annotation.Nonnull String url) { - this.url = url; - } - - public Webhook description(@jakarta.annotation.Nullable String description) { - this.description = description; - return this; - } - - /** - * description of the webhook of what it is used for - * - * @return description - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DESCRIPTION) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getDescription() { - return description; - } - - @JsonProperty(JSON_PROPERTY_DESCRIPTION) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDescription(@jakarta.annotation.Nullable String description) { - this.description = description; - } - - public Webhook events(@jakarta.annotation.Nonnull List events) { - this.events = events; - return this; - } - - public Webhook addEventsItem(WebhookEvent eventsItem) { - if (this.events == null) { - this.events = new ArrayList<>(); - } - this.events.add(eventsItem); - return this; - } - - /** - * The events that the webhook will be subscribed to - * - * @return events - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_EVENTS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getEvents() { - return events; - } - - @JsonProperty(JSON_PROPERTY_EVENTS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setEvents(@jakarta.annotation.Nonnull List events) { - this.events = events; - } - - public Webhook status(@jakarta.annotation.Nonnull StatusEnum status) { - this.status = status; - return this; - } - - /** - * The status of the webhook - * - * @return status - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_STATUS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public StatusEnum getStatus() { - return status; - } - - @JsonProperty(JSON_PROPERTY_STATUS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStatus(@jakarta.annotation.Nonnull StatusEnum status) { - this.status = status; - } - - public Webhook createdAt(@jakarta.annotation.Nonnull Long createdAt) { - this.createdAt = createdAt; - return this; - } - - /** - * The date and time the webhook was created in milliseconds - * - * @return createdAt - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CREATED_AT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Long getCreatedAt() { - return createdAt; - } - - @JsonProperty(JSON_PROPERTY_CREATED_AT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCreatedAt(@jakarta.annotation.Nonnull Long createdAt) { - this.createdAt = createdAt; - } - - public Webhook updatedAt(@jakarta.annotation.Nonnull Long updatedAt) { - this.updatedAt = updatedAt; - return this; - } - - /** - * The date and time the webhook was last updated in milliseconds - * - * @return updatedAt - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_UPDATED_AT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Long getUpdatedAt() { - return updatedAt; - } - - @JsonProperty(JSON_PROPERTY_UPDATED_AT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUpdatedAt(@jakarta.annotation.Nonnull Long updatedAt) { - this.updatedAt = updatedAt; - } - - /** Return true if this Webhook object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Webhook webhook = (Webhook) o; - return Objects.equals(this.id, webhook.id) - && Objects.equals(this.url, webhook.url) - && Objects.equals(this.description, webhook.description) - && Objects.equals(this.events, webhook.events) - && Objects.equals(this.status, webhook.status) - && Objects.equals(this.createdAt, webhook.createdAt) - && Objects.equals(this.updatedAt, webhook.updatedAt); - } - - @Override - public int hashCode() { - return Objects.hash(id, url, description, events, status, createdAt, updatedAt); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class Webhook {\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" url: ").append(toIndentedString(url)).append("\n"); - sb.append(" description: ").append(toIndentedString(description)).append("\n"); - sb.append(" events: ").append(toIndentedString(events)).append("\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); - sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `id` to the URL query string - if (getId() != null) { - joiner.add( - String.format( - "%sid%s=%s", - prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); - } - - // add `url` to the URL query string - if (getUrl() != null) { - joiner.add( - String.format( - "%surl%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getUrl())))); - } - - // add `description` to the URL query string - if (getDescription() != null) { - joiner.add( - String.format( - "%sdescription%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getDescription())))); - } - - // add `events` to the URL query string - if (getEvents() != null) { - for (int i = 0; i < getEvents().size(); i++) { - if (getEvents().get(i) != null) { - joiner.add( - String.format( - "%sevents%s%s=%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode( - ApiClient.valueToString(getEvents().get(i))))); - } - } - } - - // add `status` to the URL query string - if (getStatus() != null) { - joiner.add( - String.format( - "%sstatus%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getStatus())))); - } - - // add `createdAt` to the URL query string - if (getCreatedAt() != null) { - joiner.add( - String.format( - "%screatedAt%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getCreatedAt())))); - } - - // add `updatedAt` to the URL query string - if (getUpdatedAt() != null) { - joiner.add( - String.format( - "%supdatedAt%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getUpdatedAt())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/WebhookEvent.java b/src/main/java/com/fireblocks/sdk/model/WebhookEvent.java deleted file mode 100644 index 1347f151..00000000 --- a/src/main/java/com/fireblocks/sdk/model/WebhookEvent.java +++ /dev/null @@ -1,109 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - -/** Gets or Sets WebhookEvent */ -public enum WebhookEvent { - TRANSACTION_CREATED("transaction.created"), - - TRANSACTION_STATUS_UPDATED("transaction.status.updated"), - - TRANSACTION_APPROVAL_STATUS_UPDATED("transaction.approval_status.updated"), - - TRANSACTION_NETWORK_RECORDS_PROCESSING_COMPLETED( - "transaction.network_records.processing_completed"), - - EXTERNAL_WALLET_ASSET_ADDED("external_wallet.asset.added"), - - EXTERNAL_WALLET_ASSET_REMOVED("external_wallet.asset.removed"), - - INTERNAL_WALLET_ASSET_ADDED("internal_wallet.asset.added"), - - INTERNAL_WALLET_ASSET_REMOVED("internal_wallet.asset.removed"), - - CONTRACT_WALLET_ASSET_ADDED("contract_wallet.asset.added"), - - CONTRACT_WALLET_ASSET_REMOVED("contract_wallet.asset.removed"), - - VAULT_ACCOUNT_CREATED("vault_account.created"), - - VAULT_ACCOUNT_ASSET_ADDED("vault_account.asset.added"), - - VAULT_ACCOUNT_ASSET_BALANCE_UPDATED("vault_account.asset.balance_updated"), - - EMBEDDED_WALLET_STATUS_UPDATED("embedded_wallet.status.updated"), - - EMBEDDED_WALLET_CREATED("embedded_wallet.created"), - - EMBEDDED_WALLET_ASSET_BALANCE_UPDATED("embedded_wallet.asset.balance_updated"), - - EMBEDDED_WALLET_ASSET_ADDED("embedded_wallet.asset.added"), - - EMBEDDED_WALLET_ACCOUNT_CREATED("embedded_wallet.account.created"), - - EMBEDDED_WALLET_DEVICE_ADDED("embedded_wallet.device.added"), - - ONCHAIN_DATA_UPDATED("onchain_data.updated"), - - CONNECTION_ADDED("connection.added"), - - CONNECTION_REMOVED("connection.removed"), - - CONNECTION_REQUEST_WAITING_PEER_APPROVAL("connection.request.waiting_peer_approval"), - - CONNECTION_REQUEST_REJECTED_BY_PEER("connection.request.rejected_by_peer"); - - private String value; - - WebhookEvent(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static WebhookEvent fromValue(String value) { - for (WebhookEvent b : WebhookEvent.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - if (prefix == null) { - prefix = ""; - } - - return String.format("%s=%s", prefix, this.toString()); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/WebhookPaginatedResponse.java b/src/main/java/com/fireblocks/sdk/model/WebhookPaginatedResponse.java deleted file mode 100644 index eea4232d..00000000 --- a/src/main/java/com/fireblocks/sdk/model/WebhookPaginatedResponse.java +++ /dev/null @@ -1,210 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fireblocks.sdk.ApiClient; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** WebhookPaginatedResponse */ -@JsonPropertyOrder({ - WebhookPaginatedResponse.JSON_PROPERTY_DATA, - WebhookPaginatedResponse.JSON_PROPERTY_NEXT -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class WebhookPaginatedResponse { - public static final String JSON_PROPERTY_DATA = "data"; - @jakarta.annotation.Nonnull private List data = new ArrayList<>(); - - public static final String JSON_PROPERTY_NEXT = "next"; - @jakarta.annotation.Nullable private String next; - - public WebhookPaginatedResponse() {} - - @JsonCreator - public WebhookPaginatedResponse( - @JsonProperty(value = JSON_PROPERTY_DATA, required = true) List data) { - this.data = data; - } - - public WebhookPaginatedResponse data(@jakarta.annotation.Nonnull List data) { - this.data = data; - return this; - } - - public WebhookPaginatedResponse addDataItem(Webhook dataItem) { - if (this.data == null) { - this.data = new ArrayList<>(); - } - this.data.add(dataItem); - return this; - } - - /** - * The data of the current page - * - * @return data - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getData() { - return data; - } - - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setData(@jakarta.annotation.Nonnull List data) { - this.data = data; - } - - public WebhookPaginatedResponse next(@jakarta.annotation.Nullable String next) { - this.next = next; - return this; - } - - /** - * The ID of the next page - * - * @return next - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NEXT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getNext() { - return next; - } - - @JsonProperty(JSON_PROPERTY_NEXT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNext(@jakarta.annotation.Nullable String next) { - this.next = next; - } - - /** Return true if this WebhookPaginatedResponse object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - WebhookPaginatedResponse webhookPaginatedResponse = (WebhookPaginatedResponse) o; - return Objects.equals(this.data, webhookPaginatedResponse.data) - && Objects.equals(this.next, webhookPaginatedResponse.next); - } - - @Override - public int hashCode() { - return Objects.hash(data, next); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class WebhookPaginatedResponse {\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" next: ").append(toIndentedString(next)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `data` to the URL query string - if (getData() != null) { - for (int i = 0; i < getData().size(); i++) { - if (getData().get(i) != null) { - joiner.add( - getData() - .get(i) - .toUrlQueryString( - String.format( - "%sdata%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } - } - - // add `next` to the URL query string - if (getNext() != null) { - joiner.add( - String.format( - "%snext%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getNext())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/WithdrawRequest.java b/src/main/java/com/fireblocks/sdk/model/WithdrawRequestDto.java similarity index 82% rename from src/main/java/com/fireblocks/sdk/model/WithdrawRequest.java rename to src/main/java/com/fireblocks/sdk/model/WithdrawRequestDto.java index d7a818d7..e96c03ee 100644 --- a/src/main/java/com/fireblocks/sdk/model/WithdrawRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/WithdrawRequestDto.java @@ -21,17 +21,17 @@ import java.util.Objects; import java.util.StringJoiner; -/** WithdrawRequest */ +/** WithdrawRequestDto */ @JsonPropertyOrder({ - WithdrawRequest.JSON_PROPERTY_ID, - WithdrawRequest.JSON_PROPERTY_FEE, - WithdrawRequest.JSON_PROPERTY_FEE_LEVEL, - WithdrawRequest.JSON_PROPERTY_TX_NOTE + WithdrawRequestDto.JSON_PROPERTY_ID, + WithdrawRequestDto.JSON_PROPERTY_FEE, + WithdrawRequestDto.JSON_PROPERTY_FEE_LEVEL, + WithdrawRequestDto.JSON_PROPERTY_TX_NOTE }) @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") -public class WithdrawRequest { +public class WithdrawRequestDto { public static final String JSON_PROPERTY_ID = "id"; @jakarta.annotation.Nonnull private String id; @@ -39,19 +39,19 @@ public class WithdrawRequest { @jakarta.annotation.Nullable private String fee; public static final String JSON_PROPERTY_FEE_LEVEL = "feeLevel"; - @jakarta.annotation.Nullable private FeeLevel feeLevel; + @jakarta.annotation.Nullable private String feeLevel; public static final String JSON_PROPERTY_TX_NOTE = "txNote"; @jakarta.annotation.Nullable private String txNote; - public WithdrawRequest() {} + public WithdrawRequestDto() {} @JsonCreator - public WithdrawRequest(@JsonProperty(value = JSON_PROPERTY_ID, required = true) String id) { + public WithdrawRequestDto(@JsonProperty(value = JSON_PROPERTY_ID, required = true) String id) { this.id = id; } - public WithdrawRequest id(@jakarta.annotation.Nonnull String id) { + public WithdrawRequestDto id(@jakarta.annotation.Nonnull String id) { this.id = id; return this; } @@ -74,7 +74,7 @@ public void setId(@jakarta.annotation.Nonnull String id) { this.id = id; } - public WithdrawRequest fee(@jakarta.annotation.Nullable String fee) { + public WithdrawRequestDto fee(@jakarta.annotation.Nullable String fee) { this.fee = fee; return this; } @@ -98,30 +98,31 @@ public void setFee(@jakarta.annotation.Nullable String fee) { this.fee = fee; } - public WithdrawRequest feeLevel(@jakarta.annotation.Nullable FeeLevel feeLevel) { + public WithdrawRequestDto feeLevel(@jakarta.annotation.Nullable String feeLevel) { this.feeLevel = feeLevel; return this; } /** - * Get feeLevel + * Represents the fee level for a transaction, which can be set as slow, medium, or fast. Only + * one of fee/feeLevel is required. * * @return feeLevel */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_FEE_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public FeeLevel getFeeLevel() { + public String getFeeLevel() { return feeLevel; } @JsonProperty(JSON_PROPERTY_FEE_LEVEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFeeLevel(@jakarta.annotation.Nullable FeeLevel feeLevel) { + public void setFeeLevel(@jakarta.annotation.Nullable String feeLevel) { this.feeLevel = feeLevel; } - public WithdrawRequest txNote(@jakarta.annotation.Nullable String txNote) { + public WithdrawRequestDto txNote(@jakarta.annotation.Nullable String txNote) { this.txNote = txNote; return this; } @@ -144,7 +145,7 @@ public void setTxNote(@jakarta.annotation.Nullable String txNote) { this.txNote = txNote; } - /** Return true if this WithdrawRequest object is equal to o. */ + /** Return true if this WithdrawRequestDto object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -153,11 +154,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - WithdrawRequest withdrawRequest = (WithdrawRequest) o; - return Objects.equals(this.id, withdrawRequest.id) - && Objects.equals(this.fee, withdrawRequest.fee) - && Objects.equals(this.feeLevel, withdrawRequest.feeLevel) - && Objects.equals(this.txNote, withdrawRequest.txNote); + WithdrawRequestDto withdrawRequestDto = (WithdrawRequestDto) o; + return Objects.equals(this.id, withdrawRequestDto.id) + && Objects.equals(this.fee, withdrawRequestDto.fee) + && Objects.equals(this.feeLevel, withdrawRequestDto.feeLevel) + && Objects.equals(this.txNote, withdrawRequestDto.txNote); } @Override @@ -168,7 +169,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class WithdrawRequest {\n"); + sb.append("class WithdrawRequestDto {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" fee: ").append(toIndentedString(fee)).append("\n"); sb.append(" feeLevel: ").append(toIndentedString(feeLevel)).append("\n"); diff --git a/src/main/java/com/fireblocks/sdk/model/WriteAbiFunction.java b/src/main/java/com/fireblocks/sdk/model/WriteAbiFunction.java index 7a096a0b..5ad334a4 100644 --- a/src/main/java/com/fireblocks/sdk/model/WriteAbiFunction.java +++ b/src/main/java/com/fireblocks/sdk/model/WriteAbiFunction.java @@ -74,7 +74,7 @@ public static StateMutabilityEnum fromValue(String value) { @jakarta.annotation.Nonnull private StateMutabilityEnum stateMutability; public static final String JSON_PROPERTY_OUTPUTS = "outputs"; - @jakarta.annotation.Nullable private List outputs = new ArrayList<>(); + @jakarta.annotation.Nullable private List outputs; /** Gets or Sets type */ public enum TypeEnum { @@ -114,7 +114,7 @@ public static TypeEnum fromValue(String value) { @jakarta.annotation.Nullable private String name; public static final String JSON_PROPERTY_INPUTS = "inputs"; - @jakarta.annotation.Nonnull private List inputs = new ArrayList<>(); + @jakarta.annotation.Nonnull private List inputs; public static final String JSON_PROPERTY_DESCRIPTION = "description"; @jakarta.annotation.Nullable private String description; diff --git a/src/main/java/com/fireblocks/sdk/model/WriteCallFunctionDto.java b/src/main/java/com/fireblocks/sdk/model/WriteCallFunctionDto.java index f81bcb5b..d6ba12d3 100644 --- a/src/main/java/com/fireblocks/sdk/model/WriteCallFunctionDto.java +++ b/src/main/java/com/fireblocks/sdk/model/WriteCallFunctionDto.java @@ -19,6 +19,8 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; import com.fireblocks.sdk.ApiClient; +import java.util.ArrayList; +import java.util.List; import java.util.Objects; import java.util.StringJoiner; @@ -29,9 +31,7 @@ WriteCallFunctionDto.JSON_PROPERTY_AMOUNT, WriteCallFunctionDto.JSON_PROPERTY_FEE_LEVEL, WriteCallFunctionDto.JSON_PROPERTY_FEE, - WriteCallFunctionDto.JSON_PROPERTY_NOTE, - WriteCallFunctionDto.JSON_PROPERTY_USE_GASLESS, - WriteCallFunctionDto.JSON_PROPERTY_EXTERNAL_ID + WriteCallFunctionDto.JSON_PROPERTY_NOTE }) @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", @@ -41,7 +41,7 @@ public class WriteCallFunctionDto { @jakarta.annotation.Nonnull private String vaultAccountId; public static final String JSON_PROPERTY_ABI_FUNCTION = "abiFunction"; - @jakarta.annotation.Nonnull private WriteCallFunctionDtoAbiFunction abiFunction; + @jakarta.annotation.Nonnull private List abiFunction; public static final String JSON_PROPERTY_AMOUNT = "amount"; @jakarta.annotation.Nullable private String amount; @@ -92,12 +92,6 @@ public static FeeLevelEnum fromValue(String value) { public static final String JSON_PROPERTY_NOTE = "note"; @jakarta.annotation.Nullable private String note; - public static final String JSON_PROPERTY_USE_GASLESS = "useGasless"; - @jakarta.annotation.Nullable private Boolean useGasless; - - public static final String JSON_PROPERTY_EXTERNAL_ID = "externalId"; - @jakarta.annotation.Nullable private String externalId; - public WriteCallFunctionDto() {} @JsonCreator @@ -105,7 +99,7 @@ public WriteCallFunctionDto( @JsonProperty(value = JSON_PROPERTY_VAULT_ACCOUNT_ID, required = true) String vaultAccountId, @JsonProperty(value = JSON_PROPERTY_ABI_FUNCTION, required = true) - WriteCallFunctionDtoAbiFunction abiFunction) { + List abiFunction) { this.vaultAccountId = vaultAccountId; this.abiFunction = abiFunction; } @@ -134,27 +128,34 @@ public void setVaultAccountId(@jakarta.annotation.Nonnull String vaultAccountId) } public WriteCallFunctionDto abiFunction( - @jakarta.annotation.Nonnull WriteCallFunctionDtoAbiFunction abiFunction) { + @jakarta.annotation.Nonnull List abiFunction) { this.abiFunction = abiFunction; return this; } + public WriteCallFunctionDto addAbiFunctionItem(WriteAbiFunction abiFunctionItem) { + if (this.abiFunction == null) { + this.abiFunction = new ArrayList<>(); + } + this.abiFunction.add(abiFunctionItem); + return this; + } + /** - * Get abiFunction + * The abi of the read function you wish to call * * @return abiFunction */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ABI_FUNCTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public WriteCallFunctionDtoAbiFunction getAbiFunction() { + public List getAbiFunction() { return abiFunction; } @JsonProperty(JSON_PROPERTY_ABI_FUNCTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAbiFunction( - @jakarta.annotation.Nonnull WriteCallFunctionDtoAbiFunction abiFunction) { + public void setAbiFunction(@jakarta.annotation.Nonnull List abiFunction) { this.abiFunction = abiFunction; } @@ -252,55 +253,6 @@ public void setNote(@jakarta.annotation.Nullable String note) { this.note = note; } - public WriteCallFunctionDto useGasless(@jakarta.annotation.Nullable Boolean useGasless) { - this.useGasless = useGasless; - return this; - } - - /** - * Indicates whether the token should be created in a gasless manner, utilizing the ERC-2771 - * standard. When set to true, the transaction will be relayed by a designated relayer. The - * workspace must be configured to use Fireblocks gasless relay. - * - * @return useGasless - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USE_GASLESS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getUseGasless() { - return useGasless; - } - - @JsonProperty(JSON_PROPERTY_USE_GASLESS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUseGasless(@jakarta.annotation.Nullable Boolean useGasless) { - this.useGasless = useGasless; - } - - public WriteCallFunctionDto externalId(@jakarta.annotation.Nullable String externalId) { - this.externalId = externalId; - return this; - } - - /** - * External id that can be used to identify the transaction in your system. The unique - * identifier of the transaction outside of Fireblocks with max length of 255 characters - * - * @return externalId - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EXTERNAL_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getExternalId() { - return externalId; - } - - @JsonProperty(JSON_PROPERTY_EXTERNAL_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setExternalId(@jakarta.annotation.Nullable String externalId) { - this.externalId = externalId; - } - /** Return true if this WriteCallFunctionDto object is equal to o. */ @Override public boolean equals(Object o) { @@ -316,15 +268,12 @@ public boolean equals(Object o) { && Objects.equals(this.amount, writeCallFunctionDto.amount) && Objects.equals(this.feeLevel, writeCallFunctionDto.feeLevel) && Objects.equals(this.fee, writeCallFunctionDto.fee) - && Objects.equals(this.note, writeCallFunctionDto.note) - && Objects.equals(this.useGasless, writeCallFunctionDto.useGasless) - && Objects.equals(this.externalId, writeCallFunctionDto.externalId); + && Objects.equals(this.note, writeCallFunctionDto.note); } @Override public int hashCode() { - return Objects.hash( - vaultAccountId, abiFunction, amount, feeLevel, fee, note, useGasless, externalId); + return Objects.hash(vaultAccountId, abiFunction, amount, feeLevel, fee, note); } @Override @@ -337,8 +286,6 @@ public String toString() { sb.append(" feeLevel: ").append(toIndentedString(feeLevel)).append("\n"); sb.append(" fee: ").append(toIndentedString(fee)).append("\n"); sb.append(" note: ").append(toIndentedString(note)).append("\n"); - sb.append(" useGasless: ").append(toIndentedString(useGasless)).append("\n"); - sb.append(" externalId: ").append(toIndentedString(externalId)).append("\n"); sb.append("}"); return sb.toString(); } @@ -398,7 +345,25 @@ public String toUrlQueryString(String prefix) { // add `abiFunction` to the URL query string if (getAbiFunction() != null) { - joiner.add(getAbiFunction().toUrlQueryString(prefix + "abiFunction" + suffix)); + for (int i = 0; i < getAbiFunction().size(); i++) { + if (getAbiFunction().get(i) != null) { + joiner.add( + getAbiFunction() + .get(i) + .toUrlQueryString( + String.format( + "%sabiFunction%s%s", + prefix, + suffix, + "".equals(suffix) + ? "" + : String.format( + "%s%d%s", + containerPrefix, + i, + containerSuffix)))); + } + } } // add `amount` to the URL query string @@ -441,26 +406,6 @@ public String toUrlQueryString(String prefix) { ApiClient.urlEncode(ApiClient.valueToString(getNote())))); } - // add `useGasless` to the URL query string - if (getUseGasless() != null) { - joiner.add( - String.format( - "%suseGasless%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getUseGasless())))); - } - - // add `externalId` to the URL query string - if (getExternalId() != null) { - joiner.add( - String.format( - "%sexternalId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getExternalId())))); - } - return joiner.toString(); } } diff --git a/src/main/java/com/fireblocks/sdk/model/WriteCallFunctionDtoAbiFunction.java b/src/main/java/com/fireblocks/sdk/model/WriteCallFunctionDtoAbiFunction.java deleted file mode 100644 index 791f66f2..00000000 --- a/src/main/java/com/fireblocks/sdk/model/WriteCallFunctionDtoAbiFunction.java +++ /dev/null @@ -1,337 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import com.fasterxml.jackson.core.JsonGenerator; -import com.fasterxml.jackson.core.JsonParser; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.core.JsonToken; -import com.fasterxml.jackson.databind.DeserializationContext; -import com.fasterxml.jackson.databind.JsonMappingException; -import com.fasterxml.jackson.databind.JsonNode; -import com.fasterxml.jackson.databind.MapperFeature; -import com.fasterxml.jackson.databind.SerializerProvider; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import com.fasterxml.jackson.databind.deser.std.StdDeserializer; -import com.fasterxml.jackson.databind.ser.std.StdSerializer; -import com.fireblocks.sdk.JSON; -import java.io.IOException; -import java.util.Collections; -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; -import java.util.StringJoiner; -import java.util.logging.Level; -import java.util.logging.Logger; - -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -@JsonDeserialize( - using = WriteCallFunctionDtoAbiFunction.WriteCallFunctionDtoAbiFunctionDeserializer.class) -@JsonSerialize( - using = WriteCallFunctionDtoAbiFunction.WriteCallFunctionDtoAbiFunctionSerializer.class) -public class WriteCallFunctionDtoAbiFunction extends AbstractOpenApiSchema { - private static final Logger log = - Logger.getLogger(WriteCallFunctionDtoAbiFunction.class.getName()); - - public static class WriteCallFunctionDtoAbiFunctionSerializer - extends StdSerializer { - public WriteCallFunctionDtoAbiFunctionSerializer(Class t) { - super(t); - } - - public WriteCallFunctionDtoAbiFunctionSerializer() { - this(null); - } - - @Override - public void serialize( - WriteCallFunctionDtoAbiFunction value, - JsonGenerator jgen, - SerializerProvider provider) - throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); - } - } - - public static class WriteCallFunctionDtoAbiFunctionDeserializer - extends StdDeserializer { - public WriteCallFunctionDtoAbiFunctionDeserializer() { - this(WriteCallFunctionDtoAbiFunction.class); - } - - public WriteCallFunctionDtoAbiFunctionDeserializer(Class vc) { - super(vc); - } - - @Override - public WriteCallFunctionDtoAbiFunction deserialize( - JsonParser jp, DeserializationContext ctxt) - throws IOException, JsonProcessingException { - JsonNode tree = jp.readValueAsTree(); - Object deserialized = null; - boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); - int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); - // deserialize SolanaInstructionWithValue - try { - boolean attemptParsing = true; - // ensure that we respect type coercion as set on the client ObjectMapper - if (SolanaInstructionWithValue.class.equals(Integer.class) - || SolanaInstructionWithValue.class.equals(Long.class) - || SolanaInstructionWithValue.class.equals(Float.class) - || SolanaInstructionWithValue.class.equals(Double.class) - || SolanaInstructionWithValue.class.equals(Boolean.class) - || SolanaInstructionWithValue.class.equals(String.class)) { - attemptParsing = typeCoercion; - if (!attemptParsing) { - attemptParsing |= - ((SolanaInstructionWithValue.class.equals(Integer.class) - || SolanaInstructionWithValue.class.equals( - Long.class)) - && token == JsonToken.VALUE_NUMBER_INT); - attemptParsing |= - ((SolanaInstructionWithValue.class.equals(Float.class) - || SolanaInstructionWithValue.class.equals( - Double.class)) - && token == JsonToken.VALUE_NUMBER_FLOAT); - attemptParsing |= - (SolanaInstructionWithValue.class.equals(Boolean.class) - && (token == JsonToken.VALUE_FALSE - || token == JsonToken.VALUE_TRUE)); - attemptParsing |= - (SolanaInstructionWithValue.class.equals(String.class) - && token == JsonToken.VALUE_STRING); - } - } - if (attemptParsing) { - deserialized = - tree.traverse(jp.getCodec()) - .readValueAs(SolanaInstructionWithValue.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'SolanaInstructionWithValue'"); - } - } catch (Exception e) { - // deserialization failed, continue - log.log( - Level.FINER, - "Input data does not match schema 'SolanaInstructionWithValue'", - e); - } - - // deserialize WriteAbiFunction - try { - boolean attemptParsing = true; - // ensure that we respect type coercion as set on the client ObjectMapper - if (WriteAbiFunction.class.equals(Integer.class) - || WriteAbiFunction.class.equals(Long.class) - || WriteAbiFunction.class.equals(Float.class) - || WriteAbiFunction.class.equals(Double.class) - || WriteAbiFunction.class.equals(Boolean.class) - || WriteAbiFunction.class.equals(String.class)) { - attemptParsing = typeCoercion; - if (!attemptParsing) { - attemptParsing |= - ((WriteAbiFunction.class.equals(Integer.class) - || WriteAbiFunction.class.equals(Long.class)) - && token == JsonToken.VALUE_NUMBER_INT); - attemptParsing |= - ((WriteAbiFunction.class.equals(Float.class) - || WriteAbiFunction.class.equals(Double.class)) - && token == JsonToken.VALUE_NUMBER_FLOAT); - attemptParsing |= - (WriteAbiFunction.class.equals(Boolean.class) - && (token == JsonToken.VALUE_FALSE - || token == JsonToken.VALUE_TRUE)); - attemptParsing |= - (WriteAbiFunction.class.equals(String.class) - && token == JsonToken.VALUE_STRING); - } - } - if (attemptParsing) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(WriteAbiFunction.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'WriteAbiFunction'"); - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'WriteAbiFunction'", e); - } - - if (match == 1) { - WriteCallFunctionDtoAbiFunction ret = new WriteCallFunctionDtoAbiFunction(); - ret.setActualInstance(deserialized); - return ret; - } - throw new IOException( - String.format( - "Failed deserialization for WriteCallFunctionDtoAbiFunction: %d classes" - + " match result, expected 1", - match)); - } - - /** Handle deserialization of the 'null' value. */ - @Override - public WriteCallFunctionDtoAbiFunction getNullValue(DeserializationContext ctxt) - throws JsonMappingException { - throw new JsonMappingException( - ctxt.getParser(), "WriteCallFunctionDtoAbiFunction cannot be null"); - } - } - - // store a list of schema names defined in oneOf - public static final Map> schemas = new HashMap<>(); - - public WriteCallFunctionDtoAbiFunction() { - super("oneOf", Boolean.FALSE); - } - - public WriteCallFunctionDtoAbiFunction(SolanaInstructionWithValue o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - public WriteCallFunctionDtoAbiFunction(WriteAbiFunction o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("SolanaInstructionWithValue", SolanaInstructionWithValue.class); - schemas.put("WriteAbiFunction", WriteAbiFunction.class); - JSON.registerDescendants( - WriteCallFunctionDtoAbiFunction.class, Collections.unmodifiableMap(schemas)); - } - - @Override - public Map> getSchemas() { - return WriteCallFunctionDtoAbiFunction.schemas; - } - - /** - * Set the instance that matches the oneOf child schema, check the instance parameter is valid - * against the oneOf child schemas: SolanaInstructionWithValue, WriteAbiFunction - * - *

It could be an instance of the 'oneOf' schemas. The oneOf child schemas may themselves be - * a composed schema (allOf, anyOf, oneOf). - */ - @Override - public void setActualInstance(Object instance) { - if (JSON.isInstanceOf( - SolanaInstructionWithValue.class, instance, new HashSet>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(WriteAbiFunction.class, instance, new HashSet>())) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException( - "Invalid instance type. Must be SolanaInstructionWithValue, WriteAbiFunction"); - } - - /** - * Get the actual instance, which can be the following: SolanaInstructionWithValue, - * WriteAbiFunction - * - * @return The actual instance (SolanaInstructionWithValue, WriteAbiFunction) - */ - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `SolanaInstructionWithValue`. If the actual instance is not - * `SolanaInstructionWithValue`, the ClassCastException will be thrown. - * - * @return The actual instance of `SolanaInstructionWithValue` - * @throws ClassCastException if the instance is not `SolanaInstructionWithValue` - */ - public SolanaInstructionWithValue getSolanaInstructionWithValue() throws ClassCastException { - return (SolanaInstructionWithValue) super.getActualInstance(); - } - - /** - * Get the actual instance of `WriteAbiFunction`. If the actual instance is not - * `WriteAbiFunction`, the ClassCastException will be thrown. - * - * @return The actual instance of `WriteAbiFunction` - * @throws ClassCastException if the instance is not `WriteAbiFunction` - */ - public WriteAbiFunction getWriteAbiFunction() throws ClassCastException { - return (WriteAbiFunction) super.getActualInstance(); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - if (getActualInstance() instanceof WriteAbiFunction) { - if (getActualInstance() != null) { - joiner.add( - ((WriteAbiFunction) getActualInstance()) - .toUrlQueryString(prefix + "one_of_0" + suffix)); - } - return joiner.toString(); - } - if (getActualInstance() instanceof SolanaInstructionWithValue) { - if (getActualInstance() != null) { - joiner.add( - ((SolanaInstructionWithValue) getActualInstance()) - .toUrlQueryString(prefix + "one_of_1" + suffix)); - } - return joiner.toString(); - } - return null; - } -} diff --git a/src/test/java/com/fireblocks/sdk/FireblocksTest.java b/src/test/java/com/fireblocks/sdk/FireblocksTest.java index 59aac5da..d20cfb1a 100644 --- a/src/test/java/com/fireblocks/sdk/FireblocksTest.java +++ b/src/test/java/com/fireblocks/sdk/FireblocksTest.java @@ -405,14 +405,6 @@ public void testGetComplianceScreeningConfigurationApi() { complianceScreeningConfiguration, fireblocks.complianceScreeningConfiguration()); } - @Test - public void testGetConnectedAccountsBetaApi() { - setupFireblocks(true, null, null); - ConnectedAccountsBetaApi connectedAccountsBeta = fireblocks.connectedAccountsBeta(); - Assert.assertNotNull(connectedAccountsBeta); - Assert.assertSame(connectedAccountsBeta, fireblocks.connectedAccountsBeta()); - } - @Test public void testGetConsoleUserApi() { setupFireblocks(true, null, null); @@ -461,14 +453,6 @@ public void testGetDeployedContractsApi() { Assert.assertSame(deployedContracts, fireblocks.deployedContracts()); } - @Test - public void testGetEmbeddedWalletsApi() { - setupFireblocks(true, null, null); - EmbeddedWalletsApi embeddedWallets = fireblocks.embeddedWallets(); - Assert.assertNotNull(embeddedWallets); - Assert.assertSame(embeddedWallets, fireblocks.embeddedWallets()); - } - @Test public void testGetExchangeAccountsApi() { setupFireblocks(true, null, null); @@ -525,14 +509,6 @@ public void testGetKeyLinkBetaApi() { Assert.assertSame(keyLinkBeta, fireblocks.keyLinkBeta()); } - @Test - public void testGetKeysBetaApi() { - setupFireblocks(true, null, null); - KeysBetaApi keysBeta = fireblocks.keysBeta(); - Assert.assertNotNull(keysBeta); - Assert.assertSame(keysBeta, fireblocks.keysBeta()); - } - @Test public void testGetNetworkConnectionsApi() { setupFireblocks(true, null, null); @@ -581,14 +557,6 @@ public void testGetPolicyEditorBetaApi() { Assert.assertSame(policyEditorBeta, fireblocks.policyEditorBeta()); } - @Test - public void testGetPolicyEditorV2BetaApi() { - setupFireblocks(true, null, null); - PolicyEditorV2BetaApi policyEditorV2Beta = fireblocks.policyEditorV2Beta(); - Assert.assertNotNull(policyEditorV2Beta); - Assert.assertSame(policyEditorV2Beta, fireblocks.policyEditorV2Beta()); - } - @Test public void testGetResetDeviceApi() { setupFireblocks(true, null, null); @@ -606,19 +574,11 @@ public void testGetSmartTransferApi() { } @Test - public void testGetStakingApi() { + public void testGetStakingBetaApi() { setupFireblocks(true, null, null); - StakingApi staking = fireblocks.staking(); - Assert.assertNotNull(staking); - Assert.assertSame(staking, fireblocks.staking()); - } - - @Test - public void testGetTagsApi() { - setupFireblocks(true, null, null); - TagsApi tags = fireblocks.tags(); - Assert.assertNotNull(tags); - Assert.assertSame(tags, fireblocks.tags()); + StakingBetaApi stakingBeta = fireblocks.stakingBeta(); + Assert.assertNotNull(stakingBeta); + Assert.assertSame(stakingBeta, fireblocks.stakingBeta()); } @Test @@ -629,14 +589,6 @@ public void testGetTokenizationApi() { Assert.assertSame(tokenization, fireblocks.tokenization()); } - @Test - public void testGetTradingBetaApi() { - setupFireblocks(true, null, null); - TradingBetaApi tradingBeta = fireblocks.tradingBeta(); - Assert.assertNotNull(tradingBeta); - Assert.assertSame(tradingBeta, fireblocks.tradingBeta()); - } - @Test public void testGetTransactionsApi() { setupFireblocks(true, null, null); @@ -646,11 +598,11 @@ public void testGetTransactionsApi() { } @Test - public void testGetTravelRuleApi() { + public void testGetTravelRuleBetaApi() { setupFireblocks(true, null, null); - TravelRuleApi travelRule = fireblocks.travelRule(); - Assert.assertNotNull(travelRule); - Assert.assertSame(travelRule, fireblocks.travelRule()); + TravelRuleBetaApi travelRuleBeta = fireblocks.travelRuleBeta(); + Assert.assertNotNull(travelRuleBeta); + Assert.assertSame(travelRuleBeta, fireblocks.travelRuleBeta()); } @Test @@ -693,14 +645,6 @@ public void testGetWebhooksApi() { Assert.assertSame(webhooks, fireblocks.webhooks()); } - @Test - public void testGetWebhooksV2Api() { - setupFireblocks(true, null, null); - WebhooksV2Api webhooksV2 = fireblocks.webhooksV2(); - Assert.assertNotNull(webhooksV2); - Assert.assertSame(webhooksV2, fireblocks.webhooksV2()); - } - @Test public void testGetWhitelistIpAddressesApi() { setupFireblocks(true, null, null); diff --git a/src/test/java/com/fireblocks/sdk/api/AuditLogsApiTest.java b/src/test/java/com/fireblocks/sdk/api/AuditLogsApiTest.java index d84e9271..43289c1f 100644 --- a/src/test/java/com/fireblocks/sdk/api/AuditLogsApiTest.java +++ b/src/test/java/com/fireblocks/sdk/api/AuditLogsApiTest.java @@ -16,6 +16,7 @@ import com.fireblocks.sdk.ApiException; import com.fireblocks.sdk.ApiResponse; import com.fireblocks.sdk.model.GetAuditLogsResponse; +import com.fireblocks.sdk.model.GetAuditLogsResponseDTO; import java.util.concurrent.CompletableFuture; import org.junit.Ignore; import org.junit.Test; @@ -40,4 +41,18 @@ public void getAuditLogsTest() throws ApiException { CompletableFuture> response = api.getAuditLogs(timePeriod, cursor); } + + /** + * Get audit logs + * + *

Get all audits + * + * @throws ApiException if the Api call fails + */ + @Test + public void getAuditsTest() throws ApiException { + String timePeriod = null; + CompletableFuture> response = + api.getAudits(timePeriod); + } } diff --git a/src/test/java/com/fireblocks/sdk/api/BlockchainsAssetsApiTest.java b/src/test/java/com/fireblocks/sdk/api/BlockchainsAssetsApiTest.java index 479cbd0f..36d43b82 100644 --- a/src/test/java/com/fireblocks/sdk/api/BlockchainsAssetsApiTest.java +++ b/src/test/java/com/fireblocks/sdk/api/BlockchainsAssetsApiTest.java @@ -15,19 +15,9 @@ import com.fireblocks.sdk.ApiException; import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.model.Asset; -import com.fireblocks.sdk.model.AssetClass; -import com.fireblocks.sdk.model.AssetPriceResponse; import com.fireblocks.sdk.model.AssetResponse; -import com.fireblocks.sdk.model.AssetScope; import com.fireblocks.sdk.model.AssetTypeResponse; -import com.fireblocks.sdk.model.BlockchainResponse; -import com.fireblocks.sdk.model.ListAssetsResponse; -import com.fireblocks.sdk.model.ListBlockchainsResponse; import com.fireblocks.sdk.model.RegisterNewAssetRequest; -import com.fireblocks.sdk.model.SetAssetPriceRequest; -import com.fireblocks.sdk.model.UpdateAssetUserMetadataRequest; -import java.math.BigDecimal; import java.util.List; import java.util.concurrent.CompletableFuture; import org.junit.Ignore; @@ -40,42 +30,9 @@ public class BlockchainsAssetsApiTest { private final BlockchainsAssetsApi api = new BlockchainsAssetsApi(); /** - * Get an asset + * List all asset types supported by Fireblocks * - *

Returns an asset by ID or legacyID.</br> **Note**: - We will continue displaying and - * supporting the legacy ID (API ID). Since not all Fireblocks services fully support the new - * Assets UUID, please use only the legacy ID until further notice. - * - * @throws ApiException if the Api call fails - */ - @Test - public void getAssetTest() throws ApiException { - String id = null; - String idempotencyKey = null; - CompletableFuture> response = api.getAsset(id, idempotencyKey); - } - - /** - * Get an blockchain - * - *

Returns an blockchain by ID or legacyID. - * - * @throws ApiException if the Api call fails - */ - @Test - public void getBlockchainTest() throws ApiException { - String id = null; - CompletableFuture> response = api.getBlockchain(id); - } - - /** - * List all asset types supported by Fireblocks - legacy endpoint - * - *

Legacy Endpoint – Retrieves all assets supported by Fireblocks in your workspace without - * extended information.</br> **Note**: - This endpoint will remain available for the - * foreseeable future and is not deprecated.</br> - The `listAssets` endpoint - * provides more detailed asset information and improved performance.</br> - We recommend - * transitioning to the `listAssets` endpoint for better results. + *

Returns all asset types supported by Fireblocks. * * @throws ApiException if the Api call fails */ @@ -84,66 +41,11 @@ public void getSupportedAssetsTest() throws ApiException { CompletableFuture>> response = api.getSupportedAssets(); } - /** - * List assets - * - *

Retrieves all assets supported by Fireblocks in your workspace, providing extended - * information and enhanced performance compared to the legacy `supported_assets` - * endpoint.</br> **Note**: - We will continue displaying and supporting the legacy ID - * (API ID). Since not all Fireblocks services fully support the new Assets UUID, please use - * only the legacy ID until further notice.</br> - * - * @throws ApiException if the Api call fails - */ - @Test - public void listAssetsTest() throws ApiException { - String blockchainId = null; - AssetClass assetClass = null; - String symbol = null; - AssetScope scope = null; - Boolean deprecated = null; - List ids = null; - String pageCursor = null; - BigDecimal pageSize = null; - String idempotencyKey = null; - CompletableFuture> response = - api.listAssets( - blockchainId, - assetClass, - symbol, - scope, - deprecated, - ids, - pageCursor, - pageSize, - idempotencyKey); - } - - /** - * List blockchains - * - *

Returns all blockchains supported by Fireblocks. - * - * @throws ApiException if the Api call fails - */ - @Test - public void listBlockchainsTest() throws ApiException { - String protocol = null; - Boolean deprecated = null; - Boolean test = null; - List ids = null; - String pageCursor = null; - BigDecimal pageSize = null; - CompletableFuture> response = - api.listBlockchains(protocol, deprecated, test, ids, pageCursor, pageSize); - } - /** * 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 - - * Solana + * Currently supported chains are: - EVM based chains - Stellar - Algorand - TRON - NEAR * * @throws ApiException if the Api call fails */ @@ -154,37 +56,4 @@ public void registerNewAssetTest() throws ApiException { CompletableFuture> response = api.registerNewAsset(registerNewAssetRequest, idempotencyKey); } - - /** - * Set asset price - * - *

Set asset price for the given asset id. Returns the asset price response. - * - * @throws ApiException if the Api call fails - */ - @Test - public void setAssetPriceTest() throws ApiException { - String id = null; - SetAssetPriceRequest setAssetPriceRequest = null; - String idempotencyKey = null; - CompletableFuture> response = - api.setAssetPrice(id, setAssetPriceRequest, idempotencyKey); - } - - /** - * Update the user’s metadata for an asset - * - *

Update the user’s metadata for an asset. Endpoint Permission: Owner, Admin, Non-Signing - * Admin, NCW Admin, Signer, Editor. - * - * @throws ApiException if the Api call fails - */ - @Test - public void updateAssetUserMetadataTest() throws ApiException { - String id = null; - UpdateAssetUserMetadataRequest updateAssetUserMetadataRequest = null; - String idempotencyKey = null; - CompletableFuture> response = - api.updateAssetUserMetadata(id, updateAssetUserMetadataRequest, idempotencyKey); - } } diff --git a/src/test/java/com/fireblocks/sdk/api/ComplianceApiTest.java b/src/test/java/com/fireblocks/sdk/api/ComplianceApiTest.java index 7a30cab2..4427504b 100644 --- a/src/test/java/com/fireblocks/sdk/api/ComplianceApiTest.java +++ b/src/test/java/com/fireblocks/sdk/api/ComplianceApiTest.java @@ -15,14 +15,10 @@ import com.fireblocks.sdk.ApiException; import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.model.AmlVerdictManualRequest; -import com.fireblocks.sdk.model.AmlVerdictManualResponse; -import com.fireblocks.sdk.model.ComplianceResultFullPayload; -import com.fireblocks.sdk.model.CreateTransactionResponse; import com.fireblocks.sdk.model.ScreeningConfigurationsRequest; import com.fireblocks.sdk.model.ScreeningPolicyResponse; import com.fireblocks.sdk.model.ScreeningProviderRulesConfigurationResponse; -import com.fireblocks.sdk.model.ScreeningUpdateConfigurations; +import com.fireblocks.sdk.model.ScreeningUpdateConfigurationsRequest; import java.util.concurrent.CompletableFuture; import org.junit.Ignore; import org.junit.Test; @@ -72,20 +68,6 @@ public void getPostScreeningPolicyTest() throws ApiException { api.getPostScreeningPolicy(); } - /** - * Provides all the compliance details for the given screened transaction. - * - *

Provides all the compliance details for the given screened transaction. - * - * @throws ApiException if the Api call fails - */ - @Test - public void getScreeningFullDetailsTest() throws ApiException { - String txId = null; - CompletableFuture> response = - api.getScreeningFullDetails(txId); - } - /** * Travel Rule - View Screening Policy * @@ -99,39 +81,6 @@ public void getScreeningPolicyTest() throws ApiException { api.getScreeningPolicy(); } - /** - * Calling the \"Bypass Screening Policy\" API endpoint triggers a new transaction, - * with the API user as the initiator, bypassing the screening policy check - * - *

This endpoint is restricted to Admin API users and is only applicable to outgoing - * transactions. - * - * @throws ApiException if the Api call fails - */ - @Test - public void retryRejectedTransactionBypassScreeningChecksTest() throws ApiException { - String txId = null; - String idempotencyKey = null; - CompletableFuture> response = - api.retryRejectedTransactionBypassScreeningChecks(txId, idempotencyKey); - } - - /** - * Set AML Verdict for Manual Screening Verdict. - * - *

Set AML verdict for incoming transactions when Manual Screening Verdict feature is - * enabled. - * - * @throws ApiException if the Api call fails - */ - @Test - public void setAmlVerdictTest() throws ApiException { - AmlVerdictManualRequest amlVerdictManualRequest = null; - String idempotencyKey = null; - CompletableFuture> response = - api.setAmlVerdict(amlVerdictManualRequest, idempotencyKey); - } - /** * Update AML Configuration * @@ -155,10 +104,9 @@ public void updateAmlScreeningConfigurationTest() throws ApiException { */ @Test public void updateScreeningConfigurationTest() throws ApiException { - ScreeningUpdateConfigurations screeningUpdateConfigurations = null; String idempotencyKey = null; - CompletableFuture> response = - api.updateScreeningConfiguration(screeningUpdateConfigurations, idempotencyKey); + CompletableFuture> response = + api.updateScreeningConfiguration(idempotencyKey); } /** diff --git a/src/test/java/com/fireblocks/sdk/api/ConnectedAccountsBetaApiTest.java b/src/test/java/com/fireblocks/sdk/api/ConnectedAccountsBetaApiTest.java deleted file mode 100644 index 26793481..00000000 --- a/src/test/java/com/fireblocks/sdk/api/ConnectedAccountsBetaApiTest.java +++ /dev/null @@ -1,116 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.api; - - -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.model.ConnectedAccountBalancesResponse; -import com.fireblocks.sdk.model.ConnectedAccountRateResponse; -import com.fireblocks.sdk.model.ConnectedAccountTradingPairsResponse; -import com.fireblocks.sdk.model.ConnectedAccountsResponse; -import com.fireblocks.sdk.model.ConnectedSingleAccountResponse; -import java.util.concurrent.CompletableFuture; -import org.junit.Ignore; -import org.junit.Test; - -/** API tests for ConnectedAccountsBetaApi */ -@Ignore -public class ConnectedAccountsBetaApiTest { - - private final ConnectedAccountsBetaApi api = new ConnectedAccountsBetaApi(); - - /** - * Get connected account - * - *

Retrieve detailed information about a specific connected account by ID. </br> - * **Note**: - This endpoint is currently in beta and might be subject to changes. - * - * @throws ApiException if the Api call fails - */ - @Test - public void getConnectedAccountTest() throws ApiException { - String accountId = null; - CompletableFuture> response = - api.getConnectedAccount(accountId); - } - - /** - * Get balances for an account - * - *

Retrieve current asset balances for a specific connected account as a flat list (one row - * per assetId, balanceType) </br> **Note**: - This endpoint is currently in beta and - * might be subject to changes. - * - * @throws ApiException if the Api call fails - */ - @Test - public void getConnectedAccountBalancesTest() throws ApiException { - String accountId = null; - Integer pageSize = null; - String pageCursor = null; - CompletableFuture> response = - api.getConnectedAccountBalances(accountId, pageSize, pageCursor); - } - - /** - * Get exchange rates for an account - * - *

Retrieve current exchange rates for converting between specific assets in a connected - * account. - * - * @throws ApiException if the Api call fails - */ - @Test - public void getConnectedAccountRatesTest() throws ApiException { - String accountId = null; - String baseAssetId = null; - String quoteAssetId = null; - CompletableFuture> response = - api.getConnectedAccountRates(accountId, baseAssetId, quoteAssetId); - } - - /** - * Get supported trading pairs for an account - * - *

Retrieve all asset trading pairs supported by a specific connected account, including the - * pair type (quote, market, onOffRamp). - * - * @throws ApiException if the Api call fails - */ - @Test - public void getConnectedAccountTradingPairsTest() throws ApiException { - String accountId = null; - Integer pageSize = null; - String pageCursor = null; - CompletableFuture> response = - api.getConnectedAccountTradingPairs(accountId, pageSize, pageCursor); - } - - /** - * Get connected accounts - * - *

Returns all connected accounts </br> **Note**: - This endpoint is currently in beta - * and might be subject to changes. - * - * @throws ApiException if the Api call fails - */ - @Test - public void getConnectedAccountsTest() throws ApiException { - Boolean mainAccounts = null; - Integer pageSize = null; - String pageCursor = null; - CompletableFuture> response = - api.getConnectedAccounts(mainAccounts, pageSize, pageCursor); - } -} diff --git a/src/test/java/com/fireblocks/sdk/api/ContractInteractionsApiTest.java b/src/test/java/com/fireblocks/sdk/api/ContractInteractionsApiTest.java index 89bedeed..74ecba14 100644 --- a/src/test/java/com/fireblocks/sdk/api/ContractInteractionsApiTest.java +++ b/src/test/java/com/fireblocks/sdk/api/ContractInteractionsApiTest.java @@ -16,11 +16,8 @@ import com.fireblocks.sdk.ApiException; import com.fireblocks.sdk.ApiResponse; import com.fireblocks.sdk.model.ContractAbiResponseDto; -import com.fireblocks.sdk.model.ContractDataDecodeRequest; -import com.fireblocks.sdk.model.ContractDataDecodedResponse; import com.fireblocks.sdk.model.ParameterWithValue; import com.fireblocks.sdk.model.ReadCallFunctionDto; -import com.fireblocks.sdk.model.TransactionReceiptResponse; import com.fireblocks.sdk.model.WriteCallFunctionDto; import com.fireblocks.sdk.model.WriteCallFunctionResponseDto; import java.util.List; @@ -34,25 +31,6 @@ public class ContractInteractionsApiTest { private final ContractInteractionsApi api = new ContractInteractionsApi(); - /** - * Decode a function call data, error, or event log - * - *

Decode a function call data, error, or event log from a deployed contract by blockchain - * native asset id and contract address. - * - * @throws ApiException if the Api call fails - */ - @Test - public void decodeContractDataTest() throws ApiException { - ContractDataDecodeRequest contractDataDecodeRequest = null; - String contractAddress = null; - String baseAssetId = null; - String idempotencyKey = null; - CompletableFuture> response = - api.decodeContractData( - contractDataDecodeRequest, contractAddress, baseAssetId, idempotencyKey); - } - /** * Return deployed contract's ABI * @@ -63,25 +41,10 @@ public void decodeContractDataTest() throws ApiException { @Test public void getDeployedContractAbiTest() throws ApiException { String contractAddress = null; - String baseAssetId = null; + String assetId = null; String idempotencyKey = null; CompletableFuture> response = - api.getDeployedContractAbi(contractAddress, baseAssetId, idempotencyKey); - } - - /** - * Get transaction receipt - * - *

Retrieve the transaction receipt by blockchain native asset ID and transaction hash - * - * @throws ApiException if the Api call fails - */ - @Test - public void getTransactionReceiptTest() throws ApiException { - String baseAssetId = null; - String txHash = null; - CompletableFuture> response = - api.getTransactionReceipt(baseAssetId, txHash); + api.getDeployedContractAbi(contractAddress, assetId, idempotencyKey); } /** @@ -96,11 +59,10 @@ public void getTransactionReceiptTest() throws ApiException { public void readCallFunctionTest() throws ApiException { ReadCallFunctionDto readCallFunctionDto = null; String contractAddress = null; - String baseAssetId = null; + String assetId = null; String idempotencyKey = null; CompletableFuture>> response = - api.readCallFunction( - readCallFunctionDto, contractAddress, baseAssetId, idempotencyKey); + api.readCallFunction(readCallFunctionDto, contractAddress, assetId, idempotencyKey); } /** @@ -116,10 +78,10 @@ public void readCallFunctionTest() throws ApiException { public void writeCallFunctionTest() throws ApiException { WriteCallFunctionDto writeCallFunctionDto = null; String contractAddress = null; - String baseAssetId = null; + String assetId = null; String idempotencyKey = null; CompletableFuture> response = api.writeCallFunction( - writeCallFunctionDto, contractAddress, baseAssetId, idempotencyKey); + writeCallFunctionDto, contractAddress, assetId, idempotencyKey); } } diff --git a/src/test/java/com/fireblocks/sdk/api/CosignersBetaApiTest.java b/src/test/java/com/fireblocks/sdk/api/CosignersBetaApiTest.java index 16e07d02..fb315a71 100644 --- a/src/test/java/com/fireblocks/sdk/api/CosignersBetaApiTest.java +++ b/src/test/java/com/fireblocks/sdk/api/CosignersBetaApiTest.java @@ -15,18 +15,11 @@ import com.fireblocks.sdk.ApiException; import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.model.AddCosignerRequest; -import com.fireblocks.sdk.model.AddCosignerResponse; import com.fireblocks.sdk.model.ApiKey; import com.fireblocks.sdk.model.ApiKeysPaginatedResponse; import com.fireblocks.sdk.model.Cosigner; import com.fireblocks.sdk.model.CosignersPaginatedResponse; -import com.fireblocks.sdk.model.PairApiKeyRequest; -import com.fireblocks.sdk.model.PairApiKeyResponse; import com.fireblocks.sdk.model.RenameCosigner; -import com.fireblocks.sdk.model.Status; -import com.fireblocks.sdk.model.UpdateCallbackHandlerRequest; -import com.fireblocks.sdk.model.UpdateCallbackHandlerResponse; import java.math.BigDecimal; import java.util.UUID; import java.util.concurrent.CompletableFuture; @@ -39,22 +32,6 @@ public class CosignersBetaApiTest { private final CosignersBetaApi api = new CosignersBetaApi(); - /** - * Add cosigner - * - *

Add a new cosigner. The cosigner will be pending pairing until the API key is manually - * paired - * - * @throws ApiException if the Api call fails - */ - @Test - public void addCosignerTest() throws ApiException { - AddCosignerRequest addCosignerRequest = null; - String idempotencyKey = null; - CompletableFuture> response = - api.addCosigner(addCosignerRequest, idempotencyKey); - } - /** * Get API key * @@ -73,7 +50,8 @@ public void getApiKeyTest() throws ApiException { /** * Get all API keys * - *

Get all cosigner paired API keys (paginated) + *

Get all cosigner paired API keys (paginated) **Note:** These endpoints are currently in + * beta and might be subject to changes. * * @throws ApiException if the Api call fails */ @@ -118,39 +96,6 @@ public void getCosignersTest() throws ApiException { api.getCosigners(order, pageCursor, pageSize); } - /** - * Get request status - * - *

Get the status of an asynchronous request - * - * @throws ApiException if the Api call fails - */ - @Test - public void getRequestStatusTest() throws ApiException { - UUID cosignerId = null; - String apiKeyId = null; - String requestId = null; - CompletableFuture> response = - api.getRequestStatus(cosignerId, apiKeyId, requestId); - } - - /** - * Pair API key - * - *

Pair an API key to a cosigner - * - * @throws ApiException if the Api call fails - */ - @Test - public void pairApiKeyTest() throws ApiException { - PairApiKeyRequest pairApiKeyRequest = null; - UUID cosignerId = null; - String apiKeyId = null; - String idempotencyKey = null; - CompletableFuture> response = - api.pairApiKey(pairApiKeyRequest, cosignerId, apiKeyId, idempotencyKey); - } - /** * Rename cosigner * @@ -166,34 +111,4 @@ public void renameCosignerTest() throws ApiException { CompletableFuture> response = api.renameCosigner(renameCosigner, cosignerId); } - - /** - * Unpair API key - * - *

Unpair an API key from a cosigner - * - * @throws ApiException if the Api call fails - */ - @Test - public void unpairApiKeyTest() throws ApiException { - UUID cosignerId = null; - String apiKeyId = null; - CompletableFuture> response = api.unpairApiKey(cosignerId, apiKeyId); - } - - /** - * Update API key callback handler - * - *

Update the callback handler of an API key - * - * @throws ApiException if the Api call fails - */ - @Test - public void updateCallbackHandlerTest() throws ApiException { - UpdateCallbackHandlerRequest updateCallbackHandlerRequest = null; - UUID cosignerId = null; - String apiKeyId = null; - CompletableFuture> response = - api.updateCallbackHandler(updateCallbackHandlerRequest, cosignerId, apiKeyId); - } } diff --git a/src/test/java/com/fireblocks/sdk/api/DeployedContractsApiTest.java b/src/test/java/com/fireblocks/sdk/api/DeployedContractsApiTest.java index f3aa6e47..11e0dcf6 100644 --- a/src/test/java/com/fireblocks/sdk/api/DeployedContractsApiTest.java +++ b/src/test/java/com/fireblocks/sdk/api/DeployedContractsApiTest.java @@ -15,11 +15,8 @@ import com.fireblocks.sdk.ApiException; import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.model.AddAbiRequestDto; -import com.fireblocks.sdk.model.ContractWithAbiDto; import com.fireblocks.sdk.model.DeployedContractResponseDto; import com.fireblocks.sdk.model.DeployedContractsPaginatedResponse; -import com.fireblocks.sdk.model.FetchAbiRequestDto; import java.math.BigDecimal; import java.util.concurrent.CompletableFuture; import org.junit.Ignore; @@ -31,36 +28,6 @@ public class DeployedContractsApiTest { private final DeployedContractsApi api = new DeployedContractsApi(); - /** - * Save contract ABI - * - *

Save contract ABI for the tenant - * - * @throws ApiException if the Api call fails - */ - @Test - public void addContractABITest() throws ApiException { - AddAbiRequestDto addAbiRequestDto = null; - String idempotencyKey = null; - CompletableFuture> response = - api.addContractABI(addAbiRequestDto, idempotencyKey); - } - - /** - * Fetch the contract ABI - * - *

Fetch the ABI. If not found fetch the ABI from the block explorer - * - * @throws ApiException if the Api call fails - */ - @Test - public void fetchContractAbiTest() throws ApiException { - FetchAbiRequestDto fetchAbiRequestDto = null; - String idempotencyKey = null; - CompletableFuture> response = - api.fetchContractAbi(fetchAbiRequestDto, idempotencyKey); - } - /** * Return deployed contract data * @@ -103,10 +70,10 @@ public void getDeployedContractsTest() throws ApiException { String pageCursor = null; BigDecimal pageSize = null; String contractAddress = null; - String baseAssetId = null; - String contractTemplateId = null; + String assetId = null; + String templateId = null; CompletableFuture> response = api.getDeployedContracts( - pageCursor, pageSize, contractAddress, baseAssetId, contractTemplateId); + pageCursor, pageSize, contractAddress, assetId, templateId); } } diff --git a/src/test/java/com/fireblocks/sdk/api/EmbeddedWalletsApiTest.java b/src/test/java/com/fireblocks/sdk/api/EmbeddedWalletsApiTest.java deleted file mode 100644 index 562a9a5e..00000000 --- a/src/test/java/com/fireblocks/sdk/api/EmbeddedWalletsApiTest.java +++ /dev/null @@ -1,314 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.api; - - -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.model.EmbeddedWallet; -import com.fireblocks.sdk.model.EmbeddedWalletAccount; -import com.fireblocks.sdk.model.EmbeddedWalletAddressDetails; -import com.fireblocks.sdk.model.EmbeddedWalletAssetBalance; -import com.fireblocks.sdk.model.EmbeddedWalletAssetResponse; -import com.fireblocks.sdk.model.EmbeddedWalletDevice; -import com.fireblocks.sdk.model.EmbeddedWalletDeviceKeySetupResponse; -import com.fireblocks.sdk.model.EmbeddedWalletLatestBackupResponse; -import com.fireblocks.sdk.model.EmbeddedWalletPaginatedAddressesResponse; -import com.fireblocks.sdk.model.EmbeddedWalletPaginatedAssetsResponse; -import com.fireblocks.sdk.model.EmbeddedWalletPaginatedWalletsResponse; -import com.fireblocks.sdk.model.PublicKeyInformation; -import java.math.BigDecimal; -import java.util.UUID; -import java.util.concurrent.CompletableFuture; -import org.junit.Ignore; -import org.junit.Test; - -/** API tests for EmbeddedWalletsApi */ -@Ignore -public class EmbeddedWalletsApiTest { - - private final EmbeddedWalletsApi api = new EmbeddedWalletsApi(); - - /** - * Add asset to account - * - *

Get the addresses of a specific asset, under a specific account, under a specific Non - * Custodial Wallet - * - * @throws ApiException if the Api call fails - */ - @Test - public void addEmbeddedWalletAssetTest() throws ApiException { - String walletId = null; - String accountId = null; - String assetId = null; - String idempotencyKey = null; - CompletableFuture> response = - api.addEmbeddedWalletAsset(walletId, accountId, assetId, idempotencyKey); - } - - /** - * Create a new wallet - * - *

Create new Non Custodial Wallet - * - * @throws ApiException if the Api call fails - */ - @Test - public void createEmbeddedWalletTest() throws ApiException { - String idempotencyKey = null; - CompletableFuture> response = - api.createEmbeddedWallet(idempotencyKey); - } - - /** - * Create a new account - * - *

Create a new account under a specific Non Custodial Wallet - * - * @throws ApiException if the Api call fails - */ - @Test - public void createEmbeddedWalletAccountTest() throws ApiException { - String walletId = null; - String idempotencyKey = null; - CompletableFuture> response = - api.createEmbeddedWalletAccount(walletId, idempotencyKey); - } - - /** - * Get a wallet - * - *

Get a wallet - * - * @throws ApiException if the Api call fails - */ - @Test - public void getEmbeddedWalletTest() throws ApiException { - String walletId = null; - CompletableFuture> response = api.getEmbeddedWallet(walletId); - } - - /** - * Get a account - * - *

Get a specific account under a specific Non Custodial Wallet - * - * @throws ApiException if the Api call fails - */ - @Test - public void getEmbeddedWalletAccountTest() throws ApiException { - String walletId = null; - String accountId = null; - CompletableFuture> response = - api.getEmbeddedWalletAccount(walletId, accountId); - } - - /** - * Retrieve asset addresses - * - *

Get the addresses of a specific asset, under a specific account, under a specific Non - * Custodial Wallet - * - * @throws ApiException if the Api call fails - */ - @Test - public void getEmbeddedWalletAddressesTest() throws ApiException { - String walletId = null; - String accountId = null; - String assetId = null; - String pageCursor = null; - BigDecimal pageSize = null; - String sort = null; - String order = null; - Boolean enabled = null; - CompletableFuture> response = - api.getEmbeddedWalletAddresses( - walletId, accountId, assetId, pageCursor, pageSize, sort, order, enabled); - } - - /** - * Retrieve asset - * - *

Get asset under a specific account, under a specific Non Custodial Wallet - * - * @throws ApiException if the Api call fails - */ - @Test - public void getEmbeddedWalletAssetTest() throws ApiException { - String walletId = null; - String accountId = null; - String assetId = null; - CompletableFuture> response = - api.getEmbeddedWalletAsset(walletId, accountId, assetId); - } - - /** - * Retrieve asset balance - * - *

Get balance for specific asset, under a specific account - * - * @throws ApiException if the Api call fails - */ - @Test - public void getEmbeddedWalletAssetBalanceTest() throws ApiException { - String walletId = null; - String accountId = null; - String assetId = null; - CompletableFuture> response = - api.getEmbeddedWalletAssetBalance(walletId, accountId, assetId); - } - - /** - * Get Embedded Wallet Device - * - *

Get specific device for a specific s Wallet - * - * @throws ApiException if the Api call fails - */ - @Test - public void getEmbeddedWalletDeviceTest() throws ApiException { - String walletId = null; - String deviceId = null; - CompletableFuture> response = - api.getEmbeddedWalletDevice(walletId, deviceId); - } - - /** - * Get device key setup state - * - *

Get the state of the specific device setup key under a specific Non Custodial Wallet - * - * @throws ApiException if the Api call fails - */ - @Test - public void getEmbeddedWalletDeviceSetupStateTest() throws ApiException { - String walletId = null; - String deviceId = null; - CompletableFuture> response = - api.getEmbeddedWalletDeviceSetupState(walletId, deviceId); - } - - /** - * Get wallet Latest Backup details - * - *

Get wallet Latest Backup details, including the deviceId, and backup time - * - * @throws ApiException if the Api call fails - */ - @Test - public void getEmbeddedWalletLatestBackupTest() throws ApiException { - String walletId = null; - CompletableFuture> response = - api.getEmbeddedWalletLatestBackup(walletId); - } - - /** - * Get the public key of an asset - * - *

Gets the public key of an asset associated with a specific account within a Non-Custodial - * Wallet - * - * @throws ApiException if the Api call fails - */ - @Test - public void getEmbeddedWalletPublicKeyInfoForAddressTest() throws ApiException { - UUID xEndUserWalletId = null; - String walletId = null; - String accountId = null; - String assetId = null; - BigDecimal change = null; - BigDecimal addressIndex = null; - Boolean compressed = null; - CompletableFuture> response = - api.getEmbeddedWalletPublicKeyInfoForAddress( - xEndUserWalletId, - walletId, - accountId, - assetId, - change, - addressIndex, - compressed); - } - - /** - * Retrieve supported assets - * - *

Get all the available supported assets for the Non-Custodial Wallet - * - * @throws ApiException if the Api call fails - */ - @Test - public void getEmbeddedWalletSupportedAssetsTest() throws ApiException { - String pageCursor = null; - BigDecimal pageSize = null; - Boolean onlyBaseAssets = null; - CompletableFuture> response = - api.getEmbeddedWalletSupportedAssets(pageCursor, pageSize, onlyBaseAssets); - } - - /** - * List wallets - * - *

Get all Non Custodial Wallets - * - * @throws ApiException if the Api call fails - */ - @Test - public void getEmbeddedWalletsTest() throws ApiException { - String pageCursor = null; - BigDecimal pageSize = null; - String sort = null; - String order = null; - Boolean enabled = null; - CompletableFuture> response = - api.getEmbeddedWallets(pageCursor, pageSize, sort, order, enabled); - } - - /** - * Get the public key for a derivation path - * - *

Gets the public key information based on derivation path and signing algorithm within a - * Non-Custodial Wallet - * - * @throws ApiException if the Api call fails - */ - @Test - public void getPublicKeyInfoNcwTest() throws ApiException { - UUID xEndUserWalletId = null; - String walletId = null; - String derivationPath = null; - String algorithm = null; - Boolean compressed = null; - CompletableFuture> response = - api.getPublicKeyInfoNcw( - xEndUserWalletId, walletId, derivationPath, algorithm, compressed); - } - - /** - * Refresh asset balance - * - *

Refresh the balance of an asset in a specific account - * - * @throws ApiException if the Api call fails - */ - @Test - public void refreshEmbeddedWalletAssetBalanceTest() throws ApiException { - String walletId = null; - String accountId = null; - String assetId = null; - String idempotencyKey = null; - CompletableFuture> response = - api.refreshEmbeddedWalletAssetBalance(walletId, accountId, assetId, idempotencyKey); - } -} diff --git a/src/test/java/com/fireblocks/sdk/api/ExchangeAccountsApiTest.java b/src/test/java/com/fireblocks/sdk/api/ExchangeAccountsApiTest.java index 3c46225f..998273cd 100644 --- a/src/test/java/com/fireblocks/sdk/api/ExchangeAccountsApiTest.java +++ b/src/test/java/com/fireblocks/sdk/api/ExchangeAccountsApiTest.java @@ -15,15 +15,12 @@ import com.fireblocks.sdk.ApiException; import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.model.AddExchangeAccountRequest; -import com.fireblocks.sdk.model.AddExchangeAccountResponse; import com.fireblocks.sdk.model.ConvertAssetsRequest; import com.fireblocks.sdk.model.ConvertAssetsResponse; import com.fireblocks.sdk.model.CreateInternalTransferRequest; import com.fireblocks.sdk.model.ExchangeAccount; import com.fireblocks.sdk.model.ExchangeAccountsPaged; import com.fireblocks.sdk.model.ExchangeAsset; -import com.fireblocks.sdk.model.GetExchangeAccountsCredentialsPublicKeyResponse; import com.fireblocks.sdk.model.InternalTransferResponse; import java.math.BigDecimal; import java.util.List; @@ -37,21 +34,6 @@ public class ExchangeAccountsApiTest { private final ExchangeAccountsApi api = new ExchangeAccountsApi(); - /** - * Add an exchange account - * - *

Add an exchange account to exchanges. - * - * @throws ApiException if the Api call fails - */ - @Test - public void addExchangeAccountTest() throws ApiException { - AddExchangeAccountRequest addExchangeAccountRequest = null; - String idempotencyKey = null; - CompletableFuture> response = - api.addExchangeAccount(addExchangeAccountRequest, idempotencyKey); - } - /** * Convert exchange account funds from the source asset to the destination asset. * @@ -98,19 +80,6 @@ public void getExchangeAccountAssetTest() throws ApiException { api.getExchangeAccountAsset(exchangeAccountId, assetId); } - /** - * Get public key to encrypt exchange credentials - * - *

Return public key - * - * @throws ApiException if the Api call fails - */ - @Test - public void getExchangeAccountsCredentialsPublicKeyTest() throws ApiException { - CompletableFuture> response = - api.getExchangeAccountsCredentialsPublicKey(); - } - /** * Pagination list exchange accounts * diff --git a/src/test/java/com/fireblocks/sdk/api/InternalWalletsApiTest.java b/src/test/java/com/fireblocks/sdk/api/InternalWalletsApiTest.java index 590cfaaf..244b33fb 100644 --- a/src/test/java/com/fireblocks/sdk/api/InternalWalletsApiTest.java +++ b/src/test/java/com/fireblocks/sdk/api/InternalWalletsApiTest.java @@ -17,11 +17,9 @@ import com.fireblocks.sdk.ApiResponse; import com.fireblocks.sdk.model.CreateInternalWalletAssetRequest; import com.fireblocks.sdk.model.CreateWalletRequest; -import com.fireblocks.sdk.model.PaginatedAssetsResponse; import com.fireblocks.sdk.model.SetCustomerRefIdRequest; import com.fireblocks.sdk.model.UnmanagedWallet; import com.fireblocks.sdk.model.WalletAsset; -import java.math.BigDecimal; import java.util.List; import java.util.concurrent.CompletableFuture; import org.junit.Ignore; @@ -36,10 +34,7 @@ public class InternalWalletsApiTest { /** * Create an internal wallet * - *

Creates a new internal wallet with the requested name. Learn more about Whitelisted - * Internal Addresses - * [here](https://developers.fireblocks.com/docs/whitelist-addresses#internal-wallets) Endpoint - * Permission: Admin, Non-Signing Admin, Signer, Approver, Editor. + *

Creates a new internal wallet with the requested name. * * @throws ApiException if the Api call fails */ @@ -54,12 +49,7 @@ public void createInternalWalletTest() throws ApiException { /** * Add an asset to an internal wallet * - *

Adds an asset to an existing internal wallet. Internal Wallets are whitelisted wallets - * that belong to you outside of Fireblocks. - You can see the balance of the Internal Wallet - * via Fireblocks - You cannot initiate transactions from Internal Wallets through Fireblocks - * Learn more about Whitelisted Internal Addresses - * [here](https://developers.fireblocks.com/docs/whitelist-addresses#internal-wallets) Endpoint - * Permission: Admin, Non-Signing Admin, Signer, Approver, Editor. + *

Adds an asset to an existing internal wallet. * * @throws ApiException if the Api call fails */ @@ -77,10 +67,7 @@ public void createInternalWalletAssetTest() throws ApiException { /** * Delete an internal wallet * - *

Deletes an internal wallet by ID. Internal Wallets are whitelisted wallets that belong to - * you outside of Fireblocks. - You can see the balance of the Internal Wallet via Fireblocks - - * You cannot initiate transactions from Internal Wallets through Fireblocks Endpoint - * Permission: Admin, Non-Signing Admin, Signer, Approver, Editor. + *

Deletes an internal wallet by ID. * * @throws ApiException if the Api call fails */ @@ -92,14 +79,9 @@ public void deleteInternalWalletTest() throws ApiException { } /** - * Delete a whitelisted address + * Delete a whitelisted address from an internal wallet * - *

Deletes a whitelisted address (for an asset) from an internal wallet. Internal Wallets are - * whitelisted wallets that belong to you outside of Fireblocks. - You can see the balance of - * the Internal Wallet via Fireblocks - You cannot initiate transactions from Internal Wallets - * through Fireblocks Learn more about Whitelisted Internal Addresses - * [here](https://developers.fireblocks.com/docs/whitelist-addresses#internal-wallets) Endpoint - * Permission: Admin, Non-Signing Admin, Signer, Approver, Editor. + *

Deletes a whitelisted address (for an asset) from an internal wallet. * * @throws ApiException if the Api call fails */ @@ -113,15 +95,9 @@ public void deleteInternalWalletAssetTest() throws ApiException { } /** - * Get an asset from an internal wallet + * Get assets for internal wallet * - *

Returns information for an asset in an internal wallet. This endpoint will be deprecated - * after 6 months. </br>As part of the depreciation process this endpoint will no longer - * return balances, only addresses. </br>Until it is deprecated, this endpoint will behave - * the same way. Internal Wallets are whitelisted wallets that belong to you outside of - * Fireblocks. - You can see the balance of the Internal Wallet via Fireblocks - You cannot - * initiate transactions from Internal Wallets through Fireblocks Endpoint Permission: Admin, - * Non-Signing Admin, Signer, Approver, Editor, Viewer. + *

Returns all assets in an internal wallet by ID. * * @throws ApiException if the Api call fails */ @@ -134,12 +110,7 @@ public void getInternalWalletTest() throws ApiException { /** * Get an asset from an internal wallet * - *

Returns information for an asset in an internal wallet. Internal Wallets are whitelisted - * wallets that belong to you outside of Fireblocks. - You can see the balance of the Internal - * Wallet via Fireblocks - You cannot initiate transactions from Internal Wallets through - * Fireblocks Learn more about Whitelisted Internal Addresses - * [here](https://developers.fireblocks.com/docs/whitelist-addresses#internal-wallets) Endpoint - * Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. + *

Returns information for an asset in an internal wallet. * * @throws ApiException if the Api call fails */ @@ -151,42 +122,13 @@ public void getInternalWalletAssetTest() throws ApiException { api.getInternalWalletAsset(walletId, assetId); } - /** - * List assets in an internal wallet (Paginated) - * - *

Returns a paginated response of assets in an internal wallet. This is a new paginated - * endpoint that gets all the assets from the wallet container with balances. </br>This - * endpoint returns a limited amount of results with a quick response time. Internal Wallets are - * whitelisted wallets that belong to you outside of Fireblocks. - You can see the balance of - * the Internal Wallet via Fireblocks - You cannot initiate transactions from Internal Wallets - * through Fireblocks Learn more about Whitelisted Internal Addresses - * [here](https://developers.fireblocks.com/docs/whitelist-addresses#internal-wallets) Endpoint - * Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. - * - * @throws ApiException if the Api call fails - */ - @Test - public void getInternalWalletAssetsPaginatedTest() throws ApiException { - String walletId = null; - BigDecimal pageSize = null; - String pageCursor = null; - CompletableFuture> response = - api.getInternalWalletAssetsPaginated(walletId, pageSize, pageCursor); - } - /** * List internal wallets * - *

Gets a list of internal wallets. **Note**: - BTC-based assets belonging to whitelisted + *

Gets a list of internal wallets. **Note**: BTC-based assets belonging to whitelisted * addresses cannot be retrieved between 00:00 UTC and 00:01 UTC daily due to third-party - * provider, Blockchain, being unavailable for this 60 second period. </br>Please wait - * until the next minute to retrieve BTC-based assets. - The list of assets returned will NOT - * include the balances anymore. Internal Wallets are whitelisted wallets that belong to you - * outside of Fireblocks. - You can see the balance of the Internal Wallet via Fireblocks - You - * cannot initiate transactions from Internal Wallets through Fireblocks Learn more about - * Whitelisted Internal Addresses - * [here](https://developers.fireblocks.com/docs/whitelist-addresses#internal-wallets) Endpoint - * Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. + * provider, Blockchair, being unavailable for this 60 second period. Please wait until the next + * minute to retrieve BTC-based assets. * * @throws ApiException if the Api call fails */ @@ -198,12 +140,7 @@ public void getInternalWalletsTest() throws ApiException { /** * Set an AML/KYT customer reference ID for an internal wallet * - *

Sets an AML/KYT customer reference ID for the specific internal wallet. Internal Wallets - * are whitelisted wallets that belong to you outside of Fireblocks. - You can see the balance - * of the Internal Wallet via Fireblocks - You cannot initiate transactions from Internal - * Wallets through Fireblocks Learn more about Whitelisted Internal Addresses - * [here](https://developers.fireblocks.com/docs/whitelist-addresses#internal-wallets) Endpoint - * Permission: Admin, Non-Signing Admin, Signer, Approver, Editor. + *

Sets an AML/KYT customer reference ID for the specific internal wallet. * * @throws ApiException if the Api call fails */ diff --git a/src/test/java/com/fireblocks/sdk/api/JobManagementApiTest.java b/src/test/java/com/fireblocks/sdk/api/JobManagementApiTest.java index ee4086f9..703b7524 100644 --- a/src/test/java/com/fireblocks/sdk/api/JobManagementApiTest.java +++ b/src/test/java/com/fireblocks/sdk/api/JobManagementApiTest.java @@ -31,8 +31,8 @@ public class JobManagementApiTest { /** * Cancel a running job * - *

Stop the given job immediately. If the job is in the 'Active' state, the job will - * be canceled after completing the current task. Vault accounts and Wallets that are already + *

Stop the given job immediately. If the job is in the ‘Active’ state, the job will be + * canceled after completing the current task. Vault accounts and Wallets that are already * created will not be affected. * * @throws ApiException if the Api call fails @@ -105,7 +105,7 @@ public void getJobsTest() throws ApiException { * Pause a job * *

Pause the given job, after the current task is done. A paused job can later be resumed by - * calling 'continue', or canceled. + * calling ‘continue’, or canceled. * * @throws ApiException if the Api call fails */ diff --git a/src/test/java/com/fireblocks/sdk/api/KeyLinkBetaApiTest.java b/src/test/java/com/fireblocks/sdk/api/KeyLinkBetaApiTest.java index cbae9980..c1a38bf5 100644 --- a/src/test/java/com/fireblocks/sdk/api/KeyLinkBetaApiTest.java +++ b/src/test/java/com/fireblocks/sdk/api/KeyLinkBetaApiTest.java @@ -131,24 +131,8 @@ public void getSigningKeysListTest() throws ApiException { BigDecimal pageSize = null; String sortBy = null; String order = null; - BigDecimal vaultAccountId = null; - String agentUserId = null; - String algorithm = null; - Boolean enabled = null; - Boolean available = null; - Boolean isAssigned = null; CompletableFuture> response = - api.getSigningKeysList( - pageCursor, - pageSize, - sortBy, - order, - vaultAccountId, - agentUserId, - algorithm, - enabled, - available, - isAssigned); + api.getSigningKeysList(pageCursor, pageSize, sortBy, order); } /** diff --git a/src/test/java/com/fireblocks/sdk/api/KeysBetaApiTest.java b/src/test/java/com/fireblocks/sdk/api/KeysBetaApiTest.java deleted file mode 100644 index e4eb0849..00000000 --- a/src/test/java/com/fireblocks/sdk/api/KeysBetaApiTest.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.api; - - -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.model.GetMpcKeysResponse; -import java.util.concurrent.CompletableFuture; -import org.junit.Ignore; -import org.junit.Test; - -/** API tests for KeysBetaApi */ -@Ignore -public class KeysBetaApiTest { - - private final KeysBetaApi api = new KeysBetaApi(); - - /** - * Get list of mpc keys - * - *

Returns a list of MPC signing keys of the workspace. For each key, the list of players - * associated with it is attached. **Note:** This endpoint is currently in beta and might be - * subject to changes. - * - * @throws ApiException if the Api call fails - */ - @Test - public void getMpcKeysListTest() throws ApiException { - CompletableFuture> response = api.getMpcKeysList(); - } - - /** - * Get list of mpc keys by `userId` - * - *

Returns a list of MPC signing keys of a specific user. For each key, the list of players - * associated with it is attached. **Note:** This endpoint is currently in beta and might be - * subject to changes. - * - * @throws ApiException if the Api call fails - */ - @Test - public void getMpcKeysListByUserTest() throws ApiException { - String userId = null; - CompletableFuture> response = - api.getMpcKeysListByUser(userId); - } -} diff --git a/src/test/java/com/fireblocks/sdk/api/NetworkConnectionsApiTest.java b/src/test/java/com/fireblocks/sdk/api/NetworkConnectionsApiTest.java index ca9adcdd..70acd379 100644 --- a/src/test/java/com/fireblocks/sdk/api/NetworkConnectionsApiTest.java +++ b/src/test/java/com/fireblocks/sdk/api/NetworkConnectionsApiTest.java @@ -21,7 +21,6 @@ import com.fireblocks.sdk.model.NetworkConnection; import com.fireblocks.sdk.model.NetworkConnectionResponse; import com.fireblocks.sdk.model.NetworkIdResponse; -import com.fireblocks.sdk.model.SearchNetworkIdsResponse; import com.fireblocks.sdk.model.SetNetworkIdDiscoverabilityRequest; import com.fireblocks.sdk.model.SetNetworkIdNameRequest; import com.fireblocks.sdk.model.SetNetworkIdResponse; @@ -29,7 +28,6 @@ import com.fireblocks.sdk.model.SetRoutingPolicyRequest; import com.fireblocks.sdk.model.SetRoutingPolicyResponse; import com.fireblocks.sdk.model.ThirdPartyRouting; -import java.math.BigDecimal; import java.util.List; import java.util.concurrent.CompletableFuture; import org.junit.Ignore; @@ -272,37 +270,6 @@ public void getRoutingPolicyAssetGroupsTest() throws ApiException { CompletableFuture>> response = api.getRoutingPolicyAssetGroups(); } - /** - * Search network IDs, both local IDs and discoverable remote IDs - * - *

Retrieves a list of all local and discoverable remote network IDs. Can be filtered. - * **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines - * how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below - * for each asset type: - **None**; Defines the profile routing to no destination for that asset - * type. Incoming transactions to asset types routed to `None` will fail. - - * **Custom**; Route to an account that you choose. If you remove the account, incoming - * transactions will fail until you choose another one. - **Default**; Use the routing specified - * by the network profile the connection is connected to. This scheme is also referred to as - * \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → - * **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - - * Network Connection FIAT → **Default** - **Note**: By default, Custom routing scheme uses - * (`dstId` = `0`, `dstType` = `VAULT`). - * - * @throws ApiException if the Api call fails - */ - @Test - public void searchNetworkIdsTest() throws ApiException { - String search = null; - Boolean excludeSelf = null; - Boolean onlySelf = null; - Boolean excludeConnected = null; - String pageCursor = null; - BigDecimal pageSize = null; - CompletableFuture> response = - api.searchNetworkIds( - search, excludeSelf, onlySelf, excludeConnected, pageCursor, pageSize); - } - /** * Update network ID's discoverability. * diff --git a/src/test/java/com/fireblocks/sdk/api/NftsApiTest.java b/src/test/java/com/fireblocks/sdk/api/NftsApiTest.java index 1064ed6f..d3a36dd2 100644 --- a/src/test/java/com/fireblocks/sdk/api/NftsApiTest.java +++ b/src/test/java/com/fireblocks/sdk/api/NftsApiTest.java @@ -25,7 +25,6 @@ import com.fireblocks.sdk.model.UpdateTokenOwnershipStatusDto; import java.math.BigDecimal; import java.util.List; -import java.util.UUID; import java.util.concurrent.CompletableFuture; import org.junit.Ignore; import org.junit.Test; @@ -163,11 +162,9 @@ public void listOwnedTokensTest() throws ApiException { @Test public void refreshNFTMetadataTest() throws ApiException { String id = null; - UUID xEndUserWalletId = null; String idempotencyKey = null; - CompletableFuture> response = - api.refreshNFTMetadata(id, xEndUserWalletId, idempotencyKey); + CompletableFuture> response = api.refreshNFTMetadata(id, idempotencyKey); } /** @@ -198,12 +195,10 @@ public void updateOwnershipTokensTest() throws ApiException { public void updateTokenOwnershipStatusTest() throws ApiException { UpdateTokenOwnershipStatusDto updateTokenOwnershipStatusDto = null; String id = null; - UUID xEndUserWalletId = null; String idempotencyKey = null; CompletableFuture> response = - api.updateTokenOwnershipStatus( - updateTokenOwnershipStatusDto, id, xEndUserWalletId, idempotencyKey); + api.updateTokenOwnershipStatus(updateTokenOwnershipStatusDto, id, idempotencyKey); } /** @@ -216,12 +211,10 @@ public void updateTokenOwnershipStatusTest() throws ApiException { @Test public void updateTokensOwnershipSpamTest() throws ApiException { List tokenOwnershipSpamUpdatePayload = null; - UUID xEndUserWalletId = null; String idempotencyKey = null; CompletableFuture> response = - api.updateTokensOwnershipSpam( - tokenOwnershipSpamUpdatePayload, xEndUserWalletId, idempotencyKey); + api.updateTokensOwnershipSpam(tokenOwnershipSpamUpdatePayload, idempotencyKey); } /** @@ -234,11 +227,9 @@ public void updateTokensOwnershipSpamTest() throws ApiException { @Test public void updateTokensOwnershipStatusTest() throws ApiException { List tokenOwnershipStatusUpdatePayload = null; - UUID xEndUserWalletId = null; String idempotencyKey = null; CompletableFuture> response = - api.updateTokensOwnershipStatus( - tokenOwnershipStatusUpdatePayload, xEndUserWalletId, idempotencyKey); + api.updateTokensOwnershipStatus(tokenOwnershipStatusUpdatePayload, idempotencyKey); } } diff --git a/src/test/java/com/fireblocks/sdk/api/PolicyEditorBetaApiTest.java b/src/test/java/com/fireblocks/sdk/api/PolicyEditorBetaApiTest.java index 81473a70..6f066292 100644 --- a/src/test/java/com/fireblocks/sdk/api/PolicyEditorBetaApiTest.java +++ b/src/test/java/com/fireblocks/sdk/api/PolicyEditorBetaApiTest.java @@ -15,11 +15,11 @@ import com.fireblocks.sdk.ApiException; import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.model.LegacyDraftReviewAndValidationResponse; -import com.fireblocks.sdk.model.LegacyPolicyAndValidationResponse; -import com.fireblocks.sdk.model.LegacyPolicyRules; -import com.fireblocks.sdk.model.LegacyPublishDraftRequest; -import com.fireblocks.sdk.model.LegacyPublishResult; +import com.fireblocks.sdk.model.DraftReviewAndValidationResponse; +import com.fireblocks.sdk.model.PolicyAndValidationResponse; +import com.fireblocks.sdk.model.PolicyRules; +import com.fireblocks.sdk.model.PublishDraftRequest; +import com.fireblocks.sdk.model.PublishResult; import java.util.concurrent.CompletableFuture; import org.junit.Ignore; import org.junit.Test; @@ -33,60 +33,50 @@ public class PolicyEditorBetaApiTest { /** * Get the active policy and its validation * - *

Legacy Endpoint – Returns the active policy and its validation. </br> **Note:** - - * This endpoint will remain available for the foreseeable future and is not - * deprecated.</br> - The `getActivePolicy` endpoint under policy/paths provides - * policy type-specific operations and improved functionality.</br> - These endpoints are - * currently in beta and might be subject to changes.</br> If you want to participate and - * learn more about the Fireblocks TAP, please contact your Fireblocks Customer Success Manager - * or send an email to CSM@fireblocks.com. + *

Returns the active policy and its validation. </br> **Note:** These endpoints are + * currently in beta and might be subject to changes. If you want to participate and learn more + * about the Fireblocks TAP, please contact your Fireblocks Customer Success Manager or send an + * email to CSM@fireblocks.com. * * @throws ApiException if the Api call fails */ @Test - public void getActivePolicyLegacyTest() throws ApiException { - CompletableFuture> response = - api.getActivePolicyLegacy(); + public void getActivePolicyTest() throws ApiException { + CompletableFuture> response = + api.getActivePolicy(); } /** * Get the active draft * - *

Legacy Endpoint – Returns the active draft and its validation. </br> **Note:** - - * This endpoint will remain available for the foreseeable future and is not - * deprecated.</br> - The `getDraft` endpoint under policy/paths provides policy - * type-specific operations and improved functionality.</br> - These endpoints are - * currently in beta and might be subject to changes.</br> If you want to participate and - * learn more about the Fireblocks TAP, please contact your Fireblocks Customer Success Manager - * or send an email to CSM@fireblocks.com. + *

Returns the active draft and its validation. </br> **Note:** These endpoints are + * currently in beta and might be subject to changes. If you want to participate and learn more + * about the Fireblocks TAP, please contact your Fireblocks Customer Success Manager or send an + * email to CSM@fireblocks.com. * * @throws ApiException if the Api call fails */ @Test - public void getDraftLegacyTest() throws ApiException { - CompletableFuture> response = - api.getDraftLegacy(); + public void getDraftTest() throws ApiException { + CompletableFuture> response = api.getDraft(); } /** * Send publish request for a certain draft id * - *

Legacy Endpoint – Send publish request of certain draft id and returns the response. - * </br> **Note:** - This endpoint will remain available for the foreseeable future and is - * not deprecated.</br> - The `publishDraft` endpoint under policy/paths - * provides improved functionality and better performance.</br> - These endpoints are - * currently in beta and might be subject to changes.</br> If you want to participate and - * learn more about the Fireblocks TAP, please contact your Fireblocks Customer Success Manager - * or send an email to CSM@fireblocks.com. + *

Send publish request of certain draft id and returns the response. </br> **Note:** + * These endpoints are currently in beta and might be subject to changes. If you want to + * participate and learn more about the Fireblocks TAP, please contact your Fireblocks Customer + * Success Manager or send an email to CSM@fireblocks.com. * * @throws ApiException if the Api call fails */ @Test - public void publishDraftLegacyTest() throws ApiException { - LegacyPublishDraftRequest legacyPublishDraftRequest = null; + public void publishDraftTest() throws ApiException { + PublishDraftRequest publishDraftRequest = null; String idempotencyKey = null; - CompletableFuture> response = - api.publishDraftLegacy(legacyPublishDraftRequest, idempotencyKey); + CompletableFuture> response = + api.publishDraft(publishDraftRequest, idempotencyKey); } /** @@ -101,30 +91,27 @@ public void publishDraftLegacyTest() throws ApiException { */ @Test public void publishPolicyRulesTest() throws ApiException { - LegacyPolicyRules legacyPolicyRules = null; + PolicyRules policyRules = null; String idempotencyKey = null; - CompletableFuture> response = - api.publishPolicyRules(legacyPolicyRules, idempotencyKey); + CompletableFuture> response = + api.publishPolicyRules(policyRules, idempotencyKey); } /** * Update the draft with a new set of rules * - *

Legacy Endpoint – Update the draft and return its validation. </br> **Note:** - This - * endpoint will remain available for the foreseeable future and is not deprecated.</br> - - * The `updateDraft` endpoint under policy/paths provides policy type-specific - * operations and improved functionality.</br> - These endpoints are currently in beta and - * might be subject to changes.</br> If you want to participate and learn more about the - * Fireblocks TAP, please contact your Fireblocks Customer Success Manager or send an email to - * CSM@fireblocks.com. + *

Update the draft and return its validation. </br> **Note:** These endpoints are + * currently in beta and might be subject to changes. If you want to participate and learn more + * about the Fireblocks TAP, please contact your Fireblocks Customer Success Manager or send an + * email to CSM@fireblocks.com. * * @throws ApiException if the Api call fails */ @Test - public void updateDraftLegacyTest() throws ApiException { - LegacyPolicyRules legacyPolicyRules = null; + public void updateDraftTest() throws ApiException { + PolicyRules policyRules = null; String idempotencyKey = null; - CompletableFuture> response = - api.updateDraftLegacy(legacyPolicyRules, idempotencyKey); + CompletableFuture> response = + api.updateDraft(policyRules, idempotencyKey); } } diff --git a/src/test/java/com/fireblocks/sdk/api/PolicyEditorV2BetaApiTest.java b/src/test/java/com/fireblocks/sdk/api/PolicyEditorV2BetaApiTest.java deleted file mode 100644 index fcd7d7a3..00000000 --- a/src/test/java/com/fireblocks/sdk/api/PolicyEditorV2BetaApiTest.java +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.api; - - -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.model.DraftReviewAndValidationResponse; -import com.fireblocks.sdk.model.PolicyAndValidationResponse; -import com.fireblocks.sdk.model.PolicyType; -import com.fireblocks.sdk.model.PublishDraftRequest; -import com.fireblocks.sdk.model.PublishResult; -import com.fireblocks.sdk.model.UpdateDraftRequest; -import java.util.concurrent.CompletableFuture; -import org.junit.Ignore; -import org.junit.Test; - -/** API tests for PolicyEditorV2BetaApi */ -@Ignore -public class PolicyEditorV2BetaApiTest { - - private final PolicyEditorV2BetaApi api = new PolicyEditorV2BetaApi(); - - /** - * Get the active policy and its validation by policy type - * - *

Returns the active policy and its validation for a specific policy type. </br> - * **Note:** These endpoints are currently in beta and might be subject to changes. - * - * @throws ApiException if the Api call fails - */ - @Test - public void getActivePolicyTest() throws ApiException { - PolicyType policyType = null; - CompletableFuture> response = - api.getActivePolicy(policyType); - } - - /** - * Get the active draft by policy type - * - *

Returns the active draft and its validation for a specific policy type. </br> - * **Note:** These endpoints are currently in beta and might be subject to changes. - * - * @throws ApiException if the Api call fails - */ - @Test - public void getDraftTest() throws ApiException { - PolicyType policyType = null; - CompletableFuture> response = - api.getDraft(policyType); - } - - /** - * Send publish request for a certain draft id - * - *

Send publish request of certain draft id and returns the response. </br> **Note:** - * These endpoints are currently in beta and might be subject to changes. If you want to - * participate and learn more about the Fireblocks Policy Editor, please contact your Fireblocks - * Customer Success Manager or send an email to CSM@fireblocks.com. - * - * @throws ApiException if the Api call fails - */ - @Test - public void publishDraftTest() throws ApiException { - PublishDraftRequest publishDraftRequest = null; - String idempotencyKey = null; - CompletableFuture> response = - api.publishDraft(publishDraftRequest, idempotencyKey); - } - - /** - * Update the draft with a new set of rules by policy types - * - *

Update the draft and return its validation for specific policy types. </br> - * **Note:** These endpoints are currently in beta and might be subject to changes. - * - * @throws ApiException if the Api call fails - */ - @Test - public void updateDraftTest() throws ApiException { - UpdateDraftRequest updateDraftRequest = null; - String idempotencyKey = null; - CompletableFuture> response = - api.updateDraft(updateDraftRequest, idempotencyKey); - } -} diff --git a/src/test/java/com/fireblocks/sdk/api/SmartTransferApiTest.java b/src/test/java/com/fireblocks/sdk/api/SmartTransferApiTest.java index 4b0ea8e6..49b70a11 100644 --- a/src/test/java/com/fireblocks/sdk/api/SmartTransferApiTest.java +++ b/src/test/java/com/fireblocks/sdk/api/SmartTransferApiTest.java @@ -15,16 +15,13 @@ import com.fireblocks.sdk.ApiException; import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.model.SmartTransferApproveTerm; import com.fireblocks.sdk.model.SmartTransferCreateTicket; import com.fireblocks.sdk.model.SmartTransferCreateTicketTerm; -import com.fireblocks.sdk.model.SmartTransferFundDvpTicket; import com.fireblocks.sdk.model.SmartTransferFundTerm; import com.fireblocks.sdk.model.SmartTransferManuallyFundTerm; import com.fireblocks.sdk.model.SmartTransferSetTicketExpiration; import com.fireblocks.sdk.model.SmartTransferSetTicketExternalId; import com.fireblocks.sdk.model.SmartTransferSetUserGroups; -import com.fireblocks.sdk.model.SmartTransferStatistic; import com.fireblocks.sdk.model.SmartTransferSubmitTicket; import com.fireblocks.sdk.model.SmartTransferTicketFilteredResponse; import com.fireblocks.sdk.model.SmartTransferTicketResponse; @@ -44,25 +41,6 @@ public class SmartTransferApiTest { private final SmartTransferApi api = new SmartTransferApi(); - /** - * Define funding source and give approve to contract to transfer asset - * - *

Set funding source for ticket term and creating approving transaction for contract to - * transfer asset - * - * @throws ApiException if the Api call fails - */ - @Test - public void approveDvPTicketTermTest() throws ApiException { - SmartTransferApproveTerm smartTransferApproveTerm = null; - String ticketId = null; - String termId = null; - String idempotencyKey = null; - CompletableFuture> response = - api.approveDvPTicketTerm( - smartTransferApproveTerm, ticketId, termId, idempotencyKey); - } - /** * Cancel Ticket * @@ -153,22 +131,6 @@ public void fulfillTicketTest() throws ApiException { api.fulfillTicket(ticketId, idempotencyKey); } - /** - * Fund dvp ticket - * - *

Create or fulfill dvp ticket order - * - * @throws ApiException if the Api call fails - */ - @Test - public void fundDvpTicketTest() throws ApiException { - SmartTransferFundDvpTicket smartTransferFundDvpTicket = null; - String ticketId = null; - String idempotencyKey = null; - CompletableFuture> response = - api.fundDvpTicket(smartTransferFundDvpTicket, ticketId, idempotencyKey); - } - /** * Define funding source * @@ -187,19 +149,6 @@ public void fundTicketTermTest() throws ApiException { api.fundTicketTerm(smartTransferFundTerm, ticketId, termId, idempotencyKey); } - /** - * Get smart transfers statistic - * - *

Get smart transfer statistic - * - * @throws ApiException if the Api call fails - */ - @Test - public void getSmartTransferStatisticTest() throws ApiException { - CompletableFuture> response = - api.getSmartTransferStatistic(); - } - /** * Get user group * diff --git a/src/test/java/com/fireblocks/sdk/api/StakingApiTest.java b/src/test/java/com/fireblocks/sdk/api/StakingApiTest.java deleted file mode 100644 index 29c6999b..00000000 --- a/src/test/java/com/fireblocks/sdk/api/StakingApiTest.java +++ /dev/null @@ -1,256 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.api; - - -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.model.ChainDescriptor; -import com.fireblocks.sdk.model.ChainInfoResponse; -import com.fireblocks.sdk.model.ClaimRewardsRequest; -import com.fireblocks.sdk.model.Delegation; -import com.fireblocks.sdk.model.DelegationSummary; -import com.fireblocks.sdk.model.MergeStakeAccountsRequest; -import com.fireblocks.sdk.model.MergeStakeAccountsResponse; -import com.fireblocks.sdk.model.Provider; -import com.fireblocks.sdk.model.SplitRequest; -import com.fireblocks.sdk.model.SplitResponse; -import com.fireblocks.sdk.model.StakeRequest; -import com.fireblocks.sdk.model.StakeResponse; -import com.fireblocks.sdk.model.StakingProvider; -import com.fireblocks.sdk.model.UnstakeRequest; -import com.fireblocks.sdk.model.WithdrawRequest; -import java.util.List; -import java.util.Map; -import java.util.concurrent.CompletableFuture; -import org.junit.Ignore; -import org.junit.Test; - -/** API tests for StakingApi */ -@Ignore -public class StakingApiTest { - - private final StakingApi api = new StakingApi(); - - /** - * Approve staking terms of service - * - *

Approve the terms of service of the staking provider. This must be called before - * performing a staking action for the first time with this provider. - * - * @throws ApiException if the Api call fails - */ - @Test - public void approveTermsOfServiceByProviderIdTest() throws ApiException { - StakingProvider providerId = null; - String idempotencyKey = null; - - CompletableFuture> response = - api.approveTermsOfServiceByProviderId(providerId, idempotencyKey); - } - - /** - * Execute a Claim Rewards operation - * - *

Perform a chain-specific Claim Rewards. - * - * @throws ApiException if the Api call fails - */ - @Test - public void claimRewardsTest() throws ApiException { - ClaimRewardsRequest claimRewardsRequest = null; - String chainDescriptor = null; - String idempotencyKey = null; - - CompletableFuture> response = - api.claimRewards(claimRewardsRequest, chainDescriptor, idempotencyKey); - } - - /** - * List staking positions details - * - *

Return detailed information on all staking positions, including the staked amount, - * rewards, status and more. - * - * @throws ApiException if the Api call fails - */ - @Test - public void getAllDelegationsTest() throws ApiException { - ChainDescriptor chainDescriptor = null; - CompletableFuture>> response = - api.getAllDelegations(chainDescriptor); - } - - /** - * Get chain-specific staking summary - * - *

Return chain-specific, staking-related information summary (e.g. epoch details, lockup - * durations, estimated rewards, etc.) - * - * @throws ApiException if the Api call fails - */ - @Test - public void getChainInfoTest() throws ApiException { - ChainDescriptor chainDescriptor = null; - CompletableFuture> response = - api.getChainInfo(chainDescriptor); - } - - /** - * List staking supported chains - * - *

Return an alphabetical list of supported chains. - * - * @throws ApiException if the Api call fails - */ - @Test - public void getChainsTest() throws ApiException { - CompletableFuture>> response = api.getChains(); - } - - /** - * Get staking position details - * - *

Return detailed information on a staking position, including the staked amount, rewards, - * status and more. - * - * @throws ApiException if the Api call fails - */ - @Test - public void getDelegationByIdTest() throws ApiException { - String id = null; - CompletableFuture> response = api.getDelegationById(id); - } - - /** - * List staking providers details - * - *

Return information on all the available staking providers. - * - * @throws ApiException if the Api call fails - */ - @Test - public void getProvidersTest() throws ApiException { - CompletableFuture>> response = api.getProviders(); - } - - /** - * Get staking summary details - * - *

Return a summary of all vaults, categorized by their status (active, inactive), the total - * amounts staked and total rewards per-chain. - * - * @throws ApiException if the Api call fails - */ - @Test - public void getSummaryTest() throws ApiException { - CompletableFuture> response = api.getSummary(); - } - - /** - * Get staking summary details by vault - * - *

Return a summary for each vault, categorized by their status (active, inactive), the total - * amounts staked and total rewards per-chain. - * - * @throws ApiException if the Api call fails - */ - @Test - public void getSummaryByVaultTest() throws ApiException { - CompletableFuture>> response = - api.getSummaryByVault(); - } - - /** - * Merge Solana on stake accounts - * - *

Perform a Solana Merge of two active stake accounts into one. Endpoint Permission: Owner, - * Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. - * - * @throws ApiException if the Api call fails - */ - @Test - public void mergeStakeAccountsTest() throws ApiException { - MergeStakeAccountsRequest mergeStakeAccountsRequest = null; - String chainDescriptor = null; - String idempotencyKey = null; - CompletableFuture> response = - api.mergeStakeAccounts(mergeStakeAccountsRequest, chainDescriptor, idempotencyKey); - } - - /** - * Execute a Split operation on SOL/SOL_TEST stake account - * - *

Perform a Solana Split stake account. - * - * @throws ApiException if the Api call fails - */ - @Test - public void splitTest() throws ApiException { - SplitRequest splitRequest = null; - String chainDescriptor = null; - String idempotencyKey = null; - CompletableFuture> response = - api.split(splitRequest, chainDescriptor, idempotencyKey); - } - - /** - * Initiate Stake Operation - * - *

Perform a chain-specific Stake. - * - * @throws ApiException if the Api call fails - */ - @Test - public void stakeTest() throws ApiException { - StakeRequest stakeRequest = null; - ChainDescriptor chainDescriptor = null; - String idempotencyKey = null; - CompletableFuture> response = - api.stake(stakeRequest, chainDescriptor, idempotencyKey); - } - - /** - * Execute an Unstake operation - * - *

Execute an Unstake operation - * - * @throws ApiException if the Api call fails - */ - @Test - public void unstakeTest() throws ApiException { - UnstakeRequest unstakeRequest = null; - ChainDescriptor chainDescriptor = null; - String idempotencyKey = null; - - CompletableFuture> response = - api.unstake(unstakeRequest, chainDescriptor, idempotencyKey); - } - - /** - * Execute a Withdraw operation - * - *

Perform a chain-specific Withdraw. - * - * @throws ApiException if the Api call fails - */ - @Test - public void withdrawTest() throws ApiException { - WithdrawRequest withdrawRequest = null; - ChainDescriptor chainDescriptor = null; - String idempotencyKey = null; - - CompletableFuture> response = - api.withdraw(withdrawRequest, chainDescriptor, idempotencyKey); - } -} diff --git a/src/test/java/com/fireblocks/sdk/api/StakingBetaApiTest.java b/src/test/java/com/fireblocks/sdk/api/StakingBetaApiTest.java new file mode 100644 index 00000000..c25f7bc4 --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/api/StakingBetaApiTest.java @@ -0,0 +1,145 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.fireblocks.sdk.api; + + +import com.fireblocks.sdk.ApiException; +import com.fireblocks.sdk.ApiResponse; +import com.fireblocks.sdk.model.ChainInfoResponseDto; +import com.fireblocks.sdk.model.DelegationDto; +import com.fireblocks.sdk.model.DelegationSummaryDto; +import com.fireblocks.sdk.model.ExecuteActionRequest; +import com.fireblocks.sdk.model.ExecuteActionResponse; +import com.fireblocks.sdk.model.ProviderDto; +import java.util.List; +import java.util.Map; +import java.util.concurrent.CompletableFuture; +import org.junit.Ignore; +import org.junit.Test; + +/** API tests for StakingBetaApi */ +@Ignore +public class StakingBetaApiTest { + + private final StakingBetaApi api = new StakingBetaApi(); + + /** + * Approve the terms of service of the staking provider. This must be called before performing a + * staking action for the first time with this provider. + * + * @throws ApiException if the Api call fails + */ + @Test + public void approveTermsOfServiceByProviderIdTest() throws ApiException { + String providerId = null; + String idempotencyKey = null; + CompletableFuture> response = + api.approveTermsOfServiceByProviderId(providerId, idempotencyKey); + } + + /** + * Perform a chain-specific staking action (e.g. stake, unstake, withdraw). + * + * @throws ApiException if the Api call fails + */ + @Test + public void executeActionTest() throws ApiException { + ExecuteActionRequest executeActionRequest = null; + String chainDescriptor = null; + String actionId = null; + String idempotencyKey = null; + CompletableFuture> response = + api.executeAction(executeActionRequest, chainDescriptor, actionId, idempotencyKey); + } + + /** + * Return detailed information on all staking positions, including the staked amount, rewards, + * status and more. + * + * @throws ApiException if the Api call fails + */ + @Test + public void getAllDelegationsTest() throws ApiException { + String chainDescriptor = null; + CompletableFuture>> response = + api.getAllDelegations(chainDescriptor); + } + + /** + * Return chain-specific, staking-related information summary (e.g. epoch details, lockup + * durations, estimated rewards, etc.) + * + * @throws ApiException if the Api call fails + */ + @Test + public void getChainInfoTest() throws ApiException { + String chainDescriptor = null; + CompletableFuture> response = + api.getChainInfo(chainDescriptor); + } + + /** + * Return an alphabetical list of supported chains. + * + * @throws ApiException if the Api call fails + */ + @Test + public void getChainsTest() throws ApiException { + CompletableFuture>> response = api.getChains(); + } + + /** + * Return detailed information on a staking position, including the staked amount, rewards, + * status and more. + * + * @throws ApiException if the Api call fails + */ + @Test + public void getDelegationByIdTest() throws ApiException { + String id = null; + CompletableFuture> response = api.getDelegationById(id); + } + + /** + * Return information on all the available staking providers. + * + * @throws ApiException if the Api call fails + */ + @Test + public void getProvidersTest() throws ApiException { + CompletableFuture>> response = api.getProviders(); + } + + /** + * Return a summary of all vaults, categorized by their status (active, inactive), the total + * amounts staked and total rewards per-chain. + * + * @throws ApiException if the Api call fails + */ + @Test + public void getSummaryTest() throws ApiException { + CompletableFuture> response = api.getSummary(); + } + + /** + * Return a summary for each vault, categorized by their status (active, inactive), the total + * amounts staked and total rewards per-chain. + * + * @throws ApiException if the Api call fails + */ + @Test + public void getSummaryByVaultTest() throws ApiException { + CompletableFuture>> response = + api.getSummaryByVault(); + } +} diff --git a/src/test/java/com/fireblocks/sdk/api/TagsApiTest.java b/src/test/java/com/fireblocks/sdk/api/TagsApiTest.java deleted file mode 100644 index fa1f96b2..00000000 --- a/src/test/java/com/fireblocks/sdk/api/TagsApiTest.java +++ /dev/null @@ -1,109 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.api; - - -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.model.CreateTagRequest; -import com.fireblocks.sdk.model.Tag; -import com.fireblocks.sdk.model.TagsPagedResponse; -import com.fireblocks.sdk.model.UpdateTagRequest; -import java.math.BigDecimal; -import java.util.List; -import java.util.UUID; -import java.util.concurrent.CompletableFuture; -import org.junit.Ignore; -import org.junit.Test; - -/** API tests for TagsApi */ -@Ignore -public class TagsApiTest { - - private final TagsApi api = new TagsApi(); - - /** - * Create a tag - * - *

Create a new tag. - * - * @throws ApiException if the Api call fails - */ - @Test - public void createTagTest() throws ApiException { - CreateTagRequest createTagRequest = null; - String idempotencyKey = null; - CompletableFuture> response = - api.createTag(createTagRequest, idempotencyKey); - } - - /** - * Delete a tag - * - *

Delete the specified tag. - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteTagTest() throws ApiException { - UUID tagId = null; - - CompletableFuture> response = api.deleteTag(tagId); - } - - /** - * Get a tag - * - *

Retrieve an existing tag by ID. - * - * @throws ApiException if the Api call fails - */ - @Test - public void getTagTest() throws ApiException { - UUID tagId = null; - CompletableFuture> response = api.getTag(tagId); - } - - /** - * Get list of tags - * - *

Retrieve a paged list of all tags according to filters. - * - * @throws ApiException if the Api call fails - */ - @Test - public void getTagsTest() throws ApiException { - String pageCursor = null; - BigDecimal pageSize = null; - String label = null; - List tagIds = null; - CompletableFuture> response = - api.getTags(pageCursor, pageSize, label, tagIds); - } - - /** - * Update a tag - * - *

Update an existing specified tag. - * - * @throws ApiException if the Api call fails - */ - @Test - public void updateTagTest() throws ApiException { - UpdateTagRequest updateTagRequest = null; - UUID tagId = null; - String idempotencyKey = null; - CompletableFuture> response = - api.updateTag(updateTagRequest, tagId, idempotencyKey); - } -} diff --git a/src/test/java/com/fireblocks/sdk/api/TokenizationApiTest.java b/src/test/java/com/fireblocks/sdk/api/TokenizationApiTest.java index 3e26e611..6c475911 100644 --- a/src/test/java/com/fireblocks/sdk/api/TokenizationApiTest.java +++ b/src/test/java/com/fireblocks/sdk/api/TokenizationApiTest.java @@ -15,37 +15,11 @@ import com.fireblocks.sdk.ApiException; import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.model.AdapterProcessingResult; -import com.fireblocks.sdk.model.CollectionBurnRequestDto; -import com.fireblocks.sdk.model.CollectionBurnResponseDto; -import com.fireblocks.sdk.model.CollectionDeployRequestDto; -import com.fireblocks.sdk.model.CollectionLinkDto; -import com.fireblocks.sdk.model.CollectionMintRequestDto; -import com.fireblocks.sdk.model.CollectionMintResponseDto; -import com.fireblocks.sdk.model.CreateMultichainTokenRequest; import com.fireblocks.sdk.model.CreateTokenRequestDto; -import com.fireblocks.sdk.model.DeployLayerZeroAdaptersRequest; -import com.fireblocks.sdk.model.DeployableAddressResponse; -import com.fireblocks.sdk.model.GetDeployableAddressRequest; -import com.fireblocks.sdk.model.GetLayerZeroDvnConfigResponse; -import com.fireblocks.sdk.model.GetLayerZeroPeersResponse; -import com.fireblocks.sdk.model.GetLinkedCollectionsPaginatedResponse; -import com.fireblocks.sdk.model.ReissueMultichainTokenRequest; -import com.fireblocks.sdk.model.RemoveLayerZeroAdaptersRequest; -import com.fireblocks.sdk.model.RemoveLayerZeroAdaptersResponse; -import com.fireblocks.sdk.model.RemoveLayerZeroPeersRequest; -import com.fireblocks.sdk.model.RemoveLayerZeroPeersResponse; -import com.fireblocks.sdk.model.SetLayerZeroDvnConfigRequest; -import com.fireblocks.sdk.model.SetLayerZeroDvnConfigResponse; -import com.fireblocks.sdk.model.SetLayerZeroPeersRequest; -import com.fireblocks.sdk.model.SetLayerZeroPeersResponse; import com.fireblocks.sdk.model.TokenLinkDto; import com.fireblocks.sdk.model.TokenLinkRequestDto; import com.fireblocks.sdk.model.TokensPaginatedResponse; -import com.fireblocks.sdk.model.ValidateLayerZeroChannelResponse; import java.math.BigDecimal; -import java.util.List; -import java.util.UUID; import java.util.concurrent.CompletableFuture; import org.junit.Ignore; import org.junit.Test; @@ -56,161 +30,6 @@ public class TokenizationApiTest { private final TokenizationApi api = new TokenizationApi(); - /** - * Burn tokens - * - *

Burn tokens in a collection - * - * @throws ApiException if the Api call fails - */ - @Test - public void burnCollectionTokenTest() throws ApiException { - CollectionBurnRequestDto collectionBurnRequestDto = null; - String id = null; - String idempotencyKey = null; - CompletableFuture> response = - api.burnCollectionToken(collectionBurnRequestDto, id, idempotencyKey); - } - - /** - * Create a new collection - * - *

Create a new collection and link it as a token - * - * @throws ApiException if the Api call fails - */ - @Test - public void createNewCollectionTest() throws ApiException { - CollectionDeployRequestDto collectionDeployRequestDto = null; - String idempotencyKey = null; - CompletableFuture> response = - api.createNewCollection(collectionDeployRequestDto, idempotencyKey); - } - - /** - * Remove LayerZero adapters - * - *

Remove LayerZero adapters by deactivating and unlinking them. This endpoint revokes roles - * and deactivates the specified adapter contracts. - * - * @throws ApiException if the Api call fails - */ - @Test - public void deactivateAndUnlinkAdaptersTest() throws ApiException { - RemoveLayerZeroAdaptersRequest removeLayerZeroAdaptersRequest = null; - String idempotencyKey = null; - CompletableFuture> response = - api.deactivateAndUnlinkAdapters(removeLayerZeroAdaptersRequest, idempotencyKey); - } - - /** - * Deploy LayerZero adapters - * - *

Deploy LayerZero adapters for multichain token bridging functionality. This endpoint - * creates adapter contracts that enable cross-chain token transfers. - * - * @throws ApiException if the Api call fails - */ - @Test - public void deployAndLinkAdaptersTest() throws ApiException { - DeployLayerZeroAdaptersRequest deployLayerZeroAdaptersRequest = null; - String idempotencyKey = null; - CompletableFuture>> response = - api.deployAndLinkAdapters(deployLayerZeroAdaptersRequest, idempotencyKey); - } - - /** - * Get collection token details - * - *

Get collection token details by id - * - * @throws ApiException if the Api call fails - */ - @Test - public void fetchCollectionTokenDetailsTest() throws ApiException { - String id = null; - String tokenId = null; - CompletableFuture> response = - api.fetchCollectionTokenDetails(id, tokenId); - } - - /** - * Get a collection by id - * - *

Get a collection by id - * - * @throws ApiException if the Api call fails - */ - @Test - public void getCollectionByIdTest() throws ApiException { - String id = null; - CompletableFuture> response = api.getCollectionById(id); - } - - /** - * Get deterministic address for contract deployment - * - *

Get a deterministic address for contract deployment. The address is derived from the - * contract's bytecode and provided salt. This endpoint is used to get the address of a - * contract that will be deployed in the future. - * - * @throws ApiException if the Api call fails - */ - @Test - public void getDeployableAddressTest() throws ApiException { - GetDeployableAddressRequest getDeployableAddressRequest = null; - String idempotencyKey = null; - CompletableFuture> response = - api.getDeployableAddress(getDeployableAddressRequest, idempotencyKey); - } - - /** - * Get LayerZero DVN configuration - * - *

Retrieve the DVN (Data Verification Network) configuration for a specific adapter. Returns - * DVN configurations for channels between the source adapter and its peers. - * - * @throws ApiException if the Api call fails - */ - @Test - public void getLayerZeroDvnConfigTest() throws ApiException { - UUID adapterTokenLinkId = null; - UUID peerAdapterTokenLinkId = null; - CompletableFuture> response = - api.getLayerZeroDvnConfig(adapterTokenLinkId, peerAdapterTokenLinkId); - } - - /** - * Get LayerZero peers - * - *

Retrieve the LayerZero peers configured for a specific adapter. Returns information about - * peer relationships for cross-chain communication. - * - * @throws ApiException if the Api call fails - */ - @Test - public void getLayerZeroPeersTest() throws ApiException { - UUID adapterTokenLinkId = null; - CompletableFuture> response = - api.getLayerZeroPeers(adapterTokenLinkId); - } - - /** - * Get collections - * - *

Get collections (paginated) - * - * @throws ApiException if the Api call fails - */ - @Test - public void getLinkedCollectionsTest() throws ApiException { - String pageCursor = null; - BigDecimal pageSize = null; - Object status = null; - CompletableFuture> response = - api.getLinkedCollections(pageCursor, pageSize, status); - } - /** * Return a linked token * @@ -261,24 +80,11 @@ public void issueNewTokenTest() throws ApiException { } /** - * Issue a token on one or more blockchains + * Link a token * - *

Facilitates the creation of a new token on one or more blockchains. - * - * @throws ApiException if the Api call fails - */ - @Test - public void issueTokenMultiChainTest() throws ApiException { - CreateMultichainTokenRequest createMultichainTokenRequest = null; - String idempotencyKey = null; - CompletableFuture>> response = - api.issueTokenMultiChain(createMultichainTokenRequest, idempotencyKey); - } - - /** - * Link a contract - * - *

Link an a contract + *

Link an already existing token (by assetId, collectionId or contractId as refId) to a + * workspace across EVM, Stellar, or Ripple platforms. The token will be linked to the workspace + * if it does not already exist. * * @throws ApiException if the Api call fails */ @@ -290,90 +96,6 @@ public void linkTest() throws ApiException { api.link(tokenLinkRequestDto, idempotencyKey); } - /** - * Mint tokens - * - *

Mint tokens and upload metadata - * - * @throws ApiException if the Api call fails - */ - @Test - public void mintCollectionTokenTest() throws ApiException { - CollectionMintRequestDto collectionMintRequestDto = null; - String id = null; - String idempotencyKey = null; - CompletableFuture> response = - api.mintCollectionToken(collectionMintRequestDto, id, idempotencyKey); - } - - /** - * Reissue a multichain token - * - *

Reissue a multichain token. This endpoint allows you to reissue a token on one or more - * blockchains. The token must be initially issued using the issueTokenMultiChain endpoint. - * - * @throws ApiException if the Api call fails - */ - @Test - public void reIssueTokenMultiChainTest() throws ApiException { - ReissueMultichainTokenRequest reissueMultichainTokenRequest = null; - String tokenLinkId = null; - String idempotencyKey = null; - CompletableFuture>> response = - api.reIssueTokenMultiChain( - reissueMultichainTokenRequest, tokenLinkId, idempotencyKey); - } - - /** - * Remove LayerZero peers - * - *

Remove LayerZero peers to disconnect adapter contracts. This endpoint removes peer - * relationships between LayerZero adapters. - * - * @throws ApiException if the Api call fails - */ - @Test - public void removeLayerZeroPeersTest() throws ApiException { - RemoveLayerZeroPeersRequest removeLayerZeroPeersRequest = null; - String idempotencyKey = null; - CompletableFuture> response = - api.removeLayerZeroPeers(removeLayerZeroPeersRequest, idempotencyKey); - } - - /** - * Set LayerZero DVN configuration - * - *

Configure DVN settings for LayerZero adapters. This endpoint sets up the DVN configuration - * for message verification between source and destination adapters. - * - * @throws ApiException if the Api call fails - */ - @Test - public void setLayerZeroDvnConfigTest() throws ApiException { - SetLayerZeroDvnConfigRequest setLayerZeroDvnConfigRequest = null; - String idempotencyKey = null; - CompletableFuture> response = - api.setLayerZeroDvnConfig(setLayerZeroDvnConfigRequest, idempotencyKey); - } - - /** - * Set LayerZero peers - * - *

Set LayerZero peers to establish connections between adapter contracts. This endpoint - * creates peer relationships that enable cross-chain communication. It sets the destination - * adapter as a peer of the source adapter. If `bidirectional` is true, it also sets - * the source adapter as a peer of the destination adapter(s). - * - * @throws ApiException if the Api call fails - */ - @Test - public void setLayerZeroPeersTest() throws ApiException { - SetLayerZeroPeersRequest setLayerZeroPeersRequest = null; - String idempotencyKey = null; - CompletableFuture> response = - api.setLayerZeroPeers(setLayerZeroPeersRequest, idempotencyKey); - } - /** * Unlink a token * @@ -388,34 +110,4 @@ public void unlinkTest() throws ApiException { CompletableFuture> response = api.unlink(id); } - - /** - * Delete a collection link - * - *

Delete a collection link - * - * @throws ApiException if the Api call fails - */ - @Test - public void unlinkCollectionTest() throws ApiException { - String id = null; - - CompletableFuture> response = api.unlinkCollection(id); - } - - /** - * Validate LayerZero channel configuration - * - *

Validate the LayerZero channel configuration between adapters. This endpoint checks if the - * channel configuration is correct and returns any validation errors. - * - * @throws ApiException if the Api call fails - */ - @Test - public void validateLayerZeroChannelConfigTest() throws ApiException { - UUID adapterTokenLinkId = null; - UUID peerAdapterTokenLinkId = null; - CompletableFuture> response = - api.validateLayerZeroChannelConfig(adapterTokenLinkId, peerAdapterTokenLinkId); - } } diff --git a/src/test/java/com/fireblocks/sdk/api/TradingBetaApiTest.java b/src/test/java/com/fireblocks/sdk/api/TradingBetaApiTest.java deleted file mode 100644 index 22bf0486..00000000 --- a/src/test/java/com/fireblocks/sdk/api/TradingBetaApiTest.java +++ /dev/null @@ -1,144 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.api; - - -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.model.CreateOrderRequest; -import com.fireblocks.sdk.model.CreateQuote; -import com.fireblocks.sdk.model.GetOrdersResponse; -import com.fireblocks.sdk.model.OrderDetails; -import com.fireblocks.sdk.model.OrderStatus; -import com.fireblocks.sdk.model.ProvidersListResponse; -import com.fireblocks.sdk.model.QuotesResponse; -import java.util.List; -import java.util.concurrent.CompletableFuture; -import org.junit.Ignore; -import org.junit.Test; - -/** API tests for TradingBetaApi */ -@Ignore -public class TradingBetaApiTest { - - private final TradingBetaApi api = new TradingBetaApi(); - - /** - * Create an order - * - *

Create an order to buy or sell an asset. If no source is given, an external source will be - * use. Note: These endpoints are currently in beta and might be subject to changes. If you want - * to participate and learn more about the Fireblocks Trading, please contact your Fireblocks - * Customer Success Manager or send an email to CSM@fireblocks.com. Endpoint Permission: Owner, - * Admin, Non-Signing Admin, Signer, Editor. - * - * @throws ApiException if the Api call fails - */ - @Test - public void createOrderTest() throws ApiException { - CreateOrderRequest createOrderRequest = null; - String idempotencyKey = null; - CompletableFuture> response = - api.createOrder(createOrderRequest, idempotencyKey); - } - - /** - * Create a quote - * - *

Generate a time-limited quote for asset conversion, providing exchange rate and amount - * calculations. Note: These endpoints are currently in beta and might be subject to changes. If - * you want to participate and learn more about the Fireblocks Trading, please contact your - * Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. Endpoint - * Permission: Owner, Admin, Non-Signing Admin, Signer, Editor. - * - * @throws ApiException if the Api call fails - */ - @Test - public void createQuoteTest() throws ApiException { - CreateQuote createQuote = null; - String idempotencyKey = null; - CompletableFuture> response = - api.createQuote(createQuote, idempotencyKey); - } - - /** - * Get order details - * - *

Retrieve detailed information about a specific order by its ID. Note:These endpoints are - * currently in beta and might be subject to changes. If you want to participate and learn more - * about the Fireblocks Trading, please contact your Fireblocks Customer Success Manager or send - * an email to CSM@fireblocks.com. Endpoint Permission: Owner, Admin, Non-Signing Admin, Signer, - * Approver, Editor, Viewer. - * - * @throws ApiException if the Api call fails - */ - @Test - public void getOrderTest() throws ApiException { - String orderId = null; - CompletableFuture> response = api.getOrder(orderId); - } - - /** - * Get orders - * - *

Retrieve a paginated list of orders with optional filtering by account, provider, status, - * and time range. Note:These endpoints are currently in beta and might be subject to changes. - * If you want to participate and learn more about the Fireblocks Trading, please contact your - * Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. Endpoint - * Permission: Owner, Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. - * - * @throws ApiException if the Api call fails - */ - @Test - public void getOrdersTest() throws ApiException { - Integer pageSize = null; - String pageCursor = null; - String order = null; - List accountId = null; - List providerId = null; - List statuses = null; - Integer startTime = null; - Integer endTime = null; - String assetConversionType = null; - CompletableFuture> response = - api.getOrders( - pageSize, - pageCursor, - order, - accountId, - providerId, - statuses, - startTime, - endTime, - assetConversionType); - } - - /** - * Get providers - * - *

Retrieve a list of all available external providers supporting trading activities through - * the platform. Note: These endpoints are currently in beta and might be subject to changes. If - * you want to participate and learn more about the Fireblocks Trading, please contact your - * Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. Endpoint - * Permission: Owner, Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. - * - * @throws ApiException if the Api call fails - */ - @Test - public void getTradingProvidersTest() throws ApiException { - Integer pageSize = null; - String pageCursor = null; - CompletableFuture> response = - api.getTradingProviders(pageSize, pageCursor); - } -} diff --git a/src/test/java/com/fireblocks/sdk/api/TransactionsApiTest.java b/src/test/java/com/fireblocks/sdk/api/TransactionsApiTest.java index 894b3fad..d516fa2d 100644 --- a/src/test/java/com/fireblocks/sdk/api/TransactionsApiTest.java +++ b/src/test/java/com/fireblocks/sdk/api/TransactionsApiTest.java @@ -22,14 +22,12 @@ import com.fireblocks.sdk.model.EstimatedNetworkFeeResponse; import com.fireblocks.sdk.model.EstimatedTransactionFeeResponse; import com.fireblocks.sdk.model.FreezeTransactionResponse; -import com.fireblocks.sdk.model.RescanTransaction; import com.fireblocks.sdk.model.SetConfirmationsThresholdRequest; import com.fireblocks.sdk.model.SetConfirmationsThresholdResponse; import com.fireblocks.sdk.model.TransactionRequest; import com.fireblocks.sdk.model.TransactionResponse; import com.fireblocks.sdk.model.UnfreezeTransactionResponse; import com.fireblocks.sdk.model.ValidateAddressResponse; -import com.fireblocks.sdk.model.ValidatedTransactionsForRescan; import java.util.List; import java.util.UUID; import java.util.concurrent.CompletableFuture; @@ -207,23 +205,6 @@ public void getTransactionsTest() throws ApiException { destWalletId); } - /** - * rescan array of transactions - * - *

rescan transaction by running an async job. </br> **Note**: - These endpoints are - * currently in beta and might be subject to changes. - We limit the amount of the transaction - * to 16 per request. - * - * @throws ApiException if the Api call fails - */ - @Test - public void rescanTransactionsBetaTest() throws ApiException { - List rescanTransaction = null; - String idempotencyKey = null; - CompletableFuture>> response = - api.rescanTransactionsBeta(rescanTransaction, idempotencyKey); - } - /** * Set confirmation threshold by transaction hash * diff --git a/src/test/java/com/fireblocks/sdk/api/TravelRuleApiTest.java b/src/test/java/com/fireblocks/sdk/api/TravelRuleApiTest.java deleted file mode 100644 index 3a334efe..00000000 --- a/src/test/java/com/fireblocks/sdk/api/TravelRuleApiTest.java +++ /dev/null @@ -1,133 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.api; - - -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.model.TravelRuleGetAllVASPsResponse; -import com.fireblocks.sdk.model.TravelRuleUpdateVASPDetails; -import com.fireblocks.sdk.model.TravelRuleVASP; -import com.fireblocks.sdk.model.TravelRuleValidateFullTransactionRequest; -import com.fireblocks.sdk.model.TravelRuleValidateTransactionResponse; -import com.fireblocks.sdk.model.TravelRuleVaspForVault; -import java.math.BigDecimal; -import java.util.List; -import java.util.concurrent.CompletableFuture; -import org.junit.Ignore; -import org.junit.Test; - -/** API tests for TravelRuleApi */ -@Ignore -public class TravelRuleApiTest { - - private final TravelRuleApi api = new TravelRuleApi(); - - /** - * Get VASP details - * - *

Get VASP Details. Returns information about a VASP that has the specified DID. - * - * @throws ApiException if the Api call fails - */ - @Test - public void getVASPByDIDTest() throws ApiException { - String did = null; - List fields = null; - CompletableFuture> response = api.getVASPByDID(did, fields); - } - - /** - * Get All VASPs - * - *

Get All VASPs. Returns a list of VASPs. VASPs can be searched and sorted. - * - * @throws ApiException if the Api call fails - */ - @Test - public void getVASPsTest() throws ApiException { - String order = null; - BigDecimal pageSize = null; - List fields = null; - String search = null; - String reviewValue = null; - String pageCursor = null; - CompletableFuture> response = - api.getVASPs(order, pageSize, fields, search, reviewValue, pageCursor); - } - - /** - * Get assigned VASP to vault - * - *

Get assigned VASP Did for a specific vault. Returns empty string vaspDid value in response - * if none assigned. - * - * @throws ApiException if the Api call fails - */ - @Test - public void getVaspForVaultTest() throws ApiException { - String vaultAccountId = null; - CompletableFuture> response = - api.getVaspForVault(vaultAccountId); - } - - /** - * Assign VASP to vault - * - *

Sets the VASP Did for a specific vault. Pass empty string to remove existing one. - * - * @throws ApiException if the Api call fails - */ - @Test - public void setVaspForVaultTest() throws ApiException { - TravelRuleVaspForVault travelRuleVaspForVault = null; - String vaultAccountId = null; - String idempotencyKey = null; - CompletableFuture> response = - api.setVaspForVault(travelRuleVaspForVault, vaultAccountId, idempotencyKey); - } - - /** - * Add jsonDidKey to VASP details - * - *

Update VASP Details. Updates a VASP with the provided parameters. Use this endpoint to add - * your public jsonDIDkey generated by Notabene. - * - * @throws ApiException if the Api call fails - */ - @Test - public void updateVaspTest() throws ApiException { - TravelRuleUpdateVASPDetails travelRuleUpdateVASPDetails = null; - String idempotencyKey = null; - CompletableFuture> response = - api.updateVasp(travelRuleUpdateVASPDetails, idempotencyKey); - } - - /** - * Validate Full Travel Rule Transaction - * - *

Validate Full Travel Rule transactions. Checks for all required information on the - * originator and beneficiary VASPs. - * - * @throws ApiException if the Api call fails - */ - @Test - public void validateFullTravelRuleTransactionTest() throws ApiException { - TravelRuleValidateFullTransactionRequest travelRuleValidateFullTransactionRequest = null; - List notation = null; - String idempotencyKey = null; - CompletableFuture> response = - api.validateFullTravelRuleTransaction( - travelRuleValidateFullTransactionRequest, notation, idempotencyKey); - } -} diff --git a/src/test/java/com/fireblocks/sdk/api/TravelRuleBetaApiTest.java b/src/test/java/com/fireblocks/sdk/api/TravelRuleBetaApiTest.java new file mode 100644 index 00000000..69bfbccb --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/api/TravelRuleBetaApiTest.java @@ -0,0 +1,135 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.fireblocks.sdk.api; + + +import com.fireblocks.sdk.ApiException; +import com.fireblocks.sdk.ApiResponse; +import com.fireblocks.sdk.model.TravelRuleGetAllVASPsResponse; +import com.fireblocks.sdk.model.TravelRuleUpdateVASPDetails; +import com.fireblocks.sdk.model.TravelRuleVASP; +import com.fireblocks.sdk.model.TravelRuleValidateFullTransactionRequest; +import com.fireblocks.sdk.model.TravelRuleValidateTransactionRequest; +import com.fireblocks.sdk.model.TravelRuleValidateTransactionResponse; +import java.math.BigDecimal; +import java.util.concurrent.CompletableFuture; +import org.junit.Ignore; +import org.junit.Test; + +/** API tests for TravelRuleBetaApi */ +@Ignore +public class TravelRuleBetaApiTest { + + private final TravelRuleBetaApi api = new TravelRuleBetaApi(); + + /** + * Get VASP details + * + *

Get VASP Details. Returns information about a VASP that has the specified DID. **Note:** + * The reference content in this section documents the Travel Rule beta endpoint. The beta + * endpoint includes APIs that are currently in preview and aren't yet generally available. + * To enroll in the beta and enable this endpoint, contact your Fireblocks Customer Success + * Manager or send an email to [CSM@fireblocks.com](mailto:CSM@fireblocks.com). + * + * @throws ApiException if the Api call fails + */ + @Test + public void getVASPByDIDTest() throws ApiException { + String did = null; + String fields = null; + CompletableFuture> response = api.getVASPByDID(did, fields); + } + + /** + * Get All VASPs + * + *

Get All VASPs. Returns a list of VASPs. VASPs can be searched and sorted and results are + * paginated. **Note:** The reference content in this section documents the Travel Rule beta + * endpoint. The beta endpoint includes APIs that are currently in preview and aren't yet + * generally available. To enroll in the beta and enable this endpoint, contact your Fireblocks + * Customer Success Manager or send an email to [CSM@fireblocks.com](mailto:CSM@fireblocks.com). + * + * @throws ApiException if the Api call fails + */ + @Test + public void getVASPsTest() throws ApiException { + String order = null; + BigDecimal perPage = null; + BigDecimal page = null; + String fields = null; + CompletableFuture> response = + api.getVASPs(order, perPage, page, fields); + } + + /** + * Add jsonDidKey to VASP details + * + *

Update VASP Details. Updates a VASP with the provided parameters. Use this endpoint to add + * your public jsonDIDkey generated by Notabene. **Note:** The reference content in this section + * documents the Travel Rule beta endpoint. The beta endpoint includes APIs that are currently + * in preview and aren't yet generally available. To enroll in the beta and enable this + * endpoint, contact your Fireblocks Customer Success Manager or send an email to + * [CSM@fireblocks.com](mailto:CSM@fireblocks.com). + * + * @throws ApiException if the Api call fails + */ + @Test + public void updateVaspTest() throws ApiException { + TravelRuleUpdateVASPDetails travelRuleUpdateVASPDetails = null; + String idempotencyKey = null; + CompletableFuture> response = + api.updateVasp(travelRuleUpdateVASPDetails, idempotencyKey); + } + + /** + * Validate Full Travel Rule Transaction + * + *

Validate Full Travel Rule transactions. Checks for all required information on the + * originator and beneficiary VASPs. **Note:** The reference content in this section documents + * the Travel Rule beta endpoint. The beta endpoint includes APIs that are currently in preview + * and aren't yet generally available. To enroll in the beta and enable this endpoint, + * contact your Fireblocks Customer Success Manager or send an email to + * [CSM@fireblocks.com](mailto:CSM@fireblocks.com). + * + * @throws ApiException if the Api call fails + */ + @Test + public void validateFullTravelRuleTransactionTest() throws ApiException { + TravelRuleValidateFullTransactionRequest travelRuleValidateFullTransactionRequest = null; + String idempotencyKey = null; + CompletableFuture> response = + api.validateFullTravelRuleTransaction( + travelRuleValidateFullTransactionRequest, idempotencyKey); + } + + /** + * Validate Travel Rule Transaction + * + *

Validate Travel Rule transactions. Checks what beneficiary VASP details are required by + * your jurisdiction and the beneficiary's jurisdiction. **Note:** The reference content in + * this section documents the Travel Rule beta endpoint. The beta endpoint includes APIs that + * are currently in preview and aren't yet generally available. To enroll in the beta and + * enable this endpoint, contact your Fireblocks Customer Success Manager or send an email to + * [CSM@fireblocks.com](mailto:CSM@fireblocks.com). + * + * @throws ApiException if the Api call fails + */ + @Test + public void validateTravelRuleTransactionTest() throws ApiException { + TravelRuleValidateTransactionRequest travelRuleValidateTransactionRequest = null; + String idempotencyKey = null; + CompletableFuture> response = + api.validateTravelRuleTransaction( + travelRuleValidateTransactionRequest, idempotencyKey); + } +} diff --git a/src/test/java/com/fireblocks/sdk/api/VaultsApiTest.java b/src/test/java/com/fireblocks/sdk/api/VaultsApiTest.java index de69cbc9..f3be3762 100644 --- a/src/test/java/com/fireblocks/sdk/api/VaultsApiTest.java +++ b/src/test/java/com/fireblocks/sdk/api/VaultsApiTest.java @@ -19,9 +19,6 @@ import com.fireblocks.sdk.model.CreateAddressResponse; import com.fireblocks.sdk.model.CreateAssetsRequest; import com.fireblocks.sdk.model.CreateMultipleAccountsRequest; -import com.fireblocks.sdk.model.CreateMultipleDepositAddressesJobStatus; -import com.fireblocks.sdk.model.CreateMultipleDepositAddressesRequest; -import com.fireblocks.sdk.model.CreateMultipleVaultAccountsJobStatus; import com.fireblocks.sdk.model.CreateVaultAccountRequest; import com.fireblocks.sdk.model.CreateVaultAssetResponse; import com.fireblocks.sdk.model.GetMaxSpendableAmountResponse; @@ -38,12 +35,10 @@ import com.fireblocks.sdk.model.UpdateVaultAccountRequest; import com.fireblocks.sdk.model.VaultAccount; import com.fireblocks.sdk.model.VaultAccountsPagedResponse; -import com.fireblocks.sdk.model.VaultAccountsTagAttachmentsRequest; import com.fireblocks.sdk.model.VaultActionStatus; import com.fireblocks.sdk.model.VaultAsset; import java.math.BigDecimal; import java.util.List; -import java.util.UUID; import java.util.concurrent.CompletableFuture; import org.junit.Ignore; import org.junit.Test; @@ -70,22 +65,6 @@ public void activateAssetForVaultAccountTest() throws ApiException { api.activateAssetForVaultAccount(vaultAccountId, assetId, idempotencyKey); } - /** - * Attach tags to a vault accounts - * - *

Attach one or more tags to the requested vault accounts. - * - * @throws ApiException if the Api call fails - */ - @Test - public void attachTagsToVaultAccountsTest() throws ApiException { - VaultAccountsTagAttachmentsRequest vaultAccountsTagAttachmentsRequest = null; - String idempotencyKey = null; - - CompletableFuture> response = - api.attachTagsToVaultAccounts(vaultAccountsTagAttachmentsRequest, idempotencyKey); - } - /** * Convert a segwit address to legacy format * @@ -108,8 +87,7 @@ public void createLegacyAddressTest() throws ApiException { * *

Create multiple vault accounts by running an async job. </br> **Note**: - These * endpoints are currently in beta and might be subject to changes. - We limit accounts to 10k - * per operation and 200k per customer during beta testing. Endpoint Permission: Admin, - * Non-Signing Admin, Signer, Approver, Editor. + * per operation and 200k per customer during beta testing. * * @throws ApiException if the Api call fails */ @@ -121,23 +99,6 @@ public void createMultipleAccountsTest() throws ApiException { api.createMultipleAccounts(createMultipleAccountsRequest, idempotencyKey); } - /** - * Bulk creation of new deposit addresses - * - *

Create multiple deposit address by running an async job. </br> **Note**: - We limit - * accounts to 10k per operation. Endpoint Permission: Admin, Non-Signing Admin. - * - * @throws ApiException if the Api call fails - */ - @Test - public void createMultipleDepositAddressesTest() throws ApiException { - CreateMultipleDepositAddressesRequest createMultipleDepositAddressesRequest = null; - String idempotencyKey = null; - CompletableFuture> response = - api.createMultipleDepositAddresses( - createMultipleDepositAddressesRequest, idempotencyKey); - } - /** * Create a new vault account * @@ -189,22 +150,6 @@ public void createVaultAccountAssetAddressTest() throws ApiException { vaultAccountId, assetId, createAddressRequest, idempotencyKey); } - /** - * Detach tags from a vault accounts - * - *

Detach one or more tags from the requested vault account. - * - * @throws ApiException if the Api call fails - */ - @Test - public void detachTagsFromVaultAccountsTest() throws ApiException { - VaultAccountsTagAttachmentsRequest vaultAccountsTagAttachmentsRequest = null; - String idempotencyKey = null; - - CompletableFuture> response = - api.detachTagsFromVaultAccounts(vaultAccountsTagAttachmentsRequest, idempotencyKey); - } - /** * List asset wallets (Paginated) * @@ -225,36 +170,6 @@ public void getAssetWalletsTest() throws ApiException { api.getAssetWallets(totalAmountLargerThan, assetId, orderBy, before, after, limit); } - /** - * Get job status of bulk creation of new deposit addresses - * - *

Returns the status of bulk creation of new deposit addresses job and the result or error - * Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. - * - * @throws ApiException if the Api call fails - */ - @Test - public void getCreateMultipleDepositAddressesJobStatusTest() throws ApiException { - String jobId = null; - CompletableFuture> response = - api.getCreateMultipleDepositAddressesJobStatus(jobId); - } - - /** - * Get job status of bulk creation of new vault accounts - * - *

Returns the status of bulk creation of new vault accounts job and the result or error - * Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. - * - * @throws ApiException if the Api call fails - */ - @Test - public void getCreateMultipleVaultAccountsJobStatusTest() throws ApiException { - String jobId = null; - CompletableFuture> response = - api.getCreateMultipleVaultAccountsJobStatus(jobId); - } - /** * Get the maximum spendable amount in a single transaction. * @@ -292,7 +207,6 @@ public void getPagedVaultAccountsTest() throws ApiException { String before = null; String after = null; BigDecimal limit = null; - List tagIds = null; CompletableFuture> response = api.getPagedVaultAccounts( namePrefix, @@ -302,8 +216,7 @@ public void getPagedVaultAccountsTest() throws ApiException { orderBy, before, after, - limit, - tagIds); + limit); } /** diff --git a/src/test/java/com/fireblocks/sdk/api/Web3ConnectionsApiTest.java b/src/test/java/com/fireblocks/sdk/api/Web3ConnectionsApiTest.java index e71906c4..7d5306cc 100644 --- a/src/test/java/com/fireblocks/sdk/api/Web3ConnectionsApiTest.java +++ b/src/test/java/com/fireblocks/sdk/api/Web3ConnectionsApiTest.java @@ -21,7 +21,6 @@ import com.fireblocks.sdk.model.GetFilterParameter; import com.fireblocks.sdk.model.RespondToConnectionRequest; import java.math.BigDecimal; -import java.util.UUID; import java.util.concurrent.CompletableFuture; import org.junit.Ignore; import org.junit.Test; @@ -44,9 +43,8 @@ public class Web3ConnectionsApiTest { public void createTest() throws ApiException { CreateConnectionRequest createConnectionRequest = null; String idempotencyKey = null; - UUID xEndUserWalletId = null; CompletableFuture> response = - api.create(createConnectionRequest, idempotencyKey, xEndUserWalletId); + api.create(createConnectionRequest, idempotencyKey); } /** @@ -58,14 +56,13 @@ public void createTest() throws ApiException { */ @Test public void getTest() throws ApiException { - UUID xEndUserWalletId = null; String order = null; GetFilterParameter filter = null; String sort = null; BigDecimal pageSize = null; String next = null; CompletableFuture> response = - api.get(xEndUserWalletId, order, filter, sort, pageSize, next); + api.get(order, filter, sort, pageSize, next); } /** @@ -78,9 +75,8 @@ public void getTest() throws ApiException { @Test public void removeTest() throws ApiException { String id = null; - UUID xEndUserWalletId = null; - CompletableFuture> response = api.remove(id, xEndUserWalletId); + CompletableFuture> response = api.remove(id); } /** @@ -97,9 +93,8 @@ public void submitTest() throws ApiException { RespondToConnectionRequest respondToConnectionRequest = null; String id = null; String idempotencyKey = null; - UUID xEndUserWalletId = null; CompletableFuture> response = - api.submit(respondToConnectionRequest, id, idempotencyKey, xEndUserWalletId); + api.submit(respondToConnectionRequest, id, idempotencyKey); } } diff --git a/src/test/java/com/fireblocks/sdk/api/WebhooksV2ApiTest.java b/src/test/java/com/fireblocks/sdk/api/WebhooksV2ApiTest.java deleted file mode 100644 index 79dc4b89..00000000 --- a/src/test/java/com/fireblocks/sdk/api/WebhooksV2ApiTest.java +++ /dev/null @@ -1,252 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.api; - - -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.model.CreateWebhookRequest; -import com.fireblocks.sdk.model.NotificationAttemptsPaginatedResponse; -import com.fireblocks.sdk.model.NotificationPaginatedResponse; -import com.fireblocks.sdk.model.NotificationStatus; -import com.fireblocks.sdk.model.NotificationWithData; -import com.fireblocks.sdk.model.ResendFailedNotificationsJobStatusResponse; -import com.fireblocks.sdk.model.ResendFailedNotificationsRequest; -import com.fireblocks.sdk.model.ResendFailedNotificationsResponse; -import com.fireblocks.sdk.model.ResendNotificationsByResourceIdRequest; -import com.fireblocks.sdk.model.UpdateWebhookRequest; -import com.fireblocks.sdk.model.Webhook; -import com.fireblocks.sdk.model.WebhookEvent; -import com.fireblocks.sdk.model.WebhookPaginatedResponse; -import java.math.BigDecimal; -import java.util.List; -import java.util.UUID; -import java.util.concurrent.CompletableFuture; -import org.junit.Ignore; -import org.junit.Test; - -/** API tests for WebhooksV2Api */ -@Ignore -public class WebhooksV2ApiTest { - - private final WebhooksV2Api api = new WebhooksV2Api(); - - /** - * Create new webhook - * - *

Creates a new webhook, which will be triggered on the specified events Endpoint - * Permission: Owner, Admin, Non-Signing Admin. - * - * @throws ApiException if the Api call fails - */ - @Test - public void createWebhookTest() throws ApiException { - CreateWebhookRequest createWebhookRequest = null; - String idempotencyKey = null; - CompletableFuture> response = - api.createWebhook(createWebhookRequest, idempotencyKey); - } - - /** - * Delete webhook - * - *

Delete a webhook by its id Endpoint Permission: Owner, Admin, Non-Signing Admin. - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteWebhookTest() throws ApiException { - UUID webhookId = null; - CompletableFuture> response = api.deleteWebhook(webhookId); - } - - /** - * Get notification by id - * - *

Get notification by id - * - * @throws ApiException if the Api call fails - */ - @Test - public void getNotificationTest() throws ApiException { - String webhookId = null; - String notificationId = null; - Boolean includeData = null; - CompletableFuture> response = - api.getNotification(webhookId, notificationId, includeData); - } - - /** - * Get notification attempts - * - *

Get notification attempts by notification id - * - * @throws ApiException if the Api call fails - */ - @Test - public void getNotificationAttemptsTest() throws ApiException { - String webhookId = null; - String notificationId = null; - String pageCursor = null; - BigDecimal pageSize = null; - CompletableFuture> response = - api.getNotificationAttempts(webhookId, notificationId, pageCursor, pageSize); - } - - /** - * Get all notifications by webhook id - * - *

Get all notifications by webhook id (paginated) - * - * @throws ApiException if the Api call fails - */ - @Test - public void getNotificationsTest() throws ApiException { - UUID webhookId = null; - String order = null; - String sortBy = null; - String pageCursor = null; - BigDecimal pageSize = null; - BigDecimal startTime = null; - BigDecimal endTime = null; - List statuses = null; - List events = null; - String resourceId = null; - CompletableFuture> response = - api.getNotifications( - webhookId, - order, - sortBy, - pageCursor, - pageSize, - startTime, - endTime, - statuses, - events, - resourceId); - } - - /** - * Get resend job status - * - *

Get the status of a resend job - * - * @throws ApiException if the Api call fails - */ - @Test - public void getResendJobStatusTest() throws ApiException { - String webhookId = null; - String jobId = null; - CompletableFuture> response = - api.getResendJobStatus(webhookId, jobId); - } - - /** - * Get webhook by id - * - *

Retrieve a webhook by its id - * - * @throws ApiException if the Api call fails - */ - @Test - public void getWebhookTest() throws ApiException { - UUID webhookId = null; - CompletableFuture> response = api.getWebhook(webhookId); - } - - /** - * Get all webhooks - * - *

Get all webhooks (paginated) - * - * @throws ApiException if the Api call fails - */ - @Test - public void getWebhooksTest() throws ApiException { - String order = null; - String pageCursor = null; - BigDecimal pageSize = null; - CompletableFuture> response = - api.getWebhooks(order, pageCursor, pageSize); - } - - /** - * Resend failed notifications - * - *

Resend all failed notifications for a webhook in the last 24 hours Endpoint Permission: - * Owner, Admin, Non-Signing Admin, Editor, Signer. - * - * @throws ApiException if the Api call fails - */ - @Test - public void resendFailedNotificationsTest() throws ApiException { - ResendFailedNotificationsRequest resendFailedNotificationsRequest = null; - String webhookId = null; - String idempotencyKey = null; - CompletableFuture> response = - api.resendFailedNotifications( - resendFailedNotificationsRequest, webhookId, idempotencyKey); - } - - /** - * Resend notification by id - * - *

Resend notification by ID Endpoint Permission: Owner, Admin, Non-Signing Admin, Editor, - * Signer. - * - * @throws ApiException if the Api call fails - */ - @Test - public void resendNotificationByIdTest() throws ApiException { - String webhookId = null; - String notificationId = null; - String idempotencyKey = null; - - CompletableFuture> response = - api.resendNotificationById(webhookId, notificationId, idempotencyKey); - } - - /** - * Resend notifications by resource Id - * - *

Resend notifications by resource Id Endpoint Permission: Owner, Admin, Non-Signing Admin, - * Editor, Signer. - * - * @throws ApiException if the Api call fails - */ - @Test - public void resendNotificationsByResourceIdTest() throws ApiException { - ResendNotificationsByResourceIdRequest resendNotificationsByResourceIdRequest = null; - String webhookId = null; - String idempotencyKey = null; - - CompletableFuture> response = - api.resendNotificationsByResourceId( - resendNotificationsByResourceIdRequest, webhookId, idempotencyKey); - } - - /** - * Update webhook - * - *

Update a webhook by its id Endpoint Permission: Owner, Admin, Non-Signing Admin. - * - * @throws ApiException if the Api call fails - */ - @Test - public void updateWebhookTest() throws ApiException { - UpdateWebhookRequest updateWebhookRequest = null; - UUID webhookId = null; - CompletableFuture> response = - api.updateWebhook(updateWebhookRequest, webhookId); - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/AccessTypeTest.java b/src/test/java/com/fireblocks/sdk/model/AccessTypeTest.java deleted file mode 100644 index 5ff5aa18..00000000 --- a/src/test/java/com/fireblocks/sdk/model/AccessTypeTest.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for AccessType */ -class AccessTypeTest { - private final AccessType model = new AccessType(); - - /** Model tests for AccessType */ - @Test - void testAccessType() { - // TODO: test AccessType - } - - /** Test the property 'type' */ - @Test - void typeTest() { - // TODO: test type - } - - /** Test the property 'providerId' */ - @Test - void providerIdTest() { - // TODO: test providerId - } - - /** Test the property 'accountId' */ - @Test - void accountIdTest() { - // TODO: test accountId - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/AccountAccessTest.java b/src/test/java/com/fireblocks/sdk/model/AccountAccessTest.java deleted file mode 100644 index 6372354b..00000000 --- a/src/test/java/com/fireblocks/sdk/model/AccountAccessTest.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for AccountAccess */ -class AccountAccessTest { - private final AccountAccess model = new AccountAccess(); - - /** Model tests for AccountAccess */ - @Test - void testAccountAccess() { - // TODO: test AccountAccess - } - - /** Test the property 'type' */ - @Test - void typeTest() { - // TODO: test type - } - - /** Test the property 'providerId' */ - @Test - void providerIdTest() { - // TODO: test providerId - } - - /** Test the property 'accountId' */ - @Test - void accountIdTest() { - // TODO: test accountId - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/AccountBaseTest.java b/src/test/java/com/fireblocks/sdk/model/AccountBaseTest.java deleted file mode 100644 index 70e79e84..00000000 --- a/src/test/java/com/fireblocks/sdk/model/AccountBaseTest.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for AccountBase */ -class AccountBaseTest { - private final AccountBase model = new AccountBase(); - - /** Model tests for AccountBase */ - @Test - void testAccountBase() { - // TODO: test AccountBase - } - - /** Test the property 'id' */ - @Test - void idTest() { - // TODO: test id - } - - /** Test the property 'name' */ - @Test - void nameTest() { - // TODO: test name - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/AccountBasedAccessProviderTest.java b/src/test/java/com/fireblocks/sdk/model/AccountBasedAccessProviderTest.java deleted file mode 100644 index bffd130f..00000000 --- a/src/test/java/com/fireblocks/sdk/model/AccountBasedAccessProviderTest.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for AccountBasedAccessProvider */ -class AccountBasedAccessProviderTest { - private final AccountBasedAccessProvider model = new AccountBasedAccessProvider(); - - /** Model tests for AccountBasedAccessProvider */ - @Test - void testAccountBasedAccessProvider() { - // TODO: test AccountBasedAccessProvider - } - - /** Test the property 'id' */ - @Test - void idTest() { - // TODO: test id - } - - /** Test the property 'name' */ - @Test - void nameTest() { - // TODO: test name - } - - /** Test the property 'logo' */ - @Test - void logoTest() { - // TODO: test logo - } - - /** Test the property 'accountBased' */ - @Test - void accountBasedTest() { - // TODO: test accountBased - } - - /** Test the property 'manifest' */ - @Test - void manifestTest() { - // TODO: test manifest - } - - /** Test the property 'connected' */ - @Test - void connectedTest() { - // TODO: test connected - } - - /** Test the property 'accounts' */ - @Test - void accountsTest() { - // TODO: test accounts - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/AccountConfigTest.java b/src/test/java/com/fireblocks/sdk/model/AccountConfigTest.java deleted file mode 100644 index 2af87278..00000000 --- a/src/test/java/com/fireblocks/sdk/model/AccountConfigTest.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for AccountConfig */ -class AccountConfigTest { - private final AccountConfig model = new AccountConfig(); - - /** Model tests for AccountConfig */ - @Test - void testAccountConfig() { - // TODO: test AccountConfig - } - - /** Test the property 'type' */ - @Test - void typeTest() { - // TODO: test type - } - - /** Test the property 'subType' */ - @Test - void subTypeTest() { - // TODO: test subType - } - - /** Test the property 'ids' */ - @Test - void idsTest() { - // TODO: test ids - } - - /** Test the property 'operator' */ - @Test - void operatorTest() { - // TODO: test operator - } - - /** Test the property 'matchFrom' */ - @Test - void matchFromTest() { - // TODO: test matchFrom - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/AccountHolderDetailsTest.java b/src/test/java/com/fireblocks/sdk/model/AccountHolderDetailsTest.java deleted file mode 100644 index 9d2266e9..00000000 --- a/src/test/java/com/fireblocks/sdk/model/AccountHolderDetailsTest.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for AccountHolderDetails */ -class AccountHolderDetailsTest { - private final AccountHolderDetails model = new AccountHolderDetails(); - - /** Model tests for AccountHolderDetails */ - @Test - void testAccountHolderDetails() { - // TODO: test AccountHolderDetails - } - - /** Test the property 'name' */ - @Test - void nameTest() { - // TODO: test name - } - - /** Test the property 'city' */ - @Test - void cityTest() { - // TODO: test city - } - - /** Test the property 'country' */ - @Test - void countryTest() { - // TODO: test country - } - - /** Test the property 'subdivision' */ - @Test - void subdivisionTest() { - // TODO: test subdivision - } - - /** Test the property 'address' */ - @Test - void addressTest() { - // TODO: test address - } - - /** Test the property 'postalCode' */ - @Test - void postalCodeTest() { - // TODO: test postalCode - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/AccountIdentifierTest.java b/src/test/java/com/fireblocks/sdk/model/AccountIdentifierTest.java deleted file mode 100644 index 700ce486..00000000 --- a/src/test/java/com/fireblocks/sdk/model/AccountIdentifierTest.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for AccountIdentifier */ -class AccountIdentifierTest { - private final AccountIdentifier model = new AccountIdentifier(); - - /** Model tests for AccountIdentifier */ - @Test - void testAccountIdentifier() { - // TODO: test AccountIdentifier - } - - /** Test the property 'type' */ - @Test - void typeTest() { - // TODO: test type - } - - /** Test the property 'id' */ - @Test - void idTest() { - // TODO: test id - } - - /** Test the property 'subType' */ - @Test - void subTypeTest() { - // TODO: test subType - } - - /** Test the property 'address' */ - @Test - void addressTest() { - // TODO: test address - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/AccountProviderIDTest.java b/src/test/java/com/fireblocks/sdk/model/AccountProviderIDTest.java deleted file mode 100644 index ba206877..00000000 --- a/src/test/java/com/fireblocks/sdk/model/AccountProviderIDTest.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for AccountProviderID */ -class AccountProviderIDTest { - private final AccountProviderID model = new AccountProviderID(); - - /** Model tests for AccountProviderID */ - @Test - void testAccountProviderID() { - // TODO: test AccountProviderID - } - - /** Test the property 'providerId' */ - @Test - void providerIdTest() { - // TODO: test providerId - } - - /** Test the property 'accountId' */ - @Test - void accountIdTest() { - // TODO: test accountId - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/AccountReferenceTest.java b/src/test/java/com/fireblocks/sdk/model/AccountReferenceTest.java deleted file mode 100644 index b4256e4c..00000000 --- a/src/test/java/com/fireblocks/sdk/model/AccountReferenceTest.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for AccountReference */ -class AccountReferenceTest { - private final AccountReference model = new AccountReference(); - - /** Model tests for AccountReference */ - @Test - void testAccountReference() { - // TODO: test AccountReference - } - - /** Test the property 'type' */ - @Test - void typeTest() { - // TODO: test type - } - - /** Test the property 'accountId' */ - @Test - void accountIdTest() { - // TODO: test accountId - } - - /** Test the property 'address' */ - @Test - void addressTest() { - // TODO: test address - } - - /** Test the property 'tag' */ - @Test - void tagTest() { - // TODO: test tag - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/AchPaymentInfoTest.java b/src/test/java/com/fireblocks/sdk/model/AchPaymentInfoTest.java deleted file mode 100644 index 7486f4b8..00000000 --- a/src/test/java/com/fireblocks/sdk/model/AchPaymentInfoTest.java +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for AchPaymentInfo */ -class AchPaymentInfoTest { - private final AchPaymentInfo model = new AchPaymentInfo(); - - /** Model tests for AchPaymentInfo */ - @Test - void testAchPaymentInfo() { - // TODO: test AchPaymentInfo - } - - /** Test the property 'rail' */ - @Test - void railTest() { - // TODO: test rail - } - - /** Test the property 'addressingSystem' */ - @Test - void addressingSystemTest() { - // TODO: test addressingSystem - } - - /** Test the property 'accountHolderGivenName' */ - @Test - void accountHolderGivenNameTest() { - // TODO: test accountHolderGivenName - } - - /** Test the property 'accountHolderSurname' */ - @Test - void accountHolderSurnameTest() { - // TODO: test accountHolderSurname - } - - /** Test the property 'country' */ - @Test - void countryTest() { - // TODO: test country - } - - /** Test the property 'accountNumber' */ - @Test - void accountNumberTest() { - // TODO: test accountNumber - } - - /** Test the property 'routingNumber' */ - @Test - void routingNumberTest() { - // TODO: test routingNumber - } - - /** Test the property 'accountType' */ - @Test - void accountTypeTest() { - // TODO: test accountType - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/AdapterProcessingResultTest.java b/src/test/java/com/fireblocks/sdk/model/AdapterProcessingResultTest.java deleted file mode 100644 index 95fec4f1..00000000 --- a/src/test/java/com/fireblocks/sdk/model/AdapterProcessingResultTest.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for AdapterProcessingResult */ -class AdapterProcessingResultTest { - private final AdapterProcessingResult model = new AdapterProcessingResult(); - - /** Model tests for AdapterProcessingResult */ - @Test - void testAdapterProcessingResult() { - // TODO: test AdapterProcessingResult - } - - /** Test the property 'inputTokenLinkId' */ - @Test - void inputTokenLinkIdTest() { - // TODO: test inputTokenLinkId - } - - /** Test the property 'adapterLinkId' */ - @Test - void adapterLinkIdTest() { - // TODO: test adapterLinkId - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/AddAbiRequestDtoTest.java b/src/test/java/com/fireblocks/sdk/model/AddAbiRequestDtoTest.java deleted file mode 100644 index 2b0bfc1c..00000000 --- a/src/test/java/com/fireblocks/sdk/model/AddAbiRequestDtoTest.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for AddAbiRequestDto */ -class AddAbiRequestDtoTest { - private final AddAbiRequestDto model = new AddAbiRequestDto(); - - /** Model tests for AddAbiRequestDto */ - @Test - void testAddAbiRequestDto() { - // TODO: test AddAbiRequestDto - } - - /** Test the property 'contractAddress' */ - @Test - void contractAddressTest() { - // TODO: test contractAddress - } - - /** Test the property 'baseAssetId' */ - @Test - void baseAssetIdTest() { - // TODO: test baseAssetId - } - - /** Test the property 'abi' */ - @Test - void abiTest() { - // TODO: test abi - } - - /** Test the property 'name' */ - @Test - void nameTest() { - // TODO: test name - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/AbaPaymentInfoTest.java b/src/test/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1Test.java similarity index 79% rename from src/test/java/com/fireblocks/sdk/model/AbaPaymentInfoTest.java rename to src/test/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1Test.java index 0c2488ca..7c478d35 100644 --- a/src/test/java/com/fireblocks/sdk/model/AbaPaymentInfoTest.java +++ b/src/test/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1Test.java @@ -15,14 +15,15 @@ import org.junit.jupiter.api.Test; -/** Model tests for AbaPaymentInfo */ -class AbaPaymentInfoTest { - private final AbaPaymentInfo model = new AbaPaymentInfo(); +/** Model tests for AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 */ +class AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1Test { + private final AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 model = + new AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1(); - /** Model tests for AbaPaymentInfo */ + /** Model tests for AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 */ @Test - void testAbaPaymentInfo() { - // TODO: test AbaPaymentInfo + void testAddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1() { + // TODO: test AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 } /** Test the property 'accountHolderGivenName' */ diff --git a/src/test/java/com/fireblocks/sdk/model/SpeiBasicPaymentInfoTest.java b/src/test/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2Test.java similarity index 56% rename from src/test/java/com/fireblocks/sdk/model/SpeiBasicPaymentInfoTest.java rename to src/test/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2Test.java index e01df45a..99ba0fd6 100644 --- a/src/test/java/com/fireblocks/sdk/model/SpeiBasicPaymentInfoTest.java +++ b/src/test/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2Test.java @@ -15,14 +15,15 @@ import org.junit.jupiter.api.Test; -/** Model tests for SpeiBasicPaymentInfo */ -class SpeiBasicPaymentInfoTest { - private final SpeiBasicPaymentInfo model = new SpeiBasicPaymentInfo(); +/** Model tests for AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2 */ +class AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2Test { + private final AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2 model = + new AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2(); - /** Model tests for SpeiBasicPaymentInfo */ + /** Model tests for AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2 */ @Test - void testSpeiBasicPaymentInfo() { - // TODO: test SpeiBasicPaymentInfo + void testAddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2() { + // TODO: test AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf2 } /** Test the property 'speiClabe' */ diff --git a/src/test/java/com/fireblocks/sdk/model/IbanPaymentInfoTest.java b/src/test/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOfTest.java similarity index 78% rename from src/test/java/com/fireblocks/sdk/model/IbanPaymentInfoTest.java rename to src/test/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOfTest.java index a12200ca..f70dae9d 100644 --- a/src/test/java/com/fireblocks/sdk/model/IbanPaymentInfoTest.java +++ b/src/test/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOfTest.java @@ -15,14 +15,15 @@ import org.junit.jupiter.api.Test; -/** Model tests for IbanPaymentInfo */ -class IbanPaymentInfoTest { - private final IbanPaymentInfo model = new IbanPaymentInfo(); +/** Model tests for AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf */ +class AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOfTest { + private final AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf model = + new AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf(); - /** Model tests for IbanPaymentInfo */ + /** Model tests for AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf */ @Test - void testIbanPaymentInfo() { - // TODO: test IbanPaymentInfo + void testAddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf() { + // TODO: test AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf } /** Test the property 'accountHolderGivenName' */ diff --git a/src/test/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOf1AdditionalInfoTest.java b/src/test/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOf1AdditionalInfoTest.java new file mode 100644 index 00000000..b4cba82f --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOf1AdditionalInfoTest.java @@ -0,0 +1,124 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.fireblocks.sdk.model; + + +import org.junit.jupiter.api.Test; + +/** Model tests for AddAssetToExternalWalletRequestOneOf1AdditionalInfo */ +class AddAssetToExternalWalletRequestOneOf1AdditionalInfoTest { + private final AddAssetToExternalWalletRequestOneOf1AdditionalInfo model = + new AddAssetToExternalWalletRequestOneOf1AdditionalInfo(); + + /** Model tests for AddAssetToExternalWalletRequestOneOf1AdditionalInfo */ + @Test + void testAddAssetToExternalWalletRequestOneOf1AdditionalInfo() { + // TODO: test AddAssetToExternalWalletRequestOneOf1AdditionalInfo + } + + /** Test the property 'accountHolderGivenName' */ + @Test + void accountHolderGivenNameTest() { + // TODO: test accountHolderGivenName + } + + /** Test the property 'accountHolderSurname' */ + @Test + void accountHolderSurnameTest() { + // TODO: test accountHolderSurname + } + + /** Test the property 'accountHolderCity' */ + @Test + void accountHolderCityTest() { + // TODO: test accountHolderCity + } + + /** Test the property 'accountHolderCountry' */ + @Test + void accountHolderCountryTest() { + // TODO: test accountHolderCountry + } + + /** Test the property 'accountHolderAddress1' */ + @Test + void accountHolderAddress1Test() { + // TODO: test accountHolderAddress1 + } + + /** Test the property 'accountHolderAddress2' */ + @Test + void accountHolderAddress2Test() { + // TODO: test accountHolderAddress2 + } + + /** Test the property 'accountHolderDistrict' */ + @Test + void accountHolderDistrictTest() { + // TODO: test accountHolderDistrict + } + + /** Test the property 'accountHolderPostalCode' */ + @Test + void accountHolderPostalCodeTest() { + // TODO: test accountHolderPostalCode + } + + /** Test the property 'iban' */ + @Test + void ibanTest() { + // TODO: test iban + } + + /** Test the property 'ibanCity' */ + @Test + void ibanCityTest() { + // TODO: test ibanCity + } + + /** Test the property 'ibanCountry' */ + @Test + void ibanCountryTest() { + // TODO: test ibanCountry + } + + /** Test the property 'abaRoutingNumber' */ + @Test + void abaRoutingNumberTest() { + // TODO: test abaRoutingNumber + } + + /** Test the property 'abaAccountNumber' */ + @Test + void abaAccountNumberTest() { + // TODO: test abaAccountNumber + } + + /** Test the property 'abaCountry' */ + @Test + void abaCountryTest() { + // TODO: test abaCountry + } + + /** Test the property 'speiClabe' */ + @Test + void speiClabeTest() { + // TODO: test speiClabe + } + + /** Test the property 'speiName' */ + @Test + void speiNameTest() { + // TODO: test speiName + } +} diff --git a/src/test/java/com/fireblocks/sdk/model/AdditionalInfoRequestTest.java b/src/test/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOf1Test.java similarity index 59% rename from src/test/java/com/fireblocks/sdk/model/AdditionalInfoRequestTest.java rename to src/test/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOf1Test.java index f2656c7b..72d8aa51 100644 --- a/src/test/java/com/fireblocks/sdk/model/AdditionalInfoRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOf1Test.java @@ -15,14 +15,15 @@ import org.junit.jupiter.api.Test; -/** Model tests for AdditionalInfoRequest */ -class AdditionalInfoRequestTest { - private final AdditionalInfoRequest model = new AdditionalInfoRequest(); +/** Model tests for AddAssetToExternalWalletRequestOneOf1 */ +class AddAssetToExternalWalletRequestOneOf1Test { + private final AddAssetToExternalWalletRequestOneOf1 model = + new AddAssetToExternalWalletRequestOneOf1(); - /** Model tests for AdditionalInfoRequest */ + /** Model tests for AddAssetToExternalWalletRequestOneOf1 */ @Test - void testAdditionalInfoRequest() { - // TODO: test AdditionalInfoRequest + void testAddAssetToExternalWalletRequestOneOf1() { + // TODO: test AddAssetToExternalWalletRequestOneOf1 } /** Test the property 'additionalInfo' */ diff --git a/src/test/java/com/fireblocks/sdk/model/OneTimeAddressReferenceTest.java b/src/test/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOfTest.java similarity index 62% rename from src/test/java/com/fireblocks/sdk/model/OneTimeAddressReferenceTest.java rename to src/test/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOfTest.java index 74f79ebf..3f519f39 100644 --- a/src/test/java/com/fireblocks/sdk/model/OneTimeAddressReferenceTest.java +++ b/src/test/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOfTest.java @@ -15,20 +15,15 @@ import org.junit.jupiter.api.Test; -/** Model tests for OneTimeAddressReference */ -class OneTimeAddressReferenceTest { - private final OneTimeAddressReference model = new OneTimeAddressReference(); +/** Model tests for AddAssetToExternalWalletRequestOneOf */ +class AddAssetToExternalWalletRequestOneOfTest { + private final AddAssetToExternalWalletRequestOneOf model = + new AddAssetToExternalWalletRequestOneOf(); - /** Model tests for OneTimeAddressReference */ + /** Model tests for AddAssetToExternalWalletRequestOneOf */ @Test - void testOneTimeAddressReference() { - // TODO: test OneTimeAddressReference - } - - /** Test the property 'type' */ - @Test - void typeTest() { - // TODO: test type + void testAddAssetToExternalWalletRequestOneOf() { + // TODO: test AddAssetToExternalWalletRequestOneOf } /** Test the property 'address' */ diff --git a/src/test/java/com/fireblocks/sdk/model/AddCosignerRequestTest.java b/src/test/java/com/fireblocks/sdk/model/AddCosignerRequestTest.java deleted file mode 100644 index 81590e2e..00000000 --- a/src/test/java/com/fireblocks/sdk/model/AddCosignerRequestTest.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for AddCosignerRequest */ -class AddCosignerRequestTest { - private final AddCosignerRequest model = new AddCosignerRequest(); - - /** Model tests for AddCosignerRequest */ - @Test - void testAddCosignerRequest() { - // TODO: test AddCosignerRequest - } - - /** Test the property 'apiKeyId' */ - @Test - void apiKeyIdTest() { - // TODO: test apiKeyId - } - - /** Test the property 'name' */ - @Test - void nameTest() { - // TODO: test name - } - - /** Test the property 'existingCosigner' */ - @Test - void existingCosignerTest() { - // TODO: test existingCosigner - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/AddCosignerResponseTest.java b/src/test/java/com/fireblocks/sdk/model/AddCosignerResponseTest.java deleted file mode 100644 index eff909d2..00000000 --- a/src/test/java/com/fireblocks/sdk/model/AddCosignerResponseTest.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for AddCosignerResponse */ -class AddCosignerResponseTest { - private final AddCosignerResponse model = new AddCosignerResponse(); - - /** Model tests for AddCosignerResponse */ - @Test - void testAddCosignerResponse() { - // TODO: test AddCosignerResponse - } - - /** Test the property 'apiKeyId' */ - @Test - void apiKeyIdTest() { - // TODO: test apiKeyId - } - - /** Test the property 'name' */ - @Test - void nameTest() { - // TODO: test name - } - - /** Test the property 'existingCosigner' */ - @Test - void existingCosignerTest() { - // TODO: test existingCosigner - } - - /** Test the property 'pendingCosignerId' */ - @Test - void pendingCosignerIdTest() { - // TODO: test pendingCosignerId - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/AddExchangeAccountRequestTest.java b/src/test/java/com/fireblocks/sdk/model/AddExchangeAccountRequestTest.java deleted file mode 100644 index 490f7afd..00000000 --- a/src/test/java/com/fireblocks/sdk/model/AddExchangeAccountRequestTest.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for AddExchangeAccountRequest */ -class AddExchangeAccountRequestTest { - private final AddExchangeAccountRequest model = new AddExchangeAccountRequest(); - - /** Model tests for AddExchangeAccountRequest */ - @Test - void testAddExchangeAccountRequest() { - // TODO: test AddExchangeAccountRequest - } - - /** Test the property 'exchangeType' */ - @Test - void exchangeTypeTest() { - // TODO: test exchangeType - } - - /** Test the property 'name' */ - @Test - void nameTest() { - // TODO: test name - } - - /** Test the property 'creds' */ - @Test - void credsTest() { - // TODO: test creds - } - - /** Test the property 'key' */ - @Test - void keyTest() { - // TODO: test key - } - - /** Test the property 'mainAccountId' */ - @Test - void mainAccountIdTest() { - // TODO: test mainAccountId - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/AddExchangeAccountResponseTest.java b/src/test/java/com/fireblocks/sdk/model/AddExchangeAccountResponseTest.java deleted file mode 100644 index ac5f1884..00000000 --- a/src/test/java/com/fireblocks/sdk/model/AddExchangeAccountResponseTest.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for AddExchangeAccountResponse */ -class AddExchangeAccountResponseTest { - private final AddExchangeAccountResponse model = new AddExchangeAccountResponse(); - - /** Model tests for AddExchangeAccountResponse */ - @Test - void testAddExchangeAccountResponse() { - // TODO: test AddExchangeAccountResponse - } - - /** Test the property 'id' */ - @Test - void idTest() { - // TODO: test id - } - - /** Test the property 'name' */ - @Test - void nameTest() { - // TODO: test name - } - - /** Test the property 'exchangeType' */ - @Test - void exchangeTypeTest() { - // TODO: test exchangeType - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/AdditionalInfoTest.java b/src/test/java/com/fireblocks/sdk/model/AdditionalInfoDtoTest.java similarity index 77% rename from src/test/java/com/fireblocks/sdk/model/AdditionalInfoTest.java rename to src/test/java/com/fireblocks/sdk/model/AdditionalInfoDtoTest.java index 83a1f827..98d62940 100644 --- a/src/test/java/com/fireblocks/sdk/model/AdditionalInfoTest.java +++ b/src/test/java/com/fireblocks/sdk/model/AdditionalInfoDtoTest.java @@ -15,14 +15,14 @@ import org.junit.jupiter.api.Test; -/** Model tests for AdditionalInfo */ -class AdditionalInfoTest { - private final AdditionalInfo model = new AdditionalInfo(); +/** Model tests for AdditionalInfoDto */ +class AdditionalInfoDtoTest { + private final AdditionalInfoDto model = new AdditionalInfoDto(); - /** Model tests for AdditionalInfo */ + /** Model tests for AdditionalInfoDto */ @Test - void testAdditionalInfo() { - // TODO: test AdditionalInfo + void testAdditionalInfoDto() { + // TODO: test AdditionalInfoDto } /** Test the property 'estimatedAnnualReward' */ diff --git a/src/test/java/com/fireblocks/sdk/model/AdditionalInfoRequestAdditionalInfoTest.java b/src/test/java/com/fireblocks/sdk/model/AdditionalInfoRequestAdditionalInfoTest.java deleted file mode 100644 index 235fcfc5..00000000 --- a/src/test/java/com/fireblocks/sdk/model/AdditionalInfoRequestAdditionalInfoTest.java +++ /dev/null @@ -1,304 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for AdditionalInfoRequestAdditionalInfo */ -class AdditionalInfoRequestAdditionalInfoTest { - private final AdditionalInfoRequestAdditionalInfo model = - new AdditionalInfoRequestAdditionalInfo(); - - /** Model tests for AdditionalInfoRequestAdditionalInfo */ - @Test - void testAdditionalInfoRequestAdditionalInfo() { - // TODO: test AdditionalInfoRequestAdditionalInfo - } - - /** Test the property 'accountHolderGivenName' */ - @Test - void accountHolderGivenNameTest() { - // TODO: test accountHolderGivenName - } - - /** Test the property 'accountHolderSurname' */ - @Test - void accountHolderSurnameTest() { - // TODO: test accountHolderSurname - } - - /** Test the property 'accountHolderCity' */ - @Test - void accountHolderCityTest() { - // TODO: test accountHolderCity - } - - /** Test the property 'accountHolderCountry' */ - @Test - void accountHolderCountryTest() { - // TODO: test accountHolderCountry - } - - /** Test the property 'accountHolderAddress1' */ - @Test - void accountHolderAddress1Test() { - // TODO: test accountHolderAddress1 - } - - /** Test the property 'accountHolderAddress2' */ - @Test - void accountHolderAddress2Test() { - // TODO: test accountHolderAddress2 - } - - /** Test the property 'accountHolderDistrict' */ - @Test - void accountHolderDistrictTest() { - // TODO: test accountHolderDistrict - } - - /** Test the property 'accountHolderPostalCode' */ - @Test - void accountHolderPostalCodeTest() { - // TODO: test accountHolderPostalCode - } - - /** Test the property 'iban' */ - @Test - void ibanTest() { - // TODO: test iban - } - - /** Test the property 'ibanCity' */ - @Test - void ibanCityTest() { - // TODO: test ibanCity - } - - /** Test the property 'ibanCountry' */ - @Test - void ibanCountryTest() { - // TODO: test ibanCountry - } - - /** Test the property 'abaRoutingNumber' */ - @Test - void abaRoutingNumberTest() { - // TODO: test abaRoutingNumber - } - - /** Test the property 'abaAccountNumber' */ - @Test - void abaAccountNumberTest() { - // TODO: test abaAccountNumber - } - - /** Test the property 'abaCountry' */ - @Test - void abaCountryTest() { - // TODO: test abaCountry - } - - /** Test the property 'speiClabe' */ - @Test - void speiClabeTest() { - // TODO: test speiClabe - } - - /** Test the property 'speiName' */ - @Test - void speiNameTest() { - // TODO: test speiName - } - - /** Test the property 'rail' */ - @Test - void railTest() { - // TODO: test rail - } - - /** Test the property 'addressingSystem' */ - @Test - void addressingSystemTest() { - // TODO: test addressingSystem - } - - /** Test the property 'country' */ - @Test - void countryTest() { - // TODO: test country - } - - /** Test the property 'bankName' */ - @Test - void bankNameTest() { - // TODO: test bankName - } - - /** Test the property 'beneficiaryRfc' */ - @Test - void beneficiaryRfcTest() { - // TODO: test beneficiaryRfc - } - - /** Test the property 'senderDocumentId' */ - @Test - void senderDocumentIdTest() { - // TODO: test senderDocumentId - } - - /** Test the property 'clabe' */ - @Test - void clabeTest() { - // TODO: test clabe - } - - /** Test the property 'pixKey' */ - @Test - void pixKeyTest() { - // TODO: test pixKey - } - - /** Test the property 'bankCode' */ - @Test - void bankCodeTest() { - // TODO: test bankCode - } - - /** Test the property 'keyType' */ - @Test - void keyTypeTest() { - // TODO: test keyType - } - - /** Test the property 'accountHolderAddress' */ - @Test - void accountHolderAddressTest() { - // TODO: test accountHolderAddress - } - - /** Test the property 'bic' */ - @Test - void bicTest() { - // TODO: test bic - } - - /** Test the property 'bankBranch' */ - @Test - void bankBranchTest() { - // TODO: test bankBranch - } - - /** Test the property 'bankAddress' */ - @Test - void bankAddressTest() { - // TODO: test bankAddress - } - - /** Test the property 'purposeCode' */ - @Test - void purposeCodeTest() { - // TODO: test purposeCode - } - - /** Test the property 'taxId' */ - @Test - void taxIdTest() { - // TODO: test taxId - } - - /** Test the property 'accountNumber' */ - @Test - void accountNumberTest() { - // TODO: test accountNumber - } - - /** Test the property 'routingNumber' */ - @Test - void routingNumberTest() { - // TODO: test routingNumber - } - - /** Test the property 'accountType' */ - @Test - void accountTypeTest() { - // TODO: test accountType - } - - /** Test the property 'swiftCode' */ - @Test - void swiftCodeTest() { - // TODO: test swiftCode - } - - /** Test the property 'bankAddressLine' */ - @Test - void bankAddressLineTest() { - // TODO: test bankAddressLine - } - - /** Test the property 'bankAddressCity' */ - @Test - void bankAddressCityTest() { - // TODO: test bankAddressCity - } - - /** Test the property 'bankAddressState' */ - @Test - void bankAddressStateTest() { - // TODO: test bankAddressState - } - - /** Test the property 'bankAddressCountry' */ - @Test - void bankAddressCountryTest() { - // TODO: test bankAddressCountry - } - - /** Test the property 'bankAddressPostalCode' */ - @Test - void bankAddressPostalCodeTest() { - // TODO: test bankAddressPostalCode - } - - /** Test the property 'branchNumber' */ - @Test - void branchNumberTest() { - // TODO: test branchNumber - } - - /** Test the property 'mobilePhoneNumber' */ - @Test - void mobilePhoneNumberTest() { - // TODO: test mobilePhoneNumber - } - - /** Test the property 'provider' */ - @Test - void providerTest() { - // TODO: test provider - } - - /** Test the property 'beneficiaryDocumentId' */ - @Test - void beneficiaryDocumentIdTest() { - // TODO: test beneficiaryDocumentId - } - - /** Test the property 'beneficiaryRelationship' */ - @Test - void beneficiaryRelationshipTest() { - // TODO: test beneficiaryRelationship - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/AddressNotAvailableErrorTest.java b/src/test/java/com/fireblocks/sdk/model/AddressNotAvailableErrorTest.java deleted file mode 100644 index 020ba17b..00000000 --- a/src/test/java/com/fireblocks/sdk/model/AddressNotAvailableErrorTest.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for AddressNotAvailableError */ -class AddressNotAvailableErrorTest { - private final AddressNotAvailableError model = new AddressNotAvailableError(); - - /** Model tests for AddressNotAvailableError */ - @Test - void testAddressNotAvailableError() { - // TODO: test AddressNotAvailableError - } - - /** Test the property 'message' */ - @Test - void messageTest() { - // TODO: test message - } - - /** Test the property 'code' */ - @Test - void codeTest() { - // TODO: test code - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/AmlRegistrationResultFullPayloadTest.java b/src/test/java/com/fireblocks/sdk/model/AmlRegistrationResultFullPayloadTest.java deleted file mode 100644 index abbcb1ad..00000000 --- a/src/test/java/com/fireblocks/sdk/model/AmlRegistrationResultFullPayloadTest.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for AmlRegistrationResultFullPayload */ -class AmlRegistrationResultFullPayloadTest { - private final AmlRegistrationResultFullPayload model = new AmlRegistrationResultFullPayload(); - - /** Model tests for AmlRegistrationResultFullPayload */ - @Test - void testAmlRegistrationResultFullPayload() { - // TODO: test AmlRegistrationResultFullPayload - } - - /** Test the property 'provider' */ - @Test - void providerTest() { - // TODO: test provider - } - - /** Test the property 'success' */ - @Test - void successTest() { - // TODO: test success - } - - /** Test the property 'timestamp' */ - @Test - void timestampTest() { - // TODO: test timestamp - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/AmlVerdictManualRequestTest.java b/src/test/java/com/fireblocks/sdk/model/AmlVerdictManualRequestTest.java deleted file mode 100644 index 71fffba1..00000000 --- a/src/test/java/com/fireblocks/sdk/model/AmlVerdictManualRequestTest.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for AmlVerdictManualRequest */ -class AmlVerdictManualRequestTest { - private final AmlVerdictManualRequest model = new AmlVerdictManualRequest(); - - /** Model tests for AmlVerdictManualRequest */ - @Test - void testAmlVerdictManualRequest() { - // TODO: test AmlVerdictManualRequest - } - - /** Test the property 'verdict' */ - @Test - void verdictTest() { - // TODO: test verdict - } - - /** Test the property 'txId' */ - @Test - void txIdTest() { - // TODO: test txId - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/AmlVerdictManualResponseTest.java b/src/test/java/com/fireblocks/sdk/model/AmlVerdictManualResponseTest.java deleted file mode 100644 index a73d2a51..00000000 --- a/src/test/java/com/fireblocks/sdk/model/AmlVerdictManualResponseTest.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for AmlVerdictManualResponse */ -class AmlVerdictManualResponseTest { - private final AmlVerdictManualResponse model = new AmlVerdictManualResponse(); - - /** Model tests for AmlVerdictManualResponse */ - @Test - void testAmlVerdictManualResponse() { - // TODO: test AmlVerdictManualResponse - } - - /** Test the property 'success' */ - @Test - void successTest() { - // TODO: test success - } - - /** Test the property 'message' */ - @Test - void messageTest() { - // TODO: test message - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/AssetClassTest.java b/src/test/java/com/fireblocks/sdk/model/AmountAggregationTimePeriodMethodTest.java similarity index 63% rename from src/test/java/com/fireblocks/sdk/model/AssetClassTest.java rename to src/test/java/com/fireblocks/sdk/model/AmountAggregationTimePeriodMethodTest.java index 15207155..227f290b 100644 --- a/src/test/java/com/fireblocks/sdk/model/AssetClassTest.java +++ b/src/test/java/com/fireblocks/sdk/model/AmountAggregationTimePeriodMethodTest.java @@ -15,11 +15,11 @@ import org.junit.jupiter.api.Test; -/** Model tests for AssetClass */ -class AssetClassTest { - /** Model tests for AssetClass */ +/** Model tests for AmountAggregationTimePeriodMethod */ +class AmountAggregationTimePeriodMethodTest { + /** Model tests for AmountAggregationTimePeriodMethod */ @Test - void testAssetClass() { - // TODO: test AssetClass + void testAmountAggregationTimePeriodMethod() { + // TODO: test AmountAggregationTimePeriodMethod } } diff --git a/src/test/java/com/fireblocks/sdk/model/AmountOverTimeConfigRangeTest.java b/src/test/java/com/fireblocks/sdk/model/AmountOverTimeConfigRangeTest.java deleted file mode 100644 index 4a8f2fc8..00000000 --- a/src/test/java/com/fireblocks/sdk/model/AmountOverTimeConfigRangeTest.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for AmountOverTimeConfigRange */ -class AmountOverTimeConfigRangeTest { - private final AmountOverTimeConfigRange model = new AmountOverTimeConfigRange(); - - /** Model tests for AmountOverTimeConfigRange */ - @Test - void testAmountOverTimeConfigRange() { - // TODO: test AmountOverTimeConfigRange - } - - /** Test the property 'min' */ - @Test - void minTest() { - // TODO: test min - } - - /** Test the property 'max' */ - @Test - void maxTest() { - // TODO: test max - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/AmountOverTimeConfigTest.java b/src/test/java/com/fireblocks/sdk/model/AmountOverTimeConfigTest.java deleted file mode 100644 index 89860690..00000000 --- a/src/test/java/com/fireblocks/sdk/model/AmountOverTimeConfigTest.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for AmountOverTimeConfig */ -class AmountOverTimeConfigTest { - private final AmountOverTimeConfig model = new AmountOverTimeConfig(); - - /** Model tests for AmountOverTimeConfig */ - @Test - void testAmountOverTimeConfig() { - // TODO: test AmountOverTimeConfig - } - - /** Test the property 'range' */ - @Test - void rangeTest() { - // TODO: test range - } - - /** Test the property 'currency' */ - @Test - void currencyTest() { - // TODO: test currency - } - - /** Test the property 'timePeriod' */ - @Test - void timePeriodTest() { - // TODO: test timePeriod - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/AmountRangeTest.java b/src/test/java/com/fireblocks/sdk/model/AmountRangeTest.java deleted file mode 100644 index 6dbda3e3..00000000 --- a/src/test/java/com/fireblocks/sdk/model/AmountRangeTest.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for AmountRange */ -class AmountRangeTest { - private final AmountRange model = new AmountRange(); - - /** Model tests for AmountRange */ - @Test - void testAmountRange() { - // TODO: test AmountRange - } - - /** Test the property 'min' */ - @Test - void minTest() { - // TODO: test min - } - - /** Test the property 'max' */ - @Test - void maxTest() { - // TODO: test max - } - - /** Test the property 'currency' */ - @Test - void currencyTest() { - // TODO: test currency - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/ApiKeyTest.java b/src/test/java/com/fireblocks/sdk/model/ApiKeyTest.java index baf8e92a..fd05e5e3 100644 --- a/src/test/java/com/fireblocks/sdk/model/ApiKeyTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ApiKeyTest.java @@ -36,10 +36,4 @@ void idTest() { void lastSeenTest() { // TODO: test lastSeen } - - /** Test the property 'callbackHandler' */ - @Test - void callbackHandlerTest() { - // TODO: test callbackHandler - } } diff --git a/src/test/java/com/fireblocks/sdk/model/ApproversConfigApprovalGroupsInnerTest.java b/src/test/java/com/fireblocks/sdk/model/ApproversConfigApprovalGroupsInnerTest.java deleted file mode 100644 index 526da799..00000000 --- a/src/test/java/com/fireblocks/sdk/model/ApproversConfigApprovalGroupsInnerTest.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for ApproversConfigApprovalGroupsInner */ -class ApproversConfigApprovalGroupsInnerTest { - private final ApproversConfigApprovalGroupsInner model = - new ApproversConfigApprovalGroupsInner(); - - /** Model tests for ApproversConfigApprovalGroupsInner */ - @Test - void testApproversConfigApprovalGroupsInner() { - // TODO: test ApproversConfigApprovalGroupsInner - } - - /** Test the property 'threshold' */ - @Test - void thresholdTest() { - // TODO: test threshold - } - - /** Test the property 'users' */ - @Test - void usersTest() { - // TODO: test users - } - - /** Test the property 'groups' */ - @Test - void groupsTest() { - // TODO: test groups - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/ApproversConfigTest.java b/src/test/java/com/fireblocks/sdk/model/ApproversConfigTest.java deleted file mode 100644 index b8e9a37d..00000000 --- a/src/test/java/com/fireblocks/sdk/model/ApproversConfigTest.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for ApproversConfig */ -class ApproversConfigTest { - private final ApproversConfig model = new ApproversConfig(); - - /** Model tests for ApproversConfig */ - @Test - void testApproversConfig() { - // TODO: test ApproversConfig - } - - /** Test the property 'canInitiatorApprove' */ - @Test - void canInitiatorApproveTest() { - // TODO: test canInitiatorApprove - } - - /** Test the property 'operator' */ - @Test - void operatorTest() { - // TODO: test operator - } - - /** Test the property 'allowOperatorAsAuthorizer' */ - @Test - void allowOperatorAsAuthorizerTest() { - // TODO: test allowOperatorAsAuthorizer - } - - /** Test the property 'approvalGroups' */ - @Test - void approvalGroupsTest() { - // TODO: test approvalGroups - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/AssetConfigTest.java b/src/test/java/com/fireblocks/sdk/model/AssetConfigTest.java deleted file mode 100644 index d61be9f2..00000000 --- a/src/test/java/com/fireblocks/sdk/model/AssetConfigTest.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for AssetConfig */ -class AssetConfigTest { - private final AssetConfig model = new AssetConfig(); - - /** Model tests for AssetConfig */ - @Test - void testAssetConfig() { - // TODO: test AssetConfig - } - - /** Test the property 'nftTransfer' */ - @Test - void nftTransferTest() { - // TODO: test nftTransfer - } - - /** Test the property 'assetTypes' */ - @Test - void assetTypesTest() { - // TODO: test assetTypes - } - - /** Test the property 'operator' */ - @Test - void operatorTest() { - // TODO: test operator - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/AssetDetailsMetadataTest.java b/src/test/java/com/fireblocks/sdk/model/AssetDetailsMetadataTest.java deleted file mode 100644 index b26fa5b0..00000000 --- a/src/test/java/com/fireblocks/sdk/model/AssetDetailsMetadataTest.java +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for AssetDetailsMetadata */ -class AssetDetailsMetadataTest { - private final AssetDetailsMetadata model = new AssetDetailsMetadata(); - - /** Model tests for AssetDetailsMetadata */ - @Test - void testAssetDetailsMetadata() { - // TODO: test AssetDetailsMetadata - } - - /** Test the property 'scope' */ - @Test - void scopeTest() { - // TODO: test scope - } - - /** Test the property 'verified' */ - @Test - void verifiedTest() { - // TODO: test verified - } - - /** Test the property 'deprecated' */ - @Test - void deprecatedTest() { - // TODO: test deprecated - } - - /** Test the property 'deprecationReferralId' */ - @Test - void deprecationReferralIdTest() { - // TODO: test deprecationReferralId - } - - /** Test the property 'website' */ - @Test - void websiteTest() { - // TODO: test website - } - - /** Test the property 'media' */ - @Test - void mediaTest() { - // TODO: test media - } - - /** Test the property 'note' */ - @Test - void noteTest() { - // TODO: test note - } - - /** Test the property 'features' */ - @Test - void featuresTest() { - // TODO: test features - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/AssetDetailsOnchainTest.java b/src/test/java/com/fireblocks/sdk/model/AssetDetailsOnchainTest.java deleted file mode 100644 index 45240bed..00000000 --- a/src/test/java/com/fireblocks/sdk/model/AssetDetailsOnchainTest.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for AssetDetailsOnchain */ -class AssetDetailsOnchainTest { - private final AssetDetailsOnchain model = new AssetDetailsOnchain(); - - /** Model tests for AssetDetailsOnchain */ - @Test - void testAssetDetailsOnchain() { - // TODO: test AssetDetailsOnchain - } - - /** Test the property 'symbol' */ - @Test - void symbolTest() { - // TODO: test symbol - } - - /** Test the property 'name' */ - @Test - void nameTest() { - // TODO: test name - } - - /** Test the property 'address' */ - @Test - void addressTest() { - // TODO: test address - } - - /** Test the property 'decimals' */ - @Test - void decimalsTest() { - // TODO: test decimals - } - - /** Test the property 'standards' */ - @Test - void standardsTest() { - // TODO: test standards - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/TradingErrorResponseErrorTest.java b/src/test/java/com/fireblocks/sdk/model/AssetDoesNotExistHttpErrorTest.java similarity index 54% rename from src/test/java/com/fireblocks/sdk/model/TradingErrorResponseErrorTest.java rename to src/test/java/com/fireblocks/sdk/model/AssetDoesNotExistHttpErrorTest.java index cc51d1e2..e1fcb2de 100644 --- a/src/test/java/com/fireblocks/sdk/model/TradingErrorResponseErrorTest.java +++ b/src/test/java/com/fireblocks/sdk/model/AssetDoesNotExistHttpErrorTest.java @@ -15,20 +15,20 @@ import org.junit.jupiter.api.Test; -/** Model tests for TradingErrorResponseError */ -class TradingErrorResponseErrorTest { - private final TradingErrorResponseError model = new TradingErrorResponseError(); +/** Model tests for AssetDoesNotExistHttpError */ +class AssetDoesNotExistHttpErrorTest { + private final AssetDoesNotExistHttpError model = new AssetDoesNotExistHttpError(); - /** Model tests for TradingErrorResponseError */ + /** Model tests for AssetDoesNotExistHttpError */ @Test - void testTradingErrorResponseError() { - // TODO: test TradingErrorResponseError + void testAssetDoesNotExistHttpError() { + // TODO: test AssetDoesNotExistHttpError } - /** Test the property 'type' */ + /** Test the property 'statusCode' */ @Test - void typeTest() { - // TODO: test type + void statusCodeTest() { + // TODO: test statusCode } /** Test the property 'message' */ @@ -37,9 +37,9 @@ void messageTest() { // TODO: test message } - /** Test the property 'errorCode' */ + /** Test the property 'error' */ @Test - void errorCodeTest() { - // TODO: test errorCode + void errorTest() { + // TODO: test error } } diff --git a/src/test/java/com/fireblocks/sdk/model/AssetMediaAttributesTest.java b/src/test/java/com/fireblocks/sdk/model/AssetMediaAttributesTest.java deleted file mode 100644 index badc8583..00000000 --- a/src/test/java/com/fireblocks/sdk/model/AssetMediaAttributesTest.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for AssetMediaAttributes */ -class AssetMediaAttributesTest { - private final AssetMediaAttributes model = new AssetMediaAttributes(); - - /** Model tests for AssetMediaAttributes */ - @Test - void testAssetMediaAttributes() { - // TODO: test AssetMediaAttributes - } - - /** Test the property 'monochrome' */ - @Test - void monochromeTest() { - // TODO: test monochrome - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/AssetMediaTest.java b/src/test/java/com/fireblocks/sdk/model/AssetMediaTest.java deleted file mode 100644 index 8c212697..00000000 --- a/src/test/java/com/fireblocks/sdk/model/AssetMediaTest.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for AssetMedia */ -class AssetMediaTest { - private final AssetMedia model = new AssetMedia(); - - /** Model tests for AssetMedia */ - @Test - void testAssetMedia() { - // TODO: test AssetMedia - } - - /** Test the property 'url' */ - @Test - void urlTest() { - // TODO: test url - } - - /** Test the property 'type' */ - @Test - void typeTest() { - // TODO: test type - } - - /** Test the property 'attributes' */ - @Test - void attributesTest() { - // TODO: test attributes - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/AssetMetadataRequestTest.java b/src/test/java/com/fireblocks/sdk/model/AssetMetadataRequestTest.java deleted file mode 100644 index 23ce7435..00000000 --- a/src/test/java/com/fireblocks/sdk/model/AssetMetadataRequestTest.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for AssetMetadataRequest */ -class AssetMetadataRequestTest { - private final AssetMetadataRequest model = new AssetMetadataRequest(); - - /** Model tests for AssetMetadataRequest */ - @Test - void testAssetMetadataRequest() { - // TODO: test AssetMetadataRequest - } - - /** Test the property 'note' */ - @Test - void noteTest() { - // TODO: test note - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/AssetNoteRequestTest.java b/src/test/java/com/fireblocks/sdk/model/AssetNoteRequestTest.java deleted file mode 100644 index e95e891d..00000000 --- a/src/test/java/com/fireblocks/sdk/model/AssetNoteRequestTest.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for AssetNoteRequest */ -class AssetNoteRequestTest { - private final AssetNoteRequest model = new AssetNoteRequest(); - - /** Model tests for AssetNoteRequest */ - @Test - void testAssetNoteRequest() { - // TODO: test AssetNoteRequest - } - - /** Test the property 'text' */ - @Test - void textTest() { - // TODO: test text - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/AssetNoteTest.java b/src/test/java/com/fireblocks/sdk/model/AssetNoteTest.java deleted file mode 100644 index e9788ca0..00000000 --- a/src/test/java/com/fireblocks/sdk/model/AssetNoteTest.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for AssetNote */ -class AssetNoteTest { - private final AssetNote model = new AssetNote(); - - /** Model tests for AssetNote */ - @Test - void testAssetNote() { - // TODO: test AssetNote - } - - /** Test the property 'text' */ - @Test - void textTest() { - // TODO: test text - } - - /** Test the property 'userId' */ - @Test - void userIdTest() { - // TODO: test userId - } - - /** Test the property 'userName' */ - @Test - void userNameTest() { - // TODO: test userName - } - - /** Test the property 'updatedAt' */ - @Test - void updatedAtTest() { - // TODO: test updatedAt - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/AssetPriceForbiddenErrorResponseTest.java b/src/test/java/com/fireblocks/sdk/model/AssetPriceForbiddenErrorResponseTest.java deleted file mode 100644 index f62806cb..00000000 --- a/src/test/java/com/fireblocks/sdk/model/AssetPriceForbiddenErrorResponseTest.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for AssetPriceForbiddenErrorResponse */ -class AssetPriceForbiddenErrorResponseTest { - private final AssetPriceForbiddenErrorResponse model = new AssetPriceForbiddenErrorResponse(); - - /** Model tests for AssetPriceForbiddenErrorResponse */ - @Test - void testAssetPriceForbiddenErrorResponse() { - // TODO: test AssetPriceForbiddenErrorResponse - } - - /** Test the property 'message' */ - @Test - void messageTest() { - // TODO: test message - } - - /** Test the property 'code' */ - @Test - void codeTest() { - // TODO: test code - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/AssetPriceNotFoundErrorResponseTest.java b/src/test/java/com/fireblocks/sdk/model/AssetPriceNotFoundErrorResponseTest.java deleted file mode 100644 index dbf17948..00000000 --- a/src/test/java/com/fireblocks/sdk/model/AssetPriceNotFoundErrorResponseTest.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for AssetPriceNotFoundErrorResponse */ -class AssetPriceNotFoundErrorResponseTest { - private final AssetPriceNotFoundErrorResponse model = new AssetPriceNotFoundErrorResponse(); - - /** Model tests for AssetPriceNotFoundErrorResponse */ - @Test - void testAssetPriceNotFoundErrorResponse() { - // TODO: test AssetPriceNotFoundErrorResponse - } - - /** Test the property 'message' */ - @Test - void messageTest() { - // TODO: test message - } - - /** Test the property 'code' */ - @Test - void codeTest() { - // TODO: test code - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/AssetPriceResponseTest.java b/src/test/java/com/fireblocks/sdk/model/AssetPriceResponseTest.java deleted file mode 100644 index 5680e1fe..00000000 --- a/src/test/java/com/fireblocks/sdk/model/AssetPriceResponseTest.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for AssetPriceResponse */ -class AssetPriceResponseTest { - private final AssetPriceResponse model = new AssetPriceResponse(); - - /** Model tests for AssetPriceResponse */ - @Test - void testAssetPriceResponse() { - // TODO: test AssetPriceResponse - } - - /** Test the property 'legacyId' */ - @Test - void legacyIdTest() { - // TODO: test legacyId - } - - /** Test the property 'lastUpdateAt' */ - @Test - void lastUpdateAtTest() { - // TODO: test lastUpdateAt - } - - /** Test the property 'currency' */ - @Test - void currencyTest() { - // TODO: test currency - } - - /** Test the property 'price' */ - @Test - void priceTest() { - // TODO: test price - } - - /** Test the property 'source' */ - @Test - void sourceTest() { - // TODO: test source - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/AssetMetadataTest.java b/src/test/java/com/fireblocks/sdk/model/AssetResponseMetadataTest.java similarity index 70% rename from src/test/java/com/fireblocks/sdk/model/AssetMetadataTest.java rename to src/test/java/com/fireblocks/sdk/model/AssetResponseMetadataTest.java index ac0ce071..093ce0e2 100644 --- a/src/test/java/com/fireblocks/sdk/model/AssetMetadataTest.java +++ b/src/test/java/com/fireblocks/sdk/model/AssetResponseMetadataTest.java @@ -15,14 +15,14 @@ import org.junit.jupiter.api.Test; -/** Model tests for AssetMetadata */ -class AssetMetadataTest { - private final AssetMetadata model = new AssetMetadata(); +/** Model tests for AssetResponseMetadata */ +class AssetResponseMetadataTest { + private final AssetResponseMetadata model = new AssetResponseMetadata(); - /** Model tests for AssetMetadata */ + /** Model tests for AssetResponseMetadata */ @Test - void testAssetMetadata() { - // TODO: test AssetMetadata + void testAssetResponseMetadata() { + // TODO: test AssetResponseMetadata } /** Test the property 'scope' */ diff --git a/src/test/java/com/fireblocks/sdk/model/AssetOnchainTest.java b/src/test/java/com/fireblocks/sdk/model/AssetResponseOnchainTest.java similarity index 78% rename from src/test/java/com/fireblocks/sdk/model/AssetOnchainTest.java rename to src/test/java/com/fireblocks/sdk/model/AssetResponseOnchainTest.java index 0aa84426..413949d3 100644 --- a/src/test/java/com/fireblocks/sdk/model/AssetOnchainTest.java +++ b/src/test/java/com/fireblocks/sdk/model/AssetResponseOnchainTest.java @@ -15,14 +15,14 @@ import org.junit.jupiter.api.Test; -/** Model tests for AssetOnchain */ -class AssetOnchainTest { - private final AssetOnchain model = new AssetOnchain(); +/** Model tests for AssetResponseOnchain */ +class AssetResponseOnchainTest { + private final AssetResponseOnchain model = new AssetResponseOnchain(); - /** Model tests for AssetOnchain */ + /** Model tests for AssetResponseOnchain */ @Test - void testAssetOnchain() { - // TODO: test AssetOnchain + void testAssetResponseOnchain() { + // TODO: test AssetResponseOnchain } /** Test the property 'symbol' */ diff --git a/src/test/java/com/fireblocks/sdk/model/AssetTest.java b/src/test/java/com/fireblocks/sdk/model/AssetTest.java deleted file mode 100644 index 3bf48086..00000000 --- a/src/test/java/com/fireblocks/sdk/model/AssetTest.java +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for Asset */ -class AssetTest { - private final Asset model = new Asset(); - - /** Model tests for Asset */ - @Test - void testAsset() { - // TODO: test Asset - } - - /** Test the property 'id' */ - @Test - void idTest() { - // TODO: test id - } - - /** Test the property 'legacyId' */ - @Test - void legacyIdTest() { - // TODO: test legacyId - } - - /** Test the property 'blockchainId' */ - @Test - void blockchainIdTest() { - // TODO: test blockchainId - } - - /** Test the property 'displayName' */ - @Test - void displayNameTest() { - // TODO: test displayName - } - - /** Test the property 'displaySymbol' */ - @Test - void displaySymbolTest() { - // TODO: test displaySymbol - } - - /** Test the property 'assetClass' */ - @Test - void assetClassTest() { - // TODO: test assetClass - } - - /** Test the property 'onchain' */ - @Test - void onchainTest() { - // TODO: test onchain - } - - /** Test the property 'metadata' */ - @Test - void metadataTest() { - // TODO: test metadata - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/BaseProviderTest.java b/src/test/java/com/fireblocks/sdk/model/BaseProviderTest.java deleted file mode 100644 index edb7ef98..00000000 --- a/src/test/java/com/fireblocks/sdk/model/BaseProviderTest.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for BaseProvider */ -class BaseProviderTest { - private final BaseProvider model = new BaseProvider(); - - /** Model tests for BaseProvider */ - @Test - void testBaseProvider() { - // TODO: test BaseProvider - } - - /** Test the property 'id' */ - @Test - void idTest() { - // TODO: test id - } - - /** Test the property 'name' */ - @Test - void nameTest() { - // TODO: test name - } - - /** Test the property 'logo' */ - @Test - void logoTest() { - // TODO: test logo - } - - /** Test the property 'accountBased' */ - @Test - void accountBasedTest() { - // TODO: test accountBased - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/BasicAddressRequestTest.java b/src/test/java/com/fireblocks/sdk/model/BasicAddressRequestTest.java deleted file mode 100644 index 4296f9e6..00000000 --- a/src/test/java/com/fireblocks/sdk/model/BasicAddressRequestTest.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for BasicAddressRequest */ -class BasicAddressRequestTest { - private final BasicAddressRequest model = new BasicAddressRequest(); - - /** Model tests for BasicAddressRequest */ - @Test - void testBasicAddressRequest() { - // TODO: test BasicAddressRequest - } - - /** Test the property 'address' */ - @Test - void addressTest() { - // TODO: test address - } - - /** Test the property 'tag' */ - @Test - void tagTest() { - // TODO: test tag - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/BlockchainExplorerTest.java b/src/test/java/com/fireblocks/sdk/model/BlockchainExplorerTest.java deleted file mode 100644 index d1a03a03..00000000 --- a/src/test/java/com/fireblocks/sdk/model/BlockchainExplorerTest.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for BlockchainExplorer */ -class BlockchainExplorerTest { - private final BlockchainExplorer model = new BlockchainExplorer(); - - /** Model tests for BlockchainExplorer */ - @Test - void testBlockchainExplorer() { - // TODO: test BlockchainExplorer - } - - /** Test the property 'base' */ - @Test - void baseTest() { - // TODO: test base - } - - /** Test the property 'address' */ - @Test - void addressTest() { - // TODO: test address - } - - /** Test the property 'tx' */ - @Test - void txTest() { - // TODO: test tx - } - - /** Test the property 'token' */ - @Test - void tokenTest() { - // TODO: test token - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/BlockchainMediaTest.java b/src/test/java/com/fireblocks/sdk/model/BlockchainMediaTest.java deleted file mode 100644 index aca82daa..00000000 --- a/src/test/java/com/fireblocks/sdk/model/BlockchainMediaTest.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for BlockchainMedia */ -class BlockchainMediaTest { - private final BlockchainMedia model = new BlockchainMedia(); - - /** Model tests for BlockchainMedia */ - @Test - void testBlockchainMedia() { - // TODO: test BlockchainMedia - } - - /** Test the property 'url' */ - @Test - void urlTest() { - // TODO: test url - } - - /** Test the property 'type' */ - @Test - void typeTest() { - // TODO: test type - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/BlockchainMetadataTest.java b/src/test/java/com/fireblocks/sdk/model/BlockchainMetadataTest.java deleted file mode 100644 index eaf1db1e..00000000 --- a/src/test/java/com/fireblocks/sdk/model/BlockchainMetadataTest.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for BlockchainMetadata */ -class BlockchainMetadataTest { - private final BlockchainMetadata model = new BlockchainMetadata(); - - /** Model tests for BlockchainMetadata */ - @Test - void testBlockchainMetadata() { - // TODO: test BlockchainMetadata - } - - /** Test the property 'scope' */ - @Test - void scopeTest() { - // TODO: test scope - } - - /** Test the property 'deprecated' */ - @Test - void deprecatedTest() { - // TODO: test deprecated - } - - /** Test the property 'media' */ - @Test - void mediaTest() { - // TODO: test media - } - - /** Test the property 'explorer' */ - @Test - void explorerTest() { - // TODO: test explorer - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/BlockchainNotFoundErrorResponseTest.java b/src/test/java/com/fireblocks/sdk/model/BlockchainNotFoundErrorResponseTest.java deleted file mode 100644 index 33ce9ff2..00000000 --- a/src/test/java/com/fireblocks/sdk/model/BlockchainNotFoundErrorResponseTest.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for BlockchainNotFoundErrorResponse */ -class BlockchainNotFoundErrorResponseTest { - private final BlockchainNotFoundErrorResponse model = new BlockchainNotFoundErrorResponse(); - - /** Model tests for BlockchainNotFoundErrorResponse */ - @Test - void testBlockchainNotFoundErrorResponse() { - // TODO: test BlockchainNotFoundErrorResponse - } - - /** Test the property 'message' */ - @Test - void messageTest() { - // TODO: test message - } - - /** Test the property 'code' */ - @Test - void codeTest() { - // TODO: test code - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/BlockchainOnchainTest.java b/src/test/java/com/fireblocks/sdk/model/BlockchainOnchainTest.java deleted file mode 100644 index 4d14fa77..00000000 --- a/src/test/java/com/fireblocks/sdk/model/BlockchainOnchainTest.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for BlockchainOnchain */ -class BlockchainOnchainTest { - private final BlockchainOnchain model = new BlockchainOnchain(); - - /** Model tests for BlockchainOnchain */ - @Test - void testBlockchainOnchain() { - // TODO: test BlockchainOnchain - } - - /** Test the property 'protocol' */ - @Test - void protocolTest() { - // TODO: test protocol - } - - /** Test the property 'chainId' */ - @Test - void chainIdTest() { - // TODO: test chainId - } - - /** Test the property 'test' */ - @Test - void testTest() { - // TODO: test test - } - - /** Test the property 'signingAlgo' */ - @Test - void signingAlgoTest() { - // TODO: test signingAlgo - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/BlockchainResponseTest.java b/src/test/java/com/fireblocks/sdk/model/BlockchainResponseTest.java deleted file mode 100644 index e5af92f9..00000000 --- a/src/test/java/com/fireblocks/sdk/model/BlockchainResponseTest.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for BlockchainResponse */ -class BlockchainResponseTest { - private final BlockchainResponse model = new BlockchainResponse(); - - /** Model tests for BlockchainResponse */ - @Test - void testBlockchainResponse() { - // TODO: test BlockchainResponse - } - - /** Test the property 'id' */ - @Test - void idTest() { - // TODO: test id - } - - /** Test the property 'legacyId' */ - @Test - void legacyIdTest() { - // TODO: test legacyId - } - - /** Test the property 'displayName' */ - @Test - void displayNameTest() { - // TODO: test displayName - } - - /** Test the property 'nativeAssetId' */ - @Test - void nativeAssetIdTest() { - // TODO: test nativeAssetId - } - - /** Test the property 'onchain' */ - @Test - void onchainTest() { - // TODO: test onchain - } - - /** Test the property 'metadata' */ - @Test - void metadataTest() { - // TODO: test metadata - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/BlockchainTransferTest.java b/src/test/java/com/fireblocks/sdk/model/BlockchainTransferTest.java deleted file mode 100644 index cb97ff29..00000000 --- a/src/test/java/com/fireblocks/sdk/model/BlockchainTransferTest.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for BlockchainTransfer */ -class BlockchainTransferTest { - private final BlockchainTransfer model = new BlockchainTransfer(); - - /** Model tests for BlockchainTransfer */ - @Test - void testBlockchainTransfer() { - // TODO: test BlockchainTransfer - } - - /** Test the property 'type' */ - @Test - void typeTest() { - // TODO: test type - } - - /** Test the property 'txHash' */ - @Test - void txHashTest() { - // TODO: test txHash - } - - /** Test the property 'amount' */ - @Test - void amountTest() { - // TODO: test amount - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/BpsFeeTest.java b/src/test/java/com/fireblocks/sdk/model/BpsFeeTest.java deleted file mode 100644 index 04aa525b..00000000 --- a/src/test/java/com/fireblocks/sdk/model/BpsFeeTest.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for BpsFee */ -class BpsFeeTest { - private final BpsFee model = new BpsFee(); - - /** Model tests for BpsFee */ - @Test - void testBpsFee() { - // TODO: test BpsFee - } - - /** Test the property 'amountType' */ - @Test - void amountTypeTest() { - // TODO: test amountType - } - - /** Test the property 'amount' */ - @Test - void amountTest() { - // TODO: test amount - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/BusinessIdentificationTest.java b/src/test/java/com/fireblocks/sdk/model/BusinessIdentificationTest.java deleted file mode 100644 index dfc3671f..00000000 --- a/src/test/java/com/fireblocks/sdk/model/BusinessIdentificationTest.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for BusinessIdentification */ -class BusinessIdentificationTest { - private final BusinessIdentification model = new BusinessIdentification(); - - /** Model tests for BusinessIdentification */ - @Test - void testBusinessIdentification() { - // TODO: test BusinessIdentification - } - - /** Test the property 'externalReferenceId' */ - @Test - void externalReferenceIdTest() { - // TODO: test externalReferenceId - } - - /** Test the property 'entityType' */ - @Test - void entityTypeTest() { - // TODO: test entityType - } - - /** Test the property 'participantRelationshipType' */ - @Test - void participantRelationshipTypeTest() { - // TODO: test participantRelationshipType - } - - /** Test the property 'businessName' */ - @Test - void businessNameTest() { - // TODO: test businessName - } - - /** Test the property 'registrationNumber' */ - @Test - void registrationNumberTest() { - // TODO: test registrationNumber - } - - /** Test the property 'postalAddress' */ - @Test - void postalAddressTest() { - // TODO: test postalAddress - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/CallbackHandlerRequestTest.java b/src/test/java/com/fireblocks/sdk/model/CallbackHandlerRequestTest.java deleted file mode 100644 index e9f9b7cd..00000000 --- a/src/test/java/com/fireblocks/sdk/model/CallbackHandlerRequestTest.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for CallbackHandlerRequest */ -class CallbackHandlerRequestTest { - private final CallbackHandlerRequest model = new CallbackHandlerRequest(); - - /** Model tests for CallbackHandlerRequest */ - @Test - void testCallbackHandlerRequest() { - // TODO: test CallbackHandlerRequest - } - - /** Test the property 'url' */ - @Test - void urlTest() { - // TODO: test url - } - - /** Test the property 'publicKey' */ - @Test - void publicKeyTest() { - // TODO: test publicKey - } - - /** Test the property 'cert' */ - @Test - void certTest() { - // TODO: test cert - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/CallbackHandlerTest.java b/src/test/java/com/fireblocks/sdk/model/CallbackHandlerTest.java deleted file mode 100644 index efd9bf8e..00000000 --- a/src/test/java/com/fireblocks/sdk/model/CallbackHandlerTest.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for CallbackHandler */ -class CallbackHandlerTest { - private final CallbackHandler model = new CallbackHandler(); - - /** Model tests for CallbackHandler */ - @Test - void testCallbackHandler() { - // TODO: test CallbackHandler - } - - /** Test the property 'url' */ - @Test - void urlTest() { - // TODO: test url - } - - /** Test the property 'publicKey' */ - @Test - void publicKeyTest() { - // TODO: test publicKey - } - - /** Test the property 'certPublicKeyHash' */ - @Test - void certPublicKeyHashTest() { - // TODO: test certPublicKeyHash - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/CapabilityTest.java b/src/test/java/com/fireblocks/sdk/model/CapabilityTest.java deleted file mode 100644 index f2ed2fac..00000000 --- a/src/test/java/com/fireblocks/sdk/model/CapabilityTest.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for Capability */ -class CapabilityTest { - /** Model tests for Capability */ - @Test - void testCapability() { - // TODO: test Capability - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/ChainDescriptorTest.java b/src/test/java/com/fireblocks/sdk/model/ChainDescriptorTest.java deleted file mode 100644 index 4b7e89f0..00000000 --- a/src/test/java/com/fireblocks/sdk/model/ChainDescriptorTest.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for ChainDescriptor */ -class ChainDescriptorTest { - /** Model tests for ChainDescriptor */ - @Test - void testChainDescriptor() { - // TODO: test ChainDescriptor - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/ChainInfoResponseTest.java b/src/test/java/com/fireblocks/sdk/model/ChainInfoResponseDtoTest.java similarity index 80% rename from src/test/java/com/fireblocks/sdk/model/ChainInfoResponseTest.java rename to src/test/java/com/fireblocks/sdk/model/ChainInfoResponseDtoTest.java index 3697fbaa..b4576c90 100644 --- a/src/test/java/com/fireblocks/sdk/model/ChainInfoResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ChainInfoResponseDtoTest.java @@ -15,14 +15,14 @@ import org.junit.jupiter.api.Test; -/** Model tests for ChainInfoResponse */ -class ChainInfoResponseTest { - private final ChainInfoResponse model = new ChainInfoResponse(); +/** Model tests for ChainInfoResponseDto */ +class ChainInfoResponseDtoTest { + private final ChainInfoResponseDto model = new ChainInfoResponseDto(); - /** Model tests for ChainInfoResponse */ + /** Model tests for ChainInfoResponseDto */ @Test - void testChainInfoResponse() { - // TODO: test ChainInfoResponse + void testChainInfoResponseDto() { + // TODO: test ChainInfoResponseDto } /** Test the property 'chainDescriptor' */ diff --git a/src/test/java/com/fireblocks/sdk/model/ChannelDvnConfigWithConfirmationsTest.java b/src/test/java/com/fireblocks/sdk/model/ChannelDvnConfigWithConfirmationsTest.java deleted file mode 100644 index 0268de91..00000000 --- a/src/test/java/com/fireblocks/sdk/model/ChannelDvnConfigWithConfirmationsTest.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for ChannelDvnConfigWithConfirmations */ -class ChannelDvnConfigWithConfirmationsTest { - private final ChannelDvnConfigWithConfirmations model = new ChannelDvnConfigWithConfirmations(); - - /** Model tests for ChannelDvnConfigWithConfirmations */ - @Test - void testChannelDvnConfigWithConfirmations() { - // TODO: test ChannelDvnConfigWithConfirmations - } - - /** Test the property 'sendConfig' */ - @Test - void sendConfigTest() { - // TODO: test sendConfig - } - - /** Test the property 'receiveConfig' */ - @Test - void receiveConfigTest() { - // TODO: test receiveConfig - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/CollectionBurnRequestDtoTest.java b/src/test/java/com/fireblocks/sdk/model/CollectionBurnRequestDtoTest.java deleted file mode 100644 index aeab0082..00000000 --- a/src/test/java/com/fireblocks/sdk/model/CollectionBurnRequestDtoTest.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for CollectionBurnRequestDto */ -class CollectionBurnRequestDtoTest { - private final CollectionBurnRequestDto model = new CollectionBurnRequestDto(); - - /** Model tests for CollectionBurnRequestDto */ - @Test - void testCollectionBurnRequestDto() { - // TODO: test CollectionBurnRequestDto - } - - /** Test the property 'vaultAccountId' */ - @Test - void vaultAccountIdTest() { - // TODO: test vaultAccountId - } - - /** Test the property 'tokenId' */ - @Test - void tokenIdTest() { - // TODO: test tokenId - } - - /** Test the property 'amount' */ - @Test - void amountTest() { - // TODO: test amount - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/CollectionBurnResponseDtoTest.java b/src/test/java/com/fireblocks/sdk/model/CollectionBurnResponseDtoTest.java deleted file mode 100644 index 65aee98d..00000000 --- a/src/test/java/com/fireblocks/sdk/model/CollectionBurnResponseDtoTest.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for CollectionBurnResponseDto */ -class CollectionBurnResponseDtoTest { - private final CollectionBurnResponseDto model = new CollectionBurnResponseDto(); - - /** Model tests for CollectionBurnResponseDto */ - @Test - void testCollectionBurnResponseDto() { - // TODO: test CollectionBurnResponseDto - } - - /** Test the property 'txId' */ - @Test - void txIdTest() { - // TODO: test txId - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/CollectionDeployRequestDtoTest.java b/src/test/java/com/fireblocks/sdk/model/CollectionDeployRequestDtoTest.java deleted file mode 100644 index bd11971f..00000000 --- a/src/test/java/com/fireblocks/sdk/model/CollectionDeployRequestDtoTest.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for CollectionDeployRequestDto */ -class CollectionDeployRequestDtoTest { - private final CollectionDeployRequestDto model = new CollectionDeployRequestDto(); - - /** Model tests for CollectionDeployRequestDto */ - @Test - void testCollectionDeployRequestDto() { - // TODO: test CollectionDeployRequestDto - } - - /** Test the property 'baseAssetId' */ - @Test - void baseAssetIdTest() { - // TODO: test baseAssetId - } - - /** Test the property 'vaultAccountId' */ - @Test - void vaultAccountIdTest() { - // TODO: test vaultAccountId - } - - /** Test the property 'type' */ - @Test - void typeTest() { - // TODO: test type - } - - /** Test the property 'name' */ - @Test - void nameTest() { - // TODO: test name - } - - /** Test the property 'symbol' */ - @Test - void symbolTest() { - // TODO: test symbol - } - - /** Test the property 'adminAddress' */ - @Test - void adminAddressTest() { - // TODO: test adminAddress - } - - /** Test the property 'displayName' */ - @Test - void displayNameTest() { - // TODO: test displayName - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/CollectionLinkDtoTest.java b/src/test/java/com/fireblocks/sdk/model/CollectionLinkDtoTest.java deleted file mode 100644 index 0a1c0bd0..00000000 --- a/src/test/java/com/fireblocks/sdk/model/CollectionLinkDtoTest.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for CollectionLinkDto */ -class CollectionLinkDtoTest { - private final CollectionLinkDto model = new CollectionLinkDto(); - - /** Model tests for CollectionLinkDto */ - @Test - void testCollectionLinkDto() { - // TODO: test CollectionLinkDto - } - - /** Test the property 'id' */ - @Test - void idTest() { - // TODO: test id - } - - /** Test the property 'status' */ - @Test - void statusTest() { - // TODO: test status - } - - /** Test the property 'type' */ - @Test - void typeTest() { - // TODO: test type - } - - /** Test the property 'displayName' */ - @Test - void displayNameTest() { - // TODO: test displayName - } - - /** Test the property 'collectionMetadata' */ - @Test - void collectionMetadataTest() { - // TODO: test collectionMetadata - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/CollectionMintRequestDtoTest.java b/src/test/java/com/fireblocks/sdk/model/CollectionMintRequestDtoTest.java deleted file mode 100644 index 7f8d7b31..00000000 --- a/src/test/java/com/fireblocks/sdk/model/CollectionMintRequestDtoTest.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for CollectionMintRequestDto */ -class CollectionMintRequestDtoTest { - private final CollectionMintRequestDto model = new CollectionMintRequestDto(); - - /** Model tests for CollectionMintRequestDto */ - @Test - void testCollectionMintRequestDto() { - // TODO: test CollectionMintRequestDto - } - - /** Test the property 'vaultAccountId' */ - @Test - void vaultAccountIdTest() { - // TODO: test vaultAccountId - } - - /** Test the property 'to' */ - @Test - void toTest() { - // TODO: test to - } - - /** Test the property 'tokenId' */ - @Test - void tokenIdTest() { - // TODO: test tokenId - } - - /** Test the property 'amount' */ - @Test - void amountTest() { - // TODO: test amount - } - - /** Test the property 'metadataURI' */ - @Test - void metadataURITest() { - // TODO: test metadataURI - } - - /** Test the property 'metadata' */ - @Test - void metadataTest() { - // TODO: test metadata - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/CollectionMintResponseDtoTest.java b/src/test/java/com/fireblocks/sdk/model/CollectionMintResponseDtoTest.java deleted file mode 100644 index 44e1b2c6..00000000 --- a/src/test/java/com/fireblocks/sdk/model/CollectionMintResponseDtoTest.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for CollectionMintResponseDto */ -class CollectionMintResponseDtoTest { - private final CollectionMintResponseDto model = new CollectionMintResponseDto(); - - /** Model tests for CollectionMintResponseDto */ - @Test - void testCollectionMintResponseDto() { - // TODO: test CollectionMintResponseDto - } - - /** Test the property 'txId' */ - @Test - void txIdTest() { - // TODO: test txId - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/CollectionTokenMetadataAttributeDtoTest.java b/src/test/java/com/fireblocks/sdk/model/CollectionTokenMetadataAttributeDtoTest.java deleted file mode 100644 index fd34392d..00000000 --- a/src/test/java/com/fireblocks/sdk/model/CollectionTokenMetadataAttributeDtoTest.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for CollectionTokenMetadataAttributeDto */ -class CollectionTokenMetadataAttributeDtoTest { - private final CollectionTokenMetadataAttributeDto model = - new CollectionTokenMetadataAttributeDto(); - - /** Model tests for CollectionTokenMetadataAttributeDto */ - @Test - void testCollectionTokenMetadataAttributeDto() { - // TODO: test CollectionTokenMetadataAttributeDto - } - - /** Test the property 'traitType' */ - @Test - void traitTypeTest() { - // TODO: test traitType - } - - /** Test the property 'value' */ - @Test - void valueTest() { - // TODO: test value - } - - /** Test the property 'displayType' */ - @Test - void displayTypeTest() { - // TODO: test displayType - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/CollectionTokenMetadataDtoTest.java b/src/test/java/com/fireblocks/sdk/model/CollectionTokenMetadataDtoTest.java deleted file mode 100644 index 37ac5d02..00000000 --- a/src/test/java/com/fireblocks/sdk/model/CollectionTokenMetadataDtoTest.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for CollectionTokenMetadataDto */ -class CollectionTokenMetadataDtoTest { - private final CollectionTokenMetadataDto model = new CollectionTokenMetadataDto(); - - /** Model tests for CollectionTokenMetadataDto */ - @Test - void testCollectionTokenMetadataDto() { - // TODO: test CollectionTokenMetadataDto - } - - /** Test the property 'name' */ - @Test - void nameTest() { - // TODO: test name - } - - /** Test the property 'description' */ - @Test - void descriptionTest() { - // TODO: test description - } - - /** Test the property 'image' */ - @Test - void imageTest() { - // TODO: test image - } - - /** Test the property 'animationUrl' */ - @Test - void animationUrlTest() { - // TODO: test animationUrl - } - - /** Test the property 'externalUrl' */ - @Test - void externalUrlTest() { - // TODO: test externalUrl - } - - /** Test the property 'attributes' */ - @Test - void attributesTest() { - // TODO: test attributes - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/CollectionTypeTest.java b/src/test/java/com/fireblocks/sdk/model/CollectionTypeTest.java deleted file mode 100644 index c9c4b78a..00000000 --- a/src/test/java/com/fireblocks/sdk/model/CollectionTypeTest.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for CollectionType */ -class CollectionTypeTest { - /** Model tests for CollectionType */ - @Test - void testCollectionType() { - // TODO: test CollectionType - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/CommittedQuoteTypeTest.java b/src/test/java/com/fireblocks/sdk/model/CommittedQuoteTypeTest.java deleted file mode 100644 index 223baaff..00000000 --- a/src/test/java/com/fireblocks/sdk/model/CommittedQuoteTypeTest.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for CommittedQuoteType */ -class CommittedQuoteTypeTest { - private final CommittedQuoteType model = new CommittedQuoteType(); - - /** Model tests for CommittedQuoteType */ - @Test - void testCommittedQuoteType() { - // TODO: test CommittedQuoteType - } - - /** Test the property 'type' */ - @Test - void typeTest() { - // TODO: test type - } - - /** Test the property 'expiresAt' */ - @Test - void expiresAtTest() { - // TODO: test expiresAt - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/ComplianceResultFullPayloadTest.java b/src/test/java/com/fireblocks/sdk/model/ComplianceResultFullPayloadTest.java deleted file mode 100644 index a01e2599..00000000 --- a/src/test/java/com/fireblocks/sdk/model/ComplianceResultFullPayloadTest.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for ComplianceResultFullPayload */ -class ComplianceResultFullPayloadTest { - private final ComplianceResultFullPayload model = new ComplianceResultFullPayload(); - - /** Model tests for ComplianceResultFullPayload */ - @Test - void testComplianceResultFullPayload() { - // TODO: test ComplianceResultFullPayload - } - - /** Test the property 'aml' */ - @Test - void amlTest() { - // TODO: test aml - } - - /** Test the property 'tr' */ - @Test - void trTest() { - // TODO: test tr - } - - /** Test the property 'amlList' */ - @Test - void amlListTest() { - // TODO: test amlList - } - - /** Test the property 'status' */ - @Test - void statusTest() { - // TODO: test status - } - - /** Test the property 'amlRegistration' */ - @Test - void amlRegistrationTest() { - // TODO: test amlRegistration - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/ComplianceResultStatusesEnumTest.java b/src/test/java/com/fireblocks/sdk/model/ComplianceResultStatusesEnumTest.java deleted file mode 100644 index e6c12628..00000000 --- a/src/test/java/com/fireblocks/sdk/model/ComplianceResultStatusesEnumTest.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for ComplianceResultStatusesEnum */ -class ComplianceResultStatusesEnumTest { - /** Model tests for ComplianceResultStatusesEnum */ - @Test - void testComplianceResultStatusesEnum() { - // TODO: test ComplianceResultStatusesEnum - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/ComplianceResultsTest.java b/src/test/java/com/fireblocks/sdk/model/ComplianceResultTest.java similarity index 79% rename from src/test/java/com/fireblocks/sdk/model/ComplianceResultsTest.java rename to src/test/java/com/fireblocks/sdk/model/ComplianceResultTest.java index a1ab2c96..c1411ee4 100644 --- a/src/test/java/com/fireblocks/sdk/model/ComplianceResultsTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ComplianceResultTest.java @@ -15,14 +15,14 @@ import org.junit.jupiter.api.Test; -/** Model tests for ComplianceResults */ -class ComplianceResultsTest { - private final ComplianceResults model = new ComplianceResults(); +/** Model tests for ComplianceResult */ +class ComplianceResultTest { + private final ComplianceResult model = new ComplianceResult(); - /** Model tests for ComplianceResults */ + /** Model tests for ComplianceResult */ @Test - void testComplianceResults() { - // TODO: test ComplianceResults + void testComplianceResult() { + // TODO: test ComplianceResult } /** Test the property 'aml' */ diff --git a/src/test/java/com/fireblocks/sdk/model/ComplianceScreeningResultFullPayloadTest.java b/src/test/java/com/fireblocks/sdk/model/ComplianceScreeningResultFullPayloadTest.java deleted file mode 100644 index 9ae35904..00000000 --- a/src/test/java/com/fireblocks/sdk/model/ComplianceScreeningResultFullPayloadTest.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for ComplianceScreeningResultFullPayload */ -class ComplianceScreeningResultFullPayloadTest { - private final ComplianceScreeningResultFullPayload model = - new ComplianceScreeningResultFullPayload(); - - /** Model tests for ComplianceScreeningResultFullPayload */ - @Test - void testComplianceScreeningResultFullPayload() { - // TODO: test ComplianceScreeningResultFullPayload - } - - /** Test the property 'provider' */ - @Test - void providerTest() { - // TODO: test provider - } - - /** Test the property 'payload' */ - @Test - void payloadTest() { - // TODO: test payload - } - - /** Test the property 'bypassReason' */ - @Test - void bypassReasonTest() { - // TODO: test bypassReason - } - - /** Test the property 'screeningStatus' */ - @Test - void screeningStatusTest() { - // TODO: test screeningStatus - } - - /** Test the property 'timestamp' */ - @Test - void timestampTest() { - // TODO: test timestamp - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/ConnectedAccountApprovalStatusTest.java b/src/test/java/com/fireblocks/sdk/model/ConnectedAccountApprovalStatusTest.java deleted file mode 100644 index 8971dacb..00000000 --- a/src/test/java/com/fireblocks/sdk/model/ConnectedAccountApprovalStatusTest.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for ConnectedAccountApprovalStatus */ -class ConnectedAccountApprovalStatusTest { - /** Model tests for ConnectedAccountApprovalStatus */ - @Test - void testConnectedAccountApprovalStatus() { - // TODO: test ConnectedAccountApprovalStatus - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/ConnectedAccountAssetTypeTest.java b/src/test/java/com/fireblocks/sdk/model/ConnectedAccountAssetTypeTest.java deleted file mode 100644 index e0070c59..00000000 --- a/src/test/java/com/fireblocks/sdk/model/ConnectedAccountAssetTypeTest.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for ConnectedAccountAssetType */ -class ConnectedAccountAssetTypeTest { - /** Model tests for ConnectedAccountAssetType */ - @Test - void testConnectedAccountAssetType() { - // TODO: test ConnectedAccountAssetType - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/ConnectedAccountBalancesResponseTest.java b/src/test/java/com/fireblocks/sdk/model/ConnectedAccountBalancesResponseTest.java deleted file mode 100644 index 704c1a42..00000000 --- a/src/test/java/com/fireblocks/sdk/model/ConnectedAccountBalancesResponseTest.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for ConnectedAccountBalancesResponse */ -class ConnectedAccountBalancesResponseTest { - private final ConnectedAccountBalancesResponse model = new ConnectedAccountBalancesResponse(); - - /** Model tests for ConnectedAccountBalancesResponse */ - @Test - void testConnectedAccountBalancesResponse() { - // TODO: test ConnectedAccountBalancesResponse - } - - /** Test the property 'data' */ - @Test - void dataTest() { - // TODO: test data - } - - /** Test the property 'total' */ - @Test - void totalTest() { - // TODO: test total - } - - /** Test the property 'next' */ - @Test - void nextTest() { - // TODO: test next - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/ConnectedAccountBalancesTest.java b/src/test/java/com/fireblocks/sdk/model/ConnectedAccountBalancesTest.java deleted file mode 100644 index 94157d71..00000000 --- a/src/test/java/com/fireblocks/sdk/model/ConnectedAccountBalancesTest.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for ConnectedAccountBalances */ -class ConnectedAccountBalancesTest { - private final ConnectedAccountBalances model = new ConnectedAccountBalances(); - - /** Model tests for ConnectedAccountBalances */ - @Test - void testConnectedAccountBalances() { - // TODO: test ConnectedAccountBalances - } - - /** Test the property 'assetId' */ - @Test - void assetIdTest() { - // TODO: test assetId - } - - /** Test the property 'availableAmount' */ - @Test - void availableAmountTest() { - // TODO: test availableAmount - } - - /** Test the property 'totalAmount' */ - @Test - void totalAmountTest() { - // TODO: test totalAmount - } - - /** Test the property 'lockedAmount' */ - @Test - void lockedAmountTest() { - // TODO: test lockedAmount - } - - /** Test the property 'creditAmount' */ - @Test - void creditAmountTest() { - // TODO: test creditAmount - } - - /** Test the property 'balanceType' */ - @Test - void balanceTypeTest() { - // TODO: test balanceType - } - - /** Test the property 'balanceName' */ - @Test - void balanceNameTest() { - // TODO: test balanceName - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/ConnectedAccountCapabilityTest.java b/src/test/java/com/fireblocks/sdk/model/ConnectedAccountCapabilityTest.java deleted file mode 100644 index 116079d6..00000000 --- a/src/test/java/com/fireblocks/sdk/model/ConnectedAccountCapabilityTest.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for ConnectedAccountCapability */ -class ConnectedAccountCapabilityTest { - /** Model tests for ConnectedAccountCapability */ - @Test - void testConnectedAccountCapability() { - // TODO: test ConnectedAccountCapability - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/ConnectedAccountManifestTest.java b/src/test/java/com/fireblocks/sdk/model/ConnectedAccountManifestTest.java deleted file mode 100644 index 48901529..00000000 --- a/src/test/java/com/fireblocks/sdk/model/ConnectedAccountManifestTest.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for ConnectedAccountManifest */ -class ConnectedAccountManifestTest { - private final ConnectedAccountManifest model = new ConnectedAccountManifest(); - - /** Model tests for ConnectedAccountManifest */ - @Test - void testConnectedAccountManifest() { - // TODO: test ConnectedAccountManifest - } - - /** Test the property 'assetTypes' */ - @Test - void assetTypesTest() { - // TODO: test assetTypes - } - - /** Test the property 'capabilities' */ - @Test - void capabilitiesTest() { - // TODO: test capabilities - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/ConnectedAccountRateResponseTest.java b/src/test/java/com/fireblocks/sdk/model/ConnectedAccountRateResponseTest.java deleted file mode 100644 index 66cee00d..00000000 --- a/src/test/java/com/fireblocks/sdk/model/ConnectedAccountRateResponseTest.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for ConnectedAccountRateResponse */ -class ConnectedAccountRateResponseTest { - private final ConnectedAccountRateResponse model = new ConnectedAccountRateResponse(); - - /** Model tests for ConnectedAccountRateResponse */ - @Test - void testConnectedAccountRateResponse() { - // TODO: test ConnectedAccountRateResponse - } - - /** Test the property 'accountId' */ - @Test - void accountIdTest() { - // TODO: test accountId - } - - /** Test the property 'baseAssetId' */ - @Test - void baseAssetIdTest() { - // TODO: test baseAssetId - } - - /** Test the property 'quoteAssetId' */ - @Test - void quoteAssetIdTest() { - // TODO: test quoteAssetId - } - - /** Test the property 'rate' */ - @Test - void rateTest() { - // TODO: test rate - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/ConnectedAccountTest.java b/src/test/java/com/fireblocks/sdk/model/ConnectedAccountTest.java deleted file mode 100644 index 9d84bb12..00000000 --- a/src/test/java/com/fireblocks/sdk/model/ConnectedAccountTest.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for ConnectedAccount */ -class ConnectedAccountTest { - private final ConnectedAccount model = new ConnectedAccount(); - - /** Model tests for ConnectedAccount */ - @Test - void testConnectedAccount() { - // TODO: test ConnectedAccount - } - - /** Test the property 'id' */ - @Test - void idTest() { - // TODO: test id - } - - /** Test the property 'name' */ - @Test - void nameTest() { - // TODO: test name - } - - /** Test the property 'providerId' */ - @Test - void providerIdTest() { - // TODO: test providerId - } - - /** Test the property 'status' */ - @Test - void statusTest() { - // TODO: test status - } - - /** Test the property 'totalBalance' */ - @Test - void totalBalanceTest() { - // TODO: test totalBalance - } - - /** Test the property 'manifest' */ - @Test - void manifestTest() { - // TODO: test manifest - } - - /** Test the property 'parentId' */ - @Test - void parentIdTest() { - // TODO: test parentId - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/ConnectedAccountTotalBalanceTest.java b/src/test/java/com/fireblocks/sdk/model/ConnectedAccountTotalBalanceTest.java deleted file mode 100644 index 3c25ab4e..00000000 --- a/src/test/java/com/fireblocks/sdk/model/ConnectedAccountTotalBalanceTest.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for ConnectedAccountTotalBalance */ -class ConnectedAccountTotalBalanceTest { - private final ConnectedAccountTotalBalance model = new ConnectedAccountTotalBalance(); - - /** Model tests for ConnectedAccountTotalBalance */ - @Test - void testConnectedAccountTotalBalance() { - // TODO: test ConnectedAccountTotalBalance - } - - /** Test the property 'amount' */ - @Test - void amountTest() { - // TODO: test amount - } - - /** Test the property 'denominatedAssetId' */ - @Test - void denominatedAssetIdTest() { - // TODO: test denominatedAssetId - } - - /** Test the property 'hasFullAssetCoverage' */ - @Test - void hasFullAssetCoverageTest() { - // TODO: test hasFullAssetCoverage - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/ConnectedAccountTradingPairSupportedTypeTest.java b/src/test/java/com/fireblocks/sdk/model/ConnectedAccountTradingPairSupportedTypeTest.java deleted file mode 100644 index 4aebcfbd..00000000 --- a/src/test/java/com/fireblocks/sdk/model/ConnectedAccountTradingPairSupportedTypeTest.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for ConnectedAccountTradingPairSupportedType */ -class ConnectedAccountTradingPairSupportedTypeTest { - /** Model tests for ConnectedAccountTradingPairSupportedType */ - @Test - void testConnectedAccountTradingPairSupportedType() { - // TODO: test ConnectedAccountTradingPairSupportedType - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/ConnectedAccountTradingPairTest.java b/src/test/java/com/fireblocks/sdk/model/ConnectedAccountTradingPairTest.java deleted file mode 100644 index e3e75612..00000000 --- a/src/test/java/com/fireblocks/sdk/model/ConnectedAccountTradingPairTest.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for ConnectedAccountTradingPair */ -class ConnectedAccountTradingPairTest { - private final ConnectedAccountTradingPair model = new ConnectedAccountTradingPair(); - - /** Model tests for ConnectedAccountTradingPair */ - @Test - void testConnectedAccountTradingPair() { - // TODO: test ConnectedAccountTradingPair - } - - /** Test the property 'id' */ - @Test - void idTest() { - // TODO: test id - } - - /** Test the property 'baseAssetId' */ - @Test - void baseAssetIdTest() { - // TODO: test baseAssetId - } - - /** Test the property 'quoteAssetId' */ - @Test - void quoteAssetIdTest() { - // TODO: test quoteAssetId - } - - /** Test the property 'supportedTypes' */ - @Test - void supportedTypesTest() { - // TODO: test supportedTypes - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/ConnectedAccountTradingPairsResponseTest.java b/src/test/java/com/fireblocks/sdk/model/ConnectedAccountTradingPairsResponseTest.java deleted file mode 100644 index eae5f738..00000000 --- a/src/test/java/com/fireblocks/sdk/model/ConnectedAccountTradingPairsResponseTest.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for ConnectedAccountTradingPairsResponse */ -class ConnectedAccountTradingPairsResponseTest { - private final ConnectedAccountTradingPairsResponse model = - new ConnectedAccountTradingPairsResponse(); - - /** Model tests for ConnectedAccountTradingPairsResponse */ - @Test - void testConnectedAccountTradingPairsResponse() { - // TODO: test ConnectedAccountTradingPairsResponse - } - - /** Test the property 'data' */ - @Test - void dataTest() { - // TODO: test data - } - - /** Test the property 'total' */ - @Test - void totalTest() { - // TODO: test total - } - - /** Test the property 'next' */ - @Test - void nextTest() { - // TODO: test next - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/ConnectedAccountsResponseTest.java b/src/test/java/com/fireblocks/sdk/model/ConnectedAccountsResponseTest.java deleted file mode 100644 index 864eb1a8..00000000 --- a/src/test/java/com/fireblocks/sdk/model/ConnectedAccountsResponseTest.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for ConnectedAccountsResponse */ -class ConnectedAccountsResponseTest { - private final ConnectedAccountsResponse model = new ConnectedAccountsResponse(); - - /** Model tests for ConnectedAccountsResponse */ - @Test - void testConnectedAccountsResponse() { - // TODO: test ConnectedAccountsResponse - } - - /** Test the property 'data' */ - @Test - void dataTest() { - // TODO: test data - } - - /** Test the property 'total' */ - @Test - void totalTest() { - // TODO: test total - } - - /** Test the property 'next' */ - @Test - void nextTest() { - // TODO: test next - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/ConnectedSingleAccountResponseTest.java b/src/test/java/com/fireblocks/sdk/model/ConnectedSingleAccountResponseTest.java deleted file mode 100644 index f87a69fa..00000000 --- a/src/test/java/com/fireblocks/sdk/model/ConnectedSingleAccountResponseTest.java +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for ConnectedSingleAccountResponse */ -class ConnectedSingleAccountResponseTest { - private final ConnectedSingleAccountResponse model = new ConnectedSingleAccountResponse(); - - /** Model tests for ConnectedSingleAccountResponse */ - @Test - void testConnectedSingleAccountResponse() { - // TODO: test ConnectedSingleAccountResponse - } - - /** Test the property 'id' */ - @Test - void idTest() { - // TODO: test id - } - - /** Test the property 'name' */ - @Test - void nameTest() { - // TODO: test name - } - - /** Test the property 'providerId' */ - @Test - void providerIdTest() { - // TODO: test providerId - } - - /** Test the property 'status' */ - @Test - void statusTest() { - // TODO: test status - } - - /** Test the property 'totalBalance' */ - @Test - void totalBalanceTest() { - // TODO: test totalBalance - } - - /** Test the property 'manifest' */ - @Test - void manifestTest() { - // TODO: test manifest - } - - /** Test the property 'parentId' */ - @Test - void parentIdTest() { - // TODO: test parentId - } - - /** Test the property 'subAccountsIds' */ - @Test - void subAccountsIdsTest() { - // TODO: test subAccountsIds - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/ConnectedSingleAccountTest.java b/src/test/java/com/fireblocks/sdk/model/ConnectedSingleAccountTest.java deleted file mode 100644 index 86f2c672..00000000 --- a/src/test/java/com/fireblocks/sdk/model/ConnectedSingleAccountTest.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for ConnectedSingleAccount */ -class ConnectedSingleAccountTest { - private final ConnectedSingleAccount model = new ConnectedSingleAccount(); - - /** Model tests for ConnectedSingleAccount */ - @Test - void testConnectedSingleAccount() { - // TODO: test ConnectedSingleAccount - } - - /** Test the property 'subAccountsIds' */ - @Test - void subAccountsIdsTest() { - // TODO: test subAccountsIds - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/ContractAbiResponseDtoAbiInnerTest.java b/src/test/java/com/fireblocks/sdk/model/ContractAbiResponseDtoAbiInnerTest.java deleted file mode 100644 index c7e151b5..00000000 --- a/src/test/java/com/fireblocks/sdk/model/ContractAbiResponseDtoAbiInnerTest.java +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for ContractAbiResponseDtoAbiInner */ -class ContractAbiResponseDtoAbiInnerTest { - private final ContractAbiResponseDtoAbiInner model = new ContractAbiResponseDtoAbiInner(); - - /** Model tests for ContractAbiResponseDtoAbiInner */ - @Test - void testContractAbiResponseDtoAbiInner() { - // TODO: test ContractAbiResponseDtoAbiInner - } - - /** Test the property 'name' */ - @Test - void nameTest() { - // TODO: test name - } - - /** Test the property 'stateMutability' */ - @Test - void stateMutabilityTest() { - // TODO: test stateMutability - } - - /** Test the property 'type' */ - @Test - void typeTest() { - // TODO: test type - } - - /** Test the property 'inputs' */ - @Test - void inputsTest() { - // TODO: test inputs - } - - /** Test the property 'outputs' */ - @Test - void outputsTest() { - // TODO: test outputs - } - - /** Test the property 'description' */ - @Test - void descriptionTest() { - // TODO: test description - } - - /** Test the property 'discriminator' */ - @Test - void discriminatorTest() { - // TODO: test discriminator - } - - /** Test the property 'accounts' */ - @Test - void accountsTest() { - // TODO: test accounts - } - - /** Test the property 'args' */ - @Test - void argsTest() { - // TODO: test args - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/ContractDataDecodeDataTypeTest.java b/src/test/java/com/fireblocks/sdk/model/ContractDataDecodeDataTypeTest.java deleted file mode 100644 index e10deea5..00000000 --- a/src/test/java/com/fireblocks/sdk/model/ContractDataDecodeDataTypeTest.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for ContractDataDecodeDataType */ -class ContractDataDecodeDataTypeTest { - /** Model tests for ContractDataDecodeDataType */ - @Test - void testContractDataDecodeDataType() { - // TODO: test ContractDataDecodeDataType - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/ContractDataDecodeErrorTest.java b/src/test/java/com/fireblocks/sdk/model/ContractDataDecodeErrorTest.java deleted file mode 100644 index 7dac6c84..00000000 --- a/src/test/java/com/fireblocks/sdk/model/ContractDataDecodeErrorTest.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for ContractDataDecodeError */ -class ContractDataDecodeErrorTest { - private final ContractDataDecodeError model = new ContractDataDecodeError(); - - /** Model tests for ContractDataDecodeError */ - @Test - void testContractDataDecodeError() { - // TODO: test ContractDataDecodeError - } - - /** Test the property 'message' */ - @Test - void messageTest() { - // TODO: test message - } - - /** Test the property 'code' */ - @Test - void codeTest() { - // TODO: test code - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/ContractDataDecodeRequestDataTest.java b/src/test/java/com/fireblocks/sdk/model/ContractDataDecodeRequestDataTest.java deleted file mode 100644 index d42133a3..00000000 --- a/src/test/java/com/fireblocks/sdk/model/ContractDataDecodeRequestDataTest.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for ContractDataDecodeRequestData */ -class ContractDataDecodeRequestDataTest { - private final ContractDataDecodeRequestData model = new ContractDataDecodeRequestData(); - - /** Model tests for ContractDataDecodeRequestData */ - @Test - void testContractDataDecodeRequestData() { - // TODO: test ContractDataDecodeRequestData - } - - /** Test the property 'data' */ - @Test - void dataTest() { - // TODO: test data - } - - /** Test the property 'topics' */ - @Test - void topicsTest() { - // TODO: test topics - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/ContractDataDecodeRequestTest.java b/src/test/java/com/fireblocks/sdk/model/ContractDataDecodeRequestTest.java deleted file mode 100644 index a761cc68..00000000 --- a/src/test/java/com/fireblocks/sdk/model/ContractDataDecodeRequestTest.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for ContractDataDecodeRequest */ -class ContractDataDecodeRequestTest { - private final ContractDataDecodeRequest model = new ContractDataDecodeRequest(); - - /** Model tests for ContractDataDecodeRequest */ - @Test - void testContractDataDecodeRequest() { - // TODO: test ContractDataDecodeRequest - } - - /** Test the property 'data' */ - @Test - void dataTest() { - // TODO: test data - } - - /** Test the property 'dataType' */ - @Test - void dataTypeTest() { - // TODO: test dataType - } - - /** Test the property 'abi' */ - @Test - void abiTest() { - // TODO: test abi - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/ContractDataDecodeResponseParamsTest.java b/src/test/java/com/fireblocks/sdk/model/ContractDataDecodeResponseParamsTest.java deleted file mode 100644 index cb4d6209..00000000 --- a/src/test/java/com/fireblocks/sdk/model/ContractDataDecodeResponseParamsTest.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for ContractDataDecodeResponseParams */ -class ContractDataDecodeResponseParamsTest { - private final ContractDataDecodeResponseParams model = new ContractDataDecodeResponseParams(); - - /** Model tests for ContractDataDecodeResponseParams */ - @Test - void testContractDataDecodeResponseParams() { - // TODO: test ContractDataDecodeResponseParams - } - - /** Test the property 'name' */ - @Test - void nameTest() { - // TODO: test name - } - - /** Test the property 'signature' */ - @Test - void signatureTest() { - // TODO: test signature - } - - /** Test the property 'args' */ - @Test - void argsTest() { - // TODO: test args - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/ContractDataDecodedResponseTest.java b/src/test/java/com/fireblocks/sdk/model/ContractDataDecodedResponseTest.java deleted file mode 100644 index 8a516558..00000000 --- a/src/test/java/com/fireblocks/sdk/model/ContractDataDecodedResponseTest.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for ContractDataDecodedResponse */ -class ContractDataDecodedResponseTest { - private final ContractDataDecodedResponse model = new ContractDataDecodedResponse(); - - /** Model tests for ContractDataDecodedResponse */ - @Test - void testContractDataDecodedResponse() { - // TODO: test ContractDataDecodedResponse - } - - /** Test the property 'result' */ - @Test - void resultTest() { - // TODO: test result - } - - /** Test the property 'type' */ - @Test - void typeTest() { - // TODO: test type - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/ContractDataLogDataParamTest.java b/src/test/java/com/fireblocks/sdk/model/ContractDataLogDataParamTest.java deleted file mode 100644 index 0c2ed4e4..00000000 --- a/src/test/java/com/fireblocks/sdk/model/ContractDataLogDataParamTest.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for ContractDataLogDataParam */ -class ContractDataLogDataParamTest { - private final ContractDataLogDataParam model = new ContractDataLogDataParam(); - - /** Model tests for ContractDataLogDataParam */ - @Test - void testContractDataLogDataParam() { - // TODO: test ContractDataLogDataParam - } - - /** Test the property 'data' */ - @Test - void dataTest() { - // TODO: test data - } - - /** Test the property 'topics' */ - @Test - void topicsTest() { - // TODO: test topics - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/ContractDeployRequestTest.java b/src/test/java/com/fireblocks/sdk/model/ContractDeployRequestTest.java index 64f58c18..8a21a3b4 100644 --- a/src/test/java/com/fireblocks/sdk/model/ContractDeployRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ContractDeployRequestTest.java @@ -42,22 +42,4 @@ void vaultAccountIdTest() { void constructorParametersTest() { // TODO: test constructorParameters } - - /** Test the property 'useGasless' */ - @Test - void useGaslessTest() { - // TODO: test useGasless - } - - /** Test the property 'fee' */ - @Test - void feeTest() { - // TODO: test fee - } - - /** Test the property 'feeLevel' */ - @Test - void feeLevelTest() { - // TODO: test feeLevel - } } diff --git a/src/test/java/com/fireblocks/sdk/model/ContractMethodConfigTest.java b/src/test/java/com/fireblocks/sdk/model/ContractMethodConfigTest.java deleted file mode 100644 index 0348ece9..00000000 --- a/src/test/java/com/fireblocks/sdk/model/ContractMethodConfigTest.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for ContractMethodConfig */ -class ContractMethodConfigTest { - private final ContractMethodConfig model = new ContractMethodConfig(); - - /** Model tests for ContractMethodConfig */ - @Test - void testContractMethodConfig() { - // TODO: test ContractMethodConfig - } - - /** Test the property 'methodCalls' */ - @Test - void methodCallsTest() { - // TODO: test methodCalls - } - - /** Test the property 'operator' */ - @Test - void operatorTest() { - // TODO: test operator - } - - /** Test the property 'payloadSuffix' */ - @Test - void payloadSuffixTest() { - // TODO: test payloadSuffix - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/ContractMethodPatternTest.java b/src/test/java/com/fireblocks/sdk/model/ContractMethodPatternTest.java deleted file mode 100644 index 85387a6c..00000000 --- a/src/test/java/com/fireblocks/sdk/model/ContractMethodPatternTest.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for ContractMethodPattern */ -class ContractMethodPatternTest { - private final ContractMethodPattern model = new ContractMethodPattern(); - - /** Model tests for ContractMethodPattern */ - @Test - void testContractMethodPattern() { - // TODO: test ContractMethodPattern - } - - /** Test the property 'methodCalls' */ - @Test - void methodCallsTest() { - // TODO: test methodCalls - } - - /** Test the property 'operator' */ - @Test - void operatorTest() { - // TODO: test operator - } - - /** Test the property 'payloadSuffix' */ - @Test - void payloadSuffixTest() { - // TODO: test payloadSuffix - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/ContractUploadRequestTest.java b/src/test/java/com/fireblocks/sdk/model/ContractUploadRequestTest.java index f36a44c8..561afda6 100644 --- a/src/test/java/com/fireblocks/sdk/model/ContractUploadRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ContractUploadRequestTest.java @@ -78,10 +78,4 @@ void abiTest() { void attributesTest() { // TODO: test attributes } - - /** Test the property 'protocol' */ - @Test - void protocolTest() { - // TODO: test protocol - } } diff --git a/src/test/java/com/fireblocks/sdk/model/ContractWithAbiDtoTest.java b/src/test/java/com/fireblocks/sdk/model/ContractWithAbiDtoTest.java deleted file mode 100644 index 61a5eaa2..00000000 --- a/src/test/java/com/fireblocks/sdk/model/ContractWithAbiDtoTest.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for ContractWithAbiDto */ -class ContractWithAbiDtoTest { - private final ContractWithAbiDto model = new ContractWithAbiDto(); - - /** Model tests for ContractWithAbiDto */ - @Test - void testContractWithAbiDto() { - // TODO: test ContractWithAbiDto - } - - /** Test the property 'contractAddress' */ - @Test - void contractAddressTest() { - // TODO: test contractAddress - } - - /** Test the property 'baseAssetId' */ - @Test - void baseAssetIdTest() { - // TODO: test baseAssetId - } - - /** Test the property 'name' */ - @Test - void nameTest() { - // TODO: test name - } - - /** Test the property 'abi' */ - @Test - void abiTest() { - // TODO: test abi - } - - /** Test the property 'isProxy' */ - @Test - void isProxyTest() { - // TODO: test isProxy - } - - /** Test the property 'implementation' */ - @Test - void implementationTest() { - // TODO: test implementation - } - - /** Test the property 'isPublic' */ - @Test - void isPublicTest() { - // TODO: test isPublic - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/CosignerTest.java b/src/test/java/com/fireblocks/sdk/model/CosignerTest.java index ce80cadc..e750aa25 100644 --- a/src/test/java/com/fireblocks/sdk/model/CosignerTest.java +++ b/src/test/java/com/fireblocks/sdk/model/CosignerTest.java @@ -42,16 +42,4 @@ void idTest() { void nameTest() { // TODO: test name } - - /** Test the property 'type' */ - @Test - void typeTest() { - // TODO: test type - } - - /** Test the property 'version' */ - @Test - void versionTest() { - // TODO: test version - } } diff --git a/src/test/java/com/fireblocks/sdk/model/CreateMultichainTokenRequestTest.java b/src/test/java/com/fireblocks/sdk/model/CreateMultichainTokenRequestTest.java deleted file mode 100644 index 4e750bdd..00000000 --- a/src/test/java/com/fireblocks/sdk/model/CreateMultichainTokenRequestTest.java +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for CreateMultichainTokenRequest */ -class CreateMultichainTokenRequestTest { - private final CreateMultichainTokenRequest model = new CreateMultichainTokenRequest(); - - /** Model tests for CreateMultichainTokenRequest */ - @Test - void testCreateMultichainTokenRequest() { - // TODO: test CreateMultichainTokenRequest - } - - /** Test the property 'vaultAccountId' */ - @Test - void vaultAccountIdTest() { - // TODO: test vaultAccountId - } - - /** Test the property 'createParams' */ - @Test - void createParamsTest() { - // TODO: test createParams - } - - /** Test the property 'salt' */ - @Test - void saltTest() { - // TODO: test salt - } - - /** Test the property 'chains' */ - @Test - void chainsTest() { - // TODO: test chains - } - - /** Test the property 'displayName' */ - @Test - void displayNameTest() { - // TODO: test displayName - } - - /** Test the property 'useGasless' */ - @Test - void useGaslessTest() { - // TODO: test useGasless - } - - /** Test the property 'fee' */ - @Test - void feeTest() { - // TODO: test fee - } - - /** Test the property 'feeLevel' */ - @Test - void feeLevelTest() { - // TODO: test feeLevel - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/CreateMultipleAccountsRequestTest.java b/src/test/java/com/fireblocks/sdk/model/CreateMultipleAccountsRequestTest.java index 56fe7dbe..c7763b03 100644 --- a/src/test/java/com/fireblocks/sdk/model/CreateMultipleAccountsRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/CreateMultipleAccountsRequestTest.java @@ -31,27 +31,9 @@ void countTest() { // TODO: test count } - /** Test the property 'baseAssetIds' */ + /** Test the property 'assetIds' */ @Test - void baseAssetIdsTest() { - // TODO: test baseAssetIds - } - - /** Test the property 'names' */ - @Test - void namesTest() { - // TODO: test names - } - - /** Test the property 'vaultAccountNamesStartingIndex' */ - @Test - void vaultAccountNamesStartingIndexTest() { - // TODO: test vaultAccountNamesStartingIndex - } - - /** Test the property 'prefix' */ - @Test - void prefixTest() { - // TODO: test prefix + void assetIdsTest() { + // TODO: test assetIds } } diff --git a/src/test/java/com/fireblocks/sdk/model/CreateMultipleDepositAddressesJobStatusTest.java b/src/test/java/com/fireblocks/sdk/model/CreateMultipleDepositAddressesJobStatusTest.java deleted file mode 100644 index b209ae51..00000000 --- a/src/test/java/com/fireblocks/sdk/model/CreateMultipleDepositAddressesJobStatusTest.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for CreateMultipleDepositAddressesJobStatus */ -class CreateMultipleDepositAddressesJobStatusTest { - private final CreateMultipleDepositAddressesJobStatus model = - new CreateMultipleDepositAddressesJobStatus(); - - /** Model tests for CreateMultipleDepositAddressesJobStatus */ - @Test - void testCreateMultipleDepositAddressesJobStatus() { - // TODO: test CreateMultipleDepositAddressesJobStatus - } - - /** Test the property 'status' */ - @Test - void statusTest() { - // TODO: test status - } - - /** Test the property 'addresses' */ - @Test - void addressesTest() { - // TODO: test addresses - } - - /** Test the property 'errorMessage' */ - @Test - void errorMessageTest() { - // TODO: test errorMessage - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/CreateMultipleDepositAddressesRequestTest.java b/src/test/java/com/fireblocks/sdk/model/CreateMultipleDepositAddressesRequestTest.java deleted file mode 100644 index ce39772a..00000000 --- a/src/test/java/com/fireblocks/sdk/model/CreateMultipleDepositAddressesRequestTest.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for CreateMultipleDepositAddressesRequest */ -class CreateMultipleDepositAddressesRequestTest { - private final CreateMultipleDepositAddressesRequest model = - new CreateMultipleDepositAddressesRequest(); - - /** Model tests for CreateMultipleDepositAddressesRequest */ - @Test - void testCreateMultipleDepositAddressesRequest() { - // TODO: test CreateMultipleDepositAddressesRequest - } - - /** Test the property 'vaultAccountId' */ - @Test - void vaultAccountIdTest() { - // TODO: test vaultAccountId - } - - /** Test the property 'assetId' */ - @Test - void assetIdTest() { - // TODO: test assetId - } - - /** Test the property 'count' */ - @Test - void countTest() { - // TODO: test count - } - - /** Test the property 'descriptions' */ - @Test - void descriptionsTest() { - // TODO: test descriptions - } - - /** Test the property 'vaultAccountToCopyDescFrom' */ - @Test - void vaultAccountToCopyDescFromTest() { - // TODO: test vaultAccountToCopyDescFrom - } - - /** Test the property 'vaultAccountToCopyDescFromIndex' */ - @Test - void vaultAccountToCopyDescFromIndexTest() { - // TODO: test vaultAccountToCopyDescFromIndex - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/CreateMultipleVaultAccountsJobStatusTest.java b/src/test/java/com/fireblocks/sdk/model/CreateMultipleVaultAccountsJobStatusTest.java deleted file mode 100644 index fd781989..00000000 --- a/src/test/java/com/fireblocks/sdk/model/CreateMultipleVaultAccountsJobStatusTest.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for CreateMultipleVaultAccountsJobStatus */ -class CreateMultipleVaultAccountsJobStatusTest { - private final CreateMultipleVaultAccountsJobStatus model = - new CreateMultipleVaultAccountsJobStatus(); - - /** Model tests for CreateMultipleVaultAccountsJobStatus */ - @Test - void testCreateMultipleVaultAccountsJobStatus() { - // TODO: test CreateMultipleVaultAccountsJobStatus - } - - /** Test the property 'status' */ - @Test - void statusTest() { - // TODO: test status - } - - /** Test the property 'vaultAccounts' */ - @Test - void vaultAccountsTest() { - // TODO: test vaultAccounts - } - - /** Test the property 'errorMessage' */ - @Test - void errorMessageTest() { - // TODO: test errorMessage - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/CreateOrderRequestTest.java b/src/test/java/com/fireblocks/sdk/model/CreateOrderRequestTest.java deleted file mode 100644 index 09e19fb8..00000000 --- a/src/test/java/com/fireblocks/sdk/model/CreateOrderRequestTest.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for CreateOrderRequest */ -class CreateOrderRequestTest { - private final CreateOrderRequest model = new CreateOrderRequest(); - - /** Model tests for CreateOrderRequest */ - @Test - void testCreateOrderRequest() { - // TODO: test CreateOrderRequest - } - - /** Test the property 'via' */ - @Test - void viaTest() { - // TODO: test via - } - - /** Test the property 'executionRequestDetails' */ - @Test - void executionRequestDetailsTest() { - // TODO: test executionRequestDetails - } - - /** Test the property 'settlement' */ - @Test - void settlementTest() { - // TODO: test settlement - } - - /** Test the property 'participantsIdentification' */ - @Test - void participantsIdentificationTest() { - // TODO: test participantsIdentification - } - - /** Test the property 'customerInternalReferenceId' */ - @Test - void customerInternalReferenceIdTest() { - // TODO: test customerInternalReferenceId - } - - /** Test the property 'note' */ - @Test - void noteTest() { - // TODO: test note - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/CreateQuoteScopeInnerTest.java b/src/test/java/com/fireblocks/sdk/model/CreateQuoteScopeInnerTest.java deleted file mode 100644 index e50a0fd5..00000000 --- a/src/test/java/com/fireblocks/sdk/model/CreateQuoteScopeInnerTest.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for CreateQuoteScopeInner */ -class CreateQuoteScopeInnerTest { - private final CreateQuoteScopeInner model = new CreateQuoteScopeInner(); - - /** Model tests for CreateQuoteScopeInner */ - @Test - void testCreateQuoteScopeInner() { - // TODO: test CreateQuoteScopeInner - } - - /** Test the property 'providerId' */ - @Test - void providerIdTest() { - // TODO: test providerId - } - - /** Test the property 'accountId' */ - @Test - void accountIdTest() { - // TODO: test accountId - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/CreateQuoteTest.java b/src/test/java/com/fireblocks/sdk/model/CreateQuoteTest.java deleted file mode 100644 index da769735..00000000 --- a/src/test/java/com/fireblocks/sdk/model/CreateQuoteTest.java +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for CreateQuote */ -class CreateQuoteTest { - private final CreateQuote model = new CreateQuote(); - - /** Model tests for CreateQuote */ - @Test - void testCreateQuote() { - // TODO: test CreateQuote - } - - /** Test the property 'scope' */ - @Test - void scopeTest() { - // TODO: test scope - } - - /** Test the property 'baseAssetId' */ - @Test - void baseAssetIdTest() { - // TODO: test baseAssetId - } - - /** Test the property 'baseAssetRail' */ - @Test - void baseAssetRailTest() { - // TODO: test baseAssetRail - } - - /** Test the property 'quoteAssetId' */ - @Test - void quoteAssetIdTest() { - // TODO: test quoteAssetId - } - - /** Test the property 'quoteAssetRail' */ - @Test - void quoteAssetRailTest() { - // TODO: test quoteAssetRail - } - - /** Test the property 'baseAmount' */ - @Test - void baseAmountTest() { - // TODO: test baseAmount - } - - /** Test the property 'slippageBps' */ - @Test - void slippageBpsTest() { - // TODO: test slippageBps - } - - /** Test the property 'settlement' */ - @Test - void settlementTest() { - // TODO: test settlement - } - - /** Test the property 'side' */ - @Test - void sideTest() { - // TODO: test side - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/CreateSigningKeyDtoProofOfOwnershipTest.java b/src/test/java/com/fireblocks/sdk/model/CreateSigningKeyDtoProofOfOwnershipTest.java deleted file mode 100644 index b083d6a1..00000000 --- a/src/test/java/com/fireblocks/sdk/model/CreateSigningKeyDtoProofOfOwnershipTest.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for CreateSigningKeyDtoProofOfOwnership */ -class CreateSigningKeyDtoProofOfOwnershipTest { - private final CreateSigningKeyDtoProofOfOwnership model = - new CreateSigningKeyDtoProofOfOwnership(); - - /** Model tests for CreateSigningKeyDtoProofOfOwnership */ - @Test - void testCreateSigningKeyDtoProofOfOwnership() { - // TODO: test CreateSigningKeyDtoProofOfOwnership - } - - /** Test the property 'message' */ - @Test - void messageTest() { - // TODO: test message - } - - /** Test the property 'signature' */ - @Test - void signatureTest() { - // TODO: test signature - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/CreateSigningKeyDtoTest.java b/src/test/java/com/fireblocks/sdk/model/CreateSigningKeyDtoTest.java index 8c7bc75c..e4587e6b 100644 --- a/src/test/java/com/fireblocks/sdk/model/CreateSigningKeyDtoTest.java +++ b/src/test/java/com/fireblocks/sdk/model/CreateSigningKeyDtoTest.java @@ -42,10 +42,4 @@ void signedCertPemTest() { void agentUserIdTest() { // TODO: test agentUserId } - - /** Test the property 'proofOfOwnership' */ - @Test - void proofOfOwnershipTest() { - // TODO: test proofOfOwnership - } } diff --git a/src/test/java/com/fireblocks/sdk/model/CreateTagRequestTest.java b/src/test/java/com/fireblocks/sdk/model/CreateTagRequestTest.java deleted file mode 100644 index dfb41b34..00000000 --- a/src/test/java/com/fireblocks/sdk/model/CreateTagRequestTest.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for CreateTagRequest */ -class CreateTagRequestTest { - private final CreateTagRequest model = new CreateTagRequest(); - - /** Model tests for CreateTagRequest */ - @Test - void testCreateTagRequest() { - // TODO: test CreateTagRequest - } - - /** Test the property 'label' */ - @Test - void labelTest() { - // TODO: test label - } - - /** Test the property 'description' */ - @Test - void descriptionTest() { - // TODO: test description - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/CreateTokenRequestDtoCreateParamsTest.java b/src/test/java/com/fireblocks/sdk/model/CreateTokenRequestDtoCreateParamsTest.java index 76f5f5d6..6a0d9c75 100644 --- a/src/test/java/com/fireblocks/sdk/model/CreateTokenRequestDtoCreateParamsTest.java +++ b/src/test/java/com/fireblocks/sdk/model/CreateTokenRequestDtoCreateParamsTest.java @@ -31,10 +31,10 @@ void contractIdTest() { // TODO: test contractId } - /** Test the property 'deployFunctionParams' */ + /** Test the property 'constructorParams' */ @Test - void deployFunctionParamsTest() { - // TODO: test deployFunctionParams + void constructorParamsTest() { + // TODO: test constructorParams } /** Test the property 'symbol' */ @@ -54,10 +54,4 @@ void nameTest() { void issuerAddressTest() { // TODO: test issuerAddress } - - /** Test the property 'decimals' */ - @Test - void decimalsTest() { - // TODO: test decimals - } } diff --git a/src/test/java/com/fireblocks/sdk/model/CreateTokenRequestDtoTest.java b/src/test/java/com/fireblocks/sdk/model/CreateTokenRequestDtoTest.java index 94b46707..8acfb9d3 100644 --- a/src/test/java/com/fireblocks/sdk/model/CreateTokenRequestDtoTest.java +++ b/src/test/java/com/fireblocks/sdk/model/CreateTokenRequestDtoTest.java @@ -54,22 +54,4 @@ void createParamsTest() { void displayNameTest() { // TODO: test displayName } - - /** Test the property 'useGasless' */ - @Test - void useGaslessTest() { - // TODO: test useGasless - } - - /** Test the property 'fee' */ - @Test - void feeTest() { - // TODO: test fee - } - - /** Test the property 'feeLevel' */ - @Test - void feeLevelTest() { - // TODO: test feeLevel - } } diff --git a/src/test/java/com/fireblocks/sdk/model/CreateVaultAccountRequestTest.java b/src/test/java/com/fireblocks/sdk/model/CreateVaultAccountRequestTest.java index d1e0801e..d42da0f9 100644 --- a/src/test/java/com/fireblocks/sdk/model/CreateVaultAccountRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/CreateVaultAccountRequestTest.java @@ -48,16 +48,4 @@ void customerRefIdTest() { void autoFuelTest() { // TODO: test autoFuel } - - /** Test the property 'vaultType' */ - @Test - void vaultTypeTest() { - // TODO: test vaultType - } - - /** Test the property 'autoAssign' */ - @Test - void autoAssignTest() { - // TODO: test autoAssign - } } diff --git a/src/test/java/com/fireblocks/sdk/model/CreateWebhookRequestTest.java b/src/test/java/com/fireblocks/sdk/model/CreateWebhookRequestTest.java deleted file mode 100644 index ddebb268..00000000 --- a/src/test/java/com/fireblocks/sdk/model/CreateWebhookRequestTest.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for CreateWebhookRequest */ -class CreateWebhookRequestTest { - private final CreateWebhookRequest model = new CreateWebhookRequest(); - - /** Model tests for CreateWebhookRequest */ - @Test - void testCreateWebhookRequest() { - // TODO: test CreateWebhookRequest - } - - /** Test the property 'url' */ - @Test - void urlTest() { - // TODO: test url - } - - /** Test the property 'description' */ - @Test - void descriptionTest() { - // TODO: test description - } - - /** Test the property 'events' */ - @Test - void eventsTest() { - // TODO: test events - } - - /** Test the property 'enabled' */ - @Test - void enabledTest() { - // TODO: test enabled - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/DVPSettlementTest.java b/src/test/java/com/fireblocks/sdk/model/DVPSettlementTest.java deleted file mode 100644 index 1c08b02c..00000000 --- a/src/test/java/com/fireblocks/sdk/model/DVPSettlementTest.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for DVPSettlement */ -class DVPSettlementTest { - private final DVPSettlement model = new DVPSettlement(); - - /** Model tests for DVPSettlement */ - @Test - void testDVPSettlement() { - // TODO: test DVPSettlement - } - - /** Test the property 'type' */ - @Test - void typeTest() { - // TODO: test type - } - - /** Test the property 'sourceAccount' */ - @Test - void sourceAccountTest() { - // TODO: test sourceAccount - } - - /** Test the property 'destinationAccount' */ - @Test - void destinationAccountTest() { - // TODO: test destinationAccount - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/DelegationTest.java b/src/test/java/com/fireblocks/sdk/model/DelegationDtoTest.java similarity index 84% rename from src/test/java/com/fireblocks/sdk/model/DelegationTest.java rename to src/test/java/com/fireblocks/sdk/model/DelegationDtoTest.java index eba7ace9..ab460057 100644 --- a/src/test/java/com/fireblocks/sdk/model/DelegationTest.java +++ b/src/test/java/com/fireblocks/sdk/model/DelegationDtoTest.java @@ -15,14 +15,14 @@ import org.junit.jupiter.api.Test; -/** Model tests for Delegation */ -class DelegationTest { - private final Delegation model = new Delegation(); +/** Model tests for DelegationDto */ +class DelegationDtoTest { + private final DelegationDto model = new DelegationDto(); - /** Model tests for Delegation */ + /** Model tests for DelegationDto */ @Test - void testDelegation() { - // TODO: test Delegation + void testDelegationDto() { + // TODO: test DelegationDto } /** Test the property 'id' */ @@ -73,12 +73,6 @@ void dateCreatedTest() { // TODO: test dateCreated } - /** Test the property 'dateUpdated' */ - @Test - void dateUpdatedTest() { - // TODO: test dateUpdated - } - /** Test the property 'status' */ @Test void statusTest() { @@ -126,10 +120,4 @@ void inProgressTxIdTest() { void blockchainPositionInfoTest() { // TODO: test blockchainPositionInfo } - - /** Test the property 'relatedRequests' */ - @Test - void relatedRequestsTest() { - // TODO: test relatedRequests - } } diff --git a/src/test/java/com/fireblocks/sdk/model/DelegationSummaryTest.java b/src/test/java/com/fireblocks/sdk/model/DelegationSummaryDtoTest.java similarity index 77% rename from src/test/java/com/fireblocks/sdk/model/DelegationSummaryTest.java rename to src/test/java/com/fireblocks/sdk/model/DelegationSummaryDtoTest.java index 1c5d63ec..85221c55 100644 --- a/src/test/java/com/fireblocks/sdk/model/DelegationSummaryTest.java +++ b/src/test/java/com/fireblocks/sdk/model/DelegationSummaryDtoTest.java @@ -15,14 +15,14 @@ import org.junit.jupiter.api.Test; -/** Model tests for DelegationSummary */ -class DelegationSummaryTest { - private final DelegationSummary model = new DelegationSummary(); +/** Model tests for DelegationSummaryDto */ +class DelegationSummaryDtoTest { + private final DelegationSummaryDto model = new DelegationSummaryDto(); - /** Model tests for DelegationSummary */ + /** Model tests for DelegationSummaryDto */ @Test - void testDelegationSummary() { - // TODO: test DelegationSummary + void testDelegationSummaryDto() { + // TODO: test DelegationSummaryDto } /** Test the property 'active' */ diff --git a/src/test/java/com/fireblocks/sdk/model/DeployLayerZeroAdaptersRequestTest.java b/src/test/java/com/fireblocks/sdk/model/DeployLayerZeroAdaptersRequestTest.java deleted file mode 100644 index c9e90984..00000000 --- a/src/test/java/com/fireblocks/sdk/model/DeployLayerZeroAdaptersRequestTest.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for DeployLayerZeroAdaptersRequest */ -class DeployLayerZeroAdaptersRequestTest { - private final DeployLayerZeroAdaptersRequest model = new DeployLayerZeroAdaptersRequest(); - - /** Model tests for DeployLayerZeroAdaptersRequest */ - @Test - void testDeployLayerZeroAdaptersRequest() { - // TODO: test DeployLayerZeroAdaptersRequest - } - - /** Test the property 'vaultAccountId' */ - @Test - void vaultAccountIdTest() { - // TODO: test vaultAccountId - } - - /** Test the property 'createParams' */ - @Test - void createParamsTest() { - // TODO: test createParams - } - - /** Test the property 'displayName' */ - @Test - void displayNameTest() { - // TODO: test displayName - } - - /** Test the property 'useGasless' */ - @Test - void useGaslessTest() { - // TODO: test useGasless - } - - /** Test the property 'feeLevel' */ - @Test - void feeLevelTest() { - // TODO: test feeLevel - } - - /** Test the property 'fee' */ - @Test - void feeTest() { - // TODO: test fee - } - - /** Test the property 'salt' */ - @Test - void saltTest() { - // TODO: test salt - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/DeployableAddressResponseTest.java b/src/test/java/com/fireblocks/sdk/model/DeployableAddressResponseTest.java deleted file mode 100644 index 6873fc61..00000000 --- a/src/test/java/com/fireblocks/sdk/model/DeployableAddressResponseTest.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for DeployableAddressResponse */ -class DeployableAddressResponseTest { - private final DeployableAddressResponse model = new DeployableAddressResponse(); - - /** Model tests for DeployableAddressResponse */ - @Test - void testDeployableAddressResponse() { - // TODO: test DeployableAddressResponse - } - - /** Test the property 'address' */ - @Test - void addressTest() { - // TODO: test address - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/DeployedContractNotFoundErrorTest.java b/src/test/java/com/fireblocks/sdk/model/DeployedContractNotFoundErrorTest.java deleted file mode 100644 index ba0ee26f..00000000 --- a/src/test/java/com/fireblocks/sdk/model/DeployedContractNotFoundErrorTest.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for DeployedContractNotFoundError */ -class DeployedContractNotFoundErrorTest { - private final DeployedContractNotFoundError model = new DeployedContractNotFoundError(); - - /** Model tests for DeployedContractNotFoundError */ - @Test - void testDeployedContractNotFoundError() { - // TODO: test DeployedContractNotFoundError - } - - /** Test the property 'message' */ - @Test - void messageTest() { - // TODO: test message - } - - /** Test the property 'code' */ - @Test - void codeTest() { - // TODO: test code - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/DeployedContractResponseDtoTest.java b/src/test/java/com/fireblocks/sdk/model/DeployedContractResponseDtoTest.java index 660d2c71..c289ce7b 100644 --- a/src/test/java/com/fireblocks/sdk/model/DeployedContractResponseDtoTest.java +++ b/src/test/java/com/fireblocks/sdk/model/DeployedContractResponseDtoTest.java @@ -54,28 +54,4 @@ void vaultAccountIdTest() { void blockchainIdTest() { // TODO: test blockchainId } - - /** Test the property 'baseAssetId' */ - @Test - void baseAssetIdTest() { - // TODO: test baseAssetId - } - - /** Test the property 'gaslessConfig' */ - @Test - void gaslessConfigTest() { - // TODO: test gaslessConfig - } - - /** Test the property 'multichainDeploymentMetadata' */ - @Test - void multichainDeploymentMetadataTest() { - // TODO: test multichainDeploymentMetadata - } - - /** Test the property 'solanaConfig' */ - @Test - void solanaConfigTest() { - // TODO: test solanaConfig - } } diff --git a/src/test/java/com/fireblocks/sdk/model/DesignatedSignersConfigTest.java b/src/test/java/com/fireblocks/sdk/model/DesignatedSignersConfigTest.java deleted file mode 100644 index 24420ce2..00000000 --- a/src/test/java/com/fireblocks/sdk/model/DesignatedSignersConfigTest.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for DesignatedSignersConfig */ -class DesignatedSignersConfigTest { - private final DesignatedSignersConfig model = new DesignatedSignersConfig(); - - /** Model tests for DesignatedSignersConfig */ - @Test - void testDesignatedSignersConfig() { - // TODO: test DesignatedSignersConfig - } - - /** Test the property 'type' */ - @Test - void typeTest() { - // TODO: test type - } - - /** Test the property 'users' */ - @Test - void usersTest() { - // TODO: test users - } - - /** Test the property 'groups' */ - @Test - void groupsTest() { - // TODO: test groups - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/DestinationConfigTest.java b/src/test/java/com/fireblocks/sdk/model/DestinationConfigTest.java deleted file mode 100644 index 7f5fc1fd..00000000 --- a/src/test/java/com/fireblocks/sdk/model/DestinationConfigTest.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for DestinationConfig */ -class DestinationConfigTest { - private final DestinationConfig model = new DestinationConfig(); - - /** Model tests for DestinationConfig */ - @Test - void testDestinationConfig() { - // TODO: test DestinationConfig - } - - /** Test the property 'type' */ - @Test - void typeTest() { - // TODO: test type - } - - /** Test the property 'subType' */ - @Test - void subTypeTest() { - // TODO: test subType - } - - /** Test the property 'ids' */ - @Test - void idsTest() { - // TODO: test ids - } - - /** Test the property 'operator' */ - @Test - void operatorTest() { - // TODO: test operator - } - - /** Test the property 'matchFrom' */ - @Test - void matchFromTest() { - // TODO: test matchFrom - } - - /** Test the property 'addressType' */ - @Test - void addressTypeTest() { - // TODO: test addressType - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/DestinationTransferPeerPathResponseTest.java b/src/test/java/com/fireblocks/sdk/model/DestinationTransferPeerPathResponseTest.java index a04908aa..fcb2de09 100644 --- a/src/test/java/com/fireblocks/sdk/model/DestinationTransferPeerPathResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/DestinationTransferPeerPathResponseTest.java @@ -55,10 +55,4 @@ void nameTest() { void walletIdTest() { // TODO: test walletId } - - /** Test the property 'tradingAccount' */ - @Test - void tradingAccountTest() { - // TODO: test tradingAccount - } } diff --git a/src/test/java/com/fireblocks/sdk/model/DestinationTransferPeerPathTest.java b/src/test/java/com/fireblocks/sdk/model/DestinationTransferPeerPathTest.java index 02f3896e..8c6ae4b2 100644 --- a/src/test/java/com/fireblocks/sdk/model/DestinationTransferPeerPathTest.java +++ b/src/test/java/com/fireblocks/sdk/model/DestinationTransferPeerPathTest.java @@ -60,10 +60,4 @@ void walletIdTest() { void oneTimeAddressTest() { // TODO: test oneTimeAddress } - - /** Test the property 'isCollateral' */ - @Test - void isCollateralTest() { - // TODO: test isCollateral - } } diff --git a/src/test/java/com/fireblocks/sdk/model/DirectAccessProviderTest.java b/src/test/java/com/fireblocks/sdk/model/DirectAccessProviderTest.java deleted file mode 100644 index 70b13f30..00000000 --- a/src/test/java/com/fireblocks/sdk/model/DirectAccessProviderTest.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for DirectAccessProvider */ -class DirectAccessProviderTest { - private final DirectAccessProvider model = new DirectAccessProvider(); - - /** Model tests for DirectAccessProvider */ - @Test - void testDirectAccessProvider() { - // TODO: test DirectAccessProvider - } - - /** Test the property 'id' */ - @Test - void idTest() { - // TODO: test id - } - - /** Test the property 'name' */ - @Test - void nameTest() { - // TODO: test name - } - - /** Test the property 'logo' */ - @Test - void logoTest() { - // TODO: test logo - } - - /** Test the property 'accountBased' */ - @Test - void accountBasedTest() { - // TODO: test accountBased - } - - /** Test the property 'approved' */ - @Test - void approvedTest() { - // TODO: test approved - } - - /** Test the property 'hasTermsOfService' */ - @Test - void hasTermsOfServiceTest() { - // TODO: test hasTermsOfService - } - - /** Test the property 'termsOfServiceUrl' */ - @Test - void termsOfServiceUrlTest() { - // TODO: test termsOfServiceUrl - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/DirectAccessTest.java b/src/test/java/com/fireblocks/sdk/model/DirectAccessTest.java deleted file mode 100644 index dd8d07a3..00000000 --- a/src/test/java/com/fireblocks/sdk/model/DirectAccessTest.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for DirectAccess */ -class DirectAccessTest { - private final DirectAccess model = new DirectAccess(); - - /** Model tests for DirectAccess */ - @Test - void testDirectAccess() { - // TODO: test DirectAccess - } - - /** Test the property 'type' */ - @Test - void typeTest() { - // TODO: test type - } - - /** Test the property 'providerId' */ - @Test - void providerIdTest() { - // TODO: test providerId - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/DvnConfigTest.java b/src/test/java/com/fireblocks/sdk/model/DvnConfigTest.java deleted file mode 100644 index 30f24153..00000000 --- a/src/test/java/com/fireblocks/sdk/model/DvnConfigTest.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for DvnConfig */ -class DvnConfigTest { - private final DvnConfig model = new DvnConfig(); - - /** Model tests for DvnConfig */ - @Test - void testDvnConfig() { - // TODO: test DvnConfig - } - - /** Test the property 'dvnAddresses' */ - @Test - void dvnAddressesTest() { - // TODO: test dvnAddresses - } - - /** Test the property 'optionalDVNAddresses' */ - @Test - void optionalDVNAddressesTest() { - // TODO: test optionalDVNAddresses - } - - /** Test the property 'optionalThreshold' */ - @Test - void optionalThresholdTest() { - // TODO: test optionalThreshold - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/DvnConfigWithConfirmationsTest.java b/src/test/java/com/fireblocks/sdk/model/DvnConfigWithConfirmationsTest.java deleted file mode 100644 index 3e6565ee..00000000 --- a/src/test/java/com/fireblocks/sdk/model/DvnConfigWithConfirmationsTest.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for DvnConfigWithConfirmations */ -class DvnConfigWithConfirmationsTest { - private final DvnConfigWithConfirmations model = new DvnConfigWithConfirmations(); - - /** Model tests for DvnConfigWithConfirmations */ - @Test - void testDvnConfigWithConfirmations() { - // TODO: test DvnConfigWithConfirmations - } - - /** Test the property 'dvnAddresses' */ - @Test - void dvnAddressesTest() { - // TODO: test dvnAddresses - } - - /** Test the property 'optionalDVNAddresses' */ - @Test - void optionalDVNAddressesTest() { - // TODO: test optionalDVNAddresses - } - - /** Test the property 'optionalThreshold' */ - @Test - void optionalThresholdTest() { - // TODO: test optionalThreshold - } - - /** Test the property 'confirmations' */ - @Test - void confirmationsTest() { - // TODO: test confirmations - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/EVMTokenCreateParamsDtoTest.java b/src/test/java/com/fireblocks/sdk/model/EVMTokenCreateParamsDtoTest.java index baa7ef5c..3ee828cd 100644 --- a/src/test/java/com/fireblocks/sdk/model/EVMTokenCreateParamsDtoTest.java +++ b/src/test/java/com/fireblocks/sdk/model/EVMTokenCreateParamsDtoTest.java @@ -31,9 +31,9 @@ void contractIdTest() { // TODO: test contractId } - /** Test the property 'deployFunctionParams' */ + /** Test the property 'constructorParams' */ @Test - void deployFunctionParamsTest() { - // TODO: test deployFunctionParams + void constructorParamsTest() { + // TODO: test constructorParams } } diff --git a/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletAccountTest.java b/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletAccountTest.java deleted file mode 100644 index 2ea990c4..00000000 --- a/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletAccountTest.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for EmbeddedWalletAccount */ -class EmbeddedWalletAccountTest { - private final EmbeddedWalletAccount model = new EmbeddedWalletAccount(); - - /** Model tests for EmbeddedWalletAccount */ - @Test - void testEmbeddedWalletAccount() { - // TODO: test EmbeddedWalletAccount - } - - /** Test the property 'accountId' */ - @Test - void accountIdTest() { - // TODO: test accountId - } - - /** Test the property 'walletId' */ - @Test - void walletIdTest() { - // TODO: test walletId - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletAddressDetailsTest.java b/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletAddressDetailsTest.java deleted file mode 100644 index c242856d..00000000 --- a/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletAddressDetailsTest.java +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for EmbeddedWalletAddressDetails */ -class EmbeddedWalletAddressDetailsTest { - private final EmbeddedWalletAddressDetails model = new EmbeddedWalletAddressDetails(); - - /** Model tests for EmbeddedWalletAddressDetails */ - @Test - void testEmbeddedWalletAddressDetails() { - // TODO: test EmbeddedWalletAddressDetails - } - - /** Test the property 'accountName' */ - @Test - void accountNameTest() { - // TODO: test accountName - } - - /** Test the property 'accountId' */ - @Test - void accountIdTest() { - // TODO: test accountId - } - - /** Test the property 'asset' */ - @Test - void assetTest() { - // TODO: test asset - } - - /** Test the property 'address' */ - @Test - void addressTest() { - // TODO: test address - } - - /** Test the property 'addressType' */ - @Test - void addressTypeTest() { - // TODO: test addressType - } - - /** Test the property 'addressDescription' */ - @Test - void addressDescriptionTest() { - // TODO: test addressDescription - } - - /** Test the property 'tag' */ - @Test - void tagTest() { - // TODO: test tag - } - - /** Test the property 'addressIndex' */ - @Test - void addressIndexTest() { - // TODO: test addressIndex - } - - /** Test the property 'change' */ - @Test - void changeTest() { - // TODO: test change - } - - /** Test the property 'coinType' */ - @Test - void coinTypeTest() { - // TODO: test coinType - } - - /** Test the property 'customerRefId' */ - @Test - void customerRefIdTest() { - // TODO: test customerRefId - } - - /** Test the property 'addressFormat' */ - @Test - void addressFormatTest() { - // TODO: test addressFormat - } - - /** Test the property 'legacyAddress' */ - @Test - void legacyAddressTest() { - // TODO: test legacyAddress - } - - /** Test the property 'paymentAddress' */ - @Test - void paymentAddressTest() { - // TODO: test paymentAddress - } - - /** Test the property 'userDefined' */ - @Test - void userDefinedTest() { - // TODO: test userDefined - } - - /** Test the property 'state' */ - @Test - void stateTest() { - // TODO: test state - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletAlgoritmTest.java b/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletAlgoritmTest.java deleted file mode 100644 index 240ac8ee..00000000 --- a/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletAlgoritmTest.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for EmbeddedWalletAlgoritm */ -class EmbeddedWalletAlgoritmTest { - private final EmbeddedWalletAlgoritm model = new EmbeddedWalletAlgoritm(); - - /** Model tests for EmbeddedWalletAlgoritm */ - @Test - void testEmbeddedWalletAlgoritm() { - // TODO: test EmbeddedWalletAlgoritm - } - - /** Test the property 'algorithm' */ - @Test - void algorithmTest() { - // TODO: test algorithm - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletAssetBalanceTest.java b/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletAssetBalanceTest.java deleted file mode 100644 index 650d6f76..00000000 --- a/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletAssetBalanceTest.java +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for EmbeddedWalletAssetBalance */ -class EmbeddedWalletAssetBalanceTest { - private final EmbeddedWalletAssetBalance model = new EmbeddedWalletAssetBalance(); - - /** Model tests for EmbeddedWalletAssetBalance */ - @Test - void testEmbeddedWalletAssetBalance() { - // TODO: test EmbeddedWalletAssetBalance - } - - /** Test the property 'id' */ - @Test - void idTest() { - // TODO: test id - } - - /** Test the property 'total' */ - @Test - void totalTest() { - // TODO: test total - } - - /** Test the property 'available' */ - @Test - void availableTest() { - // TODO: test available - } - - /** Test the property 'pending' */ - @Test - void pendingTest() { - // TODO: test pending - } - - /** Test the property 'frozen' */ - @Test - void frozenTest() { - // TODO: test frozen - } - - /** Test the property 'lockedAmount' */ - @Test - void lockedAmountTest() { - // TODO: test lockedAmount - } - - /** Test the property 'blockHeight' */ - @Test - void blockHeightTest() { - // TODO: test blockHeight - } - - /** Test the property 'blockHash' */ - @Test - void blockHashTest() { - // TODO: test blockHash - } - - /** Test the property 'rewardInfo' */ - @Test - void rewardInfoTest() { - // TODO: test rewardInfo - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletAssetResponseTest.java b/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletAssetResponseTest.java deleted file mode 100644 index c89fbbd6..00000000 --- a/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletAssetResponseTest.java +++ /dev/null @@ -1,129 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for EmbeddedWalletAssetResponse */ -class EmbeddedWalletAssetResponseTest { - private final EmbeddedWalletAssetResponse model = new EmbeddedWalletAssetResponse(); - - /** Model tests for EmbeddedWalletAssetResponse */ - @Test - void testEmbeddedWalletAssetResponse() { - // TODO: test EmbeddedWalletAssetResponse - } - - /** Test the property 'id' */ - @Test - void idTest() { - // TODO: test id - } - - /** Test the property 'symbol' */ - @Test - void symbolTest() { - // TODO: test symbol - } - - /** Test the property 'name' */ - @Test - void nameTest() { - // TODO: test name - } - - /** Test the property 'decimals' */ - @Test - void decimalsTest() { - // TODO: test decimals - } - - /** Test the property 'networkProtocol' */ - @Test - void networkProtocolTest() { - // TODO: test networkProtocol - } - - /** Test the property 'testnet' */ - @Test - void testnetTest() { - // TODO: test testnet - } - - /** Test the property 'hasFee' */ - @Test - void hasFeeTest() { - // TODO: test hasFee - } - - /** Test the property 'baseAsset' */ - @Test - void baseAssetTest() { - // TODO: test baseAsset - } - - /** Test the property 'ethNetwork' */ - @Test - void ethNetworkTest() { - // TODO: test ethNetwork - } - - /** Test the property 'ethContractAddress' */ - @Test - void ethContractAddressTest() { - // TODO: test ethContractAddress - } - - /** Test the property 'issuerAddress' */ - @Test - void issuerAddressTest() { - // TODO: test issuerAddress - } - - /** Test the property 'blockchainSymbol' */ - @Test - void blockchainSymbolTest() { - // TODO: test blockchainSymbol - } - - /** Test the property 'deprecated' */ - @Test - void deprecatedTest() { - // TODO: test deprecated - } - - /** Test the property 'coinType' */ - @Test - void coinTypeTest() { - // TODO: test coinType - } - - /** Test the property 'blockchain' */ - @Test - void blockchainTest() { - // TODO: test blockchain - } - - /** Test the property 'blockchainDisplayName' */ - @Test - void blockchainDisplayNameTest() { - // TODO: test blockchainDisplayName - } - - /** Test the property 'algorithm' */ - @Test - void algorithmTest() { - // TODO: test algorithm - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletAssetRewardInfoTest.java b/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletAssetRewardInfoTest.java deleted file mode 100644 index e370596e..00000000 --- a/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletAssetRewardInfoTest.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for EmbeddedWalletAssetRewardInfo */ -class EmbeddedWalletAssetRewardInfoTest { - private final EmbeddedWalletAssetRewardInfo model = new EmbeddedWalletAssetRewardInfo(); - - /** Model tests for EmbeddedWalletAssetRewardInfo */ - @Test - void testEmbeddedWalletAssetRewardInfo() { - // TODO: test EmbeddedWalletAssetRewardInfo - } - - /** Test the property 'pendingRewards' */ - @Test - void pendingRewardsTest() { - // TODO: test pendingRewards - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletDeviceKeySetupResponseSetupStatusInnerTest.java b/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletDeviceKeySetupResponseSetupStatusInnerTest.java deleted file mode 100644 index 1ac4248a..00000000 --- a/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletDeviceKeySetupResponseSetupStatusInnerTest.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for EmbeddedWalletDeviceKeySetupResponseSetupStatusInner */ -class EmbeddedWalletDeviceKeySetupResponseSetupStatusInnerTest { - private final EmbeddedWalletDeviceKeySetupResponseSetupStatusInner model = - new EmbeddedWalletDeviceKeySetupResponseSetupStatusInner(); - - /** Model tests for EmbeddedWalletDeviceKeySetupResponseSetupStatusInner */ - @Test - void testEmbeddedWalletDeviceKeySetupResponseSetupStatusInner() { - // TODO: test EmbeddedWalletDeviceKeySetupResponseSetupStatusInner - } - - /** Test the property 'algorithmName' */ - @Test - void algorithmNameTest() { - // TODO: test algorithmName - } - - /** Test the property 'confirmed' */ - @Test - void confirmedTest() { - // TODO: test confirmed - } - - /** Test the property 'backedUp' */ - @Test - void backedUpTest() { - // TODO: test backedUp - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletDeviceKeySetupResponseTest.java b/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletDeviceKeySetupResponseTest.java deleted file mode 100644 index d747039c..00000000 --- a/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletDeviceKeySetupResponseTest.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for EmbeddedWalletDeviceKeySetupResponse */ -class EmbeddedWalletDeviceKeySetupResponseTest { - private final EmbeddedWalletDeviceKeySetupResponse model = - new EmbeddedWalletDeviceKeySetupResponse(); - - /** Model tests for EmbeddedWalletDeviceKeySetupResponse */ - @Test - void testEmbeddedWalletDeviceKeySetupResponse() { - // TODO: test EmbeddedWalletDeviceKeySetupResponse - } - - /** Test the property 'status' */ - @Test - void statusTest() { - // TODO: test status - } - - /** Test the property 'deviceId' */ - @Test - void deviceIdTest() { - // TODO: test deviceId - } - - /** Test the property 'enabled' */ - @Test - void enabledTest() { - // TODO: test enabled - } - - /** Test the property 'setupStatus' */ - @Test - void setupStatusTest() { - // TODO: test setupStatus - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletDeviceTest.java b/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletDeviceTest.java deleted file mode 100644 index 4e81807f..00000000 --- a/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletDeviceTest.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for EmbeddedWalletDevice */ -class EmbeddedWalletDeviceTest { - private final EmbeddedWalletDevice model = new EmbeddedWalletDevice(); - - /** Model tests for EmbeddedWalletDevice */ - @Test - void testEmbeddedWalletDevice() { - // TODO: test EmbeddedWalletDevice - } - - /** Test the property 'deviceId' */ - @Test - void deviceIdTest() { - // TODO: test deviceId - } - - /** Test the property 'enabled' */ - @Test - void enabledTest() { - // TODO: test enabled - } - - /** Test the property 'physicalDeviceId' */ - @Test - void physicalDeviceIdTest() { - // TODO: test physicalDeviceId - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletLatestBackupKeyTest.java b/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletLatestBackupKeyTest.java deleted file mode 100644 index af45329c..00000000 --- a/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletLatestBackupKeyTest.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for EmbeddedWalletLatestBackupKey */ -class EmbeddedWalletLatestBackupKeyTest { - private final EmbeddedWalletLatestBackupKey model = new EmbeddedWalletLatestBackupKey(); - - /** Model tests for EmbeddedWalletLatestBackupKey */ - @Test - void testEmbeddedWalletLatestBackupKey() { - // TODO: test EmbeddedWalletLatestBackupKey - } - - /** Test the property 'deviceId' */ - @Test - void deviceIdTest() { - // TODO: test deviceId - } - - /** Test the property 'publicKey' */ - @Test - void publicKeyTest() { - // TODO: test publicKey - } - - /** Test the property 'keyId' */ - @Test - void keyIdTest() { - // TODO: test keyId - } - - /** Test the property 'algorithm' */ - @Test - void algorithmTest() { - // TODO: test algorithm - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletLatestBackupResponseTest.java b/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletLatestBackupResponseTest.java deleted file mode 100644 index ef612508..00000000 --- a/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletLatestBackupResponseTest.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for EmbeddedWalletLatestBackupResponse */ -class EmbeddedWalletLatestBackupResponseTest { - private final EmbeddedWalletLatestBackupResponse model = - new EmbeddedWalletLatestBackupResponse(); - - /** Model tests for EmbeddedWalletLatestBackupResponse */ - @Test - void testEmbeddedWalletLatestBackupResponse() { - // TODO: test EmbeddedWalletLatestBackupResponse - } - - /** Test the property 'passphraseId' */ - @Test - void passphraseIdTest() { - // TODO: test passphraseId - } - - /** Test the property 'createdAt' */ - @Test - void createdAtTest() { - // TODO: test createdAt - } - - /** Test the property 'keys' */ - @Test - void keysTest() { - // TODO: test keys - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletPaginatedAddressesResponseTest.java b/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletPaginatedAddressesResponseTest.java deleted file mode 100644 index 8ef434ed..00000000 --- a/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletPaginatedAddressesResponseTest.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for EmbeddedWalletPaginatedAddressesResponse */ -class EmbeddedWalletPaginatedAddressesResponseTest { - private final EmbeddedWalletPaginatedAddressesResponse model = - new EmbeddedWalletPaginatedAddressesResponse(); - - /** Model tests for EmbeddedWalletPaginatedAddressesResponse */ - @Test - void testEmbeddedWalletPaginatedAddressesResponse() { - // TODO: test EmbeddedWalletPaginatedAddressesResponse - } - - /** Test the property 'data' */ - @Test - void dataTest() { - // TODO: test data - } - - /** Test the property 'next' */ - @Test - void nextTest() { - // TODO: test next - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletPaginatedAssetsResponseTest.java b/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletPaginatedAssetsResponseTest.java deleted file mode 100644 index 2f43488e..00000000 --- a/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletPaginatedAssetsResponseTest.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for EmbeddedWalletPaginatedAssetsResponse */ -class EmbeddedWalletPaginatedAssetsResponseTest { - private final EmbeddedWalletPaginatedAssetsResponse model = - new EmbeddedWalletPaginatedAssetsResponse(); - - /** Model tests for EmbeddedWalletPaginatedAssetsResponse */ - @Test - void testEmbeddedWalletPaginatedAssetsResponse() { - // TODO: test EmbeddedWalletPaginatedAssetsResponse - } - - /** Test the property 'data' */ - @Test - void dataTest() { - // TODO: test data - } - - /** Test the property 'next' */ - @Test - void nextTest() { - // TODO: test next - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletPaginatedWalletsResponseTest.java b/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletPaginatedWalletsResponseTest.java deleted file mode 100644 index 347a6ada..00000000 --- a/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletPaginatedWalletsResponseTest.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for EmbeddedWalletPaginatedWalletsResponse */ -class EmbeddedWalletPaginatedWalletsResponseTest { - private final EmbeddedWalletPaginatedWalletsResponse model = - new EmbeddedWalletPaginatedWalletsResponse(); - - /** Model tests for EmbeddedWalletPaginatedWalletsResponse */ - @Test - void testEmbeddedWalletPaginatedWalletsResponse() { - // TODO: test EmbeddedWalletPaginatedWalletsResponse - } - - /** Test the property 'data' */ - @Test - void dataTest() { - // TODO: test data - } - - /** Test the property 'next' */ - @Test - void nextTest() { - // TODO: test next - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletSetUpStatusTest.java b/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletSetUpStatusTest.java deleted file mode 100644 index b272cb52..00000000 --- a/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletSetUpStatusTest.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for EmbeddedWalletSetUpStatus */ -class EmbeddedWalletSetUpStatusTest { - private final EmbeddedWalletSetUpStatus model = new EmbeddedWalletSetUpStatus(); - - /** Model tests for EmbeddedWalletSetUpStatus */ - @Test - void testEmbeddedWalletSetUpStatus() { - // TODO: test EmbeddedWalletSetUpStatus - } - - /** Test the property 'status' */ - @Test - void statusTest() { - // TODO: test status - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletTest.java b/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletTest.java deleted file mode 100644 index c9b98451..00000000 --- a/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletTest.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for EmbeddedWallet */ -class EmbeddedWalletTest { - private final EmbeddedWallet model = new EmbeddedWallet(); - - /** Model tests for EmbeddedWallet */ - @Test - void testEmbeddedWallet() { - // TODO: test EmbeddedWallet - } - - /** Test the property 'walletId' */ - @Test - void walletIdTest() { - // TODO: test walletId - } - - /** Test the property 'enabled' */ - @Test - void enabledTest() { - // TODO: test enabled - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/ErrorCodesTest.java b/src/test/java/com/fireblocks/sdk/model/ErrorCodesTest.java deleted file mode 100644 index 860776c5..00000000 --- a/src/test/java/com/fireblocks/sdk/model/ErrorCodesTest.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for ErrorCodes */ -class ErrorCodesTest { - /** Model tests for ErrorCodes */ - @Test - void testErrorCodes() { - // TODO: test ErrorCodes - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/EstimatedFeeDetailsTest.java b/src/test/java/com/fireblocks/sdk/model/EstimatedFeeDetailsTest.java deleted file mode 100644 index b112d28c..00000000 --- a/src/test/java/com/fireblocks/sdk/model/EstimatedFeeDetailsTest.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for EstimatedFeeDetails */ -class EstimatedFeeDetailsTest { - private final EstimatedFeeDetails model = new EstimatedFeeDetails(); - - /** Model tests for EstimatedFeeDetails */ - @Test - void testEstimatedFeeDetails() { - // TODO: test EstimatedFeeDetails - } - - /** Test the property 'low' */ - @Test - void lowTest() { - // TODO: test low - } - - /** Test the property 'medium' */ - @Test - void mediumTest() { - // TODO: test medium - } - - /** Test the property 'high' */ - @Test - void highTest() { - // TODO: test high - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/EstimatedTransactionFeeResponseTest.java b/src/test/java/com/fireblocks/sdk/model/EstimatedTransactionFeeResponseTest.java index 895571dd..19618fdc 100644 --- a/src/test/java/com/fireblocks/sdk/model/EstimatedTransactionFeeResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/EstimatedTransactionFeeResponseTest.java @@ -42,10 +42,4 @@ void mediumTest() { void highTest() { // TODO: test high } - - /** Test the property 'feeDetails' */ - @Test - void feeDetailsTest() { - // TODO: test feeDetails - } } diff --git a/src/test/java/com/fireblocks/sdk/model/ExchangeAssetTest.java b/src/test/java/com/fireblocks/sdk/model/ExchangeAssetTest.java index 885fd1e7..edfeb21b 100644 --- a/src/test/java/com/fireblocks/sdk/model/ExchangeAssetTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ExchangeAssetTest.java @@ -54,34 +54,4 @@ void totalTest() { void availableTest() { // TODO: test available } - - /** Test the property 'credit' */ - @Test - void creditTest() { - // TODO: test credit - } - - /** Test the property 'assetId' */ - @Test - void assetIdTest() { - // TODO: test assetId - } - - /** Test the property 'providerSymbol' */ - @Test - void providerSymbolTest() { - // TODO: test providerSymbol - } - - /** Test the property 'assetSymbol' */ - @Test - void assetSymbolTest() { - // TODO: test assetSymbol - } - - /** Test the property 'assetLegacyId' */ - @Test - void assetLegacyIdTest() { - // TODO: test assetLegacyId - } } diff --git a/src/test/java/com/fireblocks/sdk/model/UnstakeRequestTest.java b/src/test/java/com/fireblocks/sdk/model/ExecuteActionRequestTest.java similarity index 58% rename from src/test/java/com/fireblocks/sdk/model/UnstakeRequestTest.java rename to src/test/java/com/fireblocks/sdk/model/ExecuteActionRequestTest.java index 27c72799..184e01d8 100644 --- a/src/test/java/com/fireblocks/sdk/model/UnstakeRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ExecuteActionRequestTest.java @@ -15,32 +15,32 @@ import org.junit.jupiter.api.Test; -/** Model tests for UnstakeRequest */ -class UnstakeRequestTest { - private final UnstakeRequest model = new UnstakeRequest(); +/** Model tests for ExecuteActionRequest */ +class ExecuteActionRequestTest { + private final ExecuteActionRequest model = new ExecuteActionRequest(); - /** Model tests for UnstakeRequest */ + /** Model tests for ExecuteActionRequest */ @Test - void testUnstakeRequest() { - // TODO: test UnstakeRequest + void testExecuteActionRequest() { + // TODO: test ExecuteActionRequest } - /** Test the property 'id' */ + /** Test the property 'vaultAccountId' */ @Test - void idTest() { - // TODO: test id + void vaultAccountIdTest() { + // TODO: test vaultAccountId } - /** Test the property 'fee' */ + /** Test the property 'providerId' */ @Test - void feeTest() { - // TODO: test fee + void providerIdTest() { + // TODO: test providerId } - /** Test the property 'feeLevel' */ + /** Test the property 'stakeAmount' */ @Test - void feeLevelTest() { - // TODO: test feeLevel + void stakeAmountTest() { + // TODO: test stakeAmount } /** Test the property 'txNote' */ @@ -49,9 +49,21 @@ void txNoteTest() { // TODO: test txNote } - /** Test the property 'amount' */ + /** Test the property 'fee' */ + @Test + void feeTest() { + // TODO: test fee + } + + /** Test the property 'feeLevel' */ + @Test + void feeLevelTest() { + // TODO: test feeLevel + } + + /** Test the property 'id' */ @Test - void amountTest() { - // TODO: test amount + void idTest() { + // TODO: test id } } diff --git a/src/test/java/com/fireblocks/sdk/model/SplitResponseTest.java b/src/test/java/com/fireblocks/sdk/model/ExecuteActionResponseTest.java similarity index 66% rename from src/test/java/com/fireblocks/sdk/model/SplitResponseTest.java rename to src/test/java/com/fireblocks/sdk/model/ExecuteActionResponseTest.java index 80ed1324..07ad3453 100644 --- a/src/test/java/com/fireblocks/sdk/model/SplitResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ExecuteActionResponseTest.java @@ -15,14 +15,14 @@ import org.junit.jupiter.api.Test; -/** Model tests for SplitResponse */ -class SplitResponseTest { - private final SplitResponse model = new SplitResponse(); +/** Model tests for ExecuteActionResponse */ +class ExecuteActionResponseTest { + private final ExecuteActionResponse model = new ExecuteActionResponse(); - /** Model tests for SplitResponse */ + /** Model tests for ExecuteActionResponse */ @Test - void testSplitResponse() { - // TODO: test SplitResponse + void testExecuteActionResponse() { + // TODO: test ExecuteActionResponse } /** Test the property 'id' */ diff --git a/src/test/java/com/fireblocks/sdk/model/ExecutionRequestBaseDetailsTest.java b/src/test/java/com/fireblocks/sdk/model/ExecutionRequestBaseDetailsTest.java deleted file mode 100644 index 4f96dff4..00000000 --- a/src/test/java/com/fireblocks/sdk/model/ExecutionRequestBaseDetailsTest.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for ExecutionRequestBaseDetails */ -class ExecutionRequestBaseDetailsTest { - private final ExecutionRequestBaseDetails model = new ExecutionRequestBaseDetails(); - - /** Model tests for ExecutionRequestBaseDetails */ - @Test - void testExecutionRequestBaseDetails() { - // TODO: test ExecutionRequestBaseDetails - } - - /** Test the property 'side' */ - @Test - void sideTest() { - // TODO: test side - } - - /** Test the property 'baseAmount' */ - @Test - void baseAmountTest() { - // TODO: test baseAmount - } - - /** Test the property 'baseAssetId' */ - @Test - void baseAssetIdTest() { - // TODO: test baseAssetId - } - - /** Test the property 'baseAssetRail' */ - @Test - void baseAssetRailTest() { - // TODO: test baseAssetRail - } - - /** Test the property 'quoteAssetId' */ - @Test - void quoteAssetIdTest() { - // TODO: test quoteAssetId - } - - /** Test the property 'quoteAssetRail' */ - @Test - void quoteAssetRailTest() { - // TODO: test quoteAssetRail - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/ExecutionRequestDetailsTest.java b/src/test/java/com/fireblocks/sdk/model/ExecutionRequestDetailsTest.java deleted file mode 100644 index 7af9dad1..00000000 --- a/src/test/java/com/fireblocks/sdk/model/ExecutionRequestDetailsTest.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for ExecutionRequestDetails */ -class ExecutionRequestDetailsTest { - private final ExecutionRequestDetails model = new ExecutionRequestDetails(); - - /** Model tests for ExecutionRequestDetails */ - @Test - void testExecutionRequestDetails() { - // TODO: test ExecutionRequestDetails - } - - /** Test the property 'type' */ - @Test - void typeTest() { - // TODO: test type - } - - /** Test the property 'timeInForce' */ - @Test - void timeInForceTest() { - // TODO: test timeInForce - } - - /** Test the property 'limitPrice' */ - @Test - void limitPriceTest() { - // TODO: test limitPrice - } - - /** Test the property 'side' */ - @Test - void sideTest() { - // TODO: test side - } - - /** Test the property 'baseAmount' */ - @Test - void baseAmountTest() { - // TODO: test baseAmount - } - - /** Test the property 'baseAssetId' */ - @Test - void baseAssetIdTest() { - // TODO: test baseAssetId - } - - /** Test the property 'baseAssetRail' */ - @Test - void baseAssetRailTest() { - // TODO: test baseAssetRail - } - - /** Test the property 'quoteAssetId' */ - @Test - void quoteAssetIdTest() { - // TODO: test quoteAssetId - } - - /** Test the property 'quoteAssetRail' */ - @Test - void quoteAssetRailTest() { - // TODO: test quoteAssetRail - } - - /** Test the property 'quoteId' */ - @Test - void quoteIdTest() { - // TODO: test quoteId - } - - /** Test the property 'reQuote' */ - @Test - void reQuoteTest() { - // TODO: test reQuote - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/ExecutionResponseBaseDetailsTest.java b/src/test/java/com/fireblocks/sdk/model/ExecutionResponseBaseDetailsTest.java deleted file mode 100644 index ead10f95..00000000 --- a/src/test/java/com/fireblocks/sdk/model/ExecutionResponseBaseDetailsTest.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for ExecutionResponseBaseDetails */ -class ExecutionResponseBaseDetailsTest { - private final ExecutionResponseBaseDetails model = new ExecutionResponseBaseDetails(); - - /** Model tests for ExecutionResponseBaseDetails */ - @Test - void testExecutionResponseBaseDetails() { - // TODO: test ExecutionResponseBaseDetails - } - - /** Test the property 'side' */ - @Test - void sideTest() { - // TODO: test side - } - - /** Test the property 'baseAmount' */ - @Test - void baseAmountTest() { - // TODO: test baseAmount - } - - /** Test the property 'baseAssetId' */ - @Test - void baseAssetIdTest() { - // TODO: test baseAssetId - } - - /** Test the property 'baseAssetRail' */ - @Test - void baseAssetRailTest() { - // TODO: test baseAssetRail - } - - /** Test the property 'quoteAssetId' */ - @Test - void quoteAssetIdTest() { - // TODO: test quoteAssetId - } - - /** Test the property 'quoteAssetRail' */ - @Test - void quoteAssetRailTest() { - // TODO: test quoteAssetRail - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/ExecutionResponseDetailsTest.java b/src/test/java/com/fireblocks/sdk/model/ExecutionResponseDetailsTest.java deleted file mode 100644 index 9d5c2952..00000000 --- a/src/test/java/com/fireblocks/sdk/model/ExecutionResponseDetailsTest.java +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for ExecutionResponseDetails */ -class ExecutionResponseDetailsTest { - private final ExecutionResponseDetails model = new ExecutionResponseDetails(); - - /** Model tests for ExecutionResponseDetails */ - @Test - void testExecutionResponseDetails() { - // TODO: test ExecutionResponseDetails - } - - /** Test the property 'type' */ - @Test - void typeTest() { - // TODO: test type - } - - /** Test the property 'timeInForce' */ - @Test - void timeInForceTest() { - // TODO: test timeInForce - } - - /** Test the property 'limitPrice' */ - @Test - void limitPriceTest() { - // TODO: test limitPrice - } - - /** Test the property 'side' */ - @Test - void sideTest() { - // TODO: test side - } - - /** Test the property 'baseAmount' */ - @Test - void baseAmountTest() { - // TODO: test baseAmount - } - - /** Test the property 'baseAssetId' */ - @Test - void baseAssetIdTest() { - // TODO: test baseAssetId - } - - /** Test the property 'baseAssetRail' */ - @Test - void baseAssetRailTest() { - // TODO: test baseAssetRail - } - - /** Test the property 'quoteAssetId' */ - @Test - void quoteAssetIdTest() { - // TODO: test quoteAssetId - } - - /** Test the property 'quoteAssetRail' */ - @Test - void quoteAssetRailTest() { - // TODO: test quoteAssetRail - } - - /** Test the property 'quoteId' */ - @Test - void quoteIdTest() { - // TODO: test quoteId - } - - /** Test the property 'quoteAmount' */ - @Test - void quoteAmountTest() { - // TODO: test quoteAmount - } - - /** Test the property 'reQuote' */ - @Test - void reQuoteTest() { - // TODO: test reQuote - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/ExecutionStepDetailsTest.java b/src/test/java/com/fireblocks/sdk/model/ExecutionStepDetailsTest.java deleted file mode 100644 index 4a9a79db..00000000 --- a/src/test/java/com/fireblocks/sdk/model/ExecutionStepDetailsTest.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for ExecutionStepDetails */ -class ExecutionStepDetailsTest { - private final ExecutionStepDetails model = new ExecutionStepDetails(); - - /** Model tests for ExecutionStepDetails */ - @Test - void testExecutionStepDetails() { - // TODO: test ExecutionStepDetails - } - - /** Test the property 'type' */ - @Test - void typeTest() { - // TODO: test type - } - - /** Test the property 'fee' */ - @Test - void feeTest() { - // TODO: test fee - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/ExecutionStepErrorTest.java b/src/test/java/com/fireblocks/sdk/model/ExecutionStepErrorTest.java deleted file mode 100644 index 0505cbfc..00000000 --- a/src/test/java/com/fireblocks/sdk/model/ExecutionStepErrorTest.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for ExecutionStepError */ -class ExecutionStepErrorTest { - /** Model tests for ExecutionStepError */ - @Test - void testExecutionStepError() { - // TODO: test ExecutionStepError - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/ExecutionStepStatusEnumTest.java b/src/test/java/com/fireblocks/sdk/model/ExecutionStepStatusEnumTest.java deleted file mode 100644 index 4421a606..00000000 --- a/src/test/java/com/fireblocks/sdk/model/ExecutionStepStatusEnumTest.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for ExecutionStepStatusEnum */ -class ExecutionStepStatusEnumTest { - /** Model tests for ExecutionStepStatusEnum */ - @Test - void testExecutionStepStatusEnum() { - // TODO: test ExecutionStepStatusEnum - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/ExecutionStepTest.java b/src/test/java/com/fireblocks/sdk/model/ExecutionStepTest.java deleted file mode 100644 index 6374a8a9..00000000 --- a/src/test/java/com/fireblocks/sdk/model/ExecutionStepTest.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for ExecutionStep */ -class ExecutionStepTest { - private final ExecutionStep model = new ExecutionStep(); - - /** Model tests for ExecutionStep */ - @Test - void testExecutionStep() { - // TODO: test ExecutionStep - } - - /** Test the property 'type' */ - @Test - void typeTest() { - // TODO: test type - } - - /** Test the property 'status' */ - @Test - void statusTest() { - // TODO: test status - } - - /** Test the property 'fee' */ - @Test - void feeTest() { - // TODO: test fee - } - - /** Test the property 'txId' */ - @Test - void txIdTest() { - // TODO: test txId - } - - /** Test the property 'txHash' */ - @Test - void txHashTest() { - // TODO: test txHash - } - - /** Test the property 'error' */ - @Test - void errorTest() { - // TODO: test error - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/ExecutionStepTypeTest.java b/src/test/java/com/fireblocks/sdk/model/ExecutionStepTypeTest.java deleted file mode 100644 index 83464076..00000000 --- a/src/test/java/com/fireblocks/sdk/model/ExecutionStepTypeTest.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for ExecutionStepType */ -class ExecutionStepTypeTest { - /** Model tests for ExecutionStepType */ - @Test - void testExecutionStepType() { - // TODO: test ExecutionStepType - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/ExternalAccountTest.java b/src/test/java/com/fireblocks/sdk/model/ExternalAccountTest.java deleted file mode 100644 index f011ee64..00000000 --- a/src/test/java/com/fireblocks/sdk/model/ExternalAccountTest.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for ExternalAccount */ -class ExternalAccountTest { - private final ExternalAccount model = new ExternalAccount(); - - /** Model tests for ExternalAccount */ - @Test - void testExternalAccount() { - // TODO: test ExternalAccount - } - - /** Test the property 'type' */ - @Test - void typeTest() { - // TODO: test type - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/FeeBreakdownOneOf1Test.java b/src/test/java/com/fireblocks/sdk/model/FeeBreakdownOneOf1Test.java deleted file mode 100644 index 1521e1f1..00000000 --- a/src/test/java/com/fireblocks/sdk/model/FeeBreakdownOneOf1Test.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for FeeBreakdownOneOf1 */ -class FeeBreakdownOneOf1Test { - private final FeeBreakdownOneOf1 model = new FeeBreakdownOneOf1(); - - /** Model tests for FeeBreakdownOneOf1 */ - @Test - void testFeeBreakdownOneOf1() { - // TODO: test FeeBreakdownOneOf1 - } - - /** Test the property 'baseFee' */ - @Test - void baseFeeTest() { - // TODO: test baseFee - } - - /** Test the property 'priorityFee' */ - @Test - void priorityFeeTest() { - // TODO: test priorityFee - } - - /** Test the property 'totalFee' */ - @Test - void totalFeeTest() { - // TODO: test totalFee - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/FeeBreakdownOneOfTest.java b/src/test/java/com/fireblocks/sdk/model/FeeBreakdownOneOfTest.java deleted file mode 100644 index e8cb116b..00000000 --- a/src/test/java/com/fireblocks/sdk/model/FeeBreakdownOneOfTest.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for FeeBreakdownOneOf */ -class FeeBreakdownOneOfTest { - private final FeeBreakdownOneOf model = new FeeBreakdownOneOf(); - - /** Model tests for FeeBreakdownOneOf */ - @Test - void testFeeBreakdownOneOf() { - // TODO: test FeeBreakdownOneOf - } - - /** Test the property 'baseFee' */ - @Test - void baseFeeTest() { - // TODO: test baseFee - } - - /** Test the property 'priorityFee' */ - @Test - void priorityFeeTest() { - // TODO: test priorityFee - } - - /** Test the property 'rent' */ - @Test - void rentTest() { - // TODO: test rent - } - - /** Test the property 'totalFee' */ - @Test - void totalFeeTest() { - // TODO: test totalFee - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/FeeBreakdownTest.java b/src/test/java/com/fireblocks/sdk/model/FeeBreakdownTest.java deleted file mode 100644 index ab9bef14..00000000 --- a/src/test/java/com/fireblocks/sdk/model/FeeBreakdownTest.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for FeeBreakdown */ -class FeeBreakdownTest { - private final FeeBreakdown model = new FeeBreakdown(); - - /** Model tests for FeeBreakdown */ - @Test - void testFeeBreakdown() { - // TODO: test FeeBreakdown - } - - /** Test the property 'baseFee' */ - @Test - void baseFeeTest() { - // TODO: test baseFee - } - - /** Test the property 'priorityFee' */ - @Test - void priorityFeeTest() { - // TODO: test priorityFee - } - - /** Test the property 'rent' */ - @Test - void rentTest() { - // TODO: test rent - } - - /** Test the property 'totalFee' */ - @Test - void totalFeeTest() { - // TODO: test totalFee - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/FeeInfoTest.java b/src/test/java/com/fireblocks/sdk/model/FeeInfoTest.java index 8f45fbe6..2c0b2c93 100644 --- a/src/test/java/com/fireblocks/sdk/model/FeeInfoTest.java +++ b/src/test/java/com/fireblocks/sdk/model/FeeInfoTest.java @@ -42,34 +42,4 @@ void serviceFeeTest() { void gasPriceTest() { // TODO: test gasPrice } - - /** Test the property 'paidByRelay' */ - @Test - void paidByRelayTest() { - // TODO: test paidByRelay - } - - /** Test the property 'relayType' */ - @Test - void relayTypeTest() { - // TODO: test relayType - } - - /** Test the property 'relayId' */ - @Test - void relayIdTest() { - // TODO: test relayId - } - - /** Test the property 'relayName' */ - @Test - void relayNameTest() { - // TODO: test relayName - } - - /** Test the property 'feeUSD' */ - @Test - void feeUSDTest() { - // TODO: test feeUSD - } } diff --git a/src/test/java/com/fireblocks/sdk/model/FeeLevelTest.java b/src/test/java/com/fireblocks/sdk/model/FeeLevelTest.java deleted file mode 100644 index 07988b98..00000000 --- a/src/test/java/com/fireblocks/sdk/model/FeeLevelTest.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for FeeLevel */ -class FeeLevelTest { - /** Model tests for FeeLevel */ - @Test - void testFeeLevel() { - // TODO: test FeeLevel - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/FeeTest.java b/src/test/java/com/fireblocks/sdk/model/FeeTest.java deleted file mode 100644 index b39d5108..00000000 --- a/src/test/java/com/fireblocks/sdk/model/FeeTest.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for Fee */ -class FeeTest { - private final Fee model = new Fee(); - - /** Model tests for Fee */ - @Test - void testFee() { - // TODO: test Fee - } - - /** Test the property 'feeType' */ - @Test - void feeTypeTest() { - // TODO: test feeType - } - - /** Test the property 'assetId' */ - @Test - void assetIdTest() { - // TODO: test assetId - } - - /** Test the property 'amountType' */ - @Test - void amountTypeTest() { - // TODO: test amountType - } - - /** Test the property 'amount' */ - @Test - void amountTest() { - // TODO: test amount - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/FetchAbiRequestDtoTest.java b/src/test/java/com/fireblocks/sdk/model/FetchAbiRequestDtoTest.java deleted file mode 100644 index f8d5808a..00000000 --- a/src/test/java/com/fireblocks/sdk/model/FetchAbiRequestDtoTest.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for FetchAbiRequestDto */ -class FetchAbiRequestDtoTest { - private final FetchAbiRequestDto model = new FetchAbiRequestDto(); - - /** Model tests for FetchAbiRequestDto */ - @Test - void testFetchAbiRequestDto() { - // TODO: test FetchAbiRequestDto - } - - /** Test the property 'baseAssetId' */ - @Test - void baseAssetIdTest() { - // TODO: test baseAssetId - } - - /** Test the property 'contractAddress' */ - @Test - void contractAddressTest() { - // TODO: test contractAddress - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/FiatTransferTest.java b/src/test/java/com/fireblocks/sdk/model/FiatTransferTest.java deleted file mode 100644 index d5c350e3..00000000 --- a/src/test/java/com/fireblocks/sdk/model/FiatTransferTest.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for FiatTransfer */ -class FiatTransferTest { - private final FiatTransfer model = new FiatTransfer(); - - /** Model tests for FiatTransfer */ - @Test - void testFiatTransfer() { - // TODO: test FiatTransfer - } - - /** Test the property 'type' */ - @Test - void typeTest() { - // TODO: test type - } - - /** Test the property 'amount' */ - @Test - void amountTest() { - // TODO: test amount - } - - /** Test the property 'referenceId' */ - @Test - void referenceIdTest() { - // TODO: test referenceId - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/FixedFeeTest.java b/src/test/java/com/fireblocks/sdk/model/FixedFeeTest.java deleted file mode 100644 index d9070066..00000000 --- a/src/test/java/com/fireblocks/sdk/model/FixedFeeTest.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for FixedFee */ -class FixedFeeTest { - private final FixedFee model = new FixedFee(); - - /** Model tests for FixedFee */ - @Test - void testFixedFee() { - // TODO: test FixedFee - } - - /** Test the property 'amountType' */ - @Test - void amountTypeTest() { - // TODO: test amountType - } - - /** Test the property 'amount' */ - @Test - void amountTest() { - // TODO: test amount - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/GasslessStandardConfigurationsGaslessStandardConfigurationsValueTest.java b/src/test/java/com/fireblocks/sdk/model/GasslessStandardConfigurationsGaslessStandardConfigurationsValueTest.java deleted file mode 100644 index c451957e..00000000 --- a/src/test/java/com/fireblocks/sdk/model/GasslessStandardConfigurationsGaslessStandardConfigurationsValueTest.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for GasslessStandardConfigurationsGaslessStandardConfigurationsValue */ -class GasslessStandardConfigurationsGaslessStandardConfigurationsValueTest { - private final GasslessStandardConfigurationsGaslessStandardConfigurationsValue model = - new GasslessStandardConfigurationsGaslessStandardConfigurationsValue(); - - /** Model tests for GasslessStandardConfigurationsGaslessStandardConfigurationsValue */ - @Test - void testGasslessStandardConfigurationsGaslessStandardConfigurationsValue() { - // TODO: test GasslessStandardConfigurationsGaslessStandardConfigurationsValue - } - - /** Test the property 'lastOnChainCheck' */ - @Test - void lastOnChainCheckTest() { - // TODO: test lastOnChainCheck - } - - /** Test the property 'forwarderAddresses' */ - @Test - void forwarderAddressesTest() { - // TODO: test forwarderAddresses - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/GasslessStandardConfigurationsTest.java b/src/test/java/com/fireblocks/sdk/model/GasslessStandardConfigurationsTest.java deleted file mode 100644 index 598c2e09..00000000 --- a/src/test/java/com/fireblocks/sdk/model/GasslessStandardConfigurationsTest.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for GasslessStandardConfigurations */ -class GasslessStandardConfigurationsTest { - private final GasslessStandardConfigurations model = new GasslessStandardConfigurations(); - - /** Model tests for GasslessStandardConfigurations */ - @Test - void testGasslessStandardConfigurations() { - // TODO: test GasslessStandardConfigurations - } - - /** Test the property 'gaslessStandardConfigurations' */ - @Test - void gaslessStandardConfigurationsTest() { - // TODO: test gaslessStandardConfigurations - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/PaginatedAssetsResponseTest.java b/src/test/java/com/fireblocks/sdk/model/GetAuditLogsResponseDTOTest.java similarity index 64% rename from src/test/java/com/fireblocks/sdk/model/PaginatedAssetsResponseTest.java rename to src/test/java/com/fireblocks/sdk/model/GetAuditLogsResponseDTOTest.java index cfb3745f..d7ee1ebf 100644 --- a/src/test/java/com/fireblocks/sdk/model/PaginatedAssetsResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/GetAuditLogsResponseDTOTest.java @@ -15,20 +15,14 @@ import org.junit.jupiter.api.Test; -/** Model tests for PaginatedAssetsResponse */ -class PaginatedAssetsResponseTest { - private final PaginatedAssetsResponse model = new PaginatedAssetsResponse(); +/** Model tests for GetAuditLogsResponseDTO */ +class GetAuditLogsResponseDTOTest { + private final GetAuditLogsResponseDTO model = new GetAuditLogsResponseDTO(); - /** Model tests for PaginatedAssetsResponse */ + /** Model tests for GetAuditLogsResponseDTO */ @Test - void testPaginatedAssetsResponse() { - // TODO: test PaginatedAssetsResponse - } - - /** Test the property 'total' */ - @Test - void totalTest() { - // TODO: test total + void testGetAuditLogsResponseDTO() { + // TODO: test GetAuditLogsResponseDTO } /** Test the property 'data' */ @@ -37,9 +31,15 @@ void dataTest() { // TODO: test data } - /** Test the property 'next' */ + /** Test the property 'total' */ + @Test + void totalTest() { + // TODO: test total + } + + /** Test the property 'cursor' */ @Test - void nextTest() { - // TODO: test next + void cursorTest() { + // TODO: test cursor } } diff --git a/src/test/java/com/fireblocks/sdk/model/GetDeployableAddressRequestTest.java b/src/test/java/com/fireblocks/sdk/model/GetDeployableAddressRequestTest.java deleted file mode 100644 index fc4834a4..00000000 --- a/src/test/java/com/fireblocks/sdk/model/GetDeployableAddressRequestTest.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for GetDeployableAddressRequest */ -class GetDeployableAddressRequestTest { - private final GetDeployableAddressRequest model = new GetDeployableAddressRequest(); - - /** Model tests for GetDeployableAddressRequest */ - @Test - void testGetDeployableAddressRequest() { - // TODO: test GetDeployableAddressRequest - } - - /** Test the property 'chainDescriptor' */ - @Test - void chainDescriptorTest() { - // TODO: test chainDescriptor - } - - /** Test the property 'templateId' */ - @Test - void templateIdTest() { - // TODO: test templateId - } - - /** Test the property 'initParams' */ - @Test - void initParamsTest() { - // TODO: test initParams - } - - /** Test the property 'salt' */ - @Test - void saltTest() { - // TODO: test salt - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/GetExchangeAccountsCredentialsPublicKeyResponseTest.java b/src/test/java/com/fireblocks/sdk/model/GetExchangeAccountsCredentialsPublicKeyResponseTest.java deleted file mode 100644 index 4c1f7dd1..00000000 --- a/src/test/java/com/fireblocks/sdk/model/GetExchangeAccountsCredentialsPublicKeyResponseTest.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for GetExchangeAccountsCredentialsPublicKeyResponse */ -class GetExchangeAccountsCredentialsPublicKeyResponseTest { - private final GetExchangeAccountsCredentialsPublicKeyResponse model = - new GetExchangeAccountsCredentialsPublicKeyResponse(); - - /** Model tests for GetExchangeAccountsCredentialsPublicKeyResponse */ - @Test - void testGetExchangeAccountsCredentialsPublicKeyResponse() { - // TODO: test GetExchangeAccountsCredentialsPublicKeyResponse - } - - /** Test the property 'publicKey' */ - @Test - void publicKeyTest() { - // TODO: test publicKey - } - - /** Test the property 'tenantId' */ - @Test - void tenantIdTest() { - // TODO: test tenantId - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/GetLayerZeroDvnConfigResponseTest.java b/src/test/java/com/fireblocks/sdk/model/GetLayerZeroDvnConfigResponseTest.java deleted file mode 100644 index 54060f9f..00000000 --- a/src/test/java/com/fireblocks/sdk/model/GetLayerZeroDvnConfigResponseTest.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for GetLayerZeroDvnConfigResponse */ -class GetLayerZeroDvnConfigResponseTest { - private final GetLayerZeroDvnConfigResponse model = new GetLayerZeroDvnConfigResponse(); - - /** Model tests for GetLayerZeroDvnConfigResponse */ - @Test - void testGetLayerZeroDvnConfigResponse() { - // TODO: test GetLayerZeroDvnConfigResponse - } - - /** Test the property 'sourceAdapterTokenLinkId' */ - @Test - void sourceAdapterTokenLinkIdTest() { - // TODO: test sourceAdapterTokenLinkId - } - - /** Test the property 'channelConfigs' */ - @Test - void channelConfigsTest() { - // TODO: test channelConfigs - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/GetLayerZeroPeersResponseTest.java b/src/test/java/com/fireblocks/sdk/model/GetLayerZeroPeersResponseTest.java deleted file mode 100644 index 04da14dc..00000000 --- a/src/test/java/com/fireblocks/sdk/model/GetLayerZeroPeersResponseTest.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for GetLayerZeroPeersResponse */ -class GetLayerZeroPeersResponseTest { - private final GetLayerZeroPeersResponse model = new GetLayerZeroPeersResponse(); - - /** Model tests for GetLayerZeroPeersResponse */ - @Test - void testGetLayerZeroPeersResponse() { - // TODO: test GetLayerZeroPeersResponse - } - - /** Test the property 'adapterTokenLinkId' */ - @Test - void adapterTokenLinkIdTest() { - // TODO: test adapterTokenLinkId - } - - /** Test the property 'adapterAddress' */ - @Test - void adapterAddressTest() { - // TODO: test adapterAddress - } - - /** Test the property 'peers' */ - @Test - void peersTest() { - // TODO: test peers - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/GetLinkedCollectionsPaginatedResponseTest.java b/src/test/java/com/fireblocks/sdk/model/GetLinkedCollectionsPaginatedResponseTest.java deleted file mode 100644 index bd9b6445..00000000 --- a/src/test/java/com/fireblocks/sdk/model/GetLinkedCollectionsPaginatedResponseTest.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for GetLinkedCollectionsPaginatedResponse */ -class GetLinkedCollectionsPaginatedResponseTest { - private final GetLinkedCollectionsPaginatedResponse model = - new GetLinkedCollectionsPaginatedResponse(); - - /** Model tests for GetLinkedCollectionsPaginatedResponse */ - @Test - void testGetLinkedCollectionsPaginatedResponse() { - // TODO: test GetLinkedCollectionsPaginatedResponse - } - - /** Test the property 'data' */ - @Test - void dataTest() { - // TODO: test data - } - - /** Test the property 'next' */ - @Test - void nextTest() { - // TODO: test next - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/GetMpcKeysResponseTest.java b/src/test/java/com/fireblocks/sdk/model/GetMpcKeysResponseTest.java deleted file mode 100644 index 72caf88b..00000000 --- a/src/test/java/com/fireblocks/sdk/model/GetMpcKeysResponseTest.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for GetMpcKeysResponse */ -class GetMpcKeysResponseTest { - private final GetMpcKeysResponse model = new GetMpcKeysResponse(); - - /** Model tests for GetMpcKeysResponse */ - @Test - void testGetMpcKeysResponse() { - // TODO: test GetMpcKeysResponse - } - - /** Test the property 'tenantId' */ - @Test - void tenantIdTest() { - // TODO: test tenantId - } - - /** Test the property 'keys' */ - @Test - void keysTest() { - // TODO: test keys - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/GetOrdersResponseTest.java b/src/test/java/com/fireblocks/sdk/model/GetOrdersResponseTest.java deleted file mode 100644 index fda17848..00000000 --- a/src/test/java/com/fireblocks/sdk/model/GetOrdersResponseTest.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for GetOrdersResponse */ -class GetOrdersResponseTest { - private final GetOrdersResponse model = new GetOrdersResponse(); - - /** Model tests for GetOrdersResponse */ - @Test - void testGetOrdersResponse() { - // TODO: test GetOrdersResponse - } - - /** Test the property 'data' */ - @Test - void dataTest() { - // TODO: test data - } - - /** Test the property 'total' */ - @Test - void totalTest() { - // TODO: test total - } - - /** Test the property 'next' */ - @Test - void nextTest() { - // TODO: test next - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/IdentificationTest.java b/src/test/java/com/fireblocks/sdk/model/IdentificationTest.java deleted file mode 100644 index badb09aa..00000000 --- a/src/test/java/com/fireblocks/sdk/model/IdentificationTest.java +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for Identification */ -class IdentificationTest { - private final Identification model = new Identification(); - - /** Model tests for Identification */ - @Test - void testIdentification() { - // TODO: test Identification - } - - /** Test the property 'externalReferenceId' */ - @Test - void externalReferenceIdTest() { - // TODO: test externalReferenceId - } - - /** Test the property 'entityType' */ - @Test - void entityTypeTest() { - // TODO: test entityType - } - - /** Test the property 'participantRelationshipType' */ - @Test - void participantRelationshipTypeTest() { - // TODO: test participantRelationshipType - } - - /** Test the property 'fullName' */ - @Test - void fullNameTest() { - // TODO: test fullName - } - - /** Test the property 'dateOfBirth' */ - @Test - void dateOfBirthTest() { - // TODO: test dateOfBirth - } - - /** Test the property 'postalAddress' */ - @Test - void postalAddressTest() { - // TODO: test postalAddress - } - - /** Test the property 'businessName' */ - @Test - void businessNameTest() { - // TODO: test businessName - } - - /** Test the property 'registrationNumber' */ - @Test - void registrationNumberTest() { - // TODO: test registrationNumber - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/IdlTypeTest.java b/src/test/java/com/fireblocks/sdk/model/IdlTypeTest.java deleted file mode 100644 index b5479c5c..00000000 --- a/src/test/java/com/fireblocks/sdk/model/IdlTypeTest.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for IdlType */ -class IdlTypeTest { - /** Model tests for IdlType */ - @Test - void testIdlType() { - // TODO: test IdlType - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/IndicativeQuoteTypeTest.java b/src/test/java/com/fireblocks/sdk/model/IndicativeQuoteTypeTest.java deleted file mode 100644 index 85aee33a..00000000 --- a/src/test/java/com/fireblocks/sdk/model/IndicativeQuoteTypeTest.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for IndicativeQuoteType */ -class IndicativeQuoteTypeTest { - private final IndicativeQuoteType model = new IndicativeQuoteType(); - - /** Model tests for IndicativeQuoteType */ - @Test - void testIndicativeQuoteType() { - // TODO: test IndicativeQuoteType - } - - /** Test the property 'type' */ - @Test - void typeTest() { - // TODO: test type - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/InitiatorConfigPatternTest.java b/src/test/java/com/fireblocks/sdk/model/InitiatorConfigPatternTest.java deleted file mode 100644 index f3fc6fde..00000000 --- a/src/test/java/com/fireblocks/sdk/model/InitiatorConfigPatternTest.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for InitiatorConfigPattern */ -class InitiatorConfigPatternTest { - private final InitiatorConfigPattern model = new InitiatorConfigPattern(); - - /** Model tests for InitiatorConfigPattern */ - @Test - void testInitiatorConfigPattern() { - // TODO: test InitiatorConfigPattern - } - - /** Test the property 'users' */ - @Test - void usersTest() { - // TODO: test users - } - - /** Test the property 'groups' */ - @Test - void groupsTest() { - // TODO: test groups - } - - /** Test the property 'services' */ - @Test - void servicesTest() { - // TODO: test services - } - - /** Test the property 'fbAdminGroups' */ - @Test - void fbAdminGroupsTest() { - // TODO: test fbAdminGroups - } - - /** Test the property 'exchange' */ - @Test - void exchangeTest() { - // TODO: test exchange - } - - /** Test the property 'operator' */ - @Test - void operatorTest() { - // TODO: test operator - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/InitiatorConfigTest.java b/src/test/java/com/fireblocks/sdk/model/InitiatorConfigTest.java deleted file mode 100644 index e91ab323..00000000 --- a/src/test/java/com/fireblocks/sdk/model/InitiatorConfigTest.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for InitiatorConfig */ -class InitiatorConfigTest { - private final InitiatorConfig model = new InitiatorConfig(); - - /** Model tests for InitiatorConfig */ - @Test - void testInitiatorConfig() { - // TODO: test InitiatorConfig - } - - /** Test the property 'users' */ - @Test - void usersTest() { - // TODO: test users - } - - /** Test the property 'groups' */ - @Test - void groupsTest() { - // TODO: test groups - } - - /** Test the property 'services' */ - @Test - void servicesTest() { - // TODO: test services - } - - /** Test the property 'fbAdminGroups' */ - @Test - void fbAdminGroupsTest() { - // TODO: test fbAdminGroups - } - - /** Test the property 'exchange' */ - @Test - void exchangeTest() { - // TODO: test exchange - } - - /** Test the property 'operator' */ - @Test - void operatorTest() { - // TODO: test operator - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/InternalReferenceTest.java b/src/test/java/com/fireblocks/sdk/model/InternalReferenceTest.java deleted file mode 100644 index 8e3c985a..00000000 --- a/src/test/java/com/fireblocks/sdk/model/InternalReferenceTest.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for InternalReference */ -class InternalReferenceTest { - private final InternalReference model = new InternalReference(); - - /** Model tests for InternalReference */ - @Test - void testInternalReference() { - // TODO: test InternalReference - } - - /** Test the property 'type' */ - @Test - void typeTest() { - // TODO: test type - } - - /** Test the property 'accountId' */ - @Test - void accountIdTest() { - // TODO: test accountId - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/InternalTransferResponseTest.java b/src/test/java/com/fireblocks/sdk/model/InternalTransferResponseTest.java index f50cced9..f216532e 100644 --- a/src/test/java/com/fireblocks/sdk/model/InternalTransferResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/InternalTransferResponseTest.java @@ -30,10 +30,4 @@ void testInternalTransferResponse() { void successTest() { // TODO: test success } - - /** Test the property 'id' */ - @Test - void idTest() { - // TODO: test id - } } diff --git a/src/test/java/com/fireblocks/sdk/model/InvalidParamaterValueErrorTest.java b/src/test/java/com/fireblocks/sdk/model/InvalidParamaterValueErrorTest.java deleted file mode 100644 index 0a712c08..00000000 --- a/src/test/java/com/fireblocks/sdk/model/InvalidParamaterValueErrorTest.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for InvalidParamaterValueError */ -class InvalidParamaterValueErrorTest { - private final InvalidParamaterValueError model = new InvalidParamaterValueError(); - - /** Model tests for InvalidParamaterValueError */ - @Test - void testInvalidParamaterValueError() { - // TODO: test InvalidParamaterValueError - } - - /** Test the property 'message' */ - @Test - void messageTest() { - // TODO: test message - } - - /** Test the property 'code' */ - @Test - void codeTest() { - // TODO: test code - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/LayerZeroAdapterCreateParamsTest.java b/src/test/java/com/fireblocks/sdk/model/LayerZeroAdapterCreateParamsTest.java deleted file mode 100644 index 94988fb0..00000000 --- a/src/test/java/com/fireblocks/sdk/model/LayerZeroAdapterCreateParamsTest.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for LayerZeroAdapterCreateParams */ -class LayerZeroAdapterCreateParamsTest { - private final LayerZeroAdapterCreateParams model = new LayerZeroAdapterCreateParams(); - - /** Model tests for LayerZeroAdapterCreateParams */ - @Test - void testLayerZeroAdapterCreateParams() { - // TODO: test LayerZeroAdapterCreateParams - } - - /** Test the property 'tokenLinkId' */ - @Test - void tokenLinkIdTest() { - // TODO: test tokenLinkId - } - - /** Test the property 'delegateAddress' */ - @Test - void delegateAddressTest() { - // TODO: test delegateAddress - } - - /** Test the property 'defaultAdminAddress' */ - @Test - void defaultAdminAddressTest() { - // TODO: test defaultAdminAddress - } - - /** Test the property 'pauserAddress' */ - @Test - void pauserAddressTest() { - // TODO: test pauserAddress - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/LbtPaymentInfoTest.java b/src/test/java/com/fireblocks/sdk/model/LbtPaymentInfoTest.java deleted file mode 100644 index 31062330..00000000 --- a/src/test/java/com/fireblocks/sdk/model/LbtPaymentInfoTest.java +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for LbtPaymentInfo */ -class LbtPaymentInfoTest { - private final LbtPaymentInfo model = new LbtPaymentInfo(); - - /** Model tests for LbtPaymentInfo */ - @Test - void testLbtPaymentInfo() { - // TODO: test LbtPaymentInfo - } - - /** Test the property 'rail' */ - @Test - void railTest() { - // TODO: test rail - } - - /** Test the property 'addressingSystem' */ - @Test - void addressingSystemTest() { - // TODO: test addressingSystem - } - - /** Test the property 'accountHolderGivenName' */ - @Test - void accountHolderGivenNameTest() { - // TODO: test accountHolderGivenName - } - - /** Test the property 'accountHolderSurname' */ - @Test - void accountHolderSurnameTest() { - // TODO: test accountHolderSurname - } - - /** Test the property 'country' */ - @Test - void countryTest() { - // TODO: test country - } - - /** Test the property 'accountNumber' */ - @Test - void accountNumberTest() { - // TODO: test accountNumber - } - - /** Test the property 'bankName' */ - @Test - void bankNameTest() { - // TODO: test bankName - } - - /** Test the property 'bankCode' */ - @Test - void bankCodeTest() { - // TODO: test bankCode - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/LeanAbiFunctionTest.java b/src/test/java/com/fireblocks/sdk/model/LeanAbiFunctionTest.java index fb11fde2..93c110eb 100644 --- a/src/test/java/com/fireblocks/sdk/model/LeanAbiFunctionTest.java +++ b/src/test/java/com/fireblocks/sdk/model/LeanAbiFunctionTest.java @@ -36,16 +36,4 @@ void nameTest() { void inputsTest() { // TODO: test inputs } - - /** Test the property 'outputs' */ - @Test - void outputsTest() { - // TODO: test outputs - } - - /** Test the property 'stateMutability' */ - @Test - void stateMutabilityTest() { - // TODO: test stateMutability - } } diff --git a/src/test/java/com/fireblocks/sdk/model/LegacyAmountAggregationTimePeriodMethodTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyAmountAggregationTimePeriodMethodTest.java deleted file mode 100644 index c22f9d7d..00000000 --- a/src/test/java/com/fireblocks/sdk/model/LegacyAmountAggregationTimePeriodMethodTest.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for LegacyAmountAggregationTimePeriodMethod */ -class LegacyAmountAggregationTimePeriodMethodTest { - /** Model tests for LegacyAmountAggregationTimePeriodMethod */ - @Test - void testLegacyAmountAggregationTimePeriodMethod() { - // TODO: test LegacyAmountAggregationTimePeriodMethod - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/LegacyDraftResponseTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyDraftResponseTest.java deleted file mode 100644 index 5511682c..00000000 --- a/src/test/java/com/fireblocks/sdk/model/LegacyDraftResponseTest.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for LegacyDraftResponse */ -class LegacyDraftResponseTest { - private final LegacyDraftResponse model = new LegacyDraftResponse(); - - /** Model tests for LegacyDraftResponse */ - @Test - void testLegacyDraftResponse() { - // TODO: test LegacyDraftResponse - } - - /** Test the property 'status' */ - @Test - void statusTest() { - // TODO: test status - } - - /** Test the property 'rules' */ - @Test - void rulesTest() { - // TODO: test rules - } - - /** Test the property 'draftId' */ - @Test - void draftIdTest() { - // TODO: test draftId - } - - /** Test the property 'metadata' */ - @Test - void metadataTest() { - // TODO: test metadata - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/LegacyDraftReviewAndValidationResponseTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyDraftReviewAndValidationResponseTest.java deleted file mode 100644 index 5686c819..00000000 --- a/src/test/java/com/fireblocks/sdk/model/LegacyDraftReviewAndValidationResponseTest.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for LegacyDraftReviewAndValidationResponse */ -class LegacyDraftReviewAndValidationResponseTest { - private final LegacyDraftReviewAndValidationResponse model = - new LegacyDraftReviewAndValidationResponse(); - - /** Model tests for LegacyDraftReviewAndValidationResponse */ - @Test - void testLegacyDraftReviewAndValidationResponse() { - // TODO: test LegacyDraftReviewAndValidationResponse - } - - /** Test the property 'draftResponse' */ - @Test - void draftResponseTest() { - // TODO: test draftResponse - } - - /** Test the property 'validation' */ - @Test - void validationTest() { - // TODO: test validation - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyAndValidationResponseTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyPolicyAndValidationResponseTest.java deleted file mode 100644 index 6ed74041..00000000 --- a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyAndValidationResponseTest.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for LegacyPolicyAndValidationResponse */ -class LegacyPolicyAndValidationResponseTest { - private final LegacyPolicyAndValidationResponse model = new LegacyPolicyAndValidationResponse(); - - /** Model tests for LegacyPolicyAndValidationResponse */ - @Test - void testLegacyPolicyAndValidationResponse() { - // TODO: test LegacyPolicyAndValidationResponse - } - - /** Test the property 'policy' */ - @Test - void policyTest() { - // TODO: test policy - } - - /** Test the property 'validation' */ - @Test - void validationTest() { - // TODO: test validation - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyCheckResultTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyPolicyCheckResultTest.java deleted file mode 100644 index c3dd6e06..00000000 --- a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyCheckResultTest.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for LegacyPolicyCheckResult */ -class LegacyPolicyCheckResultTest { - private final LegacyPolicyCheckResult model = new LegacyPolicyCheckResult(); - - /** Model tests for LegacyPolicyCheckResult */ - @Test - void testLegacyPolicyCheckResult() { - // TODO: test LegacyPolicyCheckResult - } - - /** Test the property 'errors' */ - @Test - void errorsTest() { - // TODO: test errors - } - - /** Test the property 'results' */ - @Test - void resultsTest() { - // TODO: test results - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyMetadataTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyPolicyMetadataTest.java deleted file mode 100644 index 7cc8ce94..00000000 --- a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyMetadataTest.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for LegacyPolicyMetadata */ -class LegacyPolicyMetadataTest { - private final LegacyPolicyMetadata model = new LegacyPolicyMetadata(); - - /** Model tests for LegacyPolicyMetadata */ - @Test - void testLegacyPolicyMetadata() { - // TODO: test LegacyPolicyMetadata - } - - /** Test the property 'editedBy' */ - @Test - void editedByTest() { - // TODO: test editedBy - } - - /** Test the property 'editedAt' */ - @Test - void editedAtTest() { - // TODO: test editedAt - } - - /** Test the property 'publishedBy' */ - @Test - void publishedByTest() { - // TODO: test publishedBy - } - - /** Test the property 'publishedAt' */ - @Test - void publishedAtTest() { - // TODO: test publishedAt - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyResponseTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyPolicyResponseTest.java deleted file mode 100644 index 6a84093d..00000000 --- a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyResponseTest.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for LegacyPolicyResponse */ -class LegacyPolicyResponseTest { - private final LegacyPolicyResponse model = new LegacyPolicyResponse(); - - /** Model tests for LegacyPolicyResponse */ - @Test - void testLegacyPolicyResponse() { - // TODO: test LegacyPolicyResponse - } - - /** Test the property 'rules' */ - @Test - void rulesTest() { - // TODO: test rules - } - - /** Test the property 'metadata' */ - @Test - void metadataTest() { - // TODO: test metadata - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleAmountTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleAmountTest.java deleted file mode 100644 index 4aecf994..00000000 --- a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleAmountTest.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for LegacyPolicyRuleAmount */ -class LegacyPolicyRuleAmountTest { - private final LegacyPolicyRuleAmount model = new LegacyPolicyRuleAmount(); - - /** Model tests for LegacyPolicyRuleAmount */ - @Test - void testLegacyPolicyRuleAmount() { - // TODO: test LegacyPolicyRuleAmount - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleCheckResultTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleCheckResultTest.java deleted file mode 100644 index 74aa112b..00000000 --- a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleCheckResultTest.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for LegacyPolicyRuleCheckResult */ -class LegacyPolicyRuleCheckResultTest { - private final LegacyPolicyRuleCheckResult model = new LegacyPolicyRuleCheckResult(); - - /** Model tests for LegacyPolicyRuleCheckResult */ - @Test - void testLegacyPolicyRuleCheckResult() { - // TODO: test LegacyPolicyRuleCheckResult - } - - /** Test the property 'index' */ - @Test - void indexTest() { - // TODO: test index - } - - /** Test the property 'status' */ - @Test - void statusTest() { - // TODO: test status - } - - /** Test the property 'errors' */ - @Test - void errorsTest() { - // TODO: test errors - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleErrorTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleErrorTest.java deleted file mode 100644 index ef414606..00000000 --- a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleErrorTest.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for LegacyPolicyRuleError */ -class LegacyPolicyRuleErrorTest { - private final LegacyPolicyRuleError model = new LegacyPolicyRuleError(); - - /** Model tests for LegacyPolicyRuleError */ - @Test - void testLegacyPolicyRuleError() { - // TODO: test LegacyPolicyRuleError - } - - /** Test the property 'errorMessage' */ - @Test - void errorMessageTest() { - // TODO: test errorMessage - } - - /** Test the property 'errorCode' */ - @Test - void errorCodeTest() { - // TODO: test errorCode - } - - /** Test the property 'errorCodeName' */ - @Test - void errorCodeNameTest() { - // TODO: test errorCodeName - } - - /** Test the property 'errorField' */ - @Test - void errorFieldTest() { - // TODO: test errorField - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleRawMessageSigningDerivationPathTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleRawMessageSigningDerivationPathTest.java deleted file mode 100644 index bc587797..00000000 --- a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleRawMessageSigningDerivationPathTest.java +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for LegacyPolicyRuleRawMessageSigningDerivationPath */ -class LegacyPolicyRuleRawMessageSigningDerivationPathTest { - private final LegacyPolicyRuleRawMessageSigningDerivationPath model = - new LegacyPolicyRuleRawMessageSigningDerivationPath(); - - /** Model tests for LegacyPolicyRuleRawMessageSigningDerivationPath */ - @Test - void testLegacyPolicyRuleRawMessageSigningDerivationPath() { - // TODO: test LegacyPolicyRuleRawMessageSigningDerivationPath - } - - /** Test the property 'path' */ - @Test - void pathTest() { - // TODO: test path - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleTest.java deleted file mode 100644 index 8cc3c851..00000000 --- a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleTest.java +++ /dev/null @@ -1,201 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for LegacyPolicyRule */ -class LegacyPolicyRuleTest { - private final LegacyPolicyRule model = new LegacyPolicyRule(); - - /** Model tests for LegacyPolicyRule */ - @Test - void testLegacyPolicyRule() { - // TODO: test LegacyPolicyRule - } - - /** Test the property 'operator' */ - @Test - void operatorTest() { - // TODO: test operator - } - - /** Test the property 'operators' */ - @Test - void operatorsTest() { - // TODO: test operators - } - - /** Test the property 'transactionType' */ - @Test - void transactionTypeTest() { - // TODO: test transactionType - } - - /** Test the property 'designatedSigner' */ - @Test - void designatedSignerTest() { - // TODO: test designatedSigner - } - - /** Test the property 'designatedSigners' */ - @Test - void designatedSignersTest() { - // TODO: test designatedSigners - } - - /** Test the property 'type' */ - @Test - void typeTest() { - // TODO: test type - } - - /** Test the property 'action' */ - @Test - void actionTest() { - // TODO: test action - } - - /** Test the property 'asset' */ - @Test - void assetTest() { - // TODO: test asset - } - - /** Test the property 'srcType' */ - @Test - void srcTypeTest() { - // TODO: test srcType - } - - /** Test the property 'srcSubType' */ - @Test - void srcSubTypeTest() { - // TODO: test srcSubType - } - - /** Test the property 'srcId' */ - @Test - void srcIdTest() { - // TODO: test srcId - } - - /** Test the property 'src' */ - @Test - void srcTest() { - // TODO: test src - } - - /** Test the property 'dstType' */ - @Test - void dstTypeTest() { - // TODO: test dstType - } - - /** Test the property 'dstSubType' */ - @Test - void dstSubTypeTest() { - // TODO: test dstSubType - } - - /** Test the property 'dstId' */ - @Test - void dstIdTest() { - // TODO: test dstId - } - - /** Test the property 'dst' */ - @Test - void dstTest() { - // TODO: test dst - } - - /** Test the property 'dstAddressType' */ - @Test - void dstAddressTypeTest() { - // TODO: test dstAddressType - } - - /** Test the property 'amountCurrency' */ - @Test - void amountCurrencyTest() { - // TODO: test amountCurrency - } - - /** Test the property 'amountScope' */ - @Test - void amountScopeTest() { - // TODO: test amountScope - } - - /** Test the property 'amount' */ - @Test - void amountTest() { - // TODO: test amount - } - - /** Test the property 'periodSec' */ - @Test - void periodSecTest() { - // TODO: test periodSec - } - - /** Test the property 'authorizers' */ - @Test - void authorizersTest() { - // TODO: test authorizers - } - - /** Test the property 'authorizersCount' */ - @Test - void authorizersCountTest() { - // TODO: test authorizersCount - } - - /** Test the property 'authorizationGroups' */ - @Test - void authorizationGroupsTest() { - // TODO: test authorizationGroups - } - - /** Test the property 'amountAggregation' */ - @Test - void amountAggregationTest() { - // TODO: test amountAggregation - } - - /** Test the property 'rawMessageSigning' */ - @Test - void rawMessageSigningTest() { - // TODO: test rawMessageSigning - } - - /** Test the property 'applyForApprove' */ - @Test - void applyForApproveTest() { - // TODO: test applyForApprove - } - - /** Test the property 'applyForTypedMessage' */ - @Test - void applyForTypedMessageTest() { - // TODO: test applyForTypedMessage - } - - /** Test the property 'externalDescriptor' */ - @Test - void externalDescriptorTest() { - // TODO: test externalDescriptor - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/LegacyPolicySrcOrDestSubTypeTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyPolicySrcOrDestSubTypeTest.java deleted file mode 100644 index bd9323fe..00000000 --- a/src/test/java/com/fireblocks/sdk/model/LegacyPolicySrcOrDestSubTypeTest.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for LegacyPolicySrcOrDestSubType */ -class LegacyPolicySrcOrDestSubTypeTest { - /** Model tests for LegacyPolicySrcOrDestSubType */ - @Test - void testLegacyPolicySrcOrDestSubType() { - // TODO: test LegacyPolicySrcOrDestSubType - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/LegacyPolicySrcOrDestTypeTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyPolicySrcOrDestTypeTest.java deleted file mode 100644 index 7093db3f..00000000 --- a/src/test/java/com/fireblocks/sdk/model/LegacyPolicySrcOrDestTypeTest.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for LegacyPolicySrcOrDestType */ -class LegacyPolicySrcOrDestTypeTest { - /** Model tests for LegacyPolicySrcOrDestType */ - @Test - void testLegacyPolicySrcOrDestType() { - // TODO: test LegacyPolicySrcOrDestType - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyStatusTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyPolicyStatusTest.java deleted file mode 100644 index 01a4c6e5..00000000 --- a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyStatusTest.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for LegacyPolicyStatus */ -class LegacyPolicyStatusTest { - /** Model tests for LegacyPolicyStatus */ - @Test - void testLegacyPolicyStatus() { - // TODO: test LegacyPolicyStatus - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyValidationTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyPolicyValidationTest.java deleted file mode 100644 index c7f21f3f..00000000 --- a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyValidationTest.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for LegacyPolicyValidation */ -class LegacyPolicyValidationTest { - private final LegacyPolicyValidation model = new LegacyPolicyValidation(); - - /** Model tests for LegacyPolicyValidation */ - @Test - void testLegacyPolicyValidation() { - // TODO: test LegacyPolicyValidation - } - - /** Test the property 'status' */ - @Test - void statusTest() { - // TODO: test status - } - - /** Test the property 'checkResult' */ - @Test - void checkResultTest() { - // TODO: test checkResult - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/LegacyPublishDraftRequestTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyPublishDraftRequestTest.java deleted file mode 100644 index 80fc0d6e..00000000 --- a/src/test/java/com/fireblocks/sdk/model/LegacyPublishDraftRequestTest.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for LegacyPublishDraftRequest */ -class LegacyPublishDraftRequestTest { - private final LegacyPublishDraftRequest model = new LegacyPublishDraftRequest(); - - /** Model tests for LegacyPublishDraftRequest */ - @Test - void testLegacyPublishDraftRequest() { - // TODO: test LegacyPublishDraftRequest - } - - /** Test the property 'draftId' */ - @Test - void draftIdTest() { - // TODO: test draftId - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/LegacyPublishResultTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyPublishResultTest.java deleted file mode 100644 index 44b68e53..00000000 --- a/src/test/java/com/fireblocks/sdk/model/LegacyPublishResultTest.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for LegacyPublishResult */ -class LegacyPublishResultTest { - private final LegacyPublishResult model = new LegacyPublishResult(); - - /** Model tests for LegacyPublishResult */ - @Test - void testLegacyPublishResult() { - // TODO: test LegacyPublishResult - } - - /** Test the property 'status' */ - @Test - void statusTest() { - // TODO: test status - } - - /** Test the property 'rules' */ - @Test - void rulesTest() { - // TODO: test rules - } - - /** Test the property 'checkResult' */ - @Test - void checkResultTest() { - // TODO: test checkResult - } - - /** Test the property 'metadata' */ - @Test - void metadataTest() { - // TODO: test metadata - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/LegacySrcOrDestAttributesInnerTest.java b/src/test/java/com/fireblocks/sdk/model/LegacySrcOrDestAttributesInnerTest.java deleted file mode 100644 index 73420389..00000000 --- a/src/test/java/com/fireblocks/sdk/model/LegacySrcOrDestAttributesInnerTest.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for LegacySrcOrDestAttributesInner */ -class LegacySrcOrDestAttributesInnerTest { - private final LegacySrcOrDestAttributesInner model = new LegacySrcOrDestAttributesInner(); - - /** Model tests for LegacySrcOrDestAttributesInner */ - @Test - void testLegacySrcOrDestAttributesInner() { - // TODO: test LegacySrcOrDestAttributesInner - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/LimitExecutionRequestDetailsTest.java b/src/test/java/com/fireblocks/sdk/model/LimitExecutionRequestDetailsTest.java deleted file mode 100644 index 718fb749..00000000 --- a/src/test/java/com/fireblocks/sdk/model/LimitExecutionRequestDetailsTest.java +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for LimitExecutionRequestDetails */ -class LimitExecutionRequestDetailsTest { - private final LimitExecutionRequestDetails model = new LimitExecutionRequestDetails(); - - /** Model tests for LimitExecutionRequestDetails */ - @Test - void testLimitExecutionRequestDetails() { - // TODO: test LimitExecutionRequestDetails - } - - /** Test the property 'side' */ - @Test - void sideTest() { - // TODO: test side - } - - /** Test the property 'baseAmount' */ - @Test - void baseAmountTest() { - // TODO: test baseAmount - } - - /** Test the property 'baseAssetId' */ - @Test - void baseAssetIdTest() { - // TODO: test baseAssetId - } - - /** Test the property 'baseAssetRail' */ - @Test - void baseAssetRailTest() { - // TODO: test baseAssetRail - } - - /** Test the property 'quoteAssetId' */ - @Test - void quoteAssetIdTest() { - // TODO: test quoteAssetId - } - - /** Test the property 'quoteAssetRail' */ - @Test - void quoteAssetRailTest() { - // TODO: test quoteAssetRail - } - - /** Test the property 'type' */ - @Test - void typeTest() { - // TODO: test type - } - - /** Test the property 'timeInForce' */ - @Test - void timeInForceTest() { - // TODO: test timeInForce - } - - /** Test the property 'limitPrice' */ - @Test - void limitPriceTest() { - // TODO: test limitPrice - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/LimitExecutionResponseDetailsTest.java b/src/test/java/com/fireblocks/sdk/model/LimitExecutionResponseDetailsTest.java deleted file mode 100644 index fec55f1d..00000000 --- a/src/test/java/com/fireblocks/sdk/model/LimitExecutionResponseDetailsTest.java +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for LimitExecutionResponseDetails */ -class LimitExecutionResponseDetailsTest { - private final LimitExecutionResponseDetails model = new LimitExecutionResponseDetails(); - - /** Model tests for LimitExecutionResponseDetails */ - @Test - void testLimitExecutionResponseDetails() { - // TODO: test LimitExecutionResponseDetails - } - - /** Test the property 'side' */ - @Test - void sideTest() { - // TODO: test side - } - - /** Test the property 'baseAmount' */ - @Test - void baseAmountTest() { - // TODO: test baseAmount - } - - /** Test the property 'baseAssetId' */ - @Test - void baseAssetIdTest() { - // TODO: test baseAssetId - } - - /** Test the property 'baseAssetRail' */ - @Test - void baseAssetRailTest() { - // TODO: test baseAssetRail - } - - /** Test the property 'quoteAssetId' */ - @Test - void quoteAssetIdTest() { - // TODO: test quoteAssetId - } - - /** Test the property 'quoteAssetRail' */ - @Test - void quoteAssetRailTest() { - // TODO: test quoteAssetRail - } - - /** Test the property 'type' */ - @Test - void typeTest() { - // TODO: test type - } - - /** Test the property 'timeInForce' */ - @Test - void timeInForceTest() { - // TODO: test timeInForce - } - - /** Test the property 'limitPrice' */ - @Test - void limitPriceTest() { - // TODO: test limitPrice - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/ListAssetsResponseTest.java b/src/test/java/com/fireblocks/sdk/model/ListAssetsResponseTest.java deleted file mode 100644 index 38d58a1b..00000000 --- a/src/test/java/com/fireblocks/sdk/model/ListAssetsResponseTest.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for ListAssetsResponse */ -class ListAssetsResponseTest { - private final ListAssetsResponse model = new ListAssetsResponse(); - - /** Model tests for ListAssetsResponse */ - @Test - void testListAssetsResponse() { - // TODO: test ListAssetsResponse - } - - /** Test the property 'data' */ - @Test - void dataTest() { - // TODO: test data - } - - /** Test the property 'next' */ - @Test - void nextTest() { - // TODO: test next - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/ListBlockchainsResponseTest.java b/src/test/java/com/fireblocks/sdk/model/ListBlockchainsResponseTest.java deleted file mode 100644 index e4b72e31..00000000 --- a/src/test/java/com/fireblocks/sdk/model/ListBlockchainsResponseTest.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for ListBlockchainsResponse */ -class ListBlockchainsResponseTest { - private final ListBlockchainsResponse model = new ListBlockchainsResponse(); - - /** Model tests for ListBlockchainsResponse */ - @Test - void testListBlockchainsResponse() { - // TODO: test ListBlockchainsResponse - } - - /** Test the property 'data' */ - @Test - void dataTest() { - // TODO: test data - } - - /** Test the property 'next' */ - @Test - void nextTest() { - // TODO: test next - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/ManifestTest.java b/src/test/java/com/fireblocks/sdk/model/ManifestTest.java deleted file mode 100644 index 831d6004..00000000 --- a/src/test/java/com/fireblocks/sdk/model/ManifestTest.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for Manifest */ -class ManifestTest { - private final Manifest model = new Manifest(); - - /** Model tests for Manifest */ - @Test - void testManifest() { - // TODO: test Manifest - } - - /** Test the property 'assetTypes' */ - @Test - void assetTypesTest() { - // TODO: test assetTypes - } - - /** Test the property 'capabilities' */ - @Test - void capabilitiesTest() { - // TODO: test capabilities - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/MarketExecutionRequestDetailsTest.java b/src/test/java/com/fireblocks/sdk/model/MarketExecutionRequestDetailsTest.java deleted file mode 100644 index 4d81d69b..00000000 --- a/src/test/java/com/fireblocks/sdk/model/MarketExecutionRequestDetailsTest.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for MarketExecutionRequestDetails */ -class MarketExecutionRequestDetailsTest { - private final MarketExecutionRequestDetails model = new MarketExecutionRequestDetails(); - - /** Model tests for MarketExecutionRequestDetails */ - @Test - void testMarketExecutionRequestDetails() { - // TODO: test MarketExecutionRequestDetails - } - - /** Test the property 'side' */ - @Test - void sideTest() { - // TODO: test side - } - - /** Test the property 'baseAmount' */ - @Test - void baseAmountTest() { - // TODO: test baseAmount - } - - /** Test the property 'baseAssetId' */ - @Test - void baseAssetIdTest() { - // TODO: test baseAssetId - } - - /** Test the property 'baseAssetRail' */ - @Test - void baseAssetRailTest() { - // TODO: test baseAssetRail - } - - /** Test the property 'quoteAssetId' */ - @Test - void quoteAssetIdTest() { - // TODO: test quoteAssetId - } - - /** Test the property 'quoteAssetRail' */ - @Test - void quoteAssetRailTest() { - // TODO: test quoteAssetRail - } - - /** Test the property 'type' */ - @Test - void typeTest() { - // TODO: test type - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/MarketExecutionResponseDetailsTest.java b/src/test/java/com/fireblocks/sdk/model/MarketExecutionResponseDetailsTest.java deleted file mode 100644 index a2e337d0..00000000 --- a/src/test/java/com/fireblocks/sdk/model/MarketExecutionResponseDetailsTest.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for MarketExecutionResponseDetails */ -class MarketExecutionResponseDetailsTest { - private final MarketExecutionResponseDetails model = new MarketExecutionResponseDetails(); - - /** Model tests for MarketExecutionResponseDetails */ - @Test - void testMarketExecutionResponseDetails() { - // TODO: test MarketExecutionResponseDetails - } - - /** Test the property 'side' */ - @Test - void sideTest() { - // TODO: test side - } - - /** Test the property 'baseAmount' */ - @Test - void baseAmountTest() { - // TODO: test baseAmount - } - - /** Test the property 'baseAssetId' */ - @Test - void baseAssetIdTest() { - // TODO: test baseAssetId - } - - /** Test the property 'baseAssetRail' */ - @Test - void baseAssetRailTest() { - // TODO: test baseAssetRail - } - - /** Test the property 'quoteAssetId' */ - @Test - void quoteAssetIdTest() { - // TODO: test quoteAssetId - } - - /** Test the property 'quoteAssetRail' */ - @Test - void quoteAssetRailTest() { - // TODO: test quoteAssetRail - } - - /** Test the property 'type' */ - @Test - void typeTest() { - // TODO: test type - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/MarketRequoteRequestDetailsTest.java b/src/test/java/com/fireblocks/sdk/model/MarketRequoteRequestDetailsTest.java deleted file mode 100644 index 776c3f6f..00000000 --- a/src/test/java/com/fireblocks/sdk/model/MarketRequoteRequestDetailsTest.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for MarketRequoteRequestDetails */ -class MarketRequoteRequestDetailsTest { - private final MarketRequoteRequestDetails model = new MarketRequoteRequestDetails(); - - /** Model tests for MarketRequoteRequestDetails */ - @Test - void testMarketRequoteRequestDetails() { - // TODO: test MarketRequoteRequestDetails - } - - /** Test the property 'type' */ - @Test - void typeTest() { - // TODO: test type - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/MergeStakeAccountsRequestTest.java b/src/test/java/com/fireblocks/sdk/model/MergeStakeAccountsRequestTest.java deleted file mode 100644 index 54913619..00000000 --- a/src/test/java/com/fireblocks/sdk/model/MergeStakeAccountsRequestTest.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for MergeStakeAccountsRequest */ -class MergeStakeAccountsRequestTest { - private final MergeStakeAccountsRequest model = new MergeStakeAccountsRequest(); - - /** Model tests for MergeStakeAccountsRequest */ - @Test - void testMergeStakeAccountsRequest() { - // TODO: test MergeStakeAccountsRequest - } - - /** Test the property 'sourceId' */ - @Test - void sourceIdTest() { - // TODO: test sourceId - } - - /** Test the property 'destinationId' */ - @Test - void destinationIdTest() { - // TODO: test destinationId - } - - /** Test the property 'fee' */ - @Test - void feeTest() { - // TODO: test fee - } - - /** Test the property 'feeLevel' */ - @Test - void feeLevelTest() { - // TODO: test feeLevel - } - - /** Test the property 'txNote' */ - @Test - void txNoteTest() { - // TODO: test txNote - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/MergeStakeAccountsResponseTest.java b/src/test/java/com/fireblocks/sdk/model/MergeStakeAccountsResponseTest.java deleted file mode 100644 index 574a34b5..00000000 --- a/src/test/java/com/fireblocks/sdk/model/MergeStakeAccountsResponseTest.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for MergeStakeAccountsResponse */ -class MergeStakeAccountsResponseTest { - private final MergeStakeAccountsResponse model = new MergeStakeAccountsResponse(); - - /** Model tests for MergeStakeAccountsResponse */ - @Test - void testMergeStakeAccountsResponse() { - // TODO: test MergeStakeAccountsResponse - } - - /** Test the property 'id' */ - @Test - void idTest() { - // TODO: test id - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/MomoPaymentInfoTest.java b/src/test/java/com/fireblocks/sdk/model/MomoPaymentInfoTest.java deleted file mode 100644 index 7ab4e230..00000000 --- a/src/test/java/com/fireblocks/sdk/model/MomoPaymentInfoTest.java +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for MomoPaymentInfo */ -class MomoPaymentInfoTest { - private final MomoPaymentInfo model = new MomoPaymentInfo(); - - /** Model tests for MomoPaymentInfo */ - @Test - void testMomoPaymentInfo() { - // TODO: test MomoPaymentInfo - } - - /** Test the property 'rail' */ - @Test - void railTest() { - // TODO: test rail - } - - /** Test the property 'addressingSystem' */ - @Test - void addressingSystemTest() { - // TODO: test addressingSystem - } - - /** Test the property 'accountHolderGivenName' */ - @Test - void accountHolderGivenNameTest() { - // TODO: test accountHolderGivenName - } - - /** Test the property 'accountHolderSurname' */ - @Test - void accountHolderSurnameTest() { - // TODO: test accountHolderSurname - } - - /** Test the property 'country' */ - @Test - void countryTest() { - // TODO: test country - } - - /** Test the property 'mobilePhoneNumber' */ - @Test - void mobilePhoneNumberTest() { - // TODO: test mobilePhoneNumber - } - - /** Test the property 'provider' */ - @Test - void providerTest() { - // TODO: test provider - } - - /** Test the property 'beneficiaryDocumentId' */ - @Test - void beneficiaryDocumentIdTest() { - // TODO: test beneficiaryDocumentId - } - - /** Test the property 'beneficiaryRelationship' */ - @Test - void beneficiaryRelationshipTest() { - // TODO: test beneficiaryRelationship - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/MpcKeyTest.java b/src/test/java/com/fireblocks/sdk/model/MpcKeyTest.java deleted file mode 100644 index 5ea77614..00000000 --- a/src/test/java/com/fireblocks/sdk/model/MpcKeyTest.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for MpcKey */ -class MpcKeyTest { - private final MpcKey model = new MpcKey(); - - /** Model tests for MpcKey */ - @Test - void testMpcKey() { - // TODO: test MpcKey - } - - /** Test the property 'keyId' */ - @Test - void keyIdTest() { - // TODO: test keyId - } - - /** Test the property 'userId' */ - @Test - void userIdTest() { - // TODO: test userId - } - - /** Test the property 'algorithm' */ - @Test - void algorithmTest() { - // TODO: test algorithm - } - - /** Test the property 'players' */ - @Test - void playersTest() { - // TODO: test players - } - - /** Test the property 'lastPreprocessedIndex' */ - @Test - void lastPreprocessedIndexTest() { - // TODO: test lastPreprocessedIndex - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/MultichainDeploymentMetadataTest.java b/src/test/java/com/fireblocks/sdk/model/MultichainDeploymentMetadataTest.java deleted file mode 100644 index 15f47216..00000000 --- a/src/test/java/com/fireblocks/sdk/model/MultichainDeploymentMetadataTest.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for MultichainDeploymentMetadata */ -class MultichainDeploymentMetadataTest { - private final MultichainDeploymentMetadata model = new MultichainDeploymentMetadata(); - - /** Model tests for MultichainDeploymentMetadata */ - @Test - void testMultichainDeploymentMetadata() { - // TODO: test MultichainDeploymentMetadata - } - - /** Test the property 'id' */ - @Test - void idTest() { - // TODO: test id - } - - /** Test the property 'address' */ - @Test - void addressTest() { - // TODO: test address - } - - /** Test the property 'templateId' */ - @Test - void templateIdTest() { - // TODO: test templateId - } - - /** Test the property 'deploymentSalt' */ - @Test - void deploymentSaltTest() { - // TODO: test deploymentSalt - } - - /** Test the property 'initParams' */ - @Test - void initParamsTest() { - // TODO: test initParams - } - - /** Test the property 'encodedInitParams' */ - @Test - void encodedInitParamsTest() { - // TODO: test encodedInitParams - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/NetworkIdResponseTest.java b/src/test/java/com/fireblocks/sdk/model/NetworkIdResponseTest.java index 2f0f953d..8d8d6a70 100644 --- a/src/test/java/com/fireblocks/sdk/model/NetworkIdResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/NetworkIdResponseTest.java @@ -25,18 +25,6 @@ void testNetworkIdResponse() { // TODO: test NetworkIdResponse } - /** Test the property 'routingPolicy' */ - @Test - void routingPolicyTest() { - // TODO: test routingPolicy - } - - /** Test the property 'isDiscoverable' */ - @Test - void isDiscoverableTest() { - // TODO: test isDiscoverable - } - /** Test the property 'id' */ @Test void idTest() { @@ -48,4 +36,16 @@ void idTest() { void nameTest() { // TODO: test name } + + /** Test the property 'routingPolicy' */ + @Test + void routingPolicyTest() { + // TODO: test routingPolicy + } + + /** Test the property 'isDiscoverable' */ + @Test + void isDiscoverableTest() { + // TODO: test isDiscoverable + } } diff --git a/src/test/java/com/fireblocks/sdk/model/NewAddressTest.java b/src/test/java/com/fireblocks/sdk/model/NewAddressTest.java deleted file mode 100644 index cce77ce8..00000000 --- a/src/test/java/com/fireblocks/sdk/model/NewAddressTest.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for NewAddress */ -class NewAddressTest { - private final NewAddress model = new NewAddress(); - - /** Model tests for NewAddress */ - @Test - void testNewAddress() { - // TODO: test NewAddress - } - - /** Test the property 'address' */ - @Test - void addressTest() { - // TODO: test address - } - - /** Test the property 'index' */ - @Test - void indexTest() { - // TODO: test index - } - - /** Test the property 'description' */ - @Test - void descriptionTest() { - // TODO: test description - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/NotificationAttemptTest.java b/src/test/java/com/fireblocks/sdk/model/NotificationAttemptTest.java deleted file mode 100644 index 408ce66a..00000000 --- a/src/test/java/com/fireblocks/sdk/model/NotificationAttemptTest.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for NotificationAttempt */ -class NotificationAttemptTest { - private final NotificationAttempt model = new NotificationAttempt(); - - /** Model tests for NotificationAttempt */ - @Test - void testNotificationAttempt() { - // TODO: test NotificationAttempt - } - - /** Test the property 'sentTime' */ - @Test - void sentTimeTest() { - // TODO: test sentTime - } - - /** Test the property 'duration' */ - @Test - void durationTest() { - // TODO: test duration - } - - /** Test the property 'responseCode' */ - @Test - void responseCodeTest() { - // TODO: test responseCode - } - - /** Test the property 'failureReason' */ - @Test - void failureReasonTest() { - // TODO: test failureReason - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/NotificationAttemptsPaginatedResponseTest.java b/src/test/java/com/fireblocks/sdk/model/NotificationAttemptsPaginatedResponseTest.java deleted file mode 100644 index d1ac1301..00000000 --- a/src/test/java/com/fireblocks/sdk/model/NotificationAttemptsPaginatedResponseTest.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for NotificationAttemptsPaginatedResponse */ -class NotificationAttemptsPaginatedResponseTest { - private final NotificationAttemptsPaginatedResponse model = - new NotificationAttemptsPaginatedResponse(); - - /** Model tests for NotificationAttemptsPaginatedResponse */ - @Test - void testNotificationAttemptsPaginatedResponse() { - // TODO: test NotificationAttemptsPaginatedResponse - } - - /** Test the property 'data' */ - @Test - void dataTest() { - // TODO: test data - } - - /** Test the property 'next' */ - @Test - void nextTest() { - // TODO: test next - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/NotificationPaginatedResponseTest.java b/src/test/java/com/fireblocks/sdk/model/NotificationPaginatedResponseTest.java deleted file mode 100644 index d51f408a..00000000 --- a/src/test/java/com/fireblocks/sdk/model/NotificationPaginatedResponseTest.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for NotificationPaginatedResponse */ -class NotificationPaginatedResponseTest { - private final NotificationPaginatedResponse model = new NotificationPaginatedResponse(); - - /** Model tests for NotificationPaginatedResponse */ - @Test - void testNotificationPaginatedResponse() { - // TODO: test NotificationPaginatedResponse - } - - /** Test the property 'data' */ - @Test - void dataTest() { - // TODO: test data - } - - /** Test the property 'total' */ - @Test - void totalTest() { - // TODO: test total - } - - /** Test the property 'next' */ - @Test - void nextTest() { - // TODO: test next - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/NotificationStatusTest.java b/src/test/java/com/fireblocks/sdk/model/NotificationStatusTest.java deleted file mode 100644 index dfaa1748..00000000 --- a/src/test/java/com/fireblocks/sdk/model/NotificationStatusTest.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for NotificationStatus */ -class NotificationStatusTest { - /** Model tests for NotificationStatus */ - @Test - void testNotificationStatus() { - // TODO: test NotificationStatus - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/NotificationTest.java b/src/test/java/com/fireblocks/sdk/model/NotificationTest.java deleted file mode 100644 index f029f3fd..00000000 --- a/src/test/java/com/fireblocks/sdk/model/NotificationTest.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for Notification */ -class NotificationTest { - private final Notification model = new Notification(); - - /** Model tests for Notification */ - @Test - void testNotification() { - // TODO: test Notification - } - - /** Test the property 'id' */ - @Test - void idTest() { - // TODO: test id - } - - /** Test the property 'createdAt' */ - @Test - void createdAtTest() { - // TODO: test createdAt - } - - /** Test the property 'updatedAt' */ - @Test - void updatedAtTest() { - // TODO: test updatedAt - } - - /** Test the property 'status' */ - @Test - void statusTest() { - // TODO: test status - } - - /** Test the property 'eventType' */ - @Test - void eventTypeTest() { - // TODO: test eventType - } - - /** Test the property 'resourceId' */ - @Test - void resourceIdTest() { - // TODO: test resourceId - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/NotificationWithDataTest.java b/src/test/java/com/fireblocks/sdk/model/NotificationWithDataTest.java deleted file mode 100644 index 8d318cba..00000000 --- a/src/test/java/com/fireblocks/sdk/model/NotificationWithDataTest.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for NotificationWithData */ -class NotificationWithDataTest { - private final NotificationWithData model = new NotificationWithData(); - - /** Model tests for NotificationWithData */ - @Test - void testNotificationWithData() { - // TODO: test NotificationWithData - } - - /** Test the property 'id' */ - @Test - void idTest() { - // TODO: test id - } - - /** Test the property 'createdAt' */ - @Test - void createdAtTest() { - // TODO: test createdAt - } - - /** Test the property 'updatedAt' */ - @Test - void updatedAtTest() { - // TODO: test updatedAt - } - - /** Test the property 'status' */ - @Test - void statusTest() { - // TODO: test status - } - - /** Test the property 'eventType' */ - @Test - void eventTypeTest() { - // TODO: test eventType - } - - /** Test the property 'resourceId' */ - @Test - void resourceIdTest() { - // TODO: test resourceId - } - - /** Test the property 'data' */ - @Test - void dataTest() { - // TODO: test data - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/OrderDetailsTest.java b/src/test/java/com/fireblocks/sdk/model/OrderDetailsTest.java deleted file mode 100644 index 824904d7..00000000 --- a/src/test/java/com/fireblocks/sdk/model/OrderDetailsTest.java +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for OrderDetails */ -class OrderDetailsTest { - private final OrderDetails model = new OrderDetails(); - - /** Model tests for OrderDetails */ - @Test - void testOrderDetails() { - // TODO: test OrderDetails - } - - /** Test the property 'id' */ - @Test - void idTest() { - // TODO: test id - } - - /** Test the property 'via' */ - @Test - void viaTest() { - // TODO: test via - } - - /** Test the property 'status' */ - @Test - void statusTest() { - // TODO: test status - } - - /** Test the property 'createdAt' */ - @Test - void createdAtTest() { - // TODO: test createdAt - } - - /** Test the property 'updatedAt' */ - @Test - void updatedAtTest() { - // TODO: test updatedAt - } - - /** Test the property 'receipt' */ - @Test - void receiptTest() { - // TODO: test receipt - } - - /** Test the property 'generalFees' */ - @Test - void generalFeesTest() { - // TODO: test generalFees - } - - /** Test the property 'executionSteps' */ - @Test - void executionStepsTest() { - // TODO: test executionSteps - } - - /** Test the property 'executionResponseDetails' */ - @Test - void executionResponseDetailsTest() { - // TODO: test executionResponseDetails - } - - /** Test the property 'settlement' */ - @Test - void settlementTest() { - // TODO: test settlement - } - - /** Test the property 'participantsIdentification' */ - @Test - void participantsIdentificationTest() { - // TODO: test participantsIdentification - } - - /** Test the property 'paymentInstructions' */ - @Test - void paymentInstructionsTest() { - // TODO: test paymentInstructions - } - - /** Test the property 'createdBy' */ - @Test - void createdByTest() { - // TODO: test createdBy - } - - /** Test the property 'customerInternalReferenceId' */ - @Test - void customerInternalReferenceIdTest() { - // TODO: test customerInternalReferenceId - } - - /** Test the property 'note' */ - @Test - void noteTest() { - // TODO: test note - } - - /** Test the property 'expiresAt' */ - @Test - void expiresAtTest() { - // TODO: test expiresAt - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/OrderStatusTest.java b/src/test/java/com/fireblocks/sdk/model/OrderStatusTest.java deleted file mode 100644 index db974d42..00000000 --- a/src/test/java/com/fireblocks/sdk/model/OrderStatusTest.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for OrderStatus */ -class OrderStatusTest { - /** Model tests for OrderStatus */ - @Test - void testOrderStatus() { - // TODO: test OrderStatus - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/OrderSummaryTest.java b/src/test/java/com/fireblocks/sdk/model/OrderSummaryTest.java deleted file mode 100644 index 24b8b7c8..00000000 --- a/src/test/java/com/fireblocks/sdk/model/OrderSummaryTest.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for OrderSummary */ -class OrderSummaryTest { - private final OrderSummary model = new OrderSummary(); - - /** Model tests for OrderSummary */ - @Test - void testOrderSummary() { - // TODO: test OrderSummary - } - - /** Test the property 'id' */ - @Test - void idTest() { - // TODO: test id - } - - /** Test the property 'via' */ - @Test - void viaTest() { - // TODO: test via - } - - /** Test the property 'side' */ - @Test - void sideTest() { - // TODO: test side - } - - /** Test the property 'baseAmount' */ - @Test - void baseAmountTest() { - // TODO: test baseAmount - } - - /** Test the property 'quoteAmount' */ - @Test - void quoteAmountTest() { - // TODO: test quoteAmount - } - - /** Test the property 'baseAssetId' */ - @Test - void baseAssetIdTest() { - // TODO: test baseAssetId - } - - /** Test the property 'quoteAssetId' */ - @Test - void quoteAssetIdTest() { - // TODO: test quoteAssetId - } - - /** Test the property 'status' */ - @Test - void statusTest() { - // TODO: test status - } - - /** Test the property 'destination' */ - @Test - void destinationTest() { - // TODO: test destination - } - - /** Test the property 'source' */ - @Test - void sourceTest() { - // TODO: test source - } - - /** Test the property 'createdAt' */ - @Test - void createdAtTest() { - // TODO: test createdAt - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/PairApiKeyRequestTest.java b/src/test/java/com/fireblocks/sdk/model/PairApiKeyRequestTest.java deleted file mode 100644 index 0a36b623..00000000 --- a/src/test/java/com/fireblocks/sdk/model/PairApiKeyRequestTest.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for PairApiKeyRequest */ -class PairApiKeyRequestTest { - private final PairApiKeyRequest model = new PairApiKeyRequest(); - - /** Model tests for PairApiKeyRequest */ - @Test - void testPairApiKeyRequest() { - // TODO: test PairApiKeyRequest - } - - /** Test the property 'callbackHandler' */ - @Test - void callbackHandlerTest() { - // TODO: test callbackHandler - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/PairApiKeyResponseTest.java b/src/test/java/com/fireblocks/sdk/model/PairApiKeyResponseTest.java deleted file mode 100644 index b98a6f37..00000000 --- a/src/test/java/com/fireblocks/sdk/model/PairApiKeyResponseTest.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for PairApiKeyResponse */ -class PairApiKeyResponseTest { - private final PairApiKeyResponse model = new PairApiKeyResponse(); - - /** Model tests for PairApiKeyResponse */ - @Test - void testPairApiKeyResponse() { - // TODO: test PairApiKeyResponse - } - - /** Test the property 'id' */ - @Test - void idTest() { - // TODO: test id - } - - /** Test the property 'callbackHandler' */ - @Test - void callbackHandlerTest() { - // TODO: test callbackHandler - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/ParticipantRelationshipTypeTest.java b/src/test/java/com/fireblocks/sdk/model/ParticipantRelationshipTypeTest.java deleted file mode 100644 index ae2c4727..00000000 --- a/src/test/java/com/fireblocks/sdk/model/ParticipantRelationshipTypeTest.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for ParticipantRelationshipType */ -class ParticipantRelationshipTypeTest { - /** Model tests for ParticipantRelationshipType */ - @Test - void testParticipantRelationshipType() { - // TODO: test ParticipantRelationshipType - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/ParticipantsIdentificationTest.java b/src/test/java/com/fireblocks/sdk/model/ParticipantsIdentificationTest.java deleted file mode 100644 index 34eec533..00000000 --- a/src/test/java/com/fireblocks/sdk/model/ParticipantsIdentificationTest.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for ParticipantsIdentification */ -class ParticipantsIdentificationTest { - private final ParticipantsIdentification model = new ParticipantsIdentification(); - - /** Model tests for ParticipantsIdentification */ - @Test - void testParticipantsIdentification() { - // TODO: test ParticipantsIdentification - } - - /** Test the property 'originator' */ - @Test - void originatorTest() { - // TODO: test originator - } - - /** Test the property 'beneficiary' */ - @Test - void beneficiaryTest() { - // TODO: test beneficiary - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/PaymentInstructionsTest.java b/src/test/java/com/fireblocks/sdk/model/PaymentInstructionsTest.java deleted file mode 100644 index a04139e4..00000000 --- a/src/test/java/com/fireblocks/sdk/model/PaymentInstructionsTest.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for PaymentInstructions */ -class PaymentInstructionsTest { - private final PaymentInstructions model = new PaymentInstructions(); - - /** Model tests for PaymentInstructions */ - @Test - void testPaymentInstructions() { - // TODO: test PaymentInstructions - } - - /** Test the property 'type' */ - @Test - void typeTest() { - // TODO: test type - } - - /** Test the property 'address' */ - @Test - void addressTest() { - // TODO: test address - } - - /** Test the property 'referenceId' */ - @Test - void referenceIdTest() { - // TODO: test referenceId - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/PeerAdapterInfoTest.java b/src/test/java/com/fireblocks/sdk/model/PeerAdapterInfoTest.java deleted file mode 100644 index ab4fa68d..00000000 --- a/src/test/java/com/fireblocks/sdk/model/PeerAdapterInfoTest.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for PeerAdapterInfo */ -class PeerAdapterInfoTest { - private final PeerAdapterInfo model = new PeerAdapterInfo(); - - /** Model tests for PeerAdapterInfo */ - @Test - void testPeerAdapterInfo() { - // TODO: test PeerAdapterInfo - } - - /** Test the property 'adapterTokenLinkId' */ - @Test - void adapterTokenLinkIdTest() { - // TODO: test adapterTokenLinkId - } - - /** Test the property 'adapterAddress' */ - @Test - void adapterAddressTest() { - // TODO: test adapterAddress - } - - /** Test the property 'baseAssetId' */ - @Test - void baseAssetIdTest() { - // TODO: test baseAssetId - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/PeerTypeTest.java b/src/test/java/com/fireblocks/sdk/model/PeerTypeTest.java deleted file mode 100644 index 6615dcaf..00000000 --- a/src/test/java/com/fireblocks/sdk/model/PeerTypeTest.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for PeerType */ -class PeerTypeTest { - /** Model tests for PeerType */ - @Test - void testPeerType() { - // TODO: test PeerType - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/PersonalIdentificationFullNameTest.java b/src/test/java/com/fireblocks/sdk/model/PersonalIdentificationFullNameTest.java deleted file mode 100644 index 51fead83..00000000 --- a/src/test/java/com/fireblocks/sdk/model/PersonalIdentificationFullNameTest.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for PersonalIdentificationFullName */ -class PersonalIdentificationFullNameTest { - private final PersonalIdentificationFullName model = new PersonalIdentificationFullName(); - - /** Model tests for PersonalIdentificationFullName */ - @Test - void testPersonalIdentificationFullName() { - // TODO: test PersonalIdentificationFullName - } - - /** Test the property 'firstName' */ - @Test - void firstNameTest() { - // TODO: test firstName - } - - /** Test the property 'lastName' */ - @Test - void lastNameTest() { - // TODO: test lastName - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/PersonalIdentificationTest.java b/src/test/java/com/fireblocks/sdk/model/PersonalIdentificationTest.java deleted file mode 100644 index c36ebae5..00000000 --- a/src/test/java/com/fireblocks/sdk/model/PersonalIdentificationTest.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for PersonalIdentification */ -class PersonalIdentificationTest { - private final PersonalIdentification model = new PersonalIdentification(); - - /** Model tests for PersonalIdentification */ - @Test - void testPersonalIdentification() { - // TODO: test PersonalIdentification - } - - /** Test the property 'externalReferenceId' */ - @Test - void externalReferenceIdTest() { - // TODO: test externalReferenceId - } - - /** Test the property 'entityType' */ - @Test - void entityTypeTest() { - // TODO: test entityType - } - - /** Test the property 'participantRelationshipType' */ - @Test - void participantRelationshipTypeTest() { - // TODO: test participantRelationshipType - } - - /** Test the property 'fullName' */ - @Test - void fullNameTest() { - // TODO: test fullName - } - - /** Test the property 'dateOfBirth' */ - @Test - void dateOfBirthTest() { - // TODO: test dateOfBirth - } - - /** Test the property 'postalAddress' */ - @Test - void postalAddressTest() { - // TODO: test postalAddress - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/PixPaymentInfoTest.java b/src/test/java/com/fireblocks/sdk/model/PixPaymentInfoTest.java deleted file mode 100644 index dbb15354..00000000 --- a/src/test/java/com/fireblocks/sdk/model/PixPaymentInfoTest.java +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for PixPaymentInfo */ -class PixPaymentInfoTest { - private final PixPaymentInfo model = new PixPaymentInfo(); - - /** Model tests for PixPaymentInfo */ - @Test - void testPixPaymentInfo() { - // TODO: test PixPaymentInfo - } - - /** Test the property 'rail' */ - @Test - void railTest() { - // TODO: test rail - } - - /** Test the property 'addressingSystem' */ - @Test - void addressingSystemTest() { - // TODO: test addressingSystem - } - - /** Test the property 'accountHolderGivenName' */ - @Test - void accountHolderGivenNameTest() { - // TODO: test accountHolderGivenName - } - - /** Test the property 'accountHolderSurname' */ - @Test - void accountHolderSurnameTest() { - // TODO: test accountHolderSurname - } - - /** Test the property 'country' */ - @Test - void countryTest() { - // TODO: test country - } - - /** Test the property 'pixKey' */ - @Test - void pixKeyTest() { - // TODO: test pixKey - } - - /** Test the property 'bankName' */ - @Test - void bankNameTest() { - // TODO: test bankName - } - - /** Test the property 'bankCode' */ - @Test - void bankCodeTest() { - // TODO: test bankCode - } - - /** Test the property 'keyType' */ - @Test - void keyTypeTest() { - // TODO: test keyType - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/PlatformAccountTest.java b/src/test/java/com/fireblocks/sdk/model/PlatformAccountTest.java deleted file mode 100644 index 7c8dbbd6..00000000 --- a/src/test/java/com/fireblocks/sdk/model/PlatformAccountTest.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for PlatformAccount */ -class PlatformAccountTest { - private final PlatformAccount model = new PlatformAccount(); - - /** Model tests for PlatformAccount */ - @Test - void testPlatformAccount() { - // TODO: test PlatformAccount - } - - /** Test the property 'type' */ - @Test - void typeTest() { - // TODO: test type - } - - /** Test the property 'accountId' */ - @Test - void accountIdTest() { - // TODO: test accountId - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/PlayersTest.java b/src/test/java/com/fireblocks/sdk/model/PlayersTest.java deleted file mode 100644 index 04def2a8..00000000 --- a/src/test/java/com/fireblocks/sdk/model/PlayersTest.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for Players */ -class PlayersTest { - private final Players model = new Players(); - - /** Model tests for Players */ - @Test - void testPlayers() { - // TODO: test Players - } - - /** Test the property 'id' */ - @Test - void idTest() { - // TODO: test id - } - - /** Test the property 'type' */ - @Test - void typeTest() { - // TODO: test type - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/PolicyMetadataTest.java b/src/test/java/com/fireblocks/sdk/model/PolicyMetadataTest.java index 6e71c38a..c4b8d0f0 100644 --- a/src/test/java/com/fireblocks/sdk/model/PolicyMetadataTest.java +++ b/src/test/java/com/fireblocks/sdk/model/PolicyMetadataTest.java @@ -48,10 +48,4 @@ void publishedByTest() { void publishedAtTest() { // TODO: test publishedAt } - - /** Test the property 'policyType' */ - @Test - void policyTypeTest() { - // TODO: test policyType - } } diff --git a/src/test/java/com/fireblocks/sdk/model/PolicyOperatorTest.java b/src/test/java/com/fireblocks/sdk/model/PolicyOperatorTest.java deleted file mode 100644 index 40a50c3c..00000000 --- a/src/test/java/com/fireblocks/sdk/model/PolicyOperatorTest.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for PolicyOperator */ -class PolicyOperatorTest { - /** Model tests for PolicyOperator */ - @Test - void testPolicyOperator() { - // TODO: test PolicyOperator - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleAmountAggregationTest.java b/src/test/java/com/fireblocks/sdk/model/PolicyRuleAmountAggregationTest.java similarity index 70% rename from src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleAmountAggregationTest.java rename to src/test/java/com/fireblocks/sdk/model/PolicyRuleAmountAggregationTest.java index 8c7636e6..912654d8 100644 --- a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleAmountAggregationTest.java +++ b/src/test/java/com/fireblocks/sdk/model/PolicyRuleAmountAggregationTest.java @@ -15,14 +15,14 @@ import org.junit.jupiter.api.Test; -/** Model tests for LegacyPolicyRuleAmountAggregation */ -class LegacyPolicyRuleAmountAggregationTest { - private final LegacyPolicyRuleAmountAggregation model = new LegacyPolicyRuleAmountAggregation(); +/** Model tests for PolicyRuleAmountAggregation */ +class PolicyRuleAmountAggregationTest { + private final PolicyRuleAmountAggregation model = new PolicyRuleAmountAggregation(); - /** Model tests for LegacyPolicyRuleAmountAggregation */ + /** Model tests for PolicyRuleAmountAggregation */ @Test - void testLegacyPolicyRuleAmountAggregation() { - // TODO: test LegacyPolicyRuleAmountAggregation + void testPolicyRuleAmountAggregation() { + // TODO: test PolicyRuleAmountAggregation } /** Test the property 'operators' */ diff --git a/src/test/java/com/fireblocks/sdk/model/AssetFeatureTest.java b/src/test/java/com/fireblocks/sdk/model/PolicyRuleAmountTest.java similarity index 65% rename from src/test/java/com/fireblocks/sdk/model/AssetFeatureTest.java rename to src/test/java/com/fireblocks/sdk/model/PolicyRuleAmountTest.java index 57c9d27f..431c57d8 100644 --- a/src/test/java/com/fireblocks/sdk/model/AssetFeatureTest.java +++ b/src/test/java/com/fireblocks/sdk/model/PolicyRuleAmountTest.java @@ -15,11 +15,13 @@ import org.junit.jupiter.api.Test; -/** Model tests for AssetFeature */ -class AssetFeatureTest { - /** Model tests for AssetFeature */ +/** Model tests for PolicyRuleAmount */ +class PolicyRuleAmountTest { + private final PolicyRuleAmount model = new PolicyRuleAmount(); + + /** Model tests for PolicyRuleAmount */ @Test - void testAssetFeature() { - // TODO: test AssetFeature + void testPolicyRuleAmount() { + // TODO: test PolicyRuleAmount } } diff --git a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleAuthorizationGroupsGroupsInnerTest.java b/src/test/java/com/fireblocks/sdk/model/PolicyRuleAuthorizationGroupsGroupsInnerTest.java similarity index 62% rename from src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleAuthorizationGroupsGroupsInnerTest.java rename to src/test/java/com/fireblocks/sdk/model/PolicyRuleAuthorizationGroupsGroupsInnerTest.java index c4527e70..ab913e5d 100644 --- a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleAuthorizationGroupsGroupsInnerTest.java +++ b/src/test/java/com/fireblocks/sdk/model/PolicyRuleAuthorizationGroupsGroupsInnerTest.java @@ -15,15 +15,15 @@ import org.junit.jupiter.api.Test; -/** Model tests for LegacyPolicyRuleAuthorizationGroupsGroupsInner */ -class LegacyPolicyRuleAuthorizationGroupsGroupsInnerTest { - private final LegacyPolicyRuleAuthorizationGroupsGroupsInner model = - new LegacyPolicyRuleAuthorizationGroupsGroupsInner(); +/** Model tests for PolicyRuleAuthorizationGroupsGroupsInner */ +class PolicyRuleAuthorizationGroupsGroupsInnerTest { + private final PolicyRuleAuthorizationGroupsGroupsInner model = + new PolicyRuleAuthorizationGroupsGroupsInner(); - /** Model tests for LegacyPolicyRuleAuthorizationGroupsGroupsInner */ + /** Model tests for PolicyRuleAuthorizationGroupsGroupsInner */ @Test - void testLegacyPolicyRuleAuthorizationGroupsGroupsInner() { - // TODO: test LegacyPolicyRuleAuthorizationGroupsGroupsInner + void testPolicyRuleAuthorizationGroupsGroupsInner() { + // TODO: test PolicyRuleAuthorizationGroupsGroupsInner } /** Test the property 'users' */ diff --git a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleAuthorizationGroupsTest.java b/src/test/java/com/fireblocks/sdk/model/PolicyRuleAuthorizationGroupsTest.java similarity index 68% rename from src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleAuthorizationGroupsTest.java rename to src/test/java/com/fireblocks/sdk/model/PolicyRuleAuthorizationGroupsTest.java index c9a1724c..e28b0684 100644 --- a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleAuthorizationGroupsTest.java +++ b/src/test/java/com/fireblocks/sdk/model/PolicyRuleAuthorizationGroupsTest.java @@ -15,15 +15,14 @@ import org.junit.jupiter.api.Test; -/** Model tests for LegacyPolicyRuleAuthorizationGroups */ -class LegacyPolicyRuleAuthorizationGroupsTest { - private final LegacyPolicyRuleAuthorizationGroups model = - new LegacyPolicyRuleAuthorizationGroups(); +/** Model tests for PolicyRuleAuthorizationGroups */ +class PolicyRuleAuthorizationGroupsTest { + private final PolicyRuleAuthorizationGroups model = new PolicyRuleAuthorizationGroups(); - /** Model tests for LegacyPolicyRuleAuthorizationGroups */ + /** Model tests for PolicyRuleAuthorizationGroups */ @Test - void testLegacyPolicyRuleAuthorizationGroups() { - // TODO: test LegacyPolicyRuleAuthorizationGroups + void testPolicyRuleAuthorizationGroups() { + // TODO: test PolicyRuleAuthorizationGroups } /** Test the property 'logic' */ diff --git a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleDesignatedSignersTest.java b/src/test/java/com/fireblocks/sdk/model/PolicyRuleDesignatedSignersTest.java similarity index 65% rename from src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleDesignatedSignersTest.java rename to src/test/java/com/fireblocks/sdk/model/PolicyRuleDesignatedSignersTest.java index 247133d1..75444043 100644 --- a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleDesignatedSignersTest.java +++ b/src/test/java/com/fireblocks/sdk/model/PolicyRuleDesignatedSignersTest.java @@ -15,14 +15,14 @@ import org.junit.jupiter.api.Test; -/** Model tests for LegacyPolicyRuleDesignatedSigners */ -class LegacyPolicyRuleDesignatedSignersTest { - private final LegacyPolicyRuleDesignatedSigners model = new LegacyPolicyRuleDesignatedSigners(); +/** Model tests for PolicyRuleDesignatedSigners */ +class PolicyRuleDesignatedSignersTest { + private final PolicyRuleDesignatedSigners model = new PolicyRuleDesignatedSigners(); - /** Model tests for LegacyPolicyRuleDesignatedSigners */ + /** Model tests for PolicyRuleDesignatedSigners */ @Test - void testLegacyPolicyRuleDesignatedSigners() { - // TODO: test LegacyPolicyRuleDesignatedSigners + void testPolicyRuleDesignatedSigners() { + // TODO: test PolicyRuleDesignatedSigners } /** Test the property 'users' */ diff --git a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleDstTest.java b/src/test/java/com/fireblocks/sdk/model/PolicyRuleDstTest.java similarity index 67% rename from src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleDstTest.java rename to src/test/java/com/fireblocks/sdk/model/PolicyRuleDstTest.java index db810e3b..2a8f5657 100644 --- a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleDstTest.java +++ b/src/test/java/com/fireblocks/sdk/model/PolicyRuleDstTest.java @@ -15,14 +15,14 @@ import org.junit.jupiter.api.Test; -/** Model tests for LegacyPolicyRuleDst */ -class LegacyPolicyRuleDstTest { - private final LegacyPolicyRuleDst model = new LegacyPolicyRuleDst(); +/** Model tests for PolicyRuleDst */ +class PolicyRuleDstTest { + private final PolicyRuleDst model = new PolicyRuleDst(); - /** Model tests for LegacyPolicyRuleDst */ + /** Model tests for PolicyRuleDst */ @Test - void testLegacyPolicyRuleDst() { - // TODO: test LegacyPolicyRuleDst + void testPolicyRuleDst() { + // TODO: test PolicyRuleDst } /** Test the property 'ids' */ diff --git a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleOperatorsTest.java b/src/test/java/com/fireblocks/sdk/model/PolicyRuleOperatorsTest.java similarity index 74% rename from src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleOperatorsTest.java rename to src/test/java/com/fireblocks/sdk/model/PolicyRuleOperatorsTest.java index a9ef2aed..88c25143 100644 --- a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleOperatorsTest.java +++ b/src/test/java/com/fireblocks/sdk/model/PolicyRuleOperatorsTest.java @@ -15,14 +15,14 @@ import org.junit.jupiter.api.Test; -/** Model tests for LegacyPolicyRuleOperators */ -class LegacyPolicyRuleOperatorsTest { - private final LegacyPolicyRuleOperators model = new LegacyPolicyRuleOperators(); +/** Model tests for PolicyRuleOperators */ +class PolicyRuleOperatorsTest { + private final PolicyRuleOperators model = new PolicyRuleOperators(); - /** Model tests for LegacyPolicyRuleOperators */ + /** Model tests for PolicyRuleOperators */ @Test - void testLegacyPolicyRuleOperators() { - // TODO: test LegacyPolicyRuleOperators + void testPolicyRuleOperators() { + // TODO: test PolicyRuleOperators } /** Test the property 'wildcard' */ diff --git a/src/test/java/com/fireblocks/sdk/model/DerivationPathConfigTest.java b/src/test/java/com/fireblocks/sdk/model/PolicyRuleRawMessageSigningDerivationPathTest.java similarity index 56% rename from src/test/java/com/fireblocks/sdk/model/DerivationPathConfigTest.java rename to src/test/java/com/fireblocks/sdk/model/PolicyRuleRawMessageSigningDerivationPathTest.java index 39cbc288..5a955631 100644 --- a/src/test/java/com/fireblocks/sdk/model/DerivationPathConfigTest.java +++ b/src/test/java/com/fireblocks/sdk/model/PolicyRuleRawMessageSigningDerivationPathTest.java @@ -15,14 +15,15 @@ import org.junit.jupiter.api.Test; -/** Model tests for DerivationPathConfig */ -class DerivationPathConfigTest { - private final DerivationPathConfig model = new DerivationPathConfig(); +/** Model tests for PolicyRuleRawMessageSigningDerivationPath */ +class PolicyRuleRawMessageSigningDerivationPathTest { + private final PolicyRuleRawMessageSigningDerivationPath model = + new PolicyRuleRawMessageSigningDerivationPath(); - /** Model tests for DerivationPathConfig */ + /** Model tests for PolicyRuleRawMessageSigningDerivationPath */ @Test - void testDerivationPathConfig() { - // TODO: test DerivationPathConfig + void testPolicyRuleRawMessageSigningDerivationPath() { + // TODO: test PolicyRuleRawMessageSigningDerivationPath } /** Test the property 'path' */ @@ -30,10 +31,4 @@ void testDerivationPathConfig() { void pathTest() { // TODO: test path } - - /** Test the property 'partial' */ - @Test - void partialTest() { - // TODO: test partial - } } diff --git a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleRawMessageSigningTest.java b/src/test/java/com/fireblocks/sdk/model/PolicyRuleRawMessageSigningTest.java similarity index 66% rename from src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleRawMessageSigningTest.java rename to src/test/java/com/fireblocks/sdk/model/PolicyRuleRawMessageSigningTest.java index 41a212ea..30123034 100644 --- a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleRawMessageSigningTest.java +++ b/src/test/java/com/fireblocks/sdk/model/PolicyRuleRawMessageSigningTest.java @@ -15,14 +15,14 @@ import org.junit.jupiter.api.Test; -/** Model tests for LegacyPolicyRuleRawMessageSigning */ -class LegacyPolicyRuleRawMessageSigningTest { - private final LegacyPolicyRuleRawMessageSigning model = new LegacyPolicyRuleRawMessageSigning(); +/** Model tests for PolicyRuleRawMessageSigning */ +class PolicyRuleRawMessageSigningTest { + private final PolicyRuleRawMessageSigning model = new PolicyRuleRawMessageSigning(); - /** Model tests for LegacyPolicyRuleRawMessageSigning */ + /** Model tests for PolicyRuleRawMessageSigning */ @Test - void testLegacyPolicyRuleRawMessageSigning() { - // TODO: test LegacyPolicyRuleRawMessageSigning + void testPolicyRuleRawMessageSigning() { + // TODO: test PolicyRuleRawMessageSigning } /** Test the property 'algorithm' */ diff --git a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleSrcTest.java b/src/test/java/com/fireblocks/sdk/model/PolicyRuleSrcTest.java similarity index 67% rename from src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleSrcTest.java rename to src/test/java/com/fireblocks/sdk/model/PolicyRuleSrcTest.java index 6deb7926..33daa63c 100644 --- a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleSrcTest.java +++ b/src/test/java/com/fireblocks/sdk/model/PolicyRuleSrcTest.java @@ -15,14 +15,14 @@ import org.junit.jupiter.api.Test; -/** Model tests for LegacyPolicyRuleSrc */ -class LegacyPolicyRuleSrcTest { - private final LegacyPolicyRuleSrc model = new LegacyPolicyRuleSrc(); +/** Model tests for PolicyRuleSrc */ +class PolicyRuleSrcTest { + private final PolicyRuleSrc model = new PolicyRuleSrc(); - /** Model tests for LegacyPolicyRuleSrc */ + /** Model tests for PolicyRuleSrc */ @Test - void testLegacyPolicyRuleSrc() { - // TODO: test LegacyPolicyRuleSrc + void testPolicyRuleSrc() { + // TODO: test PolicyRuleSrc } /** Test the property 'ids' */ diff --git a/src/test/java/com/fireblocks/sdk/model/PolicyRuleTest.java b/src/test/java/com/fireblocks/sdk/model/PolicyRuleTest.java index 3d3eafe3..6f20bd20 100644 --- a/src/test/java/com/fireblocks/sdk/model/PolicyRuleTest.java +++ b/src/test/java/com/fireblocks/sdk/model/PolicyRuleTest.java @@ -25,40 +25,46 @@ void testPolicyRule() { // TODO: test PolicyRule } - /** Test the property 'name' */ + /** Test the property 'operator' */ @Test - void nameTest() { - // TODO: test name + void operatorTest() { + // TODO: test operator } - /** Test the property 'id' */ + /** Test the property 'operators' */ @Test - void idTest() { - // TODO: test id + void operatorsTest() { + // TODO: test operators } - /** Test the property 'policyEngineVersion' */ + /** Test the property 'transactionType' */ @Test - void policyEngineVersionTest() { - // TODO: test policyEngineVersion + void transactionTypeTest() { + // TODO: test transactionType } - /** Test the property 'type' */ + /** Test the property 'designatedSigner' */ @Test - void typeTest() { - // TODO: test type + void designatedSignerTest() { + // TODO: test designatedSigner } - /** Test the property 'subType' */ + /** Test the property 'designatedSigners' */ @Test - void subTypeTest() { - // TODO: test subType + void designatedSignersTest() { + // TODO: test designatedSigners + } + + /** Test the property 'type' */ + @Test + void typeTest() { + // TODO: test type } - /** Test the property 'initiator' */ + /** Test the property 'action' */ @Test - void initiatorTest() { - // TODO: test initiator + void actionTest() { + // TODO: test action } /** Test the property 'asset' */ @@ -67,105 +73,129 @@ void assetTest() { // TODO: test asset } - /** Test the property 'source' */ + /** Test the property 'srcType' */ @Test - void sourceTest() { - // TODO: test source + void srcTypeTest() { + // TODO: test srcType } - /** Test the property 'destination' */ + /** Test the property 'srcSubType' */ @Test - void destinationTest() { - // TODO: test destination + void srcSubTypeTest() { + // TODO: test srcSubType } - /** Test the property 'account' */ + /** Test the property 'srcId' */ @Test - void accountTest() { - // TODO: test account + void srcIdTest() { + // TODO: test srcId } - /** Test the property 'verdict' */ + /** Test the property 'src' */ @Test - void verdictTest() { - // TODO: test verdict + void srcTest() { + // TODO: test src } - /** Test the property 'amountOverTime' */ + /** Test the property 'dstType' */ @Test - void amountOverTimeTest() { - // TODO: test amountOverTime + void dstTypeTest() { + // TODO: test dstType } - /** Test the property 'amount' */ + /** Test the property 'dstSubType' */ @Test - void amountTest() { - // TODO: test amount + void dstSubTypeTest() { + // TODO: test dstSubType } - /** Test the property 'externalDescriptor' */ + /** Test the property 'dstId' */ @Test - void externalDescriptorTest() { - // TODO: test externalDescriptor + void dstIdTest() { + // TODO: test dstId } - /** Test the property 'method' */ + /** Test the property 'dst' */ @Test - void methodTest() { - // TODO: test method + void dstTest() { + // TODO: test dst } - /** Test the property 'isGlobalPolicy' */ + /** Test the property 'dstAddressType' */ @Test - void isGlobalPolicyTest() { - // TODO: test isGlobalPolicy + void dstAddressTypeTest() { + // TODO: test dstAddressType } - /** Test the property 'programCall' */ + /** Test the property 'amountCurrency' */ @Test - void programCallTest() { - // TODO: test programCall + void amountCurrencyTest() { + // TODO: test amountCurrency } - /** Test the property 'screeningMetadata' */ + /** Test the property 'amountScope' */ @Test - void screeningMetadataTest() { - // TODO: test screeningMetadata + void amountScopeTest() { + // TODO: test amountScope } - /** Test the property 'quoteAsset' */ + /** Test the property 'amount' */ @Test - void quoteAssetTest() { - // TODO: test quoteAsset + void amountTest() { + // TODO: test amount + } + + /** Test the property 'periodSec' */ + @Test + void periodSecTest() { + // TODO: test periodSec + } + + /** Test the property 'authorizers' */ + @Test + void authorizersTest() { + // TODO: test authorizers + } + + /** Test the property 'authorizersCount' */ + @Test + void authorizersCountTest() { + // TODO: test authorizersCount + } + + /** Test the property 'authorizationGroups' */ + @Test + void authorizationGroupsTest() { + // TODO: test authorizationGroups } - /** Test the property 'baseAsset' */ + /** Test the property 'amountAggregation' */ @Test - void baseAssetTest() { - // TODO: test baseAsset + void amountAggregationTest() { + // TODO: test amountAggregation } - /** Test the property 'quoteAmount' */ + /** Test the property 'rawMessageSigning' */ @Test - void quoteAmountTest() { - // TODO: test quoteAmount + void rawMessageSigningTest() { + // TODO: test rawMessageSigning } - /** Test the property 'baseAmount' */ + /** Test the property 'applyForApprove' */ @Test - void baseAmountTest() { - // TODO: test baseAmount + void applyForApproveTest() { + // TODO: test applyForApprove } - /** Test the property 'derivationPath' */ + /** Test the property 'applyForTypedMessage' */ @Test - void derivationPathTest() { - // TODO: test derivationPath + void applyForTypedMessageTest() { + // TODO: test applyForTypedMessage } - /** Test the property 'index' */ + /** Test the property 'externalDescriptor' */ @Test - void indexTest() { - // TODO: test index + void externalDescriptorTest() { + // TODO: test externalDescriptor } } diff --git a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRulesTest.java b/src/test/java/com/fireblocks/sdk/model/PolicyRulesTest.java similarity index 69% rename from src/test/java/com/fireblocks/sdk/model/LegacyPolicyRulesTest.java rename to src/test/java/com/fireblocks/sdk/model/PolicyRulesTest.java index bbce1a42..b08f2e25 100644 --- a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRulesTest.java +++ b/src/test/java/com/fireblocks/sdk/model/PolicyRulesTest.java @@ -15,14 +15,14 @@ import org.junit.jupiter.api.Test; -/** Model tests for LegacyPolicyRules */ -class LegacyPolicyRulesTest { - private final LegacyPolicyRules model = new LegacyPolicyRules(); +/** Model tests for PolicyRules */ +class PolicyRulesTest { + private final PolicyRules model = new PolicyRules(); - /** Model tests for LegacyPolicyRules */ + /** Model tests for PolicyRules */ @Test - void testLegacyPolicyRules() { - // TODO: test LegacyPolicyRules + void testPolicyRules() { + // TODO: test PolicyRules } /** Test the property 'rules' */ diff --git a/src/test/java/com/fireblocks/sdk/model/AccountType2Test.java b/src/test/java/com/fireblocks/sdk/model/PolicySrcOrDestSubTypeTest.java similarity index 68% rename from src/test/java/com/fireblocks/sdk/model/AccountType2Test.java rename to src/test/java/com/fireblocks/sdk/model/PolicySrcOrDestSubTypeTest.java index 479f7301..31fcb7e8 100644 --- a/src/test/java/com/fireblocks/sdk/model/AccountType2Test.java +++ b/src/test/java/com/fireblocks/sdk/model/PolicySrcOrDestSubTypeTest.java @@ -15,11 +15,11 @@ import org.junit.jupiter.api.Test; -/** Model tests for AccountType2 */ -class AccountType2Test { - /** Model tests for AccountType2 */ +/** Model tests for PolicySrcOrDestSubType */ +class PolicySrcOrDestSubTypeTest { + /** Model tests for PolicySrcOrDestSubType */ @Test - void testAccountType2() { - // TODO: test AccountType2 + void testPolicySrcOrDestSubType() { + // TODO: test PolicySrcOrDestSubType } } diff --git a/src/test/java/com/fireblocks/sdk/model/AssetScopeTest.java b/src/test/java/com/fireblocks/sdk/model/PolicySrcOrDestTypeTest.java similarity index 70% rename from src/test/java/com/fireblocks/sdk/model/AssetScopeTest.java rename to src/test/java/com/fireblocks/sdk/model/PolicySrcOrDestTypeTest.java index a9108da7..4b10b2b3 100644 --- a/src/test/java/com/fireblocks/sdk/model/AssetScopeTest.java +++ b/src/test/java/com/fireblocks/sdk/model/PolicySrcOrDestTypeTest.java @@ -15,11 +15,11 @@ import org.junit.jupiter.api.Test; -/** Model tests for AssetScope */ -class AssetScopeTest { - /** Model tests for AssetScope */ +/** Model tests for PolicySrcOrDestType */ +class PolicySrcOrDestTypeTest { + /** Model tests for PolicySrcOrDestType */ @Test - void testAssetScope() { - // TODO: test AssetScope + void testPolicySrcOrDestType() { + // TODO: test PolicySrcOrDestType } } diff --git a/src/test/java/com/fireblocks/sdk/model/PolicyTypeTest.java b/src/test/java/com/fireblocks/sdk/model/PolicyTypeTest.java deleted file mode 100644 index cfaa505b..00000000 --- a/src/test/java/com/fireblocks/sdk/model/PolicyTypeTest.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for PolicyType */ -class PolicyTypeTest { - /** Model tests for PolicyType */ - @Test - void testPolicyType() { - // TODO: test PolicyType - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/PostOrderSettlementTest.java b/src/test/java/com/fireblocks/sdk/model/PostOrderSettlementTest.java deleted file mode 100644 index 026a117b..00000000 --- a/src/test/java/com/fireblocks/sdk/model/PostOrderSettlementTest.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for PostOrderSettlement */ -class PostOrderSettlementTest { - private final PostOrderSettlement model = new PostOrderSettlement(); - - /** Model tests for PostOrderSettlement */ - @Test - void testPostOrderSettlement() { - // TODO: test PostOrderSettlement - } - - /** Test the property 'type' */ - @Test - void typeTest() { - // TODO: test type - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/PostalAddressTest.java b/src/test/java/com/fireblocks/sdk/model/PostalAddressTest.java deleted file mode 100644 index a0941991..00000000 --- a/src/test/java/com/fireblocks/sdk/model/PostalAddressTest.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for PostalAddress */ -class PostalAddressTest { - private final PostalAddress model = new PostalAddress(); - - /** Model tests for PostalAddress */ - @Test - void testPostalAddress() { - // TODO: test PostalAddress - } - - /** Test the property 'streetName' */ - @Test - void streetNameTest() { - // TODO: test streetName - } - - /** Test the property 'buildingNumber' */ - @Test - void buildingNumberTest() { - // TODO: test buildingNumber - } - - /** Test the property 'postalCode' */ - @Test - void postalCodeTest() { - // TODO: test postalCode - } - - /** Test the property 'city' */ - @Test - void cityTest() { - // TODO: test city - } - - /** Test the property 'subdivision' */ - @Test - void subdivisionTest() { - // TODO: test subdivision - } - - /** Test the property 'district' */ - @Test - void districtTest() { - // TODO: test district - } - - /** Test the property 'country' */ - @Test - void countryTest() { - // TODO: test country - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/PrefundedSettlementTest.java b/src/test/java/com/fireblocks/sdk/model/PrefundedSettlementTest.java deleted file mode 100644 index e99c670f..00000000 --- a/src/test/java/com/fireblocks/sdk/model/PrefundedSettlementTest.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for PrefundedSettlement */ -class PrefundedSettlementTest { - private final PrefundedSettlement model = new PrefundedSettlement(); - - /** Model tests for PrefundedSettlement */ - @Test - void testPrefundedSettlement() { - // TODO: test PrefundedSettlement - } - - /** Test the property 'type' */ - @Test - void typeTest() { - // TODO: test type - } - - /** Test the property 'destinationAccount' */ - @Test - void destinationAccountTest() { - // TODO: test destinationAccount - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/ProgramCallConfigTest.java b/src/test/java/com/fireblocks/sdk/model/ProgramCallConfigTest.java deleted file mode 100644 index 351d185c..00000000 --- a/src/test/java/com/fireblocks/sdk/model/ProgramCallConfigTest.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for ProgramCallConfig */ -class ProgramCallConfigTest { - private final ProgramCallConfig model = new ProgramCallConfig(); - - /** Model tests for ProgramCallConfig */ - @Test - void testProgramCallConfig() { - // TODO: test ProgramCallConfig - } - - /** Test the property 'allowedSolanaProgramCalls' */ - @Test - void allowedSolanaProgramCallsTest() { - // TODO: test allowedSolanaProgramCalls - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/ProviderTest.java b/src/test/java/com/fireblocks/sdk/model/ProviderDtoTest.java similarity index 73% rename from src/test/java/com/fireblocks/sdk/model/ProviderTest.java rename to src/test/java/com/fireblocks/sdk/model/ProviderDtoTest.java index f6f95265..5eefb156 100644 --- a/src/test/java/com/fireblocks/sdk/model/ProviderTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ProviderDtoTest.java @@ -15,14 +15,14 @@ import org.junit.jupiter.api.Test; -/** Model tests for Provider */ -class ProviderTest { - private final Provider model = new Provider(); +/** Model tests for ProviderDto */ +class ProviderDtoTest { + private final ProviderDto model = new ProviderDto(); - /** Model tests for Provider */ + /** Model tests for ProviderDto */ @Test - void testProvider() { - // TODO: test Provider + void testProviderDto() { + // TODO: test ProviderDto } /** Test the property 'id' */ @@ -60,16 +60,4 @@ void termsOfServiceUrlTest() { void isTermsOfServiceApprovedTest() { // TODO: test isTermsOfServiceApproved } - - /** Test the property 'isPrivate' */ - @Test - void isPrivateTest() { - // TODO: test isPrivate - } - - /** Test the property 'isLiquidStaking' */ - @Test - void isLiquidStakingTest() { - // TODO: test isLiquidStaking - } } diff --git a/src/test/java/com/fireblocks/sdk/model/ProviderIDTest.java b/src/test/java/com/fireblocks/sdk/model/ProviderIDTest.java deleted file mode 100644 index a93d47d2..00000000 --- a/src/test/java/com/fireblocks/sdk/model/ProviderIDTest.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for ProviderID */ -class ProviderIDTest { - private final ProviderID model = new ProviderID(); - - /** Model tests for ProviderID */ - @Test - void testProviderID() { - // TODO: test ProviderID - } - - /** Test the property 'providerId' */ - @Test - void providerIdTest() { - // TODO: test providerId - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/ProvidersListResponseTest.java b/src/test/java/com/fireblocks/sdk/model/ProvidersListResponseTest.java deleted file mode 100644 index de5119ab..00000000 --- a/src/test/java/com/fireblocks/sdk/model/ProvidersListResponseTest.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for ProvidersListResponse */ -class ProvidersListResponseTest { - private final ProvidersListResponse model = new ProvidersListResponse(); - - /** Model tests for ProvidersListResponse */ - @Test - void testProvidersListResponse() { - // TODO: test ProvidersListResponse - } - - /** Test the property 'data' */ - @Test - void dataTest() { - // TODO: test data - } - - /** Test the property 'total' */ - @Test - void totalTest() { - // TODO: test total - } - - /** Test the property 'next' */ - @Test - void nextTest() { - // TODO: test next - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/PublishDraftRequestTest.java b/src/test/java/com/fireblocks/sdk/model/PublishDraftRequestTest.java index ac3c329f..2202c961 100644 --- a/src/test/java/com/fireblocks/sdk/model/PublishDraftRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/PublishDraftRequestTest.java @@ -25,12 +25,6 @@ void testPublishDraftRequest() { // TODO: test PublishDraftRequest } - /** Test the property 'policyTypes' */ - @Test - void policyTypesTest() { - // TODO: test policyTypes - } - /** Test the property 'draftId' */ @Test void draftIdTest() { diff --git a/src/test/java/com/fireblocks/sdk/model/QuoteExecutionRequestDetailsTest.java b/src/test/java/com/fireblocks/sdk/model/QuoteExecutionRequestDetailsTest.java deleted file mode 100644 index 4590987a..00000000 --- a/src/test/java/com/fireblocks/sdk/model/QuoteExecutionRequestDetailsTest.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for QuoteExecutionRequestDetails */ -class QuoteExecutionRequestDetailsTest { - private final QuoteExecutionRequestDetails model = new QuoteExecutionRequestDetails(); - - /** Model tests for QuoteExecutionRequestDetails */ - @Test - void testQuoteExecutionRequestDetails() { - // TODO: test QuoteExecutionRequestDetails - } - - /** Test the property 'type' */ - @Test - void typeTest() { - // TODO: test type - } - - /** Test the property 'quoteId' */ - @Test - void quoteIdTest() { - // TODO: test quoteId - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/QuoteExecutionResponseDetailsTest.java b/src/test/java/com/fireblocks/sdk/model/QuoteExecutionResponseDetailsTest.java deleted file mode 100644 index 731367c4..00000000 --- a/src/test/java/com/fireblocks/sdk/model/QuoteExecutionResponseDetailsTest.java +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for QuoteExecutionResponseDetails */ -class QuoteExecutionResponseDetailsTest { - private final QuoteExecutionResponseDetails model = new QuoteExecutionResponseDetails(); - - /** Model tests for QuoteExecutionResponseDetails */ - @Test - void testQuoteExecutionResponseDetails() { - // TODO: test QuoteExecutionResponseDetails - } - - /** Test the property 'side' */ - @Test - void sideTest() { - // TODO: test side - } - - /** Test the property 'baseAmount' */ - @Test - void baseAmountTest() { - // TODO: test baseAmount - } - - /** Test the property 'baseAssetId' */ - @Test - void baseAssetIdTest() { - // TODO: test baseAssetId - } - - /** Test the property 'baseAssetRail' */ - @Test - void baseAssetRailTest() { - // TODO: test baseAssetRail - } - - /** Test the property 'quoteAssetId' */ - @Test - void quoteAssetIdTest() { - // TODO: test quoteAssetId - } - - /** Test the property 'quoteAssetRail' */ - @Test - void quoteAssetRailTest() { - // TODO: test quoteAssetRail - } - - /** Test the property 'type' */ - @Test - void typeTest() { - // TODO: test type - } - - /** Test the property 'quoteId' */ - @Test - void quoteIdTest() { - // TODO: test quoteId - } - - /** Test the property 'quoteAmount' */ - @Test - void quoteAmountTest() { - // TODO: test quoteAmount - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/QuoteExecutionWithRequoteRequestDetailsAllOfReQuoteTest.java b/src/test/java/com/fireblocks/sdk/model/QuoteExecutionWithRequoteRequestDetailsAllOfReQuoteTest.java deleted file mode 100644 index 072eb706..00000000 --- a/src/test/java/com/fireblocks/sdk/model/QuoteExecutionWithRequoteRequestDetailsAllOfReQuoteTest.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for QuoteExecutionWithRequoteRequestDetailsAllOfReQuote */ -class QuoteExecutionWithRequoteRequestDetailsAllOfReQuoteTest { - private final QuoteExecutionWithRequoteRequestDetailsAllOfReQuote model = - new QuoteExecutionWithRequoteRequestDetailsAllOfReQuote(); - - /** Model tests for QuoteExecutionWithRequoteRequestDetailsAllOfReQuote */ - @Test - void testQuoteExecutionWithRequoteRequestDetailsAllOfReQuote() { - // TODO: test QuoteExecutionWithRequoteRequestDetailsAllOfReQuote - } - - /** Test the property 'type' */ - @Test - void typeTest() { - // TODO: test type - } - - /** Test the property 'count' */ - @Test - void countTest() { - // TODO: test count - } - - /** Test the property 'slippageBps' */ - @Test - void slippageBpsTest() { - // TODO: test slippageBps - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/QuoteExecutionWithRequoteRequestDetailsTest.java b/src/test/java/com/fireblocks/sdk/model/QuoteExecutionWithRequoteRequestDetailsTest.java deleted file mode 100644 index 8153e016..00000000 --- a/src/test/java/com/fireblocks/sdk/model/QuoteExecutionWithRequoteRequestDetailsTest.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for QuoteExecutionWithRequoteRequestDetails */ -class QuoteExecutionWithRequoteRequestDetailsTest { - private final QuoteExecutionWithRequoteRequestDetails model = - new QuoteExecutionWithRequoteRequestDetails(); - - /** Model tests for QuoteExecutionWithRequoteRequestDetails */ - @Test - void testQuoteExecutionWithRequoteRequestDetails() { - // TODO: test QuoteExecutionWithRequoteRequestDetails - } - - /** Test the property 'type' */ - @Test - void typeTest() { - // TODO: test type - } - - /** Test the property 'quoteId' */ - @Test - void quoteIdTest() { - // TODO: test quoteId - } - - /** Test the property 'reQuote' */ - @Test - void reQuoteTest() { - // TODO: test reQuote - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/QuoteExecutionWithRequoteResponseDetailsAllOfReQuoteTest.java b/src/test/java/com/fireblocks/sdk/model/QuoteExecutionWithRequoteResponseDetailsAllOfReQuoteTest.java deleted file mode 100644 index ac97ec66..00000000 --- a/src/test/java/com/fireblocks/sdk/model/QuoteExecutionWithRequoteResponseDetailsAllOfReQuoteTest.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for QuoteExecutionWithRequoteResponseDetailsAllOfReQuote */ -class QuoteExecutionWithRequoteResponseDetailsAllOfReQuoteTest { - private final QuoteExecutionWithRequoteResponseDetailsAllOfReQuote model = - new QuoteExecutionWithRequoteResponseDetailsAllOfReQuote(); - - /** Model tests for QuoteExecutionWithRequoteResponseDetailsAllOfReQuote */ - @Test - void testQuoteExecutionWithRequoteResponseDetailsAllOfReQuote() { - // TODO: test QuoteExecutionWithRequoteResponseDetailsAllOfReQuote - } - - /** Test the property 'type' */ - @Test - void typeTest() { - // TODO: test type - } - - /** Test the property 'count' */ - @Test - void countTest() { - // TODO: test count - } - - /** Test the property 'slippageBps' */ - @Test - void slippageBpsTest() { - // TODO: test slippageBps - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/QuoteExecutionWithRequoteResponseDetailsTest.java b/src/test/java/com/fireblocks/sdk/model/QuoteExecutionWithRequoteResponseDetailsTest.java deleted file mode 100644 index f8fb1eb9..00000000 --- a/src/test/java/com/fireblocks/sdk/model/QuoteExecutionWithRequoteResponseDetailsTest.java +++ /dev/null @@ -1,88 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for QuoteExecutionWithRequoteResponseDetails */ -class QuoteExecutionWithRequoteResponseDetailsTest { - private final QuoteExecutionWithRequoteResponseDetails model = - new QuoteExecutionWithRequoteResponseDetails(); - - /** Model tests for QuoteExecutionWithRequoteResponseDetails */ - @Test - void testQuoteExecutionWithRequoteResponseDetails() { - // TODO: test QuoteExecutionWithRequoteResponseDetails - } - - /** Test the property 'type' */ - @Test - void typeTest() { - // TODO: test type - } - - /** Test the property 'quoteId' */ - @Test - void quoteIdTest() { - // TODO: test quoteId - } - - /** Test the property 'quoteAmount' */ - @Test - void quoteAmountTest() { - // TODO: test quoteAmount - } - - /** Test the property 'side' */ - @Test - void sideTest() { - // TODO: test side - } - - /** Test the property 'baseAmount' */ - @Test - void baseAmountTest() { - // TODO: test baseAmount - } - - /** Test the property 'baseAssetId' */ - @Test - void baseAssetIdTest() { - // TODO: test baseAssetId - } - - /** Test the property 'baseAssetRail' */ - @Test - void baseAssetRailTest() { - // TODO: test baseAssetRail - } - - /** Test the property 'quoteAssetId' */ - @Test - void quoteAssetIdTest() { - // TODO: test quoteAssetId - } - - /** Test the property 'quoteAssetRail' */ - @Test - void quoteAssetRailTest() { - // TODO: test quoteAssetRail - } - - /** Test the property 'reQuote' */ - @Test - void reQuoteTest() { - // TODO: test reQuote - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/QuoteTest.java b/src/test/java/com/fireblocks/sdk/model/QuoteTest.java deleted file mode 100644 index e6e219f0..00000000 --- a/src/test/java/com/fireblocks/sdk/model/QuoteTest.java +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for Quote */ -class QuoteTest { - private final Quote model = new Quote(); - - /** Model tests for Quote */ - @Test - void testQuote() { - // TODO: test Quote - } - - /** Test the property 'via' */ - @Test - void viaTest() { - // TODO: test via - } - - /** Test the property 'id' */ - @Test - void idTest() { - // TODO: test id - } - - /** Test the property 'type' */ - @Test - void typeTest() { - // TODO: test type - } - - /** Test the property 'quoteAssetId' */ - @Test - void quoteAssetIdTest() { - // TODO: test quoteAssetId - } - - /** Test the property 'baseAssetId' */ - @Test - void baseAssetIdTest() { - // TODO: test baseAssetId - } - - /** Test the property 'baseAmount' */ - @Test - void baseAmountTest() { - // TODO: test baseAmount - } - - /** Test the property 'quoteAmount' */ - @Test - void quoteAmountTest() { - // TODO: test quoteAmount - } - - /** Test the property 'priceImpact' */ - @Test - void priceImpactTest() { - // TODO: test priceImpact - } - - /** Test the property 'quoteMinAmount' */ - @Test - void quoteMinAmountTest() { - // TODO: test quoteMinAmount - } - - /** Test the property 'executionSteps' */ - @Test - void executionStepsTest() { - // TODO: test executionSteps - } - - /** Test the property 'generalFees' */ - @Test - void generalFeesTest() { - // TODO: test generalFees - } - - /** Test the property 'side' */ - @Test - void sideTest() { - // TODO: test side - } - - /** Test the property 'expiresAt' */ - @Test - void expiresAtTest() { - // TODO: test expiresAt - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/QuotesResponseTest.java b/src/test/java/com/fireblocks/sdk/model/QuotesResponseTest.java deleted file mode 100644 index 0c1acfd2..00000000 --- a/src/test/java/com/fireblocks/sdk/model/QuotesResponseTest.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for QuotesResponse */ -class QuotesResponseTest { - private final QuotesResponse model = new QuotesResponse(); - - /** Model tests for QuotesResponse */ - @Test - void testQuotesResponse() { - // TODO: test QuotesResponse - } - - /** Test the property 'quotes' */ - @Test - void quotesTest() { - // TODO: test quotes - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/ReadCallFunctionDtoAbiFunctionTest.java b/src/test/java/com/fireblocks/sdk/model/ReadCallFunctionDtoAbiFunctionTest.java deleted file mode 100644 index fa15beb1..00000000 --- a/src/test/java/com/fireblocks/sdk/model/ReadCallFunctionDtoAbiFunctionTest.java +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for ReadCallFunctionDtoAbiFunction */ -class ReadCallFunctionDtoAbiFunctionTest { - private final ReadCallFunctionDtoAbiFunction model = new ReadCallFunctionDtoAbiFunction(); - - /** Model tests for ReadCallFunctionDtoAbiFunction */ - @Test - void testReadCallFunctionDtoAbiFunction() { - // TODO: test ReadCallFunctionDtoAbiFunction - } - - /** Test the property 'stateMutability' */ - @Test - void stateMutabilityTest() { - // TODO: test stateMutability - } - - /** Test the property 'outputs' */ - @Test - void outputsTest() { - // TODO: test outputs - } - - /** Test the property 'name' */ - @Test - void nameTest() { - // TODO: test name - } - - /** Test the property 'type' */ - @Test - void typeTest() { - // TODO: test type - } - - /** Test the property 'inputs' */ - @Test - void inputsTest() { - // TODO: test inputs - } - - /** Test the property 'description' */ - @Test - void descriptionTest() { - // TODO: test description - } - - /** Test the property 'discriminator' */ - @Test - void discriminatorTest() { - // TODO: test discriminator - } - - /** Test the property 'accounts' */ - @Test - void accountsTest() { - // TODO: test accounts - } - - /** Test the property 'args' */ - @Test - void argsTest() { - // TODO: test args - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/ReissueMultichainTokenRequestTest.java b/src/test/java/com/fireblocks/sdk/model/ReissueMultichainTokenRequestTest.java deleted file mode 100644 index 6a0ee3b7..00000000 --- a/src/test/java/com/fireblocks/sdk/model/ReissueMultichainTokenRequestTest.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for ReissueMultichainTokenRequest */ -class ReissueMultichainTokenRequestTest { - private final ReissueMultichainTokenRequest model = new ReissueMultichainTokenRequest(); - - /** Model tests for ReissueMultichainTokenRequest */ - @Test - void testReissueMultichainTokenRequest() { - // TODO: test ReissueMultichainTokenRequest - } - - /** Test the property 'vaultAccountId' */ - @Test - void vaultAccountIdTest() { - // TODO: test vaultAccountId - } - - /** Test the property 'chains' */ - @Test - void chainsTest() { - // TODO: test chains - } - - /** Test the property 'useGasless' */ - @Test - void useGaslessTest() { - // TODO: test useGasless - } - - /** Test the property 'fee' */ - @Test - void feeTest() { - // TODO: test fee - } - - /** Test the property 'feeLevel' */ - @Test - void feeLevelTest() { - // TODO: test feeLevel - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/RelatedRequestTest.java b/src/test/java/com/fireblocks/sdk/model/RelatedRequestTest.java deleted file mode 100644 index 4575bc79..00000000 --- a/src/test/java/com/fireblocks/sdk/model/RelatedRequestTest.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for RelatedRequest */ -class RelatedRequestTest { - private final RelatedRequest model = new RelatedRequest(); - - /** Model tests for RelatedRequest */ - @Test - void testRelatedRequest() { - // TODO: test RelatedRequest - } - - /** Test the property 'status' */ - @Test - void statusTest() { - // TODO: test status - } - - /** Test the property 'inProgress' */ - @Test - void inProgressTest() { - // TODO: test inProgress - } - - /** Test the property 'amount' */ - @Test - void amountTest() { - // TODO: test amount - } - - /** Test the property 'txId' */ - @Test - void txIdTest() { - // TODO: test txId - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/RelatedTransactionTest.java b/src/test/java/com/fireblocks/sdk/model/RelatedTransactionDtoTest.java similarity index 70% rename from src/test/java/com/fireblocks/sdk/model/RelatedTransactionTest.java rename to src/test/java/com/fireblocks/sdk/model/RelatedTransactionDtoTest.java index b93a72c9..22f5d4eb 100644 --- a/src/test/java/com/fireblocks/sdk/model/RelatedTransactionTest.java +++ b/src/test/java/com/fireblocks/sdk/model/RelatedTransactionDtoTest.java @@ -15,14 +15,14 @@ import org.junit.jupiter.api.Test; -/** Model tests for RelatedTransaction */ -class RelatedTransactionTest { - private final RelatedTransaction model = new RelatedTransaction(); +/** Model tests for RelatedTransactionDto */ +class RelatedTransactionDtoTest { + private final RelatedTransactionDto model = new RelatedTransactionDto(); - /** Model tests for RelatedTransaction */ + /** Model tests for RelatedTransactionDto */ @Test - void testRelatedTransaction() { - // TODO: test RelatedTransaction + void testRelatedTransactionDto() { + // TODO: test RelatedTransactionDto } /** Test the property 'txId' */ diff --git a/src/test/java/com/fireblocks/sdk/model/RemoveLayerZeroAdapterFailedResultTest.java b/src/test/java/com/fireblocks/sdk/model/RemoveLayerZeroAdapterFailedResultTest.java deleted file mode 100644 index 19f75a70..00000000 --- a/src/test/java/com/fireblocks/sdk/model/RemoveLayerZeroAdapterFailedResultTest.java +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for RemoveLayerZeroAdapterFailedResult */ -class RemoveLayerZeroAdapterFailedResultTest { - private final RemoveLayerZeroAdapterFailedResult model = - new RemoveLayerZeroAdapterFailedResult(); - - /** Model tests for RemoveLayerZeroAdapterFailedResult */ - @Test - void testRemoveLayerZeroAdapterFailedResult() { - // TODO: test RemoveLayerZeroAdapterFailedResult - } - - /** Test the property 'adapterTokenLinkId' */ - @Test - void adapterTokenLinkIdTest() { - // TODO: test adapterTokenLinkId - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/RemoveLayerZeroAdaptersRequestTest.java b/src/test/java/com/fireblocks/sdk/model/RemoveLayerZeroAdaptersRequestTest.java deleted file mode 100644 index 16eb4965..00000000 --- a/src/test/java/com/fireblocks/sdk/model/RemoveLayerZeroAdaptersRequestTest.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for RemoveLayerZeroAdaptersRequest */ -class RemoveLayerZeroAdaptersRequestTest { - private final RemoveLayerZeroAdaptersRequest model = new RemoveLayerZeroAdaptersRequest(); - - /** Model tests for RemoveLayerZeroAdaptersRequest */ - @Test - void testRemoveLayerZeroAdaptersRequest() { - // TODO: test RemoveLayerZeroAdaptersRequest - } - - /** Test the property 'vaultAccountId' */ - @Test - void vaultAccountIdTest() { - // TODO: test vaultAccountId - } - - /** Test the property 'adapterTokenLinkIds' */ - @Test - void adapterTokenLinkIdsTest() { - // TODO: test adapterTokenLinkIds - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/RemoveLayerZeroAdaptersResponseTest.java b/src/test/java/com/fireblocks/sdk/model/RemoveLayerZeroAdaptersResponseTest.java deleted file mode 100644 index 4a8e1d15..00000000 --- a/src/test/java/com/fireblocks/sdk/model/RemoveLayerZeroAdaptersResponseTest.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for RemoveLayerZeroAdaptersResponse */ -class RemoveLayerZeroAdaptersResponseTest { - private final RemoveLayerZeroAdaptersResponse model = new RemoveLayerZeroAdaptersResponse(); - - /** Model tests for RemoveLayerZeroAdaptersResponse */ - @Test - void testRemoveLayerZeroAdaptersResponse() { - // TODO: test RemoveLayerZeroAdaptersResponse - } - - /** Test the property 'deactivated' */ - @Test - void deactivatedTest() { - // TODO: test deactivated - } - - /** Test the property 'failed' */ - @Test - void failedTest() { - // TODO: test failed - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/RemoveLayerZeroPeersRequestTest.java b/src/test/java/com/fireblocks/sdk/model/RemoveLayerZeroPeersRequestTest.java deleted file mode 100644 index c34714f6..00000000 --- a/src/test/java/com/fireblocks/sdk/model/RemoveLayerZeroPeersRequestTest.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for RemoveLayerZeroPeersRequest */ -class RemoveLayerZeroPeersRequestTest { - private final RemoveLayerZeroPeersRequest model = new RemoveLayerZeroPeersRequest(); - - /** Model tests for RemoveLayerZeroPeersRequest */ - @Test - void testRemoveLayerZeroPeersRequest() { - // TODO: test RemoveLayerZeroPeersRequest - } - - /** Test the property 'vaultAccountId' */ - @Test - void vaultAccountIdTest() { - // TODO: test vaultAccountId - } - - /** Test the property 'sourceAdapterTokenLinkId' */ - @Test - void sourceAdapterTokenLinkIdTest() { - // TODO: test sourceAdapterTokenLinkId - } - - /** Test the property 'destinationAdapterTokenLinkIds' */ - @Test - void destinationAdapterTokenLinkIdsTest() { - // TODO: test destinationAdapterTokenLinkIds - } - - /** Test the property 'bidirectional' */ - @Test - void bidirectionalTest() { - // TODO: test bidirectional - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/RemoveLayerZeroPeersResponseTest.java b/src/test/java/com/fireblocks/sdk/model/RemoveLayerZeroPeersResponseTest.java deleted file mode 100644 index 21ffe77d..00000000 --- a/src/test/java/com/fireblocks/sdk/model/RemoveLayerZeroPeersResponseTest.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for RemoveLayerZeroPeersResponse */ -class RemoveLayerZeroPeersResponseTest { - private final RemoveLayerZeroPeersResponse model = new RemoveLayerZeroPeersResponse(); - - /** Model tests for RemoveLayerZeroPeersResponse */ - @Test - void testRemoveLayerZeroPeersResponse() { - // TODO: test RemoveLayerZeroPeersResponse - } - - /** Test the property 'txnIds' */ - @Test - void txnIdsTest() { - // TODO: test txnIds - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/RescanTransactionTest.java b/src/test/java/com/fireblocks/sdk/model/RescanTransactionTest.java deleted file mode 100644 index 064fc123..00000000 --- a/src/test/java/com/fireblocks/sdk/model/RescanTransactionTest.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for RescanTransaction */ -class RescanTransactionTest { - private final RescanTransaction model = new RescanTransaction(); - - /** Model tests for RescanTransaction */ - @Test - void testRescanTransaction() { - // TODO: test RescanTransaction - } - - /** Test the property 'txHash' */ - @Test - void txHashTest() { - // TODO: test txHash - } - - /** Test the property 'assetId' */ - @Test - void assetIdTest() { - // TODO: test assetId - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/ResendFailedNotificationsJobStatusResponseTest.java b/src/test/java/com/fireblocks/sdk/model/ResendFailedNotificationsJobStatusResponseTest.java deleted file mode 100644 index b59ec17b..00000000 --- a/src/test/java/com/fireblocks/sdk/model/ResendFailedNotificationsJobStatusResponseTest.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for ResendFailedNotificationsJobStatusResponse */ -class ResendFailedNotificationsJobStatusResponseTest { - private final ResendFailedNotificationsJobStatusResponse model = - new ResendFailedNotificationsJobStatusResponse(); - - /** Model tests for ResendFailedNotificationsJobStatusResponse */ - @Test - void testResendFailedNotificationsJobStatusResponse() { - // TODO: test ResendFailedNotificationsJobStatusResponse - } - - /** Test the property 'jobId' */ - @Test - void jobIdTest() { - // TODO: test jobId - } - - /** Test the property 'status' */ - @Test - void statusTest() { - // TODO: test status - } - - /** Test the property 'processed' */ - @Test - void processedTest() { - // TODO: test processed - } - - /** Test the property 'total' */ - @Test - void totalTest() { - // TODO: test total - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/ResendFailedNotificationsRequestTest.java b/src/test/java/com/fireblocks/sdk/model/ResendFailedNotificationsRequestTest.java deleted file mode 100644 index 55f6e872..00000000 --- a/src/test/java/com/fireblocks/sdk/model/ResendFailedNotificationsRequestTest.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for ResendFailedNotificationsRequest */ -class ResendFailedNotificationsRequestTest { - private final ResendFailedNotificationsRequest model = new ResendFailedNotificationsRequest(); - - /** Model tests for ResendFailedNotificationsRequest */ - @Test - void testResendFailedNotificationsRequest() { - // TODO: test ResendFailedNotificationsRequest - } - - /** Test the property 'startTime' */ - @Test - void startTimeTest() { - // TODO: test startTime - } - - /** Test the property 'events' */ - @Test - void eventsTest() { - // TODO: test events - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/ResendFailedNotificationsResponseTest.java b/src/test/java/com/fireblocks/sdk/model/ResendFailedNotificationsResponseTest.java deleted file mode 100644 index 57ba062e..00000000 --- a/src/test/java/com/fireblocks/sdk/model/ResendFailedNotificationsResponseTest.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for ResendFailedNotificationsResponse */ -class ResendFailedNotificationsResponseTest { - private final ResendFailedNotificationsResponse model = new ResendFailedNotificationsResponse(); - - /** Model tests for ResendFailedNotificationsResponse */ - @Test - void testResendFailedNotificationsResponse() { - // TODO: test ResendFailedNotificationsResponse - } - - /** Test the property 'total' */ - @Test - void totalTest() { - // TODO: test total - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/ResendNotificationsByResourceIdRequestTest.java b/src/test/java/com/fireblocks/sdk/model/ResendNotificationsByResourceIdRequestTest.java deleted file mode 100644 index 2e1b0351..00000000 --- a/src/test/java/com/fireblocks/sdk/model/ResendNotificationsByResourceIdRequestTest.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for ResendNotificationsByResourceIdRequest */ -class ResendNotificationsByResourceIdRequestTest { - private final ResendNotificationsByResourceIdRequest model = - new ResendNotificationsByResourceIdRequest(); - - /** Model tests for ResendNotificationsByResourceIdRequest */ - @Test - void testResendNotificationsByResourceIdRequest() { - // TODO: test ResendNotificationsByResourceIdRequest - } - - /** Test the property 'resourceId' */ - @Test - void resourceIdTest() { - // TODO: test resourceId - } - - /** Test the property 'excludeStatuses' */ - @Test - void excludeStatusesTest() { - // TODO: test excludeStatuses - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/RetryRequoteRequestDetailsTest.java b/src/test/java/com/fireblocks/sdk/model/RetryRequoteRequestDetailsTest.java deleted file mode 100644 index 5cce4223..00000000 --- a/src/test/java/com/fireblocks/sdk/model/RetryRequoteRequestDetailsTest.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for RetryRequoteRequestDetails */ -class RetryRequoteRequestDetailsTest { - private final RetryRequoteRequestDetails model = new RetryRequoteRequestDetails(); - - /** Model tests for RetryRequoteRequestDetails */ - @Test - void testRetryRequoteRequestDetails() { - // TODO: test RetryRequoteRequestDetails - } - - /** Test the property 'type' */ - @Test - void typeTest() { - // TODO: test type - } - - /** Test the property 'count' */ - @Test - void countTest() { - // TODO: test count - } - - /** Test the property 'slippageBps' */ - @Test - void slippageBpsTest() { - // TODO: test slippageBps - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/SOLAccountTest.java b/src/test/java/com/fireblocks/sdk/model/SOLAccountTest.java deleted file mode 100644 index 2e521e16..00000000 --- a/src/test/java/com/fireblocks/sdk/model/SOLAccountTest.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for SOLAccount */ -class SOLAccountTest { - private final SOLAccount model = new SOLAccount(); - - /** Model tests for SOLAccount */ - @Test - void testSOLAccount() { - // TODO: test SOLAccount - } - - /** Test the property 'name' */ - @Test - void nameTest() { - // TODO: test name - } - - /** Test the property 'signer' */ - @Test - void signerTest() { - // TODO: test signer - } - - /** Test the property 'writable' */ - @Test - void writableTest() { - // TODO: test writable - } - - /** Test the property 'address' */ - @Test - void addressTest() { - // TODO: test address - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/SOLAccountWithValueTest.java b/src/test/java/com/fireblocks/sdk/model/SOLAccountWithValueTest.java deleted file mode 100644 index a4b1bb4a..00000000 --- a/src/test/java/com/fireblocks/sdk/model/SOLAccountWithValueTest.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for SOLAccountWithValue */ -class SOLAccountWithValueTest { - private final SOLAccountWithValue model = new SOLAccountWithValue(); - - /** Model tests for SOLAccountWithValue */ - @Test - void testSOLAccountWithValue() { - // TODO: test SOLAccountWithValue - } - - /** Test the property 'name' */ - @Test - void nameTest() { - // TODO: test name - } - - /** Test the property 'signer' */ - @Test - void signerTest() { - // TODO: test signer - } - - /** Test the property 'writable' */ - @Test - void writableTest() { - // TODO: test writable - } - - /** Test the property 'address' */ - @Test - void addressTest() { - // TODO: test address - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/ScreeningMetadataConfigTest.java b/src/test/java/com/fireblocks/sdk/model/ScreeningMetadataConfigTest.java deleted file mode 100644 index 15cb387a..00000000 --- a/src/test/java/com/fireblocks/sdk/model/ScreeningMetadataConfigTest.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for ScreeningMetadataConfig */ -class ScreeningMetadataConfigTest { - private final ScreeningMetadataConfig model = new ScreeningMetadataConfig(); - - /** Model tests for ScreeningMetadataConfig */ - @Test - void testScreeningMetadataConfig() { - // TODO: test ScreeningMetadataConfig - } - - /** Test the property 'direction' */ - @Test - void directionTest() { - // TODO: test direction - } - - /** Test the property 'provider' */ - @Test - void providerTest() { - // TODO: test provider - } - - /** Test the property 'riskRating' */ - @Test - void riskRatingTest() { - // TODO: test riskRating - } - - /** Test the property 'riskScore' */ - @Test - void riskScoreTest() { - // TODO: test riskScore - } - - /** Test the property 'exposureType' */ - @Test - void exposureTypeTest() { - // TODO: test exposureType - } - - /** Test the property 'category' */ - @Test - void categoryTest() { - // TODO: test category - } - - /** Test the property 'name' */ - @Test - void nameTest() { - // TODO: test name - } - - /** Test the property 'categoryId' */ - @Test - void categoryIdTest() { - // TODO: test categoryId - } - - /** Test the property 'status' */ - @Test - void statusTest() { - // TODO: test status - } - - /** Test the property 'sourceAddress' */ - @Test - void sourceAddressTest() { - // TODO: test sourceAddress - } - - /** Test the property 'destAddress' */ - @Test - void destAddressTest() { - // TODO: test destAddress - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/ScreeningUpdateConfigurationsTest.java b/src/test/java/com/fireblocks/sdk/model/ScreeningUpdateConfigurationsRequestTest.java similarity index 64% rename from src/test/java/com/fireblocks/sdk/model/ScreeningUpdateConfigurationsTest.java rename to src/test/java/com/fireblocks/sdk/model/ScreeningUpdateConfigurationsRequestTest.java index ce3d45f2..1537bdc8 100644 --- a/src/test/java/com/fireblocks/sdk/model/ScreeningUpdateConfigurationsTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ScreeningUpdateConfigurationsRequestTest.java @@ -15,14 +15,15 @@ import org.junit.jupiter.api.Test; -/** Model tests for ScreeningUpdateConfigurations */ -class ScreeningUpdateConfigurationsTest { - private final ScreeningUpdateConfigurations model = new ScreeningUpdateConfigurations(); +/** Model tests for ScreeningUpdateConfigurationsRequest */ +class ScreeningUpdateConfigurationsRequestTest { + private final ScreeningUpdateConfigurationsRequest model = + new ScreeningUpdateConfigurationsRequest(); - /** Model tests for ScreeningUpdateConfigurations */ + /** Model tests for ScreeningUpdateConfigurationsRequest */ @Test - void testScreeningUpdateConfigurations() { - // TODO: test ScreeningUpdateConfigurations + void testScreeningUpdateConfigurationsRequest() { + // TODO: test ScreeningUpdateConfigurationsRequest } /** Test the property 'disableBypass' */ diff --git a/src/test/java/com/fireblocks/sdk/model/SearchNetworkIdsResponseTest.java b/src/test/java/com/fireblocks/sdk/model/SearchNetworkIdsResponseTest.java deleted file mode 100644 index 01eb0465..00000000 --- a/src/test/java/com/fireblocks/sdk/model/SearchNetworkIdsResponseTest.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for SearchNetworkIdsResponse */ -class SearchNetworkIdsResponseTest { - private final SearchNetworkIdsResponse model = new SearchNetworkIdsResponse(); - - /** Model tests for SearchNetworkIdsResponse */ - @Test - void testSearchNetworkIdsResponse() { - // TODO: test SearchNetworkIdsResponse - } - - /** Test the property 'data' */ - @Test - void dataTest() { - // TODO: test data - } - - /** Test the property 'next' */ - @Test - void nextTest() { - // TODO: test next - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/SepaPaymentInfoTest.java b/src/test/java/com/fireblocks/sdk/model/SepaPaymentInfoTest.java deleted file mode 100644 index 22588658..00000000 --- a/src/test/java/com/fireblocks/sdk/model/SepaPaymentInfoTest.java +++ /dev/null @@ -1,111 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for SepaPaymentInfo */ -class SepaPaymentInfoTest { - private final SepaPaymentInfo model = new SepaPaymentInfo(); - - /** Model tests for SepaPaymentInfo */ - @Test - void testSepaPaymentInfo() { - // TODO: test SepaPaymentInfo - } - - /** Test the property 'rail' */ - @Test - void railTest() { - // TODO: test rail - } - - /** Test the property 'addressingSystem' */ - @Test - void addressingSystemTest() { - // TODO: test addressingSystem - } - - /** Test the property 'accountHolderGivenName' */ - @Test - void accountHolderGivenNameTest() { - // TODO: test accountHolderGivenName - } - - /** Test the property 'accountHolderSurname' */ - @Test - void accountHolderSurnameTest() { - // TODO: test accountHolderSurname - } - - /** Test the property 'accountHolderCountry' */ - @Test - void accountHolderCountryTest() { - // TODO: test accountHolderCountry - } - - /** Test the property 'accountHolderAddress' */ - @Test - void accountHolderAddressTest() { - // TODO: test accountHolderAddress - } - - /** Test the property 'iban' */ - @Test - void ibanTest() { - // TODO: test iban - } - - /** Test the property 'country' */ - @Test - void countryTest() { - // TODO: test country - } - - /** Test the property 'bic' */ - @Test - void bicTest() { - // TODO: test bic - } - - /** Test the property 'bankName' */ - @Test - void bankNameTest() { - // TODO: test bankName - } - - /** Test the property 'bankBranch' */ - @Test - void bankBranchTest() { - // TODO: test bankBranch - } - - /** Test the property 'bankAddress' */ - @Test - void bankAddressTest() { - // TODO: test bankAddress - } - - /** Test the property 'purposeCode' */ - @Test - void purposeCodeTest() { - // TODO: test purposeCode - } - - /** Test the property 'taxId' */ - @Test - void taxIdTest() { - // TODO: test taxId - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/SetAssetPriceRequestTest.java b/src/test/java/com/fireblocks/sdk/model/SetAssetPriceRequestTest.java deleted file mode 100644 index b682dab8..00000000 --- a/src/test/java/com/fireblocks/sdk/model/SetAssetPriceRequestTest.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for SetAssetPriceRequest */ -class SetAssetPriceRequestTest { - private final SetAssetPriceRequest model = new SetAssetPriceRequest(); - - /** Model tests for SetAssetPriceRequest */ - @Test - void testSetAssetPriceRequest() { - // TODO: test SetAssetPriceRequest - } - - /** Test the property 'currency' */ - @Test - void currencyTest() { - // TODO: test currency - } - - /** Test the property 'price' */ - @Test - void priceTest() { - // TODO: test price - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/SetLayerZeroDvnConfigRequestTest.java b/src/test/java/com/fireblocks/sdk/model/SetLayerZeroDvnConfigRequestTest.java deleted file mode 100644 index 9cb13a3f..00000000 --- a/src/test/java/com/fireblocks/sdk/model/SetLayerZeroDvnConfigRequestTest.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for SetLayerZeroDvnConfigRequest */ -class SetLayerZeroDvnConfigRequestTest { - private final SetLayerZeroDvnConfigRequest model = new SetLayerZeroDvnConfigRequest(); - - /** Model tests for SetLayerZeroDvnConfigRequest */ - @Test - void testSetLayerZeroDvnConfigRequest() { - // TODO: test SetLayerZeroDvnConfigRequest - } - - /** Test the property 'vaultAccountId' */ - @Test - void vaultAccountIdTest() { - // TODO: test vaultAccountId - } - - /** Test the property 'sourceAdapterTokenLinkId' */ - @Test - void sourceAdapterTokenLinkIdTest() { - // TODO: test sourceAdapterTokenLinkId - } - - /** Test the property 'destinationAdapterTokenLinkId' */ - @Test - void destinationAdapterTokenLinkIdTest() { - // TODO: test destinationAdapterTokenLinkId - } - - /** Test the property 'sendConfig' */ - @Test - void sendConfigTest() { - // TODO: test sendConfig - } - - /** Test the property 'receiveConfig' */ - @Test - void receiveConfigTest() { - // TODO: test receiveConfig - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/SetLayerZeroDvnConfigResponseTest.java b/src/test/java/com/fireblocks/sdk/model/SetLayerZeroDvnConfigResponseTest.java deleted file mode 100644 index 93c372bb..00000000 --- a/src/test/java/com/fireblocks/sdk/model/SetLayerZeroDvnConfigResponseTest.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for SetLayerZeroDvnConfigResponse */ -class SetLayerZeroDvnConfigResponseTest { - private final SetLayerZeroDvnConfigResponse model = new SetLayerZeroDvnConfigResponse(); - - /** Model tests for SetLayerZeroDvnConfigResponse */ - @Test - void testSetLayerZeroDvnConfigResponse() { - // TODO: test SetLayerZeroDvnConfigResponse - } - - /** Test the property 'txnIds' */ - @Test - void txnIdsTest() { - // TODO: test txnIds - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/SetLayerZeroPeersRequestTest.java b/src/test/java/com/fireblocks/sdk/model/SetLayerZeroPeersRequestTest.java deleted file mode 100644 index 29dad278..00000000 --- a/src/test/java/com/fireblocks/sdk/model/SetLayerZeroPeersRequestTest.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for SetLayerZeroPeersRequest */ -class SetLayerZeroPeersRequestTest { - private final SetLayerZeroPeersRequest model = new SetLayerZeroPeersRequest(); - - /** Model tests for SetLayerZeroPeersRequest */ - @Test - void testSetLayerZeroPeersRequest() { - // TODO: test SetLayerZeroPeersRequest - } - - /** Test the property 'vaultAccountId' */ - @Test - void vaultAccountIdTest() { - // TODO: test vaultAccountId - } - - /** Test the property 'sourceAdapterTokenLinkId' */ - @Test - void sourceAdapterTokenLinkIdTest() { - // TODO: test sourceAdapterTokenLinkId - } - - /** Test the property 'destinationAdapterTokenLinkIds' */ - @Test - void destinationAdapterTokenLinkIdsTest() { - // TODO: test destinationAdapterTokenLinkIds - } - - /** Test the property 'bidirectional' */ - @Test - void bidirectionalTest() { - // TODO: test bidirectional - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/SetLayerZeroPeersResponseTest.java b/src/test/java/com/fireblocks/sdk/model/SetLayerZeroPeersResponseTest.java deleted file mode 100644 index 24487d07..00000000 --- a/src/test/java/com/fireblocks/sdk/model/SetLayerZeroPeersResponseTest.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for SetLayerZeroPeersResponse */ -class SetLayerZeroPeersResponseTest { - private final SetLayerZeroPeersResponse model = new SetLayerZeroPeersResponse(); - - /** Model tests for SetLayerZeroPeersResponse */ - @Test - void testSetLayerZeroPeersResponse() { - // TODO: test SetLayerZeroPeersResponse - } - - /** Test the property 'txnIds' */ - @Test - void txnIdsTest() { - // TODO: test txnIds - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/SettlementSourceAccountTest.java b/src/test/java/com/fireblocks/sdk/model/SettlementSourceAccountTest.java deleted file mode 100644 index 42abef0a..00000000 --- a/src/test/java/com/fireblocks/sdk/model/SettlementSourceAccountTest.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for SettlementSourceAccount */ -class SettlementSourceAccountTest { - private final SettlementSourceAccount model = new SettlementSourceAccount(); - - /** Model tests for SettlementSourceAccount */ - @Test - void testSettlementSourceAccount() { - // TODO: test SettlementSourceAccount - } - - /** Test the property 'type' */ - @Test - void typeTest() { - // TODO: test type - } - - /** Test the property 'accountId' */ - @Test - void accountIdTest() { - // TODO: test accountId - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/SettlementTest.java b/src/test/java/com/fireblocks/sdk/model/SettlementTest.java deleted file mode 100644 index f2ac6bcf..00000000 --- a/src/test/java/com/fireblocks/sdk/model/SettlementTest.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for Settlement */ -class SettlementTest { - private final Settlement model = new Settlement(); - - /** Model tests for Settlement */ - @Test - void testSettlement() { - // TODO: test Settlement - } - - /** Test the property 'type' */ - @Test - void typeTest() { - // TODO: test type - } - - /** Test the property 'destinationAccount' */ - @Test - void destinationAccountTest() { - // TODO: test destinationAccount - } - - /** Test the property 'sourceAccount' */ - @Test - void sourceAccountTest() { - // TODO: test sourceAccount - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/SmartTransferApproveTermTest.java b/src/test/java/com/fireblocks/sdk/model/SmartTransferApproveTermTest.java deleted file mode 100644 index 0fb524ae..00000000 --- a/src/test/java/com/fireblocks/sdk/model/SmartTransferApproveTermTest.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for SmartTransferApproveTerm */ -class SmartTransferApproveTermTest { - private final SmartTransferApproveTerm model = new SmartTransferApproveTerm(); - - /** Model tests for SmartTransferApproveTerm */ - @Test - void testSmartTransferApproveTerm() { - // TODO: test SmartTransferApproveTerm - } - - /** Test the property 'asset' */ - @Test - void assetTest() { - // TODO: test asset - } - - /** Test the property 'amount' */ - @Test - void amountTest() { - // TODO: test amount - } - - /** Test the property 'srcId' */ - @Test - void srcIdTest() { - // TODO: test srcId - } - - /** Test the property 'fee' */ - @Test - void feeTest() { - // TODO: test fee - } - - /** Test the property 'feeLevel' */ - @Test - void feeLevelTest() { - // TODO: test feeLevel - } - - /** Test the property 'note' */ - @Test - void noteTest() { - // TODO: test note - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/SmartTransferCoinStatisticTest.java b/src/test/java/com/fireblocks/sdk/model/SmartTransferCoinStatisticTest.java deleted file mode 100644 index 16367ad7..00000000 --- a/src/test/java/com/fireblocks/sdk/model/SmartTransferCoinStatisticTest.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for SmartTransferCoinStatistic */ -class SmartTransferCoinStatisticTest { - private final SmartTransferCoinStatistic model = new SmartTransferCoinStatistic(); - - /** Model tests for SmartTransferCoinStatistic */ - @Test - void testSmartTransferCoinStatistic() { - // TODO: test SmartTransferCoinStatistic - } - - /** Test the property 'asset' */ - @Test - void assetTest() { - // TODO: test asset - } - - /** Test the property 'amount' */ - @Test - void amountTest() { - // TODO: test amount - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/SmartTransferFundDvpTicketTest.java b/src/test/java/com/fireblocks/sdk/model/SmartTransferFundDvpTicketTest.java deleted file mode 100644 index be62eeeb..00000000 --- a/src/test/java/com/fireblocks/sdk/model/SmartTransferFundDvpTicketTest.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for SmartTransferFundDvpTicket */ -class SmartTransferFundDvpTicketTest { - private final SmartTransferFundDvpTicket model = new SmartTransferFundDvpTicket(); - - /** Model tests for SmartTransferFundDvpTicket */ - @Test - void testSmartTransferFundDvpTicket() { - // TODO: test SmartTransferFundDvpTicket - } - - /** Test the property 'fee' */ - @Test - void feeTest() { - // TODO: test fee - } - - /** Test the property 'feeLevel' */ - @Test - void feeLevelTest() { - // TODO: test feeLevel - } - - /** Test the property 'note' */ - @Test - void noteTest() { - // TODO: test note - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/SmartTransferStatisticInflowTest.java b/src/test/java/com/fireblocks/sdk/model/SmartTransferStatisticInflowTest.java deleted file mode 100644 index 9debcc48..00000000 --- a/src/test/java/com/fireblocks/sdk/model/SmartTransferStatisticInflowTest.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for SmartTransferStatisticInflow */ -class SmartTransferStatisticInflowTest { - private final SmartTransferStatisticInflow model = new SmartTransferStatisticInflow(); - - /** Model tests for SmartTransferStatisticInflow */ - @Test - void testSmartTransferStatisticInflow() { - // TODO: test SmartTransferStatisticInflow - } - - /** Test the property 'coins' */ - @Test - void coinsTest() { - // TODO: test coins - } - - /** Test the property 'ticketCount' */ - @Test - void ticketCountTest() { - // TODO: test ticketCount - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/SmartTransferStatisticOutflowTest.java b/src/test/java/com/fireblocks/sdk/model/SmartTransferStatisticOutflowTest.java deleted file mode 100644 index c19843c4..00000000 --- a/src/test/java/com/fireblocks/sdk/model/SmartTransferStatisticOutflowTest.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for SmartTransferStatisticOutflow */ -class SmartTransferStatisticOutflowTest { - private final SmartTransferStatisticOutflow model = new SmartTransferStatisticOutflow(); - - /** Model tests for SmartTransferStatisticOutflow */ - @Test - void testSmartTransferStatisticOutflow() { - // TODO: test SmartTransferStatisticOutflow - } - - /** Test the property 'coins' */ - @Test - void coinsTest() { - // TODO: test coins - } - - /** Test the property 'ticketCount' */ - @Test - void ticketCountTest() { - // TODO: test ticketCount - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/SmartTransferStatisticTest.java b/src/test/java/com/fireblocks/sdk/model/SmartTransferStatisticTest.java deleted file mode 100644 index fe1319d6..00000000 --- a/src/test/java/com/fireblocks/sdk/model/SmartTransferStatisticTest.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for SmartTransferStatistic */ -class SmartTransferStatisticTest { - private final SmartTransferStatistic model = new SmartTransferStatistic(); - - /** Model tests for SmartTransferStatistic */ - @Test - void testSmartTransferStatistic() { - // TODO: test SmartTransferStatistic - } - - /** Test the property 'inflow' */ - @Test - void inflowTest() { - // TODO: test inflow - } - - /** Test the property 'outflow' */ - @Test - void outflowTest() { - // TODO: test outflow - } - - /** Test the property 'totalActiveTickets' */ - @Test - void totalActiveTicketsTest() { - // TODO: test totalActiveTickets - } - - /** Test the property 'totalInactiveTickets' */ - @Test - void totalInactiveTicketsTest() { - // TODO: test totalInactiveTickets - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/SmartTransferTicketTermTest.java b/src/test/java/com/fireblocks/sdk/model/SmartTransferTicketTermTest.java index d3c84428..b5d6e692 100644 --- a/src/test/java/com/fireblocks/sdk/model/SmartTransferTicketTermTest.java +++ b/src/test/java/com/fireblocks/sdk/model/SmartTransferTicketTermTest.java @@ -49,12 +49,6 @@ void amountTest() { // TODO: test amount } - /** Test the property 'dvpSrcDstVaultId' */ - @Test - void dvpSrcDstVaultIdTest() { - // TODO: test dvpSrcDstVaultId - } - /** Test the property 'amountUsd' */ @Test void amountUsdTest() { diff --git a/src/test/java/com/fireblocks/sdk/model/SmartTransferTicketTest.java b/src/test/java/com/fireblocks/sdk/model/SmartTransferTicketTest.java index 4fc2ea98..0a9e56e3 100644 --- a/src/test/java/com/fireblocks/sdk/model/SmartTransferTicketTest.java +++ b/src/test/java/com/fireblocks/sdk/model/SmartTransferTicketTest.java @@ -49,18 +49,6 @@ void statusTest() { // TODO: test status } - /** Test the property 'dvpExecutionStatus' */ - @Test - void dvpExecutionStatusTest() { - // TODO: test dvpExecutionStatus - } - - /** Test the property 'orderCreatedByNetworkId' */ - @Test - void orderCreatedByNetworkIdTest() { - // TODO: test orderCreatedByNetworkId - } - /** Test the property 'terms' */ @Test void termsTest() { diff --git a/src/test/java/com/fireblocks/sdk/model/SolParameterTest.java b/src/test/java/com/fireblocks/sdk/model/SolParameterTest.java deleted file mode 100644 index 466f16bb..00000000 --- a/src/test/java/com/fireblocks/sdk/model/SolParameterTest.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for SolParameter */ -class SolParameterTest { - private final SolParameter model = new SolParameter(); - - /** Model tests for SolParameter */ - @Test - void testSolParameter() { - // TODO: test SolParameter - } - - /** Test the property 'name' */ - @Test - void nameTest() { - // TODO: test name - } - - /** Test the property 'type' */ - @Test - void typeTest() { - // TODO: test type - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/SolParameterWithValueTest.java b/src/test/java/com/fireblocks/sdk/model/SolParameterWithValueTest.java deleted file mode 100644 index f966a422..00000000 --- a/src/test/java/com/fireblocks/sdk/model/SolParameterWithValueTest.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for SolParameterWithValue */ -class SolParameterWithValueTest { - private final SolParameterWithValue model = new SolParameterWithValue(); - - /** Model tests for SolParameterWithValue */ - @Test - void testSolParameterWithValue() { - // TODO: test SolParameterWithValue - } - - /** Test the property 'value' */ - @Test - void valueTest() { - // TODO: test value - } - - /** Test the property 'name' */ - @Test - void nameTest() { - // TODO: test name - } - - /** Test the property 'type' */ - @Test - void typeTest() { - // TODO: test type - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/SolanaBlockchainDataTest.java b/src/test/java/com/fireblocks/sdk/model/SolanaBlockchainDataDtoTest.java similarity index 56% rename from src/test/java/com/fireblocks/sdk/model/SolanaBlockchainDataTest.java rename to src/test/java/com/fireblocks/sdk/model/SolanaBlockchainDataDtoTest.java index 88ec80b9..51552a46 100644 --- a/src/test/java/com/fireblocks/sdk/model/SolanaBlockchainDataTest.java +++ b/src/test/java/com/fireblocks/sdk/model/SolanaBlockchainDataDtoTest.java @@ -15,14 +15,14 @@ import org.junit.jupiter.api.Test; -/** Model tests for SolanaBlockchainData */ -class SolanaBlockchainDataTest { - private final SolanaBlockchainData model = new SolanaBlockchainData(); +/** Model tests for SolanaBlockchainDataDto */ +class SolanaBlockchainDataDtoTest { + private final SolanaBlockchainDataDto model = new SolanaBlockchainDataDto(); - /** Model tests for SolanaBlockchainData */ + /** Model tests for SolanaBlockchainDataDto */ @Test - void testSolanaBlockchainData() { - // TODO: test SolanaBlockchainData + void testSolanaBlockchainDataDto() { + // TODO: test SolanaBlockchainDataDto } /** Test the property 'stakeAccountAddress' */ @@ -30,10 +30,4 @@ void testSolanaBlockchainData() { void stakeAccountAddressTest() { // TODO: test stakeAccountAddress } - - /** Test the property 'stakeAccountDerivationChangeValue' */ - @Test - void stakeAccountDerivationChangeValueTest() { - // TODO: test stakeAccountDerivationChangeValue - } } diff --git a/src/test/java/com/fireblocks/sdk/model/SolanaConfigTest.java b/src/test/java/com/fireblocks/sdk/model/SolanaConfigTest.java deleted file mode 100644 index 77fe30a2..00000000 --- a/src/test/java/com/fireblocks/sdk/model/SolanaConfigTest.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for SolanaConfig */ -class SolanaConfigTest { - private final SolanaConfig model = new SolanaConfig(); - - /** Model tests for SolanaConfig */ - @Test - void testSolanaConfig() { - // TODO: test SolanaConfig - } - - /** Test the property 'extensions' */ - @Test - void extensionsTest() { - // TODO: test extensions - } - - /** Test the property 'type' */ - @Test - void typeTest() { - // TODO: test type - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/SolanaInstructionTest.java b/src/test/java/com/fireblocks/sdk/model/SolanaInstructionTest.java deleted file mode 100644 index db2dcc24..00000000 --- a/src/test/java/com/fireblocks/sdk/model/SolanaInstructionTest.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for SolanaInstruction */ -class SolanaInstructionTest { - private final SolanaInstruction model = new SolanaInstruction(); - - /** Model tests for SolanaInstruction */ - @Test - void testSolanaInstruction() { - // TODO: test SolanaInstruction - } - - /** Test the property 'name' */ - @Test - void nameTest() { - // TODO: test name - } - - /** Test the property 'discriminator' */ - @Test - void discriminatorTest() { - // TODO: test discriminator - } - - /** Test the property 'accounts' */ - @Test - void accountsTest() { - // TODO: test accounts - } - - /** Test the property 'args' */ - @Test - void argsTest() { - // TODO: test args - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/SolanaInstructionWithValueTest.java b/src/test/java/com/fireblocks/sdk/model/SolanaInstructionWithValueTest.java deleted file mode 100644 index 6dd85650..00000000 --- a/src/test/java/com/fireblocks/sdk/model/SolanaInstructionWithValueTest.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for SolanaInstructionWithValue */ -class SolanaInstructionWithValueTest { - private final SolanaInstructionWithValue model = new SolanaInstructionWithValue(); - - /** Model tests for SolanaInstructionWithValue */ - @Test - void testSolanaInstructionWithValue() { - // TODO: test SolanaInstructionWithValue - } - - /** Test the property 'name' */ - @Test - void nameTest() { - // TODO: test name - } - - /** Test the property 'discriminator' */ - @Test - void discriminatorTest() { - // TODO: test discriminator - } - - /** Test the property 'accounts' */ - @Test - void accountsTest() { - // TODO: test accounts - } - - /** Test the property 'args' */ - @Test - void argsTest() { - // TODO: test args - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/SolanaSimpleCreateParamsTest.java b/src/test/java/com/fireblocks/sdk/model/SolanaSimpleCreateParamsTest.java deleted file mode 100644 index e0e942dc..00000000 --- a/src/test/java/com/fireblocks/sdk/model/SolanaSimpleCreateParamsTest.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for SolanaSimpleCreateParams */ -class SolanaSimpleCreateParamsTest { - private final SolanaSimpleCreateParams model = new SolanaSimpleCreateParams(); - - /** Model tests for SolanaSimpleCreateParams */ - @Test - void testSolanaSimpleCreateParams() { - // TODO: test SolanaSimpleCreateParams - } - - /** Test the property 'name' */ - @Test - void nameTest() { - // TODO: test name - } - - /** Test the property 'symbol' */ - @Test - void symbolTest() { - // TODO: test symbol - } - - /** Test the property 'decimals' */ - @Test - void decimalsTest() { - // TODO: test decimals - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/SourceTransferPeerPathResponseTest.java b/src/test/java/com/fireblocks/sdk/model/SourceTransferPeerPathResponseTest.java index b68cb08b..3238ceae 100644 --- a/src/test/java/com/fireblocks/sdk/model/SourceTransferPeerPathResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/SourceTransferPeerPathResponseTest.java @@ -54,10 +54,4 @@ void nameTest() { void walletIdTest() { // TODO: test walletId } - - /** Test the property 'tradingAccount' */ - @Test - void tradingAccountTest() { - // TODO: test tradingAccount - } } diff --git a/src/test/java/com/fireblocks/sdk/model/SourceTransferPeerPathTest.java b/src/test/java/com/fireblocks/sdk/model/SourceTransferPeerPathTest.java index e3d8b589..4c1e4a24 100644 --- a/src/test/java/com/fireblocks/sdk/model/SourceTransferPeerPathTest.java +++ b/src/test/java/com/fireblocks/sdk/model/SourceTransferPeerPathTest.java @@ -54,10 +54,4 @@ void nameTest() { void walletIdTest() { // TODO: test walletId } - - /** Test the property 'isCollateral' */ - @Test - void isCollateralTest() { - // TODO: test isCollateral - } } diff --git a/src/test/java/com/fireblocks/sdk/model/SpeiAdvancedPaymentInfoTest.java b/src/test/java/com/fireblocks/sdk/model/SpeiAdvancedPaymentInfoTest.java deleted file mode 100644 index d1ce8781..00000000 --- a/src/test/java/com/fireblocks/sdk/model/SpeiAdvancedPaymentInfoTest.java +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for SpeiAdvancedPaymentInfo */ -class SpeiAdvancedPaymentInfoTest { - private final SpeiAdvancedPaymentInfo model = new SpeiAdvancedPaymentInfo(); - - /** Model tests for SpeiAdvancedPaymentInfo */ - @Test - void testSpeiAdvancedPaymentInfo() { - // TODO: test SpeiAdvancedPaymentInfo - } - - /** Test the property 'rail' */ - @Test - void railTest() { - // TODO: test rail - } - - /** Test the property 'addressingSystem' */ - @Test - void addressingSystemTest() { - // TODO: test addressingSystem - } - - /** Test the property 'accountHolderGivenName' */ - @Test - void accountHolderGivenNameTest() { - // TODO: test accountHolderGivenName - } - - /** Test the property 'accountHolderSurname' */ - @Test - void accountHolderSurnameTest() { - // TODO: test accountHolderSurname - } - - /** Test the property 'country' */ - @Test - void countryTest() { - // TODO: test country - } - - /** Test the property 'bankName' */ - @Test - void bankNameTest() { - // TODO: test bankName - } - - /** Test the property 'beneficiaryRfc' */ - @Test - void beneficiaryRfcTest() { - // TODO: test beneficiaryRfc - } - - /** Test the property 'senderDocumentId' */ - @Test - void senderDocumentIdTest() { - // TODO: test senderDocumentId - } - - /** Test the property 'clabe' */ - @Test - void clabeTest() { - // TODO: test clabe - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/SplitRequestTest.java b/src/test/java/com/fireblocks/sdk/model/SplitRequestTest.java deleted file mode 100644 index 27d80258..00000000 --- a/src/test/java/com/fireblocks/sdk/model/SplitRequestTest.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for SplitRequest */ -class SplitRequestTest { - private final SplitRequest model = new SplitRequest(); - - /** Model tests for SplitRequest */ - @Test - void testSplitRequest() { - // TODO: test SplitRequest - } - - /** Test the property 'id' */ - @Test - void idTest() { - // TODO: test id - } - - /** Test the property 'amount' */ - @Test - void amountTest() { - // TODO: test amount - } - - /** Test the property 'fee' */ - @Test - void feeTest() { - // TODO: test fee - } - - /** Test the property 'feeLevel' */ - @Test - void feeLevelTest() { - // TODO: test feeLevel - } - - /** Test the property 'txNote' */ - @Test - void txNoteTest() { - // TODO: test txNote - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/AssetTypesConfigInnerTest.java b/src/test/java/com/fireblocks/sdk/model/SrcOrDestAttributesInnerTest.java similarity index 60% rename from src/test/java/com/fireblocks/sdk/model/AssetTypesConfigInnerTest.java rename to src/test/java/com/fireblocks/sdk/model/SrcOrDestAttributesInnerTest.java index 63c42328..cbb3a126 100644 --- a/src/test/java/com/fireblocks/sdk/model/AssetTypesConfigInnerTest.java +++ b/src/test/java/com/fireblocks/sdk/model/SrcOrDestAttributesInnerTest.java @@ -15,13 +15,13 @@ import org.junit.jupiter.api.Test; -/** Model tests for AssetTypesConfigInner */ -class AssetTypesConfigInnerTest { - private final AssetTypesConfigInner model = new AssetTypesConfigInner(); +/** Model tests for SrcOrDestAttributesInner */ +class SrcOrDestAttributesInnerTest { + private final SrcOrDestAttributesInner model = new SrcOrDestAttributesInner(); - /** Model tests for AssetTypesConfigInner */ + /** Model tests for SrcOrDestAttributesInner */ @Test - void testAssetTypesConfigInner() { - // TODO: test AssetTypesConfigInner + void testSrcOrDestAttributesInner() { + // TODO: test SrcOrDestAttributesInner } } diff --git a/src/test/java/com/fireblocks/sdk/model/StakeRequestTest.java b/src/test/java/com/fireblocks/sdk/model/StakeRequestDtoTest.java similarity index 82% rename from src/test/java/com/fireblocks/sdk/model/StakeRequestTest.java rename to src/test/java/com/fireblocks/sdk/model/StakeRequestDtoTest.java index b09a5537..40b5ee8a 100644 --- a/src/test/java/com/fireblocks/sdk/model/StakeRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/StakeRequestDtoTest.java @@ -15,14 +15,14 @@ import org.junit.jupiter.api.Test; -/** Model tests for StakeRequest */ -class StakeRequestTest { - private final StakeRequest model = new StakeRequest(); +/** Model tests for StakeRequestDto */ +class StakeRequestDtoTest { + private final StakeRequestDto model = new StakeRequestDto(); - /** Model tests for StakeRequest */ + /** Model tests for StakeRequestDto */ @Test - void testStakeRequest() { - // TODO: test StakeRequest + void testStakeRequestDto() { + // TODO: test StakeRequestDto } /** Test the property 'vaultAccountId' */ diff --git a/src/test/java/com/fireblocks/sdk/model/StakeResponseTest.java b/src/test/java/com/fireblocks/sdk/model/StakeResponseDtoTest.java similarity index 69% rename from src/test/java/com/fireblocks/sdk/model/StakeResponseTest.java rename to src/test/java/com/fireblocks/sdk/model/StakeResponseDtoTest.java index 4253e5bc..9db7622f 100644 --- a/src/test/java/com/fireblocks/sdk/model/StakeResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/StakeResponseDtoTest.java @@ -15,14 +15,14 @@ import org.junit.jupiter.api.Test; -/** Model tests for StakeResponse */ -class StakeResponseTest { - private final StakeResponse model = new StakeResponse(); +/** Model tests for StakeResponseDto */ +class StakeResponseDtoTest { + private final StakeResponseDto model = new StakeResponseDto(); - /** Model tests for StakeResponse */ + /** Model tests for StakeResponseDto */ @Test - void testStakeResponse() { - // TODO: test StakeResponse + void testStakeResponseDto() { + // TODO: test StakeResponseDto } /** Test the property 'id' */ diff --git a/src/test/java/com/fireblocks/sdk/model/StakingProviderTest.java b/src/test/java/com/fireblocks/sdk/model/StakingProviderTest.java deleted file mode 100644 index f344bb4d..00000000 --- a/src/test/java/com/fireblocks/sdk/model/StakingProviderTest.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for StakingProvider */ -class StakingProviderTest { - /** Model tests for StakingProvider */ - @Test - void testStakingProvider() { - // TODO: test StakingProvider - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/StatusTest.java b/src/test/java/com/fireblocks/sdk/model/StatusTest.java deleted file mode 100644 index cf327d94..00000000 --- a/src/test/java/com/fireblocks/sdk/model/StatusTest.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for Status */ -class StatusTest { - private final Status model = new Status(); - - /** Model tests for Status */ - @Test - void testStatus() { - // TODO: test Status - } - - /** Test the property 'status' */ - @Test - void statusTest() { - // TODO: test status - } - - /** Test the property 'type' */ - @Test - void typeTest() { - // TODO: test type - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/TagTest.java b/src/test/java/com/fireblocks/sdk/model/TagTest.java deleted file mode 100644 index e1111abd..00000000 --- a/src/test/java/com/fireblocks/sdk/model/TagTest.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for Tag */ -class TagTest { - private final Tag model = new Tag(); - - /** Model tests for Tag */ - @Test - void testTag() { - // TODO: test Tag - } - - /** Test the property 'id' */ - @Test - void idTest() { - // TODO: test id - } - - /** Test the property 'label' */ - @Test - void labelTest() { - // TODO: test label - } - - /** Test the property 'description' */ - @Test - void descriptionTest() { - // TODO: test description - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/TagsPagedResponseTest.java b/src/test/java/com/fireblocks/sdk/model/TagsPagedResponseTest.java deleted file mode 100644 index e506528a..00000000 --- a/src/test/java/com/fireblocks/sdk/model/TagsPagedResponseTest.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for TagsPagedResponse */ -class TagsPagedResponseTest { - private final TagsPagedResponse model = new TagsPagedResponse(); - - /** Model tests for TagsPagedResponse */ - @Test - void testTagsPagedResponse() { - // TODO: test TagsPagedResponse - } - - /** Test the property 'data' */ - @Test - void dataTest() { - // TODO: test data - } - - /** Test the property 'next' */ - @Test - void nextTest() { - // TODO: test next - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/TimeInForceTest.java b/src/test/java/com/fireblocks/sdk/model/TimeInForceTest.java deleted file mode 100644 index 69537f56..00000000 --- a/src/test/java/com/fireblocks/sdk/model/TimeInForceTest.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for TimeInForce */ -class TimeInForceTest { - /** Model tests for TimeInForce */ - @Test - void testTimeInForce() { - // TODO: test TimeInForce - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/TimePeriodConfigTest.java b/src/test/java/com/fireblocks/sdk/model/TimePeriodConfigTest.java deleted file mode 100644 index 5760a3c0..00000000 --- a/src/test/java/com/fireblocks/sdk/model/TimePeriodConfigTest.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for TimePeriodConfig */ -class TimePeriodConfigTest { - private final TimePeriodConfig model = new TimePeriodConfig(); - - /** Model tests for TimePeriodConfig */ - @Test - void testTimePeriodConfig() { - // TODO: test TimePeriodConfig - } - - /** Test the property 'seconds' */ - @Test - void secondsTest() { - // TODO: test seconds - } - - /** Test the property 'initiator' */ - @Test - void initiatorTest() { - // TODO: test initiator - } - - /** Test the property 'source' */ - @Test - void sourceTest() { - // TODO: test source - } - - /** Test the property 'destination' */ - @Test - void destinationTest() { - // TODO: test destination - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/TimePeriodMatchTypeTest.java b/src/test/java/com/fireblocks/sdk/model/TimePeriodMatchTypeTest.java deleted file mode 100644 index f300d0ed..00000000 --- a/src/test/java/com/fireblocks/sdk/model/TimePeriodMatchTypeTest.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for TimePeriodMatchType */ -class TimePeriodMatchTypeTest { - /** Model tests for TimePeriodMatchType */ - @Test - void testTimePeriodMatchType() { - // TODO: test TimePeriodMatchType - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/TokenInfoNotFoundErrorResponseTest.java b/src/test/java/com/fireblocks/sdk/model/TokenInfoNotFoundErrorResponseTest.java deleted file mode 100644 index 2179e454..00000000 --- a/src/test/java/com/fireblocks/sdk/model/TokenInfoNotFoundErrorResponseTest.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for TokenInfoNotFoundErrorResponse */ -class TokenInfoNotFoundErrorResponseTest { - private final TokenInfoNotFoundErrorResponse model = new TokenInfoNotFoundErrorResponse(); - - /** Model tests for TokenInfoNotFoundErrorResponse */ - @Test - void testTokenInfoNotFoundErrorResponse() { - // TODO: test TokenInfoNotFoundErrorResponse - } - - /** Test the property 'message' */ - @Test - void messageTest() { - // TODO: test message - } - - /** Test the property 'code' */ - @Test - void codeTest() { - // TODO: test code - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/TokenLinkNotMultichainCompatibleHttpErrorTest.java b/src/test/java/com/fireblocks/sdk/model/TokenLinkNotMultichainCompatibleHttpErrorTest.java deleted file mode 100644 index 99342d23..00000000 --- a/src/test/java/com/fireblocks/sdk/model/TokenLinkNotMultichainCompatibleHttpErrorTest.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for TokenLinkNotMultichainCompatibleHttpError */ -class TokenLinkNotMultichainCompatibleHttpErrorTest { - private final TokenLinkNotMultichainCompatibleHttpError model = - new TokenLinkNotMultichainCompatibleHttpError(); - - /** Model tests for TokenLinkNotMultichainCompatibleHttpError */ - @Test - void testTokenLinkNotMultichainCompatibleHttpError() { - // TODO: test TokenLinkNotMultichainCompatibleHttpError - } - - /** Test the property 'message' */ - @Test - void messageTest() { - // TODO: test message - } - - /** Test the property 'code' */ - @Test - void codeTest() { - // TODO: test code - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/TokenLinkRequestDtoTest.java b/src/test/java/com/fireblocks/sdk/model/TokenLinkRequestDtoTest.java index 04536968..bf76fb70 100644 --- a/src/test/java/com/fireblocks/sdk/model/TokenLinkRequestDtoTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TokenLinkRequestDtoTest.java @@ -42,16 +42,4 @@ void refIdTest() { void displayNameTest() { // TODO: test displayName } - - /** Test the property 'baseAssetId' */ - @Test - void baseAssetIdTest() { - // TODO: test baseAssetId - } - - /** Test the property 'contractAddress' */ - @Test - void contractAddressTest() { - // TODO: test contractAddress - } } diff --git a/src/test/java/com/fireblocks/sdk/model/TradingErrorResponseTest.java b/src/test/java/com/fireblocks/sdk/model/TradingErrorResponseTest.java deleted file mode 100644 index 9cfcb8e6..00000000 --- a/src/test/java/com/fireblocks/sdk/model/TradingErrorResponseTest.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for TradingErrorResponse */ -class TradingErrorResponseTest { - private final TradingErrorResponse model = new TradingErrorResponse(); - - /** Model tests for TradingErrorResponse */ - @Test - void testTradingErrorResponse() { - // TODO: test TradingErrorResponse - } - - /** Test the property 'error' */ - @Test - void errorTest() { - // TODO: test error - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/TradingProviderTest.java b/src/test/java/com/fireblocks/sdk/model/TradingProviderTest.java deleted file mode 100644 index fe037406..00000000 --- a/src/test/java/com/fireblocks/sdk/model/TradingProviderTest.java +++ /dev/null @@ -1,87 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for TradingProvider */ -class TradingProviderTest { - private final TradingProvider model = new TradingProvider(); - - /** Model tests for TradingProvider */ - @Test - void testTradingProvider() { - // TODO: test TradingProvider - } - - /** Test the property 'id' */ - @Test - void idTest() { - // TODO: test id - } - - /** Test the property 'name' */ - @Test - void nameTest() { - // TODO: test name - } - - /** Test the property 'logo' */ - @Test - void logoTest() { - // TODO: test logo - } - - /** Test the property 'accountBased' */ - @Test - void accountBasedTest() { - // TODO: test accountBased - } - - /** Test the property 'manifest' */ - @Test - void manifestTest() { - // TODO: test manifest - } - - /** Test the property 'connected' */ - @Test - void connectedTest() { - // TODO: test connected - } - - /** Test the property 'accounts' */ - @Test - void accountsTest() { - // TODO: test accounts - } - - /** Test the property 'approved' */ - @Test - void approvedTest() { - // TODO: test approved - } - - /** Test the property 'hasTermsOfService' */ - @Test - void hasTermsOfServiceTest() { - // TODO: test hasTermsOfService - } - - /** Test the property 'termsOfServiceUrl' */ - @Test - void termsOfServiceUrlTest() { - // TODO: test termsOfServiceUrl - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/TransactionReceiptResponseTest.java b/src/test/java/com/fireblocks/sdk/model/TransactionReceiptResponseTest.java deleted file mode 100644 index 33d30d7e..00000000 --- a/src/test/java/com/fireblocks/sdk/model/TransactionReceiptResponseTest.java +++ /dev/null @@ -1,111 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for TransactionReceiptResponse */ -class TransactionReceiptResponseTest { - private final TransactionReceiptResponse model = new TransactionReceiptResponse(); - - /** Model tests for TransactionReceiptResponse */ - @Test - void testTransactionReceiptResponse() { - // TODO: test TransactionReceiptResponse - } - - /** Test the property 'blockHash' */ - @Test - void blockHashTest() { - // TODO: test blockHash - } - - /** Test the property 'blockNumber' */ - @Test - void blockNumberTest() { - // TODO: test blockNumber - } - - /** Test the property 'contractAddress' */ - @Test - void contractAddressTest() { - // TODO: test contractAddress - } - - /** Test the property 'cumulativeGasUsed' */ - @Test - void cumulativeGasUsedTest() { - // TODO: test cumulativeGasUsed - } - - /** Test the property 'effectiveGasPrice' */ - @Test - void effectiveGasPriceTest() { - // TODO: test effectiveGasPrice - } - - /** Test the property 'from' */ - @Test - void fromTest() { - // TODO: test from - } - - /** Test the property 'gasUsed' */ - @Test - void gasUsedTest() { - // TODO: test gasUsed - } - - /** Test the property 'logs' */ - @Test - void logsTest() { - // TODO: test logs - } - - /** Test the property 'logsBloom' */ - @Test - void logsBloomTest() { - // TODO: test logsBloom - } - - /** Test the property 'status' */ - @Test - void statusTest() { - // TODO: test status - } - - /** Test the property 'to' */ - @Test - void toTest() { - // TODO: test to - } - - /** Test the property 'transactionHash' */ - @Test - void transactionHashTest() { - // TODO: test transactionHash - } - - /** Test the property 'transactionIndex' */ - @Test - void transactionIndexTest() { - // TODO: test transactionIndex - } - - /** Test the property 'type' */ - @Test - void typeTest() { - // TODO: test type - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/TransactionRequestDestinationTest.java b/src/test/java/com/fireblocks/sdk/model/TransactionRequestDestinationTest.java index 572649db..e8d21fcd 100644 --- a/src/test/java/com/fireblocks/sdk/model/TransactionRequestDestinationTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TransactionRequestDestinationTest.java @@ -36,16 +36,4 @@ void amountTest() { void destinationTest() { // TODO: test destination } - - /** Test the property 'travelRuleMessageId' */ - @Test - void travelRuleMessageIdTest() { - // TODO: test travelRuleMessageId - } - - /** Test the property 'customerRefId' */ - @Test - void customerRefIdTest() { - // TODO: test customerRefId - } } diff --git a/src/test/java/com/fireblocks/sdk/model/TransactionRequestTest.java b/src/test/java/com/fireblocks/sdk/model/TransactionRequestTest.java index 1136c7ad..6fba0763 100644 --- a/src/test/java/com/fireblocks/sdk/model/TransactionRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TransactionRequestTest.java @@ -115,12 +115,6 @@ void maxFeeTest() { // TODO: test maxFee } - /** Test the property 'maxTotalFee' */ - @Test - void maxTotalFeeTest() { - // TODO: test maxTotalFee - } - /** Test the property 'gasLimit' */ @Test void gasLimitTest() { @@ -163,12 +157,6 @@ void travelRuleMessageTest() { // TODO: test travelRuleMessage } - /** Test the property 'travelRuleMessageId' */ - @Test - void travelRuleMessageIdTest() { - // TODO: test travelRuleMessageId - } - /** Test the property 'autoStaking' */ @Test void autoStakingTest() { @@ -186,10 +174,4 @@ void networkStakingTest() { void cpuStakingTest() { // TODO: test cpuStaking } - - /** Test the property 'useGasless' */ - @Test - void useGaslessTest() { - // TODO: test useGasless - } } diff --git a/src/test/java/com/fireblocks/sdk/model/TransactionResponseTest.java b/src/test/java/com/fireblocks/sdk/model/TransactionResponseTest.java index 224e6bed..9501b359 100644 --- a/src/test/java/com/fireblocks/sdk/model/TransactionResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TransactionResponseTest.java @@ -211,10 +211,10 @@ void amlScreeningResultTest() { // TODO: test amlScreeningResult } - /** Test the property 'complianceResults' */ + /** Test the property 'complianceResult' */ @Test - void complianceResultsTest() { - // TODO: test complianceResults + void complianceResultTest() { + // TODO: test complianceResult } /** Test the property 'extraParameters' */ diff --git a/src/test/java/com/fireblocks/sdk/model/TransferRailTest.java b/src/test/java/com/fireblocks/sdk/model/TransferRailTest.java deleted file mode 100644 index 4e903a0c..00000000 --- a/src/test/java/com/fireblocks/sdk/model/TransferRailTest.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for TransferRail */ -class TransferRailTest { - /** Model tests for TransferRail */ - @Test - void testTransferRail() { - // TODO: test TransferRail - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/TransferReceiptTest.java b/src/test/java/com/fireblocks/sdk/model/TransferReceiptTest.java deleted file mode 100644 index 9f633ebc..00000000 --- a/src/test/java/com/fireblocks/sdk/model/TransferReceiptTest.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for TransferReceipt */ -class TransferReceiptTest { - private final TransferReceipt model = new TransferReceipt(); - - /** Model tests for TransferReceipt */ - @Test - void testTransferReceipt() { - // TODO: test TransferReceipt - } - - /** Test the property 'type' */ - @Test - void typeTest() { - // TODO: test type - } - - /** Test the property 'txHash' */ - @Test - void txHashTest() { - // TODO: test txHash - } - - /** Test the property 'amount' */ - @Test - void amountTest() { - // TODO: test amount - } - - /** Test the property 'referenceId' */ - @Test - void referenceIdTest() { - // TODO: test referenceId - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/TravelRuleCreateTransactionRequestTest.java b/src/test/java/com/fireblocks/sdk/model/TravelRuleCreateTransactionRequestTest.java index 9f7cfee8..2dc9d3f5 100644 --- a/src/test/java/com/fireblocks/sdk/model/TravelRuleCreateTransactionRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TravelRuleCreateTransactionRequestTest.java @@ -38,24 +38,12 @@ void beneficiaryVASPdidTest() { // TODO: test beneficiaryVASPdid } - /** Test the property 'originatorVASPname' */ - @Test - void originatorVASPnameTest() { - // TODO: test originatorVASPname - } - /** Test the property 'beneficiaryVASPname' */ @Test void beneficiaryVASPnameTest() { // TODO: test beneficiaryVASPname } - /** Test the property 'beneficiaryVASPwebsite' */ - @Test - void beneficiaryVASPwebsiteTest() { - // TODO: test beneficiaryVASPwebsite - } - /** Test the property 'transactionBlockchainInfo' */ @Test void transactionBlockchainInfoTest() { @@ -86,12 +74,6 @@ void protocolTest() { // TODO: test protocol } - /** Test the property 'targetProtocol' */ - @Test - void targetProtocolTest() { - // TODO: test targetProtocol - } - /** Test the property 'skipBeneficiaryDataValidation' */ @Test void skipBeneficiaryDataValidationTest() { @@ -104,24 +86,6 @@ void travelRuleBehaviorTest() { // TODO: test travelRuleBehavior } - /** Test the property 'originatorRef' */ - @Test - void originatorRefTest() { - // TODO: test originatorRef - } - - /** Test the property 'beneficiaryRef' */ - @Test - void beneficiaryRefTest() { - // TODO: test beneficiaryRef - } - - /** Test the property 'travelRuleBehaviorRef' */ - @Test - void travelRuleBehaviorRefTest() { - // TODO: test travelRuleBehaviorRef - } - /** Test the property 'originatorProof' */ @Test void originatorProofTest() { @@ -134,21 +98,9 @@ void beneficiaryProofTest() { // TODO: test beneficiaryProof } - /** Test the property 'beneficiaryDid' */ - @Test - void beneficiaryDidTest() { - // TODO: test beneficiaryDid - } - - /** Test the property 'originatorDid' */ - @Test - void originatorDidTest() { - // TODO: test originatorDid - } - - /** Test the property 'isNonCustodial' */ + /** Test the property 'pii' */ @Test - void isNonCustodialTest() { - // TODO: test isNonCustodial + void piiTest() { + // TODO: test pii } } diff --git a/src/test/java/com/fireblocks/sdk/model/TravelRuleDateAndPlaceOfBirthTest.java b/src/test/java/com/fireblocks/sdk/model/TravelRuleDateAndPlaceOfBirthTest.java deleted file mode 100644 index 0303525b..00000000 --- a/src/test/java/com/fireblocks/sdk/model/TravelRuleDateAndPlaceOfBirthTest.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for TravelRuleDateAndPlaceOfBirth */ -class TravelRuleDateAndPlaceOfBirthTest { - private final TravelRuleDateAndPlaceOfBirth model = new TravelRuleDateAndPlaceOfBirth(); - - /** Model tests for TravelRuleDateAndPlaceOfBirth */ - @Test - void testTravelRuleDateAndPlaceOfBirth() { - // TODO: test TravelRuleDateAndPlaceOfBirth - } - - /** Test the property 'dateOfBirth' */ - @Test - void dateOfBirthTest() { - // TODO: test dateOfBirth - } - - /** Test the property 'placeOfBirth' */ - @Test - void placeOfBirthTest() { - // TODO: test placeOfBirth - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/TravelRuleGeographicAddressTest.java b/src/test/java/com/fireblocks/sdk/model/TravelRuleGeographicAddressTest.java deleted file mode 100644 index d20ca77b..00000000 --- a/src/test/java/com/fireblocks/sdk/model/TravelRuleGeographicAddressTest.java +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for TravelRuleGeographicAddress */ -class TravelRuleGeographicAddressTest { - private final TravelRuleGeographicAddress model = new TravelRuleGeographicAddress(); - - /** Model tests for TravelRuleGeographicAddress */ - @Test - void testTravelRuleGeographicAddress() { - // TODO: test TravelRuleGeographicAddress - } - - /** Test the property 'streetName' */ - @Test - void streetNameTest() { - // TODO: test streetName - } - - /** Test the property 'townName' */ - @Test - void townNameTest() { - // TODO: test townName - } - - /** Test the property 'country' */ - @Test - void countryTest() { - // TODO: test country - } - - /** Test the property 'buildingNumber' */ - @Test - void buildingNumberTest() { - // TODO: test buildingNumber - } - - /** Test the property 'postCode' */ - @Test - void postCodeTest() { - // TODO: test postCode - } - - /** Test the property 'addressType' */ - @Test - void addressTypeTest() { - // TODO: test addressType - } - - /** Test the property 'department' */ - @Test - void departmentTest() { - // TODO: test department - } - - /** Test the property 'subDepartment' */ - @Test - void subDepartmentTest() { - // TODO: test subDepartment - } - - /** Test the property 'buildingName' */ - @Test - void buildingNameTest() { - // TODO: test buildingName - } - - /** Test the property 'floor' */ - @Test - void floorTest() { - // TODO: test floor - } - - /** Test the property 'postBox' */ - @Test - void postBoxTest() { - // TODO: test postBox - } - - /** Test the property 'room' */ - @Test - void roomTest() { - // TODO: test room - } - - /** Test the property 'townLocationName' */ - @Test - void townLocationNameTest() { - // TODO: test townLocationName - } - - /** Test the property 'districtName' */ - @Test - void districtNameTest() { - // TODO: test districtName - } - - /** Test the property 'countrySubDivision' */ - @Test - void countrySubDivisionTest() { - // TODO: test countrySubDivision - } - - /** Test the property 'addressLine' */ - @Test - void addressLineTest() { - // TODO: test addressLine - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/TravelRuleGetAllVASPsResponseTest.java b/src/test/java/com/fireblocks/sdk/model/TravelRuleGetAllVASPsResponseTest.java index 9fba314c..c0f7cf9b 100644 --- a/src/test/java/com/fireblocks/sdk/model/TravelRuleGetAllVASPsResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TravelRuleGetAllVASPsResponseTest.java @@ -25,21 +25,9 @@ void testTravelRuleGetAllVASPsResponse() { // TODO: test TravelRuleGetAllVASPsResponse } - /** Test the property 'data' */ + /** Test the property 'vasps' */ @Test - void dataTest() { - // TODO: test data - } - - /** Test the property 'total' */ - @Test - void totalTest() { - // TODO: test total - } - - /** Test the property 'next' */ - @Test - void nextTest() { - // TODO: test next + void vaspsTest() { + // TODO: test vasps } } diff --git a/src/test/java/com/fireblocks/sdk/model/TravelRuleLegalPersonNameIdentifierTest.java b/src/test/java/com/fireblocks/sdk/model/TravelRuleLegalPersonNameIdentifierTest.java deleted file mode 100644 index 5bd5d885..00000000 --- a/src/test/java/com/fireblocks/sdk/model/TravelRuleLegalPersonNameIdentifierTest.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for TravelRuleLegalPersonNameIdentifier */ -class TravelRuleLegalPersonNameIdentifierTest { - private final TravelRuleLegalPersonNameIdentifier model = - new TravelRuleLegalPersonNameIdentifier(); - - /** Model tests for TravelRuleLegalPersonNameIdentifier */ - @Test - void testTravelRuleLegalPersonNameIdentifier() { - // TODO: test TravelRuleLegalPersonNameIdentifier - } - - /** Test the property 'legalPersonName' */ - @Test - void legalPersonNameTest() { - // TODO: test legalPersonName - } - - /** Test the property 'legalPersonNameIdentifierType' */ - @Test - void legalPersonNameIdentifierTypeTest() { - // TODO: test legalPersonNameIdentifierType - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/TravelRuleLegalPersonTest.java b/src/test/java/com/fireblocks/sdk/model/TravelRuleLegalPersonTest.java deleted file mode 100644 index 4fdb5e77..00000000 --- a/src/test/java/com/fireblocks/sdk/model/TravelRuleLegalPersonTest.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for TravelRuleLegalPerson */ -class TravelRuleLegalPersonTest { - private final TravelRuleLegalPerson model = new TravelRuleLegalPerson(); - - /** Model tests for TravelRuleLegalPerson */ - @Test - void testTravelRuleLegalPerson() { - // TODO: test TravelRuleLegalPerson - } - - /** Test the property 'name' */ - @Test - void nameTest() { - // TODO: test name - } - - /** Test the property 'geographicAddress' */ - @Test - void geographicAddressTest() { - // TODO: test geographicAddress - } - - /** Test the property 'nationalIdentification' */ - @Test - void nationalIdentificationTest() { - // TODO: test nationalIdentification - } - - /** Test the property 'customerIdentification' */ - @Test - void customerIdentificationTest() { - // TODO: test customerIdentification - } - - /** Test the property 'customerNumber' */ - @Test - void customerNumberTest() { - // TODO: test customerNumber - } - - /** Test the property 'countryOfRegistration' */ - @Test - void countryOfRegistrationTest() { - // TODO: test countryOfRegistration - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/TravelRuleNationalIdentificationTest.java b/src/test/java/com/fireblocks/sdk/model/TravelRuleNationalIdentificationTest.java deleted file mode 100644 index 90be151b..00000000 --- a/src/test/java/com/fireblocks/sdk/model/TravelRuleNationalIdentificationTest.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for TravelRuleNationalIdentification */ -class TravelRuleNationalIdentificationTest { - private final TravelRuleNationalIdentification model = new TravelRuleNationalIdentification(); - - /** Model tests for TravelRuleNationalIdentification */ - @Test - void testTravelRuleNationalIdentification() { - // TODO: test TravelRuleNationalIdentification - } - - /** Test the property 'countryOfIssue' */ - @Test - void countryOfIssueTest() { - // TODO: test countryOfIssue - } - - /** Test the property 'nationalIdentifier' */ - @Test - void nationalIdentifierTest() { - // TODO: test nationalIdentifier - } - - /** Test the property 'nationalIdentifierType' */ - @Test - void nationalIdentifierTypeTest() { - // TODO: test nationalIdentifierType - } - - /** Test the property 'registrationAuthority' */ - @Test - void registrationAuthorityTest() { - // TODO: test registrationAuthority - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/TravelRuleNaturalNameIdentifierTest.java b/src/test/java/com/fireblocks/sdk/model/TravelRuleNaturalNameIdentifierTest.java deleted file mode 100644 index d279cad3..00000000 --- a/src/test/java/com/fireblocks/sdk/model/TravelRuleNaturalNameIdentifierTest.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for TravelRuleNaturalNameIdentifier */ -class TravelRuleNaturalNameIdentifierTest { - private final TravelRuleNaturalNameIdentifier model = new TravelRuleNaturalNameIdentifier(); - - /** Model tests for TravelRuleNaturalNameIdentifier */ - @Test - void testTravelRuleNaturalNameIdentifier() { - // TODO: test TravelRuleNaturalNameIdentifier - } - - /** Test the property 'primaryIdentifier' */ - @Test - void primaryIdentifierTest() { - // TODO: test primaryIdentifier - } - - /** Test the property 'secondaryIdentifier' */ - @Test - void secondaryIdentifierTest() { - // TODO: test secondaryIdentifier - } - - /** Test the property 'nameIdentifierType' */ - @Test - void nameIdentifierTypeTest() { - // TODO: test nameIdentifierType - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/TravelRuleNaturalPersonNameIdentifierTest.java b/src/test/java/com/fireblocks/sdk/model/TravelRuleNaturalPersonNameIdentifierTest.java deleted file mode 100644 index fa56d39a..00000000 --- a/src/test/java/com/fireblocks/sdk/model/TravelRuleNaturalPersonNameIdentifierTest.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for TravelRuleNaturalPersonNameIdentifier */ -class TravelRuleNaturalPersonNameIdentifierTest { - private final TravelRuleNaturalPersonNameIdentifier model = - new TravelRuleNaturalPersonNameIdentifier(); - - /** Model tests for TravelRuleNaturalPersonNameIdentifier */ - @Test - void testTravelRuleNaturalPersonNameIdentifier() { - // TODO: test TravelRuleNaturalPersonNameIdentifier - } - - /** Test the property 'nameIdentifier' */ - @Test - void nameIdentifierTest() { - // TODO: test nameIdentifier - } - - /** Test the property 'localNameIdentifier' */ - @Test - void localNameIdentifierTest() { - // TODO: test localNameIdentifier - } - - /** Test the property 'phoneticNameIdentifier' */ - @Test - void phoneticNameIdentifierTest() { - // TODO: test phoneticNameIdentifier - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/TravelRuleNaturalPersonTest.java b/src/test/java/com/fireblocks/sdk/model/TravelRuleNaturalPersonTest.java deleted file mode 100644 index 2cb4f939..00000000 --- a/src/test/java/com/fireblocks/sdk/model/TravelRuleNaturalPersonTest.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for TravelRuleNaturalPerson */ -class TravelRuleNaturalPersonTest { - private final TravelRuleNaturalPerson model = new TravelRuleNaturalPerson(); - - /** Model tests for TravelRuleNaturalPerson */ - @Test - void testTravelRuleNaturalPerson() { - // TODO: test TravelRuleNaturalPerson - } - - /** Test the property 'name' */ - @Test - void nameTest() { - // TODO: test name - } - - /** Test the property 'geographicAddress' */ - @Test - void geographicAddressTest() { - // TODO: test geographicAddress - } - - /** Test the property 'nationalIdentification' */ - @Test - void nationalIdentificationTest() { - // TODO: test nationalIdentification - } - - /** Test the property 'dateAndPlaceOfBirth' */ - @Test - void dateAndPlaceOfBirthTest() { - // TODO: test dateAndPlaceOfBirth - } - - /** Test the property 'customerIdentification' */ - @Test - void customerIdentificationTest() { - // TODO: test customerIdentification - } - - /** Test the property 'countryOfResidence' */ - @Test - void countryOfResidenceTest() { - // TODO: test countryOfResidence - } - - /** Test the property 'customerNumber' */ - @Test - void customerNumberTest() { - // TODO: test customerNumber - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/TravelRuleOwnershipProofTest.java b/src/test/java/com/fireblocks/sdk/model/TravelRuleOwnershipProofTest.java index 45a5cb2f..ce121774 100644 --- a/src/test/java/com/fireblocks/sdk/model/TravelRuleOwnershipProofTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TravelRuleOwnershipProofTest.java @@ -36,34 +36,4 @@ void typeTest() { void proofTest() { // TODO: test proof } - - /** Test the property 'attestation' */ - @Test - void attestationTest() { - // TODO: test attestation - } - - /** Test the property 'address' */ - @Test - void addressTest() { - // TODO: test address - } - - /** Test the property 'walletProvider' */ - @Test - void walletProviderTest() { - // TODO: test walletProvider - } - - /** Test the property 'url' */ - @Test - void urlTest() { - // TODO: test url - } - - /** Test the property 'confirmed' */ - @Test - void confirmedTest() { - // TODO: test confirmed - } } diff --git a/src/test/java/com/fireblocks/sdk/model/TravelRulePersonTest.java b/src/test/java/com/fireblocks/sdk/model/TravelRulePersonTest.java deleted file mode 100644 index ef111b5b..00000000 --- a/src/test/java/com/fireblocks/sdk/model/TravelRulePersonTest.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for TravelRulePerson */ -class TravelRulePersonTest { - private final TravelRulePerson model = new TravelRulePerson(); - - /** Model tests for TravelRulePerson */ - @Test - void testTravelRulePerson() { - // TODO: test TravelRulePerson - } - - /** Test the property 'naturalPerson' */ - @Test - void naturalPersonTest() { - // TODO: test naturalPerson - } - - /** Test the property 'legalPerson' */ - @Test - void legalPersonTest() { - // TODO: test legalPerson - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/TravelRulePiiIVMSTest.java b/src/test/java/com/fireblocks/sdk/model/TravelRulePiiIVMSTest.java index 45866b9d..d7a2464b 100644 --- a/src/test/java/com/fireblocks/sdk/model/TravelRulePiiIVMSTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TravelRulePiiIVMSTest.java @@ -25,21 +25,57 @@ void testTravelRulePiiIVMS() { // TODO: test TravelRulePiiIVMS } - /** Test the property 'originatorPersons' */ + /** Test the property 'fullName' */ @Test - void originatorPersonsTest() { - // TODO: test originatorPersons + void fullNameTest() { + // TODO: test fullName } - /** Test the property 'beneficiaryPersons' */ + /** Test the property 'dateOfBirth' */ @Test - void beneficiaryPersonsTest() { - // TODO: test beneficiaryPersons + void dateOfBirthTest() { + // TODO: test dateOfBirth } - /** Test the property 'accountNumber' */ + /** Test the property 'placeOfBirth' */ @Test - void accountNumberTest() { - // TODO: test accountNumber + void placeOfBirthTest() { + // TODO: test placeOfBirth + } + + /** Test the property 'address' */ + @Test + void addressTest() { + // TODO: test address + } + + /** Test the property 'identificationNumber' */ + @Test + void identificationNumberTest() { + // TODO: test identificationNumber + } + + /** Test the property 'nationality' */ + @Test + void nationalityTest() { + // TODO: test nationality + } + + /** Test the property 'countryOfResidence' */ + @Test + void countryOfResidenceTest() { + // TODO: test countryOfResidence + } + + /** Test the property 'taxIdentificationNumber' */ + @Test + void taxIdentificationNumberTest() { + // TODO: test taxIdentificationNumber + } + + /** Test the property 'customerNumber' */ + @Test + void customerNumberTest() { + // TODO: test customerNumber } } diff --git a/src/test/java/com/fireblocks/sdk/model/TravelRuleValidateDateAndPlaceOfBirthTest.java b/src/test/java/com/fireblocks/sdk/model/TravelRuleValidateDateAndPlaceOfBirthTest.java deleted file mode 100644 index f54af77d..00000000 --- a/src/test/java/com/fireblocks/sdk/model/TravelRuleValidateDateAndPlaceOfBirthTest.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for TravelRuleValidateDateAndPlaceOfBirth */ -class TravelRuleValidateDateAndPlaceOfBirthTest { - private final TravelRuleValidateDateAndPlaceOfBirth model = - new TravelRuleValidateDateAndPlaceOfBirth(); - - /** Model tests for TravelRuleValidateDateAndPlaceOfBirth */ - @Test - void testTravelRuleValidateDateAndPlaceOfBirth() { - // TODO: test TravelRuleValidateDateAndPlaceOfBirth - } - - /** Test the property 'dateOfBirth' */ - @Test - void dateOfBirthTest() { - // TODO: test dateOfBirth - } - - /** Test the property 'placeOfBirth' */ - @Test - void placeOfBirthTest() { - // TODO: test placeOfBirth - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/TravelRuleValidateFullTransactionRequestTest.java b/src/test/java/com/fireblocks/sdk/model/TravelRuleValidateFullTransactionRequestTest.java index 68abcc1a..a97efc7b 100644 --- a/src/test/java/com/fireblocks/sdk/model/TravelRuleValidateFullTransactionRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TravelRuleValidateFullTransactionRequestTest.java @@ -26,18 +26,6 @@ void testTravelRuleValidateFullTransactionRequest() { // TODO: test TravelRuleValidateFullTransactionRequest } - /** Test the property 'originatorVASPdid' */ - @Test - void originatorVASPdidTest() { - // TODO: test originatorVASPdid - } - - /** Test the property 'beneficiaryVASPdid' */ - @Test - void beneficiaryVASPdidTest() { - // TODO: test beneficiaryVASPdid - } - /** Test the property 'transactionAsset' */ @Test void transactionAssetTest() { @@ -50,10 +38,28 @@ void transactionAmountTest() { // TODO: test transactionAmount } - /** Test the property 'originatorVASPname' */ + /** Test the property 'originatorDid' */ + @Test + void originatorDidTest() { + // TODO: test originatorDid + } + + /** Test the property 'beneficiaryDid' */ + @Test + void beneficiaryDidTest() { + // TODO: test beneficiaryDid + } + + /** Test the property 'originatorVASPdid' */ + @Test + void originatorVASPdidTest() { + // TODO: test originatorVASPdid + } + + /** Test the property 'beneficiaryVASPdid' */ @Test - void originatorVASPnameTest() { - // TODO: test originatorVASPname + void beneficiaryVASPdidTest() { + // TODO: test beneficiaryVASPdid } /** Test the property 'beneficiaryVASPname' */ @@ -92,6 +98,12 @@ void protocolTest() { // TODO: test protocol } + /** Test the property 'notificationEmail' */ + @Test + void notificationEmailTest() { + // TODO: test notificationEmail + } + /** Test the property 'skipBeneficiaryDataValidation' */ @Test void skipBeneficiaryDataValidationTest() { @@ -104,24 +116,6 @@ void travelRuleBehaviorTest() { // TODO: test travelRuleBehavior } - /** Test the property 'originatorRef' */ - @Test - void originatorRefTest() { - // TODO: test originatorRef - } - - /** Test the property 'beneficiaryRef' */ - @Test - void beneficiaryRefTest() { - // TODO: test beneficiaryRef - } - - /** Test the property 'travelRuleBehaviorRef' */ - @Test - void travelRuleBehaviorRefTest() { - // TODO: test travelRuleBehaviorRef - } - /** Test the property 'originatorProof' */ @Test void originatorProofTest() { @@ -134,39 +128,9 @@ void beneficiaryProofTest() { // TODO: test beneficiaryProof } - /** Test the property 'beneficiaryDid' */ - @Test - void beneficiaryDidTest() { - // TODO: test beneficiaryDid - } - - /** Test the property 'originatorDid' */ - @Test - void originatorDidTest() { - // TODO: test originatorDid - } - - /** Test the property 'isNonCustodial' */ - @Test - void isNonCustodialTest() { - // TODO: test isNonCustodial - } - - /** Test the property 'notificationEmail' */ - @Test - void notificationEmailTest() { - // TODO: test notificationEmail - } - /** Test the property 'pii' */ @Test void piiTest() { // TODO: test pii } - - /** Test the property 'piiUrl' */ - @Test - void piiUrlTest() { - // TODO: test piiUrl - } } diff --git a/src/test/java/com/fireblocks/sdk/model/TravelRuleValidateGeographicAddressTest.java b/src/test/java/com/fireblocks/sdk/model/TravelRuleValidateGeographicAddressTest.java deleted file mode 100644 index 7574a539..00000000 --- a/src/test/java/com/fireblocks/sdk/model/TravelRuleValidateGeographicAddressTest.java +++ /dev/null @@ -1,124 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for TravelRuleValidateGeographicAddress */ -class TravelRuleValidateGeographicAddressTest { - private final TravelRuleValidateGeographicAddress model = - new TravelRuleValidateGeographicAddress(); - - /** Model tests for TravelRuleValidateGeographicAddress */ - @Test - void testTravelRuleValidateGeographicAddress() { - // TODO: test TravelRuleValidateGeographicAddress - } - - /** Test the property 'streetName' */ - @Test - void streetNameTest() { - // TODO: test streetName - } - - /** Test the property 'townName' */ - @Test - void townNameTest() { - // TODO: test townName - } - - /** Test the property 'country' */ - @Test - void countryTest() { - // TODO: test country - } - - /** Test the property 'buildingNumber' */ - @Test - void buildingNumberTest() { - // TODO: test buildingNumber - } - - /** Test the property 'postCode' */ - @Test - void postCodeTest() { - // TODO: test postCode - } - - /** Test the property 'addressType' */ - @Test - void addressTypeTest() { - // TODO: test addressType - } - - /** Test the property 'department' */ - @Test - void departmentTest() { - // TODO: test department - } - - /** Test the property 'subDepartment' */ - @Test - void subDepartmentTest() { - // TODO: test subDepartment - } - - /** Test the property 'buildingName' */ - @Test - void buildingNameTest() { - // TODO: test buildingName - } - - /** Test the property 'floor' */ - @Test - void floorTest() { - // TODO: test floor - } - - /** Test the property 'postBox' */ - @Test - void postBoxTest() { - // TODO: test postBox - } - - /** Test the property 'room' */ - @Test - void roomTest() { - // TODO: test room - } - - /** Test the property 'townLocationName' */ - @Test - void townLocationNameTest() { - // TODO: test townLocationName - } - - /** Test the property 'districtName' */ - @Test - void districtNameTest() { - // TODO: test districtName - } - - /** Test the property 'countrySubDivision' */ - @Test - void countrySubDivisionTest() { - // TODO: test countrySubDivision - } - - /** Test the property 'addressLine' */ - @Test - void addressLineTest() { - // TODO: test addressLine - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/TravelRuleValidateLegalPersonNameIdentifierTest.java b/src/test/java/com/fireblocks/sdk/model/TravelRuleValidateLegalPersonNameIdentifierTest.java deleted file mode 100644 index f3f084c5..00000000 --- a/src/test/java/com/fireblocks/sdk/model/TravelRuleValidateLegalPersonNameIdentifierTest.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for TravelRuleValidateLegalPersonNameIdentifier */ -class TravelRuleValidateLegalPersonNameIdentifierTest { - private final TravelRuleValidateLegalPersonNameIdentifier model = - new TravelRuleValidateLegalPersonNameIdentifier(); - - /** Model tests for TravelRuleValidateLegalPersonNameIdentifier */ - @Test - void testTravelRuleValidateLegalPersonNameIdentifier() { - // TODO: test TravelRuleValidateLegalPersonNameIdentifier - } - - /** Test the property 'legalPersonName' */ - @Test - void legalPersonNameTest() { - // TODO: test legalPersonName - } - - /** Test the property 'legalPersonNameIdentifierType' */ - @Test - void legalPersonNameIdentifierTypeTest() { - // TODO: test legalPersonNameIdentifierType - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/TravelRuleValidateLegalPersonTest.java b/src/test/java/com/fireblocks/sdk/model/TravelRuleValidateLegalPersonTest.java deleted file mode 100644 index 32291c69..00000000 --- a/src/test/java/com/fireblocks/sdk/model/TravelRuleValidateLegalPersonTest.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for TravelRuleValidateLegalPerson */ -class TravelRuleValidateLegalPersonTest { - private final TravelRuleValidateLegalPerson model = new TravelRuleValidateLegalPerson(); - - /** Model tests for TravelRuleValidateLegalPerson */ - @Test - void testTravelRuleValidateLegalPerson() { - // TODO: test TravelRuleValidateLegalPerson - } - - /** Test the property 'name' */ - @Test - void nameTest() { - // TODO: test name - } - - /** Test the property 'geographicAddress' */ - @Test - void geographicAddressTest() { - // TODO: test geographicAddress - } - - /** Test the property 'nationalIdentification' */ - @Test - void nationalIdentificationTest() { - // TODO: test nationalIdentification - } - - /** Test the property 'customerIdentification' */ - @Test - void customerIdentificationTest() { - // TODO: test customerIdentification - } - - /** Test the property 'customerNumber' */ - @Test - void customerNumberTest() { - // TODO: test customerNumber - } - - /** Test the property 'countryOfRegistration' */ - @Test - void countryOfRegistrationTest() { - // TODO: test countryOfRegistration - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/TravelRuleValidateNationalIdentificationTest.java b/src/test/java/com/fireblocks/sdk/model/TravelRuleValidateNationalIdentificationTest.java deleted file mode 100644 index afce71e3..00000000 --- a/src/test/java/com/fireblocks/sdk/model/TravelRuleValidateNationalIdentificationTest.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for TravelRuleValidateNationalIdentification */ -class TravelRuleValidateNationalIdentificationTest { - private final TravelRuleValidateNationalIdentification model = - new TravelRuleValidateNationalIdentification(); - - /** Model tests for TravelRuleValidateNationalIdentification */ - @Test - void testTravelRuleValidateNationalIdentification() { - // TODO: test TravelRuleValidateNationalIdentification - } - - /** Test the property 'countryOfIssue' */ - @Test - void countryOfIssueTest() { - // TODO: test countryOfIssue - } - - /** Test the property 'nationalIdentifier' */ - @Test - void nationalIdentifierTest() { - // TODO: test nationalIdentifier - } - - /** Test the property 'nationalIdentifierType' */ - @Test - void nationalIdentifierTypeTest() { - // TODO: test nationalIdentifierType - } - - /** Test the property 'registrationAuthority' */ - @Test - void registrationAuthorityTest() { - // TODO: test registrationAuthority - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/TravelRuleValidateNaturalNameIdentifierTest.java b/src/test/java/com/fireblocks/sdk/model/TravelRuleValidateNaturalNameIdentifierTest.java deleted file mode 100644 index 8a74cca7..00000000 --- a/src/test/java/com/fireblocks/sdk/model/TravelRuleValidateNaturalNameIdentifierTest.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for TravelRuleValidateNaturalNameIdentifier */ -class TravelRuleValidateNaturalNameIdentifierTest { - private final TravelRuleValidateNaturalNameIdentifier model = - new TravelRuleValidateNaturalNameIdentifier(); - - /** Model tests for TravelRuleValidateNaturalNameIdentifier */ - @Test - void testTravelRuleValidateNaturalNameIdentifier() { - // TODO: test TravelRuleValidateNaturalNameIdentifier - } - - /** Test the property 'primaryIdentifier' */ - @Test - void primaryIdentifierTest() { - // TODO: test primaryIdentifier - } - - /** Test the property 'secondaryIdentifier' */ - @Test - void secondaryIdentifierTest() { - // TODO: test secondaryIdentifier - } - - /** Test the property 'nameIdentifierType' */ - @Test - void nameIdentifierTypeTest() { - // TODO: test nameIdentifierType - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/TravelRuleValidateNaturalPersonNameIdentifierTest.java b/src/test/java/com/fireblocks/sdk/model/TravelRuleValidateNaturalPersonNameIdentifierTest.java deleted file mode 100644 index d6e50a9e..00000000 --- a/src/test/java/com/fireblocks/sdk/model/TravelRuleValidateNaturalPersonNameIdentifierTest.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for TravelRuleValidateNaturalPersonNameIdentifier */ -class TravelRuleValidateNaturalPersonNameIdentifierTest { - private final TravelRuleValidateNaturalPersonNameIdentifier model = - new TravelRuleValidateNaturalPersonNameIdentifier(); - - /** Model tests for TravelRuleValidateNaturalPersonNameIdentifier */ - @Test - void testTravelRuleValidateNaturalPersonNameIdentifier() { - // TODO: test TravelRuleValidateNaturalPersonNameIdentifier - } - - /** Test the property 'nameIdentifier' */ - @Test - void nameIdentifierTest() { - // TODO: test nameIdentifier - } - - /** Test the property 'localNameIdentifier' */ - @Test - void localNameIdentifierTest() { - // TODO: test localNameIdentifier - } - - /** Test the property 'phoneticNameIdentifier' */ - @Test - void phoneticNameIdentifierTest() { - // TODO: test phoneticNameIdentifier - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/TravelRuleValidateNaturalPersonTest.java b/src/test/java/com/fireblocks/sdk/model/TravelRuleValidateNaturalPersonTest.java deleted file mode 100644 index 9680b53f..00000000 --- a/src/test/java/com/fireblocks/sdk/model/TravelRuleValidateNaturalPersonTest.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for TravelRuleValidateNaturalPerson */ -class TravelRuleValidateNaturalPersonTest { - private final TravelRuleValidateNaturalPerson model = new TravelRuleValidateNaturalPerson(); - - /** Model tests for TravelRuleValidateNaturalPerson */ - @Test - void testTravelRuleValidateNaturalPerson() { - // TODO: test TravelRuleValidateNaturalPerson - } - - /** Test the property 'name' */ - @Test - void nameTest() { - // TODO: test name - } - - /** Test the property 'geographicAddress' */ - @Test - void geographicAddressTest() { - // TODO: test geographicAddress - } - - /** Test the property 'nationalIdentification' */ - @Test - void nationalIdentificationTest() { - // TODO: test nationalIdentification - } - - /** Test the property 'dateAndPlaceOfBirth' */ - @Test - void dateAndPlaceOfBirthTest() { - // TODO: test dateAndPlaceOfBirth - } - - /** Test the property 'customerIdentification' */ - @Test - void customerIdentificationTest() { - // TODO: test customerIdentification - } - - /** Test the property 'countryOfResidence' */ - @Test - void countryOfResidenceTest() { - // TODO: test countryOfResidence - } - - /** Test the property 'customerNumber' */ - @Test - void customerNumberTest() { - // TODO: test customerNumber - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/TravelRuleValidatePersonTest.java b/src/test/java/com/fireblocks/sdk/model/TravelRuleValidatePersonTest.java deleted file mode 100644 index 2dc44354..00000000 --- a/src/test/java/com/fireblocks/sdk/model/TravelRuleValidatePersonTest.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for TravelRuleValidatePerson */ -class TravelRuleValidatePersonTest { - private final TravelRuleValidatePerson model = new TravelRuleValidatePerson(); - - /** Model tests for TravelRuleValidatePerson */ - @Test - void testTravelRuleValidatePerson() { - // TODO: test TravelRuleValidatePerson - } - - /** Test the property 'naturalPerson' */ - @Test - void naturalPersonTest() { - // TODO: test naturalPerson - } - - /** Test the property 'legalPerson' */ - @Test - void legalPersonTest() { - // TODO: test legalPerson - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/TravelRuleValidatePiiIVMSTest.java b/src/test/java/com/fireblocks/sdk/model/TravelRuleValidatePiiIVMSTest.java deleted file mode 100644 index 68f9b80e..00000000 --- a/src/test/java/com/fireblocks/sdk/model/TravelRuleValidatePiiIVMSTest.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for TravelRuleValidatePiiIVMS */ -class TravelRuleValidatePiiIVMSTest { - private final TravelRuleValidatePiiIVMS model = new TravelRuleValidatePiiIVMS(); - - /** Model tests for TravelRuleValidatePiiIVMS */ - @Test - void testTravelRuleValidatePiiIVMS() { - // TODO: test TravelRuleValidatePiiIVMS - } - - /** Test the property 'originatorPersons' */ - @Test - void originatorPersonsTest() { - // TODO: test originatorPersons - } - - /** Test the property 'beneficiaryPersons' */ - @Test - void beneficiaryPersonsTest() { - // TODO: test beneficiaryPersons - } - - /** Test the property 'accountNumber' */ - @Test - void accountNumberTest() { - // TODO: test accountNumber - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/TravelRuleValidateTransactionRequestTest.java b/src/test/java/com/fireblocks/sdk/model/TravelRuleValidateTransactionRequestTest.java index 5c6518e4..2db9105f 100644 --- a/src/test/java/com/fireblocks/sdk/model/TravelRuleValidateTransactionRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TravelRuleValidateTransactionRequestTest.java @@ -44,12 +44,6 @@ void transactionAmountTest() { // TODO: test transactionAmount } - /** Test the property 'transactionAssetDecimals' */ - @Test - void transactionAssetDecimalsTest() { - // TODO: test transactionAssetDecimals - } - /** Test the property 'originatorVASPdid' */ @Test void originatorVASPdidTest() { diff --git a/src/test/java/com/fireblocks/sdk/model/TravelRuleVaspForVaultTest.java b/src/test/java/com/fireblocks/sdk/model/TravelRuleVaspForVaultTest.java deleted file mode 100644 index 863f9fb7..00000000 --- a/src/test/java/com/fireblocks/sdk/model/TravelRuleVaspForVaultTest.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for TravelRuleVaspForVault */ -class TravelRuleVaspForVaultTest { - private final TravelRuleVaspForVault model = new TravelRuleVaspForVault(); - - /** Model tests for TravelRuleVaspForVault */ - @Test - void testTravelRuleVaspForVault() { - // TODO: test TravelRuleVaspForVault - } - - /** Test the property 'vaspDid' */ - @Test - void vaspDidTest() { - // TODO: test vaspDid - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/TxLogTest.java b/src/test/java/com/fireblocks/sdk/model/TxLogTest.java deleted file mode 100644 index 05765fbd..00000000 --- a/src/test/java/com/fireblocks/sdk/model/TxLogTest.java +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for TxLog */ -class TxLogTest { - private final TxLog model = new TxLog(); - - /** Model tests for TxLog */ - @Test - void testTxLog() { - // TODO: test TxLog - } - - /** Test the property 'address' */ - @Test - void addressTest() { - // TODO: test address - } - - /** Test the property 'topics' */ - @Test - void topicsTest() { - // TODO: test topics - } - - /** Test the property 'data' */ - @Test - void dataTest() { - // TODO: test data - } - - /** Test the property 'blockNumber' */ - @Test - void blockNumberTest() { - // TODO: test blockNumber - } - - /** Test the property 'transactionHash' */ - @Test - void transactionHashTest() { - // TODO: test transactionHash - } - - /** Test the property 'transactionIndex' */ - @Test - void transactionIndexTest() { - // TODO: test transactionIndex - } - - /** Test the property 'blockHash' */ - @Test - void blockHashTest() { - // TODO: test blockHash - } - - /** Test the property 'logIndex' */ - @Test - void logIndexTest() { - // TODO: test logIndex - } - - /** Test the property 'removed' */ - @Test - void removedTest() { - // TODO: test removed - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/WithdrawRequestTest.java b/src/test/java/com/fireblocks/sdk/model/UnstakeRequestDtoTest.java similarity index 77% rename from src/test/java/com/fireblocks/sdk/model/WithdrawRequestTest.java rename to src/test/java/com/fireblocks/sdk/model/UnstakeRequestDtoTest.java index eb9e99c8..61157621 100644 --- a/src/test/java/com/fireblocks/sdk/model/WithdrawRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/UnstakeRequestDtoTest.java @@ -15,14 +15,14 @@ import org.junit.jupiter.api.Test; -/** Model tests for WithdrawRequest */ -class WithdrawRequestTest { - private final WithdrawRequest model = new WithdrawRequest(); +/** Model tests for UnstakeRequestDto */ +class UnstakeRequestDtoTest { + private final UnstakeRequestDto model = new UnstakeRequestDto(); - /** Model tests for WithdrawRequest */ + /** Model tests for UnstakeRequestDto */ @Test - void testWithdrawRequest() { - // TODO: test WithdrawRequest + void testUnstakeRequestDto() { + // TODO: test UnstakeRequestDto } /** Test the property 'id' */ diff --git a/src/test/java/com/fireblocks/sdk/model/UpdateAssetUserMetadataRequestTest.java b/src/test/java/com/fireblocks/sdk/model/UpdateAssetUserMetadataRequestTest.java deleted file mode 100644 index 273b41dd..00000000 --- a/src/test/java/com/fireblocks/sdk/model/UpdateAssetUserMetadataRequestTest.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for UpdateAssetUserMetadataRequest */ -class UpdateAssetUserMetadataRequestTest { - private final UpdateAssetUserMetadataRequest model = new UpdateAssetUserMetadataRequest(); - - /** Model tests for UpdateAssetUserMetadataRequest */ - @Test - void testUpdateAssetUserMetadataRequest() { - // TODO: test UpdateAssetUserMetadataRequest - } - - /** Test the property 'metadata' */ - @Test - void metadataTest() { - // TODO: test metadata - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/UpdateCallbackHandlerRequestTest.java b/src/test/java/com/fireblocks/sdk/model/UpdateCallbackHandlerRequestTest.java deleted file mode 100644 index 79dc50f8..00000000 --- a/src/test/java/com/fireblocks/sdk/model/UpdateCallbackHandlerRequestTest.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for UpdateCallbackHandlerRequest */ -class UpdateCallbackHandlerRequestTest { - private final UpdateCallbackHandlerRequest model = new UpdateCallbackHandlerRequest(); - - /** Model tests for UpdateCallbackHandlerRequest */ - @Test - void testUpdateCallbackHandlerRequest() { - // TODO: test UpdateCallbackHandlerRequest - } - - /** Test the property 'callbackHandler' */ - @Test - void callbackHandlerTest() { - // TODO: test callbackHandler - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/UpdateCallbackHandlerResponseTest.java b/src/test/java/com/fireblocks/sdk/model/UpdateCallbackHandlerResponseTest.java deleted file mode 100644 index 337ebc8f..00000000 --- a/src/test/java/com/fireblocks/sdk/model/UpdateCallbackHandlerResponseTest.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for UpdateCallbackHandlerResponse */ -class UpdateCallbackHandlerResponseTest { - private final UpdateCallbackHandlerResponse model = new UpdateCallbackHandlerResponse(); - - /** Model tests for UpdateCallbackHandlerResponse */ - @Test - void testUpdateCallbackHandlerResponse() { - // TODO: test UpdateCallbackHandlerResponse - } - - /** Test the property 'id' */ - @Test - void idTest() { - // TODO: test id - } - - /** Test the property 'callbackHandler' */ - @Test - void callbackHandlerTest() { - // TODO: test callbackHandler - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/UpdateDraftRequestTest.java b/src/test/java/com/fireblocks/sdk/model/UpdateDraftRequestTest.java deleted file mode 100644 index 9d464b53..00000000 --- a/src/test/java/com/fireblocks/sdk/model/UpdateDraftRequestTest.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for UpdateDraftRequest */ -class UpdateDraftRequestTest { - private final UpdateDraftRequest model = new UpdateDraftRequest(); - - /** Model tests for UpdateDraftRequest */ - @Test - void testUpdateDraftRequest() { - // TODO: test UpdateDraftRequest - } - - /** Test the property 'policyTypes' */ - @Test - void policyTypesTest() { - // TODO: test policyTypes - } - - /** Test the property 'rules' */ - @Test - void rulesTest() { - // TODO: test rules - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/UpdateTagRequestTest.java b/src/test/java/com/fireblocks/sdk/model/UpdateTagRequestTest.java deleted file mode 100644 index 366733e0..00000000 --- a/src/test/java/com/fireblocks/sdk/model/UpdateTagRequestTest.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for UpdateTagRequest */ -class UpdateTagRequestTest { - private final UpdateTagRequest model = new UpdateTagRequest(); - - /** Model tests for UpdateTagRequest */ - @Test - void testUpdateTagRequest() { - // TODO: test UpdateTagRequest - } - - /** Test the property 'label' */ - @Test - void labelTest() { - // TODO: test label - } - - /** Test the property 'description' */ - @Test - void descriptionTest() { - // TODO: test description - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/UpdateWebhookRequestTest.java b/src/test/java/com/fireblocks/sdk/model/UpdateWebhookRequestTest.java deleted file mode 100644 index a8dfd930..00000000 --- a/src/test/java/com/fireblocks/sdk/model/UpdateWebhookRequestTest.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for UpdateWebhookRequest */ -class UpdateWebhookRequestTest { - private final UpdateWebhookRequest model = new UpdateWebhookRequest(); - - /** Model tests for UpdateWebhookRequest */ - @Test - void testUpdateWebhookRequest() { - // TODO: test UpdateWebhookRequest - } - - /** Test the property 'url' */ - @Test - void urlTest() { - // TODO: test url - } - - /** Test the property 'description' */ - @Test - void descriptionTest() { - // TODO: test description - } - - /** Test the property 'events' */ - @Test - void eventsTest() { - // TODO: test events - } - - /** Test the property 'enabled' */ - @Test - void enabledTest() { - // TODO: test enabled - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/UsWirePaymentInfoTest.java b/src/test/java/com/fireblocks/sdk/model/UsWirePaymentInfoTest.java deleted file mode 100644 index 79c2db5a..00000000 --- a/src/test/java/com/fireblocks/sdk/model/UsWirePaymentInfoTest.java +++ /dev/null @@ -1,117 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for UsWirePaymentInfo */ -class UsWirePaymentInfoTest { - private final UsWirePaymentInfo model = new UsWirePaymentInfo(); - - /** Model tests for UsWirePaymentInfo */ - @Test - void testUsWirePaymentInfo() { - // TODO: test UsWirePaymentInfo - } - - /** Test the property 'rail' */ - @Test - void railTest() { - // TODO: test rail - } - - /** Test the property 'addressingSystem' */ - @Test - void addressingSystemTest() { - // TODO: test addressingSystem - } - - /** Test the property 'accountHolderGivenName' */ - @Test - void accountHolderGivenNameTest() { - // TODO: test accountHolderGivenName - } - - /** Test the property 'accountHolderSurname' */ - @Test - void accountHolderSurnameTest() { - // TODO: test accountHolderSurname - } - - /** Test the property 'country' */ - @Test - void countryTest() { - // TODO: test country - } - - /** Test the property 'accountNumber' */ - @Test - void accountNumberTest() { - // TODO: test accountNumber - } - - /** Test the property 'routingNumber' */ - @Test - void routingNumberTest() { - // TODO: test routingNumber - } - - /** Test the property 'swiftCode' */ - @Test - void swiftCodeTest() { - // TODO: test swiftCode - } - - /** Test the property 'bankName' */ - @Test - void bankNameTest() { - // TODO: test bankName - } - - /** Test the property 'bankAddressLine' */ - @Test - void bankAddressLineTest() { - // TODO: test bankAddressLine - } - - /** Test the property 'bankAddressCity' */ - @Test - void bankAddressCityTest() { - // TODO: test bankAddressCity - } - - /** Test the property 'bankAddressState' */ - @Test - void bankAddressStateTest() { - // TODO: test bankAddressState - } - - /** Test the property 'bankAddressCountry' */ - @Test - void bankAddressCountryTest() { - // TODO: test bankAddressCountry - } - - /** Test the property 'bankAddressPostalCode' */ - @Test - void bankAddressPostalCodeTest() { - // TODO: test bankAddressPostalCode - } - - /** Test the property 'branchNumber' */ - @Test - void branchNumberTest() { - // TODO: test branchNumber - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/ValidateLayerZeroChannelResponseTest.java b/src/test/java/com/fireblocks/sdk/model/ValidateLayerZeroChannelResponseTest.java deleted file mode 100644 index be30337c..00000000 --- a/src/test/java/com/fireblocks/sdk/model/ValidateLayerZeroChannelResponseTest.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for ValidateLayerZeroChannelResponse */ -class ValidateLayerZeroChannelResponseTest { - private final ValidateLayerZeroChannelResponse model = new ValidateLayerZeroChannelResponse(); - - /** Model tests for ValidateLayerZeroChannelResponse */ - @Test - void testValidateLayerZeroChannelResponse() { - // TODO: test ValidateLayerZeroChannelResponse - } - - /** Test the property 'correct' */ - @Test - void correctTest() { - // TODO: test correct - } - - /** Test the property 'errors' */ - @Test - void errorsTest() { - // TODO: test errors - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/ValidatedTransactionsForRescanTest.java b/src/test/java/com/fireblocks/sdk/model/ValidatedTransactionsForRescanTest.java deleted file mode 100644 index 343cb1db..00000000 --- a/src/test/java/com/fireblocks/sdk/model/ValidatedTransactionsForRescanTest.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for ValidatedTransactionsForRescan */ -class ValidatedTransactionsForRescanTest { - private final ValidatedTransactionsForRescan model = new ValidatedTransactionsForRescan(); - - /** Model tests for ValidatedTransactionsForRescan */ - @Test - void testValidatedTransactionsForRescan() { - // TODO: test ValidatedTransactionsForRescan - } - - /** Test the property 'baseAsset' */ - @Test - void baseAssetTest() { - // TODO: test baseAsset - } - - /** Test the property 'networkProtocol' */ - @Test - void networkProtocolTest() { - // TODO: test networkProtocol - } - - /** Test the property 'txHashes' */ - @Test - void txHashesTest() { - // TODO: test txHashes - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/ValidatorTest.java b/src/test/java/com/fireblocks/sdk/model/ValidatorDtoTest.java similarity index 69% rename from src/test/java/com/fireblocks/sdk/model/ValidatorTest.java rename to src/test/java/com/fireblocks/sdk/model/ValidatorDtoTest.java index c82a25d0..f692ff28 100644 --- a/src/test/java/com/fireblocks/sdk/model/ValidatorTest.java +++ b/src/test/java/com/fireblocks/sdk/model/ValidatorDtoTest.java @@ -15,14 +15,14 @@ import org.junit.jupiter.api.Test; -/** Model tests for Validator */ -class ValidatorTest { - private final Validator model = new Validator(); +/** Model tests for ValidatorDto */ +class ValidatorDtoTest { + private final ValidatorDto model = new ValidatorDto(); - /** Model tests for Validator */ + /** Model tests for ValidatorDto */ @Test - void testValidator() { - // TODO: test Validator + void testValidatorDto() { + // TODO: test ValidatorDto } /** Test the property 'chainDescriptor' */ @@ -36,10 +36,4 @@ void chainDescriptorTest() { void feePercentTest() { // TODO: test feePercent } - - /** Test the property 'isPrivate' */ - @Test - void isPrivateTest() { - // TODO: test isPrivate - } } diff --git a/src/test/java/com/fireblocks/sdk/model/VaultAccountTest.java b/src/test/java/com/fireblocks/sdk/model/VaultAccountTest.java index d91789fa..be43549f 100644 --- a/src/test/java/com/fireblocks/sdk/model/VaultAccountTest.java +++ b/src/test/java/com/fireblocks/sdk/model/VaultAccountTest.java @@ -60,10 +60,4 @@ void customerRefIdTest() { void autoFuelTest() { // TODO: test autoFuel } - - /** Test the property 'tags' */ - @Test - void tagsTest() { - // TODO: test tags - } } diff --git a/src/test/java/com/fireblocks/sdk/model/VaultAccountsTagAttachmentsRequestTest.java b/src/test/java/com/fireblocks/sdk/model/VaultAccountsTagAttachmentsRequestTest.java deleted file mode 100644 index d4834482..00000000 --- a/src/test/java/com/fireblocks/sdk/model/VaultAccountsTagAttachmentsRequestTest.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for VaultAccountsTagAttachmentsRequest */ -class VaultAccountsTagAttachmentsRequestTest { - private final VaultAccountsTagAttachmentsRequest model = - new VaultAccountsTagAttachmentsRequest(); - - /** Model tests for VaultAccountsTagAttachmentsRequest */ - @Test - void testVaultAccountsTagAttachmentsRequest() { - // TODO: test VaultAccountsTagAttachmentsRequest - } - - /** Test the property 'tagIds' */ - @Test - void tagIdsTest() { - // TODO: test tagIds - } - - /** Test the property 'vaultAccountIds' */ - @Test - void vaultAccountIdsTest() { - // TODO: test vaultAccountIds - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/VerdictConfigTest.java b/src/test/java/com/fireblocks/sdk/model/VerdictConfigTest.java deleted file mode 100644 index 0e7c6f9f..00000000 --- a/src/test/java/com/fireblocks/sdk/model/VerdictConfigTest.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for VerdictConfig */ -class VerdictConfigTest { - private final VerdictConfig model = new VerdictConfig(); - - /** Model tests for VerdictConfig */ - @Test - void testVerdictConfig() { - // TODO: test VerdictConfig - } - - /** Test the property 'action' */ - @Test - void actionTest() { - // TODO: test action - } - - /** Test the property 'approvers' */ - @Test - void approversTest() { - // TODO: test approvers - } - - /** Test the property 'designatedSigners' */ - @Test - void designatedSignersTest() { - // TODO: test designatedSigners - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/VersionTest.java b/src/test/java/com/fireblocks/sdk/model/VersionTest.java deleted file mode 100644 index 5a490296..00000000 --- a/src/test/java/com/fireblocks/sdk/model/VersionTest.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for Version */ -class VersionTest { - private final Version model = new Version(); - - /** Model tests for Version */ - @Test - void testVersion() { - // TODO: test Version - } - - /** Test the property 'hash' */ - @Test - void hashTest() { - // TODO: test hash - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/WebhookEventTest.java b/src/test/java/com/fireblocks/sdk/model/WebhookEventTest.java deleted file mode 100644 index 2bb7be48..00000000 --- a/src/test/java/com/fireblocks/sdk/model/WebhookEventTest.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for WebhookEvent */ -class WebhookEventTest { - /** Model tests for WebhookEvent */ - @Test - void testWebhookEvent() { - // TODO: test WebhookEvent - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/WebhookPaginatedResponseTest.java b/src/test/java/com/fireblocks/sdk/model/WebhookPaginatedResponseTest.java deleted file mode 100644 index 438e9c29..00000000 --- a/src/test/java/com/fireblocks/sdk/model/WebhookPaginatedResponseTest.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for WebhookPaginatedResponse */ -class WebhookPaginatedResponseTest { - private final WebhookPaginatedResponse model = new WebhookPaginatedResponse(); - - /** Model tests for WebhookPaginatedResponse */ - @Test - void testWebhookPaginatedResponse() { - // TODO: test WebhookPaginatedResponse - } - - /** Test the property 'data' */ - @Test - void dataTest() { - // TODO: test data - } - - /** Test the property 'next' */ - @Test - void nextTest() { - // TODO: test next - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/WebhookTest.java b/src/test/java/com/fireblocks/sdk/model/WebhookTest.java deleted file mode 100644 index a526d87a..00000000 --- a/src/test/java/com/fireblocks/sdk/model/WebhookTest.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for Webhook */ -class WebhookTest { - private final Webhook model = new Webhook(); - - /** Model tests for Webhook */ - @Test - void testWebhook() { - // TODO: test Webhook - } - - /** Test the property 'id' */ - @Test - void idTest() { - // TODO: test id - } - - /** Test the property 'url' */ - @Test - void urlTest() { - // TODO: test url - } - - /** Test the property 'description' */ - @Test - void descriptionTest() { - // TODO: test description - } - - /** Test the property 'events' */ - @Test - void eventsTest() { - // TODO: test events - } - - /** Test the property 'status' */ - @Test - void statusTest() { - // TODO: test status - } - - /** Test the property 'createdAt' */ - @Test - void createdAtTest() { - // TODO: test createdAt - } - - /** Test the property 'updatedAt' */ - @Test - void updatedAtTest() { - // TODO: test updatedAt - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/ClaimRewardsRequestTest.java b/src/test/java/com/fireblocks/sdk/model/WithdrawRequestDtoTest.java similarity index 76% rename from src/test/java/com/fireblocks/sdk/model/ClaimRewardsRequestTest.java rename to src/test/java/com/fireblocks/sdk/model/WithdrawRequestDtoTest.java index 775f5fed..b89016aa 100644 --- a/src/test/java/com/fireblocks/sdk/model/ClaimRewardsRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/WithdrawRequestDtoTest.java @@ -15,14 +15,14 @@ import org.junit.jupiter.api.Test; -/** Model tests for ClaimRewardsRequest */ -class ClaimRewardsRequestTest { - private final ClaimRewardsRequest model = new ClaimRewardsRequest(); +/** Model tests for WithdrawRequestDto */ +class WithdrawRequestDtoTest { + private final WithdrawRequestDto model = new WithdrawRequestDto(); - /** Model tests for ClaimRewardsRequest */ + /** Model tests for WithdrawRequestDto */ @Test - void testClaimRewardsRequest() { - // TODO: test ClaimRewardsRequest + void testWithdrawRequestDto() { + // TODO: test WithdrawRequestDto } /** Test the property 'id' */ diff --git a/src/test/java/com/fireblocks/sdk/model/WriteCallFunctionDtoAbiFunctionTest.java b/src/test/java/com/fireblocks/sdk/model/WriteCallFunctionDtoAbiFunctionTest.java deleted file mode 100644 index 37b6b1ed..00000000 --- a/src/test/java/com/fireblocks/sdk/model/WriteCallFunctionDtoAbiFunctionTest.java +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Fireblocks API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.6.2 - * Contact: support@fireblocks.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.fireblocks.sdk.model; - - -import org.junit.jupiter.api.Test; - -/** Model tests for WriteCallFunctionDtoAbiFunction */ -class WriteCallFunctionDtoAbiFunctionTest { - private final WriteCallFunctionDtoAbiFunction model = new WriteCallFunctionDtoAbiFunction(); - - /** Model tests for WriteCallFunctionDtoAbiFunction */ - @Test - void testWriteCallFunctionDtoAbiFunction() { - // TODO: test WriteCallFunctionDtoAbiFunction - } - - /** Test the property 'stateMutability' */ - @Test - void stateMutabilityTest() { - // TODO: test stateMutability - } - - /** Test the property 'outputs' */ - @Test - void outputsTest() { - // TODO: test outputs - } - - /** Test the property 'type' */ - @Test - void typeTest() { - // TODO: test type - } - - /** Test the property 'name' */ - @Test - void nameTest() { - // TODO: test name - } - - /** Test the property 'inputs' */ - @Test - void inputsTest() { - // TODO: test inputs - } - - /** Test the property 'description' */ - @Test - void descriptionTest() { - // TODO: test description - } - - /** Test the property 'discriminator' */ - @Test - void discriminatorTest() { - // TODO: test discriminator - } - - /** Test the property 'accounts' */ - @Test - void accountsTest() { - // TODO: test accounts - } - - /** Test the property 'args' */ - @Test - void argsTest() { - // TODO: test args - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/WriteCallFunctionDtoTest.java b/src/test/java/com/fireblocks/sdk/model/WriteCallFunctionDtoTest.java index ee1c999d..ab5095cc 100644 --- a/src/test/java/com/fireblocks/sdk/model/WriteCallFunctionDtoTest.java +++ b/src/test/java/com/fireblocks/sdk/model/WriteCallFunctionDtoTest.java @@ -60,16 +60,4 @@ void feeTest() { void noteTest() { // TODO: test note } - - /** Test the property 'useGasless' */ - @Test - void useGaslessTest() { - // TODO: test useGasless - } - - /** Test the property 'externalId' */ - @Test - void externalIdTest() { - // TODO: test externalId - } }